index-e7babf60.js 2.8 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501
  1. (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 b3(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 jr={},Lv=[],Kn=()=>{},Vfe=()=>!1,Bfe=/^on[^a-z]/,CC=t=>Bfe.test(t),S3=t=>t.startsWith("onUpdate:"),ha=Object.assign,w3=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Ife=Object.prototype.hasOwnProperty,yn=(t,e)=>Ife.call(t,e),dt=Array.isArray,Ov=t=>Q1(t)==="[object Map]",TC=t=>Q1(t)==="[object Set]",Uh=t=>Q1(t)==="[object Date]",Vt=t=>typeof t=="function",$t=t=>typeof t=="string",Om=t=>typeof t=="symbol",an=t=>t!==null&&typeof t=="object",Am=t=>an(t)&&Vt(t.then)&&Vt(t.catch),U7=Object.prototype.toString,Q1=t=>U7.call(t),v_=t=>Q1(t).slice(8,-1),Dx=t=>Q1(t)==="[object Object]",_3=t=>$t(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,g_=b3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),EC=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},$fe=/-(\w)/g,rs=EC(t=>t.replace($fe,(e,n)=>n?n.toUpperCase():"")),Pfe=/\B([A-Z])/g,Nf=EC(t=>t.replace(Pfe,"-$1").toLowerCase()),J1=EC(t=>t.charAt(0).toUpperCase()+t.slice(1)),y_=EC(t=>t?`on${J1(t)}`:""),Nm=(t,e)=>!Object.is(t,e),m_=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},kx=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},kR=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ffe=t=>{const e=$t(t)?Number(t):NaN;return isNaN(e)?t:e};let f4;const RR=()=>f4||(f4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function St(t){if(dt(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],a=$t(r)?Hfe(r):St(r);if(a)for(const i in a)e[i]=a[i]}return e}else{if($t(t))return t;if(an(t))return t}}const zfe=/;(?![^(]*\))/g,Ufe=/:([^]+)/,Gfe=/\/\*[^]*?\*\//g;function Hfe(t){const e={};return t.replace(Gfe,"").split(zfe).forEach(n=>{if(n){const r=n.split(Ufe);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function j(t){let e="";if($t(t))e=t;else if(dt(t))for(let n=0;n<t.length;n++){const r=j(t[n]);r&&(e+=r+" ")}else if(an(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function $s(t){if(!t)return null;let{class:e,style:n}=t;return e&&!$t(e)&&(t.class=j(e)),n&&(t.style=St(n)),t}const Wfe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",jfe=b3(Wfe);function G7(t){return!!t||t===""}function Kfe(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Jv(t[r],e[r]);return n}function Jv(t,e){if(t===e)return!0;let n=Uh(t),r=Uh(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Om(t),r=Om(e),n||r)return t===e;if(n=dt(t),r=dt(e),n||r)return n&&r?Kfe(t,e):!1;if(n=an(t),r=an(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||!Jv(t[o],e[o]))return!1}}return String(t)===String(e)}function H7(t,e){return t.findIndex(n=>Jv(n,e))}const Ke=t=>$t(t)?t:t==null?"":dt(t)||an(t)&&(t.toString===U7||!Vt(t.toString))?JSON.stringify(t,W7,2):String(t),W7=(t,e)=>e&&e.__v_isRef?W7(t,e.value):Ov(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:TC(e)?{[`Set(${e.size})`]:[...e.values()]}:an(e)&&!dt(e)&&!Dx(e)?String(e):e;let bo;class j7{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=bo,!e&&bo&&(this.index=(bo.scopes||(bo.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=bo;try{return bo=this,e()}finally{bo=n}}}on(){bo=this}off(){bo=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 K7(t){return new j7(t)}function Yfe(t,e=bo){e&&e.active&&e.effects.push(t)}function Y7(){return bo}function q7(t){bo&&bo.cleanups.push(t)}const x3=t=>{const e=new Set(t);return e.w=0,e.n=0,e},X7=t=>(t.w&gf)>0,Z7=t=>(t.n&gf)>0,qfe=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=gf},Xfe=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const a=e[r];X7(a)&&!Z7(a)?a.delete(t):e[n++]=a,a.w&=~gf,a.n&=~gf}e.length=n}},Rx=new WeakMap;let Ty=0,gf=1;const LR=30;let Vs;const Ch=Symbol(""),OR=Symbol("");class C3{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Yfe(this,r)}run(){if(!this.active)return this.fn();let e=Vs,n=rf;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Vs,Vs=this,rf=!0,gf=1<<++Ty,Ty<=LR?qfe(this):d4(this),this.fn()}finally{Ty<=LR&&Xfe(this),gf=1<<--Ty,Vs=this.parent,rf=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Vs===this?this.deferStop=!0:this.active&&(d4(this),this.onStop&&this.onStop(),this.active=!1)}}function d4(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let rf=!0;const Q7=[];function Pg(){Q7.push(rf),rf=!1}function Fg(){const t=Q7.pop();rf=t===void 0?!0:t}function po(t,e,n){if(rf&&Vs){let r=Rx.get(t);r||Rx.set(t,r=new Map);let a=r.get(n);a||r.set(n,a=x3()),J7(a)}}function J7(t,e){let n=!1;Ty<=LR?Z7(t)||(t.n|=gf,n=!X7(t)):n=!t.has(Vs),n&&(t.add(Vs),Vs.deps.push(t))}function Bu(t,e,n,r,a,i){const o=Rx.get(t);if(!o)return;let s=[];if(e==="clear")s=[...o.values()];else if(n==="length"&&dt(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":dt(t)?_3(n)&&s.push(o.get("length")):(s.push(o.get(Ch)),Ov(t)&&s.push(o.get(OR)));break;case"delete":dt(t)||(s.push(o.get(Ch)),Ov(t)&&s.push(o.get(OR)));break;case"set":Ov(t)&&s.push(o.get(Ch));break}if(s.length===1)s[0]&&AR(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);AR(x3(l))}}function AR(t,e){const n=dt(t)?t:[...t];for(const r of n)r.computed&&h4(r);for(const r of n)r.computed||h4(r)}function h4(t,e){(t!==Vs||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function Zfe(t,e){var n;return(n=Rx.get(t))==null?void 0:n.get(e)}const Qfe=b3("__proto__,__v_isRef,__isVue"),ej=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Om)),Jfe=T3(),ede=T3(!1,!0),tde=T3(!0),p4=nde();function nde(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Fn(this);for(let i=0,o=this.length;i<o;i++)po(r,"get",i+"");const a=r[e](...n);return a===-1||a===!1?r[e](...n.map(Fn)):a}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Pg();const r=Fn(this)[e].apply(this,n);return Fg(),r}}),t}function rde(t){const e=Fn(this);return po(e,"has",t),e.hasOwnProperty(t)}function T3(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?bde:ij:e?aj:rj).get(r))return r;const o=dt(r);if(!t){if(o&&yn(p4,a))return Reflect.get(p4,a,i);if(a==="hasOwnProperty")return rde}const s=Reflect.get(r,a,i);return(Om(a)?ej.has(a):Qfe(a))||(t||po(r,"get",a),e)?s:Ot(s)?o&&_3(a)?s:s.value:an(s)?t?zg(s):Rn(s):s}}const ade=tj(),ide=tj(!0);function tj(t=!1){return function(n,r,a,i){let o=n[r];if(eg(o)&&Ot(o)&&!Ot(a))return!1;if(!t&&(!Lx(a)&&!eg(a)&&(o=Fn(o),a=Fn(a)),!dt(n)&&Ot(o)&&!Ot(a)))return o.value=a,!0;const s=dt(n)&&_3(r)?Number(r)<n.length:yn(n,r),l=Reflect.set(n,r,a,i);return n===Fn(i)&&(s?Nm(a,o)&&Bu(n,"set",r,a):Bu(n,"add",r,a)),l}}function ode(t,e){const n=yn(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Bu(t,"delete",e,void 0),r}function sde(t,e){const n=Reflect.has(t,e);return(!Om(e)||!ej.has(e))&&po(t,"has",e),n}function lde(t){return po(t,"iterate",dt(t)?"length":Ch),Reflect.ownKeys(t)}const nj={get:Jfe,set:ade,deleteProperty:ode,has:sde,ownKeys:lde},ude={get:tde,set(t,e){return!0},deleteProperty(t,e){return!0}},cde=ha({},nj,{get:ede,set:ide}),E3=t=>t,MC=t=>Reflect.getPrototypeOf(t);function fS(t,e,n=!1,r=!1){t=t.__v_raw;const a=Fn(t),i=Fn(e);n||(e!==i&&po(a,"get",e),po(a,"get",i));const{has:o}=MC(a),s=r?E3:n?k3:Vm;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 dS(t,e=!1){const n=this.__v_raw,r=Fn(n),a=Fn(t);return e||(t!==a&&po(r,"has",t),po(r,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)}function hS(t,e=!1){return t=t.__v_raw,!e&&po(Fn(t),"iterate",Ch),Reflect.get(t,"size",t)}function v4(t){t=Fn(t);const e=Fn(this);return MC(e).has.call(e,t)||(e.add(t),Bu(e,"add",t,t)),this}function g4(t,e){e=Fn(e);const n=Fn(this),{has:r,get:a}=MC(n);let i=r.call(n,t);i||(t=Fn(t),i=r.call(n,t));const o=a.call(n,t);return n.set(t,e),i?Nm(e,o)&&Bu(n,"set",t,e):Bu(n,"add",t,e),this}function y4(t){const e=Fn(this),{has:n,get:r}=MC(e);let a=n.call(e,t);a||(t=Fn(t),a=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return a&&Bu(e,"delete",t,void 0),i}function m4(){const t=Fn(this),e=t.size!==0,n=t.clear();return e&&Bu(t,"clear",void 0,void 0),n}function pS(t,e){return function(r,a){const i=this,o=i.__v_raw,s=Fn(o),l=e?E3:t?k3:Vm;return!t&&po(s,"iterate",Ch),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function vS(t,e,n){return function(...r){const a=this.__v_raw,i=Fn(a),o=Ov(i),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=a[t](...r),c=n?E3:e?k3:Vm;return!e&&po(i,"iterate",l?OR:Ch),{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 fc(t){return function(...e){return t==="delete"?!1:this}}function fde(){const t={get(i){return fS(this,i)},get size(){return hS(this)},has:dS,add:v4,set:g4,delete:y4,clear:m4,forEach:pS(!1,!1)},e={get(i){return fS(this,i,!1,!0)},get size(){return hS(this)},has:dS,add:v4,set:g4,delete:y4,clear:m4,forEach:pS(!1,!0)},n={get(i){return fS(this,i,!0)},get size(){return hS(this,!0)},has(i){return dS.call(this,i,!0)},add:fc("add"),set:fc("set"),delete:fc("delete"),clear:fc("clear"),forEach:pS(!0,!1)},r={get(i){return fS(this,i,!0,!0)},get size(){return hS(this,!0)},has(i){return dS.call(this,i,!0)},add:fc("add"),set:fc("set"),delete:fc("delete"),clear:fc("clear"),forEach:pS(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=vS(i,!1,!1),n[i]=vS(i,!0,!1),e[i]=vS(i,!1,!0),r[i]=vS(i,!0,!0)}),[t,n,e,r]}const[dde,hde,pde,vde]=fde();function M3(t,e){const n=e?t?vde:pde:t?hde:dde;return(r,a,i)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?r:Reflect.get(yn(n,a)&&a in r?n:r,a,i)}const gde={get:M3(!1,!1)},yde={get:M3(!1,!0)},mde={get:M3(!0,!1)},rj=new WeakMap,aj=new WeakMap,ij=new WeakMap,bde=new WeakMap;function Sde(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wde(t){return t.__v_skip||!Object.isExtensible(t)?0:Sde(v_(t))}function Rn(t){return eg(t)?t:D3(t,!1,nj,gde,rj)}function oj(t){return D3(t,!1,cde,yde,aj)}function zg(t){return D3(t,!0,ude,mde,ij)}function D3(t,e,n,r,a){if(!an(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=a.get(t);if(i)return i;const o=wde(t);if(o===0)return t;const s=new Proxy(t,o===2?r:n);return a.set(t,s),s}function Av(t){return eg(t)?Av(t.__v_raw):!!(t&&t.__v_isReactive)}function eg(t){return!!(t&&t.__v_isReadonly)}function Lx(t){return!!(t&&t.__v_isShallow)}function sj(t){return Av(t)||eg(t)}function Fn(t){const e=t&&t.__v_raw;return e?Fn(e):t}function af(t){return kx(t,"__v_skip",!0),t}const Vm=t=>an(t)?Rn(t):t,k3=t=>an(t)?zg(t):t;function lj(t){rf&&Vs&&(t=Fn(t),J7(t.dep||(t.dep=x3())))}function R3(t,e){t=Fn(t);const n=t.dep;n&&AR(n)}function Ot(t){return!!(t&&t.__v_isRef===!0)}function W(t){return uj(t,!1)}function or(t){return uj(t,!0)}function uj(t,e){return Ot(t)?t:new _de(t,e)}class _de{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Fn(e),this._value=n?e:Vm(e)}get value(){return lj(this),this._value}set value(e){const n=this.__v_isShallow||Lx(e)||eg(e);e=n?e:Fn(e),Nm(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Vm(e),R3(this))}}function N0(t){R3(t)}function S(t){return Ot(t)?t.value:t}const xde={get:(t,e,n)=>S(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const a=t[e];return Ot(a)&&!Ot(n)?(a.value=n,!0):Reflect.set(t,e,n,r)}};function cj(t){return Av(t)?t:new Proxy(t,xde)}function Ra(t){const e=dt(t)?new Array(t.length):{};for(const n in t)e[n]=fj(t,n);return e}class Cde{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 Zfe(Fn(this._object),this._key)}}class Tde{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Rr(t,e,n){return Ot(t)?t:Vt(t)?new Tde(t):an(t)&&arguments.length>1?fj(t,e,n):W(t)}function fj(t,e,n){const r=t[e];return Ot(r)?r:new Cde(t,e,n)}class Ede{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 C3(e,()=>{this._dirty||(this._dirty=!0,R3(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const e=Fn(this);return lj(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function dj(t,e,n=!1){let r,a;const i=Vt(t);return i?(r=t,a=Kn):(r=t.get,a=t.set),new Ede(r,a,i||!a,n)}function Mde(t,...e){}function of(t,e,n,r){let a;try{a=r?t(...r):t()}catch(i){DC(i,e,n)}return a}function Jo(t,e,n,r){if(Vt(t)){const i=of(t,e,n,r);return i&&Am(i)&&i.catch(o=>{DC(o,e,n)}),i}const a=[];for(let i=0;i<t.length;i++)a.push(Jo(t[i],e,n,r));return a}function DC(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){of(l,null,10,[t,o,s]);return}}Dde(t,n,a,r)}function Dde(t,e,n,r=!0){console.error(t)}let Bm=!1,NR=!1;const pi=[];let kl=0;const Nv=[];let gu=null,Yd=0;const hj=Promise.resolve();let L3=null;function yt(t){const e=L3||hj;return t?e.then(this?t.bind(this):t):e}function kde(t){let e=kl+1,n=pi.length;for(;e<n;){const r=e+n>>>1;Im(pi[r])<t?e=r+1:n=r}return e}function O3(t){(!pi.length||!pi.includes(t,Bm&&t.allowRecurse?kl+1:kl))&&(t.id==null?pi.push(t):pi.splice(kde(t.id),0,t),pj())}function pj(){!Bm&&!NR&&(NR=!0,L3=hj.then(gj))}function Rde(t){const e=pi.indexOf(t);e>kl&&pi.splice(e,1)}function Lde(t){dt(t)?Nv.push(...t):(!gu||!gu.includes(t,t.allowRecurse?Yd+1:Yd))&&Nv.push(t),pj()}function b4(t,e=Bm?kl+1:0){for(;e<pi.length;e++){const n=pi[e];n&&n.pre&&(pi.splice(e,1),e--,n())}}function vj(t){if(Nv.length){const e=[...new Set(Nv)];if(Nv.length=0,gu){gu.push(...e);return}for(gu=e,gu.sort((n,r)=>Im(n)-Im(r)),Yd=0;Yd<gu.length;Yd++)gu[Yd]();gu=null,Yd=0}}const Im=t=>t.id==null?1/0:t.id,Ode=(t,e)=>{const n=Im(t)-Im(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function gj(t){NR=!1,Bm=!0,pi.sort(Ode);const e=Kn;try{for(kl=0;kl<pi.length;kl++){const n=pi[kl];n&&n.active!==!1&&of(n,null,14)}}finally{kl=0,pi.length=0,vj(),Bm=!1,L3=null,(pi.length||Nv.length)&&gj()}}function Ade(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||jr;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]||jr;d&&(a=n.map(h=>$t(h)?h.trim():h)),f&&(a=n.map(kR))}let s,l=r[s=y_(e)]||r[s=y_(rs(e))];!l&&i&&(l=r[s=y_(Nf(e))]),l&&Jo(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,Jo(u,t,6,a)}}function yj(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(!Vt(t)){const l=u=>{const c=yj(u,e,!0);c&&(s=!0,ha(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!s?(an(t)&&r.set(t,null),null):(dt(i)?i.forEach(l=>o[l]=null):ha(o,i),an(t)&&r.set(t,o),o)}function kC(t,e){return!t||!CC(e)?!1:(e=e.slice(2).replace(/Once$/,""),yn(t,e[0].toLowerCase()+e.slice(1))||yn(t,Nf(e))||yn(t,e))}let ei=null,RC=null;function Ox(t){const e=ei;return ei=t,RC=t&&t.type.__scopeId||null,e}function LC(t){RC=t}function OC(){RC=null}function X(t,e=ei,n){if(!e||t._n)return t;const r=(...a)=>{r._d&&O4(-1);const i=Ox(e);let o;try{o=t(...a)}finally{Ox(i),r._d&&O4(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function UE(t){const{type:e,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=t;let g,y;const m=Ox(t);try{if(n.shapeFlag&4){const w=a||r;g=Ml(c.call(w,w,f,i,h,d,p)),y=l}else{const w=e;g=Ml(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),y=e.props?l:Nde(l)}}catch(w){Jy.length=0,DC(w,t,1),g=H(Vi)}let b=g;if(y&&v!==!1){const w=Object.keys(y),{shapeFlag:C}=b;w.length&&C&7&&(o&&w.some(S3)&&(y=Vde(y,o)),b=$u(b,y))}return n.dirs&&(b=$u(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,Ox(m),g}const Nde=t=>{let e;for(const n in t)(n==="class"||n==="style"||CC(n))&&((e||(e={}))[n]=t[n]);return e},Vde=(t,e)=>{const n={};for(const r in t)(!S3(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Bde(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?S4(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]&&!kC(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?S4(r,o,u):!0:!!o;return!1}function S4(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]&&!kC(n,i))return!0}return!1}function Ide({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const $de=t=>t.__isSuspense;function Pde(t,e){e&&e.pendingBranch?dt(t)?e.effects.push(...t):e.effects.push(t):Lde(t)}function To(t,e){return A3(t,null,e)}const gS={};function Ge(t,e,n){return A3(t,e,n)}function A3(t,e,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=jr){var s;const l=Y7()===((s=Ua)==null?void 0:s.scope)?Ua:null;let u,c=!1,f=!1;if(Ot(t)?(u=()=>t.value,c=Lx(t)):Av(t)?(u=()=>t,r=!0):dt(t)?(f=!0,c=t.some(w=>Av(w)||Lx(w)),u=()=>t.map(w=>{if(Ot(w))return w.value;if(Av(w))return sh(w);if(Vt(w))return of(w,l,2)})):Vt(t)?e?u=()=>of(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Jo(t,l,3,[h])}:u=Kn,e&&r){const w=u;u=()=>sh(w())}let d,h=w=>{d=m.onStop=()=>{of(w,l,4)}},p;if(Um)if(h=Kn,e?n&&Jo(e,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const w=Mhe();p=w.__watcherHandles||(w.__watcherHandles=[])}else return Kn;let v=f?new Array(t.length).fill(gS):gS;const g=()=>{if(m.active)if(e){const w=m.run();(r||c||(f?w.some((C,x)=>Nm(C,v[x])):Nm(w,v)))&&(d&&d(),Jo(e,l,3,[w,v===gS?void 0:f&&v[0]===gS?[]:v,h]),v=w)}else m.run()};g.allowRecurse=!!e;let y;a==="sync"?y=g:a==="post"?y=()=>ro(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),y=()=>O3(g));const m=new C3(u,y);e?n?g():v=m.run():a==="post"?ro(m.run.bind(m),l&&l.suspense):m.run();const b=()=>{m.stop(),l&&l.scope&&w3(l.scope.effects,m)};return p&&p.push(b),b}function Fde(t,e,n){const r=this.proxy,a=$t(t)?t.includes(".")?mj(r,t):()=>r[t]:t.bind(r,r);let i;Vt(e)?i=e:(i=e.handler,n=e);const o=Ua;tg(this);const s=A3(a,i.bind(r),n);return o?tg(o):Th(),s}function mj(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 sh(t,e){if(!an(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Ot(t))sh(t.value,e);else if(dt(t))for(let n=0;n<t.length;n++)sh(t[n],e);else if(TC(t)||Ov(t))t.forEach(n=>{sh(n,e)});else if(Dx(t))for(const n in t)sh(t[n],e);return t}function Ft(t,e){const n=ei;if(n===null)return t;const r=$C(n)||n.proxy,a=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,l,u=jr]=e[i];o&&(Vt(o)&&(o={mounted:o,updated:o}),o.deep&&sh(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return t}function ed(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&&(Pg(),Jo(l,n,8,[t.el,s,t,e]),Fg())}}function bj(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pt(()=>{t.isMounted=!0}),fr(()=>{t.isUnmounting=!0}),t}const Ao=[Function,Array],Sj={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ao,onEnter:Ao,onAfterEnter:Ao,onEnterCancelled:Ao,onBeforeLeave:Ao,onLeave:Ao,onAfterLeave:Ao,onLeaveCancelled:Ao,onBeforeAppear:Ao,onAppear:Ao,onAfterAppear:Ao,onAppearCancelled:Ao},zde={name:"BaseTransition",props:Sj,setup(t,{slots:e}){const n=Yt(),r=bj();let a;return()=>{const i=e.default&&N3(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==Vi){o=v;break}}const s=Fn(t),{mode:l}=s;if(r.isLeaving)return GE(o);const u=w4(o);if(!u)return GE(o);const c=$m(u,s,r,n);Pm(u,c);const f=n.subTree,d=f&&w4(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();a===void 0?a=v:v!==a&&(a=v,h=!0)}if(d&&d.type!==Vi&&(!qd(u,d)||h)){const v=$m(d,s,r,n);if(Pm(d,v),l==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},GE(o);l==="in-out"&&u.type!==Vi&&(v.delayLeave=(g,y,m)=>{const b=wj(r,d);b[String(d.key)]=d,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},Ude=zde;function wj(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 $m(t,e,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:m}=e,b=String(t.key),w=wj(n,t),C=(T,M)=>{T&&Jo(T,r,9,M)},x=(T,M)=>{const E=M[1];C(T,M),dt(T)?T.every(k=>k.length<=1)&&E():T.length<=1&&E()},_={mode:i,persisted:o,beforeEnter(T){let M=s;if(!n.isMounted)if(a)M=v||s;else return;T._leaveCb&&T._leaveCb(!0);const E=w[b];E&&qd(t,E)&&E.el._leaveCb&&E.el._leaveCb(),C(M,[T])},enter(T){let M=l,E=u,k=c;if(!n.isMounted)if(a)M=g||l,E=y||u,k=m||c;else return;let R=!1;const L=T._enterCb=A=>{R||(R=!0,A?C(k,[T]):C(E,[T]),_.delayedLeave&&_.delayedLeave(),T._enterCb=void 0)};M?x(M,[T,L]):L()},leave(T,M){const E=String(t.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return M();C(f,[T]);let k=!1;const R=T._leaveCb=L=>{k||(k=!0,M(),L?C(p,[T]):C(h,[T]),T._leaveCb=void 0,w[E]===t&&delete w[E])};w[E]=t,d?x(d,[T,R]):R()},clone(T){return $m(T,e,n,r)}};return _}function GE(t){if(AC(t))return t=$u(t),t.children=null,t}function w4(t){return AC(t)?t.children?t.children[0]:void 0:t}function Pm(t,e){t.shapeFlag&6&&t.component?Pm(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 N3(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===bt?(o.patchFlag&128&&a++,r=r.concat(N3(o.children,e,s))):(e||o.type!==Vi)&&r.push(s!=null?$u(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function pe(t,e){return Vt(t)?(()=>ha({name:t.name},e,{setup:t}))():t}const Xy=t=>!!t.type.__asyncLoader,AC=t=>t.type.__isKeepAlive;function Gde(t,e){xj(t,"a",e)}function _j(t,e){xj(t,"da",e)}function xj(t,e,n=Ua){const r=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(NC(e,r,n),n){let a=n.parent;for(;a&&a.parent;)AC(a.parent.vnode)&&Hde(r,e,n,a),a=a.parent}}function Hde(t,e,n,r){const a=NC(e,t,r,!0);Zu(()=>{w3(r[e],a)},n)}function NC(t,e,n=Ua,r=!1){if(n){const a=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Pg(),tg(n);const s=Jo(e,n,t,o);return Th(),Fg(),s});return r?a.unshift(i):a.push(i),i}}const qu=t=>(e,n=Ua)=>(!Um||t==="sp")&&NC(t,(...r)=>e(...r),n),VC=qu("bm"),Pt=qu("m"),Cj=qu("bu"),Xu=qu("u"),fr=qu("bum"),Zu=qu("um"),Wde=qu("sp"),jde=qu("rtg"),Kde=qu("rtc");function Yde(t,e=Ua){NC("ec",t,e)}const V3="components",qde="directives";function Xe(t,e){return B3(V3,t,!0,e)||t}const Tj=Symbol.for("v-ndc");function tn(t){return $t(t)?B3(V3,t,!1)||t:t||Tj}function Fm(t){return B3(qde,t)}function B3(t,e,n=!0,r=!1){const a=ei||Ua;if(a){const i=a.type;if(t===V3){const s=Che(i,!1);if(s&&(s===e||s===rs(e)||s===J1(rs(e))))return i}const o=_4(a[t]||i[t],e)||_4(a.appContext[t],e);return!o&&r?i:o}}function _4(t,e){return t&&(t[e]||t[rs(e)]||t[J1(rs(e))])}function ln(t,e,n,r){let a;const i=n&&n[r];if(dt(t)||$t(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(an(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 Iu(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(dt(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 ze(t,e,n={},r,a){if(ei.isCE||ei.parent&&Xy(ei.parent)&&ei.parent.isCE)return e!=="default"&&(n.name=e),H("slot",n,r&&r());let i=t[e];i&&i._c&&(i._d=!1),z();const o=i&&Ej(i(n)),s=xe(bt,{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 Ej(t){return t.some(e=>Dr(e)?!(e.type===Vi||e.type===bt&&!Ej(e.children)):!0)?t:null}function Xde(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:y_(r)]=t[r];return n}const VR=t=>t?$j(t)?$C(t)||t.proxy:VR(t.parent):null,Zy=ha(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=>VR(t.parent),$root:t=>VR(t.root),$emit:t=>t.emit,$options:t=>I3(t),$forceUpdate:t=>t.f||(t.f=()=>O3(t.update)),$nextTick:t=>t.n||(t.n=yt.bind(t.proxy)),$watch:t=>Fde.bind(t)}),HE=(t,e)=>t!==jr&&!t.__isScriptSetup&&yn(t,e),Zde={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(HE(r,e))return o[e]=1,r[e];if(a!==jr&&yn(a,e))return o[e]=2,a[e];if((u=t.propsOptions[0])&&yn(u,e))return o[e]=3,i[e];if(n!==jr&&yn(n,e))return o[e]=4,n[e];BR&&(o[e]=0)}}const c=Zy[e];let f,d;if(c)return e==="$attrs"&&po(t,"get",e),c(t);if((f=s.__cssModules)&&(f=f[e]))return f;if(n!==jr&&yn(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,yn(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:a,ctx:i}=t;return HE(a,e)?(a[e]=n,!0):r!==jr&&yn(r,e)?(r[e]=n,!0):yn(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!==jr&&yn(t,o)||HE(e,o)||(s=i[0])&&yn(s,o)||yn(r,o)||yn(Zy,o)||yn(a.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:yn(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function li(){return Mj().slots}function ip(){return Mj().attrs}function Mj(){const t=Yt();return t.setupContext||(t.setupContext=Fj(t))}function x4(t){return dt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let BR=!0;function Qde(t){const e=I3(t),n=t.proxy,r=t.ctx;BR=!1,e.beforeCreate&&C4(e.beforeCreate,t,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:b,unmounted:w,render:C,renderTracked:x,renderTriggered:_,errorCaptured:T,serverPrefetch:M,expose:E,inheritAttrs:k,components:R,directives:L,filters:A}=e;if(u&&Jde(u,r,null),o)for(const I in o){const $=o[I];Vt($)&&(r[I]=$.bind(n))}if(a){const I=a.call(n,n);an(I)&&(t.data=Rn(I))}if(BR=!0,i)for(const I in i){const $=i[I],N=Vt($)?$.bind(n,n):Vt($.get)?$.get.bind(n,n):Kn,P=!Vt($)&&Vt($.set)?$.set.bind(n):Kn,Y=B({get:N,set:P});Object.defineProperty(r,I,{enumerable:!0,configurable:!0,get:()=>Y.value,set:J=>Y.value=J})}if(s)for(const I in s)Dj(s[I],r,n,I);if(l){const I=Vt(l)?l.call(n):l;Reflect.ownKeys(I).forEach($=>{on($,I[$])})}c&&C4(c,t,"c");function G(I,$){dt($)?$.forEach(N=>I(N.bind(n))):$&&I($.bind(n))}if(G(VC,f),G(Pt,d),G(Cj,h),G(Xu,p),G(Gde,v),G(_j,g),G(Yde,T),G(Kde,x),G(jde,_),G(fr,m),G(Zu,w),G(Wde,M),dt(E))if(E.length){const I=t.exposed||(t.exposed={});E.forEach($=>{Object.defineProperty(I,$,{get:()=>n[$],set:N=>n[$]=N})})}else t.exposed||(t.exposed={});C&&t.render===Kn&&(t.render=C),k!=null&&(t.inheritAttrs=k),R&&(t.components=R),L&&(t.directives=L)}function Jde(t,e,n=Kn){dt(t)&&(t=IR(t));for(const r in t){const a=t[r];let i;an(a)?"default"in a?i=pt(a.from||r,a.default,!0):i=pt(a.from||r):i=pt(a),Ot(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function C4(t,e,n){Jo(dt(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Dj(t,e,n,r){const a=r.includes(".")?mj(n,r):()=>n[r];if($t(t)){const i=e[t];Vt(i)&&Ge(a,i)}else if(Vt(t))Ge(a,t.bind(n));else if(an(t))if(dt(t))t.forEach(i=>Dj(i,e,n,r));else{const i=Vt(t.handler)?t.handler.bind(n):e[t.handler];Vt(i)&&Ge(a,i,t)}}function I3(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=>Ax(l,u,o,!0)),Ax(l,e,o)),an(e)&&i.set(e,l),l}function Ax(t,e,n,r=!1){const{mixins:a,extends:i}=e;i&&Ax(t,i,n,!0),a&&a.forEach(o=>Ax(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=ehe[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const ehe={data:T4,props:E4,emits:E4,methods:Ey,computed:Ey,beforeCreate:Di,created:Di,beforeMount:Di,mounted:Di,beforeUpdate:Di,updated:Di,beforeDestroy:Di,beforeUnmount:Di,destroyed:Di,unmounted:Di,activated:Di,deactivated:Di,errorCaptured:Di,serverPrefetch:Di,components:Ey,directives:Ey,watch:nhe,provide:T4,inject:the};function T4(t,e){return e?t?function(){return ha(Vt(t)?t.call(this,this):t,Vt(e)?e.call(this,this):e)}:e:t}function the(t,e){return Ey(IR(t),IR(e))}function IR(t){if(dt(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Di(t,e){return t?[...new Set([].concat(t,e))]:e}function Ey(t,e){return t?ha(Object.create(null),t,e):e}function E4(t,e){return t?dt(t)&&dt(e)?[...new Set([...t,...e])]:ha(Object.create(null),x4(t),x4(e??{})):e}function nhe(t,e){if(!t)return e;if(!e)return t;const n=ha(Object.create(null),t);for(const r in e)n[r]=Di(t[r],e[r]);return n}function kj(){return{app:null,config:{isNativeTag:Vfe,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 rhe=0;function ahe(t,e){return function(r,a=null){Vt(r)||(r=ha({},r)),a!=null&&!an(a)&&(a=null);const i=kj(),o=new Set;let s=!1;const l=i.app={_uid:rhe++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:Dhe,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&Vt(u.install)?(o.add(u),u.install(l,...c)):Vt(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=H(r,a);return d.appContext=i,c&&e?e(d,u):t(d,u,f),s=!0,l._container=u,u.__vue_app__=l,$C(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){Nx=l;try{return u()}finally{Nx=null}}};return l}}let Nx=null;function on(t,e){if(Ua){let n=Ua.provides;const r=Ua.parent&&Ua.parent.provides;r===n&&(n=Ua.provides=Object.create(r)),n[t]=e}}function pt(t,e,n=!1){const r=Ua||ei;if(r||Nx){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Nx._context.provides;if(a&&t in a)return a[t];if(arguments.length>1)return n&&Vt(e)?e.call(r&&r.proxy):e}}function ihe(t,e,n,r=!1){const a={},i={};kx(i,BC,1),t.propsDefaults=Object.create(null),Rj(t,e,a,i);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);n?t.props=r?a:oj(a):t.type.props?t.props=a:t.props=i,t.attrs=i}function ohe(t,e,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=t,s=Fn(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(kC(t.emitsOptions,d))continue;const h=e[d];if(l)if(yn(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const p=rs(d);a[p]=$R(l,s,p,h,t,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{Rj(t,e,a,i)&&(u=!0);let c;for(const f in s)(!e||!yn(e,f)&&((c=Nf(f))===f||!yn(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=$R(l,s,f,void 0,t,!0)):delete a[f]);if(i!==s)for(const f in i)(!e||!yn(e,f))&&(delete i[f],u=!0)}u&&Bu(t,"set","$attrs")}function Rj(t,e,n,r){const[a,i]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(g_(l))continue;const u=e[l];let c;a&&yn(a,c=rs(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:kC(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=Fn(n),u=s||jr;for(let c=0;c<i.length;c++){const f=i[c];n[f]=$R(a,l,f,u[f],t,!yn(u,f))}}return o}function $R(t,e,n,r,a,i){const o=t[n];if(o!=null){const s=yn(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Vt(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(tg(a),r=u[n]=l.call(null,e),Th())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===Nf(n))&&(r=!0))}return r}function Lj(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(!Vt(t)){const c=f=>{l=!0;const[d,h]=Lj(f,e,!0);ha(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 an(t)&&r.set(t,Lv),Lv;if(dt(i))for(let c=0;c<i.length;c++){const f=rs(i[c]);M4(f)&&(o[f]=jr)}else if(i)for(const c in i){const f=rs(c);if(M4(f)){const d=i[c],h=o[f]=dt(d)||Vt(d)?{type:d}:ha({},d);if(h){const p=R4(Boolean,h.type),v=R4(String,h.type);h[0]=p>-1,h[1]=v<0||p<v,(p>-1||yn(h,"default"))&&s.push(f)}}}const u=[o,s];return an(t)&&r.set(t,u),u}function M4(t){return t[0]!=="$"}function D4(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function k4(t,e){return D4(t)===D4(e)}function R4(t,e){return dt(e)?e.findIndex(n=>k4(n,t)):Vt(e)&&k4(e,t)?0:-1}const Oj=t=>t[0]==="_"||t==="$stable",$3=t=>dt(t)?t.map(Ml):[Ml(t)],she=(t,e,n)=>{if(e._n)return e;const r=X((...a)=>$3(e(...a)),n);return r._c=!1,r},Aj=(t,e,n)=>{const r=t._ctx;for(const a in t){if(Oj(a))continue;const i=t[a];if(Vt(i))e[a]=she(a,i,r);else if(i!=null){const o=$3(i);e[a]=()=>o}}},Nj=(t,e)=>{const n=$3(e);t.slots.default=()=>n},lhe=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=Fn(e),kx(e,"_",n)):Aj(e,t.slots={})}else t.slots={},e&&Nj(t,e);kx(t.slots,BC,1)},uhe=(t,e,n)=>{const{vnode:r,slots:a}=t;let i=!0,o=jr;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:(ha(a,e),!n&&s===1&&delete a._):(i=!e.$stable,Aj(e,a)),o=e}else e&&(Nj(t,e),o={default:1});if(i)for(const s in a)!Oj(s)&&!(s in o)&&delete a[s]};function PR(t,e,n,r,a=!1){if(dt(t)){t.forEach((d,h)=>PR(d,e&&(dt(e)?e[h]:e),n,r,a));return}if(Xy(r)&&!a)return;const i=r.shapeFlag&4?$C(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=t,u=e&&e.r,c=s.refs===jr?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&($t(u)?(c[u]=null,yn(f,u)&&(f[u]=null)):Ot(u)&&(u.value=null)),Vt(l))of(l,s,12,[o,c]);else{const d=$t(l),h=Ot(l);if(d||h){const p=()=>{if(t.f){const v=d?yn(f,l)?f[l]:c[l]:l.value;a?dt(v)&&w3(v,i):dt(v)?v.includes(i)||v.push(i):d?(c[l]=[i],yn(f,l)&&(f[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else d?(c[l]=o,yn(f,l)&&(f[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(p.id=-1,ro(p,n)):p()}}}const ro=Pde;function che(t){return fhe(t)}function fhe(t,e){const n=RR();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=Kn,insertStaticContent:p}=t,v=(q,ce,Se,Ae=null,Te=null,Oe=null,He=!1,$e=null,Ne=!!ce.dynamicChildren)=>{if(q===ce)return;q&&!qd(q,ce)&&(Ae=fe(q),J(q,Te,Oe,!0),q=null),ce.patchFlag===-2&&(Ne=!1,ce.dynamicChildren=null);const{type:Le,ref:ie,shapeFlag:Re}=ce;switch(Le){case Ug:g(q,ce,Se,Ae);break;case Vi:y(q,ce,Se,Ae);break;case b_:q==null&&m(ce,Se,Ae,He);break;case bt:R(q,ce,Se,Ae,Te,Oe,He,$e,Ne);break;default:Re&1?C(q,ce,Se,Ae,Te,Oe,He,$e,Ne):Re&6?L(q,ce,Se,Ae,Te,Oe,He,$e,Ne):(Re&64||Re&128)&&Le.process(q,ce,Se,Ae,Te,Oe,He,$e,Ne,_e)}ie!=null&&Te&&PR(ie,q&&q.ref,Oe,ce||q,!ce)},g=(q,ce,Se,Ae)=>{if(q==null)r(ce.el=s(ce.children),Se,Ae);else{const Te=ce.el=q.el;ce.children!==q.children&&u(Te,ce.children)}},y=(q,ce,Se,Ae)=>{q==null?r(ce.el=l(ce.children||""),Se,Ae):ce.el=q.el},m=(q,ce,Se,Ae)=>{[q.el,q.anchor]=p(q.children,ce,Se,Ae,q.el,q.anchor)},b=({el:q,anchor:ce},Se,Ae)=>{let Te;for(;q&&q!==ce;)Te=d(q),r(q,Se,Ae),q=Te;r(ce,Se,Ae)},w=({el:q,anchor:ce})=>{let Se;for(;q&&q!==ce;)Se=d(q),a(q),q=Se;a(ce)},C=(q,ce,Se,Ae,Te,Oe,He,$e,Ne)=>{He=He||ce.type==="svg",q==null?x(ce,Se,Ae,Te,Oe,He,$e,Ne):M(q,ce,Te,Oe,He,$e,Ne)},x=(q,ce,Se,Ae,Te,Oe,He,$e)=>{let Ne,Le;const{type:ie,props:Re,shapeFlag:We,transition:me,dirs:Ye}=q;if(Ne=q.el=o(q.type,Oe,Re&&Re.is,Re),We&8?c(Ne,q.children):We&16&&T(q.children,Ne,null,Ae,Te,Oe&&ie!=="foreignObject",He,$e),Ye&&ed(q,null,Ae,"created"),_(Ne,q,q.scopeId,He,Ae),Re){for(const Ct in Re)Ct!=="value"&&!g_(Ct)&&i(Ne,Ct,null,Re[Ct],Oe,q.children,Ae,Te,le);"value"in Re&&i(Ne,"value",null,Re.value),(Le=Re.onVnodeBeforeMount)&&pl(Le,Ae,q)}Ye&&ed(q,null,Ae,"beforeMount");const ht=(!Te||Te&&!Te.pendingBranch)&&me&&!me.persisted;ht&&me.beforeEnter(Ne),r(Ne,ce,Se),((Le=Re&&Re.onVnodeMounted)||ht||Ye)&&ro(()=>{Le&&pl(Le,Ae,q),ht&&me.enter(Ne),Ye&&ed(q,null,Ae,"mounted")},Te)},_=(q,ce,Se,Ae,Te)=>{if(Se&&h(q,Se),Ae)for(let Oe=0;Oe<Ae.length;Oe++)h(q,Ae[Oe]);if(Te){let Oe=Te.subTree;if(ce===Oe){const He=Te.vnode;_(q,He,He.scopeId,He.slotScopeIds,Te.parent)}}},T=(q,ce,Se,Ae,Te,Oe,He,$e,Ne=0)=>{for(let Le=Ne;Le<q.length;Le++){const ie=q[Le]=$e?$c(q[Le]):Ml(q[Le]);v(null,ie,ce,Se,Ae,Te,Oe,He,$e)}},M=(q,ce,Se,Ae,Te,Oe,He)=>{const $e=ce.el=q.el;let{patchFlag:Ne,dynamicChildren:Le,dirs:ie}=ce;Ne|=q.patchFlag&16;const Re=q.props||jr,We=ce.props||jr;let me;Se&&td(Se,!1),(me=We.onVnodeBeforeUpdate)&&pl(me,Se,ce,q),ie&&ed(ce,q,Se,"beforeUpdate"),Se&&td(Se,!0);const Ye=Te&&ce.type!=="foreignObject";if(Le?E(q.dynamicChildren,Le,$e,Se,Ae,Ye,Oe):He||$(q,ce,$e,null,Se,Ae,Ye,Oe,!1),Ne>0){if(Ne&16)k($e,ce,Re,We,Se,Ae,Te);else if(Ne&2&&Re.class!==We.class&&i($e,"class",null,We.class,Te),Ne&4&&i($e,"style",Re.style,We.style,Te),Ne&8){const ht=ce.dynamicProps;for(let Ct=0;Ct<ht.length;Ct++){const Tt=ht[Ct],it=Re[Tt],Me=We[Tt];(Me!==it||Tt==="value")&&i($e,Tt,it,Me,Te,q.children,Se,Ae,le)}}Ne&1&&q.children!==ce.children&&c($e,ce.children)}else!He&&Le==null&&k($e,ce,Re,We,Se,Ae,Te);((me=We.onVnodeUpdated)||ie)&&ro(()=>{me&&pl(me,Se,ce,q),ie&&ed(ce,q,Se,"updated")},Ae)},E=(q,ce,Se,Ae,Te,Oe,He)=>{for(let $e=0;$e<ce.length;$e++){const Ne=q[$e],Le=ce[$e],ie=Ne.el&&(Ne.type===bt||!qd(Ne,Le)||Ne.shapeFlag&70)?f(Ne.el):Se;v(Ne,Le,ie,null,Ae,Te,Oe,He,!0)}},k=(q,ce,Se,Ae,Te,Oe,He)=>{if(Se!==Ae){if(Se!==jr)for(const $e in Se)!g_($e)&&!($e in Ae)&&i(q,$e,Se[$e],null,He,ce.children,Te,Oe,le);for(const $e in Ae){if(g_($e))continue;const Ne=Ae[$e],Le=Se[$e];Ne!==Le&&$e!=="value"&&i(q,$e,Le,Ne,He,ce.children,Te,Oe,le)}"value"in Ae&&i(q,"value",Se.value,Ae.value)}},R=(q,ce,Se,Ae,Te,Oe,He,$e,Ne)=>{const Le=ce.el=q?q.el:s(""),ie=ce.anchor=q?q.anchor:s("");let{patchFlag:Re,dynamicChildren:We,slotScopeIds:me}=ce;me&&($e=$e?$e.concat(me):me),q==null?(r(Le,Se,Ae),r(ie,Se,Ae),T(ce.children,Se,ie,Te,Oe,He,$e,Ne)):Re>0&&Re&64&&We&&q.dynamicChildren?(E(q.dynamicChildren,We,Se,Te,Oe,He,$e),(ce.key!=null||Te&&ce===Te.subTree)&&P3(q,ce,!0)):$(q,ce,Se,ie,Te,Oe,He,$e,Ne)},L=(q,ce,Se,Ae,Te,Oe,He,$e,Ne)=>{ce.slotScopeIds=$e,q==null?ce.shapeFlag&512?Te.ctx.activate(ce,Se,Ae,He,Ne):A(ce,Se,Ae,Te,Oe,He,Ne):V(q,ce,Ne)},A=(q,ce,Se,Ae,Te,Oe,He)=>{const $e=q.component=She(q,Ae,Te);if(AC(q)&&($e.ctx.renderer=_e),whe($e),$e.asyncDep){if(Te&&Te.registerDep($e,G),!q.el){const Ne=$e.subTree=H(Vi);y(null,Ne,ce,Se)}return}G($e,q,ce,Se,Te,Oe,He)},V=(q,ce,Se)=>{const Ae=ce.component=q.component;if(Bde(q,ce,Se))if(Ae.asyncDep&&!Ae.asyncResolved){I(Ae,ce,Se);return}else Ae.next=ce,Rde(Ae.update),Ae.update();else ce.el=q.el,Ae.vnode=ce},G=(q,ce,Se,Ae,Te,Oe,He)=>{const $e=()=>{if(q.isMounted){let{next:ie,bu:Re,u:We,parent:me,vnode:Ye}=q,ht=ie,Ct;td(q,!1),ie?(ie.el=Ye.el,I(q,ie,He)):ie=Ye,Re&&m_(Re),(Ct=ie.props&&ie.props.onVnodeBeforeUpdate)&&pl(Ct,me,ie,Ye),td(q,!0);const Tt=UE(q),it=q.subTree;q.subTree=Tt,v(it,Tt,f(it.el),fe(it),q,Te,Oe),ie.el=Tt.el,ht===null&&Ide(q,Tt.el),We&&ro(We,Te),(Ct=ie.props&&ie.props.onVnodeUpdated)&&ro(()=>pl(Ct,me,ie,Ye),Te)}else{let ie;const{el:Re,props:We}=ce,{bm:me,m:Ye,parent:ht}=q,Ct=Xy(ce);if(td(q,!1),me&&m_(me),!Ct&&(ie=We&&We.onVnodeBeforeMount)&&pl(ie,ht,ce),td(q,!0),Re&&he){const Tt=()=>{q.subTree=UE(q),he(Re,q.subTree,q,Te,null)};Ct?ce.type.__asyncLoader().then(()=>!q.isUnmounted&&Tt()):Tt()}else{const Tt=q.subTree=UE(q);v(null,Tt,Se,Ae,q,Te,Oe),ce.el=Tt.el}if(Ye&&ro(Ye,Te),!Ct&&(ie=We&&We.onVnodeMounted)){const Tt=ce;ro(()=>pl(ie,ht,Tt),Te)}(ce.shapeFlag&256||ht&&Xy(ht.vnode)&&ht.vnode.shapeFlag&256)&&q.a&&ro(q.a,Te),q.isMounted=!0,ce=Se=Ae=null}},Ne=q.effect=new C3($e,()=>O3(Le),q.scope),Le=q.update=()=>Ne.run();Le.id=q.uid,td(q,!0),Le()},I=(q,ce,Se)=>{ce.component=q;const Ae=q.vnode.props;q.vnode=ce,q.next=null,ohe(q,ce.props,Ae,Se),uhe(q,ce.children,Se),Pg(),b4(),Fg()},$=(q,ce,Se,Ae,Te,Oe,He,$e,Ne=!1)=>{const Le=q&&q.children,ie=q?q.shapeFlag:0,Re=ce.children,{patchFlag:We,shapeFlag:me}=ce;if(We>0){if(We&128){P(Le,Re,Se,Ae,Te,Oe,He,$e,Ne);return}else if(We&256){N(Le,Re,Se,Ae,Te,Oe,He,$e,Ne);return}}me&8?(ie&16&&le(Le,Te,Oe),Re!==Le&&c(Se,Re)):ie&16?me&16?P(Le,Re,Se,Ae,Te,Oe,He,$e,Ne):le(Le,Te,Oe,!0):(ie&8&&c(Se,""),me&16&&T(Re,Se,Ae,Te,Oe,He,$e,Ne))},N=(q,ce,Se,Ae,Te,Oe,He,$e,Ne)=>{q=q||Lv,ce=ce||Lv;const Le=q.length,ie=ce.length,Re=Math.min(Le,ie);let We;for(We=0;We<Re;We++){const me=ce[We]=Ne?$c(ce[We]):Ml(ce[We]);v(q[We],me,Se,null,Te,Oe,He,$e,Ne)}Le>ie?le(q,Te,Oe,!0,!1,Re):T(ce,Se,Ae,Te,Oe,He,$e,Ne,Re)},P=(q,ce,Se,Ae,Te,Oe,He,$e,Ne)=>{let Le=0;const ie=ce.length;let Re=q.length-1,We=ie-1;for(;Le<=Re&&Le<=We;){const me=q[Le],Ye=ce[Le]=Ne?$c(ce[Le]):Ml(ce[Le]);if(qd(me,Ye))v(me,Ye,Se,null,Te,Oe,He,$e,Ne);else break;Le++}for(;Le<=Re&&Le<=We;){const me=q[Re],Ye=ce[We]=Ne?$c(ce[We]):Ml(ce[We]);if(qd(me,Ye))v(me,Ye,Se,null,Te,Oe,He,$e,Ne);else break;Re--,We--}if(Le>Re){if(Le<=We){const me=We+1,Ye=me<ie?ce[me].el:Ae;for(;Le<=We;)v(null,ce[Le]=Ne?$c(ce[Le]):Ml(ce[Le]),Se,Ye,Te,Oe,He,$e,Ne),Le++}}else if(Le>We)for(;Le<=Re;)J(q[Le],Te,Oe,!0),Le++;else{const me=Le,Ye=Le,ht=new Map;for(Le=Ye;Le<=We;Le++){const de=ce[Le]=Ne?$c(ce[Le]):Ml(ce[Le]);de.key!=null&&ht.set(de.key,Le)}let Ct,Tt=0;const it=We-Ye+1;let Me=!1,ge=0;const be=new Array(it);for(Le=0;Le<it;Le++)be[Le]=0;for(Le=me;Le<=Re;Le++){const de=q[Le];if(Tt>=it){J(de,Te,Oe,!0);continue}let rt;if(de.key!=null)rt=ht.get(de.key);else for(Ct=Ye;Ct<=We;Ct++)if(be[Ct-Ye]===0&&qd(de,ce[Ct])){rt=Ct;break}rt===void 0?J(de,Te,Oe,!0):(be[rt-Ye]=Le+1,rt>=ge?ge=rt:Me=!0,v(de,ce[rt],Se,null,Te,Oe,He,$e,Ne),Tt++)}const Ie=Me?dhe(be):Lv;for(Ct=Ie.length-1,Le=it-1;Le>=0;Le--){const de=Ye+Le,rt=ce[de],Fe=de+1<ie?ce[de+1].el:Ae;be[Le]===0?v(null,rt,Se,Fe,Te,Oe,He,$e,Ne):Me&&(Ct<0||Le!==Ie[Ct]?Y(rt,Se,Fe,2):Ct--)}}},Y=(q,ce,Se,Ae,Te=null)=>{const{el:Oe,type:He,transition:$e,children:Ne,shapeFlag:Le}=q;if(Le&6){Y(q.component.subTree,ce,Se,Ae);return}if(Le&128){q.suspense.move(ce,Se,Ae);return}if(Le&64){He.move(q,ce,Se,_e);return}if(He===bt){r(Oe,ce,Se);for(let Re=0;Re<Ne.length;Re++)Y(Ne[Re],ce,Se,Ae);r(q.anchor,ce,Se);return}if(He===b_){b(q,ce,Se);return}if(Ae!==2&&Le&1&&$e)if(Ae===0)$e.beforeEnter(Oe),r(Oe,ce,Se),ro(()=>$e.enter(Oe),Te);else{const{leave:Re,delayLeave:We,afterLeave:me}=$e,Ye=()=>r(Oe,ce,Se),ht=()=>{Re(Oe,()=>{Ye(),me&&me()})};We?We(Oe,Ye,ht):ht()}else r(Oe,ce,Se)},J=(q,ce,Se,Ae=!1,Te=!1)=>{const{type:Oe,props:He,ref:$e,children:Ne,dynamicChildren:Le,shapeFlag:ie,patchFlag:Re,dirs:We}=q;if($e!=null&&PR($e,null,Se,q,!0),ie&256){ce.ctx.deactivate(q);return}const me=ie&1&&We,Ye=!Xy(q);let ht;if(Ye&&(ht=He&&He.onVnodeBeforeUnmount)&&pl(ht,ce,q),ie&6)ue(q.component,Se,Ae);else{if(ie&128){q.suspense.unmount(Se,Ae);return}me&&ed(q,null,ce,"beforeUnmount"),ie&64?q.type.remove(q,ce,Se,Te,_e,Ae):Le&&(Oe!==bt||Re>0&&Re&64)?le(Le,ce,Se,!1,!0):(Oe===bt&&Re&384||!Te&&ie&16)&&le(Ne,ce,Se),Ae&&re(q)}(Ye&&(ht=He&&He.onVnodeUnmounted)||me)&&ro(()=>{ht&&pl(ht,ce,q),me&&ed(q,null,ce,"unmounted")},Se)},re=q=>{const{type:ce,el:Se,anchor:Ae,transition:Te}=q;if(ce===bt){oe(Se,Ae);return}if(ce===b_){w(q);return}const Oe=()=>{a(Se),Te&&!Te.persisted&&Te.afterLeave&&Te.afterLeave()};if(q.shapeFlag&1&&Te&&!Te.persisted){const{leave:He,delayLeave:$e}=Te,Ne=()=>He(Se,Oe);$e?$e(q.el,Oe,Ne):Ne()}else Oe()},oe=(q,ce)=>{let Se;for(;q!==ce;)Se=d(q),a(q),q=Se;a(ce)},ue=(q,ce,Se)=>{const{bum:Ae,scope:Te,update:Oe,subTree:He,um:$e}=q;Ae&&m_(Ae),Te.stop(),Oe&&(Oe.active=!1,J(He,q,ce,Se)),$e&&ro($e,ce),ro(()=>{q.isUnmounted=!0},ce),ce&&ce.pendingBranch&&!ce.isUnmounted&&q.asyncDep&&!q.asyncResolved&&q.suspenseId===ce.pendingId&&(ce.deps--,ce.deps===0&&ce.resolve())},le=(q,ce,Se,Ae=!1,Te=!1,Oe=0)=>{for(let He=Oe;He<q.length;He++)J(q[He],ce,Se,Ae,Te)},fe=q=>q.shapeFlag&6?fe(q.component.subTree):q.shapeFlag&128?q.suspense.next():d(q.anchor||q.el),se=(q,ce,Se)=>{q==null?ce._vnode&&J(ce._vnode,null,null,!0):v(ce._vnode||null,q,ce,null,null,null,Se),b4(),vj(),ce._vnode=q},_e={p:v,um:J,m:Y,r:re,mt:A,mc:T,pc:$,pbc:E,n:fe,o:t};let ve,he;return e&&([ve,he]=e(_e)),{render:se,hydrate:ve,createApp:ahe(se,ve)}}function td({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function P3(t,e,n=!1){const r=t.children,a=e.children;if(dt(r)&&dt(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]=$c(a[i]),s.el=o.el),n||P3(o,s)),s.type===Ug&&(s.el=o.el)}}function dhe(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 hhe=t=>t.__isTeleport,Qy=t=>t&&(t.disabled||t.disabled===""),L4=t=>typeof SVGElement<"u"&&t instanceof SVGElement,FR=(t,e)=>{const n=t&&t.to;return $t(n)?e?e(n):null:n},phe={__isTeleport:!0,process(t,e,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,y=Qy(e.props);let{shapeFlag:m,children:b,dynamicChildren:w}=e;if(t==null){const C=e.el=v(""),x=e.anchor=v("");h(C,n,r),h(x,n,r);const _=e.target=FR(e.props,p),T=e.targetAnchor=v("");_&&(h(T,_),o=o||L4(_));const M=(E,k)=>{m&16&&c(b,E,k,a,i,o,s,l)};y?M(n,x):_&&M(_,T)}else{e.el=t.el;const C=e.anchor=t.anchor,x=e.target=t.target,_=e.targetAnchor=t.targetAnchor,T=Qy(t.props),M=T?n:x,E=T?C:_;if(o=o||L4(x),w?(d(t.dynamicChildren,w,M,a,i,o,s),P3(t,e,!0)):l||f(t,e,M,E,a,i,o,s,!1),y)T||yS(e,n,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const k=e.target=FR(e.props,p);k&&yS(e,k,null,u,0)}else T&&yS(e,x,_,u,1)}Vj(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||!Qy(d))&&(i(u),s&16))for(let h=0;h<l.length;h++){const p=l[h];a(p,e,n,!0,!!p.dynamicChildren)}},move:yS,hydrate:vhe};function yS(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||Qy(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],e,n,2);f&&r(s,e,n)}function vhe(t,e,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=e.target=FR(e.props,l);if(c){const f=c._lpa||c.firstChild;if(e.shapeFlag&16)if(Qy(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)}Vj(e)}return e.anchor&&o(e.anchor)}const eb=phe;function Vj(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 bt=Symbol.for("v-fgt"),Ug=Symbol.for("v-txt"),Vi=Symbol.for("v-cmt"),b_=Symbol.for("v-stc"),Jy=[];let Ps=null;function z(t=!1){Jy.push(Ps=t?null:[])}function ghe(){Jy.pop(),Ps=Jy[Jy.length-1]||null}let zm=1;function O4(t){zm+=t}function Bj(t){return t.dynamicChildren=zm>0?Ps||Lv:null,ghe(),zm>0&&Ps&&Ps.push(t),t}function ne(t,e,n,r,a,i){return Bj(U(t,e,n,r,a,i,!0))}function xe(t,e,n,r,a){return Bj(H(t,e,n,r,a,!0))}function Dr(t){return t?t.__v_isVNode===!0:!1}function qd(t,e){return t.type===e.type&&t.key===e.key}const BC="__vInternal",Ij=({key:t})=>t??null,S_=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?$t(t)||Ot(t)||Vt(t)?{i:ei,r:t,k:e,f:!!n}:t:null);function U(t,e=null,n=null,r=0,a=null,i=t===bt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ij(e),ref:e&&S_(e),scopeId:RC,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:ei};return s?(F3(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=$t(n)?8:16),zm>0&&!o&&Ps&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ps.push(l),l}const H=yhe;function yhe(t,e=null,n=null,r=0,a=null,i=!1){if((!t||t===Tj)&&(t=Vi),Dr(t)){const s=$u(t,e,!0);return n&&F3(s,n),zm>0&&!i&&Ps&&(s.shapeFlag&6?Ps[Ps.indexOf(t)]=s:Ps.push(s)),s.patchFlag|=-2,s}if(The(t)&&(t=t.__vccOpts),e){e=IC(e);let{class:s,style:l}=e;s&&!$t(s)&&(e.class=j(s)),an(l)&&(sj(l)&&!dt(l)&&(l=ha({},l)),e.style=St(l))}const o=$t(t)?1:$de(t)?128:hhe(t)?64:an(t)?4:Vt(t)?2:0;return U(t,e,n,r,a,o,i,!0)}function IC(t){return t?sj(t)||BC in t?ha({},t):t:null}function $u(t,e,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=t,s=e?en(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&Ij(s),ref:e&&e.ref?n&&a?dt(a)?a.concat(S_(e)):[a,S_(e)]:S_(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!==bt?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&&$u(t.ssContent),ssFallback:t.ssFallback&&$u(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function lt(t=" ",e=0){return H(Ug,null,t,e)}function H3t(t,e){const n=H(b_,null,t);return n.staticCount=e,n}function we(t="",e=!1){return e?(z(),xe(Vi,null,t)):H(Vi,null,t)}function Ml(t){return t==null||typeof t=="boolean"?H(Vi):dt(t)?H(bt,null,t.slice()):typeof t=="object"?$c(t):H(Ug,null,String(t))}function $c(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:$u(t)}function F3(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(dt(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),F3(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!(BC in e)?e._ctx=ei:a===3&&ei&&(ei.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Vt(e)?(e={default:e,_ctx:ei},n=32):(e=String(e),r&64?(n=16,e=[lt(e)]):n=8);t.children=e,t.shapeFlag|=n}function en(...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=j([e.class,r.class]));else if(a==="style")e.style=St([e.style,r.style]);else if(CC(a)){const i=e[a],o=r[a];o&&i!==o&&!(dt(i)&&i.includes(o))&&(e[a]=i?[].concat(i,o):o)}else a!==""&&(e[a]=r[a])}return e}function pl(t,e,n,r=null){Jo(t,e,7,[n,r])}const mhe=kj();let bhe=0;function She(t,e,n){const r=t.type,a=(e?e.appContext:t.appContext)||mhe,i={uid:bhe++,vnode:t,type:r,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new j7(!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:Lj(r,a),emitsOptions:yj(r,a),emit:null,emitted:null,propsDefaults:jr,inheritAttrs:r.inheritAttrs,ctx:jr,data:jr,props:jr,attrs:jr,slots:jr,refs:jr,setupState:jr,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=Ade.bind(null,i),t.ce&&t.ce(i),i}let Ua=null;const Yt=()=>Ua||ei;let z3,Ep,A4="__VUE_INSTANCE_SETTERS__";(Ep=RR()[A4])||(Ep=RR()[A4]=[]),Ep.push(t=>Ua=t),z3=t=>{Ep.length>1?Ep.forEach(e=>e(t)):Ep[0](t)};const tg=t=>{z3(t),t.scope.on()},Th=()=>{Ua&&Ua.scope.off(),z3(null)};function $j(t){return t.vnode.shapeFlag&4}let Um=!1;function whe(t,e=!1){Um=e;const{props:n,children:r}=t.vnode,a=$j(t);ihe(t,n,a,e),lhe(t,r);const i=a?_he(t,e):void 0;return Um=!1,i}function _he(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=af(new Proxy(t.ctx,Zde));const{setup:r}=n;if(r){const a=t.setupContext=r.length>1?Fj(t):null;tg(t),Pg();const i=of(r,t,0,[t.props,a]);if(Fg(),Th(),Am(i)){if(i.then(Th,Th),e)return i.then(o=>{N4(t,o,e)}).catch(o=>{DC(o,t,0)});t.asyncDep=i}else N4(t,i,e)}else Pj(t,e)}function N4(t,e,n){Vt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:an(e)&&(t.setupState=cj(e)),Pj(t,n)}let V4;function Pj(t,e,n){const r=t.type;if(!t.render){if(!e&&V4&&!r.render){const a=r.template||I3(t).template;if(a){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,u=ha(ha({isCustomElement:i,delimiters:s},o),l);r.render=V4(a,u)}}t.render=r.render||Kn}tg(t),Pg(),Qde(t),Fg(),Th()}function xhe(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return po(t,"get","$attrs"),e[n]}}))}function Fj(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return xhe(t)},slots:t.slots,emit:t.emit,expose:e}}function $C(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(cj(af(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Zy)return Zy[n](t)},has(e,n){return n in e||n in Zy}}))}function Che(t,e=!0){return Vt(t)?t.displayName||t.name:t.name||e&&t.__name}function The(t){return Vt(t)&&"__vccOpts"in t}const B=(t,e)=>dj(t,e,Um);function xt(t,e,n){const r=arguments.length;return r===2?an(e)&&!dt(e)?Dr(e)?H(t,null,[e]):H(t,e):H(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Dr(n)&&(n=[n]),H(t,e,n))}const Ehe=Symbol.for("v-scx"),Mhe=()=>pt(Ehe),Dhe="3.3.4",khe="http://www.w3.org/2000/svg",Xd=typeof document<"u"?document:null,B4=Xd&&Xd.createElement("template"),Rhe={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?Xd.createElementNS(khe,t):Xd.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>Xd.createTextNode(t),createComment:t=>Xd.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Xd.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{B4.innerHTML=r?`<svg>${t}</svg>`:t;const s=B4.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 Lhe(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 Ohe(t,e,n){const r=t.style,a=$t(n);if(n&&!a){if(e&&!$t(e))for(const i in e)n[i]==null&&zR(r,i,"");for(const i in n)zR(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 I4=/\s*!important$/;function zR(t,e,n){if(dt(n))n.forEach(r=>zR(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Ahe(t,e);I4.test(n)?t.setProperty(Nf(r),n.replace(I4,""),"important"):t[r]=n}}const $4=["Webkit","Moz","ms"],WE={};function Ahe(t,e){const n=WE[e];if(n)return n;let r=rs(e);if(r!=="filter"&&r in t)return WE[e]=r;r=J1(r);for(let a=0;a<$4.length;a++){const i=$4[a]+r;if(i in t)return WE[e]=i}return e}const P4="http://www.w3.org/1999/xlink";function Nhe(t,e,n,r,a){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(P4,e.slice(6,e.length)):t.setAttributeNS(P4,e,n);else{const i=jfe(e);n==null||i&&!G7(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function Vhe(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=G7(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function Gc(t,e,n,r){t.addEventListener(e,n,r)}function Bhe(t,e,n,r){t.removeEventListener(e,n,r)}function Ihe(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]=$he(e);if(r){const u=i[e]=zhe(r,a);Gc(t,s,u,l)}else o&&(Bhe(t,s,o,l),i[e]=void 0)}}const F4=/(?:Once|Passive|Capture)$/;function $he(t){let e;if(F4.test(t)){e={};let r;for(;r=t.match(F4);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Nf(t.slice(2)),e]}let jE=0;const Phe=Promise.resolve(),Fhe=()=>jE||(Phe.then(()=>jE=0),jE=Date.now());function zhe(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Jo(Uhe(r,n.value),e,5,[r])};return n.value=t,n.attached=Fhe(),n}function Uhe(t,e){if(dt(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 z4=/^on[a-z]/,Ghe=(t,e,n,r,a=!1,i,o,s,l)=>{e==="class"?Lhe(t,r,a):e==="style"?Ohe(t,n,r):CC(e)?S3(e)||Ihe(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Hhe(t,e,r,a))?Vhe(t,e,r,i,o,s,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Nhe(t,e,r,a))};function Hhe(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&z4.test(e)&&Vt(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||z4.test(e)&&$t(n)?!1:e in t}const dc="transition",V0="animation",Jr=(t,{slots:e})=>xt(Ude,Uj(t),e);Jr.displayName="Transition";const zj={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},Whe=Jr.props=ha({},Sj,zj),nd=(t,e=[])=>{dt(t)?t.forEach(n=>n(...e)):t&&t(...e)},U4=t=>t?dt(t)?t.some(e=>e.length>1):t.length>1:!1;function Uj(t){const e={};for(const R in t)R in zj||(e[R]=t[R]);if(t.css===!1)return e;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=jhe(a),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:b,onLeave:w,onLeaveCancelled:C,onBeforeAppear:x=y,onAppear:_=m,onAppearCancelled:T=b}=e,M=(R,L,A)=>{kc(R,L?c:s),kc(R,L?u:o),A&&A()},E=(R,L)=>{R._isLeaving=!1,kc(R,f),kc(R,h),kc(R,d),L&&L()},k=R=>(L,A)=>{const V=R?_:m,G=()=>M(L,R,A);nd(V,[L,G]),G4(()=>{kc(L,R?l:i),pu(L,R?c:s),U4(V)||H4(L,r,v,G)})};return ha(e,{onBeforeEnter(R){nd(y,[R]),pu(R,i),pu(R,o)},onBeforeAppear(R){nd(x,[R]),pu(R,l),pu(R,u)},onEnter:k(!1),onAppear:k(!0),onLeave(R,L){R._isLeaving=!0;const A=()=>E(R,L);pu(R,f),Hj(),pu(R,d),G4(()=>{R._isLeaving&&(kc(R,f),pu(R,h),U4(w)||H4(R,r,g,A))}),nd(w,[R,A])},onEnterCancelled(R){M(R,!1),nd(b,[R])},onAppearCancelled(R){M(R,!0),nd(T,[R])},onLeaveCancelled(R){E(R),nd(C,[R])}})}function jhe(t){if(t==null)return null;if(an(t))return[KE(t.enter),KE(t.leave)];{const e=KE(t);return[e,e]}}function KE(t){return Ffe(t)}function pu(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function kc(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 G4(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Khe=0;function H4(t,e,n,r){const a=t._endId=++Khe,i=()=>{a===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=Gj(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 Gj(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),a=r(`${dc}Delay`),i=r(`${dc}Duration`),o=W4(a,i),s=r(`${V0}Delay`),l=r(`${V0}Duration`),u=W4(s,l);let c=null,f=0,d=0;e===dc?o>0&&(c=dc,f=o,d=i.length):e===V0?u>0&&(c=V0,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?dc:V0:null,d=c?c===dc?i.length:l.length:0);const h=c===dc&&/\b(transform|all)(,|$)/.test(r(`${dc}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function W4(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>j4(n)+j4(t[r])))}function j4(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function Hj(){return document.body.offsetHeight}const Wj=new WeakMap,jj=new WeakMap,Kj={name:"TransitionGroup",props:ha({},Whe,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Yt(),r=bj();let a,i;return Xu(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!Qhe(a[0].el,n.vnode.el,o))return;a.forEach(qhe),a.forEach(Xhe);const s=a.filter(Zhe);Hj(),s.forEach(l=>{const u=l.el,c=u.style;pu(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,kc(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=Fn(t),s=Uj(o);let l=o.tag||bt;a=i,i=e.default?N3(e.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Pm(c,$m(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Pm(c,$m(c,s,r,n)),Wj.set(c,c.el.getBoundingClientRect())}return H(l,null,i)}}},Yhe=t=>delete t.mode;Kj.props;const Yj=Kj;function qhe(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function Xhe(t){jj.set(t,t.el.getBoundingClientRect())}function Zhe(t){const e=Wj.get(t),n=jj.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 Qhe(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}=Gj(r);return a.removeChild(r),i}const ng=t=>{const e=t.props["onUpdate:modelValue"]||!1;return dt(e)?n=>m_(e,n):e};function Jhe(t){t.target.composing=!0}function K4(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const U3={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t._assign=ng(a);const i=r||a.props&&a.props.type==="number";Gc(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;n&&(s=s.trim()),i&&(s=kR(s)),t._assign(s)}),n&&Gc(t,"change",()=>{t.value=t.value.trim()}),e||(Gc(t,"compositionstart",Jhe),Gc(t,"compositionend",K4),Gc(t,"change",K4))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:a}},i){if(t._assign=ng(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(a||t.type==="number")&&kR(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},Vx={deep:!0,created(t,e,n){t._assign=ng(n),Gc(t,"change",()=>{const r=t._modelValue,a=Xj(t),i=t.checked,o=t._assign;if(dt(r)){const s=H7(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(TC(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(Zj(t,i))})},mounted:Y4,beforeUpdate(t,e,n){t._assign=ng(n),Y4(t,e,n)}};function Y4(t,{value:e,oldValue:n},r){t._modelValue=e,dt(e)?t.checked=H7(e,r.props.value)>-1:TC(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Jv(e,Zj(t,!0)))}const qj={created(t,{value:e},n){t.checked=Jv(e,n.props.value),t._assign=ng(n),Gc(t,"change",()=>{t._assign(Xj(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=ng(r),e!==n&&(t.checked=Jv(e,r.props.value))}};function Xj(t){return"_value"in t?t._value:t.value}function Zj(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const epe=["ctrl","shift","alt","meta"],tpe={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)=>epe.some(n=>t[`${n}Key`]&&!e.includes(n))},kt=(t,e)=>(n,...r)=>{for(let a=0;a<e.length;a++){const i=tpe[e[a]];if(i&&i(n,e))return}return t(n,...r)},npe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},_n=(t,e)=>n=>{if(!("key"in n))return;const r=Nf(n.key);if(e.some(a=>a===r||npe[a]===r))return t(n)},pn={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):B0(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),B0(t,!0),r.enter(t)):r.leave(t,()=>{B0(t,!1)}):B0(t,e))},beforeUnmount(t,{value:e}){B0(t,e)}};function B0(t,e){t.style.display=e?t._vod:"none"}const rpe=ha({patchProp:Ghe},Rhe);let q4;function Qj(){return q4||(q4=che(rpe))}const rg=(...t)=>{Qj().render(...t)},Jj=(...t)=>{const e=Qj().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=ape(r);if(!a)return;const i=e._component;!Vt(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 ape(t){return $t(t)?document.querySelector(t):t}const ipe={__name:"App",setup(t){return(e,n)=>{const r=Xe("router-view");return z(),xe(r)}}},ope="modulepreload",spe=function(t,e){return new URL(t,e).href},X4={},I0=function(e,n,r){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=spe(i,r),i in X4)return;X4[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":ope,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})};/*!
  2. * vue-router v4.0.16
  3. * (c) 2022 Eduardo San Martin Morote
  4. * @license MIT
  5. */const eK=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Gg=t=>eK?Symbol(t):"_vr_"+t,lpe=Gg("rvlm"),Z4=Gg("rvd"),PC=Gg("r"),tK=Gg("rl"),UR=Gg("rvl"),ov=typeof window<"u";function upe(t){return t.__esModule||eK&&t[Symbol.toStringTag]==="Module"}const kr=Object.assign;function YE(t,e){const n={};for(const r in e){const a=e[r];n[r]=Array.isArray(a)?a.map(t):t(a)}return n}const em=()=>{},cpe=/\/$/,fpe=t=>t.replace(cpe,"");function qE(t,e,n="/"){let r,a={},i="",o="";const s=e.indexOf("?"),l=e.indexOf("#",s>-1?s:0);return s>-1&&(r=e.slice(0,s),i=e.slice(s+1,l>-1?l:e.length),a=t(i)),l>-1&&(r=r||e.slice(0,l),o=e.slice(l,e.length)),r=vpe(r??e,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function dpe(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Q4(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function hpe(t,e,n){const r=e.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&ag(e.matched[r],n.matched[a])&&nK(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function ag(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function nK(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!ppe(t[n],e[n]))return!1;return!0}function ppe(t,e){return Array.isArray(t)?J4(t,e):Array.isArray(e)?J4(e,t):t===e}function J4(t,e){return Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function vpe(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let a=n.length-1,i,o;for(i=0;i<r.length;i++)if(o=r[i],!(a===1||o==="."))if(o==="..")a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Gm;(function(t){t.pop="pop",t.push="push"})(Gm||(Gm={}));var tm;(function(t){t.back="back",t.forward="forward",t.unknown=""})(tm||(tm={}));function gpe(t){if(!t)if(ov){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),fpe(t)}const ype=/^[^#]+#/;function mpe(t,e){return t.replace(ype,"#")+e}function bpe(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 FC=()=>({left:window.pageXOffset,top:window.pageYOffset});function Spe(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=bpe(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 eP(t,e){return(history.state?history.state.position-e:-1)+t}const GR=new Map;function wpe(t,e){GR.set(t,e)}function _pe(t){const e=GR.get(t);return GR.delete(t),e}let xpe=()=>location.protocol+"//"+location.host;function rK(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),Q4(l,"")}return Q4(n,t)+r+a}function Cpe(t,e,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=rK(t,location),p=n.value,v=e.value;let g=0;if(d){if(n.value=h,e.value=d,o&&o===p){o=null;return}g=v?d.position-v.position:0}else r(h);a.forEach(y=>{y(n.value,p,{delta:g,type:Gm.pop,direction:g?g>0?tm.forward:tm.back:tm.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const p=a.indexOf(d);p>-1&&a.splice(p,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(kr({},d.state,{scroll:FC()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function tP(t,e,n,r=!1,a=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:a?FC():null}}function Tpe(t){const{history:e,location:n}=window,r={value:rK(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:xpe()+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=kr({},e.state,tP(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=kr({},a.value,e.state,{forward:l,scroll:FC()});i(c.current,c,!0);const f=kr({},tP(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 Epe(t){t=gpe(t);const e=Tpe(t),n=Cpe(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=kr({location:"",base:t,go:r,createHref:mpe.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 Mpe(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),Epe(t)}function Dpe(t){return typeof t=="string"||t&&typeof t=="object"}function aK(t){return typeof t=="string"||typeof t=="symbol"}const hc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},iK=Gg("nf");var nP;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(nP||(nP={}));function ig(t,e){return kr(new Error,{type:t,[iK]:!0},e)}function pc(t,e){return t instanceof Error&&iK in t&&(e==null||!!(t.type&e))}const rP="[^/]+?",kpe={sensitive:!1,strict:!1,start:!0,end:!0},Rpe=/[.+*?^${}()[\]/\\]/g;function Lpe(t,e){const n=kr({},kpe,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(Rpe,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:g,regexp:y}=d;i.push({name:p,repeatable:v,optional:g});const m=y||rP;if(m!==rP){h+=10;try{new RegExp(`(${m})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${m}): `+w.message)}}let b=v?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;f||(b=g&&u.length<2?`(?:/${b})`:"/"+b),g&&(b+="?"),a+=b,h+=20,g&&(h+=-8),v&&(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]||"",p=i[d-1];f[p.name]=h&&p.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:p,repeatable:v,optional:g}=h,y=p in u?u[p]:"";if(Array.isArray(y)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const m=Array.isArray(y)?y.join("/"):y;if(!m)if(g)d.length<2&&t.length>1&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=m}}return c}return{re:o,score:r,keys:i,parse:s,stringify:l}}function Ope(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 Ape(t,e){let n=0;const r=t.score,a=e.score;for(;n<r.length&&n<a.length;){const i=Ope(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(aP(r))return 1;if(aP(a))return-1}return a.length-r.length}function aP(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const Npe={type:0,value:""},Vpe=/[a-zA-Z0-9_]/;function Bpe(t){if(!t)return[[]];if(t==="/")return[[Npe]];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:Vpe.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 Ipe(t,e,n){const r=Lpe(Bpe(t.path),n),a=kr(r,{record:t,parent:e,children:[],alias:[]});return e&&!a.record.aliasOf==!e.record.aliasOf&&e.children.push(a),a}function $pe(t,e){const n=[],r=new Map;e=oP({strict:!1,end:!0,sensitive:!1},e);function a(c){return r.get(c)}function i(c,f,d){const h=!d,p=Fpe(c);p.aliasOf=d&&d.record;const v=oP(e,c),g=[p];if("alias"in c){const b=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of b)g.push(kr({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let y,m;for(const b of g){const{path:w}=b;if(f&&w[0]!=="/"){const C=f.record.path,x=C[C.length-1]==="/"?"":"/";b.path=f.record.path+(w&&x+w)}if(y=Ipe(b,f,v),d?d.alias.push(y):(m=m||y,m!==y&&m.alias.push(y),h&&c.name&&!iP(y)&&o(c.name)),"children"in p){const C=p.children;for(let x=0;x<C.length;x++)i(C[x],y,d&&d.children[x])}d=d||y,l(y)}return m?()=>{o(m)}:em}function o(c){if(aK(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&&Ape(c,n[f])>=0&&(c.record.path!==n[f].record.path||!oK(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!iP(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},p,v;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw ig(1,{location:c});v=d.record.name,h=kr(Ppe(f.params,d.keys.filter(m=>!m.optional).map(m=>m.name)),c.params),p=d.stringify(h)}else if("path"in c)p=c.path,d=n.find(m=>m.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(m=>m.re.test(f.path)),!d)throw ig(1,{location:c,currentLocation:f});v=d.record.name,h=kr({},f.params,c.params),p=d.stringify(h)}const g=[];let y=d;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:p,params:h,matched:g,meta:Upe(g)}}return t.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function Ppe(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Fpe(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:zpe(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function zpe(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function iP(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Upe(t){return t.reduce((e,n)=>kr(e,n.meta),{})}function oP(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function oK(t,e){return e.children.some(n=>n===t||oK(t,n))}const sK=/#/g,Gpe=/&/g,Hpe=/\//g,Wpe=/=/g,jpe=/\?/g,lK=/\+/g,Kpe=/%5B/g,Ype=/%5D/g,uK=/%5E/g,qpe=/%60/g,cK=/%7B/g,Xpe=/%7C/g,fK=/%7D/g,Zpe=/%20/g;function G3(t){return encodeURI(""+t).replace(Xpe,"|").replace(Kpe,"[").replace(Ype,"]")}function Qpe(t){return G3(t).replace(cK,"{").replace(fK,"}").replace(uK,"^")}function HR(t){return G3(t).replace(lK,"%2B").replace(Zpe,"+").replace(sK,"%23").replace(Gpe,"%26").replace(qpe,"`").replace(cK,"{").replace(fK,"}").replace(uK,"^")}function Jpe(t){return HR(t).replace(Wpe,"%3D")}function eve(t){return G3(t).replace(sK,"%23").replace(jpe,"%3F")}function tve(t){return t==null?"":eve(t).replace(Hpe,"%2F")}function Bx(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function nve(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(lK," "),o=i.indexOf("="),s=Bx(o<0?i:i.slice(0,o)),l=o<0?null:Bx(i.slice(o+1));if(s in e){let u=e[s];Array.isArray(u)||(u=e[s]=[u]),u.push(l)}else e[s]=l}return e}function sP(t){let e="";for(let n in t){const r=t[n];if(n=Jpe(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&HR(i)):[r&&HR(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function rve(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Array.isArray(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return e}function $0(){let t=[];function e(r){return t.push(r),()=>{const a=t.indexOf(r);a>-1&&t.splice(a,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function Pc(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(ig(4,{from:n,to:e})):f instanceof Error?s(f):Dpe(f)?s(ig(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 XE(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(ave(s)){const u=(s.__vccOpts||s)[e];u&&a.push(Pc(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=upe(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[e];return d&&Pc(d,n,r,i,o)()}))}}return a}function ave(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function lP(t){const e=pt(PC),n=pt(tK),r=B(()=>e.resolve(S(t.to))),a=B(()=>{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(ag.bind(null,c));if(d>-1)return d;const h=uP(l[u-2]);return u>1&&uP(c)===h&&f[f.length-1].path!==h?f.findIndex(ag.bind(null,l[u-2])):d}),i=B(()=>a.value>-1&&lve(n.params,r.value.params)),o=B(()=>a.value>-1&&a.value===n.matched.length-1&&nK(n.params,r.value.params));function s(l={}){return sve(l)?e[S(t.replace)?"replace":"push"](S(t.to)).catch(em):Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const ive=pe({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:lP,setup(t,{slots:e}){const n=Rn(lP(t)),{options:r}=pt(PC),a=B(()=>({[cP(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[cP(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:xt("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),ove=ive;function sve(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 lve(t,e){for(const n in e){const r=e[n],a=t[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Array.isArray(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function uP(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const cP=(t,e,n)=>t??e??n,uve=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=pt(UR),a=B(()=>t.route||r.value),i=pt(Z4,0),o=B(()=>a.value.matched[i]);on(Z4,i+1),on(lpe,o),on(UR,a);const s=W();return Ge(()=>[s.value,o.value,t.name],([l,u,c],[f,d,h])=>{u&&(u.instances[c]=l,d&&d!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),l&&u&&(!d||!ag(u,d)||!f)&&(u.enterCallbacks[c]||[]).forEach(p=>p(l))},{flush:"post"}),()=>{const l=a.value,u=o.value,c=u&&u.components[t.name],f=t.name;if(!c)return fP(n.default,{Component:c,route:l});const d=u.props[t.name],h=d?d===!0?l.params:typeof d=="function"?d(l):d:null,v=xt(c,kr({},h,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return fP(n.default,{Component:v,route:l})||v}}});function fP(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const cve=uve;function fve(t){const e=$pe(t.routes,t),n=t.parseQuery||nve,r=t.stringifyQuery||sP,a=t.history,i=$0(),o=$0(),s=$0(),l=or(hc);let u=hc;ov&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=YE.bind(null,ue=>""+ue),f=YE.bind(null,tve),d=YE.bind(null,Bx);function h(ue,le){let fe,se;return aK(ue)?(fe=e.getRecordMatcher(ue),se=le):se=ue,e.addRoute(se,fe)}function p(ue){const le=e.getRecordMatcher(ue);le&&e.removeRoute(le)}function v(){return e.getRoutes().map(ue=>ue.record)}function g(ue){return!!e.getRecordMatcher(ue)}function y(ue,le){if(le=kr({},le||l.value),typeof ue=="string"){const q=qE(n,ue,le.path),ce=e.resolve({path:q.path},le),Se=a.createHref(q.fullPath);return kr(q,ce,{params:d(ce.params),hash:Bx(q.hash),redirectedFrom:void 0,href:Se})}let fe;if("path"in ue)fe=kr({},ue,{path:qE(n,ue.path,le.path).path});else{const q=kr({},ue.params);for(const ce in q)q[ce]==null&&delete q[ce];fe=kr({},ue,{params:f(ue.params)}),le.params=f(le.params)}const se=e.resolve(fe,le),_e=ue.hash||"";se.params=c(d(se.params));const ve=dpe(r,kr({},ue,{hash:Qpe(_e),path:se.path})),he=a.createHref(ve);return kr({fullPath:ve,hash:_e,query:r===sP?rve(ue.query):ue.query||{}},se,{redirectedFrom:void 0,href:he})}function m(ue){return typeof ue=="string"?qE(n,ue,l.value.path):kr({},ue)}function b(ue,le){if(u!==ue)return ig(8,{from:le,to:ue})}function w(ue){return _(ue)}function C(ue){return w(kr(m(ue),{replace:!0}))}function x(ue){const le=ue.matched[ue.matched.length-1];if(le&&le.redirect){const{redirect:fe}=le;let se=typeof fe=="function"?fe(ue):fe;return typeof se=="string"&&(se=se.includes("?")||se.includes("#")?se=m(se):{path:se},se.params={}),kr({query:ue.query,hash:ue.hash,params:ue.params},se)}}function _(ue,le){const fe=u=y(ue),se=l.value,_e=ue.state,ve=ue.force,he=ue.replace===!0,q=x(fe);if(q)return _(kr(m(q),{state:_e,force:ve,replace:he}),le||fe);const ce=fe;ce.redirectedFrom=le;let Se;return!ve&&hpe(r,se,fe)&&(Se=ig(16,{to:ce,from:se}),P(se,se,!0,!1)),(Se?Promise.resolve(Se):M(ce,se)).catch(Ae=>pc(Ae)?pc(Ae,2)?Ae:N(Ae):I(Ae,ce,se)).then(Ae=>{if(Ae){if(pc(Ae,2))return _(kr(m(Ae.to),{state:_e,force:ve,replace:he}),le||ce)}else Ae=k(ce,se,!0,he,_e);return E(ce,se,Ae),Ae})}function T(ue,le){const fe=b(ue,le);return fe?Promise.reject(fe):Promise.resolve()}function M(ue,le){let fe;const[se,_e,ve]=dve(ue,le);fe=XE(se.reverse(),"beforeRouteLeave",ue,le);for(const q of se)q.leaveGuards.forEach(ce=>{fe.push(Pc(ce,ue,le))});const he=T.bind(null,ue,le);return fe.push(he),Mp(fe).then(()=>{fe=[];for(const q of i.list())fe.push(Pc(q,ue,le));return fe.push(he),Mp(fe)}).then(()=>{fe=XE(_e,"beforeRouteUpdate",ue,le);for(const q of _e)q.updateGuards.forEach(ce=>{fe.push(Pc(ce,ue,le))});return fe.push(he),Mp(fe)}).then(()=>{fe=[];for(const q of ue.matched)if(q.beforeEnter&&!le.matched.includes(q))if(Array.isArray(q.beforeEnter))for(const ce of q.beforeEnter)fe.push(Pc(ce,ue,le));else fe.push(Pc(q.beforeEnter,ue,le));return fe.push(he),Mp(fe)}).then(()=>(ue.matched.forEach(q=>q.enterCallbacks={}),fe=XE(ve,"beforeRouteEnter",ue,le),fe.push(he),Mp(fe))).then(()=>{fe=[];for(const q of o.list())fe.push(Pc(q,ue,le));return fe.push(he),Mp(fe)}).catch(q=>pc(q,8)?q:Promise.reject(q))}function E(ue,le,fe){for(const se of s.list())se(ue,le,fe)}function k(ue,le,fe,se,_e){const ve=b(ue,le);if(ve)return ve;const he=le===hc,q=ov?history.state:{};fe&&(se||he?a.replace(ue.fullPath,kr({scroll:he&&q&&q.scroll},_e)):a.push(ue.fullPath,_e)),l.value=ue,P(ue,le,fe,he),N()}let R;function L(){R||(R=a.listen((ue,le,fe)=>{const se=y(ue),_e=x(se);if(_e){_(kr(_e,{replace:!0}),se).catch(em);return}u=se;const ve=l.value;ov&&wpe(eP(ve.fullPath,fe.delta),FC()),M(se,ve).catch(he=>pc(he,12)?he:pc(he,2)?(_(he.to,se).then(q=>{pc(q,20)&&!fe.delta&&fe.type===Gm.pop&&a.go(-1,!1)}).catch(em),Promise.reject()):(fe.delta&&a.go(-fe.delta,!1),I(he,se,ve))).then(he=>{he=he||k(se,ve,!1),he&&(fe.delta?a.go(-fe.delta,!1):fe.type===Gm.pop&&pc(he,20)&&a.go(-1,!1)),E(se,ve,he)}).catch(em)}))}let A=$0(),V=$0(),G;function I(ue,le,fe){N(ue);const se=V.list();return se.length?se.forEach(_e=>_e(ue,le,fe)):console.error(ue),Promise.reject(ue)}function $(){return G&&l.value!==hc?Promise.resolve():new Promise((ue,le)=>{A.add([ue,le])})}function N(ue){return G||(G=!ue,L(),A.list().forEach(([le,fe])=>ue?fe(ue):le()),A.reset()),ue}function P(ue,le,fe,se){const{scrollBehavior:_e}=t;if(!ov||!_e)return Promise.resolve();const ve=!fe&&_pe(eP(ue.fullPath,0))||(se||!fe)&&history.state&&history.state.scroll||null;return yt().then(()=>_e(ue,le,ve)).then(he=>he&&Spe(he)).catch(he=>I(he,ue,le))}const Y=ue=>a.go(ue);let J;const re=new Set;return{currentRoute:l,addRoute:h,removeRoute:p,hasRoute:g,getRoutes:v,resolve:y,options:t,push:w,replace:C,go:Y,back:()=>Y(-1),forward:()=>Y(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:V.add,isReady:$,install(ue){const le=this;ue.component("RouterLink",ove),ue.component("RouterView",cve),ue.config.globalProperties.$router=le,Object.defineProperty(ue.config.globalProperties,"$route",{enumerable:!0,get:()=>S(l)}),ov&&!J&&l.value===hc&&(J=!0,w(a.location).catch(_e=>{}));const fe={};for(const _e in hc)fe[_e]=B(()=>l.value[_e]);ue.provide(PC,le),ue.provide(tK,Rn(fe)),ue.provide(UR,l);const se=ue.unmount;re.add(ue),ue.unmount=function(){re.delete(ue),re.size<1&&(u=hc,R&&R(),R=null,l.value=hc,J=!1,G=!1),se()}}}}function Mp(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function dve(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=>ag(u,s))?r.push(s):n.push(s));const l=t.matched[o];l&&(e.matched.find(u=>ag(u,l))||a.push(l))}return[n,r,a]}function hve(){return pt(PC)}function dK(t,e){return function(){return t.apply(e,arguments)}}const{toString:pve}=Object.prototype,{getPrototypeOf:H3}=Object,zC=(t=>e=>{const n=pve.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),eu=t=>(t=t.toLowerCase(),e=>zC(e)===t),UC=t=>e=>typeof e===t,{isArray:Hg}=Array,Hm=UC("undefined");function vve(t){return t!==null&&!Hm(t)&&t.constructor!==null&&!Hm(t.constructor)&&es(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const hK=eu("ArrayBuffer");function gve(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&hK(t.buffer),e}const yve=UC("string"),es=UC("function"),pK=UC("number"),GC=t=>t!==null&&typeof t=="object",mve=t=>t===!0||t===!1,w_=t=>{if(zC(t)!=="object")return!1;const e=H3(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},bve=eu("Date"),Sve=eu("File"),wve=eu("Blob"),_ve=eu("FileList"),xve=t=>GC(t)&&es(t.pipe),Cve=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||es(t.append)&&((e=zC(t))==="formdata"||e==="object"&&es(t.toString)&&t.toString()==="[object FormData]"))},Tve=eu("URLSearchParams"),Eve=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tb(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),Hg(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 vK(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 gK=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),yK=t=>!Hm(t)&&t!==gK;function WR(){const{caseless:t}=yK(this)&&this||{},e={},n=(r,a)=>{const i=t&&vK(e,a)||a;w_(e[i])&&w_(r)?e[i]=WR(e[i],r):w_(r)?e[i]=WR({},r):Hg(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&tb(arguments[r],n);return e}const Mve=(t,e,n,{allOwnKeys:r}={})=>(tb(e,(a,i)=>{n&&es(a)?t[i]=dK(a,n):t[i]=a},{allOwnKeys:r}),t),Dve=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),kve=(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)},Rve=(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&&H3(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Lve=(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},Ove=t=>{if(!t)return null;if(Hg(t))return t;let e=t.length;if(!pK(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Ave=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&H3(Uint8Array)),Nve=(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])}},Vve=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Bve=eu("HTMLFormElement"),Ive=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),dP=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),$ve=eu("RegExp"),mK=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};tb(n,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(r[i]=o||a)}),Object.defineProperties(t,r)},Pve=t=>{mK(t,(e,n)=>{if(es(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(es(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+"'")})}})},Fve=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Hg(t)?r(t):r(String(t).split(e)),n},zve=()=>{},Uve=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ZE="abcdefghijklmnopqrstuvwxyz",hP="0123456789",bK={DIGIT:hP,ALPHA:ZE,ALPHA_DIGIT:ZE+ZE.toUpperCase()+hP},Gve=(t=16,e=bK.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Hve(t){return!!(t&&es(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Wve=t=>{const e=new Array(10),n=(r,a)=>{if(GC(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=Hg(r)?[]:{};return tb(r,(o,s)=>{const l=n(o,a+1);!Hm(l)&&(i[s]=l)}),e[a]=void 0,i}}return r};return n(t,0)},jve=eu("AsyncFunction"),Kve=t=>t&&(GC(t)||es(t))&&es(t.then)&&es(t.catch),vt={isArray:Hg,isArrayBuffer:hK,isBuffer:vve,isFormData:Cve,isArrayBufferView:gve,isString:yve,isNumber:pK,isBoolean:mve,isObject:GC,isPlainObject:w_,isUndefined:Hm,isDate:bve,isFile:Sve,isBlob:wve,isRegExp:$ve,isFunction:es,isStream:xve,isURLSearchParams:Tve,isTypedArray:Ave,isFileList:_ve,forEach:tb,merge:WR,extend:Mve,trim:Eve,stripBOM:Dve,inherits:kve,toFlatObject:Rve,kindOf:zC,kindOfTest:eu,endsWith:Lve,toArray:Ove,forEachEntry:Nve,matchAll:Vve,isHTMLForm:Bve,hasOwnProperty:dP,hasOwnProp:dP,reduceDescriptors:mK,freezeMethods:Pve,toObjectSet:Fve,toCamelCase:Ive,noop:zve,toFiniteNumber:Uve,findKey:vK,global:gK,isContextDefined:yK,ALPHABET:bK,generateString:Gve,isSpecCompliantForm:Hve,toJSONObject:Wve,isAsyncFn:jve,isThenable:Kve};function ir(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)}vt.inherits(ir,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:vt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const SK=ir.prototype,wK={};["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=>{wK[t]={value:t}});Object.defineProperties(ir,wK);Object.defineProperty(SK,"isAxiosError",{value:!0});ir.from=(t,e,n,r,a,i)=>{const o=Object.create(SK);return vt.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),ir.call(o,t.message,e,n,r,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const Yve=null;function jR(t){return vt.isPlainObject(t)||vt.isArray(t)}function _K(t){return vt.endsWith(t,"[]")?t.slice(0,-2):t}function pP(t,e,n){return t?t.concat(e).map(function(a,i){return a=_K(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function qve(t){return vt.isArray(t)&&!t.some(jR)}const Xve=vt.toFlatObject(vt,{},null,function(e){return/^is[A-Z]/.test(e)});function HC(t,e,n){if(!vt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!vt.isUndefined(g[v])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&vt.isSpecCompliantForm(e);if(!vt.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(vt.isDate(p))return p.toISOString();if(!l&&vt.isBlob(p))throw new ir("Blob is not supported. Use a Buffer instead.");return vt.isArrayBuffer(p)||vt.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,g){let y=p;if(p&&!g&&typeof p=="object"){if(vt.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(vt.isArray(p)&&qve(p)||(vt.isFileList(p)||vt.endsWith(v,"[]"))&&(y=vt.toArray(p)))return v=_K(v),y.forEach(function(b,w){!(vt.isUndefined(b)||b===null)&&e.append(o===!0?pP([v],w,i):o===null?v:v+"[]",u(b))}),!1}return jR(p)?!0:(e.append(pP(g,v,i),u(p)),!1)}const f=[],d=Object.assign(Xve,{defaultVisitor:c,convertValue:u,isVisitable:jR});function h(p,v){if(!vt.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),vt.forEach(p,function(y,m){(!(vt.isUndefined(y)||y===null)&&a.call(e,y,vt.isString(m)?m.trim():m,v,d))===!0&&h(y,v?v.concat(m):[m])}),f.pop()}}if(!vt.isObject(t))throw new TypeError("data must be an object");return h(t),e}function vP(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function W3(t,e){this._pairs=[],t&&HC(t,this,e)}const xK=W3.prototype;xK.append=function(e,n){this._pairs.push([e,n])};xK.toString=function(e){const n=e?function(r){return e.call(this,r,vP)}:vP;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Zve(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function CK(t,e,n){if(!e)return t;const r=n&&n.encode||Zve,a=n&&n.serialize;let i;if(a?i=a(e,n):i=vt.isURLSearchParams(e)?e.toString():new W3(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Qve{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){vt.forEach(this.handlers,function(r){r!==null&&e(r)})}}const gP=Qve,TK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jve=typeof URLSearchParams<"u"?URLSearchParams:W3,ege=typeof FormData<"u"?FormData:null,tge=typeof Blob<"u"?Blob:null,nge=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),rge=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Fs={isBrowser:!0,classes:{URLSearchParams:Jve,FormData:ege,Blob:tge},isStandardBrowserEnv:nge,isStandardBrowserWebWorkerEnv:rge,protocols:["http","https","file","blob","url","data"]};function age(t,e){return HC(t,new Fs.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Fs.isNode&&vt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function ige(t){return vt.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function oge(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 EK(t){function e(n,r,a,i){let o=n[i++];const s=Number.isFinite(+o),l=i>=n.length;return o=!o&&vt.isArray(a)?a.length:o,l?(vt.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!vt.isObject(a[o]))&&(a[o]=[]),e(n,r,a[o],i)&&vt.isArray(a[o])&&(a[o]=oge(a[o])),!s)}if(vt.isFormData(t)&&vt.isFunction(t.entries)){const n={};return vt.forEachEntry(t,(r,a)=>{e(ige(r),a,n,0)}),n}return null}function sge(t,e,n){if(vt.isString(t))try{return(e||JSON.parse)(t),vt.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const j3={transitional:TK,adapter:Fs.isNode?"http":"xhr",transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=vt.isObject(e);if(i&&vt.isHTMLForm(e)&&(e=new FormData(e)),vt.isFormData(e))return a&&a?JSON.stringify(EK(e)):e;if(vt.isArrayBuffer(e)||vt.isBuffer(e)||vt.isStream(e)||vt.isFile(e)||vt.isBlob(e))return e;if(vt.isArrayBufferView(e))return e.buffer;if(vt.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 age(e,this.formSerializer).toString();if((s=vt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return HC(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),sge(e)):e}],transformResponse:[function(e){const n=this.transitional||j3.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(e&&vt.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"?ir.from(s,ir.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:Fs.classes.FormData,Blob:Fs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vt.forEach(["delete","get","head","post","put","patch"],t=>{j3.headers[t]={}});const K3=j3,lge=vt.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"]),uge=t=>{const e={};let n,r,a;return t&&t.split(`
  6. `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||e[n]&&lge[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},yP=Symbol("internals");function P0(t){return t&&String(t).trim().toLowerCase()}function __(t){return t===!1||t==null?t:vt.isArray(t)?t.map(__):String(t)}function cge(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 fge=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function QE(t,e,n,r,a){if(vt.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!vt.isString(e)){if(vt.isString(r))return e.indexOf(r)!==-1;if(vt.isRegExp(r))return r.test(e)}}function dge(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function hge(t,e){const n=vt.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 WC{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function i(s,l,u){const c=P0(l);if(!c)throw new Error("header name must be a non-empty string");const f=vt.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=__(s))}const o=(s,l)=>vt.forEach(s,(u,c)=>i(u,c,l));return vt.isPlainObject(e)||e instanceof this.constructor?o(e,n):vt.isString(e)&&(e=e.trim())&&!fge(e)?o(uge(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=P0(e),e){const r=vt.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return cge(a);if(vt.isFunction(n))return n.call(this,a,r);if(vt.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=P0(e),e){const r=vt.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||QE(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function i(o){if(o=P0(o),o){const s=vt.findKey(r,o);s&&(!n||QE(r,r[s],s,n))&&(delete r[s],a=!0)}}return vt.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||QE(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const n=this,r={};return vt.forEach(this,(a,i)=>{const o=vt.findKey(r,i);if(o){n[o]=__(a),delete n[i];return}const s=e?dge(i):String(i).trim();s!==i&&delete n[i],n[s]=__(a),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return vt.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&vt.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(`
  7. `)}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[yP]=this[yP]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=P0(o);r[s]||(hge(a,o),r[s]=!0)}return vt.isArray(e)?e.forEach(i):i(e),this}}WC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);vt.reduceDescriptors(WC.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});vt.freezeMethods(WC);const Ou=WC;function JE(t,e){const n=this||K3,r=e||n,a=Ou.from(r.headers);let i=r.data;return vt.forEach(t,function(s){i=s.call(n,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function MK(t){return!!(t&&t.__CANCEL__)}function nb(t,e,n){ir.call(this,t??"canceled",ir.ERR_CANCELED,e,n),this.name="CanceledError"}vt.inherits(nb,ir,{__CANCEL__:!0});function pge(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ir("Request failed with status code "+n.status,[ir.ERR_BAD_REQUEST,ir.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const vge=Fs.isStandardBrowserEnv?function(){return{write:function(n,r,a,i,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),vt.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),vt.isString(i)&&l.push("path="+i),vt.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 gge(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function yge(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function DK(t,e){return t&&!gge(e)?yge(t,e):e}const mge=Fs.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=vt.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function bge(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Sge(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 mP(t,e){let n=0;const r=Sge(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 wge=typeof XMLHttpRequest<"u",_ge=wge&&function(t){return new Promise(function(n,r){let a=t.data;const i=Ou.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}vt.isFormData(a)&&(Fs.isStandardBrowserEnv||Fs.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const c=DK(t.baseURL,t.url);u.open(t.method.toUpperCase(),CK(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const h=Ou.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};pge(function(y){n(y),l()},function(y){r(y),l()},v),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new ir("Request aborted",ir.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new ir("Network Error",ir.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const v=t.transitional||TK;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),r(new ir(p,v.clarifyTimeoutError?ir.ETIMEDOUT:ir.ECONNABORTED,t,u)),u=null},Fs.isStandardBrowserEnv){const h=(t.withCredentials||mge(c))&&t.xsrfCookieName&&vge.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&vt.forEach(i.toJSON(),function(p,v){u.setRequestHeader(v,p)}),vt.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",mP(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",mP(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{u&&(r(!h||h.type?new nb(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=bge(c);if(d&&Fs.protocols.indexOf(d)===-1){r(new ir("Unsupported protocol "+d+":",ir.ERR_BAD_REQUEST,t));return}u.send(a||null)})},x_={http:Yve,xhr:_ge};vt.forEach(x_,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const kK={getAdapter:t=>{t=vt.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let a=0;a<e&&(n=t[a],!(r=vt.isString(n)?x_[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new ir(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(vt.hasOwnProp(x_,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!vt.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:x_};function eM(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new nb(null,t)}function bP(t){return eM(t),t.headers=Ou.from(t.headers),t.data=JE.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),kK.getAdapter(t.adapter||K3.adapter)(t).then(function(r){return eM(t),r.data=JE.call(t,t.transformResponse,r),r.headers=Ou.from(r.headers),r},function(r){return MK(r)||(eM(t),r&&r.response&&(r.response.data=JE.call(t,t.transformResponse,r.response),r.response.headers=Ou.from(r.response.headers))),Promise.reject(r)})}const SP=t=>t instanceof Ou?t.toJSON():t;function og(t,e){e=e||{};const n={};function r(u,c,f){return vt.isPlainObject(u)&&vt.isPlainObject(c)?vt.merge.call({caseless:f},u,c):vt.isPlainObject(c)?vt.merge({},c):vt.isArray(c)?c.slice():c}function a(u,c,f){if(vt.isUndefined(c)){if(!vt.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!vt.isUndefined(c))return r(void 0,c)}function o(u,c){if(vt.isUndefined(c)){if(!vt.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(SP(u),SP(c),!0)};return vt.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||a,d=f(t[c],e[c],c);vt.isUndefined(d)&&f!==s||(n[c]=d)}),n}const RK="1.5.0",Y3={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Y3[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const wP={};Y3.transitional=function(e,n,r){function a(i,o){return"[Axios v"+RK+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new ir(a(o," has been removed"+(n?" in "+n:"")),ir.ERR_DEPRECATED);return n&&!wP[o]&&(wP[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 xge(t,e,n){if(typeof t!="object")throw new ir("options must be an object",ir.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 ir("option "+i+" must be "+l,ir.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ir("Unknown option "+i,ir.ERR_BAD_OPTION)}}const KR={assertOptions:xge,validators:Y3},vc=KR.validators;class Ix{constructor(e){this.defaults=e,this.interceptors={request:new gP,response:new gP}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=og(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&KR.assertOptions(r,{silentJSONParsing:vc.transitional(vc.boolean),forcedJSONParsing:vc.transitional(vc.boolean),clarifyTimeoutError:vc.transitional(vc.boolean)},!1),a!=null&&(vt.isFunction(a)?n.paramsSerializer={serialize:a}:KR.assertOptions(a,{encode:vc.function,serialize:vc.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&vt.merge(i.common,i[n.method]);i&&vt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Ou.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const p=[bP.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const p=s[f++],v=s[f++];try{h=p(h)}catch(g){v.call(this,g);break}}try{c=bP.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=og(this.defaults,e);const n=DK(e.baseURL,e.url);return CK(n,e.params,e.paramsSerializer)}}vt.forEach(["delete","get","head","options"],function(e){Ix.prototype[e]=function(n,r){return this.request(og(r||{},{method:e,url:n,data:(r||{}).data}))}});vt.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,s){return this.request(og(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ix.prototype[e]=n(),Ix.prototype[e+"Form"]=n(!0)});const C_=Ix;let Cge=class LK{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 nb(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 LK(function(a){e=a}),cancel:e}}};const Tge=Cge;function Ege(t){return function(n){return t.apply(null,n)}}function Mge(t){return vt.isObject(t)&&t.isAxiosError===!0}const YR={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(YR).forEach(([t,e])=>{YR[e]=t});const Dge=YR;function OK(t){const e=new C_(t),n=dK(C_.prototype.request,e);return vt.extend(n,C_.prototype,e,{allOwnKeys:!0}),vt.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return OK(og(t,a))},n}const wa=OK(K3);wa.Axios=C_;wa.CanceledError=nb;wa.CancelToken=Tge;wa.isCancel=MK;wa.VERSION=RK;wa.toFormData=HC;wa.AxiosError=ir;wa.Cancel=wa.CanceledError;wa.all=function(e){return Promise.all(e)};wa.spread=Ege;wa.isAxiosError=Mge;wa.mergeConfig=og;wa.AxiosHeaders=Ou;wa.formToJSON=t=>EK(vt.isHTMLForm(t)?new FormData(t):t);wa.getAdapter=kK.getAdapter;wa.HttpStatusCode=Dge;wa.default=wa;const yf=wa;var kge=!1;/*!
  8. * pinia v2.1.6
  9. * (c) 2023 Eduardo San Martin Morote
  10. * @license MIT
  11. */const Rge=Symbol();var _P;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(_P||(_P={}));function Lge(){const t=K7(!0),e=t.run(()=>W({}));let n=[],r=[];const a=af({install(i){a._a=i,i.provide(Rge,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!kge?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}function Oge(t){return typeof t=="object"&&t!==null}function xP(t,e){return t=Oge(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 Age(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function Nge(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 Vge(t,e){return e.reduce((n,r)=>{const a=r.split(".");return Nge(n,a,Age(t,a))},{})}function CP(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 TP(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?Vge(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function Bge(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=>xP(s,t)):[xP(r,t)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:u=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:d=null,debug:h=!1})=>{var p;return{storage:s,beforeRestore:l,afterRestore:u,serializer:c,key:((p=t.key)!=null?p:v=>v)(typeof f=="string"?f:f(a.$id)),paths:d,debug:h}});a.$persist=()=>{o.forEach(s=>{TP(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(e)),CP(a,l),s&&(c==null||c(e))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(e),CP(a,s),u==null||u(e),a.$subscribe((c,f)=>{TP(f,s)},{detached:!0})})}}var Ige=Bge();const bv=Lge();bv.use(Ige);var aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $ge(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 Pge={exports:{}};/*!
  12. * JavaScript Cookie v2.2.0
  13. * https://github.com/js-cookie/js-cookie
  14. *
  15. * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
  16. * Released under the MIT license
  17. */(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("; "):[],p=/(%[0-9A-Z]{2})+/g,v=0;v<h.length;v++){var g=h[v].split("="),y=g.slice(1).join("=");!this.json&&y.charAt(0)==='"'&&(y=y.slice(1,-1));try{var m=g[0].replace(p,decodeURIComponent);if(y=a.read?a.read(y,m):a(y,m)||y.replace(p,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(){})})})(Pge);const Fge="",F0=Symbol("showMessage");let zge=class{success(e,n=!0){this[F0]("success",e,n)}warning(e,n=!0){this[F0]("warning",e,n)}info(e,n=!0){this[F0]("info",e,n)}error(e,n=!0){this[F0]("error",e,n)}[F0](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)}},Uge=new zge;const Hc=[],Gge=yf.CancelToken;let Hge="000000000"|"0000000";yf.defaults.timeout=2e4;yf.defaults.baseURL="/disaster";yf.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8";yf.interceptors.request.use(t=>{const e=JSON.stringify(t.url)+(t.data?JSON.stringify(t.data):JSON.stringify(t.params));return t.cancelToken=new Gge(n=>{}),Hc.includes(e),Hc.push(e),t},t=>Promise.reject(t));yf.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(Hc.splice(Hc.findIndex(n=>n===e),1),t.status===200){let{data:n}=t;return n.returnCode==Hge?Promise.resolve(n):(n.returnMsg==="系统没有登录或会话超时!"&&(bv.dispatch("user/changeState",{key:"token",value:""}),bv.dispatch("user/changeState",{key:"name",value:""}),bv.dispatch("user/changeState",{key:"userId",value:""}),bv.dispatch("user/changeState",{key:"loginStatus",value:!1}),MessageBox.confirm("系统没有登录或会话超时, 是否登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"warning"}).then(()=>{MessageBox.close();let r=window.location.protocol+"//"+window.location.host+"/"+Fge;window.location.href=r}).catch(()=>{Uge.info("已取消!"),MessageBox.close()})),Promise.reject(n))}else return Promise.reject(t)},t=>{const{res:e}=t;if(e)return Hc.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 Hc.splice(Hc.findIndex(r=>r===Tr),1),Promise.reject(n)}});function Wge(t="service"){let e="";return t=="service"?e="/TransServlet":t=="manager"&&(e="/managersvr/TransServlet"),e}function jge(t,e){t.clientToken="e47b87eec69545559d1e81e56626da68";let n="5f06c8bc77234f969d13e160b54c27e3";return t.userId=n,t.channelNo=e,t}const Tr=(t,e="service",n="post")=>{let r=Wge(e);return t=jge(t,e),new Promise((a,i)=>{n=="post"?yf.post(r,t).then(o=>{a(o)}).catch(o=>{i(o)}):n=="get"&&yf.get(r,{params:t}).then(o=>{a(o)}).catch(o=>{i(o)})})},Kge='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Yge=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,EP=t=>Array.from(t.querySelectorAll(Kge)).filter(e=>qge(e)&&Yge(e)),qge=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}},T_=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},AK=t=>!t.getAttribute("aria-owns"),NK=(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},E_=t=>{t&&(t.focus(),!AK(t)&&t.click())},Fr=(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)},MP=t=>e=>e.pointerType==="mouse"?t(e):void 0;var Xge=Object.defineProperty,Zge=Object.defineProperties,Qge=Object.getOwnPropertyDescriptors,DP=Object.getOwnPropertySymbols,Jge=Object.prototype.hasOwnProperty,e0e=Object.prototype.propertyIsEnumerable,kP=(t,e,n)=>e in t?Xge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,t0e=(t,e)=>{for(var n in e||(e={}))Jge.call(e,n)&&kP(t,n,e[n]);if(DP)for(var n of DP(e))e0e.call(e,n)&&kP(t,n,e[n]);return t},n0e=(t,e)=>Zge(t,Qge(e));function RP(t,e){var n;const r=or();return To(()=>{r.value=t()},n0e(t0e({},e),{flush:(n=e==null?void 0:e.flush)!=null?n:"sync"})),zg(r)}var LP;const Sn=typeof window<"u",r0e=t=>typeof t<"u",a0e=t=>typeof t=="function",i0e=t=>typeof t=="string",sg=()=>{},VK=Sn&&((LP=window==null?void 0:window.navigator)==null?void 0:LP.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function mf(t){return typeof t=="function"?t():S(t)}function BK(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 o0e(t,e={}){let n,r,a=sg;const i=s=>{clearTimeout(s),a(),a=sg};return s=>{const l=mf(t),u=mf(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 s0e(t,e=!0,n=!0,r=!1){let a=0,i,o=!0,s=sg,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=sg)};return f=>{const d=mf(t),h=Date.now()-a,p=()=>l=f();return u(),d<=0?(a=Date.now(),p()):(h>d&&(n||!o)?(a=Date.now(),p()):e&&(l=new Promise((v,g)=>{s=r?g:v,i=setTimeout(()=>{a=Date.now(),o=!0,v(p()),u()},Math.max(0,d-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function l0e(t){return t}function jC(t){return Y7()?(q7(t),!0):!1}function u0e(t,e=200,n={}){return BK(o0e(e,n),t)}function c0e(t,e=200,n={}){const r=W(t.value),a=u0e(()=>{r.value=t.value},e,n);return Ge(t,()=>a()),r}function IK(t,e=200,n=!1,r=!0,a=!1){return BK(s0e(e,n,r,a),t)}function q3(t,e=!0){Yt()?Pt(t):e?t():yt(t)}function Gh(t,e,n={}){const{immediate:r=!0}=n,a=W(!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)},mf(e))}return r&&(a.value=!0,Sn&&l()),jC(s),{isPending:zg(a),start:l,stop:s}}function _o(t){var e;const n=mf(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Wg=Sn?window:void 0,f0e=Sn?window.document:void 0;function Sr(...t){let e,n,r,a;if(i0e(t[0])||Array.isArray(t[0])?([n,r,a]=t,e=Wg):[e,n,r,a]=t,!e)return sg;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=Ge(()=>[_o(e),mf(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 jC(u),u}let OP=!1;function X3(t,e,n={}){const{window:r=Wg,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;VK&&!OP&&(OP=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",sg)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=_o(h);return p&&(d.target===p||d.composedPath().includes(p))}}),c=[Sr(r,"click",d=>{const h=_o(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}),Sr(r,"pointerdown",d=>{const h=_o(t);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&Sr(r,"blur",d=>{var h;const p=_o(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function d0e(t,e=!1){const n=W(),r=()=>n.value=!!t();return r(),q3(r,e),n}function h0e(t){return JSON.parse(JSON.stringify(t))}const AP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},NP="__vueuse_ssr_handlers__";AP[NP]=AP[NP]||{};function p0e(t,e,{window:n=Wg,initialValue:r=""}={}){const a=W(r),i=B(()=>{var o;return _o(e)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return Ge([i,()=>mf(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}),Ge(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(mf(t),o)}),a}function v0e({document:t=f0e}={}){if(!t)return W("visible");const e=W(t.visibilityState);return Sr(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var VP=Object.getOwnPropertySymbols,g0e=Object.prototype.hasOwnProperty,y0e=Object.prototype.propertyIsEnumerable,m0e=(t,e)=>{var n={};for(var r in t)g0e.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&VP)for(var r of VP(t))e.indexOf(r)<0&&y0e.call(t,r)&&(n[r]=t[r]);return n};function yi(t,e,n={}){const r=n,{window:a=Wg}=r,i=m0e(r,["window"]);let o;const s=d0e(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ge(()=>_o(t),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(e),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return jC(c),{isSupported:s,stop:c}}function BP(t,e={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=e,o=W(0),s=W(0),l=W(0),u=W(0),c=W(0),f=W(0),d=W(0),h=W(0);function p(){const v=_o(t);if(!v){n&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=v.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,h.value=g.y}return yi(t,p),Ge(()=>_o(t),v=>!v&&p()),a&&Sr("scroll",p,{capture:!0,passive:!0}),r&&Sr("resize",p,{passive:!0}),q3(()=>{i&&p()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:p}}var IP;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(IP||(IP={}));var b0e=Object.defineProperty,$P=Object.getOwnPropertySymbols,S0e=Object.prototype.hasOwnProperty,w0e=Object.prototype.propertyIsEnumerable,PP=(t,e,n)=>e in t?b0e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_0e=(t,e)=>{for(var n in e||(e={}))S0e.call(e,n)&&PP(t,n,e[n]);if($P)for(var n of $P(e))w0e.call(e,n)&&PP(t,n,e[n]);return t};const x0e={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]};_0e({linear:l0e},x0e);function C0e(t,e,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=Yt(),h=n||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let p=u;e||(e="modelValue"),p=u||p||`update:${e.toString()}`;const v=y=>s?a0e(s)?s(y):h0e(y):y,g=()=>r0e(t[e])?v(t[e]):f;if(l){const y=g(),m=W(y);return Ge(()=>t[e],b=>m.value=v(b)),Ge(m,b=>{(b!==t[e]||c)&&h(p,b)},{deep:c}),m}else return B({get(){return g()},set(y){h(p,y)}})}function T0e({window:t=Wg}={}){if(!t)return W(!1);const e=W(t.document.hasFocus());return Sr(t,"blur",()=>{e.value=!1}),Sr(t,"focus",()=>{e.value=!0}),e}function E0e(t={}){const{window:e=Wg,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=t,o=W(n),s=W(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(),q3(l),Sr("resize",l,{passive:!0}),a&&Sr("orientationchange",l,{passive:!0}),{width:o,height:s}}const $K=()=>Sn&&/firefox/i.test(window.navigator.userAgent),M0e=(t,e)=>{if(!Sn||!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},FP=t=>{let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e},D0e=(t,e)=>Math.abs(FP(t)-FP(e)),Z3=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 k0e=typeof global=="object"&&global&&global.Object===Object&&global;const PK=k0e;var R0e=typeof self=="object"&&self&&self.Object===Object&&self,L0e=PK||R0e||Function("return this")();const al=L0e;var O0e=al.Symbol;const as=O0e;var FK=Object.prototype,A0e=FK.hasOwnProperty,N0e=FK.toString,z0=as?as.toStringTag:void 0;function V0e(t){var e=A0e.call(t,z0),n=t[z0];try{t[z0]=void 0;var r=!0}catch{}var a=N0e.call(t);return r&&(e?t[z0]=n:delete t[z0]),a}var B0e=Object.prototype,I0e=B0e.toString;function $0e(t){return I0e.call(t)}var P0e="[object Null]",F0e="[object Undefined]",zP=as?as.toStringTag:void 0;function op(t){return t==null?t===void 0?F0e:P0e:zP&&zP in Object(t)?V0e(t):$0e(t)}function Wl(t){return t!=null&&typeof t=="object"}var z0e="[object Symbol]";function KC(t){return typeof t=="symbol"||Wl(t)&&op(t)==z0e}function zK(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 U0e=Array.isArray;const Fi=U0e;var G0e=1/0,UP=as?as.prototype:void 0,GP=UP?UP.toString:void 0;function UK(t){if(typeof t=="string")return t;if(Fi(t))return zK(t,UK)+"";if(KC(t))return GP?GP.call(t):"";var e=t+"";return e=="0"&&1/t==-G0e?"-0":e}var H0e=/\s/;function W0e(t){for(var e=t.length;e--&&H0e.test(t.charAt(e)););return e}var j0e=/^\s+/;function K0e(t){return t&&t.slice(0,W0e(t)+1).replace(j0e,"")}function zi(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var HP=0/0,Y0e=/^[-+]0x[0-9a-f]+$/i,q0e=/^0b[01]+$/i,X0e=/^0o[0-7]+$/i,Z0e=parseInt;function qR(t){if(typeof t=="number")return t;if(KC(t))return HP;if(zi(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=zi(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=K0e(t);var n=q0e.test(t);return n||X0e.test(t)?Z0e(t.slice(2),n?2:8):Y0e.test(t)?HP:+t}var WP=1/0,Q0e=17976931348623157e292;function J0e(t){if(!t)return t===0?t:0;if(t=qR(t),t===WP||t===-WP){var e=t<0?-1:1;return e*Q0e}return t===t?t:0}function eye(t){var e=J0e(t),n=e%1;return e===e?n?e-n:e:0}function Q3(t){return t}var tye="[object AsyncFunction]",nye="[object Function]",rye="[object GeneratorFunction]",aye="[object Proxy]";function J3(t){if(!zi(t))return!1;var e=op(t);return e==nye||e==rye||e==tye||e==aye}var iye=al["__core-js_shared__"];const tM=iye;var jP=function(){var t=/[^.]+$/.exec(tM&&tM.keys&&tM.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function oye(t){return!!jP&&jP in t}var sye=Function.prototype,lye=sye.toString;function sp(t){if(t!=null){try{return lye.call(t)}catch{}try{return t+""}catch{}}return""}var uye=/[\\^$.*+?()[\]{}|]/g,cye=/^\[object .+?Constructor\]$/,fye=Function.prototype,dye=Object.prototype,hye=fye.toString,pye=dye.hasOwnProperty,vye=RegExp("^"+hye.call(pye).replace(uye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gye(t){if(!zi(t)||oye(t))return!1;var e=J3(t)?vye:cye;return e.test(sp(t))}function yye(t,e){return t==null?void 0:t[e]}function lp(t,e){var n=yye(t,e);return gye(n)?n:void 0}var mye=lp(al,"WeakMap");const XR=mye;var KP=Object.create,bye=function(){function t(){}return function(e){if(!zi(e))return{};if(KP)return KP(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Sye=bye;function wye(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 _ye(){}function GK(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var xye=800,Cye=16,Tye=Date.now;function Eye(t){var e=0,n=0;return function(){var r=Tye(),a=Cye-(r-n);if(n=r,a>0){if(++e>=xye)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Mye(t){return function(){return t}}var Dye=function(){try{var t=lp(Object,"defineProperty");return t({},"",{}),t}catch{}}();const $x=Dye;var kye=$x?function(t,e){return $x(t,"toString",{configurable:!0,enumerable:!1,value:Mye(e),writable:!0})}:Q3;const Rye=kye;var Lye=Eye(Rye);const HK=Lye;function Oye(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function WK(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 Aye(t){return t!==t}function Nye(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}function Vye(t,e,n){return e===e?Nye(t,e,n):WK(t,Aye,n)}function Bye(t,e){var n=t==null?0:t.length;return!!n&&Vye(t,e,0)>-1}var Iye=9007199254740991,$ye=/^(?:0|[1-9]\d*)$/;function YC(t,e){var n=typeof t;return e=e??Iye,!!e&&(n=="number"||n!="symbol"&&$ye.test(t))&&t>-1&&t%1==0&&t<e}function eN(t,e,n){e=="__proto__"&&$x?$x(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function rb(t,e){return t===e||t!==t&&e!==e}var Pye=Object.prototype,Fye=Pye.hasOwnProperty;function tN(t,e,n){var r=t[e];(!(Fye.call(t,e)&&rb(r,n))||n===void 0&&!(e in t))&&eN(t,e,n)}function ab(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?eN(n,s,l):tN(n,s,l)}return n}var YP=Math.max;function jK(t,e,n){return e=YP(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=YP(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),wye(t,this,s)}}function KK(t,e){return HK(jK(t,e,Q3),t+"")}var zye=9007199254740991;function nN(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=zye}function jg(t){return t!=null&&nN(t.length)&&!J3(t)}function Uye(t,e,n){if(!zi(n))return!1;var r=typeof e;return(r=="number"?jg(n)&&YC(e,n.length):r=="string"&&e in n)?rb(n[e],t):!1}function Gye(t){return KK(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&&Uye(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 Hye=Object.prototype;function rN(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Hye;return t===n}function Wye(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var jye="[object Arguments]";function qP(t){return Wl(t)&&op(t)==jye}var YK=Object.prototype,Kye=YK.hasOwnProperty,Yye=YK.propertyIsEnumerable,qye=qP(function(){return arguments}())?qP:function(t){return Wl(t)&&Kye.call(t,"callee")&&!Yye.call(t,"callee")};const Wm=qye;function Xye(){return!1}var qK=typeof exports=="object"&&exports&&!exports.nodeType&&exports,XP=qK&&typeof module=="object"&&module&&!module.nodeType&&module,Zye=XP&&XP.exports===qK,ZP=Zye?al.Buffer:void 0,Qye=ZP?ZP.isBuffer:void 0,Jye=Qye||Xye;const jm=Jye;var eme="[object Arguments]",tme="[object Array]",nme="[object Boolean]",rme="[object Date]",ame="[object Error]",ime="[object Function]",ome="[object Map]",sme="[object Number]",lme="[object Object]",ume="[object RegExp]",cme="[object Set]",fme="[object String]",dme="[object WeakMap]",hme="[object ArrayBuffer]",pme="[object DataView]",vme="[object Float32Array]",gme="[object Float64Array]",yme="[object Int8Array]",mme="[object Int16Array]",bme="[object Int32Array]",Sme="[object Uint8Array]",wme="[object Uint8ClampedArray]",_me="[object Uint16Array]",xme="[object Uint32Array]",Wr={};Wr[vme]=Wr[gme]=Wr[yme]=Wr[mme]=Wr[bme]=Wr[Sme]=Wr[wme]=Wr[_me]=Wr[xme]=!0;Wr[eme]=Wr[tme]=Wr[hme]=Wr[nme]=Wr[pme]=Wr[rme]=Wr[ame]=Wr[ime]=Wr[ome]=Wr[sme]=Wr[lme]=Wr[ume]=Wr[cme]=Wr[fme]=Wr[dme]=!1;function Cme(t){return Wl(t)&&nN(t.length)&&!!Wr[op(t)]}function aN(t){return function(e){return t(e)}}var XK=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nm=XK&&typeof module=="object"&&module&&!module.nodeType&&module,Tme=nm&&nm.exports===XK,nM=Tme&&PK.process,Eme=function(){try{var t=nm&&nm.require&&nm.require("util").types;return t||nM&&nM.binding&&nM.binding("util")}catch{}}();const lg=Eme;var QP=lg&&lg.isTypedArray,Mme=QP?aN(QP):Cme;const iN=Mme;var Dme=Object.prototype,kme=Dme.hasOwnProperty;function ZK(t,e){var n=Fi(t),r=!n&&Wm(t),a=!n&&!r&&jm(t),i=!n&&!r&&!a&&iN(t),o=n||r||a||i,s=o?Wye(t.length,String):[],l=s.length;for(var u in t)(e||kme.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||YC(u,l)))&&s.push(u);return s}function QK(t,e){return function(n){return t(e(n))}}var Rme=QK(Object.keys,Object);const Lme=Rme;var Ome=Object.prototype,Ame=Ome.hasOwnProperty;function Nme(t){if(!rN(t))return Lme(t);var e=[];for(var n in Object(t))Ame.call(t,n)&&n!="constructor"&&e.push(n);return e}function ib(t){return jg(t)?ZK(t):Nme(t)}function Vme(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Bme=Object.prototype,Ime=Bme.hasOwnProperty;function $me(t){if(!zi(t))return Vme(t);var e=rN(t),n=[];for(var r in t)r=="constructor"&&(e||!Ime.call(t,r))||n.push(r);return n}function ob(t){return jg(t)?ZK(t,!0):$me(t)}var Pme=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fme=/^\w*$/;function oN(t,e){if(Fi(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||KC(t)?!0:Fme.test(t)||!Pme.test(t)||e!=null&&t in Object(e)}var zme=lp(Object,"create");const Km=zme;function Ume(){this.__data__=Km?Km(null):{},this.size=0}function Gme(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Hme="__lodash_hash_undefined__",Wme=Object.prototype,jme=Wme.hasOwnProperty;function Kme(t){var e=this.__data__;if(Km){var n=e[t];return n===Hme?void 0:n}return jme.call(e,t)?e[t]:void 0}var Yme=Object.prototype,qme=Yme.hasOwnProperty;function Xme(t){var e=this.__data__;return Km?e[t]!==void 0:qme.call(e,t)}var Zme="__lodash_hash_undefined__";function Qme(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Km&&e===void 0?Zme:e,this}function Hh(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])}}Hh.prototype.clear=Ume;Hh.prototype.delete=Gme;Hh.prototype.get=Kme;Hh.prototype.has=Xme;Hh.prototype.set=Qme;function Jme(){this.__data__=[],this.size=0}function qC(t,e){for(var n=t.length;n--;)if(rb(t[n][0],e))return n;return-1}var e1e=Array.prototype,t1e=e1e.splice;function n1e(t){var e=this.__data__,n=qC(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():t1e.call(e,n,1),--this.size,!0}function r1e(t){var e=this.__data__,n=qC(e,t);return n<0?void 0:e[n][1]}function a1e(t){return qC(this.__data__,t)>-1}function i1e(t,e){var n=this.__data__,r=qC(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Qu(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])}}Qu.prototype.clear=Jme;Qu.prototype.delete=n1e;Qu.prototype.get=r1e;Qu.prototype.has=a1e;Qu.prototype.set=i1e;var o1e=lp(al,"Map");const Ym=o1e;function s1e(){this.size=0,this.__data__={hash:new Hh,map:new(Ym||Qu),string:new Hh}}function l1e(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function XC(t,e){var n=t.__data__;return l1e(e)?n[typeof e=="string"?"string":"hash"]:n.map}function u1e(t){var e=XC(this,t).delete(t);return this.size-=e?1:0,e}function c1e(t){return XC(this,t).get(t)}function f1e(t){return XC(this,t).has(t)}function d1e(t,e){var n=XC(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ju(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])}}Ju.prototype.clear=s1e;Ju.prototype.delete=u1e;Ju.prototype.get=c1e;Ju.prototype.has=f1e;Ju.prototype.set=d1e;var h1e="Expected a function";function ZC(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(h1e);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(ZC.Cache||Ju),n}ZC.Cache=Ju;var p1e=500;function v1e(t){var e=ZC(t,function(r){return n.size===p1e&&n.clear(),r}),n=e.cache;return e}var g1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y1e=/\\(\\)?/g,m1e=v1e(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(g1e,function(n,r,a,i){e.push(a?i.replace(y1e,"$1"):r||n)}),e});const b1e=m1e;function S1e(t){return t==null?"":UK(t)}function QC(t,e){return Fi(t)?t:oN(t,e)?[t]:b1e(S1e(t))}var w1e=1/0;function sb(t){if(typeof t=="string"||KC(t))return t;var e=t+"";return e=="0"&&1/t==-w1e?"-0":e}function sN(t,e){e=QC(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[sb(e[n++])];return n&&n==r?t:void 0}function Cr(t,e,n){var r=t==null?void 0:sN(t,e);return r===void 0?n:r}function lN(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var JP=as?as.isConcatSpreadable:void 0;function _1e(t){return Fi(t)||Wm(t)||!!(JP&&t&&t[JP])}function lb(t,e,n,r,a){var i=-1,o=t.length;for(n||(n=_1e),a||(a=[]);++i<o;){var s=t[i];e>0&&n(s)?e>1?lb(s,e-1,n,r,a):lN(a,s):r||(a[a.length]=s)}return a}function JK(t){var e=t==null?0:t.length;return e?lb(t,1):[]}function x1e(t){return HK(jK(t,void 0,JK),t+"")}var C1e=QK(Object.getPrototypeOf,Object);const uN=C1e;var T1e="[object Object]",E1e=Function.prototype,M1e=Object.prototype,eY=E1e.toString,D1e=M1e.hasOwnProperty,k1e=eY.call(Object);function R1e(t){if(!Wl(t)||op(t)!=T1e)return!1;var e=uN(t);if(e===null)return!0;var n=D1e.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&eY.call(n)==k1e}function Wh(){if(!arguments.length)return[];var t=arguments[0];return Fi(t)?t:[t]}function L1e(){this.__data__=new Qu,this.size=0}function O1e(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function A1e(t){return this.__data__.get(t)}function N1e(t){return this.__data__.has(t)}var V1e=200;function B1e(t,e){var n=this.__data__;if(n instanceof Qu){var r=n.__data__;if(!Ym||r.length<V1e-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ju(r)}return n.set(t,e),this.size=n.size,this}function js(t){var e=this.__data__=new Qu(t);this.size=e.size}js.prototype.clear=L1e;js.prototype.delete=O1e;js.prototype.get=A1e;js.prototype.has=N1e;js.prototype.set=B1e;function I1e(t,e){return t&&ab(e,ib(e),t)}function $1e(t,e){return t&&ab(e,ob(e),t)}var tY=typeof exports=="object"&&exports&&!exports.nodeType&&exports,eF=tY&&typeof module=="object"&&module&&!module.nodeType&&module,P1e=eF&&eF.exports===tY,tF=P1e?al.Buffer:void 0,nF=tF?tF.allocUnsafe:void 0;function nY(t,e){if(e)return t.slice();var n=t.length,r=nF?nF(n):new t.constructor(n);return t.copy(r),r}function F1e(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 rY(){return[]}var z1e=Object.prototype,U1e=z1e.propertyIsEnumerable,rF=Object.getOwnPropertySymbols,G1e=rF?function(t){return t==null?[]:(t=Object(t),F1e(rF(t),function(e){return U1e.call(t,e)}))}:rY;const cN=G1e;function H1e(t,e){return ab(t,cN(t),e)}var W1e=Object.getOwnPropertySymbols,j1e=W1e?function(t){for(var e=[];t;)lN(e,cN(t)),t=uN(t);return e}:rY;const aY=j1e;function K1e(t,e){return ab(t,aY(t),e)}function iY(t,e,n){var r=e(t);return Fi(t)?r:lN(r,n(t))}function ZR(t){return iY(t,ib,cN)}function Y1e(t){return iY(t,ob,aY)}var q1e=lp(al,"DataView");const QR=q1e;var X1e=lp(al,"Promise");const JR=X1e;var Z1e=lp(al,"Set");const Vv=Z1e;var aF="[object Map]",Q1e="[object Object]",iF="[object Promise]",oF="[object Set]",sF="[object WeakMap]",lF="[object DataView]",J1e=sp(QR),ebe=sp(Ym),tbe=sp(JR),nbe=sp(Vv),rbe=sp(XR),$d=op;(QR&&$d(new QR(new ArrayBuffer(1)))!=lF||Ym&&$d(new Ym)!=aF||JR&&$d(JR.resolve())!=iF||Vv&&$d(new Vv)!=oF||XR&&$d(new XR)!=sF)&&($d=function(t){var e=op(t),n=e==Q1e?t.constructor:void 0,r=n?sp(n):"";if(r)switch(r){case J1e:return lF;case ebe:return aF;case tbe:return iF;case nbe:return oF;case rbe:return sF}return e});const qm=$d;var abe=Object.prototype,ibe=abe.hasOwnProperty;function obe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&ibe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var sbe=al.Uint8Array;const Px=sbe;function fN(t){var e=new t.constructor(t.byteLength);return new Px(e).set(new Px(t)),e}function lbe(t,e){var n=e?fN(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var ube=/\w*$/;function cbe(t){var e=new t.constructor(t.source,ube.exec(t));return e.lastIndex=t.lastIndex,e}var uF=as?as.prototype:void 0,cF=uF?uF.valueOf:void 0;function fbe(t){return cF?Object(cF.call(t)):{}}function oY(t,e){var n=e?fN(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var dbe="[object Boolean]",hbe="[object Date]",pbe="[object Map]",vbe="[object Number]",gbe="[object RegExp]",ybe="[object Set]",mbe="[object String]",bbe="[object Symbol]",Sbe="[object ArrayBuffer]",wbe="[object DataView]",_be="[object Float32Array]",xbe="[object Float64Array]",Cbe="[object Int8Array]",Tbe="[object Int16Array]",Ebe="[object Int32Array]",Mbe="[object Uint8Array]",Dbe="[object Uint8ClampedArray]",kbe="[object Uint16Array]",Rbe="[object Uint32Array]";function Lbe(t,e,n){var r=t.constructor;switch(e){case Sbe:return fN(t);case dbe:case hbe:return new r(+t);case wbe:return lbe(t,n);case _be:case xbe:case Cbe:case Tbe:case Ebe:case Mbe:case Dbe:case kbe:case Rbe:return oY(t,n);case pbe:return new r;case vbe:case mbe:return new r(t);case gbe:return cbe(t);case ybe:return new r;case bbe:return fbe(t)}}function sY(t){return typeof t.constructor=="function"&&!rN(t)?Sye(uN(t)):{}}var Obe="[object Map]";function Abe(t){return Wl(t)&&qm(t)==Obe}var fF=lg&&lg.isMap,Nbe=fF?aN(fF):Abe;const Vbe=Nbe;var Bbe="[object Set]";function Ibe(t){return Wl(t)&&qm(t)==Bbe}var dF=lg&&lg.isSet,$be=dF?aN(dF):Ibe;const Pbe=$be;var Fbe=1,zbe=2,Ube=4,lY="[object Arguments]",Gbe="[object Array]",Hbe="[object Boolean]",Wbe="[object Date]",jbe="[object Error]",uY="[object Function]",Kbe="[object GeneratorFunction]",Ybe="[object Map]",qbe="[object Number]",cY="[object Object]",Xbe="[object RegExp]",Zbe="[object Set]",Qbe="[object String]",Jbe="[object Symbol]",eSe="[object WeakMap]",tSe="[object ArrayBuffer]",nSe="[object DataView]",rSe="[object Float32Array]",aSe="[object Float64Array]",iSe="[object Int8Array]",oSe="[object Int16Array]",sSe="[object Int32Array]",lSe="[object Uint8Array]",uSe="[object Uint8ClampedArray]",cSe="[object Uint16Array]",fSe="[object Uint32Array]",$r={};$r[lY]=$r[Gbe]=$r[tSe]=$r[nSe]=$r[Hbe]=$r[Wbe]=$r[rSe]=$r[aSe]=$r[iSe]=$r[oSe]=$r[sSe]=$r[Ybe]=$r[qbe]=$r[cY]=$r[Xbe]=$r[Zbe]=$r[Qbe]=$r[Jbe]=$r[lSe]=$r[uSe]=$r[cSe]=$r[fSe]=!0;$r[jbe]=$r[uY]=$r[eSe]=!1;function rm(t,e,n,r,a,i){var o,s=e&Fbe,l=e&zbe,u=e&Ube;if(n&&(o=a?n(t,r,a,i):n(t)),o!==void 0)return o;if(!zi(t))return t;var c=Fi(t);if(c){if(o=obe(t),!s)return GK(t,o)}else{var f=qm(t),d=f==uY||f==Kbe;if(jm(t))return nY(t,s);if(f==cY||f==lY||d&&!a){if(o=l||d?{}:sY(t),!s)return l?K1e(t,$1e(o,t)):H1e(t,I1e(o,t))}else{if(!$r[f])return a?t:{};o=Lbe(t,f,s)}}i||(i=new js);var h=i.get(t);if(h)return h;i.set(t,o),Pbe(t)?t.forEach(function(g){o.add(rm(g,e,n,g,t,i))}):Vbe(t)&&t.forEach(function(g,y){o.set(y,rm(g,e,n,y,t,i))});var p=u?l?Y1e:ZR:l?ob:ib,v=c?void 0:p(t);return Oye(v||t,function(g,y){v&&(y=g,g=t[y]),tN(o,y,rm(g,e,n,y,t,i))}),o}var dSe=4;function hF(t){return rm(t,dSe)}var hSe=1,pSe=4;function Fx(t){return rm(t,hSe|pSe)}var vSe="__lodash_hash_undefined__";function gSe(t){return this.__data__.set(t,vSe),this}function ySe(t){return this.__data__.has(t)}function Xm(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ju;++e<n;)this.add(t[e])}Xm.prototype.add=Xm.prototype.push=gSe;Xm.prototype.has=ySe;function mSe(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 fY(t,e){return t.has(e)}var bSe=1,SSe=2;function dY(t,e,n,r,a,i){var o=n&bSe,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&SSe?new Xm:void 0;for(i.set(t,e),i.set(e,t);++f<s;){var p=t[f],v=e[f];if(r)var g=o?r(v,p,f,e,t,i):r(p,v,f,t,e,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!mSe(e,function(y,m){if(!fY(h,m)&&(p===y||a(p,y,n,r,i)))return h.push(m)})){d=!1;break}}else if(!(p===v||a(p,v,n,r,i))){d=!1;break}}return i.delete(t),i.delete(e),d}function wSe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}function dN(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var _Se=1,xSe=2,CSe="[object Boolean]",TSe="[object Date]",ESe="[object Error]",MSe="[object Map]",DSe="[object Number]",kSe="[object RegExp]",RSe="[object Set]",LSe="[object String]",OSe="[object Symbol]",ASe="[object ArrayBuffer]",NSe="[object DataView]",pF=as?as.prototype:void 0,rM=pF?pF.valueOf:void 0;function VSe(t,e,n,r,a,i,o){switch(n){case NSe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ASe:return!(t.byteLength!=e.byteLength||!i(new Px(t),new Px(e)));case CSe:case TSe:case DSe:return rb(+t,+e);case ESe:return t.name==e.name&&t.message==e.message;case kSe:case LSe:return t==e+"";case MSe:var s=wSe;case RSe:var l=r&_Se;if(s||(s=dN),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;r|=xSe,o.set(t,e);var c=dY(s(t),s(e),r,a,i,o);return o.delete(t),c;case OSe:if(rM)return rM.call(t)==rM.call(e)}return!1}var BSe=1,ISe=Object.prototype,$Se=ISe.hasOwnProperty;function PSe(t,e,n,r,a,i){var o=n&BSe,s=ZR(t),l=s.length,u=ZR(e),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in e:$Se.call(e,d)))return!1}var h=i.get(t),p=i.get(e);if(h&&p)return h==e&&p==t;var v=!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 b=o?r(m,y,d,e,t,i):r(y,m,d,t,e,i);if(!(b===void 0?y===m||a(y,m,n,r,i):b)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var w=t.constructor,C=e.constructor;w!=C&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(t),i.delete(e),v}var FSe=1,vF="[object Arguments]",gF="[object Array]",mS="[object Object]",zSe=Object.prototype,yF=zSe.hasOwnProperty;function USe(t,e,n,r,a,i){var o=Fi(t),s=Fi(e),l=o?gF:qm(t),u=s?gF:qm(e);l=l==vF?mS:l,u=u==vF?mS:u;var c=l==mS,f=u==mS,d=l==u;if(d&&jm(t)){if(!jm(e))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new js),o||iN(t)?dY(t,e,n,r,a,i):VSe(t,e,l,n,r,a,i);if(!(n&FSe)){var h=c&&yF.call(t,"__wrapped__"),p=f&&yF.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,g=p?e.value():e;return i||(i=new js),a(v,g,n,r,i)}}return d?(i||(i=new js),PSe(t,e,n,r,a,i)):!1}function JC(t,e,n,r,a){return t===e?!0:t==null||e==null||!Wl(t)&&!Wl(e)?t!==t&&e!==e:USe(t,e,n,r,JC,a)}var GSe=1,HSe=2;function WSe(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 js;if(r)var d=r(u,c,l,t,e,f);if(!(d===void 0?JC(c,u,GSe|HSe,r,f):d))return!1}}return!0}function hY(t){return t===t&&!zi(t)}function jSe(t){for(var e=ib(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,hY(a)]}return e}function pY(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function KSe(t){var e=jSe(t);return e.length==1&&e[0][2]?pY(e[0][0],e[0][1]):function(n){return n===t||WSe(n,t,e)}}function YSe(t,e){return t!=null&&e in Object(t)}function qSe(t,e,n){e=QC(e,t);for(var r=-1,a=e.length,i=!1;++r<a;){var o=sb(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&&nN(a)&&YC(o,a)&&(Fi(t)||Wm(t)))}function vY(t,e){return t!=null&&qSe(t,e,YSe)}var XSe=1,ZSe=2;function QSe(t,e){return oN(t)&&hY(e)?pY(sb(t),e):function(n){var r=Cr(n,t);return r===void 0&&r===e?vY(n,t):JC(e,r,XSe|ZSe)}}function JSe(t){return function(e){return e==null?void 0:e[t]}}function ewe(t){return function(e){return sN(e,t)}}function twe(t){return oN(t)?JSe(sb(t)):ewe(t)}function gY(t){return typeof t=="function"?t:t==null?Q3:typeof t=="object"?Fi(t)?QSe(t[0],t[1]):KSe(t):twe(t)}function nwe(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 rwe=nwe();const yY=rwe;function awe(t,e){return t&&yY(t,e,ib)}function iwe(t,e){return function(n,r){if(n==null)return n;if(!jg(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 owe=iwe(awe);const swe=owe;var lwe=function(){return al.Date.now()};const aM=lwe;var uwe="Expected a function",cwe=Math.max,fwe=Math.min;function Ui(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(uwe);e=qR(e)||0,zi(n)&&(c=!!n.leading,f="maxWait"in n,i=f?cwe(qR(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d);function h(x){var _=r,T=a;return r=a=void 0,u=x,o=t.apply(T,_),o}function p(x){return u=x,s=setTimeout(y,e),c?h(x):o}function v(x){var _=x-l,T=x-u,M=e-_;return f?fwe(M,i-T):M}function g(x){var _=x-l,T=x-u;return l===void 0||_>=e||_<0||f&&T>=i}function y(){var x=aM();if(g(x))return m(x);s=setTimeout(y,v(x))}function m(x){return s=void 0,d&&r?h(x):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:m(aM())}function C(){var x=aM(),_=g(x);if(r=arguments,a=this,l=x,_){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=b,C.flush=w,C}function eL(t,e,n){(n!==void 0&&!rb(t[e],n)||n===void 0&&!(e in t))&&eN(t,e,n)}function mY(t){return Wl(t)&&jg(t)}function tL(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function dwe(t){return ab(t,ob(t))}function hwe(t,e,n,r,a,i,o){var s=tL(t,n),l=tL(e,n),u=o.get(l);if(u){eL(t,n,u);return}var c=i?i(s,l,n+"",t,e,o):void 0,f=c===void 0;if(f){var d=Fi(l),h=!d&&jm(l),p=!d&&!h&&iN(l);c=l,d||h||p?Fi(s)?c=s:mY(s)?c=GK(s):h?(f=!1,c=nY(l,!0)):p?(f=!1,c=oY(l,!0)):c=[]:R1e(l)||Wm(l)?(c=s,Wm(s)?c=dwe(s):(!zi(s)||J3(s))&&(c=sY(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),eL(t,n,c)}function bY(t,e,n,r,a){t!==e&&yY(e,function(i,o){if(a||(a=new js),zi(i))hwe(t,e,o,n,bY,r,a);else{var s=r?r(tL(t,o),i,o+"",t,e,a):void 0;s===void 0&&(s=i),eL(t,o,s)}},ob)}function pwe(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 vwe=Math.max,gwe=Math.min;function ywe(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=eye(n),a=n<0?vwe(r+a,0):gwe(a,r-1)),WK(t,gY(e),a,!0)}function mwe(t,e){var n=-1,r=jg(t)?Array(t.length):[];return swe(t,function(a,i,o){r[++n]=e(a,i,o)}),r}function bwe(t,e){var n=Fi(t)?zK:mwe;return n(t,gY(e))}function Swe(t,e){return lb(bwe(t,e),1)}var wwe=1/0;function _we(t){var e=t==null?0:t.length;return e?lb(t,wwe):[]}function zx(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 uo(t,e){return JC(t,e)}function fa(t){return t==null}function xwe(t){return t===void 0}var Cwe=Gye(function(t,e,n){bY(t,e,n)});const SY=Cwe;function wY(t,e,n,r){if(!zi(t))return t;e=QC(e,t);for(var a=-1,i=e.length,o=i-1,s=t;s!=null&&++a<i;){var l=sb(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=zi(c)?c:YC(e[a+1])?[]:{})}tN(s,l,u),s=s[l]}return t}function Twe(t,e,n){for(var r=-1,a=e.length,i={};++r<a;){var o=e[r],s=sN(t,o);n(s,o)&&wY(i,QC(o,t),s)}return i}function Ewe(t,e){return Twe(t,e,function(n,r){return vY(t,r)})}var Mwe=x1e(function(t,e){return t==null?{}:Ewe(t,e)});const Cu=Mwe;function Dwe(t,e,n){return t==null?t:wY(t,e,n)}var kwe="Expected a function";function Eh(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(kwe);return zi(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ui(t,e,{leading:r,maxWait:e,trailing:a})}var Rwe=1/0,Lwe=Vv&&1/dN(new Vv([,-0]))[1]==Rwe?function(t){return new Vv(t)}:_ye;const Owe=Lwe;var Awe=200;function Nwe(t,e,n){var r=-1,a=Bye,i=t.length,o=!0,s=[],l=s;if(n)o=!1,a=pwe;else if(i>=Awe){var u=e?null:Owe(t);if(u)return dN(u);o=!1,a=fY,l=new Xm}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 Vwe=KK(function(t){return Nwe(lb(t,1,mY,!0))});const iM=Vwe,ba=t=>t===void 0,da=t=>typeof t=="boolean",Nt=t=>typeof t=="number",qo=t=>!t&&t!==0||dt(t)&&t.length===0||an(t)&&!Object.keys(t).length,is=t=>typeof Element>"u"?!1:t instanceof Element,Bwe=t=>fa(t),Iwe=t=>$t(t)?!Number.isNaN(Number(t)):!1,_Y=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Rl=t=>J1(t),Zm=t=>Object.keys(t),$we=t=>Object.entries(t),M_=(t,e,n)=>({get value(){return Cr(t,e,n)},set value(r){Dwe(t,e,r)}});class Pwe extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function pa(t,e){throw new Pwe(`[${t}] ${e}`)}const xY=(t="")=>t.split(" ").filter(e=>!!e.trim()),Ks=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},Al=(t,e)=>{!t||!e.trim()||t.classList.add(...xY(e))},co=(t,e)=>{!t||!e.trim()||t.classList.remove(...xY(e))},Wc=(t,e)=>{var n;if(!Sn||!t||!e)return"";let r=rs(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 qr(t,e="px"){if(!t)return"";if(Nt(t)||Iwe(t))return`${t}${e}`;if($t(t))return t}const Fwe=(t,e)=>{if(!Sn)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],r=Wc(t,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},hN=(t,e)=>{if(!Sn)return;let n=t;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Fwe(n,e))return n;n=n.parentNode}return n};let bS;const CY=t=>{var e;if(!Sn)return 0;if(bS!==void 0)return bS;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),bS=r-i,bS};function TY(t,e){if(!Sn)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 Nn=(t,e)=>{let n=t.__vccOpts||t;for(let[r,a]of e)n[r]=a;return n},zwe={name:"ArrowDown"},Uwe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gwe=U("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),Hwe=[Gwe];function Wwe(t,e,n,r,a,i){return z(),ne("svg",Uwe,Hwe)}var Vf=Nn(zwe,[["render",Wwe],["__file","arrow-down.vue"]]),jwe={name:"ArrowLeft"},Kwe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ywe=U("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),qwe=[Ywe];function Xwe(t,e,n,r,a,i){return z(),ne("svg",Kwe,qwe)}var bf=Nn(jwe,[["render",Xwe],["__file","arrow-left.vue"]]),Zwe={name:"ArrowRight"},Qwe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jwe=U("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),e_e=[Jwe];function t_e(t,e,n,r,a,i){return z(),ne("svg",Qwe,e_e)}var Bi=Nn(Zwe,[["render",t_e],["__file","arrow-right.vue"]]),n_e={name:"ArrowUp"},r_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},a_e=U("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),i_e=[a_e];function o_e(t,e,n,r,a,i){return z(),ne("svg",r_e,i_e)}var eT=Nn(n_e,[["render",o_e],["__file","arrow-up.vue"]]),s_e={name:"Back"},l_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},u_e=U("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),c_e=U("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),f_e=[u_e,c_e];function d_e(t,e,n,r,a,i){return z(),ne("svg",l_e,f_e)}var h_e=Nn(s_e,[["render",d_e],["__file","back.vue"]]),p_e={name:"Calendar"},v_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},g_e=U("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),y_e=[g_e];function m_e(t,e,n,r,a,i){return z(),ne("svg",v_e,y_e)}var b_e=Nn(p_e,[["render",m_e],["__file","calendar.vue"]]),S_e={name:"CaretRight"},w_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},__e=U("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),x_e=[__e];function C_e(t,e,n,r,a,i){return z(),ne("svg",w_e,x_e)}var EY=Nn(S_e,[["render",C_e],["__file","caret-right.vue"]]),T_e={name:"CaretTop"},E_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},M_e=U("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),D_e=[M_e];function k_e(t,e,n,r,a,i){return z(),ne("svg",E_e,D_e)}var R_e=Nn(T_e,[["render",k_e],["__file","caret-top.vue"]]),L_e={name:"Check"},O_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},A_e=U("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),N_e=[A_e];function V_e(t,e,n,r,a,i){return z(),ne("svg",O_e,N_e)}var ub=Nn(L_e,[["render",V_e],["__file","check.vue"]]),B_e={name:"CircleCheckFilled"},I_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$_e=U("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),P_e=[$_e];function F_e(t,e,n,r,a,i){return z(),ne("svg",I_e,P_e)}var z_e=Nn(B_e,[["render",F_e],["__file","circle-check-filled.vue"]]),U_e={name:"CircleCheck"},G_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},H_e=U("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),W_e=U("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),j_e=[H_e,W_e];function K_e(t,e,n,r,a,i){return z(),ne("svg",G_e,j_e)}var pN=Nn(U_e,[["render",K_e],["__file","circle-check.vue"]]),Y_e={name:"CircleCloseFilled"},q_e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},X_e=U("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),Z_e=[X_e];function Q_e(t,e,n,r,a,i){return z(),ne("svg",q_e,Z_e)}var vN=Nn(Y_e,[["render",Q_e],["__file","circle-close-filled.vue"]]),J_e={name:"CircleClose"},exe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},txe=U("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),nxe=U("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),rxe=[txe,nxe];function axe(t,e,n,r,a,i){return z(),ne("svg",exe,rxe)}var Bf=Nn(J_e,[["render",axe],["__file","circle-close.vue"]]),ixe={name:"Clock"},oxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sxe=U("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),lxe=U("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),uxe=U("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),cxe=[sxe,lxe,uxe];function fxe(t,e,n,r,a,i){return z(),ne("svg",oxe,cxe)}var MY=Nn(ixe,[["render",fxe],["__file","clock.vue"]]),dxe={name:"Close"},hxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pxe=U("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),vxe=[pxe];function gxe(t,e,n,r,a,i){return z(),ne("svg",hxe,vxe)}var Qs=Nn(dxe,[["render",gxe],["__file","close.vue"]]),yxe={name:"DArrowLeft"},mxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bxe=U("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),Sxe=[bxe];function wxe(t,e,n,r,a,i){return z(),ne("svg",mxe,Sxe)}var ug=Nn(yxe,[["render",wxe],["__file","d-arrow-left.vue"]]),_xe={name:"DArrowRight"},xxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cxe=U("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),Txe=[Cxe];function Exe(t,e,n,r,a,i){return z(),ne("svg",xxe,Txe)}var cg=Nn(_xe,[["render",Exe],["__file","d-arrow-right.vue"]]),Mxe={name:"Delete"},Dxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kxe=U("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),Rxe=[kxe];function Lxe(t,e,n,r,a,i){return z(),ne("svg",Dxe,Rxe)}var DY=Nn(Mxe,[["render",Lxe],["__file","delete.vue"]]),Oxe={name:"Document"},Axe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nxe=U("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),Vxe=[Nxe];function Bxe(t,e,n,r,a,i){return z(),ne("svg",Axe,Vxe)}var Ixe=Nn(Oxe,[["render",Bxe],["__file","document.vue"]]),$xe={name:"FullScreen"},Pxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fxe=U("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),zxe=[Fxe];function Uxe(t,e,n,r,a,i){return z(),ne("svg",Pxe,zxe)}var Gxe=Nn($xe,[["render",Uxe],["__file","full-screen.vue"]]),Hxe={name:"Hide"},Wxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jxe=U("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),Kxe=U("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),Yxe=[jxe,Kxe];function qxe(t,e,n,r,a,i){return z(),ne("svg",Wxe,Yxe)}var Xxe=Nn(Hxe,[["render",qxe],["__file","hide.vue"]]),Zxe={name:"InfoFilled"},Qxe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jxe=U("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),e2e=[Jxe];function t2e(t,e,n,r,a,i){return z(),ne("svg",Qxe,e2e)}var gN=Nn(Zxe,[["render",t2e],["__file","info-filled.vue"]]),n2e={name:"Loading"},r2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},a2e=U("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),i2e=[a2e];function o2e(t,e,n,r,a,i){return z(),ne("svg",r2e,i2e)}var If=Nn(n2e,[["render",o2e],["__file","loading.vue"]]),s2e={name:"Minus"},l2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},u2e=U("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),c2e=[u2e];function f2e(t,e,n,r,a,i){return z(),ne("svg",l2e,c2e)}var d2e=Nn(s2e,[["render",f2e],["__file","minus.vue"]]),h2e={name:"MoreFilled"},p2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},v2e=U("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),g2e=[v2e];function y2e(t,e,n,r,a,i){return z(),ne("svg",p2e,g2e)}var mF=Nn(h2e,[["render",y2e],["__file","more-filled.vue"]]),m2e={name:"More"},b2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S2e=U("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),w2e=[S2e];function _2e(t,e,n,r,a,i){return z(),ne("svg",b2e,w2e)}var x2e=Nn(m2e,[["render",_2e],["__file","more.vue"]]),C2e={name:"PictureFilled"},T2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},E2e=U("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),M2e=[E2e];function D2e(t,e,n,r,a,i){return z(),ne("svg",T2e,M2e)}var k2e=Nn(C2e,[["render",D2e],["__file","picture-filled.vue"]]),R2e={name:"Plus"},L2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},O2e=U("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),A2e=[O2e];function N2e(t,e,n,r,a,i){return z(),ne("svg",L2e,A2e)}var kY=Nn(R2e,[["render",N2e],["__file","plus.vue"]]),V2e={name:"QuestionFilled"},B2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},I2e=U("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),$2e=[I2e];function P2e(t,e,n,r,a,i){return z(),ne("svg",B2e,$2e)}var F2e=Nn(V2e,[["render",P2e],["__file","question-filled.vue"]]),z2e={name:"RefreshLeft"},U2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},G2e=U("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),H2e=[G2e];function W2e(t,e,n,r,a,i){return z(),ne("svg",U2e,H2e)}var j2e=Nn(z2e,[["render",W2e],["__file","refresh-left.vue"]]),K2e={name:"RefreshRight"},Y2e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},q2e=U("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),X2e=[q2e];function Z2e(t,e,n,r,a,i){return z(),ne("svg",Y2e,X2e)}var Q2e=Nn(K2e,[["render",Z2e],["__file","refresh-right.vue"]]),J2e={name:"ScaleToOriginal"},eCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tCe=U("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),nCe=[tCe];function rCe(t,e,n,r,a,i){return z(),ne("svg",eCe,nCe)}var aCe=Nn(J2e,[["render",rCe],["__file","scale-to-original.vue"]]),iCe={name:"Search"},oCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sCe=U("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),lCe=[sCe];function uCe(t,e,n,r,a,i){return z(),ne("svg",oCe,lCe)}var cCe=Nn(iCe,[["render",uCe],["__file","search.vue"]]),fCe={name:"SortDown"},dCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hCe=U("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),pCe=[hCe];function vCe(t,e,n,r,a,i){return z(),ne("svg",dCe,pCe)}var gCe=Nn(fCe,[["render",vCe],["__file","sort-down.vue"]]),yCe={name:"SortUp"},mCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bCe=U("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),SCe=[bCe];function wCe(t,e,n,r,a,i){return z(),ne("svg",mCe,SCe)}var _Ce=Nn(yCe,[["render",wCe],["__file","sort-up.vue"]]),xCe={name:"StarFilled"},CCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},TCe=U("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),ECe=[TCe];function MCe(t,e,n,r,a,i){return z(),ne("svg",CCe,ECe)}var SS=Nn(xCe,[["render",MCe],["__file","star-filled.vue"]]),DCe={name:"Star"},kCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},RCe=U("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),LCe=[RCe];function OCe(t,e,n,r,a,i){return z(),ne("svg",kCe,LCe)}var ACe=Nn(DCe,[["render",OCe],["__file","star.vue"]]),NCe={name:"SuccessFilled"},VCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},BCe=U("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),ICe=[BCe];function $Ce(t,e,n,r,a,i){return z(),ne("svg",VCe,ICe)}var RY=Nn(NCe,[["render",$Ce],["__file","success-filled.vue"]]),PCe={name:"View"},FCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zCe=U("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),UCe=[zCe];function GCe(t,e,n,r,a,i){return z(),ne("svg",FCe,UCe)}var HCe=Nn(PCe,[["render",GCe],["__file","view.vue"]]),WCe={name:"WarningFilled"},jCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},KCe=U("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),YCe=[KCe];function qCe(t,e,n,r,a,i){return z(),ne("svg",jCe,YCe)}var tT=Nn(WCe,[["render",qCe],["__file","warning-filled.vue"]]),XCe={name:"ZoomIn"},ZCe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},QCe=U("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),JCe=[QCe];function eTe(t,e,n,r,a,i){return z(),ne("svg",ZCe,JCe)}var LY=Nn(XCe,[["render",eTe],["__file","zoom-in.vue"]]),tTe={name:"ZoomOut"},nTe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rTe=U("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),aTe=[rTe];function iTe(t,e,n,r,a,i){return z(),ne("svg",nTe,aTe)}var oTe=Nn(tTe,[["render",iTe],["__file","zoom-out.vue"]]);const OY="__epPropKey",De=t=>t,sTe=t=>an(t)&&!!t[OY],il=(t,e)=>{if(!an(t)||sTe(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),yn(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(", ");Mde(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[OY]:!0};return yn(t,"default")&&(l.default=a),l},et=t=>zx(Object.entries(t).map(([e,n])=>[e,il(n,e)])),sr=De([String,Object,Function]),AY={Close:Qs},yN={Close:Qs,SuccessFilled:RY,InfoFilled:gN,WarningFilled:tT,CircleCloseFilled:vN},Sf={success:RY,warning:tT,error:vN,info:gN},mN={validating:If,success:pN,error:Bf},Zt=(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},NY=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t},t),lTe=(t,e)=>(t.install=n=>{n.directive(e,t)},t),Hr=t=>(t.install=Kn,t),nT=(...t)=>e=>{t.forEach(n=>{Vt(n)?n(e):n.value=e})},_t={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},uTe=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],oM=["sun","mon","tue","wed","thu","fri","sat"],Qt="update:modelValue",yr="change",Ii="input",bF=Symbol("INSTALLED_KEY"),tu=["","default","small","large"],cTe={large:40,default:32,small:24},fTe=t=>cTe[t||"default"],rT=t=>["",...tu].includes(t);var Go=(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))(Go||{});function nL(t){return Dr(t)&&t.type===bt}function dTe(t){return Dr(t)&&t.type===Vi}function hTe(t){return Dr(t)&&!nL(t)&&!dTe(t)}const pTe=t=>{if(!Dr(t))return{};const e=t.props||{},n=(Dr(t.type)?t.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{yn(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(e).forEach(a=>{r[rs(a)]=e[a]}),r},vTe=t=>{if(!dt(t)||t.length>1)throw new Error("expect to receive a single Vue element child");return t[0]},Bv=t=>{const e=dt(t)?t:[t],n=[];return e.forEach(r=>{var a;dt(r)?n.push(...Bv(r)):Dr(r)&&dt(r.children)?n.push(...Bv(r.children)):(n.push(r),Dr(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...Bv(r.component.subTree)))}),n},SF=t=>[...new Set(t)],Au=t=>!t&&t!==0?[]:Array.isArray(t)?t:[t],aT=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),fg=t=>Sn?window.requestAnimationFrame(t):setTimeout(t,16),iT=t=>Sn?window.cancelAnimationFrame(t):clearTimeout(t),oT=()=>Math.floor(Math.random()*1e4),Er=t=>t,gTe=["class","style"],yTe=/^on[A-Z]/,bN=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=B(()=>((n==null?void 0:n.value)||[]).concat(gTe)),a=Yt();return B(a?()=>{var i;return zx(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(e&&yTe.test(o))))}:()=>({}))},jl=({from:t,replacement:e,scope:n,version:r,ref:a,type:i="API"},o)=>{Ge(()=>S(o),s=>{},{immediate:!0})},VY=(t,e,n)=>{let r={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=r,d=t.value.getBoundingClientRect(),h=d.left,p=d.top,v=d.width,g=d.height,y=document.documentElement.clientWidth,m=document.documentElement.clientHeight,b=-h+c,w=-p+f,C=y-h-v+c,x=m-p-g+f,_=M=>{const E=Math.min(Math.max(c+M.clientX-l,b),C),k=Math.min(Math.max(f+M.clientY-u,w),x);r={offsetX:E,offsetY:k},t.value.style.transform=`translate(${qr(E)}, ${qr(k)})`},T=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",T)},i=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",a)},o=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",a)};Pt(()=>{To(()=>{n.value?i():o()})}),fr(()=>{o()})};var mTe={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 bTe=t=>(e,n)=>STe(e,n,S(t)),STe=(t,e,n)=>Cr(n,t,t).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=e==null?void 0:e[a])!=null?i:`{${a}}`}`}),wTe=t=>{const e=B(()=>S(t).name),n=Ot(t)?t:W(t);return{lang:e,locale:n,t:bTe(t)}},BY=Symbol("localeContextKey"),xn=t=>{const e=t||pt(BY,W());return wTe(B(()=>e.value||mTe))},am="el",_Te="is-",rd=(t,e,n,r,a)=>{let i=`${t}-${e}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},IY=Symbol("namespaceContextKey"),SN=t=>{const e=t||(Yt()?pt(IY,W(am)):W(am));return B(()=>S(e)||am)},je=(t,e)=>{const n=SN(e);return{namespace:n,b:(v="")=>rd(n.value,t,v,"",""),e:v=>v?rd(n.value,t,"",v,""):"",m:v=>v?rd(n.value,t,"","",v):"",be:(v,g)=>v&&g?rd(n.value,t,v,g,""):"",em:(v,g)=>v&&g?rd(n.value,t,"",v,g):"",bm:(v,g)=>v&&g?rd(n.value,t,v,"",g):"",bem:(v,g,y)=>v&&g&&y?rd(n.value,t,v,g,y):"",is:(v,...g)=>{const y=g.length>=1?g[0]:!0;return v&&y?`${_Te}${v}`:""},cssVar:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${y}`]=v[y]);return g},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${t}-${y}`]=v[y]);return g},cssVarBlockName:v=>`--${n.value}-${t}-${v}`}},$Y=(t,e={})=>{Ot(t)||pa("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||je("popup"),r=dj(()=>n.bm("parent","hidden"));if(!Sn||Ks(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{co(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};Ge(t,l=>{if(!l){s();return}i=!Ks(document.body,r.value),i&&(o=document.body.style.width),a=CY(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Wc(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),Al(document.body,r.value)}),q7(()=>s())},xTe=il({type:De(Boolean),default:null}),CTe=il({type:De(Function)}),PY=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],a={[t]:xTe,[n]:CTe};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=Yt(),{emit:h}=d,p=d.props,v=B(()=>Vt(p[n])),g=B(()=>p[t]===null),y=_=>{o.value!==!0&&(o.value=!0,s&&(s.value=_),Vt(c)&&c(_))},m=_=>{o.value!==!1&&(o.value=!1,s&&(s.value=_),Vt(f)&&f(_))},b=_=>{if(p.disabled===!0||Vt(u)&&!u())return;const T=v.value&&Sn;T&&h(e,!0),(g.value||!T)&&y(_)},w=_=>{if(p.disabled===!0||!Sn)return;const T=v.value&&Sn;T&&h(e,!1),(g.value||!T)&&m(_)},C=_=>{da(_)&&(p.disabled&&_?v.value&&h(e,!1):o.value!==_&&(_?y():m()))},x=()=>{o.value?w():b()};return Ge(()=>p[t],C),l&&d.appContext.config.globalProperties.$route!==void 0&&Ge(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),Pt(()=>{C(p[t])}),{hide:w,show:b,toggle:x,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:r}};PY("modelValue");const FY=t=>{const e=Yt();return B(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var fo="top",os="bottom",ss="right",ho="left",wN="auto",cb=[fo,os,ss,ho],dg="start",Qm="end",TTe="clippingParents",zY="viewport",U0="popper",ETe="reference",wF=cb.reduce(function(t,e){return t.concat([e+"-"+dg,e+"-"+Qm])},[]),up=[].concat(cb,[wN]).reduce(function(t,e){return t.concat([e,e+"-"+dg,e+"-"+Qm])},[]),MTe="beforeRead",DTe="read",kTe="afterRead",RTe="beforeMain",LTe="main",OTe="afterMain",ATe="beforeWrite",NTe="write",VTe="afterWrite",BTe=[MTe,DTe,kTe,RTe,LTe,OTe,ATe,NTe,VTe];function Kl(t){return t?(t.nodeName||"").toLowerCase():null}function ol(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function hg(t){var e=ol(t).Element;return t instanceof e||t instanceof Element}function ts(t){var e=ol(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function _N(t){if(typeof ShadowRoot>"u")return!1;var e=ol(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ITe(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];!ts(i)||!Kl(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 $Te(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},{});!ts(a)||!Kl(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var UY={name:"applyStyles",enabled:!0,phase:"write",fn:ITe,effect:$Te,requires:["computeStyles"]};function $l(t){return t.split("-")[0]}var Mh=Math.max,Ux=Math.min,pg=Math.round;function vg(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,a=1;if(ts(t)&&e){var i=t.offsetHeight,o=t.offsetWidth;o>0&&(r=pg(n.width)/o||1),i>0&&(a=pg(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 xN(t){var e=vg(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 GY(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&_N(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pu(t){return ol(t).getComputedStyle(t)}function PTe(t){return["table","td","th"].indexOf(Kl(t))>=0}function $f(t){return((hg(t)?t.ownerDocument:t.document)||window.document).documentElement}function sT(t){return Kl(t)==="html"?t:t.assignedSlot||t.parentNode||(_N(t)?t.host:null)||$f(t)}function _F(t){return!ts(t)||Pu(t).position==="fixed"?null:t.offsetParent}function FTe(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ts(t)){var r=Pu(t);if(r.position==="fixed")return null}var a=sT(t);for(_N(a)&&(a=a.host);ts(a)&&["html","body"].indexOf(Kl(a))<0;){var i=Pu(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 fb(t){for(var e=ol(t),n=_F(t);n&&PTe(n)&&Pu(n).position==="static";)n=_F(n);return n&&(Kl(n)==="html"||Kl(n)==="body"&&Pu(n).position==="static")?e:n||FTe(t)||e}function CN(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function im(t,e,n){return Mh(t,Ux(e,n))}function zTe(t,e,n){var r=im(t,e,n);return r>n?n:r}function HY(){return{top:0,right:0,bottom:0,left:0}}function WY(t){return Object.assign({},HY(),t)}function jY(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var UTe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,WY(typeof t!="number"?t:jY(t,cb))};function GTe(t){var e,n=t.state,r=t.name,a=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=$l(n.placement),l=CN(s),u=[ho,ss].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=UTe(a.padding,n),d=xN(i),h=l==="y"?fo:ho,p=l==="y"?os:ss,v=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],y=fb(i),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=v/2-g/2,w=f[h],C=m-d[c]-f[p],x=m/2-d[c]/2+b,_=im(w,x,C),T=l;n.modifiersData[r]=(e={},e[T]=_,e.centerOffset=_-x,e)}}function HTe(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)||!GY(e.elements.popper,a)||(e.elements.arrow=a))}var WTe={name:"arrow",enabled:!0,phase:"main",fn:GTe,effect:HTe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gg(t){return t.split("-")[1]}var jTe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KTe(t){var e=t.x,n=t.y,r=window,a=r.devicePixelRatio||1;return{x:pg(e*a)/a||0,y:pg(n*a)/a||0}}function xF(t){var e,n=t.popper,r=t.popperRect,a=t.placement,i=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var y=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),b=ho,w=fo,C=window;if(u){var x=fb(n),_="clientHeight",T="clientWidth";if(x===ol(n)&&(x=$f(n),Pu(x).position!=="static"&&s==="absolute"&&(_="scrollHeight",T="scrollWidth")),x=x,a===fo||(a===ho||a===ss)&&i===Qm){w=os;var M=f&&x===C&&C.visualViewport?C.visualViewport.height:x[_];v-=M-r.height,v*=l?1:-1}if(a===ho||(a===fo||a===os)&&i===Qm){b=ss;var E=f&&x===C&&C.visualViewport?C.visualViewport.width:x[T];h-=E-r.width,h*=l?1:-1}}var k=Object.assign({position:s},u&&jTe),R=c===!0?KTe({x:h,y:v}):{x:h,y:v};if(h=R.x,v=R.y,l){var L;return Object.assign({},k,(L={},L[w]=m?"0":"",L[b]=y?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",L))}return Object.assign({},k,(e={},e[w]=m?v+"px":"",e[b]=y?h+"px":"",e.transform="",e))}function YTe(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:$l(e.placement),variation:gg(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,xF(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,xF(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 KY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YTe,data:{}},wS={passive:!0};function qTe(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=ol(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,wS)}),s&&l.addEventListener("resize",n.update,wS),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,wS)}),s&&l.removeEventListener("resize",n.update,wS)}}var YY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qTe,data:{}},XTe={left:"right",right:"left",bottom:"top",top:"bottom"};function D_(t){return t.replace(/left|right|bottom|top/g,function(e){return XTe[e]})}var ZTe={start:"end",end:"start"};function CF(t){return t.replace(/start|end/g,function(e){return ZTe[e]})}function TN(t){var e=ol(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function EN(t){return vg($f(t)).left+TN(t).scrollLeft}function QTe(t){var e=ol(t),n=$f(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+EN(t),y:s}}function JTe(t){var e,n=$f(t),r=TN(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=Mh(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Mh(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+EN(t),l=-r.scrollTop;return Pu(a||n).direction==="rtl"&&(s+=Mh(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function MN(t){var e=Pu(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function qY(t){return["html","body","#document"].indexOf(Kl(t))>=0?t.ownerDocument.body:ts(t)&&MN(t)?t:qY(sT(t))}function om(t,e){var n;e===void 0&&(e=[]);var r=qY(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),i=ol(r),o=a?[i].concat(i.visualViewport||[],MN(r)?r:[]):r,s=e.concat(o);return a?s:s.concat(om(sT(o)))}function rL(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function eEe(t){var e=vg(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 TF(t,e){return e===zY?rL(QTe(t)):hg(e)?eEe(e):rL(JTe($f(t)))}function tEe(t){var e=om(sT(t)),n=["absolute","fixed"].indexOf(Pu(t).position)>=0,r=n&&ts(t)?fb(t):t;return hg(r)?e.filter(function(a){return hg(a)&&GY(a,r)&&Kl(a)!=="body"}):[]}function nEe(t,e,n){var r=e==="clippingParents"?tEe(t):[].concat(e),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=TF(t,l);return s.top=Mh(u.top,s.top),s.right=Ux(u.right,s.right),s.bottom=Ux(u.bottom,s.bottom),s.left=Mh(u.left,s.left),s},TF(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 XY(t){var e=t.reference,n=t.element,r=t.placement,a=r?$l(r):null,i=r?gg(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(a){case fo:l={x:o,y:e.y-n.height};break;case os:l={x:o,y:e.y+e.height};break;case ss:l={x:e.x+e.width,y:s};break;case ho:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=a?CN(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case dg:l[u]=l[u]-(e[c]/2-n[c]/2);break;case Qm:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function Jm(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?TTe:i,s=n.rootBoundary,l=s===void 0?zY:s,u=n.elementContext,c=u===void 0?U0:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,p=h===void 0?0:h,v=WY(typeof p!="number"?p:jY(p,cb)),g=c===U0?ETe:U0,y=t.rects.popper,m=t.elements[d?g:c],b=nEe(hg(m)?m:m.contextElement||$f(t.elements.popper),o,l),w=vg(t.elements.reference),C=XY({reference:w,element:y,strategy:"absolute",placement:a}),x=rL(Object.assign({},y,C)),_=c===U0?x:w,T={top:b.top-_.top+v.top,bottom:_.bottom-b.bottom+v.bottom,left:b.left-_.left+v.left,right:_.right-b.right+v.right},M=t.modifiersData.offset;if(c===U0&&M){var E=M[a];Object.keys(T).forEach(function(k){var R=[ss,os].indexOf(k)>=0?1:-1,L=[fo,os].indexOf(k)>=0?"y":"x";T[k]+=E[L]*R})}return T}function rEe(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?up:l,c=gg(r),f=c?s?wF:wF.filter(function(p){return gg(p)===c}):cb,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=Jm(t,{placement:v,boundary:a,rootBoundary:i,padding:o})[$l(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function aEe(t){if($l(t)===wN)return[];var e=D_(t);return[CF(t),e,CF(e)]}function iEe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,y=$l(g),m=y===g,b=l||(m||!p?[D_(g)]:aEe(g)),w=[g].concat(b).reduce(function(oe,ue){return oe.concat($l(ue)===wN?rEe(e,{placement:ue,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):ue)},[]),C=e.rects.reference,x=e.rects.popper,_=new Map,T=!0,M=w[0],E=0;E<w.length;E++){var k=w[E],R=$l(k),L=gg(k)===dg,A=[fo,os].indexOf(R)>=0,V=A?"width":"height",G=Jm(e,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),I=A?L?ss:ho:L?os:fo;C[V]>x[V]&&(I=D_(I));var $=D_(I),N=[];if(i&&N.push(G[R]<=0),s&&N.push(G[I]<=0,G[$]<=0),N.every(function(oe){return oe})){M=k,T=!1;break}_.set(k,N)}if(T)for(var P=p?3:1,Y=function(oe){var ue=w.find(function(le){var fe=_.get(le);if(fe)return fe.slice(0,oe).every(function(se){return se})});if(ue)return M=ue,"break"},J=P;J>0;J--){var re=Y(J);if(re==="break")break}e.placement!==M&&(e.modifiersData[r]._skip=!0,e.placement=M,e.reset=!0)}}var oEe={name:"flip",enabled:!0,phase:"main",fn:iEe,requiresIfExists:["offset"],data:{_skip:!1}};function EF(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 MF(t){return[fo,ss,os,ho].some(function(e){return t[e]>=0})}function sEe(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=Jm(e,{elementContext:"reference"}),s=Jm(e,{altBoundary:!0}),l=EF(o,r),u=EF(s,a,i),c=MF(l),f=MF(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 lEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sEe};function uEe(t,e,n){var r=$l(t),a=[ho,fo].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,[ho,ss].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function cEe(t){var e=t.state,n=t.options,r=t.name,a=n.offset,i=a===void 0?[0,0]:a,o=up.reduce(function(c,f){return c[f]=uEe(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 fEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cEe};function dEe(t){var e=t.state,n=t.name;e.modifiersData[n]=XY({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var ZY={name:"popperOffsets",enabled:!0,phase:"read",fn:dEe,data:{}};function hEe(t){return t==="x"?"y":"x"}function pEe(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=Jm(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=$l(e.placement),m=gg(e.placement),b=!m,w=CN(y),C=hEe(w),x=e.modifiersData.popperOffsets,_=e.rects.reference,T=e.rects.popper,M=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,E=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(x){if(i){var L,A=w==="y"?fo:ho,V=w==="y"?os:ss,G=w==="y"?"height":"width",I=x[w],$=I+g[A],N=I-g[V],P=h?-T[G]/2:0,Y=m===dg?_[G]:T[G],J=m===dg?-T[G]:-_[G],re=e.elements.arrow,oe=h&&re?xN(re):{width:0,height:0},ue=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:HY(),le=ue[A],fe=ue[V],se=im(0,_[G],oe[G]),_e=b?_[G]/2-P-se-le-E.mainAxis:Y-se-le-E.mainAxis,ve=b?-_[G]/2+P+se+fe+E.mainAxis:J+se+fe+E.mainAxis,he=e.elements.arrow&&fb(e.elements.arrow),q=he?w==="y"?he.clientTop||0:he.clientLeft||0:0,ce=(L=k==null?void 0:k[w])!=null?L:0,Se=I+_e-ce-q,Ae=I+ve-ce,Te=im(h?Ux($,Se):$,I,h?Mh(N,Ae):N);x[w]=Te,R[w]=Te-I}if(s){var Oe,He=w==="x"?fo:ho,$e=w==="x"?os:ss,Ne=x[C],Le=C==="y"?"height":"width",ie=Ne+g[He],Re=Ne-g[$e],We=[fo,ho].indexOf(y)!==-1,me=(Oe=k==null?void 0:k[C])!=null?Oe:0,Ye=We?ie:Ne-_[Le]-T[Le]-me+E.altAxis,ht=We?Ne+_[Le]+T[Le]-me-E.altAxis:Re,Ct=h&&We?zTe(Ye,Ne,ht):im(h?Ye:ie,Ne,h?ht:Re);x[C]=Ct,R[C]=Ct-Ne}e.modifiersData[r]=R}}var vEe={name:"preventOverflow",enabled:!0,phase:"main",fn:pEe,requiresIfExists:["offset"]};function gEe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yEe(t){return t===ol(t)||!ts(t)?TN(t):gEe(t)}function mEe(t){var e=t.getBoundingClientRect(),n=pg(e.width)/t.offsetWidth||1,r=pg(e.height)/t.offsetHeight||1;return n!==1||r!==1}function bEe(t,e,n){n===void 0&&(n=!1);var r=ts(e),a=ts(e)&&mEe(e),i=$f(e),o=vg(t,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Kl(e)!=="body"||MN(i))&&(s=yEe(e)),ts(e)?(l=vg(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=EN(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function SEe(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 wEe(t){var e=SEe(t);return BTe.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function _Ee(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function xEe(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 DF={placement:"bottom",modifiers:[],strategy:"absolute"};function kF(){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 DN(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,i=a===void 0?DF:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},DF,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(v){var g=typeof v=="function"?v(u.options):v;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:hg(o)?om(o):o.contextElement?om(o.contextElement):[],popper:om(s)};var y=wEe(xEe([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(m){return m.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var v=u.elements,g=v.reference,y=v.popper;if(kF(g,y)){u.rects={reference:bEe(g,fb(y),u.options.strategy==="fixed"),popper:xN(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 b=u.orderedModifiers[m],w=b.fn,C=b.options,x=C===void 0?{}:C,_=b.name;typeof w=="function"&&(u=w({state:u,options:x,name:_,instance:d})||u)}}}},update:_Ee(function(){return new Promise(function(v){d.forceUpdate(),v(u)})}),destroy:function(){p(),f=!0}};if(!kF(o,s))return d;d.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var g=v.name,y=v.options,m=y===void 0?{}:y,b=v.effect;if(typeof b=="function"){var w=b({state:u,name:g,instance:d,options:m}),C=function(){};c.push(w||C)}})}function p(){c.forEach(function(v){return v()}),c=[]}return d}}DN();var CEe=[YY,ZY,KY,UY];DN({defaultModifiers:CEe});var TEe=[YY,ZY,KY,UY,fEe,oEe,vEe,WTe,lEe],QY=DN({defaultModifiers:TEe});const EEe=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=MEe(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=B(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=S(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=or(),o=W({styles:{popper:{position:S(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Ge(a,l=>{const u=S(i);u&&u.setOptions(l)},{deep:!0}),Ge([t,e],([l,u])=>{s(),!(!l||!u)&&(i.value=QY(l,u,S(a)))}),fr(()=>{s()}),{state:B(()=>{var l;return{...((l=S(i))==null?void 0:l.state)||{}}}),styles:B(()=>S(o).styles),attributes:B(()=>S(o).attributes),update:()=>{var l;return(l=S(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=S(i))==null?void 0:l.forceUpdate()},instanceRef:B(()=>S(i))}};function MEe(t){const e=Object.keys(t.elements),n=zx(e.map(a=>[a,t.styles[a]||{}])),r=zx(e.map(a=>[a,t.attributes[a]]));return{styles:n,attributes:r}}const kN=t=>{if(!t)return{onClick:Kn,onMousedown:Kn,onMouseup:Kn};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}}},DEe=(t,e=0)=>{if(e===0)return t;const n=W(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=t.value},e)};return Pt(a),Ge(()=>t.value,i=>{i?a():n.value=i}),n};function RF(){let t;const e=(r,a)=>{n(),t=window.setTimeout(r,a)},n=()=>window.clearTimeout(t);return jC(()=>n()),{registerTimeout:e,cancelTimeout:n}}const LF={prefix:Math.floor(Math.random()*1e4),current:0},kEe=Symbol("elIdInjection"),JY=()=>Yt()?pt(kEe,LF):LF,ls=t=>{const e=JY(),n=SN();return B(()=>S(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let sv=[];const OF=t=>{const e=t;e.key===_t.esc&&sv.forEach(n=>n(e))},REe=t=>{Pt(()=>{sv.length===0&&document.addEventListener("keydown",OF),Sn&&sv.push(t)}),fr(()=>{sv=sv.filter(e=>e!==t),sv.length===0&&Sn&&document.removeEventListener("keydown",OF)})};let AF;const eq=()=>{const t=SN(),e=JY(),n=B(()=>`${t.value}-popper-container-${e.prefix}`),r=B(()=>`#${n.value}`);return{id:n,selector:r}},LEe=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},OEe=()=>{const{id:t,selector:e}=eq();return VC(()=>{Sn&&!AF&&!document.body.querySelector(e.value)&&(AF=LEe(t.value))}),{id:t,selector:e}},AEe=et({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),tq=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=RF(),{registerTimeout:o,cancelTimeout:s}=RF();return{onOpen:c=>{i(()=>{r(c);const f=S(n);Nt(f)&&f>0&&o(()=>{a(c)},f)},S(t))},onClose:c=>{s(),i(()=>{a(c)},S(e))}}},nq=Symbol("elForwardRef"),NEe=t=>{on(nq,{setForwardRef:n=>{t.value=n}})},VEe=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),NF=W(0),rq=2e3,aq=Symbol("zIndexContextKey"),Kg=t=>{const e=t||(Yt()?pt(aq,void 0):void 0),n=B(()=>{const i=S(e);return Nt(i)?i:rq}),r=B(()=>n.value+NF.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(NF.value++,r.value)}},e1=Math.min,Iv=Math.max,Gx=Math.round,wf=t=>({x:t,y:t});function BEe(t,e,n){return Iv(t,e1(e,n))}function iq(t,e){return typeof t=="function"?t(e):t}function RN(t){return t.split("-")[0]}function LN(t){return t.split("-")[1]}function IEe(t){return t==="x"?"y":"x"}function oq(t){return t==="y"?"height":"width"}function ON(t){return["top","bottom"].includes(RN(t))?"y":"x"}function sq(t){return IEe(ON(t))}function $Ee(t){return{top:0,right:0,bottom:0,left:0,...t}}function PEe(t){return typeof t!="number"?$Ee(t):{top:t,right:t,bottom:t,left:t}}function lq(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function VF(t,e,n){let{reference:r,floating:a}=t;const i=ON(e),o=sq(e),s=oq(o),l=RN(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(LN(e)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const FEe=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}=VF(u,r,l),d=r,h={},p=0;for(let v=0;v<s.length;v++){const{name:g,fn:y}=s[v],{x:m,y:b,data:w,reset:C}=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=b??f,h={...h,[g]:{...h[g],...w}},C&&p<=50){p++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:a}):C.rects),{x:c,y:f}=VF(u,d,l)),v=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},zEe=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}=iq(t,e)||{};if(u==null)return{};const f=PEe(c),d={x:n,y:r},h=sq(a),p=oq(h),v=await o.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[h]-d[h]-i.floating[p],C=d[h]-i.reference[h],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=x?x[b]:0;(!_||!await(o.isElement==null?void 0:o.isElement(x)))&&(_=s.floating[b]||i.floating[p]);const T=w/2-C/2,M=_/2-v[p]/2-1,E=e1(f[y],M),k=e1(f[m],M),R=E,L=_-v[p]-k,A=_/2-v[p]/2+T,V=BEe(R,A,L),G=!l.arrow&&LN(a)!=null&&A!=V&&i.reference[p]/2-(A<R?E:k)-v[p]/2<0,I=G?A<R?A-R:A-L:0;return{[h]:d[h]+I,data:{[h]:V,centerOffset:A-V-I,...G&&{alignmentOffset:I}},reset:G}}});async function UEe(t,e){const{placement:n,platform:r,elements:a}=t,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=RN(n),s=LN(n),l=ON(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=iq(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const GEe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,a=await UEe(e,t);return{x:n+a.x,y:r+a.y,data:a}}}};function _f(t){return uq(t)?(t.nodeName||"").toLowerCase():"#document"}function Eo(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Pf(t){var e;return(e=(uq(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function uq(t){return t instanceof Node||t instanceof Eo(t).Node}function Fu(t){return t instanceof Element||t instanceof Eo(t).Element}function Yl(t){return t instanceof HTMLElement||t instanceof Eo(t).HTMLElement}function BF(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Eo(t).ShadowRoot}function db(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=us(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function HEe(t){return["table","td","th"].includes(_f(t))}function AN(t){const e=NN(),n=us(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 WEe(t){let e=yg(t);for(;Yl(e)&&!lT(e);){if(AN(e))return e;e=yg(e)}return null}function NN(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lT(t){return["html","body","#document"].includes(_f(t))}function us(t){return Eo(t).getComputedStyle(t)}function uT(t){return Fu(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yg(t){if(_f(t)==="html")return t;const e=t.assignedSlot||t.parentNode||BF(t)&&t.host||Pf(t);return BF(e)?e.host:e}function cq(t){const e=yg(t);return lT(e)?t.ownerDocument?t.ownerDocument.body:t.body:Yl(e)&&db(e)?e:cq(e)}function aL(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=cq(t),i=a===((r=t.ownerDocument)==null?void 0:r.body),o=Eo(a);return i?e.concat(o,o.visualViewport||[],db(a)?a:[],o.frameElement&&n?aL(o.frameElement):[]):e.concat(a,aL(a,[],n))}function fq(t){const e=us(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=Yl(t),i=a?t.offsetWidth:n,o=a?t.offsetHeight:r,s=Gx(n)!==i||Gx(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function dq(t){return Fu(t)?t:t.contextElement}function $v(t){const e=dq(t);if(!Yl(e))return wf(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=fq(e);let o=(i?Gx(n.width):n.width)/r,s=(i?Gx(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const jEe=wf(0);function hq(t){const e=Eo(t);return!NN()||!e.visualViewport?jEe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function KEe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Eo(t)?!1:e}function t1(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=dq(t);let o=wf(1);e&&(r?Fu(r)&&(o=$v(r)):o=$v(t));const s=KEe(i,n,r)?hq(i):wf(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=Eo(i),h=r&&Fu(r)?Eo(r):r;let p=d.frameElement;for(;p&&r&&h!==d;){const v=$v(p),g=p.getBoundingClientRect(),y=us(p),m=g.left+(p.clientLeft+parseFloat(y.paddingLeft))*v.x,b=g.top+(p.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=m,u+=b,p=Eo(p).frameElement}}return lq({width:c,height:f,x:l,y:u})}function YEe(t){let{rect:e,offsetParent:n,strategy:r}=t;const a=Yl(n),i=Pf(n);if(n===i)return e;let o={scrollLeft:0,scrollTop:0},s=wf(1);const l=wf(0);if((a||!a&&r!=="fixed")&&((_f(n)!=="body"||db(i))&&(o=uT(n)),Yl(n))){const u=t1(n);s=$v(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 qEe(t){return Array.from(t.getClientRects())}function pq(t){return t1(Pf(t)).left+uT(t).scrollLeft}function XEe(t){const e=Pf(t),n=uT(t),r=t.ownerDocument.body,a=Iv(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Iv(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+pq(t);const s=-n.scrollTop;return us(r).direction==="rtl"&&(o+=Iv(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function ZEe(t,e){const n=Eo(t),r=Pf(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=NN();(!u||u&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function QEe(t,e){const n=t1(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=Yl(t)?$v(t):wf(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 IF(t,e,n){let r;if(e==="viewport")r=ZEe(t,n);else if(e==="document")r=XEe(Pf(t));else if(Fu(e))r=QEe(e,n);else{const a=hq(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return lq(r)}function vq(t,e){const n=yg(t);return n===e||!Fu(n)||lT(n)?!1:us(n).position==="fixed"||vq(n,e)}function JEe(t,e){const n=e.get(t);if(n)return n;let r=aL(t,[],!1).filter(s=>Fu(s)&&_f(s)!=="body"),a=null;const i=us(t).position==="fixed";let o=i?yg(t):t;for(;Fu(o)&&!lT(o);){const s=us(o),l=AN(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||db(o)&&!l&&vq(t,o))?r=r.filter(c=>c!==o):a=s,o=yg(o)}return e.set(t,r),r}function eMe(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const o=[...n==="clippingAncestors"?JEe(e,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=IF(e,c,a);return u.top=Iv(f.top,u.top),u.right=e1(f.right,u.right),u.bottom=e1(f.bottom,u.bottom),u.left=Iv(f.left,u.left),u},IF(e,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tMe(t){return fq(t)}function nMe(t,e,n){const r=Yl(e),a=Pf(e),i=n==="fixed",o=t1(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=wf(0);if(r||!r&&!i)if((_f(e)!=="body"||db(a))&&(s=uT(e)),r){const u=t1(e,!0,i,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else a&&(l.x=pq(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function $F(t,e){return!Yl(t)||us(t).position==="fixed"?null:e?e(t):t.offsetParent}function gq(t,e){const n=Eo(t);if(!Yl(t))return n;let r=$F(t,e);for(;r&&HEe(r)&&us(r).position==="static";)r=$F(r,e);return r&&(_f(r)==="html"||_f(r)==="body"&&us(r).position==="static"&&!AN(r))?n:r||WEe(t)||n}const rMe=async function(t){let{reference:e,floating:n,strategy:r}=t;const a=this.getOffsetParent||gq,i=this.getDimensions;return{reference:nMe(e,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function aMe(t){return us(t).direction==="rtl"}const iMe={convertOffsetParentRelativeRectToViewportRelativeRect:YEe,getDocumentElement:Pf,getClippingRect:eMe,getOffsetParent:gq,getElementRects:rMe,getClientRects:qEe,getDimensions:tMe,getScale:$v,isElement:Fu,isRTL:aMe},oMe=(t,e,n)=>{const r=new Map,a={platform:iMe,...n},i={...a.platform,_c:r};return FEe(t,e,{...a,platform:i})};et({});const sMe=t=>{if(!Sn)return;if(!t)return t;const e=_o(t);return e||(Ot(t)?e:t)},lMe=({middleware:t,placement:e,strategy:n})=>{const r=W(),a=W(),i=W(),o=W(),s=W({}),l={x:i,y:o,placement:e,strategy:n,middlewareData:s},u=async()=>{if(!Sn)return;const c=sMe(r),f=_o(a);if(!c||!f)return;const d=await oMe(c,f,{placement:S(e),strategy:S(n),middleware:S(t)});Zm(l).forEach(h=>{l[h].value=d[h]})};return Pt(()=>{To(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},uMe=({arrowRef:t,padding:e})=>({name:"arrow",options:{element:t,padding:e},fn(n){const r=S(t);return r?zEe({element:r,padding:e}).fn(n):{}}});function cMe(t){const e=W();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 fMe=(t,e,n)=>Bv(t.subTree).filter(i=>{var o;return Dr(i)&&((o=i.type)==null?void 0:o.name)===e&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),VN=(t,e)=>{const n={},r=or([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=fMe(t,e,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},ai=il({type:String,values:tu,required:!1}),yq=Symbol("size"),dMe=()=>{const t=pt(yq,{});return B(()=>S(t.size)||"")};function hMe(t,{afterFocus:e,afterBlur:n}={}){const r=Yt(),{emit:a}=r,i=or(),o=W(!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 Ge(i,c=>{c&&c.setAttribute("tabindex","-1")}),Sr(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const mq=Symbol(),Hx=W();function cT(t,e=void 0){const n=Yt()?pt(mq,Hx):Hx;return t?B(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[t])!=null?a:e}):n}function fT(t,e){const n=cT(),r=je(t,B(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||am})),a=xn(B(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Kg(B(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||rq})),o=B(()=>{var s;return S(e)||((s=n.value)==null?void 0:s.size)||""});return BN(B(()=>S(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const BN=(t,e,n=!1)=>{var r;const a=!!Yt(),i=a?cT():void 0,o=(r=e==null?void 0:e.provide)!=null?r:a?on:void 0;if(!o)return;const s=B(()=>{const l=S(t);return i!=null&&i.value?pMe(i.value,l):l});return o(mq,s),o(BY,B(()=>s.value.locale)),o(IY,B(()=>s.value.namespace)),o(aq,B(()=>s.value.zIndex)),o(yq,{size:B(()=>s.value.size||"")}),(n||!Hx.value)&&(Hx.value=s.value),s},pMe=(t,e)=>{var n;const r=[...new Set([...Zm(t),...Zm(e)])],a={};for(const i of r)a[i]=(n=e[i])!=null?n:t[i];return a},vMe=et({a11y:{type:Boolean,default:!0},locale:{type:De(Object)},size:ai,button:{type:De(Object)},experimentalFeatures:{type:De(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:De(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),iL={},gMe=pe({name:"ElConfigProvider",props:vMe,setup(t,{slots:e}){Ge(()=>t.message,r=>{Object.assign(iL,r??{})},{immediate:!0,deep:!0});const n=BN(t);return()=>ze(e,"default",{config:n==null?void 0:n.value})}}),n1=Zt(gMe),yMe="2.3.14",mMe=(t=[])=>({version:yMe,install:(n,r)=>{n[bF]||(n[bF]=!0,t.forEach(a=>n.use(a)),r&&BN(r,n,!0))}}),bMe=et({zIndex:{type:De([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),SMe={scroll:({scrollTop:t,fixed:e})=>Nt(t)&&da(e),[yr]:t=>da(t)};var Je=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const bq="ElAffix",wMe=pe({name:bq}),_Me=pe({...wMe,props:bMe,emits:SMe,setup(t,{expose:e,emit:n}){const r=t,a=je("affix"),i=or(),o=or(),s=or(),{height:l}=E0e(),{height:u,width:c,top:f,bottom:d,update:h}=BP(o,{windowScroll:!1}),p=BP(i),v=W(!1),g=W(0),y=W(0),m=B(()=>({height:v.value?`${u.value}px`:"",width:v.value?`${c.value}px`:""})),b=B(()=>{if(!v.value)return{};const x=r.offset?qr(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?x:"",bottom:r.position==="bottom"?x:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const x=p.bottom.value-r.offset-u.value;v.value=r.offset>f.value&&p.bottom.value>0,y.value=x<0?x:0}else v.value=r.offset>f.value;else if(r.target){const x=l.value-p.top.value-r.offset-u.value;v.value=l.value-r.offset<d.value&&l.value>p.top.value,y.value=x<0?-x:0}else v.value=l.value-r.offset<d.value},C=()=>{h(),n("scroll",{scrollTop:g.value,fixed:v.value})};return Ge(v,x=>n("change",x)),Pt(()=>{var x;r.target?(i.value=(x=document.querySelector(r.target))!=null?x:void 0,i.value||pa(bq,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=hN(o.value,!0),h()}),Sr(s,"scroll",C),To(w),e({update:w,updateRoot:h}),(x,_)=>(z(),ne("div",{ref_key:"root",ref:o,class:j(S(a).b()),style:St(S(m))},[U("div",{class:j({[S(a).m("fixed")]:v.value}),style:St(S(b))},[ze(x.$slots,"default")],6)],6))}});var xMe=Je(_Me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const CMe=Zt(xMe),TMe=et({size:{type:De([Number,String])},color:{type:String}}),EMe=pe({name:"ElIcon",inheritAttrs:!1}),MMe=pe({...EMe,props:TMe,setup(t){const e=t,n=je("icon"),r=B(()=>{const{size:a,color:i}=e;return!a&&!i?{}:{fontSize:ba(a)?void 0:qr(a),"--color":i}});return(a,i)=>(z(),ne("i",en({class:S(n).b(),style:S(r)},a.$attrs),[ze(a.$slots,"default")],16))}});var DMe=Je(MMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const mt=Zt(DMe),kMe=["light","dark"],RMe=et({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Zm(Sf),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:kMe,default:"light"}}),LMe={close:t=>t instanceof MouseEvent},OMe=pe({name:"ElAlert"}),AMe=pe({...OMe,props:RMe,emits:LMe,setup(t,{emit:e}){const n=t,{Close:r}=yN,a=li(),i=je("alert"),o=W(!0),s=B(()=>Sf[n.type]),l=B(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=B(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,e("close",f)};return(f,d)=>(z(),xe(Jr,{name:S(i).b("fade"),persisted:""},{default:X(()=>[Ft(U("div",{class:j([S(i).b(),S(i).m(f.type),S(i).is("center",f.center),S(i).is(f.effect)]),role:"alert"},[f.showIcon&&S(s)?(z(),xe(S(mt),{key:0,class:j(S(l))},{default:X(()=>[(z(),xe(tn(S(s))))]),_:1},8,["class"])):we("v-if",!0),U("div",{class:j(S(i).e("content"))},[f.title||f.$slots.title?(z(),ne("span",{key:0,class:j([S(i).e("title"),S(u)])},[ze(f.$slots,"title",{},()=>[lt(Ke(f.title),1)])],2)):we("v-if",!0),f.$slots.default||f.description?(z(),ne("p",{key:1,class:j(S(i).e("description"))},[ze(f.$slots,"default",{},()=>[lt(Ke(f.description),1)])],2)):we("v-if",!0),f.closable?(z(),ne(bt,{key:2},[f.closeText?(z(),ne("div",{key:0,class:j([S(i).e("close-btn"),S(i).is("customed")]),onClick:c},Ke(f.closeText),3)):(z(),xe(S(mt),{key:1,class:j(S(i).e("close-btn")),onClick:c},{default:X(()=>[H(S(r))]),_:1},8,["class"]))],64)):we("v-if",!0)],2)],2),[[pn,o.value]])]),_:3},8,["name"]))}});var NMe=Je(AMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const VMe=Zt(NMe),cp=Symbol("formContextKey"),ql=Symbol("formItemContextKey"),va=(t,e={})=>{const n=W(void 0),r=e.prop?n:FY("size"),a=e.global?n:dMe(),i=e.form?{size:void 0}:pt(cp,void 0),o=e.formItem?{size:void 0}:pt(ql,void 0);return B(()=>r.value||S(t)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},go=t=>{const e=FY("disabled"),n=pt(cp,void 0);return B(()=>e.value||S(t)||(n==null?void 0:n.disabled)||!1)},Ki=()=>{const t=pt(cp,void 0),e=pt(ql,void 0);return{form:t,formItem:e}},Ff=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=W(!1)),r||(r=W(!1));const a=W();let i;const o=B(()=>{var s;return!!(!t.label&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return Pt(()=>{i=Ge([Rr(t,"id"),n],([s,l])=>{const u=s??(l?void 0:ls().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})}),Zu(()=>{i&&i(),e!=null&&e.removeInputId&&a.value&&e.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},BMe=et({size:{type:String,values:tu},disabled:Boolean}),IMe=et({...BMe,model:Object,rules:{type:De(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]}}),$Me={validate:(t,e,n)=>(dt(t)||$t(t))&&da(e)&&$t(n)};function PMe(){const t=W([]),e=B(()=>{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 _S=(t,e)=>{const n=Wh(e);return n.length>0?t.filter(r=>r.prop&&n.includes(r.prop)):t},FMe="ElForm",zMe=pe({name:FMe}),UMe=pe({...zMe,props:IMe,emits:$Me,setup(t,{expose:e,emit:n}){const r=t,a=[],i=va(),o=je("form"),s=B(()=>{const{labelPosition:m,inline:b}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${m}`)]:m,[o.m("inline")]:b}]}),l=m=>{a.push(m)},u=m=>{m.prop&&a.splice(a.indexOf(m),1)},c=(m=[])=>{r.model&&_S(a,m).forEach(b=>b.resetField())},f=(m=[])=>{_S(a,m).forEach(b=>b.clearValidate())},d=B(()=>!!r.model),h=m=>{if(a.length===0)return[];const b=_S(a,m);return b.length?b:[]},p=async m=>g(void 0,m),v=async(m=[])=>{if(!d.value)return!1;const b=h(m);if(b.length===0)return!0;let w={};for(const C of b)try{await C.validate("")}catch(x){w={...w,...x}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(m=[],b)=>{const w=!Vt(b);try{const C=await v(m);return C===!0&&(b==null||b(C)),C}catch(C){if(C instanceof Error)throw C;const x=C;return r.scrollToError&&y(Object.keys(x)[0]),b==null||b(!1,x),w&&Promise.reject(x)}},y=m=>{var b;const w=_S(a,m)[0];w&&((b=w.$el)==null||b.scrollIntoView(r.scrollIntoViewOptions))};return Ge(()=>r.rules,()=>{r.validateOnRuleChange&&p().catch(m=>void 0)},{deep:!0}),on(cp,Rn({...Ra(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...PMe()})),e({validate:p,validateField:g,resetFields:c,clearValidate:f,scrollToField:y}),(m,b)=>(z(),ne("form",{class:j(S(s))},[ze(m.$slots,"default")],2))}});var GMe=Je(UMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function lh(){return lh=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},lh.apply(this,arguments)}function HMe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r1(t,e)}function oL(t){return oL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oL(t)}function r1(t,e){return r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},r1(t,e)}function WMe(){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 k_(t,e,n){return WMe()?k_=Reflect.construct.bind():k_=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&r1(u,o.prototype),u},k_.apply(null,arguments)}function jMe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function sL(t){var e=typeof Map=="function"?new Map:void 0;return sL=function(r){if(r===null||!jMe(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 k_(r,arguments,oL(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r1(a,r)},sL(t)}var KMe=/%[sdj%]/g,YMe=function(){};typeof process<"u"&&process.env;function lL(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 xo(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(KMe,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 qMe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function La(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||qMe(e)&&typeof t=="string"&&!t)}function XMe(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 PF(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 ZMe(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var FF=function(t){HMe(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}(sL(Error));function QMe(t,e,n,r,a){if(e.first){var i=new Promise(function(d,h){var p=function(y){return r(y),y.length?h(new FF(y,lL(y))):d(a)},v=ZMe(t);PF(v,n,p)});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 p=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new FF(c,lL(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(v){var g=t[v];o.indexOf(v)!==-1?PF(g,n,p):XMe(g,n,p)})});return f.catch(function(d){return d}),f}function JMe(t){return!!(t&&t.message!==void 0)}function eDe(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function zF(t,e){return function(n){var r;return t.fullFields?r=eDe(e,t.fullFields):r=e[n.field||t.fullField],JMe(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 UF(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]=lh({},t[n],r):t[n]=r}}return t}var Sq=function(e,n,r,a,i,o){e.required&&(!r.hasOwnProperty(e.field)||La(n,o||e.type))&&a.push(xo(i.messages.required,e.fullField))},tDe=function(e,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(xo(i.messages.whitespace,e.fullField))},xS,nDe=function(){if(xS)return xS;var t="[a-fA-F\\d:]",e=function(w){return w&&w.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=(`
  18. (?:
  19. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  20. (?:`+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
  21. (?:`+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
  22. (?:`+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
  23. (?:`+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
  24. (?:`+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
  25. (?:`+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
  26. (?::(?:(?::`+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
  27. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  28. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+e(w)+n+e(w)+")|(?:"+e(w)+a+e(w)+")","g")};l.v4=function(b){return b&&b.exact?o:new RegExp(""+e(b)+n+e(b),"g")},l.v6=function(b){return b&&b.exact?s:new RegExp(""+e(b)+a+e(b),"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]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',m="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+p+v+")"+g+y;return xS=new RegExp("(?:^"+m+"$)","i"),xS},GF={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},My={integer:function(e){return My.number(e)&&parseInt(e,10)===e},float:function(e){return My.number(e)&&!My.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"&&!My.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(GF.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(nDe())},hex:function(e){return typeof e=="string"&&!!e.match(GF.hex)}},rDe=function(e,n,r,a,i){if(e.required&&n===void 0){Sq(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?My[s](n)||a.push(xo(i.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&a.push(xo(i.messages.types[s],e.fullField,e.type))},aDe=function(e,n,r,a,i){var o=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==e.len&&a.push(xo(i.messages[f].len,e.fullField,e.len)):s&&!l&&c<e.min?a.push(xo(i.messages[f].min,e.fullField,e.min)):l&&!s&&c>e.max?a.push(xo(i.messages[f].max,e.fullField,e.max)):s&&l&&(c<e.min||c>e.max)&&a.push(xo(i.messages[f].range,e.fullField,e.min,e.max))},Dp="enum",iDe=function(e,n,r,a,i){e[Dp]=Array.isArray(e[Dp])?e[Dp]:[],e[Dp].indexOf(n)===-1&&a.push(xo(i.messages[Dp],e.fullField,e[Dp].join(", ")))},oDe=function(e,n,r,a,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||a.push(xo(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(xo(i.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Qn={required:Sq,whitespace:tDe,type:rDe,range:aDe,enum:iDe,pattern:oDe},sDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n,"string")&&!e.required)return r();Qn.required(e,n,a,o,i,"string"),La(n,"string")||(Qn.type(e,n,a,o,i),Qn.range(e,n,a,o,i),Qn.pattern(e,n,a,o,i),e.whitespace===!0&&Qn.whitespace(e,n,a,o,i))}r(o)},lDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),n!==void 0&&Qn.type(e,n,a,o,i)}r(o)},uDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),n!==void 0&&(Qn.type(e,n,a,o,i),Qn.range(e,n,a,o,i))}r(o)},cDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),n!==void 0&&Qn.type(e,n,a,o,i)}r(o)},fDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),La(n)||Qn.type(e,n,a,o,i)}r(o)},dDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),n!==void 0&&(Qn.type(e,n,a,o,i),Qn.range(e,n,a,o,i))}r(o)},hDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),n!==void 0&&(Qn.type(e,n,a,o,i),Qn.range(e,n,a,o,i))}r(o)},pDe=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();Qn.required(e,n,a,o,i,"array"),n!=null&&(Qn.type(e,n,a,o,i),Qn.range(e,n,a,o,i))}r(o)},vDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),n!==void 0&&Qn.type(e,n,a,o,i)}r(o)},gDe="enum",yDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i),n!==void 0&&Qn[gDe](e,n,a,o,i)}r(o)},mDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n,"string")&&!e.required)return r();Qn.required(e,n,a,o,i),La(n,"string")||Qn.pattern(e,n,a,o,i)}r(o)},bDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n,"date")&&!e.required)return r();if(Qn.required(e,n,a,o,i),!La(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Qn.type(e,l,a,o,i),l&&Qn.range(e,l.getTime(),a,o,i)}}r(o)},SDe=function(e,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;Qn.required(e,n,a,o,i,s),r(o)},sM=function(e,n,r,a,i){var o=e.type,s=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(La(n,o)&&!e.required)return r();Qn.required(e,n,a,s,i,o),La(n,o)||Qn.type(e,n,a,s,i)}r(s)},wDe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(La(n)&&!e.required)return r();Qn.required(e,n,a,o,i)}r(o)},sm={string:sDe,method:lDe,number:uDe,boolean:cDe,regexp:fDe,integer:dDe,float:hDe,array:pDe,object:vDe,enum:yDe,pattern:mDe,date:bDe,url:sM,hex:sM,email:sM,required:SDe,any:wDe};function uL(){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 cL=uL(),hb=function(){function t(n){this.rules=null,this._messages=cL,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=UF(uL(),r)),this._messages},e.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var g=[],y={};function m(w){if(Array.isArray(w)){var C;g=(C=g).concat.apply(C,w)}else g.push(w)}for(var b=0;b<v.length;b++)m(v[b]);g.length?(y=lL(g),u(g,y)):u(null,s)}if(l.messages){var f=this.messages();f===cL&&(f=uL()),UF(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(v){var g=o.rules[v],y=s[v];g.forEach(function(m){var b=m;typeof b.transform=="function"&&(s===r&&(s=lh({},s)),y=s[v]=b.transform(y)),typeof b=="function"?b={validator:b}:b=lh({},b),b.validator=o.getValidationMethod(b),b.validator&&(b.field=v,b.fullField=b.fullField||v,b.type=o.getType(b),d[v]=d[v]||[],d[v].push({rule:b,value:y,source:s,field:v}))})});var p={};return QMe(d,l,function(v,g){var y=v.rule,m=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");m=m&&(y.required||!y.required&&v.value),y.field=v.field;function b(x,_){return lh({},_,{fullField:y.fullField+"."+x,fullFields:y.fullFields?[].concat(y.fullFields,[x]):[x]})}function w(x){x===void 0&&(x=[]);var _=Array.isArray(x)?x:[x];!l.suppressWarning&&_.length&&t.warning("async-validator:",_),_.length&&y.message!==void 0&&(_=[].concat(y.message));var T=_.map(zF(y,s));if(l.first&&T.length)return p[y.field]=1,g(T);if(!m)g(T);else{if(y.required&&!v.value)return y.message!==void 0?T=[].concat(y.message).map(zF(y,s)):l.error&&(T=[l.error(y,xo(l.messages.required,y.field))]),g(T);var M={};y.defaultField&&Object.keys(v.value).map(function(R){M[R]=y.defaultField}),M=lh({},M,v.rule.fields);var E={};Object.keys(M).forEach(function(R){var L=M[R],A=Array.isArray(L)?L:[L];E[R]=A.map(b.bind(null,R))});var k=new t(E);k.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),k.validate(v.value,v.rule.options||l,function(R){var L=[];T&&T.length&&L.push.apply(L,T),R&&R.length&&L.push.apply(L,R),g(L.length?L:null)})}}var C;if(y.asyncValidator)C=y.asyncValidator(y,v.value,w,v.source,l);else if(y.validator){try{C=y.validator(y,v.value,w,v.source,l)}catch(x){console.error==null||console.error(x),l.suppressValidatorError||setTimeout(function(){throw x},0),w(x.message)}C===!0?w():C===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):C instanceof Array?w(C):C instanceof Error&&w(C.message)}C&&C.then&&C.then(function(){return w()},function(x){return w(x)})},function(v){c(v)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!sm.hasOwnProperty(r.type))throw new Error(xo("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"?sm.required:sm[this.getType(r)]||void 0},t}();hb.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");sm[e]=n};hb.warning=YMe;hb.messages=cL;hb.validators=sm;const _De=["","error","validating","success"],xDe=et({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:De([String,Array])},required:{type:Boolean,default:void 0},rules:{type:De([Object,Array])},error:String,validateStatus:{type:String,values:_De},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:tu}}),HF="ElLabelWrap";var CDe=pe({name:HF,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(t,{slots:e}){const n=pt(cp,void 0),r=pt(ql);r||pa(HF,"usage: <el-form-item><label-wrap /></el-form-item>");const a=je("form"),i=W(),o=W(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")=>{yt(()=>{e.default&&t.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Pt(()=>{u()}),fr(()=>{l("remove")}),Xu(()=>u()),Ge(o,(c,f)=>{t.updateAll&&(n==null||n.registerLabelWidth(c,f))}),yi(B(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!e)return null;const{isAutoWidth:d}=t;if(d){const h=n==null?void 0:n.autoLabelWidth,p=r==null?void 0:r.hasLabel,v={};if(p&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(v[y]=`${g}px`)}return H("div",{ref:i,class:[a.be("item","label-wrap")],style:v},[(c=e.default)==null?void 0:c.call(e)])}else return H(bt,{ref:i},[(f=e.default)==null?void 0:f.call(e)])}}});const TDe=["role","aria-labelledby"],EDe=pe({name:"ElFormItem"}),MDe=pe({...EDe,props:xDe,setup(t,{expose:e}){const n=t,r=li(),a=pt(cp,void 0),i=pt(ql,void 0),o=va(void 0,{formItem:!1}),s=je("form-item"),l=ls().value,u=W([]),c=W(""),f=c0e(c,100),d=W(""),h=W();let p,v=!1;const g=B(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const fe=qr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return fe?{width:fe}:{}}),y=B(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const fe=qr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:fe}:{}}),m=B(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",A.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),b=B(()=>da(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=B(()=>[s.e("error"),{[s.em("error","inline")]:b.value}]),C=B(()=>n.prop?$t(n.prop)?n.prop:n.prop.join("."):""),x=B(()=>!!(n.label||r.label)),_=B(()=>n.for||u.value.length===1?u.value[0]:void 0),T=B(()=>!_.value&&x.value),M=!!i,E=B(()=>{const fe=a==null?void 0:a.model;if(!(!fe||!n.prop))return M_(fe,n.prop).value}),k=B(()=>{const{required:fe}=n,se=[];n.rules&&se.push(...Wh(n.rules));const _e=a==null?void 0:a.rules;if(_e&&n.prop){const ve=M_(_e,n.prop).value;ve&&se.push(...Wh(ve))}if(fe!==void 0){const ve=se.map((he,q)=>[he,q]).filter(([he])=>Object.keys(he).includes("required"));if(ve.length>0)for(const[he,q]of ve)he.required!==fe&&(se[q]={...he,required:fe});else se.push({required:fe})}return se}),R=B(()=>k.value.length>0),L=fe=>k.value.filter(_e=>!_e.trigger||!fe?!0:Array.isArray(_e.trigger)?_e.trigger.includes(fe):_e.trigger===fe).map(({trigger:_e,...ve})=>ve),A=B(()=>k.value.some(fe=>fe.required)),V=B(()=>{var fe;return f.value==="error"&&n.showMessage&&((fe=a==null?void 0:a.showMessage)!=null?fe:!0)}),G=B(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),I=fe=>{c.value=fe},$=fe=>{var se,_e;const{errors:ve,fields:he}=fe;(!ve||!he)&&console.error(fe),I("error"),d.value=ve?(_e=(se=ve==null?void 0:ve[0])==null?void 0:se.message)!=null?_e:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},N=()=>{I("success"),a==null||a.emit("validate",n.prop,!0,"")},P=async fe=>{const se=C.value;return new hb({[se]:fe}).validate({[se]:E.value},{firstFields:!0}).then(()=>(N(),!0)).catch(ve=>($(ve),Promise.reject(ve)))},Y=async(fe,se)=>{if(v||!n.prop)return!1;const _e=Vt(se);if(!R.value)return se==null||se(!1),!1;const ve=L(fe);return ve.length===0?(se==null||se(!0),!0):(I("validating"),P(ve).then(()=>(se==null||se(!0),!0)).catch(he=>{const{fields:q}=he;return se==null||se(!1,q),_e?!1:Promise.reject(q)}))},J=()=>{I(""),d.value="",v=!1},re=async()=>{const fe=a==null?void 0:a.model;if(!fe||!n.prop)return;const se=M_(fe,n.prop);v=!0,se.value=hF(p),await yt(),J(),v=!1},oe=fe=>{u.value.includes(fe)||u.value.push(fe)},ue=fe=>{u.value=u.value.filter(se=>se!==fe)};Ge(()=>n.error,fe=>{d.value=fe||"",I(fe?"error":"")},{immediate:!0}),Ge(()=>n.validateStatus,fe=>I(fe||""));const le=Rn({...Ra(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:x,addInputId:oe,removeInputId:ue,resetField:re,clearValidate:J,validate:Y});return on(ql,le),Pt(()=>{n.prop&&(a==null||a.addField(le),p=hF(E.value))}),fr(()=>{a==null||a.removeField(le)}),e({size:o,validateMessage:d,validateState:c,validate:Y,clearValidate:J,resetField:re}),(fe,se)=>{var _e;return z(),ne("div",{ref_key:"formItemRef",ref:h,class:j(S(m)),role:S(T)?"group":void 0,"aria-labelledby":S(T)?S(l):void 0},[H(S(CDe),{"is-auto-width":S(g).width==="auto","update-all":((_e=S(a))==null?void 0:_e.labelWidth)==="auto"},{default:X(()=>[S(x)?(z(),xe(tn(S(_)?"label":"div"),{key:0,id:S(l),for:S(_),class:j(S(s).e("label")),style:St(S(g))},{default:X(()=>[ze(fe.$slots,"label",{label:S(G)},()=>[lt(Ke(S(G)),1)])]),_:3},8,["id","for","class","style"])):we("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),U("div",{class:j(S(s).e("content")),style:St(S(y))},[ze(fe.$slots,"default"),H(Yj,{name:`${S(s).namespace.value}-zoom-in-top`},{default:X(()=>[S(V)?ze(fe.$slots,"error",{key:0,error:d.value},()=>[U("div",{class:j(S(w))},Ke(d.value),3)]):we("v-if",!0)]),_:3},8,["name"])],6)],10,TDe)}}});var wq=Je(MDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const DDe=Zt(GMe,{FormItem:wq}),kDe=Hr(wq);let Ss;const RDe=`
  29. height:0 !important;
  30. visibility:hidden !important;
  31. ${$K()?"":"overflow:hidden !important;"}
  32. position:absolute !important;
  33. z-index:-1000 !important;
  34. top:0 !important;
  35. right:0 !important;
  36. `,LDe=["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 ODe(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:LDe.map(o=>`${o}:${e.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function WF(t,e=1,n){var r;Ss||(Ss=document.createElement("textarea"),document.body.appendChild(Ss));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=ODe(t);Ss.setAttribute("style",`${s};${RDe}`),Ss.value=t.value||t.placeholder||"";let l=Ss.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),Ss.value="";const c=Ss.scrollHeight-a;if(Nt(e)){let f=c*e;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(Nt(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=Ss.parentNode)==null||r.removeChild(Ss),Ss=void 0,u}const ADe=et({id:{type:String,default:void 0},size:ai,disabled:Boolean,modelValue:{type:De([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:De([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:sr},prefixIcon:{type:sr},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:De([Object,Array,String]),default:()=>Er({})},autofocus:{type:Boolean,default:!1}}),NDe={[Qt]:t=>$t(t),input:t=>$t(t),change:t=>$t(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},VDe=["role"],BDe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],IDe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],$De=pe({name:"ElInput",inheritAttrs:!1}),PDe=pe({...$De,props:ADe,emits:NDe,setup(t,{expose:e,emit:n}){const r=t,a=ip(),i=li(),o=B(()=>{const me={};return r.containerRole==="combobox"&&(me["aria-haspopup"]=a["aria-haspopup"],me["aria-owns"]=a["aria-owns"],me["aria-expanded"]=a["aria-expanded"]),me}),s=B(()=>[r.type==="textarea"?g.b():v.b(),v.m(h.value),v.is("disabled",p.value),v.is("exceed",oe.value),{[v.b("group")]:i.prepend||i.append,[v.bm("group","append")]:i.append,[v.bm("group","prepend")]:i.prepend,[v.m("prefix")]:i.prefix||r.prefixIcon,[v.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:P.value&&Y.value},a.class]),l=B(()=>[v.e("wrapper"),v.is("focus",E.value)]),u=bN({excludeKeys:B(()=>Object.keys(o.value))}),{form:c,formItem:f}=Ki(),{inputId:d}=Ff(r,{formItemContext:f}),h=va(),p=go(),v=je("input"),g=je("textarea"),y=or(),m=or(),b=W(!1),w=W(!1),C=W(!1),x=W(),_=or(r.inputStyle),T=B(()=>y.value||m.value),{wrapperRef:M,isFocused:E,handleFocus:k,handleBlur:R}=hMe(T,{afterBlur(){var me;r.validateEvent&&((me=f==null?void 0:f.validate)==null||me.call(f,"blur").catch(Ye=>void 0))}}),L=B(()=>{var me;return(me=c==null?void 0:c.statusIcon)!=null?me:!1}),A=B(()=>(f==null?void 0:f.validateState)||""),V=B(()=>A.value&&mN[A.value]),G=B(()=>C.value?HCe:Xxe),I=B(()=>[a.style,r.inputStyle]),$=B(()=>[r.inputStyle,_.value,{resize:r.resize}]),N=B(()=>fa(r.modelValue)?"":String(r.modelValue)),P=B(()=>r.clearable&&!p.value&&!r.readonly&&!!N.value&&(E.value||b.value)),Y=B(()=>r.showPassword&&!p.value&&!r.readonly&&!!N.value&&(!!N.value||E.value)),J=B(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),re=B(()=>N.value.length),oe=B(()=>!!J.value&&re.value>Number(u.value.maxlength)),ue=B(()=>!!i.suffix||!!r.suffixIcon||P.value||r.showPassword||J.value||!!A.value&&L.value),[le,fe]=cMe(y);yi(m,me=>{if(ve(),!J.value||r.resize!=="both")return;const Ye=me[0],{width:ht}=Ye.contentRect;x.value={right:`calc(100% - ${ht+15+6}px)`}});const se=()=>{const{type:me,autosize:Ye}=r;if(!(!Sn||me!=="textarea"||!m.value))if(Ye){const ht=an(Ye)?Ye.minRows:void 0,Ct=an(Ye)?Ye.maxRows:void 0,Tt=WF(m.value,ht,Ct);_.value={overflowY:"hidden",...Tt},yt(()=>{m.value.offsetHeight,_.value=Tt})}else _.value={minHeight:WF(m.value).minHeight}},ve=(me=>{let Ye=!1;return()=>{var ht;if(Ye||!r.autosize)return;((ht=m.value)==null?void 0:ht.offsetParent)===null||(me(),Ye=!0)}})(se),he=()=>{const me=T.value,Ye=r.formatter?r.formatter(N.value):N.value;!me||me.value===Ye||(me.value=Ye)},q=async me=>{le();let{value:Ye}=me.target;if(r.formatter&&(Ye=r.parser?r.parser(Ye):Ye),!w.value){if(Ye===N.value){he();return}n(Qt,Ye),n("input",Ye),await yt(),he(),fe()}},ce=me=>{n("change",me.target.value)},Se=me=>{n("compositionstart",me),w.value=!0},Ae=me=>{var Ye;n("compositionupdate",me);const ht=(Ye=me.target)==null?void 0:Ye.value,Ct=ht[ht.length-1]||"";w.value=!aT(Ct)},Te=me=>{n("compositionend",me),w.value&&(w.value=!1,q(me))},Oe=()=>{C.value=!C.value,He()},He=async()=>{var me;await yt(),(me=T.value)==null||me.focus()},$e=()=>{var me;return(me=T.value)==null?void 0:me.blur()},Ne=me=>{b.value=!1,n("mouseleave",me)},Le=me=>{b.value=!0,n("mouseenter",me)},ie=me=>{n("keydown",me)},Re=()=>{var me;(me=T.value)==null||me.select()},We=()=>{n(Qt,""),n("change",""),n("clear"),n("input","")};return Ge(()=>r.modelValue,()=>{var me;yt(()=>se()),r.validateEvent&&((me=f==null?void 0:f.validate)==null||me.call(f,"change").catch(Ye=>void 0))}),Ge(N,()=>he()),Ge(()=>r.type,async()=>{await yt(),he(),se()}),Pt(()=>{!r.formatter&&r.parser,he(),yt(se)}),e({input:y,textarea:m,ref:T,textareaStyle:$,autosize:Rr(r,"autosize"),focus:He,blur:$e,select:Re,clear:We,resizeTextarea:se}),(me,Ye)=>Ft((z(),ne("div",en(S(o),{class:S(s),style:S(I),role:me.containerRole,onMouseenter:Le,onMouseleave:Ne}),[we(" input "),me.type!=="textarea"?(z(),ne(bt,{key:0},[we(" prepend slot "),me.$slots.prepend?(z(),ne("div",{key:0,class:j(S(v).be("group","prepend"))},[ze(me.$slots,"prepend")],2)):we("v-if",!0),U("div",{ref_key:"wrapperRef",ref:M,class:j(S(l))},[we(" prefix slot "),me.$slots.prefix||me.prefixIcon?(z(),ne("span",{key:0,class:j(S(v).e("prefix"))},[U("span",{class:j(S(v).e("prefix-inner"))},[ze(me.$slots,"prefix"),me.prefixIcon?(z(),xe(S(mt),{key:0,class:j(S(v).e("icon"))},{default:X(()=>[(z(),xe(tn(me.prefixIcon)))]),_:1},8,["class"])):we("v-if",!0)],2)],2)):we("v-if",!0),U("input",en({id:S(d),ref_key:"input",ref:y,class:S(v).e("inner")},S(u),{type:me.showPassword?C.value?"text":"password":me.type,disabled:S(p),formatter:me.formatter,parser:me.parser,readonly:me.readonly,autocomplete:me.autocomplete,tabindex:me.tabindex,"aria-label":me.label,placeholder:me.placeholder,style:me.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:Se,onCompositionupdate:Ae,onCompositionend:Te,onInput:q,onFocus:Ye[0]||(Ye[0]=(...ht)=>S(k)&&S(k)(...ht)),onBlur:Ye[1]||(Ye[1]=(...ht)=>S(R)&&S(R)(...ht)),onChange:ce,onKeydown:ie}),null,16,BDe),we(" suffix slot "),S(ue)?(z(),ne("span",{key:1,class:j(S(v).e("suffix"))},[U("span",{class:j(S(v).e("suffix-inner"))},[!S(P)||!S(Y)||!S(J)?(z(),ne(bt,{key:0},[ze(me.$slots,"suffix"),me.suffixIcon?(z(),xe(S(mt),{key:0,class:j(S(v).e("icon"))},{default:X(()=>[(z(),xe(tn(me.suffixIcon)))]),_:1},8,["class"])):we("v-if",!0)],64)):we("v-if",!0),S(P)?(z(),xe(S(mt),{key:1,class:j([S(v).e("icon"),S(v).e("clear")]),onMousedown:kt(S(Kn),["prevent"]),onClick:We},{default:X(()=>[H(S(Bf))]),_:1},8,["class","onMousedown"])):we("v-if",!0),S(Y)?(z(),xe(S(mt),{key:2,class:j([S(v).e("icon"),S(v).e("password")]),onClick:Oe},{default:X(()=>[(z(),xe(tn(S(G))))]),_:1},8,["class"])):we("v-if",!0),S(J)?(z(),ne("span",{key:3,class:j(S(v).e("count"))},[U("span",{class:j(S(v).e("count-inner"))},Ke(S(re))+" / "+Ke(S(u).maxlength),3)],2)):we("v-if",!0),S(A)&&S(V)&&S(L)?(z(),xe(S(mt),{key:4,class:j([S(v).e("icon"),S(v).e("validateIcon"),S(v).is("loading",S(A)==="validating")])},{default:X(()=>[(z(),xe(tn(S(V))))]),_:1},8,["class"])):we("v-if",!0)],2)],2)):we("v-if",!0)],2),we(" append slot "),me.$slots.append?(z(),ne("div",{key:1,class:j(S(v).be("group","append"))},[ze(me.$slots,"append")],2)):we("v-if",!0)],64)):(z(),ne(bt,{key:1},[we(" textarea "),U("textarea",en({id:S(d),ref_key:"textarea",ref:m,class:S(g).e("inner")},S(u),{tabindex:me.tabindex,disabled:S(p),readonly:me.readonly,autocomplete:me.autocomplete,style:S($),"aria-label":me.label,placeholder:me.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:Se,onCompositionupdate:Ae,onCompositionend:Te,onInput:q,onFocus:Ye[2]||(Ye[2]=(...ht)=>S(k)&&S(k)(...ht)),onBlur:Ye[3]||(Ye[3]=(...ht)=>S(R)&&S(R)(...ht)),onChange:ce,onKeydown:ie}),null,16,IDe),S(J)?(z(),ne("span",{key:0,style:St(x.value),class:j(S(v).e("count"))},Ke(S(re))+" / "+Ke(S(u).maxlength),7)):we("v-if",!0)],64))],16,VDe)),[[pn,me.type!=="hidden"]])}});var FDe=Je(PDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const vi=Zt(FDe),Sv=4,_q={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"}},zDe=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),xq=Symbol("scrollbarContextKey"),UDe=et({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),GDe="Thumb",HDe=pe({__name:"thumb",props:UDe,setup(t){const e=t,n=pt(xq),r=je("scrollbar");n||pa(GDe,"can not inject scrollbar context");const a=W(),i=W(),o=W({}),s=W(!1);let l=!1,u=!1,c=Sn?document.onselectstart:null;const f=B(()=>_q[e.vertical?"vertical":"horizontal"]),d=B(()=>zDe({size:e.size,move:e.move,bar:f.value})),h=B(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/e.ratio/i.value[f.value.offset]),p=x=>{var _;if(x.stopPropagation(),x.ctrlKey||[1,2].includes(x.button))return;(_=window.getSelection())==null||_.removeAllRanges(),g(x);const T=x.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(x[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},v=x=>{if(!i.value||!a.value||!n.wrapElement)return;const _=Math.abs(x.target.getBoundingClientRect()[f.value.direction]-x[f.value.client]),T=i.value[f.value.offset]/2,M=(_-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100},g=x=>{x.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",m),c=document.onselectstart,document.onselectstart=()=>!1},y=x=>{if(!a.value||!i.value||l===!1)return;const _=o.value[f.value.axis];if(!_)return;const T=(a.value.getBoundingClientRect()[f.value.direction]-x[f.value.client])*-1,M=i.value[f.value.offset]-_,E=(T-M)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=E*n.wrapElement[f.value.scrollSize]/100},m=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",m),C(),u&&(s.value=!1)},b=()=>{u=!1,s.value=!!e.size},w=()=>{u=!0,s.value=l};fr(()=>{C(),document.removeEventListener("mouseup",m)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Sr(Rr(n,"scrollbarElement"),"mousemove",b),Sr(Rr(n,"scrollbarElement"),"mouseleave",w),(x,_)=>(z(),xe(Jr,{name:S(r).b("fade"),persisted:""},{default:X(()=>[Ft(U("div",{ref_key:"instance",ref:a,class:j([S(r).e("bar"),S(r).is(S(f).key)]),onMousedown:v},[U("div",{ref_key:"thumb",ref:i,class:j(S(r).e("thumb")),style:St(S(d)),onMousedown:p},null,38)],34),[[pn,x.always||s.value]])]),_:1},8,["name"]))}});var jF=Je(HDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const WDe=et({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),jDe=pe({__name:"bar",props:WDe,setup(t,{expose:e}){const n=t,r=W(0),a=W(0);return e({handleScroll:o=>{if(o){const s=o.offsetHeight-Sv,l=o.offsetWidth-Sv;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(z(),ne(bt,null,[H(jF,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),H(jF,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var KDe=Je(jDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const YDe=et({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:De([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}}),qDe={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(Nt)},XDe="ElScrollbar",ZDe=pe({name:XDe}),QDe=pe({...ZDe,props:YDe,emits:qDe,setup(t,{expose:e,emit:n}){const r=t,a=je("scrollbar");let i,o;const s=W(),l=W(),u=W(),c=W("0"),f=W("0"),d=W(),h=W(1),p=W(1),v=B(()=>{const _={};return r.height&&(_.height=qr(r.height)),r.maxHeight&&(_.maxHeight=qr(r.maxHeight)),[r.wrapStyle,_]}),g=B(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),y=B(()=>[a.e("view"),r.viewClass]),m=()=>{var _;l.value&&((_=d.value)==null||_.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function b(_,T){an(_)?l.value.scrollTo(_):Nt(_)&&Nt(T)&&l.value.scrollTo(_,T)}const w=_=>{Nt(_)&&(l.value.scrollTop=_)},C=_=>{Nt(_)&&(l.value.scrollLeft=_)},x=()=>{if(!l.value)return;const _=l.value.offsetHeight-Sv,T=l.value.offsetWidth-Sv,M=_**2/l.value.scrollHeight,E=T**2/l.value.scrollWidth,k=Math.max(M,r.minSize),R=Math.max(E,r.minSize);h.value=M/(_-M)/(k/(_-k)),p.value=E/(T-E)/(R/(T-R)),f.value=k+Sv<_?`${k}px`:"",c.value=R+Sv<T?`${R}px`:""};return Ge(()=>r.noresize,_=>{_?(i==null||i(),o==null||o()):({stop:i}=yi(u,x),o=Sr("resize",x))},{immediate:!0}),Ge(()=>[r.maxHeight,r.height],()=>{r.native||yt(()=>{var _;x(),l.value&&((_=d.value)==null||_.handleScroll(l.value))})}),on(xq,Rn({scrollbarElement:s,wrapElement:l})),Pt(()=>{r.native||yt(()=>{x()})}),Xu(()=>x()),e({wrapRef:l,update:x,scrollTo:b,setScrollTop:w,setScrollLeft:C,handleScroll:m}),(_,T)=>(z(),ne("div",{ref_key:"scrollbarRef",ref:s,class:j(S(a).b())},[U("div",{ref_key:"wrapRef",ref:l,class:j(S(g)),style:St(S(v)),onScroll:m},[(z(),xe(tn(_.tag),{ref_key:"resizeRef",ref:u,class:j(S(y)),style:St(_.viewStyle)},{default:X(()=>[ze(_.$slots,"default")]),_:3},8,["class","style"]))],38),_.native?we("v-if",!0):(z(),xe(KDe,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:_.always,"ratio-x":p.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var JDe=Je(QDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ec=Zt(JDe),IN=Symbol("popper"),Cq=Symbol("popperContent"),eke=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Tq=et({role:{type:String,values:eke,default:"tooltip"}}),tke=pe({name:"ElPopper",inheritAttrs:!1}),nke=pe({...tke,props:Tq,setup(t,{expose:e}){const n=t,r=W(),a=W(),i=W(),o=W(),s=B(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return e(l),on(IN,l),(u,c)=>ze(u.$slots,"default")}});var rke=Je(nke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Eq=et({arrowOffset:{type:Number,default:5}}),ake=pe({name:"ElPopperArrow",inheritAttrs:!1}),ike=pe({...ake,props:Eq,setup(t,{expose:e}){const n=t,r=je("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=pt(Cq,void 0);return Ge(()=>n.arrowOffset,s=>{a.value=s}),fr(()=>{i.value=void 0}),e({arrowRef:i}),(s,l)=>(z(),ne("span",{ref_key:"arrowRef",ref:i,class:j(S(r).e("arrow")),style:St(S(o)),"data-popper-arrow":""},null,6))}});var oke=Je(ike,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const ske="ElOnlyChild",Mq=pe({name:ske,setup(t,{slots:e,attrs:n}){var r;const a=pt(nq),i=VEe((r=a==null?void 0:a.setForwardRef)!=null?r:Kn);return()=>{var o;const s=(o=e.default)==null?void 0:o.call(e,n);if(!s||s.length>1)return null;const l=Dq(s);return l?Ft($u(l,n),[[i]]):null}}});function Dq(t){if(!t)return null;const e=t;for(const n of e){if(an(n))switch(n.type){case Vi:continue;case Ug:case"svg":return KF(n);case bt:return Dq(n.children);default:return n}return KF(n)}return null}function KF(t){const e=je("only-child");return H("span",{class:e.e("content")},[t])}const kq=et({virtualRef:{type:De(Object)},virtualTriggering:Boolean,onMouseenter:{type:De(Function)},onMouseleave:{type:De(Function)},onClick:{type:De(Function)},onKeydown:{type:De(Function)},onFocus:{type:De(Function)},onBlur:{type:De(Function)},onContextmenu:{type:De(Function)},id:String,open:Boolean}),lke=pe({name:"ElPopperTrigger",inheritAttrs:!1}),uke=pe({...lke,props:kq,setup(t,{expose:e}){const n=t,{role:r,triggerRef:a}=pt(IN,void 0);NEe(a);const i=B(()=>s.value?n.id:void 0),o=B(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=B(()=>{if(r&&r.value!=="tooltip")return r.value}),l=B(()=>s.value?`${n.open}`:void 0);let u;return Pt(()=>{Ge(()=>n.virtualRef,c=>{c&&(a.value=_o(c))},{immediate:!0}),Ge(a,(c,f)=>{u==null||u(),u=void 0,is(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const p=n[d];p&&(c.addEventListener(d.slice(2).toLowerCase(),p),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),p))}),u=Ge([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{fa(d[p])?c.removeAttribute(h):c.setAttribute(h,d[p])})},{immediate:!0})),is(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),fr(()=>{u==null||u(),u=void 0}),e({triggerRef:a}),(c,f)=>c.virtualTriggering?we("v-if",!0):(z(),xe(S(Mq),en({key:0},c.$attrs,{"aria-controls":S(i),"aria-describedby":S(o),"aria-expanded":S(l),"aria-haspopup":S(s)}),{default:X(()=>[ze(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var cke=Je(uke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const lM="focus-trap.focus-after-trapped",uM="focus-trap.focus-after-released",fke="focus-trap.focusout-prevented",YF={cancelable:!0,bubbles:!1},dke={cancelable:!0,bubbles:!1},qF="focusAfterTrapped",XF="focusAfterReleased",$N=Symbol("elFocusTrap"),PN=W(),dT=W(0),FN=W(0);let CS=0;const Rq=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},ZF=(t,e)=>{for(const n of t)if(!hke(n,e))return n},hke=(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},pke=t=>{const e=Rq(t),n=ZF(e,t),r=ZF(e.reverse(),t);return[n,r]},vke=t=>t instanceof HTMLInputElement&&"select"in t,Rc=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),FN.value=window.performance.now(),t!==n&&vke(t)&&e&&t.select()}};function QF(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const gke=()=>{let t=[];return{push:r=>{const a=t[0];a&&r!==a&&a.pause(),t=QF(t,r),t.unshift(r)},remove:r=>{var a,i;t=QF(t,r),(i=(a=t[0])==null?void 0:a.resume)==null||i.call(a)}}},yke=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(Rc(r,e),document.activeElement!==n)return},JF=gke(),mke=()=>dT.value>FN.value,TS=()=>{PN.value="pointer",dT.value=window.performance.now()},e5=()=>{PN.value="keyboard",dT.value=window.performance.now()},bke=()=>(Pt(()=>{CS===0&&(document.addEventListener("mousedown",TS),document.addEventListener("touchstart",TS),document.addEventListener("keydown",e5)),CS++}),fr(()=>{CS--,CS<=0&&(document.removeEventListener("mousedown",TS),document.removeEventListener("touchstart",TS),document.removeEventListener("keydown",e5))}),{focusReason:PN,lastUserFocusTimestamp:dT,lastAutomatedFocusTimestamp:FN}),ES=t=>new CustomEvent(fke,{...dke,detail:t}),Ske=pe({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[qF,XF,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=W();let r,a;const{focusReason:i}=bke();REe(p=>{t.trapped&&!o.paused&&e("release-requested",p)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!t.loop&&!t.trapped||o.paused)return;const{key:v,altKey:g,ctrlKey:y,metaKey:m,currentTarget:b,shiftKey:w}=p,{loop:C}=t,x=v===_t.tab&&!g&&!y&&!m,_=document.activeElement;if(x&&_){const T=b,[M,E]=pke(T);if(M&&E){if(!w&&_===E){const R=ES({focusReason:i.value});e("focusout-prevented",R),R.defaultPrevented||(p.preventDefault(),C&&Rc(M,!0))}else if(w&&[M,T].includes(_)){const R=ES({focusReason:i.value});e("focusout-prevented",R),R.defaultPrevented||(p.preventDefault(),C&&Rc(E,!0))}}else if(_===T){const R=ES({focusReason:i.value});e("focusout-prevented",R),R.defaultPrevented||p.preventDefault()}}};on($N,{focusTrapRef:n,onKeydown:s}),Ge(()=>t.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),Ge([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",c),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const l=p=>{e(qF,p)},u=p=>e(XF,p),c=p=>{const v=S(n);if(!v)return;const g=p.target,y=p.relatedTarget,m=g&&v.contains(g);t.trapped||y&&v.contains(y)||(r=y),m&&e("focusin",p),!o.paused&&t.trapped&&(m?a=g:Rc(a,!0))},f=p=>{const v=S(n);if(!(o.paused||!v))if(t.trapped){const g=p.relatedTarget;!fa(g)&&!v.contains(g)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=ES({focusReason:i.value});e("focusout-prevented",y),y.defaultPrevented||Rc(a,!0)}},0)}else{const g=p.target;g&&v.contains(g)||e("focusout",p)}};async function d(){await yt();const p=S(n);if(p){JF.push(o);const v=p.contains(document.activeElement)?r:document.activeElement;if(r=v,!p.contains(v)){const y=new Event(lM,YF);p.addEventListener(lM,l),p.dispatchEvent(y),y.defaultPrevented||yt(()=>{let m=t.focusStartEl;$t(m)||(Rc(m),document.activeElement!==m&&(m="first")),m==="first"&&yke(Rq(p),!0),(document.activeElement===v||m==="container")&&Rc(p)})}}}function h(){const p=S(n);if(p){p.removeEventListener(lM,l);const v=new CustomEvent(uM,{...YF,detail:{focusReason:i.value}});p.addEventListener(uM,u),p.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!mke()||p.contains(document.activeElement))&&Rc(r??document.body),p.removeEventListener(uM,u),JF.remove(o)}}return Pt(()=>{t.trapped&&d(),Ge(()=>t.trapped,p=>{p?d():h()})}),fr(()=>{t.trapped&&h()}),{onKeydown:s}}});function wke(t,e,n,r,a,i){return ze(t.$slots,"default",{handleKeydown:t.onKeydown})}var hT=Je(Ske,[["render",wke],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const _ke=["fixed","absolute"],xke=et({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:De(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:up,default:"bottom"},popperOptions:{type:De(Object),default:()=>({})},strategy:{type:String,values:_ke,default:"absolute"}}),Lq=et({...xke,id:String,style:{type:De([String,Array,Object])},className:{type:De([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:De([String,Array,Object])},popperStyle:{type:De([String,Array,Object])},referenceEl:{type:De(Object)},triggerTargetEl:{type:De(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Cke={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Tke=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:a}=t,i={placement:n,strategy:r,...a,modifiers:[...Mke(t),...e]};return Dke(i,a==null?void 0:a.modifiers),i},Eke=t=>{if(Sn)return _o(t)};function Mke(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 Dke(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const kke=0,Rke=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:a}=pt(IN,void 0),i=W(),o=W(),s=B(()=>({name:"eventListeners",enabled:!!t.visible})),l=B(()=>{var y;const m=S(i),b=(y=S(o))!=null?y:kke;return{name:"arrow",enabled:!xwe(m),options:{element:m,padding:b}}}),u=B(()=>({onFirstUpdate:()=>{p()},...Tke(t,[S(l),S(s)])})),c=B(()=>Eke(t.referenceEl)||S(r)),{attributes:f,state:d,styles:h,update:p,forceUpdate:v,instanceRef:g}=EEe(c,n,u);return Ge(g,y=>e.value=y),Pt(()=>{Ge(()=>{var y;return(y=S(c))==null?void 0:y.getBoundingClientRect()},()=>{p()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:v,update:p}},Lke=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:a}=Kg(),i=je("popper"),o=B(()=>S(e).popper),s=W(t.zIndex||a()),l=B(()=>[i.b(),i.is("pure",t.pure),i.is(t.effect),t.popperClass]),u=B(()=>[{zIndex:S(s)},S(n).popper,t.popperStyle||{}]),c=B(()=>r.value==="dialog"?"false":void 0),f=B(()=>S(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=t.zIndex||a()}}},Oke=(t,e)=>{const n=W(!1),r=W();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")}}},Ake=pe({name:"ElPopperContent"}),Nke=pe({...Ake,props:Lq,emits:Cke,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=Oke(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:p,instanceRef:v,role:g,update:y}=Rke(r),{ariaModal:m,arrowStyle:b,contentAttrs:w,contentClass:C,contentStyle:x,updateZIndex:_}=Lke(r,{styles:p,attributes:f,role:g}),T=pt(ql,void 0),M=W();on(Cq,{arrowStyle:b,arrowRef:d,arrowOffset:M}),T&&(T.addInputId||T.removeInputId)&&on(ql,{...T,addInputId:Kn,removeInputId:Kn});let E;const k=(L=!0)=>{y(),L&&_()},R=()=>{k(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return Pt(()=>{Ge(()=>r.triggerTargetEl,(L,A)=>{E==null||E(),E=void 0;const V=S(L||h.value),G=S(A||h.value);is(V)&&(E=Ge([g,()=>r.ariaLabel,m,()=>r.id],I=>{["role","aria-label","aria-modal","id"].forEach(($,N)=>{fa(I[N])?V.removeAttribute($):V.setAttribute($,I[N])})},{immediate:!0})),G!==V&&is(G)&&["role","aria-label","aria-modal","id"].forEach(I=>{G.removeAttribute(I)})},{immediate:!0}),Ge(()=>r.visible,R,{immediate:!0})}),fr(()=>{E==null||E(),E=void 0}),e({popperContentRef:h,popperInstanceRef:v,updatePopper:k,contentStyle:x}),(L,A)=>(z(),ne("div",en({ref_key:"contentRef",ref:h},S(w),{style:S(x),class:S(C),tabindex:"-1",onMouseenter:A[0]||(A[0]=V=>L.$emit("mouseenter",V)),onMouseleave:A[1]||(A[1]=V=>L.$emit("mouseleave",V))}),[H(S(hT),{trapped:S(i),"trap-on-focus-in":!0,"focus-trap-el":S(h),"focus-start-el":S(a),onFocusAfterTrapped:S(s),onFocusAfterReleased:S(o),onFocusin:S(l),onFocusoutPrevented:S(u),onReleaseRequested:S(c)},{default:X(()=>[ze(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Vke=Je(Nke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Oq=Zt(rke),pT=Symbol("elTooltip"),$a=et({...AEe,...Lq,appendTo:{type:De([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:De(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),a1=et({...kq,disabled:Boolean,trigger:{type:De([String,Array]),default:"hover"},triggerKeys:{type:De(Array),default:()=>[_t.enter,_t.space]}}),{useModelToggleProps:Bke,useModelToggleEmits:Ike,useModelToggle:$ke}=PY("visible"),Pke=et({...Tq,...Bke,...$a,...a1,...Eq,showArrow:{type:Boolean,default:!0}}),Fke=[...Ike,"before-show","before-hide","show","hide","open","close"],zke=(t,e)=>dt(t)?t.includes(e):t===e,kp=(t,e,n)=>r=>{zke(S(t),e)&&n(r)},Uke=pe({name:"ElTooltipTrigger"}),Gke=pe({...Uke,props:a1,setup(t,{expose:e}){const n=t,r=je("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=pt(pT,void 0),c=W(null),f=()=>{if(S(a)||n.disabled)return!0},d=Rr(n,"trigger"),h=Fr(f,kp(d,"hover",s)),p=Fr(f,kp(d,"hover",l)),v=Fr(f,kp(d,"click",w=>{w.button===0&&u(w)})),g=Fr(f,kp(d,"focus",s)),y=Fr(f,kp(d,"focus",l)),m=Fr(f,kp(d,"contextmenu",w=>{w.preventDefault(),u(w)})),b=Fr(f,w=>{const{code:C}=w;n.triggerKeys.includes(C)&&(w.preventDefault(),u(w))});return e({triggerRef:c}),(w,C)=>(z(),xe(S(cke),{id:S(i),"virtual-ref":w.virtualRef,open:S(o),"virtual-triggering":w.virtualTriggering,class:j(S(r).e("trigger")),onBlur:S(y),onClick:S(v),onContextmenu:S(m),onFocus:S(g),onMouseenter:S(h),onMouseleave:S(p),onKeydown:S(b)},{default:X(()=>[ze(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Hke=Je(Gke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Wke=pe({name:"ElTooltipContent",inheritAttrs:!1}),jke=pe({...Wke,props:$a,setup(t,{expose:e}){const n=t,{selector:r}=eq(),a=je("tooltip"),i=W(null),o=W(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:p,onBeforeShow:v,onBeforeHide:g}=pt(pT,void 0),y=B(()=>n.transition||`${a.namespace.value}-fade-in-linear`),m=B(()=>n.persistent);fr(()=>{o.value=!0});const b=B(()=>S(m)?!0:S(u)),w=B(()=>n.disabled?!1:S(u)),C=B(()=>n.appendTo||r.value),x=B(()=>{var I;return(I=n.style)!=null?I:{}}),_=B(()=>!S(u)),T=()=>{p()},M=()=>{if(S(s))return!0},E=Fr(M,()=>{n.enterable&&S(c)==="hover"&&d()}),k=Fr(M,()=>{S(c)==="hover"&&f()}),R=()=>{var I,$;($=(I=i.value)==null?void 0:I.updatePopper)==null||$.call(I),v==null||v()},L=()=>{g==null||g()},A=()=>{h(),G=X3(B(()=>{var I;return(I=i.value)==null?void 0:I.popperContentRef}),()=>{if(S(s))return;S(c)!=="hover"&&f()})},V=()=>{n.virtualTriggering||f()};let G;return Ge(()=>S(u),I=>{I||G==null||G()},{flush:"post"}),Ge(()=>n.content,()=>{var I,$;($=(I=i.value)==null?void 0:I.updatePopper)==null||$.call(I)}),e({contentRef:i}),(I,$)=>(z(),xe(eb,{disabled:!I.teleported,to:S(C)},[H(Jr,{name:S(y),onAfterLeave:T,onBeforeEnter:R,onAfterEnter:A,onBeforeLeave:L},{default:X(()=>[S(b)?Ft((z(),xe(S(Vke),en({key:0,id:S(l),ref_key:"contentRef",ref:i},I.$attrs,{"aria-label":I.ariaLabel,"aria-hidden":S(_),"boundaries-padding":I.boundariesPadding,"fallback-placements":I.fallbackPlacements,"gpu-acceleration":I.gpuAcceleration,offset:I.offset,placement:I.placement,"popper-options":I.popperOptions,strategy:I.strategy,effect:I.effect,enterable:I.enterable,pure:I.pure,"popper-class":I.popperClass,"popper-style":[I.popperStyle,S(x)],"reference-el":I.referenceEl,"trigger-target-el":I.triggerTargetEl,visible:S(w),"z-index":I.zIndex,onMouseenter:S(E),onMouseleave:S(k),onBlur:V,onClose:S(f)}),{default:X(()=>[o.value?we("v-if",!0):ze(I.$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"])),[[pn,S(w)]]):we("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Kke=Je(jke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Yke=["innerHTML"],qke={key:1},Xke=pe({name:"ElTooltip"}),Zke=pe({...Xke,props:Pke,emits:Fke,setup(t,{expose:e,emit:n}){const r=t;OEe();const a=ls(),i=W(),o=W(),s=()=>{var y;const m=S(i);m&&((y=m.popperInstanceRef)==null||y.update())},l=W(!1),u=W(),{show:c,hide:f,hasUpdateHandler:d}=$ke({indicator:l,toggleReason:u}),{onOpen:h,onClose:p}=tq({showAfter:Rr(r,"showAfter"),hideAfter:Rr(r,"hideAfter"),autoClose:Rr(r,"autoClose"),open:c,close:f}),v=B(()=>da(r.visible)&&!d.value);on(pT,{controlled:v,id:a,open:zg(l),trigger:Rr(r,"trigger"),onOpen:y=>{h(y)},onClose:y=>{p(y)},onToggle:y=>{S(l)?p(y):h(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),Ge(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const g=y=>{var m,b;const w=(b=(m=o.value)==null?void 0:m.contentRef)==null?void 0:b.popperContentRef,C=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(C)};return _j(()=>l.value&&f()),e({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:p,hide:f}),(y,m)=>(z(),xe(S(Oq),{ref_key:"popperRef",ref:i,role:y.role},{default:X(()=>[H(Hke,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:X(()=>[y.$slots.default?ze(y.$slots,"default",{key:0}):we("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),H(Kke,{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:X(()=>[ze(y.$slots,"content",{},()=>[y.rawContent?(z(),ne("span",{key:0,innerHTML:y.content},null,8,Yke)):(z(),ne("span",qke,Ke(y.content),1))]),y.showArrow?(z(),xe(S(oke),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):we("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 Qke=Je(Zke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Gi=Zt(Qke),Jke=et({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:De(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:De([Function,Array]),default:Kn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:$a.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),eRe={[Qt]:t=>$t(t),[Ii]:t=>$t(t),[yr]:t=>$t(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>an(t)},tRe=["aria-expanded","aria-owns"],nRe={key:0},rRe=["id","aria-selected","onClick"],Aq="ElAutocomplete",aRe=pe({name:Aq,inheritAttrs:!1}),iRe=pe({...aRe,props:Jke,emits:eRe,setup(t,{expose:e,emit:n}){const r=t,a=bN(),i=ip(),o=go(),s=je("autocomplete"),l=W(),u=W(),c=W(),f=W();let d=!1,h=!1;const p=W([]),v=W(-1),g=W(""),y=W(!1),m=W(!1),b=W(!1),w=B(()=>s.b(String(oT()))),C=B(()=>i.style),x=B(()=>(p.value.length>0||b.value)&&y.value),_=B(()=>!r.hideLoading&&b.value),T=B(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),M=()=>{x.value&&(g.value=`${l.value.$el.offsetWidth}px`)},E=()=>{v.value=-1},R=Ui(async le=>{if(m.value)return;const fe=se=>{b.value=!1,!m.value&&(dt(se)?(p.value=se,v.value=r.highlightFirstItem?0:-1):pa(Aq,"autocomplete suggestions must be an array"))};if(b.value=!0,dt(r.fetchSuggestions))fe(r.fetchSuggestions);else{const se=await r.fetchSuggestions(le,fe);dt(se)&&fe(se)}},r.debounce),L=le=>{const fe=!!le;if(n(Ii,le),n(Qt,le),m.value=!1,y.value||(y.value=fe),!r.triggerOnFocus&&!le){m.value=!0,p.value=[];return}R(le)},A=le=>{var fe;o.value||(((fe=le.target)==null?void 0:fe.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(y.value=!0)},V=le=>{n(yr,le)},G=le=>{h?h=!1:(y.value=!0,n("focus",le),r.triggerOnFocus&&!d&&R(String(r.modelValue)))},I=le=>{setTimeout(()=>{var fe;if((fe=c.value)!=null&&fe.isFocusInsideContent()){h=!0;return}y.value&&Y(),n("blur",le)})},$=()=>{y.value=!1,n(Qt,""),n("clear")},N=async()=>{x.value&&v.value>=0&&v.value<p.value.length?oe(p.value[v.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),p.value=[],v.value=-1)},P=le=>{x.value&&(le.preventDefault(),le.stopPropagation(),Y())},Y=()=>{y.value=!1},J=()=>{var le;(le=l.value)==null||le.focus()},re=()=>{var le;(le=l.value)==null||le.blur()},oe=async le=>{n(Ii,le[r.valueKey]),n(Qt,le[r.valueKey]),n("select",le),p.value=[],v.value=-1},ue=le=>{if(!x.value||b.value)return;if(le<0){v.value=-1;return}le>=p.value.length&&(le=p.value.length-1);const fe=u.value.querySelector(`.${s.be("suggestion","wrap")}`),_e=fe.querySelectorAll(`.${s.be("suggestion","list")} li`)[le],ve=fe.scrollTop,{offsetTop:he,scrollHeight:q}=_e;he+q>ve+fe.clientHeight&&(fe.scrollTop+=q),he<ve&&(fe.scrollTop-=q),v.value=le,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${v.value}`)};return X3(f,()=>{x.value&&Y()}),Pt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${v.value}`),d=l.value.ref.hasAttribute("readonly")}),e({highlightedIndex:v,activated:y,loading:b,inputRef:l,popperRef:c,suggestions:p,handleSelect:oe,handleKeyEnter:N,focus:J,blur:re,close:Y,highlight:ue}),(le,fe)=>(z(),xe(S(Gi),{ref_key:"popperRef",ref:c,visible:S(x),placement:le.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[S(s).e("popper"),le.popperClass],teleported:le.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${S(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:E},{content:X(()=>[U("div",{ref_key:"regionRef",ref:u,class:j([S(s).b("suggestion"),S(s).is("loading",S(_))]),style:St({[le.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[H(S(ec),{id:S(w),tag:"ul","wrap-class":S(s).be("suggestion","wrap"),"view-class":S(s).be("suggestion","list"),role:"listbox"},{default:X(()=>[S(_)?(z(),ne("li",nRe,[H(S(mt),{class:j(S(s).is("loading"))},{default:X(()=>[H(S(If))]),_:1},8,["class"])])):(z(!0),ne(bt,{key:1},ln(p.value,(se,_e)=>(z(),ne("li",{id:`${S(w)}-item-${_e}`,key:_e,class:j({highlighted:v.value===_e}),role:"option","aria-selected":v.value===_e,onClick:ve=>oe(se)},[ze(le.$slots,"default",{item:se},()=>[lt(Ke(se[le.valueKey]),1)])],10,rRe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:X(()=>[U("div",{ref_key:"listboxRef",ref:f,class:j([S(s).b(),le.$attrs.class]),style:St(S(C)),role:"combobox","aria-haspopup":"listbox","aria-expanded":S(x),"aria-owns":S(w)},[H(S(vi),en({ref_key:"inputRef",ref:l},S(a),{clearable:le.clearable,disabled:S(o),name:le.name,"model-value":le.modelValue,onInput:L,onChange:V,onFocus:G,onBlur:I,onClear:$,onKeydown:[fe[0]||(fe[0]=_n(kt(se=>ue(v.value-1),["prevent"]),["up"])),fe[1]||(fe[1]=_n(kt(se=>ue(v.value+1),["prevent"]),["down"])),_n(N,["enter"]),_n(Y,["tab"]),_n(P,["esc"])],onMousedown:A}),Iu({_:2},[le.$slots.prepend?{name:"prepend",fn:X(()=>[ze(le.$slots,"prepend")])}:void 0,le.$slots.append?{name:"append",fn:X(()=>[ze(le.$slots,"append")])}:void 0,le.$slots.prefix?{name:"prefix",fn:X(()=>[ze(le.$slots,"prefix")])}:void 0,le.$slots.suffix?{name:"suffix",fn:X(()=>[ze(le.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,tRe)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var oRe=Je(iRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const sRe=Zt(oRe),lRe=et({size:{type:[Number,String],values:tu,default:"",validator:t=>Nt(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:sr},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:De(String),default:"cover"}}),uRe={error:t=>t instanceof Event},cRe=["src","alt","srcset"],fRe=pe({name:"ElAvatar"}),dRe=pe({...fRe,props:lRe,emits:uRe,setup(t,{emit:e}){const n=t,r=je("avatar"),a=W(!1),i=B(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return $t(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=B(()=>{const{size:u}=n;return Nt(u)?r.cssVarBlock({size:qr(u)||""}):void 0}),s=B(()=>({objectFit:n.fit}));Ge(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,e("error",u)}return(u,c)=>(z(),ne("span",{class:j(S(i)),style:St(S(o))},[(u.src||u.srcSet)&&!a.value?(z(),ne("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:St(S(s)),onError:l},null,44,cRe)):u.icon?(z(),xe(S(mt),{key:1},{default:X(()=>[(z(),xe(tn(u.icon)))]),_:1})):ze(u.$slots,"default",{key:2})],6))}});var hRe=Je(dRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const pRe=Zt(hRe),vRe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},gRe={click:t=>t instanceof MouseEvent},yRe=(t,e,n)=>{const r=or(),a=or(),i=W(!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=IK(o,300,!0);return Sr(a,"scroll",l),Pt(()=>{var u;a.value=document,r.value=document.documentElement,t.target&&(r.value=(u=document.querySelector(t.target))!=null?u:void 0,r.value||pa(n,`target does not exist: ${t.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},Nq="ElBacktop",mRe=pe({name:Nq}),bRe=pe({...mRe,props:vRe,emits:gRe,setup(t,{emit:e}){const n=t,r=je("backtop"),{handleClick:a,visible:i}=yRe(n,e,Nq),o=B(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(z(),xe(Jr,{name:`${S(r).namespace.value}-fade-in`},{default:X(()=>[S(i)?(z(),ne("div",{key:0,style:St(S(o)),class:j(S(r).b()),onClick:l[0]||(l[0]=kt((...u)=>S(a)&&S(a)(...u),["stop"]))},[ze(s.$slots,"default",{},()=>[H(S(mt),{class:j(S(r).e("icon"))},{default:X(()=>[H(S(R_e))]),_:1},8,["class"])])],6)):we("v-if",!0)]),_:3},8,["name"]))}});var SRe=Je(bRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const wRe=Zt(SRe),_Re=et({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"}}),xRe=["textContent"],CRe=pe({name:"ElBadge"}),TRe=pe({...CRe,props:_Re,setup(t,{expose:e}){const n=t,r=je("badge"),a=B(()=>n.isDot?"":Nt(n.value)&&Nt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return e({content:a}),(i,o)=>(z(),ne("div",{class:j(S(r).b())},[ze(i.$slots,"default"),H(Jr,{name:`${S(r).namespace.value}-zoom-in-center`,persisted:""},{default:X(()=>[Ft(U("sup",{class:j([S(r).e("content"),S(r).em("content",i.type),S(r).is("fixed",!!i.$slots.default),S(r).is("dot",i.isDot)]),textContent:Ke(S(a))},null,10,xRe),[[pn,!i.hidden&&(S(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var ERe=Je(TRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Vq=Zt(ERe),Bq=Symbol("breadcrumbKey"),MRe=et({separator:{type:String,default:"/"},separatorIcon:{type:sr}}),DRe=pe({name:"ElBreadcrumb"}),kRe=pe({...DRe,props:MRe,setup(t){const e=t,n=je("breadcrumb"),r=W();return on(Bq,e),Pt(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(z(),ne("div",{ref_key:"breadcrumb",ref:r,class:j(S(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[ze(a.$slots,"default")],2))}});var RRe=Je(kRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const LRe=et({to:{type:De([String,Object]),default:""},replace:{type:Boolean,default:!1}}),ORe=pe({name:"ElBreadcrumbItem"}),ARe=pe({...ORe,props:LRe,setup(t){const e=t,n=Yt(),r=pt(Bq,void 0),a=je("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=W(),s=()=>{!e.to||!i||(e.replace?i.replace(e.to):i.push(e.to))};return(l,u)=>{var c,f;return z(),ne("span",{class:j(S(a).e("item"))},[U("span",{ref_key:"link",ref:o,class:j([S(a).e("inner"),S(a).is("link",!!l.to)]),role:"link",onClick:s},[ze(l.$slots,"default")],2),(c=S(r))!=null&&c.separatorIcon?(z(),xe(S(mt),{key:0,class:j(S(a).e("separator"))},{default:X(()=>[(z(),xe(tn(S(r).separatorIcon)))]),_:1},8,["class"])):(z(),ne("span",{key:1,class:j(S(a).e("separator")),role:"presentation"},Ke((f=S(r))==null?void 0:f.separator),3))],2)}}});var Iq=Je(ARe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const NRe=Zt(RRe,{BreadcrumbItem:Iq}),VRe=Hr(Iq),$q=Symbol("buttonGroupContextKey"),BRe=(t,e)=>{jl({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},B(()=>t.type==="text"));const n=pt($q,void 0),r=cT("button"),{form:a}=Ki(),i=va(B(()=>n==null?void 0:n.size)),o=go(),s=W(),l=li(),u=B(()=>t.type||(n==null?void 0:n.type)||""),c=B(()=>{var p,v,g;return(g=(v=t.autoInsertSpace)!=null?v:(p=r.value)==null?void 0:p.autoInsertSpace)!=null?g:!1}),f=B(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=B(()=>{var p;const v=(p=l.default)==null?void 0:p.call(l);if(c.value&&(v==null?void 0:v.length)===1){const g=v[0];if((g==null?void 0:g.type)===Ug){const y=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:p=>{t.nativeType==="reset"&&(a==null||a.resetFields()),e("click",p)}}},fL=["default","primary","success","warning","info","danger","text",""],IRe=["button","submit","reset"],dL=et({size:ai,disabled:Boolean,type:{type:String,values:fL,default:""},icon:{type:sr},nativeType:{type:String,values:IRe,default:"button"},loading:Boolean,loadingIcon:{type:sr,default:()=>If},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:De([String,Object]),default:"button"}}),$Re={click:t=>t instanceof MouseEvent};function ni(t,e){PRe(t)&&(t="100%");var n=FRe(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 MS(t){return Math.min(1,Math.max(0,t))}function PRe(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function FRe(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Pq(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function DS(t){return t<=1?"".concat(Number(t)*100,"%"):t}function uh(t){return t.length===1?"0"+t:String(t)}function zRe(t,e,n){return{r:ni(t,255)*255,g:ni(e,255)*255,b:ni(n,255)*255}}function t5(t,e,n){t=ni(t,255),e=ni(e,255),n=ni(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 cM(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 URe(t,e,n){var r,a,i;if(t=ni(t,360),e=ni(e,100),n=ni(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=cM(s,o,t+1/3),a=cM(s,o,t),i=cM(s,o,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function n5(t,e,n){t=ni(t,255),e=ni(e,255),n=ni(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 GRe(t,e,n){t=ni(t,360)*6,e=ni(e,100),n=ni(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 r5(t,e,n,r){var a=[uh(Math.round(t).toString(16)),uh(Math.round(e).toString(16)),uh(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 HRe(t,e,n,r,a){var i=[uh(Math.round(t).toString(16)),uh(Math.round(e).toString(16)),uh(Math.round(n).toString(16)),uh(WRe(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 WRe(t){return Math.round(parseFloat(t)*255).toString(16)}function a5(t){return mo(t)/255}function mo(t){return parseInt(t,16)}function jRe(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var hL={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 KRe(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=XRe(t)),typeof t=="object"&&(lu(t.r)&&lu(t.g)&&lu(t.b)?(e=zRe(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):lu(t.h)&&lu(t.s)&&lu(t.v)?(r=DS(t.s),a=DS(t.v),e=GRe(t.h,r,a),o=!0,s="hsv"):lu(t.h)&&lu(t.s)&&lu(t.l)&&(r=DS(t.s),i=DS(t.l),e=URe(t.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=Pq(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 YRe="[-\\+]?\\d+%?",qRe="[-\\+]?\\d*\\.\\d+%?",Kc="(?:".concat(qRe,")|(?:").concat(YRe,")"),fM="[\\s|\\(]+(".concat(Kc,")[,|\\s]+(").concat(Kc,")[,|\\s]+(").concat(Kc,")\\s*\\)?"),dM="[\\s|\\(]+(".concat(Kc,")[,|\\s]+(").concat(Kc,")[,|\\s]+(").concat(Kc,")[,|\\s]+(").concat(Kc,")\\s*\\)?"),xs={CSS_UNIT:new RegExp(Kc),rgb:new RegExp("rgb"+fM),rgba:new RegExp("rgba"+dM),hsl:new RegExp("hsl"+fM),hsla:new RegExp("hsla"+dM),hsv:new RegExp("hsv"+fM),hsva:new RegExp("hsva"+dM),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 XRe(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(hL[t])t=hL[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=xs.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=xs.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=xs.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=xs.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=xs.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=xs.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=xs.hex8.exec(t),n?{r:mo(n[1]),g:mo(n[2]),b:mo(n[3]),a:a5(n[4]),format:e?"name":"hex8"}:(n=xs.hex6.exec(t),n?{r:mo(n[1]),g:mo(n[2]),b:mo(n[3]),format:e?"name":"hex"}:(n=xs.hex4.exec(t),n?{r:mo(n[1]+n[1]),g:mo(n[2]+n[2]),b:mo(n[3]+n[3]),a:a5(n[4]+n[4]),format:e?"name":"hex8"}:(n=xs.hex3.exec(t),n?{r:mo(n[1]+n[1]),g:mo(n[2]+n[2]),b:mo(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function lu(t){return!!xs.CSS_UNIT.exec(String(t))}var Fq=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=jRe(e)),this.originalInput=e;var a=KRe(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=Pq(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=n5(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=n5(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=t5(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=t5(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),r5(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),HRe(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(ni(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(ni(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="#"+r5(this.r,this.g,this.b,!1),n=0,r=Object.entries(hL);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=MS(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=MS(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=MS(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=MS(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 gc(t,e=20){return t.mix("#141414",e).toString()}function ZRe(t){const e=go(),n=je("button");return B(()=>{let r={};const a=t.color;if(a){const i=new Fq(a),o=t.dark?i.tint(20).toString():gc(i,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?gc(i,90):i.tint(90).toString(),"text-color":a,"border-color":t.dark?gc(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?gc(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?gc(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?gc(i,80):i.tint(80).toString());else{const s=t.dark?gc(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?gc(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 QRe=pe({name:"ElButton"}),JRe=pe({...QRe,props:dL,emits:$Re,setup(t,{expose:e,emit:n}){const r=t,a=ZRe(r),i=je("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=BRe(r,n);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,p)=>(z(),xe(tn(h.tag),en({ref_key:"_ref",ref:o},S(c),{class:[S(i).b(),S(i).m(S(l)),S(i).m(S(s)),S(i).is("disabled",S(u)),S(i).is("loading",h.loading),S(i).is("plain",h.plain),S(i).is("round",h.round),S(i).is("circle",h.circle),S(i).is("text",h.text),S(i).is("link",h.link),S(i).is("has-bg",h.bg)],style:S(a),onClick:S(d)}),{default:X(()=>[h.loading?(z(),ne(bt,{key:0},[h.$slots.loading?ze(h.$slots,"loading",{key:0}):(z(),xe(S(mt),{key:1,class:j(S(i).is("loading"))},{default:X(()=>[(z(),xe(tn(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(z(),xe(S(mt),{key:1},{default:X(()=>[h.icon?(z(),xe(tn(h.icon),{key:0})):ze(h.$slots,"icon",{key:1})]),_:3})):we("v-if",!0),h.$slots.default?(z(),ne("span",{key:2,class:j({[S(i).em("text","expand")]:S(f)})},[ze(h.$slots,"default")],2)):we("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var eLe=Je(JRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const tLe={size:dL.size,type:dL.type},nLe=pe({name:"ElButtonGroup"}),rLe=pe({...nLe,props:tLe,setup(t){const e=t;on($q,Rn({size:Rr(e,"size"),type:Rr(e,"type")}));const n=je("button");return(r,a)=>(z(),ne("div",{class:j(`${S(n).b("group")}`)},[ze(r.$slots,"default")],2))}});var zq=Je(rLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Lt=Zt(eLe,{ButtonGroup:zq}),Uq=Hr(zq);var Gq={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var V=["th","st","nd","rd"],G=A%100;return"["+A+(V[(G-20)%10]||V[G]||V[0])+"]"}},b=function(A,V,G){var I=String(A);return!I||I.length>=V?A:""+Array(V+1-I.length).join(G)+A},w={s:b,z:function(A){var V=-A.utcOffset(),G=Math.abs(V),I=Math.floor(G/60),$=G%60;return(V<=0?"+":"-")+b(I,2,"0")+":"+b($,2,"0")},m:function A(V,G){if(V.date()<G.date())return-A(G,V);var I=12*(G.year()-V.year())+(G.month()-V.month()),$=V.clone().add(I,f),N=G-$<0,P=V.clone().add(I+(N?-1:1),f);return+(-(I+(G-$)/(N?$-P:P-$))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:f,y:h,w:c,d:u,D:p,h:l,m:s,s:o,ms:i,Q:d}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},C="en",x={};x[C]=m;var _="$isDayjsObject",T=function(A){return A instanceof R||!(!A||!A[_])},M=function A(V,G,I){var $;if(!V)return C;if(typeof V=="string"){var N=V.toLowerCase();x[N]&&($=N),G&&(x[N]=G,$=N);var P=V.split("-");if(!$&&P.length>1)return A(P[0])}else{var Y=V.name;x[Y]=V,$=Y}return!I&&$&&(C=$),$||!I&&C},E=function(A,V){if(T(A))return A.clone();var G=typeof V=="object"?V:{};return G.date=A,G.args=arguments,new R(G)},k=w;k.l=M,k.i=T,k.w=function(A,V){return E(A,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var R=function(){function A(G){this.$L=M(G.locale,null,!0),this.parse(G),this.$x=this.$x||G.x||{},this[_]=!0}var V=A.prototype;return V.parse=function(G){this.$d=function(I){var $=I.date,N=I.utc;if($===null)return new Date(NaN);if(k.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var P=$.match(g);if(P){var Y=P[2]-1||0,J=(P[7]||"0").substring(0,3);return N?new Date(Date.UTC(P[1],Y,P[3]||1,P[4]||0,P[5]||0,P[6]||0,J)):new Date(P[1],Y,P[3]||1,P[4]||0,P[5]||0,P[6]||0,J)}}return new Date($)}(G),this.init()},V.init=function(){var G=this.$d;this.$y=G.getFullYear(),this.$M=G.getMonth(),this.$D=G.getDate(),this.$W=G.getDay(),this.$H=G.getHours(),this.$m=G.getMinutes(),this.$s=G.getSeconds(),this.$ms=G.getMilliseconds()},V.$utils=function(){return k},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(G,I){var $=E(G);return this.startOf(I)<=$&&$<=this.endOf(I)},V.isAfter=function(G,I){return E(G)<this.startOf(I)},V.isBefore=function(G,I){return this.endOf(I)<E(G)},V.$g=function(G,I,$){return k.u(G)?this[I]:this.set($,G)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(G,I){var $=this,N=!!k.u(I)||I,P=k.p(G),Y=function(_e,ve){var he=k.w($.$u?Date.UTC($.$y,ve,_e):new Date($.$y,ve,_e),$);return N?he:he.endOf(u)},J=function(_e,ve){return k.w($.toDate()[_e].apply($.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ve)),$)},re=this.$W,oe=this.$M,ue=this.$D,le="set"+(this.$u?"UTC":"");switch(P){case h:return N?Y(1,0):Y(31,11);case f:return N?Y(1,oe):Y(0,oe+1);case c:var fe=this.$locale().weekStart||0,se=(re<fe?re+7:re)-fe;return Y(N?ue-se:ue+(6-se),oe);case u:case p:return J(le+"Hours",0);case l:return J(le+"Minutes",1);case s:return J(le+"Seconds",2);case o:return J(le+"Milliseconds",3);default:return this.clone()}},V.endOf=function(G){return this.startOf(G,!1)},V.$set=function(G,I){var $,N=k.p(G),P="set"+(this.$u?"UTC":""),Y=($={},$[u]=P+"Date",$[p]=P+"Date",$[f]=P+"Month",$[h]=P+"FullYear",$[l]=P+"Hours",$[s]=P+"Minutes",$[o]=P+"Seconds",$[i]=P+"Milliseconds",$)[N],J=N===u?this.$D+(I-this.$W):I;if(N===f||N===h){var re=this.clone().set(p,1);re.$d[Y](J),re.init(),this.$d=re.set(p,Math.min(this.$D,re.daysInMonth())).$d}else Y&&this.$d[Y](J);return this.init(),this},V.set=function(G,I){return this.clone().$set(G,I)},V.get=function(G){return this[k.p(G)]()},V.add=function(G,I){var $,N=this;G=Number(G);var P=k.p(I),Y=function(oe){var ue=E(N);return k.w(ue.date(ue.date()+Math.round(oe*G)),N)};if(P===f)return this.set(f,this.$M+G);if(P===h)return this.set(h,this.$y+G);if(P===u)return Y(1);if(P===c)return Y(7);var J=($={},$[s]=r,$[l]=a,$[o]=n,$)[P]||1,re=this.$d.getTime()+G*J;return k.w(re,this)},V.subtract=function(G,I){return this.add(-1*G,I)},V.format=function(G){var I=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var N=G||"YYYY-MM-DDTHH:mm:ssZ",P=k.z(this),Y=this.$H,J=this.$m,re=this.$M,oe=$.weekdays,ue=$.months,le=$.meridiem,fe=function(ve,he,q,ce){return ve&&(ve[he]||ve(I,N))||q[he].slice(0,ce)},se=function(ve){return k.s(Y%12||12,ve,"0")},_e=le||function(ve,he,q){var ce=ve<12?"AM":"PM";return q?ce.toLowerCase():ce};return N.replace(y,function(ve,he){return he||function(q){switch(q){case"YY":return String(I.$y).slice(-2);case"YYYY":return k.s(I.$y,4,"0");case"M":return re+1;case"MM":return k.s(re+1,2,"0");case"MMM":return fe($.monthsShort,re,ue,3);case"MMMM":return fe(ue,re);case"D":return I.$D;case"DD":return k.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return fe($.weekdaysMin,I.$W,oe,2);case"ddd":return fe($.weekdaysShort,I.$W,oe,3);case"dddd":return oe[I.$W];case"H":return String(Y);case"HH":return k.s(Y,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return _e(Y,J,!0);case"A":return _e(Y,J,!1);case"m":return String(J);case"mm":return k.s(J,2,"0");case"s":return String(I.$s);case"ss":return k.s(I.$s,2,"0");case"SSS":return k.s(I.$ms,3,"0");case"Z":return P}return null}(ve)||P.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(G,I,$){var N,P=this,Y=k.p(I),J=E(G),re=(J.utcOffset()-this.utcOffset())*r,oe=this-J,ue=function(){return k.m(P,J)};switch(Y){case h:N=ue()/12;break;case f:N=ue();break;case d:N=ue()/3;break;case c:N=(oe-re)/6048e5;break;case u:N=(oe-re)/864e5;break;case l:N=oe/a;break;case s:N=oe/r;break;case o:N=oe/n;break;default:N=oe}return $?N:k.a(N)},V.daysInMonth=function(){return this.endOf(f).$D},V.$locale=function(){return x[this.$L]},V.locale=function(G,I){if(!G)return this.$L;var $=this.clone(),N=M(G,I,!0);return N&&($.$L=N),$},V.clone=function(){return k.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},A}(),L=R.prototype;return E.prototype=L,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",p]].forEach(function(A){L[A[1]]=function(V){return this.$g(V,A[0],A[1])}}),E.extend=function(A,V){return A.$i||(A(V,R,E),A.$i=!0),E},E.locale=M,E.isDayjs=T,E.unix=function(A){return E(1e3*A)},E.en=x[C],E.Ls=x,E.p={},E})})(Gq);var aLe=Gq.exports;const qt=wi(aLe);var Hq={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,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(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(g){this[v]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),m=60*y[1]+(+y[2]||0);return m===0?0:y[0]==="+"?-m:m}(v)}],f=function(v){var g=s[v];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(v,g){var y,m=s.meridiem;if(m){for(var b=1;b<=24;b+=1)if(v.indexOf(m(b,0,g))>-1){y=b>12;break}}else y=v===(g?"pm":"PM");return y},h={A:[o,function(v){this.afternoon=d(v,!1)}],a:[o,function(v){this.afternoon=d(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(v){var g=s.ordinal,y=v.match(/\d+/);if(this.day=y[0],g)for(var m=1;m<=31;m+=1)g(m).replace(/\[|\]/g,"")===v&&(this.day=m)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(v){var g=f("months"),y=(f("monthsShort")||g.map(function(m){return m.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[o,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=l(v)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function p(v){var g,y;g=v,y=s&&s.formats;for(var m=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,E,k){var R=k&&k.toUpperCase();return E||y[k]||n[k]||y[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,A,V){return A||V.slice(1)})})).match(r),b=m.length,w=0;w<b;w+=1){var C=m[w],x=h[C],_=x&&x[0],T=x&&x[1];m[w]=T?{regex:_,parser:T}:C.replace(/^\[|\]$/g,"")}return function(M){for(var E={},k=0,R=0;k<b;k+=1){var L=m[k];if(typeof L=="string")R+=L.length;else{var A=L.regex,V=L.parser,G=M.slice(R),I=A.exec(G)[0];V.call(E,I),M=M.replace(I,"")}}return function($){var N=$.afternoon;if(N!==void 0){var P=$.hours;N?P<12&&($.hours+=12):P===12&&($.hours=0),delete $.afternoon}}(E),E}}return function(v,g,y){y.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(l=v.parseTwoDigitYear);var m=g.prototype,b=m.parse;m.parse=function(w){var C=w.date,x=w.utc,_=w.args;this.$u=x;var T=_[1];if(typeof T=="string"){var M=_[2]===!0,E=_[3]===!0,k=M||E,R=_[2];E&&(R=_[2]),s=this.$locale(),!M&&R&&(s=y.Ls[R]),this.$d=function(G,I,$){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*G);var N=p(I)(G),P=N.year,Y=N.month,J=N.day,re=N.hours,oe=N.minutes,ue=N.seconds,le=N.milliseconds,fe=N.zone,se=new Date,_e=J||(P||Y?1:se.getDate()),ve=P||se.getFullYear(),he=0;P&&!Y||(he=Y>0?Y-1:se.getMonth());var q=re||0,ce=oe||0,Se=ue||0,Ae=le||0;return fe?new Date(Date.UTC(ve,he,_e,q,ce,Se,Ae+60*fe.offset*1e3)):$?new Date(Date.UTC(ve,he,_e,q,ce,Se,Ae)):new Date(ve,he,_e,q,ce,Se,Ae)}catch{return new Date("")}}(C,T,x),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),k&&C!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var L=T.length,A=1;A<=L;A+=1){_[1]=T[A-1];var V=y.apply(this,_);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}A===L&&(this.$d=new Date(""))}else b.call(this,w)}}})})(Hq);var iLe=Hq.exports;const zN=wi(iLe),i5=["hours","minutes","seconds"],pL="HH:mm:ss",lv="YYYY-MM-DD",oLe={date:lv,dates:lv,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${lv} ${pL}`,monthrange:"YYYY-MM",daterange:lv,datetimerange:`${lv} ${pL}`},hM=(t,e)=>[t>0?t-1:void 0,t,t<e?t+1:void 0],sf=t=>Array.from(Array.from({length:t}).keys()),Wq=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),jq=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),o5=function(t,e){const n=Uh(t),r=Uh(e);return n&&r?t.getTime()===e.getTime():!n&&!r?t===e:!1},s5=function(t,e){const n=dt(t),r=dt(e);return n&&r?t.length!==e.length?!1:t.every((a,i)=>o5(a,e[i])):!n&&!r?o5(t,e):!1},l5=function(t,e,n){const r=qo(e)||e==="x"?qt(t).locale(n):qt(t,e).locale(n);return r.isValid()?r:void 0},u5=function(t,e,n){return qo(e)?t:e==="x"?+t:qt(t).locale(n).format(e)},pM=(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},Kq=et({disabledHours:{type:De(Function)},disabledMinutes:{type:De(Function)},disabledSeconds:{type:De(Function)}}),Yq=et({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),UN=et({id:{type:De([Array,String])},name:{type:De([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:De([String,Object]),default:Bf},editable:{type:Boolean,default:!0},prefixIcon:{type:De([String,Object]),default:""},size:ai,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:De(Object),default:()=>({})},modelValue:{type:De([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:De([Date,Array])},defaultTime:{type:De([Date,Array])},isRange:{type:Boolean,default:!1},...Kq,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:De([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),sLe=["id","name","placeholder","value","disabled","readonly"],lLe=["id","name","placeholder","value","disabled","readonly"],uLe=pe({name:"Picker"}),cLe=pe({...uLe,props:UN,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(t,{expose:e,emit:n}){const r=t,a=ip(),{lang:i}=xn(),o=je("date"),s=je("input"),l=je("range"),{form:u,formItem:c}=Ki(),f=pt("ElPopperOptions",{}),d=W(),h=W(),p=W(!1),v=W(!1),g=W(null);let y=!1,m=!1;const b=B(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",J.value),o.is("active",p.value),l.b("editor"),Oe?l.bm("editor",Oe.value):"",a.class]),w=B(()=>[s.e("icon"),l.e("close-icon"),_e.value?"":l.e("close-icon--hidden")]);Ge(p,de=>{de?yt(()=>{de&&(g.value=r.modelValue)}):(Ne.value=null,yt(()=>{C(r.modelValue)}))});const C=(de,rt)=>{(rt||!s5(de,g.value))&&(n("change",de),r.validateEvent&&(c==null||c.validate("change").catch(Fe=>void 0)))},x=de=>{if(!s5(r.modelValue,de)){let rt;dt(de)?rt=de.map(Fe=>u5(Fe,r.valueFormat,i.value)):de&&(rt=u5(de,r.valueFormat,i.value)),n("update:modelValue",de&&rt,i.value)}},_=de=>{n("keydown",de)},T=B(()=>{if(h.value){const de=Te.value?h.value:h.value.$el;return Array.from(de.querySelectorAll("input"))}return[]}),M=(de,rt,Fe)=>{const Bt=T.value;Bt.length&&(!Fe||Fe==="min"?(Bt[0].setSelectionRange(de,rt),Bt[0].focus()):Fe==="max"&&(Bt[1].setSelectionRange(de,rt),Bt[1].focus()))},E=()=>{$(!0,!0),yt(()=>{m=!1})},k=(de="",rt=!1)=>{rt||(m=!0),p.value=rt;let Fe;dt(de)?Fe=de.map(Bt=>Bt.toDate()):Fe=de&&de.toDate(),Ne.value=null,x(Fe)},R=()=>{v.value=!0},L=()=>{n("visible-change",!0)},A=de=>{(de==null?void 0:de.key)===_t.esc&&$(!0,!0)},V=()=>{v.value=!1,p.value=!1,m=!1,n("visible-change",!1)},G=()=>{p.value=!0},I=()=>{p.value=!1},$=(de=!0,rt=!1)=>{m=rt;const[Fe,Bt]=S(T);let Yn=Fe;!de&&Te.value&&(Yn=Bt),Yn&&Yn.focus()},N=de=>{r.readonly||J.value||p.value||m||(p.value=!0,n("focus",de))};let P;const Y=de=>{const rt=async()=>{setTimeout(()=>{var Fe;P===rt&&(!((Fe=d.value)!=null&&Fe.isFocusInsideContent()&&!y)&&T.value.filter(Bt=>Bt.contains(document.activeElement)).length===0&&(Le(),p.value=!1,n("blur",de),r.validateEvent&&(c==null||c.validate("blur").catch(Bt=>void 0))),y=!1)},0)};P=rt,rt()},J=B(()=>r.disabled||(u==null?void 0:u.disabled)),re=B(()=>{let de;if(he.value?Me.value.getDefaultValue&&(de=Me.value.getDefaultValue()):dt(r.modelValue)?de=r.modelValue.map(rt=>l5(rt,r.valueFormat,i.value)):de=l5(r.modelValue,r.valueFormat,i.value),Me.value.getRangeAvailableTime){const rt=Me.value.getRangeAvailableTime(de);uo(rt,de)||(de=rt,x(dt(de)?de.map(Fe=>Fe.toDate()):de.toDate()))}return dt(de)&&de.some(rt=>!rt)&&(de=[]),de}),oe=B(()=>{if(!Me.value.panelReady)return"";const de=Re(re.value);return dt(Ne.value)?[Ne.value[0]||de&&de[0]||"",Ne.value[1]||de&&de[1]||""]:Ne.value!==null?Ne.value:!le.value&&he.value||!p.value&&he.value?"":de?fe.value?de.join(", "):de:""}),ue=B(()=>r.type.includes("time")),le=B(()=>r.type.startsWith("time")),fe=B(()=>r.type==="dates"),se=B(()=>r.prefixIcon||(ue.value?MY:b_e)),_e=W(!1),ve=de=>{r.readonly||J.value||_e.value&&(de.stopPropagation(),E(),x(null),C(null,!0),_e.value=!1,p.value=!1,Me.value.handleClear&&Me.value.handleClear())},he=B(()=>{const{modelValue:de}=r;return!de||dt(de)&&!de.filter(Boolean).length}),q=async de=>{var rt;r.readonly||J.value||(((rt=de.target)==null?void 0:rt.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(p.value=!0)},ce=()=>{r.readonly||J.value||!he.value&&r.clearable&&(_e.value=!0)},Se=()=>{_e.value=!1},Ae=de=>{var rt;r.readonly||J.value||(((rt=de.touches[0].target)==null?void 0:rt.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(p.value=!0)},Te=B(()=>r.type.includes("range")),Oe=va(),He=B(()=>{var de,rt;return(rt=(de=S(d))==null?void 0:de.popperRef)==null?void 0:rt.contentRef}),$e=B(()=>{var de;return S(Te)?S(h):(de=S(h))==null?void 0:de.$el});X3($e,de=>{const rt=S(He),Fe=S($e);rt&&(de.target===rt||de.composedPath().includes(rt))||de.target===Fe||de.composedPath().includes(Fe)||(p.value=!1)});const Ne=W(null),Le=()=>{if(Ne.value){const de=ie(oe.value);de&&We(de)&&(x(dt(de)?de.map(rt=>rt.toDate()):de.toDate()),Ne.value=null)}Ne.value===""&&(x(null),C(null),Ne.value=null)},ie=de=>de?Me.value.parseUserInput(de):null,Re=de=>de?Me.value.formatToString(de):null,We=de=>Me.value.isValidValue(de),me=async de=>{if(r.readonly||J.value)return;const{code:rt}=de;if(_(de),rt===_t.esc){p.value===!0&&(p.value=!1,de.preventDefault(),de.stopPropagation());return}if(rt===_t.down&&(Me.value.handleFocusPicker&&(de.preventDefault(),de.stopPropagation()),p.value===!1&&(p.value=!0,await yt()),Me.value.handleFocusPicker)){Me.value.handleFocusPicker();return}if(rt===_t.tab){y=!0;return}if(rt===_t.enter||rt===_t.numpadEnter){(Ne.value===null||Ne.value===""||We(ie(oe.value)))&&(Le(),p.value=!1),de.stopPropagation();return}if(Ne.value){de.stopPropagation();return}Me.value.handleKeydownInput&&Me.value.handleKeydownInput(de)},Ye=de=>{Ne.value=de,p.value||(p.value=!0)},ht=de=>{const rt=de.target;Ne.value?Ne.value=[rt.value,Ne.value[1]]:Ne.value=[rt.value,null]},Ct=de=>{const rt=de.target;Ne.value?Ne.value=[Ne.value[0],rt.value]:Ne.value=[null,rt.value]},Tt=()=>{var de;const rt=Ne.value,Fe=ie(rt&&rt[0]),Bt=S(re);if(Fe&&Fe.isValid()){Ne.value=[Re(Fe),((de=oe.value)==null?void 0:de[1])||null];const Yn=[Fe,Bt&&(Bt[1]||null)];We(Yn)&&(x(Yn),Ne.value=null)}},it=()=>{var de;const rt=S(Ne),Fe=ie(rt&&rt[1]),Bt=S(re);if(Fe&&Fe.isValid()){Ne.value=[((de=S(oe))==null?void 0:de[0])||null,Re(Fe)];const Yn=[Bt&&Bt[0],Fe];We(Yn)&&(x(Yn),Ne.value=null)}},Me=W({}),ge=de=>{Me.value[de[0]]=de[1],Me.value.panelReady=!0},be=de=>{n("calendar-change",de)},Ie=(de,rt,Fe)=>{n("panel-change",de,rt,Fe)};return on("EP_PICKER_BASE",{props:r}),e({focus:$,handleFocusInput:N,handleBlurInput:Y,handleOpen:G,handleClose:I,onPick:k}),(de,rt)=>(z(),xe(S(Gi),en({ref_key:"refPopper",ref:d,visible:p.value,effect:"light",pure:"",trigger:"click"},de.$attrs,{role:"dialog",teleported:"",transition:`${S(o).namespace.value}-zoom-in-top`,"popper-class":[`${S(o).namespace.value}-picker__popper`,de.popperClass],"popper-options":S(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:R,onShow:L,onHide:V}),{default:X(()=>[S(Te)?(z(),ne("div",{key:1,ref_key:"inputRef",ref:h,class:j(S(b)),style:St(de.$attrs.style),onClick:N,onMouseenter:ce,onMouseleave:Se,onTouchstart:Ae,onKeydown:me},[S(se)?(z(),xe(S(mt),{key:0,class:j([S(s).e("icon"),S(l).e("icon")]),onMousedown:kt(q,["prevent"]),onTouchstart:Ae},{default:X(()=>[(z(),xe(tn(S(se))))]),_:1},8,["class","onMousedown"])):we("v-if",!0),U("input",{id:de.id&&de.id[0],autocomplete:"off",name:de.name&&de.name[0],placeholder:de.startPlaceholder,value:S(oe)&&S(oe)[0],disabled:S(J),readonly:!de.editable||de.readonly,class:j(S(l).b("input")),onMousedown:q,onInput:ht,onChange:Tt,onFocus:N,onBlur:Y},null,42,sLe),ze(de.$slots,"range-separator",{},()=>[U("span",{class:j(S(l).b("separator"))},Ke(de.rangeSeparator),3)]),U("input",{id:de.id&&de.id[1],autocomplete:"off",name:de.name&&de.name[1],placeholder:de.endPlaceholder,value:S(oe)&&S(oe)[1],disabled:S(J),readonly:!de.editable||de.readonly,class:j(S(l).b("input")),onMousedown:q,onFocus:N,onBlur:Y,onInput:Ct,onChange:it},null,42,lLe),de.clearIcon?(z(),xe(S(mt),{key:1,class:j(S(w)),onClick:ve},{default:X(()=>[(z(),xe(tn(de.clearIcon)))]),_:1},8,["class"])):we("v-if",!0)],38)):(z(),xe(S(vi),{key:0,id:de.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":S(oe),name:de.name,size:S(Oe),disabled:S(J),placeholder:de.placeholder,class:j([S(o).b("editor"),S(o).bm("editor",de.type),de.$attrs.class]),style:St(de.$attrs.style),readonly:!de.editable||de.readonly||S(fe)||de.type==="week",label:de.label,tabindex:de.tabindex,"validate-event":!1,onInput:Ye,onFocus:N,onBlur:Y,onKeydown:me,onChange:Le,onMousedown:q,onMouseenter:ce,onMouseleave:Se,onTouchstart:Ae,onClick:rt[0]||(rt[0]=kt(()=>{},["stop"]))},{prefix:X(()=>[S(se)?(z(),xe(S(mt),{key:0,class:j(S(s).e("icon")),onMousedown:kt(q,["prevent"]),onTouchstart:Ae},{default:X(()=>[(z(),xe(tn(S(se))))]),_:1},8,["class","onMousedown"])):we("v-if",!0)]),suffix:X(()=>[_e.value&&de.clearIcon?(z(),xe(S(mt),{key:0,class:j(`${S(s).e("icon")} clear-icon`),onClick:kt(ve,["stop"])},{default:X(()=>[(z(),xe(tn(de.clearIcon)))]),_:1},8,["class","onClick"])):we("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:X(()=>[ze(de.$slots,"default",{visible:p.value,actualVisible:v.value,parsedValue:S(re),format:de.format,unlinkPanels:de.unlinkPanels,type:de.type,defaultValue:de.defaultValue,onPick:k,onSelectRange:M,onSetPickerOption:ge,onCalendarChange:be,onPanelChange:Ie,onKeydown:A,onMousedown:rt[1]||(rt[1]=kt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var qq=Je(cLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const fLe=et({...Yq,datetimeRole:String,parsedValue:{type:De(Object)}}),Xq=({getAvailableHours:t,getAvailableMinutes:e,getAvailableSeconds:n})=>{const r=(o,s,l,u)=>{const c={hour:t,minute:e,second:n};let f=o;return["hour","minute","second"].forEach(d=>{if(c[d]){let h;const p=c[d];switch(d){case"minute":{h=p(f.hour(),s,u);break}case"second":{h=p(f.hour(),f.minute(),s,u);break}default:{h=p(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const v=l?0:h.length-1;f=f[d](h[v])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},vM=t=>{const e=(r,a)=>r||a,n=r=>r!==!0;return t.map(e).filter(n)},Zq=(t,e,n)=>({getHoursList:(o,s)=>pM(24,t&&(()=>t==null?void 0:t(o,s))),getMinutesList:(o,s,l)=>pM(60,e&&(()=>e==null?void 0:e(o,s,l))),getSecondsList:(o,s,l,u)=>pM(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),Qq=(t,e,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=Zq(t,e,n);return{getAvailableHours:(u,c)=>vM(r(u,c)),getAvailableMinutes:(u,c,f)=>vM(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>vM(i(u,c,f,d))}},Jq=t=>{const e=W(t.parsedValue);return Ge(()=>t.visible,n=>{n||(e.value=t.parsedValue)}),e},Lc=new Map;let c5;Sn&&(document.addEventListener("mousedown",t=>c5=t),document.addEventListener("mouseup",t=>{for(const e of Lc.values())for(const{documentHandler:n}of e)n(t,c5)}));function f5(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:is(e.arg)&&n.push(e.arg),function(r,a){const i=e.instance.popperRef,o=r.target,s=a==null?void 0:a.target,l=!e||!e.instance,u=!o||!s,c=t.contains(o)||t.contains(s),f=t===o,d=n.length&&n.some(p=>p==null?void 0:p.contains(o))||n.length&&n.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||e.value(r,a)}}const xf={beforeMount(t,e){Lc.has(t)||Lc.set(t,[]),Lc.get(t).push({documentHandler:f5(t,e),bindingFn:e.value})},updated(t,e){Lc.has(t)||Lc.set(t,[]);const n=Lc.get(t),r=n.findIndex(i=>i.bindingFn===e.oldValue),a={documentHandler:f5(t,e),bindingFn:e.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(t){Lc.delete(t)}},dLe=100,hLe=600,Wx={beforeMount(t,e){const n=e.value,{interval:r=dLe,delay:a=hLe}=Vt(n)?{}:n;let i,o;const s=()=>Vt(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))})}},vL="_trap-focus-children",ch=[],d5=t=>{if(ch.length===0)return;const e=ch[ch.length-1][vL];if(e.length>0&&t.code===_t.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())}},pLe={beforeMount(t){t[vL]=EP(t),ch.push(t),ch.length<=1&&document.addEventListener("keydown",d5)},updated(t){yt(()=>{t[vL]=EP(t)})},unmounted(){ch.shift(),ch.length===0&&document.removeEventListener("keydown",d5)}};var h5=!1,Zd,gL,yL,R_,L_,eX,O_,mL,bL,SL,tX,wL,_L,nX,rX;function Ji(){if(!h5){h5=!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(wL=/\b(iPhone|iP[ao]d)/.exec(t),_L=/\b(iP[ao]d)/.exec(t),SL=/Android/i.exec(t),nX=/FBAN\/\w+;/i.exec(t),rX=/Mobile/i.exec(t),tX=!!/Win64/.exec(t),e){Zd=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Zd&&document&&document.documentMode&&(Zd=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(t);eX=r?parseFloat(r[1])+4:Zd,gL=e[2]?parseFloat(e[2]):NaN,yL=e[3]?parseFloat(e[3]):NaN,R_=e[4]?parseFloat(e[4]):NaN,R_?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),L_=e&&e[1]?parseFloat(e[1]):NaN):L_=NaN}else Zd=gL=yL=L_=R_=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);O_=a?parseFloat(a[1].replace("_",".")):!0}else O_=!1;mL=!!n[2],bL=!!n[3]}else O_=mL=bL=!1}}var xL={ie:function(){return Ji()||Zd},ieCompatibilityMode:function(){return Ji()||eX>Zd},ie64:function(){return xL.ie()&&tX},firefox:function(){return Ji()||gL},opera:function(){return Ji()||yL},webkit:function(){return Ji()||R_},safari:function(){return xL.webkit()},chrome:function(){return Ji()||L_},windows:function(){return Ji()||mL},osx:function(){return Ji()||O_},linux:function(){return Ji()||bL},iphone:function(){return Ji()||wL},mobile:function(){return Ji()||wL||_L||SL||rX},nativeApp:function(){return Ji()||nX},android:function(){return Ji()||SL},ipad:function(){return Ji()||_L}},vLe=xL,kS=!!(typeof window<"u"&&window.document&&window.document.createElement),gLe={canUseDOM:kS,canUseWorkers:typeof Worker<"u",canUseEventListeners:kS&&!!(window.addEventListener||window.attachEvent),canUseViewport:kS&&!!window.screen,isInWorker:!kS},aX=gLe,iX;aX.canUseDOM&&(iX=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function yLe(t,e){if(!aX.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&&iX&&t==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var mLe=yLe,p5=10,v5=40,g5=800;function oX(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*p5,a=n*p5,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode==1?(r*=v5,a*=v5):(r*=g5,a*=g5)),r&&!e&&(e=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:a}}oX.getEventType=function(){return vLe.firefox()?"DOMMouseScroll":mLe("wheel")?"wheel":"mousewheel"};var bLe=oX;/**
  37. * Checks if an event is supported in the current execution environment.
  38. *
  39. * NOTE: This will not work correctly for non-generic events such as `change`,
  40. * `reset`, `load`, `error`, and `select`.
  41. *
  42. * Borrows from Modernizr.
  43. *
  44. * @param {string} eventNameSuffix Event name, e.g. "click".
  45. * @param {?boolean} capture Check if the capture phase is supported.
  46. * @return {boolean} True if the event is supported.
  47. * @internal
  48. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  49. */const SLe=function(t,e){if(t&&t.addEventListener){const n=function(r){const a=bLe(r);e&&Reflect.apply(e,this,[r,a])};t.addEventListener("wheel",n,{passive:!0})}},wLe={beforeMount(t,e){SLe(t,e.value)}},_Le=et({role:{type:String,required:!0},spinnerDate:{type:De(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:De(String),default:""},...Kq}),xLe=["onClick"],CLe=["onMouseenter"],TLe=pe({__name:"basic-time-spinner",props:_Le,emits:["change","select-range","set-option"],setup(t,{emit:e}){const n=t,r=je("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=Zq(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=W(),u=W(),c=W(),f=W(),d={hours:u,minutes:c,seconds:f},h=B(()=>n.showSeconds?i5:i5.slice(0,2)),p=B(()=>{const{spinnerDate:N}=n,P=N.hour(),Y=N.minute(),J=N.second();return{hours:P,minutes:Y,seconds:J}}),v=B(()=>{const{hours:N,minutes:P}=S(p);return{hours:a(n.role),minutes:i(N,n.role),seconds:o(N,P,n.role)}}),g=B(()=>{const{hours:N,minutes:P,seconds:Y}=S(p);return{hours:hM(N,23),minutes:hM(P,59),seconds:hM(Y,59)}}),y=Ui(N=>{s=!1,w(N)},200),m=N=>{if(!!!n.amPmMode)return"";const Y=n.amPmMode==="A";let J=N<12?" am":" pm";return Y&&(J=J.toUpperCase()),J},b=N=>{let P;switch(N){case"hours":P=[0,2];break;case"minutes":P=[3,5];break;case"seconds":P=[6,8];break}const[Y,J]=P;e("select-range",Y,J),l.value=N},w=N=>{_(N,S(p)[N])},C=()=>{w("hours"),w("minutes"),w("seconds")},x=N=>N.querySelector(`.${r.namespace.value}-scrollbar__wrap`),_=(N,P)=>{if(n.arrowControl)return;const Y=S(d[N]);Y&&Y.$el&&(x(Y.$el).scrollTop=Math.max(0,P*T(N)))},T=N=>{const P=S(d[N]),Y=P==null?void 0:P.$el.querySelector("li");return Y&&Number.parseFloat(Wc(Y,"height"))||0},M=()=>{k(1)},E=()=>{k(-1)},k=N=>{l.value||b("hours");const P=l.value,Y=S(p)[P],J=l.value==="hours"?24:60,re=R(P,Y,N,J);L(P,re),_(P,re),yt(()=>b(P))},R=(N,P,Y,J)=>{let re=(P+Y+J)%J;const oe=S(v)[N];for(;oe[re]&&re!==P;)re=(re+Y+J)%J;return re},L=(N,P)=>{if(S(v)[N][P])return;const{hours:re,minutes:oe,seconds:ue}=S(p);let le;switch(N){case"hours":le=n.spinnerDate.hour(P).minute(oe).second(ue);break;case"minutes":le=n.spinnerDate.hour(re).minute(P).second(ue);break;case"seconds":le=n.spinnerDate.hour(re).minute(oe).second(P);break}e("change",le)},A=(N,{value:P,disabled:Y})=>{Y||(L(N,P),b(N),_(N,P))},V=N=>{s=!0,y(N);const P=Math.min(Math.round((x(S(d[N]).$el).scrollTop-(G(N)*.5-10)/T(N)+3)/T(N)),N==="hours"?23:59);L(N,P)},G=N=>S(d[N]).$el.offsetHeight,I=()=>{const N=P=>{const Y=S(d[P]);Y&&Y.$el&&(x(Y.$el).onscroll=()=>{V(P)})};N("hours"),N("minutes"),N("seconds")};Pt(()=>{yt(()=>{!n.arrowControl&&I(),C(),n.role==="start"&&b("hours")})});const $=(N,P)=>{d[P].value=N};return e("set-option",[`${n.role}_scrollDown`,k]),e("set-option",[`${n.role}_emitSelectRange`,b]),Ge(()=>n.spinnerDate,()=>{s||C()}),(N,P)=>(z(),ne("div",{class:j([S(r).b("spinner"),{"has-seconds":N.showSeconds}])},[N.arrowControl?we("v-if",!0):(z(!0),ne(bt,{key:0},ln(S(h),Y=>(z(),xe(S(ec),{key:Y,ref_for:!0,ref:J=>$(J,Y),class:j(S(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":S(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:J=>b(Y),onMousemove:J=>w(Y)},{default:X(()=>[(z(!0),ne(bt,null,ln(S(v)[Y],(J,re)=>(z(),ne("li",{key:re,class:j([S(r).be("spinner","item"),S(r).is("active",re===S(p)[Y]),S(r).is("disabled",J)]),onClick:oe=>A(Y,{value:re,disabled:J})},[Y==="hours"?(z(),ne(bt,{key:0},[lt(Ke(("0"+(N.amPmMode?re%12||12:re)).slice(-2))+Ke(m(re)),1)],64)):(z(),ne(bt,{key:1},[lt(Ke(("0"+re).slice(-2)),1)],64))],10,xLe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),N.arrowControl?(z(!0),ne(bt,{key:1},ln(S(h),Y=>(z(),ne("div",{key:Y,class:j([S(r).be("spinner","wrapper"),S(r).is("arrow")]),onMouseenter:J=>b(Y)},[Ft((z(),xe(S(mt),{class:j(["arrow-up",S(r).be("spinner","arrow")])},{default:X(()=>[H(S(eT))]),_:1},8,["class"])),[[S(Wx),E]]),Ft((z(),xe(S(mt),{class:j(["arrow-down",S(r).be("spinner","arrow")])},{default:X(()=>[H(S(Vf))]),_:1},8,["class"])),[[S(Wx),M]]),U("ul",{class:j(S(r).be("spinner","list"))},[(z(!0),ne(bt,null,ln(S(g)[Y],(J,re)=>(z(),ne("li",{key:re,class:j([S(r).be("spinner","item"),S(r).is("active",J===S(p)[Y]),S(r).is("disabled",S(v)[Y][J])])},[typeof J=="number"?(z(),ne(bt,{key:0},[Y==="hours"?(z(),ne(bt,{key:0},[lt(Ke(("0"+(N.amPmMode?J%12||12:J)).slice(-2))+Ke(m(J)),1)],64)):(z(),ne(bt,{key:1},[lt(Ke(("0"+J).slice(-2)),1)],64))],64)):we("v-if",!0)],2))),128))],2)],42,CLe))),128)):we("v-if",!0)],2))}});var CL=Je(TLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const ELe=pe({__name:"panel-time-pick",props:fLe,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=pt("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=Qq(i,o,s),d=je("time"),{t:h,lang:p}=xn(),v=W([0,2]),g=Jq(n),y=B(()=>ba(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),m=B(()=>n.format.includes("ss")),b=B(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=$=>{const N=qt($).locale(p.value),P=A(N);return N.isSame(P)},C=()=>{e("pick",g.value,!1)},x=($=!1,N=!1)=>{N||e("pick",n.parsedValue,$)},_=$=>{if(!n.visible)return;const N=A($).millisecond(0);e("pick",N,!0)},T=($,N)=>{e("select-range",$,N),v.value=[$,N]},M=$=>{const N=[0,3].concat(m.value?[6]:[]),P=["hours","minutes"].concat(m.value?["seconds"]:[]),J=(N.indexOf(v.value[0])+$+N.length)%N.length;k.start_emitSelectRange(P[J])},E=$=>{const N=$.code,{left:P,right:Y,up:J,down:re}=_t;if([P,Y].includes(N)){M(N===P?-1:1),$.preventDefault();return}if([J,re].includes(N)){const oe=N===J?-1:1;k.start_scrollDown(oe),$.preventDefault();return}},{timePickerOptions:k,onSetOption:R,getAvailableTime:L}=Xq({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),A=$=>L($,n.datetimeRole||"",!0),V=$=>$?qt($,n.format).locale(p.value):null,G=$=>$?$.format(n.format):null,I=()=>qt(l).locale(p.value);return e("set-picker-option",["isValidValue",w]),e("set-picker-option",["formatToString",G]),e("set-picker-option",["parseUserInput",V]),e("set-picker-option",["handleKeydownInput",E]),e("set-picker-option",["getRangeAvailableTime",A]),e("set-picker-option",["getDefaultValue",I]),($,N)=>(z(),xe(Jr,{name:S(y)},{default:X(()=>[$.actualVisible||$.visible?(z(),ne("div",{key:0,class:j(S(d).b("panel"))},[U("div",{class:j([S(d).be("panel","content"),{"has-seconds":S(m)}])},[H(CL,{ref:"spinner",role:$.datetimeRole||"start","arrow-control":S(a),"show-seconds":S(m),"am-pm-mode":S(b),"spinner-date":$.parsedValue,"disabled-hours":S(i),"disabled-minutes":S(o),"disabled-seconds":S(s),onChange:_,onSetOption:S(R),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),U("div",{class:j(S(d).be("panel","footer"))},[U("button",{type:"button",class:j([S(d).be("panel","btn"),"cancel"]),onClick:C},Ke(S(h)("el.datepicker.cancel")),3),U("button",{type:"button",class:j([S(d).be("panel","btn"),"confirm"]),onClick:N[0]||(N[0]=P=>x())},Ke(S(h)("el.datepicker.confirm")),3)],2)],2)):we("v-if",!0)]),_:1},8,["name"]))}});var jx=Je(ELe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const MLe=et({...Yq,parsedValue:{type:De(Array)}}),DLe=["disabled"],kLe=pe({__name:"panel-time-range",props:MLe,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=(he,q)=>{const ce=[];for(let Se=he;Se<=q;Se++)ce.push(Se);return ce},{t:a,lang:i}=xn(),o=je("time"),s=je("picker"),l=pt("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,p=B(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),v=B(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),g=B(()=>n.parsedValue[0]),y=B(()=>n.parsedValue[1]),m=Jq(n),b=()=>{e("pick",m.value,!1)},w=B(()=>n.format.includes("ss")),C=B(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),x=(he=!1)=>{e("pick",[g.value,y.value],he)},_=he=>{E(he.millisecond(0),y.value)},T=he=>{E(g.value,he.millisecond(0))},M=he=>{const q=he.map(Se=>qt(Se).locale(i.value)),ce=Y(q);return q[0].isSame(ce[0])&&q[1].isSame(ce[1])},E=(he,q)=>{e("pick",[he,q],!0)},k=B(()=>g.value>y.value),R=W([0,2]),L=(he,q)=>{e("select-range",he,q,"min"),R.value=[he,q]},A=B(()=>w.value?11:8),V=(he,q)=>{e("select-range",he,q,"max");const ce=S(A);R.value=[he+ce,q+ce]},G=he=>{const q=w.value?[0,3,6,11,14,17]:[0,3,8,11],ce=["hours","minutes"].concat(w.value?["seconds"]:[]),Ae=(q.indexOf(R.value[0])+he+q.length)%q.length,Te=q.length/2;Ae<Te?ue.start_emitSelectRange(ce[Ae]):ue.end_emitSelectRange(ce[Ae-Te])},I=he=>{const q=he.code,{left:ce,right:Se,up:Ae,down:Te}=_t;if([ce,Se].includes(q)){G(q===ce?-1:1),he.preventDefault();return}if([Ae,Te].includes(q)){const Oe=q===Ae?-1:1,He=R.value[0]<A.value?"start":"end";ue[`${He}_scrollDown`](Oe),he.preventDefault();return}},$=(he,q)=>{const ce=c?c(he):[],Se=he==="start",Te=(q||(Se?y.value:g.value)).hour(),Oe=Se?r(Te+1,23):r(0,Te-1);return iM(ce,Oe)},N=(he,q,ce)=>{const Se=f?f(he,q):[],Ae=q==="start",Te=ce||(Ae?y.value:g.value),Oe=Te.hour();if(he!==Oe)return Se;const He=Te.minute(),$e=Ae?r(He+1,59):r(0,He-1);return iM(Se,$e)},P=(he,q,ce,Se)=>{const Ae=d?d(he,q,ce):[],Te=ce==="start",Oe=Se||(Te?y.value:g.value),He=Oe.hour(),$e=Oe.minute();if(he!==He||q!==$e)return Ae;const Ne=Oe.second(),Le=Te?r(Ne+1,59):r(0,Ne-1);return iM(Ae,Le)},Y=([he,q])=>[le(he,"start",!0,q),le(q,"end",!1,he)],{getAvailableHours:J,getAvailableMinutes:re,getAvailableSeconds:oe}=Qq($,N,P),{timePickerOptions:ue,getAvailableTime:le,onSetOption:fe}=Xq({getAvailableHours:J,getAvailableMinutes:re,getAvailableSeconds:oe}),se=he=>he?dt(he)?he.map(q=>qt(q,n.format).locale(i.value)):qt(he,n.format).locale(i.value):null,_e=he=>he?dt(he)?he.map(q=>q.format(n.format)):he.format(n.format):null,ve=()=>{if(dt(h))return h.map(q=>qt(q).locale(i.value));const he=qt(h).locale(i.value);return[he,he.add(60,"m")]};return e("set-picker-option",["formatToString",_e]),e("set-picker-option",["parseUserInput",se]),e("set-picker-option",["isValidValue",M]),e("set-picker-option",["handleKeydownInput",I]),e("set-picker-option",["getDefaultValue",ve]),e("set-picker-option",["getRangeAvailableTime",Y]),(he,q)=>he.actualVisible?(z(),ne("div",{key:0,class:j([S(o).b("range-picker"),S(s).b("panel")])},[U("div",{class:j(S(o).be("range-picker","content"))},[U("div",{class:j(S(o).be("range-picker","cell"))},[U("div",{class:j(S(o).be("range-picker","header"))},Ke(S(a)("el.datepicker.startTime")),3),U("div",{class:j(S(p))},[H(CL,{ref:"minSpinner",role:"start","show-seconds":S(w),"am-pm-mode":S(C),"arrow-control":S(u),"spinner-date":S(g),"disabled-hours":$,"disabled-minutes":N,"disabled-seconds":P,onChange:_,onSetOption:S(fe),onSelectRange:L},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),U("div",{class:j(S(o).be("range-picker","cell"))},[U("div",{class:j(S(o).be("range-picker","header"))},Ke(S(a)("el.datepicker.endTime")),3),U("div",{class:j(S(v))},[H(CL,{ref:"maxSpinner",role:"end","show-seconds":S(w),"am-pm-mode":S(C),"arrow-control":S(u),"spinner-date":S(y),"disabled-hours":$,"disabled-minutes":N,"disabled-seconds":P,onChange:T,onSetOption:S(fe),onSelectRange:V},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),U("div",{class:j(S(o).be("panel","footer"))},[U("button",{type:"button",class:j([S(o).be("panel","btn"),"cancel"]),onClick:q[0]||(q[0]=ce=>b())},Ke(S(a)("el.datepicker.cancel")),3),U("button",{type:"button",class:j([S(o).be("panel","btn"),"confirm"]),disabled:S(k),onClick:q[1]||(q[1]=ce=>x())},Ke(S(a)("el.datepicker.confirm")),11,DLe)],2)],2)):we("v-if",!0)}});var RLe=Je(kLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);qt.extend(zN);var LLe=pe({name:"ElTimePicker",install:null,props:{...UN,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,e){const n=W(),[r,a]=t.isRange?["timerange",RLe]:["time",jx],i=o=>e.emit("update:modelValue",o);return on("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:pL;return H(qq,en(t,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>H(a,l,null)})}}});const A_=LLe;A_.install=t=>{t.component(A_.name,A_)};const OLe=A_,ALe=(t,e)=>{const n=t.subtract(1,"month").endOf("month").date();return sf(e).map((r,a)=>n-(e-a-1))},NLe=t=>{const e=t.daysInMonth();return sf(e).map((n,r)=>r+1)},VLe=t=>sf(t.length/7).map(e=>{const n=e*7;return t.slice(n,n+7)}),BLe=et({selectedDay:{type:De(Object)},range:{type:De(Array)},date:{type:De(Object),required:!0},hideHeader:{type:Boolean}}),ILe={pick:t=>an(t)};var sX={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,function(){return function(n,r,a){var i=r.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,p,v){var g=f.name?f:f.$locale(),y=o(g[d]),m=o(g[h]),b=y||m.map(function(C){return C.slice(0,p)});if(!v)return b;var w=g.weekStart;return b.map(function(C,x){return b[(x+(w||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,g){return v||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(sX);var $Le=sX.exports;const lX=wi($Le),PLe=(t,e)=>{qt.extend(lX);const n=qt.localeData().firstDayOfWeek(),{t:r,lang:a}=xn(),i=qt().locale(a.value),o=B(()=>!!t.range&&!!t.range.length),s=B(()=>{let d=[];if(o.value){const[h,p]=t.range,v=sf(p.date()-h.date()+1).map(m=>({text:h.date()+m,type:"current"}));let g=v.length%7;g=g===0?0:7-g;const y=sf(g).map((m,b)=>({text:b+1,type:"next"}));d=v.concat(y)}else{const h=t.date.startOf("month").day(),p=ALe(t.date,(h-n+7)%7).map(m=>({text:m,type:"prev"})),v=NLe(t.date).map(m=>({text:m,type:"current"}));d=[...p,...v];const g=7-(d.length%7||7),y=sf(g).map((m,b)=>({text:b+1,type:"next"}));d=d.concat(y)}return VLe(d)}),l=B(()=>{const d=n;return d===0?oM.map(h=>r(`el.datepicker.weeks.${h}`)):oM.slice(d).concat(oM.slice(0,d)).map(h=>r(`el.datepicker.weeks.${h}`))}),u=(d,h)=>{switch(h){case"prev":return t.date.startOf("month").subtract(1,"month").date(d);case"next":return t.date.startOf("month").add(1,"month").date(d);case"current":return t.date.date(d)}};return{now:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:h})=>{const p=u(d,h);e("pick",p)},getSlotData:({text:d,type:h})=>{const p=u(d,h);return{isSelected:p.isSame(t.selectedDay),type:`${h}-month`,day:p.format("YYYY-MM-DD"),date:p.toDate()}}}},FLe={key:0},zLe=["onClick"],ULe=pe({name:"DateTable"}),GLe=pe({...ULe,props:BLe,emits:ILe,setup(t,{expose:e,emit:n}){const r=t,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=PLe(r,n),f=je("calendar-table"),d=je("calendar-day"),h=({text:p,type:v})=>{const g=[v];if(v==="current"){const y=l(p,v);y.isSame(r.selectedDay,"day")&&g.push(d.is("selected")),y.isSame(i,"day")&&g.push(d.is("today"))}return g};return e({getFormattedDate:l}),(p,v)=>(z(),ne("table",{class:j([S(f).b(),S(f).is("range",S(a))]),cellspacing:"0",cellpadding:"0"},[p.hideHeader?we("v-if",!0):(z(),ne("thead",FLe,[(z(!0),ne(bt,null,ln(S(s),g=>(z(),ne("th",{key:g},Ke(g),1))),128))])),U("tbody",null,[(z(!0),ne(bt,null,ln(S(o),(g,y)=>(z(),ne("tr",{key:y,class:j({[S(f).e("row")]:!0,[S(f).em("row","hide-border")]:y===0&&p.hideHeader})},[(z(!0),ne(bt,null,ln(g,(m,b)=>(z(),ne("td",{key:b,class:j(h(m)),onClick:w=>S(u)(m)},[U("div",{class:j(S(d).b())},[ze(p.$slots,"date-cell",{data:S(c)(m)},()=>[U("span",null,Ke(m.text),1)])],2)],10,zLe))),128))],2))),128))])],2))}});var y5=Je(GLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const HLe=(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]]},WLe=(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]]},jLe=(t,e,n)=>{const r=li(),{lang:a}=xn(),i=W(),o=qt().locale(a.value),s=B({get(){return t.modelValue?u.value:i.value},set(y){if(!y)return;i.value=y;const m=y.toDate();e(Ii,m),e(Qt,m)}}),l=B(()=>{if(!t.range)return[];const y=t.range.map(w=>qt(w).locale(a.value)),[m,b]=y;return m.isAfter(b)?[]:m.isSame(b,"month")?p(m,b):m.add(1,"month").month()!==b.month()?[]:p(m,b)}),u=B(()=>t.modelValue?qt(t.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=B(()=>u.value.subtract(1,"month").date(1)),f=B(()=>u.value.add(1,"month").date(1)),d=B(()=>u.value.subtract(1,"year").date(1)),h=B(()=>u.value.add(1,"year").date(1)),p=(y,m)=>{const b=y.startOf("week"),w=m.endOf("week"),C=b.get("month"),x=w.get("month");return C===x?[[b,w]]:(C+1)%12===x?HLe(b,w):C+2===x||(C+1)%11===x?WLe(b,w):[]},v=y=>{s.value=y},g=y=>{const b={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[y];b.isSame(u.value,"day")||v(b)};return jl({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},B(()=>!!r.dateCell)),{calculateValidatedDateRange:p,date:u,realSelectedDay:s,pickDay:v,selectDate:g,validatedRange:l}},KLe=t=>dt(t)&&t.length===2&&t.every(e=>Uh(e)),YLe=et({modelValue:{type:Date},range:{type:De(Array),validator:KLe}}),qLe={[Qt]:t=>Uh(t),[Ii]:t=>Uh(t)},XLe="ElCalendar",ZLe=pe({name:XLe}),QLe=pe({...ZLe,props:YLe,emits:qLe,setup(t,{expose:e,emit:n}){const r=t,a=je("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=jLe(r,n),{t:f}=xn(),d=B(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return e({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,p)=>(z(),ne("div",{class:j(S(a).b())},[U("div",{class:j(S(a).e("header"))},[ze(h.$slots,"header",{date:S(d)},()=>[U("div",{class:j(S(a).e("title"))},Ke(S(d)),3),S(c).length===0?(z(),ne("div",{key:0,class:j(S(a).e("button-group"))},[H(S(Uq),null,{default:X(()=>[H(S(Lt),{size:"small",onClick:p[0]||(p[0]=v=>S(u)("prev-month"))},{default:X(()=>[lt(Ke(S(f)("el.datepicker.prevMonth")),1)]),_:1}),H(S(Lt),{size:"small",onClick:p[1]||(p[1]=v=>S(u)("today"))},{default:X(()=>[lt(Ke(S(f)("el.datepicker.today")),1)]),_:1}),H(S(Lt),{size:"small",onClick:p[2]||(p[2]=v=>S(u)("next-month"))},{default:X(()=>[lt(Ke(S(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):we("v-if",!0)])],2),S(c).length===0?(z(),ne("div",{key:0,class:j(S(a).e("body"))},[H(y5,{date:S(o),"selected-day":S(l),onPick:S(s)},Iu({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:X(v=>[h.$slots["date-cell"]?ze(h.$slots,"date-cell",$s(en({key:0},v))):ze(h.$slots,"dateCell",$s(en({key:1},v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(z(),ne("div",{key:1,class:j(S(a).e("body"))},[(z(!0),ne(bt,null,ln(S(c),(v,g)=>(z(),xe(y5,{key:g,date:v[0],"selected-day":S(l),range:v,"hide-header":g!==0,onPick:S(s)},Iu({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:X(y=>[h.$slots["date-cell"]?ze(h.$slots,"date-cell",$s(en({key:0},y))):ze(h.$slots,"dateCell",$s(en({key:1},y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var JLe=Je(QLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const eOe=Zt(JLe),tOe=et({header:{type:String,default:""},bodyStyle:{type:De([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),nOe=pe({name:"ElCard"}),rOe=pe({...nOe,props:tOe,setup(t){const e=je("card");return(n,r)=>(z(),ne("div",{class:j([S(e).b(),S(e).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(z(),ne("div",{key:0,class:j(S(e).e("header"))},[ze(n.$slots,"header",{},()=>[lt(Ke(n.header),1)])],2)):we("v-if",!0),U("div",{class:j([S(e).e("body"),n.bodyClass]),style:St(n.bodyStyle)},[ze(n.$slots,"default")],6)],2))}});var aOe=Je(rOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const iOe=Zt(aOe),oOe=et({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}}),sOe={change:(t,e)=>[t,e].every(Nt)},uX=Symbol("carouselContextKey"),m5=300,lOe=(t,e,n)=>{const{children:r,addChild:a,removeChild:i}=VN(Yt(),"ElCarouselItem"),o=W(-1),s=W(null),l=W(!1),u=W(),c=W(0),f=B(()=>t.arrow!=="never"&&!S(p)),d=B(()=>r.value.some(N=>N.props.label.toString().length>0)),h=B(()=>t.type==="card"),p=B(()=>t.direction==="vertical"),v=B(()=>t.height!=="auto"?{height:t.height}:{height:`${c.value}px`,overflow:"hidden"}),g=Eh(N=>{C(N)},m5,{trailing:!0}),y=Eh(N=>{L(N)},m5);function m(){s.value&&(clearInterval(s.value),s.value=null)}function b(){t.interval<=0||!t.autoplay||s.value||(s.value=setInterval(()=>w(),t.interval))}const w=()=>{o.value<r.value.length-1?o.value=o.value+1:t.loop&&(o.value=0)};function C(N){if($t(N)){const J=r.value.filter(re=>re.props.name===N);J.length>0&&(N=r.value.indexOf(J[0]))}if(N=Number(N),Number.isNaN(N)||N!==Math.floor(N))return;const P=r.value.length,Y=o.value;N<0?o.value=t.loop?P-1:0:N>=P?o.value=t.loop?0:P-1:o.value=N,Y===o.value&&x(Y),G()}function x(N){r.value.forEach((P,Y)=>{P.translateItem(Y,o.value,N)})}function _(N,P){var Y,J,re,oe;const ue=S(r),le=ue.length;if(le===0||!N.states.inStage)return!1;const fe=P+1,se=P-1,_e=le-1,ve=ue[_e].states.active,he=ue[0].states.active,q=(J=(Y=ue[fe])==null?void 0:Y.states)==null?void 0:J.active,ce=(oe=(re=ue[se])==null?void 0:re.states)==null?void 0:oe.active;return P===_e&&he||q?"left":P===0&&ve||ce?"right":!1}function T(){l.value=!0,t.pauseOnHover&&m()}function M(){l.value=!1,b()}function E(N){S(p)||r.value.forEach((P,Y)=>{N===_(P,Y)&&(P.states.hover=!0)})}function k(){S(p)||r.value.forEach(N=>{N.states.hover=!1})}function R(N){o.value=N}function L(N){t.trigger==="hover"&&N!==o.value&&(o.value=N)}function A(){C(o.value-1)}function V(){C(o.value+1)}function G(){m(),b()}function I(N){t.height==="auto"&&(c.value=N)}Ge(()=>o.value,(N,P)=>{x(P),P>-1&&e("change",N,P)}),Ge(()=>t.autoplay,N=>{N?b():m()}),Ge(()=>t.loop,()=>{C(o.value)}),Ge(()=>t.interval,()=>{G()}),Ge(()=>r.value,()=>{r.value.length>0&&C(t.initialIndex)});const $=or();return Pt(()=>{$.value=yi(u.value,()=>{x()}),b()}),fr(()=>{m(),u.value&&$.value&&$.value.stop()}),on(uX,{root:u,isCardType:h,isVertical:p,items:r,loop:t.loop,addItem:a,removeItem:i,setActiveItem:C,setContainerHeight:I}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:p,containerStyle:v,handleButtonEnter:E,handleButtonLeave:k,handleIndicatorClick:R,handleMouseEnter:T,handleMouseLeave:M,setActiveItem:C,prev:A,next:V,throttledArrowClick:g,throttledIndicatorHover:y}},uOe=["onMouseenter","onClick"],cOe={key:0},fOe="ElCarousel",dOe=pe({name:fOe}),hOe=pe({...dOe,props:oOe,emits:sOe,setup(t,{expose:e,emit:n}){const r=t,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:p,handleIndicatorClick:v,handleMouseEnter:g,handleMouseLeave:y,setActiveItem:m,prev:b,next:w,throttledArrowClick:C,throttledIndicatorHover:x}=lOe(r,n),_=je("carousel"),T=B(()=>{const E=[_.b(),_.m(r.direction)];return S(u)&&E.push(_.m("card")),E}),M=B(()=>{const E=[_.e("indicators"),_.em("indicators",r.direction)];return S(s)&&E.push(_.em("indicators","labels")),r.indicatorPosition==="outside"&&E.push(_.em("indicators","outside")),S(f)&&E.push(_.em("indicators","right")),E});return e({setActiveItem:m,prev:b,next:w}),(E,k)=>(z(),ne("div",{ref_key:"root",ref:a,class:j(S(T)),onMouseenter:k[6]||(k[6]=kt((...R)=>S(g)&&S(g)(...R),["stop"])),onMouseleave:k[7]||(k[7]=kt((...R)=>S(y)&&S(y)(...R),["stop"]))},[U("div",{class:j(S(_).e("container")),style:St(S(d))},[S(o)?(z(),xe(Jr,{key:0,name:"carousel-arrow-left",persisted:""},{default:X(()=>[Ft(U("button",{type:"button",class:j([S(_).e("arrow"),S(_).em("arrow","left")]),onMouseenter:k[0]||(k[0]=R=>S(h)("left")),onMouseleave:k[1]||(k[1]=(...R)=>S(p)&&S(p)(...R)),onClick:k[2]||(k[2]=kt(R=>S(C)(S(i)-1),["stop"]))},[H(S(mt),null,{default:X(()=>[H(S(bf))]),_:1})],34),[[pn,(E.arrow==="always"||S(l))&&(r.loop||S(i)>0)]])]),_:1})):we("v-if",!0),S(o)?(z(),xe(Jr,{key:1,name:"carousel-arrow-right",persisted:""},{default:X(()=>[Ft(U("button",{type:"button",class:j([S(_).e("arrow"),S(_).em("arrow","right")]),onMouseenter:k[3]||(k[3]=R=>S(h)("right")),onMouseleave:k[4]||(k[4]=(...R)=>S(p)&&S(p)(...R)),onClick:k[5]||(k[5]=kt(R=>S(C)(S(i)+1),["stop"]))},[H(S(mt),null,{default:X(()=>[H(S(Bi))]),_:1})],34),[[pn,(E.arrow==="always"||S(l))&&(r.loop||S(i)<S(c).length-1)]])]),_:1})):we("v-if",!0),ze(E.$slots,"default")],6),E.indicatorPosition!=="none"?(z(),ne("ul",{key:0,class:j(S(M))},[(z(!0),ne(bt,null,ln(S(c),(R,L)=>(z(),ne("li",{key:L,class:j([S(_).e("indicator"),S(_).em("indicator",E.direction),S(_).is("active",L===S(i))]),onMouseenter:A=>S(x)(L),onClick:kt(A=>S(v)(L),["stop"])},[U("button",{class:j(S(_).e("button"))},[S(s)?(z(),ne("span",cOe,Ke(R.props.label),1)):we("v-if",!0)],2)],42,uOe))),128))],2)):we("v-if",!0)],34))}});var pOe=Je(hOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const vOe=et({name:{type:String,default:""},label:{type:[String,Number],default:""}}),gOe=(t,e)=>{const n=pt(uX),r=Yt(),a=.83,i=W(),o=W(!1),s=W(0),l=W(1),u=W(!1),c=W(!1),f=W(!1),d=W(!1),{isCardType:h,isVertical:p}=n;function v(w,C,x){const _=x-1,T=C-1,M=C+1,E=x/2;return C===0&&w===_?-1:C===_&&w===0?x:w<T&&C-w>=E?x+1:w>M&&w-C>=E?-2:w}function g(w,C){var x,_;const T=S(p)?((x=n.root.value)==null?void 0:x.offsetHeight)||0:((_=n.root.value)==null?void 0:_.offsetWidth)||0;return f.value?T*((2-a)*(w-C)+1)/4:w<C?-(1+a)*T/4:(3+a)*T/4}function y(w,C,x){const _=n.root.value;return _?((x?_.offsetHeight:_.offsetWidth)||0)*(w-C):0}const m=(w,C,x)=>{var _;const T=S(h),M=(_=n.items.value.length)!=null?_:Number.NaN,E=w===C;!T&&!ba(x)&&(d.value=E||w===x),!E&&M>2&&n.loop&&(w=v(w,C,M));const k=S(p);u.value=E,T?(f.value=Math.round(Math.abs(w-C))<=1,s.value=g(w,C),l.value=S(u)?1:a):s.value=y(w,C,k),c.value=!0,E&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function b(){if(n&&S(h)){const w=n.items.value.findIndex(({uid:C})=>C===r.uid);n.setActiveItem(w)}}return Pt(()=>{n.addItem({props:t,states:Rn({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:m})}),Zu(()=>{n.removeItem(r.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:p,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:b}},yOe=pe({name:"ElCarouselItem"}),mOe=pe({...yOe,props:vOe,setup(t){const e=t,n=je("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=gOe(e),p=B(()=>{const g=`${`translate${S(l)?"Y":"X"}`}(${S(u)}px)`,y=`scale(${S(f)})`;return{transform:[g,y].join(" ")}});return(v,g)=>Ft((z(),ne("div",{ref_key:"carouselItemRef",ref:r,class:j([S(n).e("item"),S(n).is("active",S(a)),S(n).is("in-stage",S(s)),S(n).is("hover",S(o)),S(n).is("animating",S(i)),{[S(n).em("item","card")]:S(c),[S(n).em("item","card-vertical")]:S(c)&&S(l)}]),style:St(S(p)),onClick:g[0]||(g[0]=(...y)=>S(h)&&S(h)(...y))},[S(c)?Ft((z(),ne("div",{key:0,class:j(S(n).e("mask"))},null,2)),[[pn,!S(a)]]):we("v-if",!0),ze(v.$slots,"default")],6)),[[pn,S(d)]])}});var cX=Je(mOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const bOe=Zt(pOe,{CarouselItem:cX}),SOe=Hr(cX),fX={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:ai,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},dX={[Qt]:t=>$t(t)||Nt(t)||da(t),change:t=>$t(t)||Nt(t)||da(t)},Yg=Symbol("checkboxGroupContextKey"),wOe=({model:t,isChecked:e})=>{const n=pt(Yg,void 0),r=B(()=>{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!ba(s)&&t.value.length>=s&&!e.value||!ba(l)&&t.value.length<=l&&e.value});return{isDisabled:go(B(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},_Oe=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=pt(Yg,void 0),{formItem:s}=Ki(),{emit:l}=Yt();function u(p){var v,g;return p===t.trueLabel||p===!0?(v=t.trueLabel)!=null?v:!0:(g=t.falseLabel)!=null?g:!1}function c(p,v){l("change",u(p),v)}function f(p){if(n.value)return;const v=p.target;l("change",u(v.checked),p)}async function d(p){n.value||!r.value&&!a.value&&i.value&&(p.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseLabel].includes(e.value)),await yt(),c(e.value,p)))}const h=B(()=>(o==null?void 0:o.validateEvent)||t.validateEvent);return Ge(()=>t.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(p=>void 0))}),{handleChange:f,onClickRoot:d}},xOe=t=>{const e=W(!1),{emit:n}=Yt(),r=pt(Yg,void 0),a=B(()=>ba(r)===!1),i=W(!1);return{model:B({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&&dt(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(Qt,s),e.value=s)}}),isGroup:a,isLimitExceeded:i}},COe=(t,e,{model:n})=>{const r=pt(Yg,void 0),a=W(!1),i=B(()=>{const u=n.value;return da(u)?u:dt(u)?an(t.label)?u.map(Fn).some(c=>uo(c,t.label)):u.map(Fn).includes(t.label):u!=null?u===t.trueLabel:!!u}),o=va(B(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=va(B(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=B(()=>!!(e.default||t.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},TOe=(t,{model:e})=>{function n(){dt(e.value)&&!e.value.includes(t.label)?e.value.push(t.label):e.value=t.trueLabel||!0}t.checked&&n()},hX=(t,e)=>{const{formItem:n}=Ki(),{model:r,isGroup:a,isLimitExceeded:i}=xOe(t),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=COe(t,e,{model:r}),{isDisabled:f}=wOe({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Ff(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:p,onClickRoot:v}=_Oe(t,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return TOe(t,{model:r}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:p,onClickRoot:v}},EOe=["tabindex","role","aria-checked"],MOe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],DOe=["id","aria-hidden","disabled","value","name","tabindex"],kOe=pe({name:"ElCheckbox"}),ROe=pe({...kOe,props:fX,emits:dX,setup(t){const e=t,n=li(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=hX(e,n),h=je("checkbox"),p=B(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",e.border),h.is("checked",i.value)]),v=B(()=>[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)=>(z(),xe(tn(!S(u)&&S(a)?"span":"label"),{class:j(S(p)),"aria-controls":g.indeterminate?g.controls:null,onClick:S(d)},{default:X(()=>[U("span",{class:j(S(v)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?Ft((z(),ne("input",{key:0,id:S(r),"onUpdate:modelValue":y[0]||(y[0]=m=>Ot(c)?c.value=m:null),class:j(S(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:S(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:y[1]||(y[1]=(...m)=>S(f)&&S(f)(...m)),onFocus:y[2]||(y[2]=m=>s.value=!0),onBlur:y[3]||(y[3]=m=>s.value=!1),onClick:y[4]||(y[4]=kt(()=>{},["stop"]))},null,42,MOe)),[[Vx,S(c)]]):Ft((z(),ne("input",{key:1,id:S(r),"onUpdate:modelValue":y[5]||(y[5]=m=>Ot(c)?c.value=m:null),class:j(S(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:S(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:y[6]||(y[6]=(...m)=>S(f)&&S(f)(...m)),onFocus:y[7]||(y[7]=m=>s.value=!0),onBlur:y[8]||(y[8]=m=>s.value=!1),onClick:y[9]||(y[9]=kt(()=>{},["stop"]))},null,42,DOe)),[[Vx,S(c)]]),U("span",{class:j(S(h).e("inner"))},null,2)],10,EOe),S(u)?(z(),ne("span",{key:0,class:j(S(h).e("label"))},[ze(g.$slots,"default"),g.$slots.default?we("v-if",!0):(z(),ne(bt,{key:0},[lt(Ke(g.label),1)],64))],2)):we("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var LOe=Je(ROe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const OOe=["name","tabindex","disabled","true-value","false-value"],AOe=["name","tabindex","disabled","value"],NOe=pe({name:"ElCheckboxButton"}),VOe=pe({...NOe,props:fX,emits:dX,setup(t){const e=t,n=li(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=hX(e,n),u=pt(Yg,void 0),c=je("checkbox"),f=B(()=>{var h,p,v,g;const y=(p=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?p:"";return{backgroundColor:y,borderColor:y,color:(g=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?g:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),d=B(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,p)=>(z(),ne("label",{class:j(S(d))},[h.trueLabel||h.falseLabel?Ft((z(),ne("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=v=>Ot(s)?s.value=v:null),class:j(S(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:S(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:p[1]||(p[1]=(...v)=>S(l)&&S(l)(...v)),onFocus:p[2]||(p[2]=v=>r.value=!0),onBlur:p[3]||(p[3]=v=>r.value=!1),onClick:p[4]||(p[4]=kt(()=>{},["stop"]))},null,42,OOe)),[[Vx,S(s)]]):Ft((z(),ne("input",{key:1,"onUpdate:modelValue":p[5]||(p[5]=v=>Ot(s)?s.value=v:null),class:j(S(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:S(i),value:h.label,onChange:p[6]||(p[6]=(...v)=>S(l)&&S(l)(...v)),onFocus:p[7]||(p[7]=v=>r.value=!0),onBlur:p[8]||(p[8]=v=>r.value=!1),onClick:p[9]||(p[9]=kt(()=>{},["stop"]))},null,42,AOe)),[[Vx,S(s)]]),h.$slots.default||h.label?(z(),ne("span",{key:2,class:j(S(c).be("button","inner")),style:St(S(a)?S(f):void 0)},[ze(h.$slots,"default",{},()=>[lt(Ke(h.label),1)])],6)):we("v-if",!0)],2))}});var pX=Je(VOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const BOe=et({modelValue:{type:De(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ai,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),IOe={[Qt]:t=>dt(t),change:t=>dt(t)},$Oe=pe({name:"ElCheckboxGroup"}),POe=pe({...$Oe,props:BOe,emits:IOe,setup(t,{emit:e}){const n=t,r=je("checkbox"),{formItem:a}=Ki(),{inputId:i,isLabeledByFormItem:o}=Ff(n,{formItemContext:a}),s=async u=>{e(Qt,u),await yt(),e("change",u)},l=B({get(){return n.modelValue},set(u){s(u)}});return on(Yg,{...Cu(Ra(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ge(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return z(),xe(tn(u.tag),{id:S(i),class:j(S(r).b("group")),role:"group","aria-label":S(o)?void 0:u.label||"checkbox-group","aria-labelledby":S(o)?(f=S(a))==null?void 0:f.labelId:void 0},{default:X(()=>[ze(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var vX=Je(POe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const cs=Zt(LOe,{CheckboxButton:pX,CheckboxGroup:vX}),FOe=Hr(pX),gX=Hr(vX),yX=et({size:ai,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),zOe=et({...yX,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),mX={[Qt]:t=>$t(t)||Nt(t)||da(t),[yr]:t=>$t(t)||Nt(t)||da(t)},bX=Symbol("radioGroupKey"),SX=(t,e)=>{const n=W(),r=pt(bX,void 0),a=B(()=>!!r),i=B({get(){return a.value?r.modelValue:t.modelValue},set(c){a.value?r.changeEvent(c):e&&e(Qt,c),n.value.checked=t.modelValue===t.label}}),o=va(B(()=>r==null?void 0:r.size)),s=go(B(()=>r==null?void 0:r.disabled)),l=W(!1),u=B(()=>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}},UOe=["value","name","disabled"],GOe=pe({name:"ElRadio"}),HOe=pe({...GOe,props:zOe,emits:mX,setup(t,{emit:e}){const n=t,r=je("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=SX(n,e);function c(){yt(()=>e("change",u.value))}return(f,d)=>{var h;return z(),ne("label",{class:j([S(r).b(),S(r).is("disabled",S(l)),S(r).is("focus",S(o)),S(r).is("bordered",f.border),S(r).is("checked",S(u)===f.label),S(r).m(S(s))])},[U("span",{class:j([S(r).e("input"),S(r).is("disabled",S(l)),S(r).is("checked",S(u)===f.label)])},[Ft(U("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=p=>Ot(u)?u.value=p:null),class:j(S(r).e("original")),value:f.label,name:f.name||((h=S(i))==null?void 0:h.name),disabled:S(l),type:"radio",onFocus:d[1]||(d[1]=p=>o.value=!0),onBlur:d[2]||(d[2]=p=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=kt(()=>{},["stop"]))},null,42,UOe),[[qj,S(u)]]),U("span",{class:j(S(r).e("inner"))},null,2)],2),U("span",{class:j(S(r).e("label")),onKeydown:d[4]||(d[4]=kt(()=>{},["stop"]))},[ze(f.$slots,"default",{},()=>[lt(Ke(f.label),1)])],34)],2)}}});var WOe=Je(HOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const jOe=et({...yX,name:{type:String,default:""}}),KOe=["value","name","disabled"],YOe=pe({name:"ElRadioButton"}),qOe=pe({...YOe,props:jOe,setup(t){const e=t,n=je("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=SX(e),u=B(()=>({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 z(),ne("label",{class:j([S(n).b("button"),S(n).is("active",S(s)===c.label),S(n).is("disabled",S(o)),S(n).is("focus",S(a)),S(n).bm("button",S(i))])},[Ft(U("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>Ot(s)?s.value=h:null),class:j(S(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=S(l))==null?void 0:d.name),disabled:S(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=kt(()=>{},["stop"]))},null,42,KOe),[[qj,S(s)]]),U("span",{class:j(S(n).be("button","inner")),style:St(S(s)===c.label?S(u):{}),onKeydown:f[4]||(f[4]=kt(()=>{},["stop"]))},[ze(c.$slots,"default",{},()=>[lt(Ke(c.label),1)])],38)],2)}}});var wX=Je(qOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const XOe=et({id:{type:String,default:void 0},size:ai,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}}),ZOe=mX,QOe=["id","aria-label","aria-labelledby"],JOe=pe({name:"ElRadioGroup"}),eAe=pe({...JOe,props:XOe,emits:ZOe,setup(t,{emit:e}){const n=t,r=je("radio"),a=ls(),i=W(),{formItem:o}=Ki(),{inputId:s,isLabeledByFormItem:l}=Ff(n,{formItemContext:o}),u=f=>{e(Qt,f),yt(()=>e("change",f))};Pt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=B(()=>n.name||a.value);return on(bX,Rn({...Ra(n),changeEvent:u,name:c})),Ge(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(z(),ne("div",{id:S(s),ref_key:"radioGroupRef",ref:i,class:j(S(r).b("group")),role:"radiogroup","aria-label":S(l)?void 0:f.label||"radio-group","aria-labelledby":S(l)?S(o).labelId:void 0},[ze(f.$slots,"default")],10,QOe))}});var _X=Je(eAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const xX=Zt(WOe,{RadioButton:wX,RadioGroup:_X}),tAe=Hr(_X),nAe=Hr(wX);var rAe=pe({name:"NodeContent",setup(){return{ns:je("cascader-node")}},render(){const{ns:t}=this,{node:e,panel:n}=this.$parent,{data:r,label:a}=e,{renderLabelFn:i}=n;return xt("span",{class:t.e("label")},i?i({node:e,data:r}):a)}});const GN=Symbol(),aAe=pe({name:"ElCascaderNode",components:{ElCheckbox:cs,ElRadio:xX,NodeContent:rAe,ElIcon:mt,Check:ub,Loading:If,ArrowRight:Bi},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:e}){const n=pt(GN),r=je("cascader-node"),a=B(()=>n.isHoverMenu),i=B(()=>n.config.multiple),o=B(()=>n.config.checkStrictly),s=B(()=>{var x;return(x=n.checkedNodes[0])==null?void 0:x.uid}),l=B(()=>t.node.isDisabled),u=B(()=>t.node.isLeaf),c=B(()=>o.value&&!u.value||!l.value),f=B(()=>h(n.expandingNode)),d=B(()=>o.value&&n.checkedNodes.some(h)),h=x=>{var _;const{level:T,uid:M}=t.node;return((_=x==null?void 0:x.pathNodes[T-1])==null?void 0:_.uid)===M},p=()=>{f.value||n.expandNode(t.node)},v=x=>{const{node:_}=t;x!==_.checked&&n.handleCheckChange(_,x)},g=()=>{n.lazyLoad(t.node,()=>{u.value||p()})},y=x=>{a.value&&(m(),!u.value&&e("expand",x))},m=()=>{const{node:x}=t;!c.value||x.loading||(x.loaded?p():g())},b=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?C(!0):m())},w=x=>{o.value?(v(x),t.node.loaded&&p()):C(x)},C=x=>{t.node.loaded?(v(x),!o.value&&p()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:r,handleHoverExpand:y,handleExpand:m,handleClick:b,handleCheck:C,handleSelectCheck:w}}}),iAe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],oAe=U("span",null,null,-1);function sAe(t,e,n,r,a,i){const o=Xe("el-checkbox"),s=Xe("el-radio"),l=Xe("check"),u=Xe("el-icon"),c=Xe("node-content"),f=Xe("loading"),d=Xe("arrow-right");return z(),ne("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:j([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))},[we(" prefix "),t.multiple?(z(),xe(o,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:e[0]||(e[0]=kt(()=>{},["stop"])),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):t.checkStrictly?(z(),xe(s,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:e[1]||(e[1]=kt(()=>{},["stop"]))},{default:X(()=>[we(`
  50. Add an empty element to avoid render label,
  51. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  52. `),oAe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):t.isLeaf&&t.node.checked?(z(),xe(u,{key:2,class:j(t.ns.e("prefix"))},{default:X(()=>[H(l)]),_:1},8,["class"])):we("v-if",!0),we(" content "),H(c),we(" postfix "),t.isLeaf?we("v-if",!0):(z(),ne(bt,{key:3},[t.node.loading?(z(),xe(u,{key:0,class:j([t.ns.is("loading"),t.ns.e("postfix")])},{default:X(()=>[H(f)]),_:1},8,["class"])):(z(),xe(u,{key:1,class:j(["arrow-right",t.ns.e("postfix")])},{default:X(()=>[H(d)]),_:1},8,["class"]))],64))],42,iAe)}var lAe=Je(aAe,[["render",sAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const uAe=pe({name:"ElCascaderMenu",components:{Loading:If,ElIcon:mt,ElScrollbar:ec,ElCascaderNode:lAe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const e=Yt(),n=je("cascader-menu"),{t:r}=xn(),a=oT();let i=null,o=null;const s=pt(GN),l=W(null),u=B(()=>!t.nodes.length),c=B(()=>!s.initialLoaded),f=B(()=>`cascader-menu-${a}-${t.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){p();const y=e.vnode.el,{left:m}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:w}=y,C=g.clientX-m,x=i.offsetTop,_=x+i.offsetHeight;l.value.innerHTML=`
  53. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${x} L${b} 0 V${x} Z" />
  54. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${_} L${b} ${w} V${_} Z" />
  55. `}else o||(o=window.setTimeout(v,s.config.hoverThreshold))},p=()=>{o&&(clearTimeout(o),o=null)},v=()=>{l.value&&(l.value.innerHTML="",p())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:v}}});function cAe(t,e,n,r,a,i){const o=Xe("el-cascader-node"),s=Xe("loading"),l=Xe("el-icon"),u=Xe("el-scrollbar");return z(),xe(u,{key:t.menuId,tag:"ul",role:"menu",class:j(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:X(()=>{var c;return[(z(!0),ne(bt,null,ln(t.nodes,f=>(z(),xe(o,{key:f.uid,node:f,"menu-id":t.menuId,onExpand:t.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),t.isLoading?(z(),ne("div",{key:0,class:j(t.ns.e("empty-text"))},[H(l,{size:"14",class:j(t.ns.is("loading"))},{default:X(()=>[H(s)]),_:1},8,["class"]),lt(" "+Ke(t.t("el.cascader.loading")),1)],2)):t.isEmpty?(z(),ne("div",{key:1,class:j(t.ns.e("empty-text"))},Ke(t.t("el.cascader.noData")),3)):(c=t.panel)!=null&&c.isHoverMenu?(z(),ne("svg",{key:2,ref:"hoverZone",class:j(t.ns.e("hover-zone"))},null,2)):we("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var fAe=Je(uAe,[["render",cAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let dAe=0;const hAe=t=>{const e=[t];let{parent:n}=t;for(;n;)e.unshift(n),n=n.parent;return e};let TL=class EL{constructor(e,n,r,a=!1){this.data=e,this.config=n,this.parent=r,this.root=a,this.uid=dAe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=e[s],u=hAe(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 EL(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!qo(l)}get isDisabled(){const{data:e,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(Vt(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=Vt(o)?o(e,this):e[o];return ba(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 EL(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${Rl(e)}`;this.children.forEach(a=>{a&&(a.broadcast(e,...n),a[r]&&a[r](...n))})}emit(e,...n){const{parent:r}=this,a=`onChild${Rl(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 ML=(t,e)=>t.reduce((n,r)=>(r.isLeaf?n.push(r):(!e&&n.push(r),n=n.concat(ML(r.children,e))),n),[]);class b5{constructor(e,n){this.config=n;const r=(e||[]).map(a=>new TL(a,this.config));this.nodes=r,this.allNodes=ML(r,!1),this.leafNodes=ML(r,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,n){const r=n?n.appendChild(e):new TL(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=>uo(a.value,e)||uo(a.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:r,level:a})=>uo(e.value,r)&&e.level===a)||null}}const CX=et({modelValue:{type:De([Number,String,Array])},options:{type:De(Array),default:()=>[]},props:{type:De(Object),default:()=>({})}}),pAe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Kn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},vAe=t=>B(()=>({...pAe,...t.props})),S5=t=>{if(!t)return 0;const e=t.id.split("-");return Number(e[e.length-2])},gAe=t=>{if(!t)return;const e=t.querySelector("input");e?e.click():AK(t)&&t.click()},yAe=(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},mAe=pe({name:"ElCascaderPanel",components:{ElCascaderMenu:fAe},props:{...CX,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Qt,yr,"close","expand-change"],setup(t,{emit:e,slots:n}){let r=!1;const a=je("cascader"),i=vAe(t);let o=null;const s=W(!0),l=W([]),u=W(null),c=W([]),f=W(null),d=W([]),h=B(()=>i.value.expandTrigger==="hover"),p=B(()=>t.renderLabel||n.default),v=()=>{const{options:R}=t,L=i.value;r=!1,o=new b5(R,L),c.value=[o.getNodes()],L.lazy&&qo(t.options)?(s.value=!1,g(void 0,A=>{A&&(o=new b5(A,L),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(R,L)=>{const A=i.value;R=R||new TL({},A,void 0,!0),R.loading=!0;const V=G=>{const I=R,$=I.root?null:I;G&&(o==null||o.appendNodes(G,$)),I.loading=!1,I.loaded=!0,I.childrenData=I.childrenData||[],L&&L(G)};A.lazyLoad(R,V)},y=(R,L)=>{var A;const{level:V}=R,G=c.value.slice(0,V);let I;R.isLeaf?I=R.pathNodes[V-2]:(I=R,G.push(R.children)),((A=f.value)==null?void 0:A.uid)!==(I==null?void 0:I.uid)&&(f.value=R,c.value=G,!L&&e("expand-change",(R==null?void 0:R.pathValues)||[]))},m=(R,L,A=!0)=>{const{checkStrictly:V,multiple:G}=i.value,I=d.value[0];r=!0,!G&&(I==null||I.doCheck(!1)),R.doCheck(L),_(),A&&!G&&!V&&e("close"),!A&&!G&&!V&&b(R)},b=R=>{R&&(R=R.parent,b(R),R&&y(R))},w=R=>o==null?void 0:o.getFlattedNodes(R),C=R=>{var L;return(L=w(R))==null?void 0:L.filter(A=>A.checked!==!1)},x=()=>{d.value.forEach(R=>R.doCheck(!1)),_(),c.value=c.value.slice(0,1),f.value=null,e("expand-change",[])},_=()=>{var R;const{checkStrictly:L,multiple:A}=i.value,V=d.value,G=C(!L),I=yAe(V,G),$=I.map(N=>N.valueByOption);d.value=I,u.value=A?$:(R=$[0])!=null?R:null},T=(R=!1,L=!1)=>{const{modelValue:A}=t,{lazy:V,multiple:G,checkStrictly:I}=i.value,$=!I;if(!(!s.value||r||!L&&uo(A,u.value)))if(V&&!R){const P=SF(_we(Au(A))).map(Y=>o==null?void 0:o.getNodeByValue(Y)).filter(Y=>!!Y&&!Y.loaded&&!Y.loading);P.length?P.forEach(Y=>{g(Y,()=>T(!1,L))}):T(!0,L)}else{const N=G?Au(A):[A],P=SF(N.map(Y=>o==null?void 0:o.getNodeByValue(Y,$)));M(P,L),u.value=Fx(A)}},M=(R,L=!0)=>{const{checkStrictly:A}=i.value,V=d.value,G=R.filter(N=>!!N&&(A||N.isLeaf)),I=o==null?void 0:o.getSameNode(f.value),$=L&&I||G[0];$?$.pathNodes.forEach(N=>y(N,!0)):f.value=null,V.forEach(N=>N.doCheck(!1)),t.props.multiple?Rn(G).forEach(N=>N.doCheck(!0)):G.forEach(N=>N.doCheck(!0)),d.value=G,yt(E)},E=()=>{Sn&&l.value.forEach(R=>{const L=R==null?void 0:R.$el;if(L){const A=L.querySelector(`.${a.namespace.value}-scrollbar__wrap`),V=L.querySelector(`.${a.b("node")}.${a.is("active")}`)||L.querySelector(`.${a.b("node")}.in-active-path`);TY(A,V)}})},k=R=>{const L=R.target,{code:A}=R;switch(A){case _t.up:case _t.down:{R.preventDefault();const V=A===_t.up?-1:1;E_(NK(L,V,`.${a.b("node")}[tabindex="-1"]`));break}case _t.left:{R.preventDefault();const V=l.value[S5(L)-1],G=V==null?void 0:V.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);E_(G);break}case _t.right:{R.preventDefault();const V=l.value[S5(L)+1],G=V==null?void 0:V.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);E_(G);break}case _t.enter:gAe(L);break}};return on(GN,Rn({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:p,lazyLoad:g,expandNode:y,handleCheckChange:m})),Ge([i,()=>t.options],v,{deep:!0,immediate:!0}),Ge(()=>t.modelValue,()=>{r=!1,T()},{deep:!0}),Ge(()=>u.value,R=>{uo(R,t.modelValue)||(e(Qt,R),e(yr,R))}),Cj(()=>l.value=[]),Pt(()=>!qo(t.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:k,handleCheckChange:m,getFlattedNodes:w,getCheckedNodes:C,clearCheckedNodes:x,calculateCheckedValue:_,scrollToExpandingNode:E}}});function bAe(t,e,n,r,a,i){const o=Xe("el-cascader-menu");return z(),ne("div",{class:j([t.ns.b("panel"),t.ns.is("bordered",t.border)]),onKeydown:e[0]||(e[0]=(...s)=>t.handleKeyDown&&t.handleKeyDown(...s))},[(z(!0),ne(bt,null,ln(t.menus,(s,l)=>(z(),xe(o,{key:l,ref_for:!0,ref:u=>t.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var N_=Je(mAe,[["render",bAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);N_.install=t=>{t.component(N_.name,N_)};const TX=N_,SAe=TX,HN=et({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:tu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),wAe={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},_Ae=pe({name:"ElTag"}),xAe=pe({..._Ae,props:HN,emits:wAe,setup(t,{emit:e}){const n=t,r=va(),a=je("tag"),i=B(()=>{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?(z(),ne("span",{key:0,class:j(S(i)),style:St({backgroundColor:l.color}),onClick:s},[U("span",{class:j(S(a).e("content"))},[ze(l.$slots,"default")],2),l.closable?(z(),xe(S(mt),{key:0,class:j(S(a).e("close")),onClick:kt(o,["stop"])},{default:X(()=>[H(S(Qs))]),_:1},8,["class","onClick"])):we("v-if",!0)],6)):(z(),xe(Jr,{key:1,name:`${S(a).namespace.value}-zoom-in-center`,appear:""},{default:X(()=>[U("span",{class:j(S(i)),style:St({backgroundColor:l.color}),onClick:s},[U("span",{class:j(S(a).e("content"))},[ze(l.$slots,"default")],2),l.closable?(z(),xe(S(mt),{key:0,class:j(S(a).e("close")),onClick:kt(o,["stop"])},{default:X(()=>[H(S(Qs))]),_:1},8,["class","onClick"])):we("v-if",!0)],6)]),_:3},8,["name"]))}});var CAe=Je(xAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const i1=Zt(CAe),TAe=et({...CX,size:ai,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:De(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:De(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:$a.teleported,tagType:{...HN.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),EAe={[Qt]:t=>!!t||t===null,[yr]:t=>!!t||t===null,focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,visibleChange:t=>da(t),expandChange:t=>!!t,removeTag:t=>!!t},MAe={key:0},DAe=["placeholder","onKeydown"],kAe=["onClick"],RAe="ElCascader",LAe=pe({name:RAe}),OAe=pe({...LAe,props:TAe,emits:EAe,setup(t,{expose:e,emit:n}){const r=t,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ge})=>{const{modifiersData:be,placement:Ie}=ge;["right","left","bottom","top"].includes(Ie)||(be.arrow.x=35)},requires:["arrow"]}]},i=ip();let o=0,s=0;const l=je("cascader"),u=je("input"),{t:c}=xn(),{form:f,formItem:d}=Ki(),h=W(null),p=W(null),v=W(null),g=W(null),y=W(null),m=W(!1),b=W(!1),w=W(!1),C=W(!1),x=W(""),_=W(""),T=W([]),M=W([]),E=W([]),k=W(!1),R=B(()=>i.style),L=B(()=>r.disabled||(f==null?void 0:f.disabled)),A=B(()=>r.placeholder||c("el.cascader.placeholder")),V=B(()=>_.value||T.value.length>0||k.value?"":A.value),G=va(),I=B(()=>["small"].includes(G.value)?"small":"default"),$=B(()=>!!r.props.multiple),N=B(()=>!r.filterable||$.value),P=B(()=>$.value?_.value:x.value),Y=B(()=>{var ge;return((ge=g.value)==null?void 0:ge.checkedNodes)||[]}),J=B(()=>!r.clearable||L.value||w.value||!b.value?!1:!!Y.value.length),re=B(()=>{const{showAllLevels:ge,separator:be}=r,Ie=Y.value;return Ie.length?$.value?"":Ie[0].calcText(ge,be):""}),oe=B({get(){return Fx(r.modelValue)},set(ge){n(Qt,ge),n(yr,ge),r.validateEvent&&(d==null||d.validate("change").catch(be=>void 0))}}),ue=B(()=>[l.b(),l.m(G.value),l.is("disabled",L.value),i.class]),le=B(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",m.value)]),fe=B(()=>l.is("focus",m.value||C.value)),se=B(()=>{var ge,be;return(be=(ge=h.value)==null?void 0:ge.popperRef)==null?void 0:be.contentRef}),_e=ge=>{var be,Ie,de;L.value||(ge=ge??!m.value,ge!==m.value&&(m.value=ge,(Ie=(be=p.value)==null?void 0:be.input)==null||Ie.setAttribute("aria-expanded",`${ge}`),ge?(ve(),yt((de=g.value)==null?void 0:de.scrollToExpandingNode)):r.filterable&&Re(),n("visibleChange",ge)))},ve=()=>{yt(()=>{var ge;(ge=h.value)==null||ge.updatePopper()})},he=()=>{w.value=!1},q=ge=>{const{showAllLevels:be,separator:Ie}=r;return{node:ge,key:ge.uid,text:ge.calcText(be,Ie),hitState:!1,closable:!L.value&&!ge.isDisabled,isCollapseTag:!1}},ce=ge=>{var be;const Ie=ge.node;Ie.doCheck(!1),(be=g.value)==null||be.calculateCheckedValue(),n("removeTag",Ie.valueByOption)},Se=()=>{if(!$.value)return;const ge=Y.value,be=[],Ie=[];if(ge.forEach(de=>Ie.push(q(de))),M.value=Ie,ge.length){ge.slice(0,r.maxCollapseTags).forEach(Fe=>be.push(q(Fe)));const de=ge.slice(r.maxCollapseTags),rt=de.length;rt&&(r.collapseTags?be.push({key:-1,text:`+ ${rt}`,closable:!1,isCollapseTag:!0}):de.forEach(Fe=>be.push(q(Fe))))}T.value=be},Ae=()=>{var ge,be;const{filterMethod:Ie,showAllLevels:de,separator:rt}=r,Fe=(be=(ge=g.value)==null?void 0:ge.getFlattedNodes(!r.props.checkStrictly))==null?void 0:be.filter(Bt=>Bt.isDisabled?!1:(Bt.calcText(de,rt),Ie(Bt,P.value)));$.value&&(T.value.forEach(Bt=>{Bt.hitState=!1}),M.value.forEach(Bt=>{Bt.hitState=!1})),w.value=!0,E.value=Fe,ve()},Te=()=>{var ge;let be;w.value&&y.value?be=y.value.$el.querySelector(`.${l.e("suggestion-item")}`):be=(ge=g.value)==null?void 0:ge.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),be&&(be.focus(),!w.value&&be.click())},Oe=()=>{var ge,be;const Ie=(ge=p.value)==null?void 0:ge.input,de=v.value,rt=(be=y.value)==null?void 0:be.$el;if(!(!Sn||!Ie)){if(rt){const Fe=rt.querySelector(`.${l.e("suggestion-list")}`);Fe.style.minWidth=`${Ie.offsetWidth}px`}if(de){const{offsetHeight:Fe}=de,Bt=T.value.length>0?`${Math.max(Fe+6,o)}px`:`${o}px`;Ie.style.height=Bt,ve()}}},He=ge=>{var be;return(be=g.value)==null?void 0:be.getCheckedNodes(ge)},$e=ge=>{ve(),n("expandChange",ge)},Ne=ge=>{var be;const Ie=(be=ge.target)==null?void 0:be.value;if(ge.type==="compositionend")k.value=!1,yt(()=>it(Ie));else{const de=Ie[Ie.length-1]||"";k.value=!aT(de)}},Le=ge=>{if(!k.value)switch(ge.code){case _t.enter:_e();break;case _t.down:_e(!0),yt(Te),ge.preventDefault();break;case _t.esc:m.value===!0&&(ge.preventDefault(),ge.stopPropagation(),_e(!1));break;case _t.tab:_e(!1);break}},ie=()=>{var ge;(ge=g.value)==null||ge.clearCheckedNodes(),!m.value&&r.filterable&&Re(),_e(!1)},Re=()=>{const{value:ge}=re;x.value=ge,_.value=ge},We=ge=>{var be,Ie;const{checked:de}=ge;$.value?(be=g.value)==null||be.handleCheckChange(ge,!de,!1):(!de&&((Ie=g.value)==null||Ie.handleCheckChange(ge,!0,!1)),_e(!1))},me=ge=>{const be=ge.target,{code:Ie}=ge;switch(Ie){case _t.up:case _t.down:{const de=Ie===_t.up?-1:1;E_(NK(be,de,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case _t.enter:be.click();break}},Ye=()=>{const ge=T.value,be=ge[ge.length-1];s=_.value?0:s+1,!(!be||!s||r.collapseTags&&ge.length>1)&&(be.hitState?ce(be):be.hitState=!0)},ht=ge=>{const be=ge.target,Ie=l.e("search-input");be.className===Ie&&(C.value=!0),n("focus",ge)},Ct=ge=>{C.value=!1,n("blur",ge)},Tt=Ui(()=>{const{value:ge}=P;if(!ge)return;const be=r.beforeFilter(ge);Am(be)?be.then(Ae).catch(()=>{}):be!==!1?Ae():he()},r.debounce),it=(ge,be)=>{!m.value&&_e(!0),!(be!=null&&be.isComposing)&&(ge?Tt():he())},Me=ge=>Number.parseFloat(p0e(u.cssVarName("input-height"),ge).value)-2;return Ge(w,ve),Ge([Y,L],Se),Ge(T,()=>{yt(()=>Oe())}),Ge(G,async()=>{await yt();const ge=p.value.input;o=Me(ge)||o,Oe()}),Ge(re,Re,{immediate:!0}),Pt(()=>{const ge=p.value.input,be=Me(ge);o=ge.offsetHeight||be,yi(ge,Oe)}),e({getCheckedNodes:He,cascaderPanelRef:g,togglePopperVisible:_e,contentRef:se}),(ge,be)=>(z(),xe(S(Gi),{ref_key:"tooltipRef",ref:h,visible:m.value,teleported:ge.teleported,"popper-class":[S(l).e("dropdown"),ge.popperClass],"popper-options":a,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${S(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:he},{default:X(()=>[Ft((z(),ne("div",{class:j(S(ue)),style:St(S(R)),onClick:be[5]||(be[5]=()=>_e(S(N)?void 0:!0)),onKeydown:Le,onMouseenter:be[6]||(be[6]=Ie=>b.value=!0),onMouseleave:be[7]||(be[7]=Ie=>b.value=!1)},[H(S(vi),{ref_key:"input",ref:p,modelValue:x.value,"onUpdate:modelValue":be[1]||(be[1]=Ie=>x.value=Ie),placeholder:S(V),readonly:S(N),disabled:S(L),"validate-event":!1,size:S(G),class:j(S(fe)),tabindex:S($)&&ge.filterable&&!S(L)?-1:void 0,onCompositionstart:Ne,onCompositionupdate:Ne,onCompositionend:Ne,onFocus:ht,onBlur:Ct,onInput:it},{suffix:X(()=>[S(J)?(z(),xe(S(mt),{key:"clear",class:j([S(u).e("icon"),"icon-circle-close"]),onClick:kt(ie,["stop"])},{default:X(()=>[H(S(Bf))]),_:1},8,["class","onClick"])):(z(),xe(S(mt),{key:"arrow-down",class:j(S(le)),onClick:be[0]||(be[0]=kt(Ie=>_e(),["stop"]))},{default:X(()=>[H(S(Vf))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),S($)?(z(),ne("div",{key:0,ref_key:"tagWrapper",ref:v,class:j(S(l).e("tags"))},[(z(!0),ne(bt,null,ln(T.value,Ie=>(z(),xe(S(i1),{key:Ie.key,type:ge.tagType,size:S(I),hit:Ie.hitState,closable:Ie.closable,"disable-transitions":"",onClose:de=>ce(Ie)},{default:X(()=>[Ie.isCollapseTag===!1?(z(),ne("span",MAe,Ke(Ie.text),1)):(z(),xe(S(Gi),{key:1,disabled:m.value||!ge.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:X(()=>[U("span",null,Ke(Ie.text),1)]),content:X(()=>[U("div",{class:j(S(l).e("collapse-tags"))},[(z(!0),ne(bt,null,ln(M.value.slice(ge.maxCollapseTags),(de,rt)=>(z(),ne("div",{key:rt,class:j(S(l).e("collapse-tag"))},[(z(),xe(S(i1),{key:de.key,class:"in-tooltip",type:ge.tagType,size:S(I),hit:de.hitState,closable:de.closable,"disable-transitions":"",onClose:Fe=>ce(de)},{default:X(()=>[U("span",null,Ke(de.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ge.filterable&&!S(L)?Ft((z(),ne("input",{key:0,"onUpdate:modelValue":be[2]||(be[2]=Ie=>_.value=Ie),type:"text",class:j(S(l).e("search-input")),placeholder:S(re)?"":S(A),onInput:be[3]||(be[3]=Ie=>it(_.value,Ie)),onClick:be[4]||(be[4]=kt(Ie=>_e(!0),["stop"])),onKeydown:_n(Ye,["delete"]),onCompositionstart:Ne,onCompositionupdate:Ne,onCompositionend:Ne,onFocus:ht,onBlur:Ct},null,42,DAe)),[[U3,_.value]]):we("v-if",!0)],2)):we("v-if",!0)],38)),[[S(xf),()=>_e(!1),S(se)]])]),content:X(()=>[Ft(H(S(TX),{ref_key:"cascaderPanelRef",ref:g,modelValue:S(oe),"onUpdate:modelValue":be[8]||(be[8]=Ie=>Ot(oe)?oe.value=Ie:null),options:ge.options,props:r.props,border:!1,"render-label":ge.$slots.default,onExpandChange:$e,onClose:be[9]||(be[9]=Ie=>ge.$nextTick(()=>_e(!1)))},null,8,["modelValue","options","props","render-label"]),[[pn,!w.value]]),ge.filterable?Ft((z(),xe(S(ec),{key:0,ref_key:"suggestionPanel",ref:y,tag:"ul",class:j(S(l).e("suggestion-panel")),"view-class":S(l).e("suggestion-list"),onKeydown:me},{default:X(()=>[E.value.length?(z(!0),ne(bt,{key:0},ln(E.value,Ie=>(z(),ne("li",{key:Ie.uid,class:j([S(l).e("suggestion-item"),S(l).is("checked",Ie.checked)]),tabindex:-1,onClick:de=>We(Ie)},[U("span",null,Ke(Ie.text),1),Ie.checked?(z(),xe(S(mt),{key:0},{default:X(()=>[H(S(ub))]),_:1})):we("v-if",!0)],10,kAe))),128)):ze(ge.$slots,"empty",{key:1},()=>[U("li",{class:j(S(l).e("empty-text"))},Ke(S(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[pn,w.value]]):we("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var V_=Je(OAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);V_.install=t=>{t.component(V_.name,V_)};const AAe=V_,NAe=AAe,VAe=et({checked:{type:Boolean,default:!1}}),BAe={"update:checked":t=>da(t),[yr]:t=>da(t)},IAe=pe({name:"ElCheckTag"}),$Ae=pe({...IAe,props:VAe,emits:BAe,setup(t,{emit:e}){const n=t,r=je("check-tag"),a=B(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;e(yr,o),e("update:checked",o)};return(o,s)=>(z(),ne("span",{class:j(S(a)),onClick:i},[ze(o.$slots,"default")],2))}});var PAe=Je($Ae,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const FAe=Zt(PAe),EX=Symbol("rowContextKey"),zAe=["start","center","end","space-around","space-between","space-evenly"],UAe=["top","middle","bottom"],GAe=et({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:zAe,default:"start"},align:{type:String,values:UAe}}),HAe=pe({name:"ElRow"}),WAe=pe({...HAe,props:GAe,setup(t){const e=t,n=je("row"),r=B(()=>e.gutter);on(EX,{gutter:r});const a=B(()=>{const o={};return e.gutter&&(o.marginRight=o.marginLeft=`-${e.gutter/2}px`),o}),i=B(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(o,s)=>(z(),xe(tn(o.tag),{class:j(S(i)),style:St(S(a))},{default:X(()=>[ze(o.$slots,"default")]),_:3},8,["class","style"]))}});var jAe=Je(WAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const KAe=Zt(jAe),YAe=et({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:De([Number,Object]),default:()=>Er({})},sm:{type:De([Number,Object]),default:()=>Er({})},md:{type:De([Number,Object]),default:()=>Er({})},lg:{type:De([Number,Object]),default:()=>Er({})},xl:{type:De([Number,Object]),default:()=>Er({})}}),qAe=pe({name:"ElCol"}),XAe=pe({...qAe,props:YAe,setup(t){const e=t,{gutter:n}=pt(EX,{gutter:B(()=>0)}),r=je("col"),a=B(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=B(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=e[u];Nt(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=>{Nt(e[u])?o.push(r.b(`${u}-${e[u]}`)):an(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)=>(z(),xe(tn(o.tag),{class:j(S(i)),style:St(S(a))},{default:X(()=>[ze(o.$slots,"default")]),_:3},8,["class","style"]))}});var ZAe=Je(XAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const QAe=Zt(ZAe),w5=t=>typeof Nt(t),JAe=et({accordion:Boolean,modelValue:{type:De([Array,String,Number]),default:()=>Er([])}}),e3e={[Qt]:w5,[yr]:w5},MX=Symbol("collapseContextKey"),t3e=(t,e)=>{const n=W(Wh(t.modelValue)),r=i=>{n.value=i;const o=t.accordion?n.value[0]:n.value;e(Qt,o),e(yr,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 Ge(()=>t.modelValue,()=>n.value=Wh(t.modelValue),{deep:!0}),on(MX,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},n3e=()=>{const t=je("collapse");return{rootKls:B(()=>t.b())}},r3e=pe({name:"ElCollapse"}),a3e=pe({...r3e,props:JAe,emits:e3e,setup(t,{expose:e,emit:n}){const r=t,{activeNames:a,setActiveNames:i}=t3e(r,n),{rootKls:o}=n3e();return e({activeNames:a,setActiveNames:i}),(s,l)=>(z(),ne("div",{class:j(S(o))},[ze(s.$slots,"default")],2))}});var i3e=Je(a3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const o3e=pe({name:"ElCollapseTransition"}),s3e=pe({...o3e,setup(t){const e=je("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)=>(z(),xe(Jr,en({name:S(e).b()},Xde(r)),{default:X(()=>[ze(a.$slots,"default")]),_:3},16,["name"]))}});var B_=Je(s3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);B_.install=t=>{t.component(B_.name,B_)};const vT=B_,l3e=vT,u3e=et({title:{type:String,default:""},name:{type:De([String,Number]),default:()=>oT()},disabled:Boolean}),c3e=t=>{const e=pt(MX),n=W(!1),r=W(!1),a=W(oT()),i=B(()=>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)}}},f3e=(t,{focusing:e,isActive:n,id:r})=>{const a=je("collapse"),i=B(()=>[a.b("item"),a.is("active",S(n)),a.is("disabled",t.disabled)]),o=B(()=>[a.be("item","header"),a.is("active",S(n)),{focusing:S(e)&&!t.disabled}]),s=B(()=>[a.be("item","arrow"),a.is("active",S(n))]),l=B(()=>a.be("item","wrap")),u=B(()=>a.be("item","content")),c=B(()=>a.b(`content-${S(r)}`)),f=B(()=>a.b(`head-${S(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},d3e=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],h3e=["id","aria-hidden","aria-labelledby"],p3e=pe({name:"ElCollapseItem"}),v3e=pe({...p3e,props:u3e,setup(t,{expose:e}){const n=t,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=c3e(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:p,scopedHeadId:v}=f3e(n,{focusing:r,isActive:i,id:a});return e({isActive:i}),(g,y)=>(z(),ne("div",{class:j(S(f))},[U("button",{id:S(v),class:j(S(c)),"aria-expanded":S(i),"aria-controls":S(p),"aria-describedby":S(p),tabindex:g.disabled?-1:0,onClick:y[0]||(y[0]=(...m)=>S(s)&&S(s)(...m)),onKeydown:y[1]||(y[1]=_n(kt((...m)=>S(l)&&S(l)(...m),["stop","prevent"]),["space","enter"])),onFocus:y[2]||(y[2]=(...m)=>S(o)&&S(o)(...m)),onBlur:y[3]||(y[3]=m=>r.value=!1)},[ze(g.$slots,"title",{},()=>[lt(Ke(g.title),1)]),H(S(mt),{class:j(S(u))},{default:X(()=>[H(S(Bi))]),_:1},8,["class"])],42,d3e),H(S(vT),null,{default:X(()=>[Ft(U("div",{id:S(p),role:"region",class:j(S(d)),"aria-hidden":!S(i),"aria-labelledby":S(v)},[U("div",{class:j(S(h))},[ze(g.$slots,"default")],2)],10,h3e),[[pn,S(i)]])]),_:3})],2))}});var DX=Je(v3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const g3e=Zt(i3e,{CollapseItem:DX}),y3e=Hr(DX),m3e=et({color:{type:De(Object),required:!0},vertical:{type:Boolean,default:!1}});let gM=!1;function o1(t,e){if(!Sn)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,gM=!1,(o=e.end)==null||o.call(e,i)},a=function(i){var o;gM||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),gM=!0,(o=e.start)==null||o.call(e,i))};t.addEventListener("mousedown",a),t.addEventListener("touchstart",a)}const b3e=t=>{const e=Yt(),n=or(),r=or();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}=Z3(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}},S3e=(t,{bar:e,thumb:n,handleDrag:r})=>{const a=Yt(),i=je("color-alpha-slider"),o=W(0),s=W(0),l=W();function u(){if(!n.value||t.vertical)return 0;const m=a.vnode.el,b=t.color.get("alpha");return m?Math.round(b*(m.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const m=a.vnode.el;if(!t.vertical)return 0;const b=t.color.get("alpha");return m?Math.round(b*(m.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:m,g:b,b:w}=t.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${b}, ${w}, 0) 0%, rgba(${m}, ${b}, ${w}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}Pt(()=>{if(!e.value||!n.value)return;const m={drag:b=>{r(b)},end:b=>{r(b)}};o1(e.value,m),o1(n.value,m),d()}),Ge(()=>t.color.get("alpha"),()=>d()),Ge(()=>t.color.value,()=>d());const h=B(()=>[i.b(),i.is("vertical",t.vertical)]),p=B(()=>i.e("bar")),v=B(()=>i.e("thumb")),g=B(()=>({background:l.value})),y=B(()=>({left:qr(o.value),top:qr(s.value)}));return{rootKls:h,barKls:p,barStyle:g,thumbKls:v,thumbStyle:y,update:d}},w3e="ElColorAlphaSlider",_3e=pe({name:w3e}),x3e=pe({..._3e,props:m3e,setup(t,{expose:e}){const n=t,{bar:r,thumb:a,handleDrag:i,handleClick:o}=b3e(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=S3e(n,{bar:r,thumb:a,handleDrag:i});return e({update:d,bar:r,thumb:a}),(h,p)=>(z(),ne("div",{class:j(S(s))},[U("div",{ref_key:"bar",ref:r,class:j(S(l)),style:St(S(u)),onClick:p[0]||(p[0]=(...v)=>S(o)&&S(o)(...v))},null,6),U("div",{ref_key:"thumb",ref:a,class:j(S(c)),style:St(S(f))},null,6)],2))}});var C3e=Je(x3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const T3e=pe({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=je("color-hue-slider"),n=Yt(),r=W(),a=W(),i=W(0),o=W(0),s=B(()=>t.color.get("hue"));Ge(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=Z3(h);let m;if(t.vertical){let b=y-v.top;b=Math.min(b,v.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),m=Math.round((b-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let b=g-v.left;b=Math.min(b,v.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),m=Math.round((b-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",m)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(t.vertical)return 0;const p=t.color.get("hue");return h?Math.round(p*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!t.vertical)return 0;const p=t.color.get("hue");return h?Math.round(p*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return Pt(()=>{if(!a.value||!r.value)return;const h={drag:p=>{u(p)},end:p=>{u(p)}};o1(a.value,h),o1(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:e}}});function E3e(t,e,n,r,a,i){return z(),ne("div",{class:j([t.ns.b(),t.ns.is("vertical",t.vertical)])},[U("div",{ref:"bar",class:j(t.ns.e("bar")),onClick:e[0]||(e[0]=(...o)=>t.handleClick&&t.handleClick(...o))},null,2),U("div",{ref:"thumb",class:j(t.ns.e("thumb")),style:St({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var M3e=Je(T3e,[["render",E3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const D3e=et({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ai,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:De(Array)},validateEvent:{type:Boolean,default:!0}}),k3e={[Qt]:t=>$t(t)||fa(t),[yr]:t=>$t(t)||fa(t),activeChange:t=>$t(t)||fa(t)},kX=Symbol("colorPickerContextKey"),_5=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},R3e=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},L3e=function(t){return typeof t=="string"&&t.includes("%")},Pv=function(t,e){R3e(t)&&(t="100%");const n=L3e(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)},x5={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},I_=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${x5[e]||e}${x5[n]||n}`},C5=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${I_(t)}${I_(e)}${I_(n)}`},yM={A:10,B:11,C:12,D:13,E:14,F:15},ad=function(t){return t.length===2?(yM[t[0].toUpperCase()]||+t[0])*16+(yM[t[1].toUpperCase()]||+t[1]):yM[t[1].toUpperCase()]||+t[1]},O3e=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}},T5=(t,e,n)=>{t=Pv(t,255),e=Pv(e,255),n=Pv(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}},G0=function(t,e,n){t=Pv(t,360)*6,e=Pv(e,100),n=Pv(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 lm=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)yn(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)yn(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 G0(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}=O3e(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}=T5(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=ad(r[0]+r[0]),i=ad(r[1]+r[1]),o=ad(r[2]+r[2])):(r.length===6||r.length===8)&&(a=ad(r.slice(0,2)),i=ad(r.slice(2,4)),o=ad(r.slice(4,6))),r.length===8?this._alpha=ad(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=T5(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=_5(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=`${C5(G0(e,n,r))}${I_(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=G0(e,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=_5(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}=G0(e,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=C5(G0(e,n,r))}}};const A3e=pe({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const e=je("color-predefine"),{currentColor:n}=pt(kX),r=W(i(t.colors,t.color));Ge(()=>n.value,o=>{const s=new lm;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),To(()=>{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 lm;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:e}}}),N3e=["onClick"];function V3e(t,e,n,r,a,i){return z(),ne("div",{class:j(t.ns.b())},[U("div",{class:j(t.ns.e("colors"))},[(z(!0),ne(bt,null,ln(t.rgbaColors,(o,s)=>(z(),ne("div",{key:t.colors[s],class:j([t.ns.e("color-selector"),t.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>t.handleSelect(s)},[U("div",{style:St({backgroundColor:o.value})},null,4)],10,N3e))),128))],2)],2)}var B3e=Je(A3e,[["render",V3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const I3e=pe({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=je("color-svpanel"),n=Yt(),r=W(0),a=W(0),i=W("hsl(0, 100%, 50%)"),o=B(()=>{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}=Z3(u);let p=d-f.left,v=h-f.top;p=Math.max(0,p),p=Math.min(p,f.width),v=Math.max(0,v),v=Math.min(v,f.height),a.value=p,r.value=v,t.color.set({saturation:p/f.width*100,value:100-v/f.height*100})}return Ge(()=>o.value,()=>{s()}),Pt(()=>{o1(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}}}),$3e=U("div",null,null,-1),P3e=[$3e];function F3e(t,e,n,r,a,i){return z(),ne("div",{class:j(t.ns.b()),style:St({backgroundColor:t.background})},[U("div",{class:j(t.ns.e("white"))},null,2),U("div",{class:j(t.ns.e("black"))},null,2),U("div",{class:j(t.ns.e("cursor")),style:St({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},P3e,6)],6)}var z3e=Je(I3e,[["render",F3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const U3e=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],G3e=pe({name:"ElColorPicker"}),H3e=pe({...G3e,props:D3e,emits:k3e,setup(t,{expose:e,emit:n}){const r=t,{t:a}=xn(),i=je("color"),{formItem:o}=Ki(),s=va(),l=go(),{inputId:u,isLabeledByFormItem:c}=Ff(r,{formItemContext:o}),f=W(),d=W(),h=W(),p=W();let v=!0;const g=Rn(new lm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),y=W(!1),m=W(!1),b=W(""),w=B(()=>!r.modelValue&&!m.value?"transparent":M(g,r.showAlpha)),C=B(()=>!r.modelValue&&!m.value?"":g.value),x=B(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),_=B(()=>c.value?o==null?void 0:o.labelId:void 0),T=B(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function M(N,P){if(!(N instanceof lm))throw new TypeError("color should be instance of _color Class");const{r:Y,g:J,b:re}=N.toRgb();return P?`rgba(${Y}, ${J}, ${re}, ${N.get("alpha")/100})`:`rgb(${Y}, ${J}, ${re})`}function E(N){y.value=N}const k=Ui(E,100);function R(){l.value||E(!0)}function L(){k(!1),A()}function A(){yt(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",yt(()=>{m.value=!1}))})}function V(){l.value||k(!y.value)}function G(){g.fromString(b.value)}function I(){const N=g.value;n(Qt,N),n("change",N),r.validateEvent&&(o==null||o.validate("change").catch(P=>void 0)),k(!1),yt(()=>{const P=new lm({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(P)||A()})}function $(){k(!1),n(Qt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(N=>void 0)),A()}return Pt(()=>{r.modelValue&&(b.value=C.value)}),Ge(()=>r.modelValue,N=>{N?N&&N!==g.value&&(v=!1,g.fromString(N)):m.value=!1}),Ge(()=>C.value,N=>{b.value=N,v&&n("activeChange",N),v=!0}),Ge(()=>g.value,()=>{!r.modelValue&&!m.value&&(m.value=!0)}),Ge(()=>y.value,()=>{yt(()=>{var N,P,Y;(N=f.value)==null||N.update(),(P=d.value)==null||P.update(),(Y=h.value)==null||Y.update()})}),on(kX,{currentColor:C}),e({color:g,show:R,hide:L}),(N,P)=>(z(),xe(S(Gi),{ref_key:"popper",ref:p,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[S(i).be("picker","panel"),S(i).b("dropdown"),N.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${S(i).namespace.value}-zoom-in-top`,persistent:""},{content:X(()=>[Ft((z(),ne("div",null,[U("div",{class:j(S(i).be("dropdown","main-wrapper"))},[H(M3e,{ref_key:"hue",ref:f,class:"hue-slider",color:S(g),vertical:""},null,8,["color"]),H(z3e,{ref_key:"sv",ref:d,color:S(g)},null,8,["color"])],2),N.showAlpha?(z(),xe(C3e,{key:0,ref_key:"alpha",ref:h,color:S(g)},null,8,["color"])):we("v-if",!0),N.predefine?(z(),xe(B3e,{key:1,ref:"predefine",color:S(g),colors:N.predefine},null,8,["color","colors"])):we("v-if",!0),U("div",{class:j(S(i).be("dropdown","btns"))},[U("span",{class:j(S(i).be("dropdown","value"))},[H(S(vi),{modelValue:b.value,"onUpdate:modelValue":P[0]||(P[0]=Y=>b.value=Y),"validate-event":!1,size:"small",onKeyup:_n(G,["enter"]),onBlur:G},null,8,["modelValue","onKeyup"])],2),H(S(Lt),{class:j(S(i).be("dropdown","link-btn")),text:"",size:"small",onClick:$},{default:X(()=>[lt(Ke(S(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),H(S(Lt),{plain:"",size:"small",class:j(S(i).be("dropdown","btn")),onClick:I},{default:X(()=>[lt(Ke(S(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[S(xf),L]])]),default:X(()=>[U("div",{id:S(u),class:j(S(T)),role:"button","aria-label":S(x),"aria-labelledby":S(_),"aria-description":S(a)("el.colorpicker.description",{color:N.modelValue||""}),tabindex:N.tabindex,onKeydown:_n(V,["enter"])},[S(l)?(z(),ne("div",{key:0,class:j(S(i).be("picker","mask"))},null,2)):we("v-if",!0),U("div",{class:j(S(i).be("picker","trigger")),onClick:V},[U("span",{class:j([S(i).be("picker","color"),S(i).is("alpha",N.showAlpha)])},[U("span",{class:j(S(i).be("picker","color-inner")),style:St({backgroundColor:S(w)})},[Ft(H(S(mt),{class:j([S(i).be("picker","icon"),S(i).is("icon-arrow-down")])},{default:X(()=>[H(S(Vf))]),_:1},8,["class"]),[[pn,N.modelValue||m.value]]),Ft(H(S(mt),{class:j([S(i).be("picker","empty"),S(i).is("icon-close")])},{default:X(()=>[H(S(Qs))]),_:1},8,["class"]),[[pn,!N.modelValue&&!m.value]])],6)],2)],2)],42,U3e)]),_:1},8,["visible","popper-class","transition"]))}});var W3e=Je(H3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const j3e=Zt(W3e),K3e=pe({name:"ElContainer"}),Y3e=pe({...K3e,props:{direction:{type:String}},setup(t){const e=t,n=li(),r=je("container"),a=B(()=>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)=>(z(),ne("section",{class:j([S(r).b(),S(r).is("vertical",S(a))])},[ze(i.$slots,"default")],2))}});var q3e=Je(Y3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const X3e=pe({name:"ElAside"}),Z3e=pe({...X3e,props:{width:{type:String,default:null}},setup(t){const e=t,n=je("aside"),r=B(()=>e.width?n.cssVarBlock({width:e.width}):{});return(a,i)=>(z(),ne("aside",{class:j(S(n).b()),style:St(S(r))},[ze(a.$slots,"default")],6))}});var RX=Je(Z3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Q3e=pe({name:"ElFooter"}),J3e=pe({...Q3e,props:{height:{type:String,default:null}},setup(t){const e=t,n=je("footer"),r=B(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(z(),ne("footer",{class:j(S(n).b()),style:St(S(r))},[ze(a.$slots,"default")],6))}});var LX=Je(J3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const eNe=pe({name:"ElHeader"}),tNe=pe({...eNe,props:{height:{type:String,default:null}},setup(t){const e=t,n=je("header"),r=B(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(z(),ne("header",{class:j(S(n).b()),style:St(S(r))},[ze(a.$slots,"default")],6))}});var OX=Je(tNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const nNe=pe({name:"ElMain"}),rNe=pe({...nNe,setup(t){const e=je("main");return(n,r)=>(z(),ne("main",{class:j(S(e).b())},[ze(n.$slots,"default")],2))}});var AX=Je(rNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const aNe=Zt(q3e,{Aside:RX,Footer:LX,Header:OX,Main:AX}),iNe=Hr(RX),oNe=Hr(LX),sNe=Hr(OX),lNe=Hr(AX);var NX={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,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)}}})})(NX);var uNe=NX.exports;const cNe=wi(uNe);var VX={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,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)}}})})(VX);var fNe=VX.exports;const dNe=wi(fNe);var BX={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,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}}})})(BX);var hNe=BX.exports;const pNe=wi(hNe);var IX={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,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")}}})})(IX);var vNe=IX.exports;const gNe=wi(vNe);var $X={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})($X);var yNe=$X.exports;const mNe=wi(yNe);var PX={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(aa,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(PX);var bNe=PX.exports;const SNe=wi(bNe),WN=Symbol(),wNe=et({...UN,type:{type:De(String),default:"date"}}),_Ne=["date","dates","year","month","week","range"],jN=et({disabledDate:{type:De(Function)},date:{type:De(Object),required:!0},minDate:{type:De(Object)},maxDate:{type:De(Object)},parsedValue:{type:De([Object,Array])},rangeState:{type:De(Object),default:()=>({endDate:null,selecting:!1})}}),FX=et({type:{type:De(String),required:!0,values:uTe}}),zX=et({unlinkPanels:Boolean,parsedValue:{type:De(Array)}}),UX=t=>({type:String,values:_Ne,default:t}),xNe=et({...FX,parsedValue:{type:De([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),CNe=et({...jN,cellClassName:{type:De(Function)},showWeekNumber:Boolean,selectionMode:UX("date")}),TNe=["changerange","pick","select"],DL=t=>{if(!dt(t))return!1;const[e,n]=t;return qt.isDayjs(e)&&qt.isDayjs(n)&&e.isSameOrBefore(n)},GX=(t,{lang:e,unit:n,unlinkPanels:r})=>{let a;if(dt(t)){let[i,o]=t.map(s=>qt(s).locale(e));return r||(o=i.add(1,n)),[i,o]}else t?a=qt(t):a=qt();return a=a.locale(e),[a,a.add(1,n)]},ENe=(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 p=c*t.column+d,v=s(p);h.dayjs=v,h.date=v.toDate(),h.timestamp=v.valueOf(),h.type="normal",h.inRange=!!(r&&v.isSameOrAfter(r,o)&&a&&v.isSameOrBefore(a,o))||!!(r&&v.isSameOrBefore(r,o)&&a&&v.isSameOrAfter(a,o)),r!=null&&r.isSameOrAfter(a)?(h.start=!!a&&v.isSame(a,o),h.end=r&&v.isSame(r,o)):(h.start=!!r&&v.isSame(r,o),h.end=!!a&&v.isSame(a,o)),v.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:d}),f[d+n]=h}u==null||u(f)}},kL=(t="")=>["normal","today"].includes(t),MNe=(t,e)=>{const{lang:n}=xn(),r=W(),a=W(),i=W(),o=W(),s=W([[],[],[],[],[],[]]);let l=!1;const u=t.date.$locale().weekStart||7,c=t.date.locale("en").localeData().weekdaysShort().map(N=>N.toLowerCase()),f=B(()=>u>3?7-u:-u),d=B(()=>{const N=t.date.startOf("month");return N.subtract(N.day()||7,"day")}),h=B(()=>c.concat(c).slice(u,u+7)),p=B(()=>JK(S(w)).some(N=>N.isCurrent)),v=B(()=>{const N=t.date.startOf("month"),P=N.day()||7,Y=N.daysInMonth(),J=N.subtract(1,"month").daysInMonth();return{startOfMonthDay:P,dateCountOfMonth:Y,dateCountOfLastMonth:J}}),g=B(()=>t.selectionMode==="dates"?Au(t.parsedValue):[]),y=(N,{count:P,rowIndex:Y,columnIndex:J})=>{const{startOfMonthDay:re,dateCountOfMonth:oe,dateCountOfLastMonth:ue}=S(v),le=S(f);if(Y>=0&&Y<=1){const fe=re+le<0?7+re+le:re+le;if(J+Y*7>=fe)return N.text=P,!0;N.text=ue-(fe-J%7)+1+Y*7,N.type="prev-month"}else return P<=oe?N.text=P:(N.text=P-oe,N.type="next-month"),!0;return!1},m=(N,{columnIndex:P,rowIndex:Y},J)=>{const{disabledDate:re,cellClassName:oe}=t,ue=S(g),le=y(N,{count:J,rowIndex:Y,columnIndex:P}),fe=N.dayjs.toDate();return N.selected=ue.find(se=>se.valueOf()===N.dayjs.valueOf()),N.isSelected=!!N.selected,N.isCurrent=x(N),N.disabled=re==null?void 0:re(fe),N.customClass=oe==null?void 0:oe(fe),le},b=N=>{if(t.selectionMode==="week"){const[P,Y]=t.showWeekNumber?[1,7]:[0,6],J=$(N[P+1]);N[P].inRange=J,N[P].start=J,N[Y].inRange=J,N[Y].end=J}},w=B(()=>{const{minDate:N,maxDate:P,rangeState:Y,showWeekNumber:J}=t,re=S(f),oe=S(s),ue="day";let le=1;if(J)for(let fe=0;fe<6;fe++)oe[fe][0]||(oe[fe][0]={type:"week",text:S(d).add(fe*7+1,ue).week()});return ENe({row:6,column:7},oe,{startDate:N,columnIndexOffset:J?1:0,nextEndDate:Y.endDate||P||Y.selecting&&N||null,now:qt().locale(S(n)).startOf(ue),unit:ue,relativeDateGetter:fe=>S(d).add(fe-re,ue),setCellMetadata:(...fe)=>{m(...fe,le)&&(le+=1)},setRowMetadata:b}),oe});Ge(()=>t.date,async()=>{var N;(N=S(r))!=null&&N.contains(document.activeElement)&&(await yt(),await C())});const C=async()=>{var N;return(N=S(a))==null?void 0:N.focus()},x=N=>t.selectionMode==="date"&&kL(N.type)&&_(N,t.parsedValue),_=(N,P)=>P?qt(P).locale(S(n)).isSame(t.date.date(Number(N.text)),"day"):!1,T=(N,P)=>{const Y=N*7+(P-(t.showWeekNumber?1:0))-S(f);return S(d).add(Y,"day")},M=N=>{var P;if(!t.rangeState.selecting)return;let Y=N.target;if(Y.tagName==="SPAN"&&(Y=(P=Y.parentNode)==null?void 0:P.parentNode),Y.tagName==="DIV"&&(Y=Y.parentNode),Y.tagName!=="TD")return;const J=Y.parentNode.rowIndex-1,re=Y.cellIndex;S(w)[J][re].disabled||(J!==S(i)||re!==S(o))&&(i.value=J,o.value=re,e("changerange",{selecting:!0,endDate:T(J,re)}))},E=N=>!S(p)&&(N==null?void 0:N.text)===1&&N.type==="normal"||N.isCurrent,k=N=>{l||S(p)||t.selectionMode!=="date"||I(N,!0)},R=N=>{N.target.closest("td")&&(l=!0)},L=N=>{N.target.closest("td")&&(l=!1)},A=N=>{!t.rangeState.selecting||!t.minDate?(e("pick",{minDate:N,maxDate:null}),e("select",!0)):(N>=t.minDate?e("pick",{minDate:t.minDate,maxDate:N}):e("pick",{minDate:N,maxDate:t.minDate}),e("select",!1))},V=N=>{const P=N.week(),Y=`${N.year()}w${P}`;e("pick",{year:N.year(),week:P,value:Y,date:N.startOf("week")})},G=(N,P)=>{const Y=P?Au(t.parsedValue).filter(J=>(J==null?void 0:J.valueOf())!==N.valueOf()):Au(t.parsedValue).concat([N]);e("pick",Y)},I=(N,P=!1)=>{const Y=N.target.closest("td");if(!Y)return;const J=Y.parentNode.rowIndex-1,re=Y.cellIndex,oe=S(w)[J][re];if(oe.disabled||oe.type==="week")return;const ue=T(J,re);switch(t.selectionMode){case"range":{A(ue);break}case"date":{e("pick",ue,P);break}case"week":{V(ue);break}case"dates":{G(ue,!!oe.selected);break}}},$=N=>{if(t.selectionMode!=="week")return!1;let P=t.date.startOf("day");if(N.type==="prev-month"&&(P=P.subtract(1,"month")),N.type==="next-month"&&(P=P.add(1,"month")),P=P.date(Number.parseInt(N.text,10)),t.parsedValue&&!Array.isArray(t.parsedValue)){const Y=(t.parsedValue.day()-u+7)%7-1;return t.parsedValue.subtract(Y,"day").isSame(P,"day")}return!1};return{WEEKS:h,rows:w,tbodyRef:r,currentCellRef:a,focus:C,isCurrent:x,isWeekActive:$,isSelectedCell:E,handlePickDate:I,handleMouseUp:L,handleMouseDown:R,handleMouseMove:M,handleFocus:k}},DNe=(t,{isCurrent:e,isWeekActive:n})=>{const r=je("date-table"),{t:a}=xn(),i=B(()=>[r.b(),{"is-week-mode":t.selectionMode==="week"}]),o=B(()=>a("el.datepicker.dateTablePrompt")),s=B(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return kL(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),e(c)&&f.push("current"),c.inRange&&(kL(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}},kNe=et({cell:{type:De(Object)}});var RNe=pe({name:"ElDatePickerCell",props:kNe,setup(t){const e=je("date-table-cell"),{slots:n}=pt(WN);return()=>{const{cell:r}=t;if(n.default){const a=n.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return H("div",{class:e.b()},[H("span",{class:e.e("text")},[r==null?void 0:r.text])])}}});const LNe=["aria-label"],ONe={key:0,scope:"col"},ANe=["aria-label"],NNe=["aria-current","aria-selected","tabindex"],VNe=pe({__name:"basic-date-table",props:CNe,emits:TNe,setup(t,{expose:e,emit:n}){const r=t,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:d,handleMouseUp:h,handleMouseDown:p,handleMouseMove:v,handleFocus:g}=MNe(r,n),{tableLabel:y,tableKls:m,weekLabel:b,getCellClasses:w,getRowKls:C,t:x}=DNe(r,{isCurrent:u,isWeekActive:c});return e({focus:l}),(_,T)=>(z(),ne("table",{"aria-label":S(y),class:j(S(m)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...M)=>S(d)&&S(d)(...M)),onMousemove:T[2]||(T[2]=(...M)=>S(v)&&S(v)(...M)),onMousedown:T[3]||(T[3]=kt((...M)=>S(p)&&S(p)(...M),["prevent"])),onMouseup:T[4]||(T[4]=(...M)=>S(h)&&S(h)(...M))},[U("tbody",{ref_key:"tbodyRef",ref:o},[U("tr",null,[_.showWeekNumber?(z(),ne("th",ONe,Ke(S(b)),1)):we("v-if",!0),(z(!0),ne(bt,null,ln(S(a),(M,E)=>(z(),ne("th",{key:E,"aria-label":S(x)("el.datepicker.weeksFull."+M),scope:"col"},Ke(S(x)("el.datepicker.weeks."+M)),9,ANe))),128))]),(z(!0),ne(bt,null,ln(S(i),(M,E)=>(z(),ne("tr",{key:E,class:j(S(C)(M[1]))},[(z(!0),ne(bt,null,ln(M,(k,R)=>(z(),ne("td",{key:`${E}.${R}`,ref_for:!0,ref:L=>S(f)(k)&&(s.value=L),class:j(S(w)(k)),"aria-current":k.isCurrent?"date":void 0,"aria-selected":k.isCurrent,tabindex:S(f)(k)?0:-1,onFocus:T[0]||(T[0]=(...L)=>S(g)&&S(g)(...L))},[H(S(RNe),{cell:k},null,8,["cell"])],42,NNe))),128))],2))),128))],512)],42,LNe))}});var RL=Je(VNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const BNe=et({...jN,selectionMode:UX("month")}),INe=["aria-label"],$Ne=["aria-selected","aria-label","tabindex","onKeydown"],PNe={class:"cell"},FNe=pe({__name:"basic-month-table",props:BNe,emits:["changerange","pick","select"],setup(t,{expose:e,emit:n}){const r=t,a=(w,C,x)=>{const _=qt().locale(x).startOf("month").month(C).year(w),T=_.daysInMonth();return sf(T).map(M=>_.add(M,"day").toDate())},i=je("month-table"),{t:o,lang:s}=xn(),l=W(),u=W(),c=W(r.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=W([[],[],[]]),d=W(),h=W(),p=B(()=>{var w,C;const x=f.value,_=qt().locale(s.value).startOf("month");for(let T=0;T<3;T++){const M=x[T];for(let E=0;E<4;E++){const k=M[E]||(M[E]={row:T,column:E,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});k.type="normal";const R=T*4+E,L=r.date.startOf("year").month(R),A=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;k.inRange=!!(r.minDate&&L.isSameOrAfter(r.minDate,"month")&&A&&L.isSameOrBefore(A,"month"))||!!(r.minDate&&L.isSameOrBefore(r.minDate,"month")&&A&&L.isSameOrAfter(A,"month")),(w=r.minDate)!=null&&w.isSameOrAfter(A)?(k.start=!!(A&&L.isSame(A,"month")),k.end=r.minDate&&L.isSame(r.minDate,"month")):(k.start=!!(r.minDate&&L.isSame(r.minDate,"month")),k.end=!!(A&&L.isSame(A,"month"))),_.isSame(L)&&(k.type="today"),k.text=R,k.disabled=((C=r.disabledDate)==null?void 0:C.call(r,L.toDate()))||!1}}return x}),v=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const C={},x=r.date.year(),_=new Date,T=w.text;return C.disabled=r.disabledDate?a(x,T,s.value).every(r.disabledDate):!1,C.current=Au(r.parsedValue).findIndex(M=>qt.isDayjs(M)&&M.year()===x&&M.month()===T)>=0,C.today=_.getFullYear()===x&&_.getMonth()===T,w.inRange&&(C["in-range"]=!0,w.start&&(C["start-date"]=!0),w.end&&(C["end-date"]=!0)),C},y=w=>{const C=r.date.year(),x=w.text;return Au(r.date).findIndex(_=>_.year()===C&&_.month()===x)>=0},m=w=>{var C;if(!r.rangeState.selecting)return;let x=w.target;if(x.tagName==="A"&&(x=(C=x.parentNode)==null?void 0:C.parentNode),x.tagName==="DIV"&&(x=x.parentNode),x.tagName!=="TD")return;const _=x.parentNode.rowIndex,T=x.cellIndex;p.value[_][T].disabled||(_!==d.value||T!==h.value)&&(d.value=_,h.value=T,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(_*4+T)}))},b=w=>{var C;const x=(C=w.target)==null?void 0:C.closest("td");if((x==null?void 0:x.tagName)!=="TD"||Ks(x,"disabled"))return;const _=x.cellIndex,M=x.parentNode.rowIndex*4+_,E=r.date.startOf("year").month(M);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&E>=r.minDate?n("pick",{minDate:r.minDate,maxDate:E}):n("pick",{minDate:E,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:E,maxDate:null}),n("select",!0)):n("pick",M)};return Ge(()=>r.date,async()=>{var w,C;(w=l.value)!=null&&w.contains(document.activeElement)&&(await yt(),(C=u.value)==null||C.focus())}),e({focus:v}),(w,C)=>(z(),ne("table",{role:"grid","aria-label":S(o)("el.datepicker.monthTablePrompt"),class:j(S(i).b()),onClick:b,onMousemove:m},[U("tbody",{ref_key:"tbodyRef",ref:l},[(z(!0),ne(bt,null,ln(S(p),(x,_)=>(z(),ne("tr",{key:_},[(z(!0),ne(bt,null,ln(x,(T,M)=>(z(),ne("td",{key:M,ref_for:!0,ref:E=>y(T)&&(u.value=E),class:j(g(T)),"aria-selected":`${y(T)}`,"aria-label":S(o)(`el.datepicker.month${+T.text+1}`),tabindex:y(T)?0:-1,onKeydown:[_n(kt(b,["prevent","stop"]),["space"]),_n(kt(b,["prevent","stop"]),["enter"])]},[U("div",null,[U("span",PNe,Ke(S(o)("el.datepicker.months."+c.value[T.text])),1)])],42,$Ne))),128))]))),128))],512)],42,INe))}});var LL=Je(FNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:zNe,disabledDate:UNe,parsedValue:GNe}=jN,HNe=et({date:zNe,disabledDate:UNe,parsedValue:GNe}),WNe=["aria-label"],jNe=["aria-selected","tabindex","onKeydown"],KNe={class:"cell"},YNe={key:1},qNe=pe({__name:"basic-year-table",props:HNe,emits:["pick"],setup(t,{expose:e,emit:n}){const r=t,a=(v,g)=>{const y=qt(String(v)).locale(g).startOf("year"),b=y.endOf("year").dayOfYear();return sf(b).map(w=>y.add(w,"day").toDate())},i=je("year-table"),{t:o,lang:s}=xn(),l=W(),u=W(),c=B(()=>Math.floor(r.date.year()/10)*10),f=()=>{var v;(v=u.value)==null||v.focus()},d=v=>{const g={},y=qt().locale(s.value);return g.disabled=r.disabledDate?a(v,s.value).every(r.disabledDate):!1,g.current=Au(r.parsedValue).findIndex(m=>m.year()===v)>=0,g.today=y.year()===v,g},h=v=>v===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||Au(r.date).findIndex(g=>g.year()===v)>=0,p=v=>{const y=v.target.closest("td");if(y&&y.textContent){if(Ks(y,"disabled"))return;const m=y.textContent||y.innerText;n("pick",Number(m))}};return Ge(()=>r.date,async()=>{var v,g;(v=l.value)!=null&&v.contains(document.activeElement)&&(await yt(),(g=u.value)==null||g.focus())}),e({focus:f}),(v,g)=>(z(),ne("table",{role:"grid","aria-label":S(o)("el.datepicker.yearTablePrompt"),class:j(S(i).b()),onClick:p},[U("tbody",{ref_key:"tbodyRef",ref:l},[(z(),ne(bt,null,ln(3,(y,m)=>U("tr",{key:m},[(z(),ne(bt,null,ln(4,(b,w)=>(z(),ne(bt,{key:m+"_"+w},[m*4+w<10?(z(),ne("td",{key:0,ref_for:!0,ref:C=>h(S(c)+m*4+w)&&(u.value=C),class:j(["available",d(S(c)+m*4+w)]),"aria-selected":`${h(S(c)+m*4+w)}`,tabindex:h(S(c)+m*4+w)?0:-1,onKeydown:[_n(kt(p,["prevent","stop"]),["space"]),_n(kt(p,["prevent","stop"]),["enter"])]},[U("span",KNe,Ke(S(c)+m*4+w),1)],42,jNe)):(z(),ne("td",YNe))],64))),64))])),64))],512)],10,WNe))}});var XNe=Je(qNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const ZNe=["onClick"],QNe=["aria-label"],JNe=["aria-label"],eVe=["aria-label"],tVe=["aria-label"],nVe=pe({__name:"panel-date-pick",props:xNe,emits:["pick","set-picker-option","panel-change"],setup(t,{emit:e}){const n=t,r=(Me,ge,be)=>!0,a=je("picker-panel"),i=je("date-picker"),o=ip(),s=li(),{t:l,lang:u}=xn(),c=pt("EP_PICKER_BASE"),f=pt(pT),{shortcuts:d,disabledDate:h,cellClassName:p,defaultTime:v}=c.props,g=Rr(c.props,"defaultValue"),y=W(),m=W(qt().locale(u.value)),b=W(!1);let w=!1;const C=B(()=>qt(v).locale(u.value)),x=B(()=>m.value.month()),_=B(()=>m.value.year()),T=W([]),M=W(null),E=W(null),k=Me=>T.value.length>0?r(Me,T.value,n.format||"HH:mm:ss"):!0,R=Me=>v&&!Se.value&&!b.value&&!w?C.value.year(Me.year()).month(Me.month()).date(Me.date()):le.value?Me.millisecond(0):Me.startOf("day"),L=(Me,...ge)=>{if(!Me)e("pick",Me,...ge);else if(dt(Me)){const be=Me.map(R);e("pick",be,...ge)}else e("pick",R(Me),...ge);M.value=null,E.value=null,b.value=!1,w=!1},A=(Me,ge)=>{if(P.value==="date"){Me=Me;let be=n.parsedValue?n.parsedValue.year(Me.year()).month(Me.month()).date(Me.date()):Me;k(be)||(be=T.value[0][0].year(Me.year()).month(Me.month()).date(Me.date())),m.value=be,L(be,le.value||ge)}else P.value==="week"?L(Me.date):P.value==="dates"&&L(Me,!0)},V=Me=>{const ge=Me?"add":"subtract";m.value=m.value[ge](1,"month"),it("month")},G=Me=>{const ge=m.value,be=Me?"add":"subtract";m.value=I.value==="year"?ge[be](10,"year"):ge[be](1,"year"),it("year")},I=W("date"),$=B(()=>{const Me=l("el.datepicker.year");if(I.value==="year"){const ge=Math.floor(_.value/10)*10;return Me?`${ge} ${Me} - ${ge+9} ${Me}`:`${ge} - ${ge+9}`}return`${_.value} ${Me}`}),N=Me=>{const ge=Vt(Me.value)?Me.value():Me.value;if(ge){w=!0,L(qt(ge).locale(u.value));return}Me.onClick&&Me.onClick({attrs:o,slots:s,emit:e})},P=B(()=>{const{type:Me}=n;return["week","month","year","dates"].includes(Me)?Me:"date"}),Y=B(()=>P.value==="date"?I.value:P.value),J=B(()=>!!d.length),re=async Me=>{m.value=m.value.startOf("month").month(Me),P.value==="month"?L(m.value,!1):(I.value="date",["month","year","date","week"].includes(P.value)&&(L(m.value,!0),await yt(),ht())),it("month")},oe=async Me=>{P.value==="year"?(m.value=m.value.startOf("year").year(Me),L(m.value,!1)):(m.value=m.value.year(Me),I.value="month",["month","year","date","week"].includes(P.value)&&(L(m.value,!0),await yt(),ht())),it("year")},ue=async Me=>{I.value=Me,await yt(),ht()},le=B(()=>n.type==="datetime"||n.type==="datetimerange"),fe=B(()=>le.value||P.value==="dates"),se=B(()=>h?n.parsedValue?dt(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),_e=()=>{if(P.value==="dates")L(n.parsedValue);else{let Me=n.parsedValue;if(!Me){const ge=qt(v).locale(u.value),be=Ye();Me=ge.year(be.year()).month(be.month()).date(be.date())}m.value=Me,L(Me)}},ve=B(()=>h?h(qt().locale(u.value).toDate()):!1),he=()=>{const ge=qt().locale(u.value).toDate();b.value=!0,(!h||!h(ge))&&k(ge)&&(m.value=qt().locale(u.value),L(m.value))},q=B(()=>jq(n.format)),ce=B(()=>Wq(n.format)),Se=B(()=>{if(E.value)return E.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(q.value)}),Ae=B(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(ce.value)}),Te=W(!1),Oe=()=>{Te.value=!0},He=()=>{Te.value=!1},$e=Me=>({hour:Me.hour(),minute:Me.minute(),second:Me.second(),year:Me.year(),month:Me.month(),date:Me.date()}),Ne=(Me,ge,be)=>{const{hour:Ie,minute:de,second:rt}=$e(Me),Fe=n.parsedValue?n.parsedValue.hour(Ie).minute(de).second(rt):Me;m.value=Fe,L(m.value,!0),be||(Te.value=ge)},Le=Me=>{const ge=qt(Me,q.value).locale(u.value);if(ge.isValid()&&k(ge)){const{year:be,month:Ie,date:de}=$e(m.value);m.value=ge.year(be).month(Ie).date(de),E.value=null,Te.value=!1,L(m.value,!0)}},ie=Me=>{const ge=qt(Me,ce.value).locale(u.value);if(ge.isValid()){if(h&&h(ge.toDate()))return;const{hour:be,minute:Ie,second:de}=$e(m.value);m.value=ge.hour(be).minute(Ie).second(de),M.value=null,L(m.value,!0)}},Re=Me=>qt.isDayjs(Me)&&Me.isValid()&&(h?!h(Me.toDate()):!0),We=Me=>P.value==="dates"?Me.map(ge=>ge.format(n.format)):Me.format(n.format),me=Me=>qt(Me,n.format).locale(u.value),Ye=()=>{const Me=qt(g.value).locale(u.value);if(!g.value){const ge=C.value;return qt().hour(ge.hour()).minute(ge.minute()).second(ge.second()).locale(u.value)}return Me},ht=async()=>{var Me;["week","month","year","date"].includes(P.value)&&((Me=y.value)==null||Me.focus(),P.value==="week"&&Tt(_t.down))},Ct=Me=>{const{code:ge}=Me;[_t.up,_t.down,_t.left,_t.right,_t.home,_t.end,_t.pageUp,_t.pageDown].includes(ge)&&(Tt(ge),Me.stopPropagation(),Me.preventDefault()),[_t.enter,_t.space,_t.numpadEnter].includes(ge)&&M.value===null&&E.value===null&&(Me.preventDefault(),L(m.value,!1))},Tt=Me=>{var ge;const{up:be,down:Ie,left:de,right:rt,home:Fe,end:Bt,pageUp:Yn,pageDown:$n}=_t,dr={year:{[be]:-4,[Ie]:4,[de]:-1,[rt]:1,offset:(Pe,st)=>Pe.setFullYear(Pe.getFullYear()+st)},month:{[be]:-4,[Ie]:4,[de]:-1,[rt]:1,offset:(Pe,st)=>Pe.setMonth(Pe.getMonth()+st)},week:{[be]:-1,[Ie]:1,[de]:-1,[rt]:1,offset:(Pe,st)=>Pe.setDate(Pe.getDate()+st*7)},date:{[be]:-7,[Ie]:7,[de]:-1,[rt]:1,[Fe]:Pe=>-Pe.getDay(),[Bt]:Pe=>-Pe.getDay()+6,[Yn]:Pe=>-new Date(Pe.getFullYear(),Pe.getMonth(),0).getDate(),[$n]:Pe=>new Date(Pe.getFullYear(),Pe.getMonth()+1,0).getDate(),offset:(Pe,st)=>Pe.setDate(Pe.getDate()+st)}},_r=m.value.toDate();for(;Math.abs(m.value.diff(_r,"year",!0))<1;){const Pe=dr[Y.value];if(!Pe)return;if(Pe.offset(_r,Vt(Pe[Me])?Pe[Me](_r):(ge=Pe[Me])!=null?ge:0),h&&h(_r))break;const st=qt(_r).locale(u.value);m.value=st,e("pick",st,!0);break}},it=Me=>{e("panel-change",m.value.toDate(),Me,I.value)};return Ge(()=>P.value,Me=>{if(["month","year"].includes(Me)){I.value=Me;return}I.value="date"},{immediate:!0}),Ge(()=>I.value,()=>{f==null||f.updatePopper()}),Ge(()=>g.value,Me=>{Me&&(m.value=Ye())},{immediate:!0}),Ge(()=>n.parsedValue,Me=>{if(Me){if(P.value==="dates"||Array.isArray(Me))return;m.value=Me}else m.value=Ye()},{immediate:!0}),e("set-picker-option",["isValidValue",Re]),e("set-picker-option",["formatToString",We]),e("set-picker-option",["parseUserInput",me]),e("set-picker-option",["handleFocusPicker",ht]),(Me,ge)=>(z(),ne("div",{class:j([S(a).b(),S(i).b(),{"has-sidebar":Me.$slots.sidebar||S(J),"has-time":S(le)}])},[U("div",{class:j(S(a).e("body-wrapper"))},[ze(Me.$slots,"sidebar",{class:j(S(a).e("sidebar"))}),S(J)?(z(),ne("div",{key:0,class:j(S(a).e("sidebar"))},[(z(!0),ne(bt,null,ln(S(d),(be,Ie)=>(z(),ne("button",{key:Ie,type:"button",class:j(S(a).e("shortcut")),onClick:de=>N(be)},Ke(be.text),11,ZNe))),128))],2)):we("v-if",!0),U("div",{class:j(S(a).e("body"))},[S(le)?(z(),ne("div",{key:0,class:j(S(i).e("time-header"))},[U("span",{class:j(S(i).e("editor-wrap"))},[H(S(vi),{placeholder:S(l)("el.datepicker.selectDate"),"model-value":S(Ae),size:"small","validate-event":!1,onInput:ge[0]||(ge[0]=be=>M.value=be),onChange:ie},null,8,["placeholder","model-value"])],2),Ft((z(),ne("span",{class:j(S(i).e("editor-wrap"))},[H(S(vi),{placeholder:S(l)("el.datepicker.selectTime"),"model-value":S(Se),size:"small","validate-event":!1,onFocus:Oe,onInput:ge[1]||(ge[1]=be=>E.value=be),onChange:Le},null,8,["placeholder","model-value"]),H(S(jx),{visible:Te.value,format:S(q),"parsed-value":m.value,onPick:Ne},null,8,["visible","format","parsed-value"])],2)),[[S(xf),He]])],2)):we("v-if",!0),Ft(U("div",{class:j([S(i).e("header"),(I.value==="year"||I.value==="month")&&S(i).e("header--bordered")])},[U("span",{class:j(S(i).e("prev-btn"))},[U("button",{type:"button","aria-label":S(l)("el.datepicker.prevYear"),class:j(["d-arrow-left",S(a).e("icon-btn")]),onClick:ge[2]||(ge[2]=be=>G(!1))},[H(S(mt),null,{default:X(()=>[H(S(ug))]),_:1})],10,QNe),Ft(U("button",{type:"button","aria-label":S(l)("el.datepicker.prevMonth"),class:j([S(a).e("icon-btn"),"arrow-left"]),onClick:ge[3]||(ge[3]=be=>V(!1))},[H(S(mt),null,{default:X(()=>[H(S(bf))]),_:1})],10,JNe),[[pn,I.value==="date"]])],2),U("span",{role:"button",class:j(S(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ge[4]||(ge[4]=_n(be=>ue("year"),["enter"])),onClick:ge[5]||(ge[5]=be=>ue("year"))},Ke(S($)),35),Ft(U("span",{role:"button","aria-live":"polite",tabindex:"0",class:j([S(i).e("header-label"),{active:I.value==="month"}]),onKeydown:ge[6]||(ge[6]=_n(be=>ue("month"),["enter"])),onClick:ge[7]||(ge[7]=be=>ue("month"))},Ke(S(l)(`el.datepicker.month${S(x)+1}`)),35),[[pn,I.value==="date"]]),U("span",{class:j(S(i).e("next-btn"))},[Ft(U("button",{type:"button","aria-label":S(l)("el.datepicker.nextMonth"),class:j([S(a).e("icon-btn"),"arrow-right"]),onClick:ge[8]||(ge[8]=be=>V(!0))},[H(S(mt),null,{default:X(()=>[H(S(Bi))]),_:1})],10,eVe),[[pn,I.value==="date"]]),U("button",{type:"button","aria-label":S(l)("el.datepicker.nextYear"),class:j([S(a).e("icon-btn"),"d-arrow-right"]),onClick:ge[9]||(ge[9]=be=>G(!0))},[H(S(mt),null,{default:X(()=>[H(S(cg))]),_:1})],10,tVe)],2)],2),[[pn,I.value!=="time"]]),U("div",{class:j(S(a).e("content")),onKeydown:Ct},[I.value==="date"?(z(),xe(RL,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":S(P),date:m.value,"parsed-value":Me.parsedValue,"disabled-date":S(h),"cell-class-name":S(p),onPick:A},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):we("v-if",!0),I.value==="year"?(z(),xe(XNe,{key:1,ref_key:"currentViewRef",ref:y,date:m.value,"disabled-date":S(h),"parsed-value":Me.parsedValue,onPick:oe},null,8,["date","disabled-date","parsed-value"])):we("v-if",!0),I.value==="month"?(z(),xe(LL,{key:2,ref_key:"currentViewRef",ref:y,date:m.value,"parsed-value":Me.parsedValue,"disabled-date":S(h),onPick:re},null,8,["date","parsed-value","disabled-date"])):we("v-if",!0)],34)],2)],2),Ft(U("div",{class:j(S(a).e("footer"))},[Ft(H(S(Lt),{text:"",size:"small",class:j(S(a).e("link-btn")),disabled:S(ve),onClick:he},{default:X(()=>[lt(Ke(S(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[pn,S(P)!=="dates"]]),H(S(Lt),{plain:"",size:"small",class:j(S(a).e("link-btn")),disabled:S(se),onClick:_e},{default:X(()=>[lt(Ke(S(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[pn,S(fe)&&I.value==="date"]])],2))}});var rVe=Je(nVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const aVe=et({...FX,...zX}),iVe=t=>{const{emit:e}=Yt(),n=ip(),r=li();return i=>{const o=Vt(i.value)?i.value():i.value;if(o){e("pick",[qt(o[0]).locale(t.value),qt(o[1]).locale(t.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:e})}},HX=(t,{defaultValue:e,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=Yt(),{pickerNs:s}=pt(WN),l=je("date-range-picker"),{t:u,lang:c}=xn(),f=iVe(c),d=W(),h=W(),p=W({endDate:null,selecting:!1}),v=b=>{p.value=b},g=(b=!1)=>{const w=S(d),C=S(h);DL([w,C])&&o("pick",[w,C],b)},y=b=>{p.value.selecting=b,b||(p.value.endDate=null)},m=()=>{const[b,w]=GX(S(e),{lang:S(c),unit:a,unlinkPanels:t.unlinkPanels});d.value=void 0,h.value=void 0,n.value=b,r.value=w};return Ge(e,b=>{b&&m()},{immediate:!0}),Ge(()=>t.parsedValue,b=>{if(dt(b)&&b.length===2){const[w,C]=b;d.value=w,n.value=w,h.value=C,i(S(d),S(h))}else m()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:p,lang:c,ppNs:s,drpNs:l,handleChangeRange:v,handleRangeConfirm:g,handleShortcutClick:f,onSelect:y,t:u}},oVe=["onClick"],sVe=["aria-label"],lVe=["aria-label"],uVe=["disabled","aria-label"],cVe=["disabled","aria-label"],fVe=["disabled","aria-label"],dVe=["disabled","aria-label"],hVe=["aria-label"],pVe=["aria-label"],RS="month",vVe=pe({__name:"panel-date-range",props:aVe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(t,{emit:e}){const n=t,r=pt("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=Rr(r.props,"shortcuts"),c=Rr(r.props,"defaultValue"),{lang:f}=xn(),d=W(qt().locale(f.value)),h=W(qt().locale(f.value).add(1,RS)),{minDate:p,maxDate:v,rangeState:g,ppNs:y,drpNs:m,handleChangeRange:b,handleRangeConfirm:w,handleShortcutClick:C,onSelect:x,t:_}=HX(n,{defaultValue:c,leftDate:d,rightDate:h,unit:RS,onParsedValueChanged:ge}),T=W({min:null,max:null}),M=W({min:null,max:null}),E=B(()=>`${d.value.year()} ${_("el.datepicker.year")} ${_(`el.datepicker.month${d.value.month()+1}`)}`),k=B(()=>`${h.value.year()} ${_("el.datepicker.year")} ${_(`el.datepicker.month${h.value.month()+1}`)}`),R=B(()=>d.value.year()),L=B(()=>d.value.month()),A=B(()=>h.value.year()),V=B(()=>h.value.month()),G=B(()=>!!u.value.length),I=B(()=>T.value.min!==null?T.value.min:p.value?p.value.format(J.value):""),$=B(()=>T.value.max!==null?T.value.max:v.value||p.value?(v.value||p.value).format(J.value):""),N=B(()=>M.value.min!==null?M.value.min:p.value?p.value.format(Y.value):""),P=B(()=>M.value.max!==null?M.value.max:v.value||p.value?(v.value||p.value).format(Y.value):""),Y=B(()=>jq(o)),J=B(()=>Wq(o)),re=be=>DL(be)&&(a?!a(be[0].toDate())&&!a(be[1].toDate()):!0),oe=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),q("year")},ue=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),q("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")),q("year")},fe=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),q("month")},se=()=>{d.value=d.value.add(1,"year"),q("year")},_e=()=>{d.value=d.value.add(1,"month"),q("month")},ve=()=>{h.value=h.value.subtract(1,"year"),q("year")},he=()=>{h.value=h.value.subtract(1,"month"),q("month")},q=be=>{e("panel-change",[d.value.toDate(),h.value.toDate()],be)},ce=B(()=>{const be=(L.value+1)%12,Ie=L.value+1>=12?1:0;return n.unlinkPanels&&new Date(R.value+Ie,be)<new Date(A.value,V.value)}),Se=B(()=>n.unlinkPanels&&A.value*12+V.value-(R.value*12+L.value+1)>=12),Ae=B(()=>!(p.value&&v.value&&!g.value.selecting&&DL([p.value,v.value]))),Te=B(()=>n.type==="datetime"||n.type==="datetimerange"),Oe=(be,Ie)=>{if(be)return s?qt(s[Ie]||s).locale(f.value).year(be.year()).month(be.month()).date(be.date()):be},He=(be,Ie=!0)=>{const de=be.minDate,rt=be.maxDate,Fe=Oe(de,0),Bt=Oe(rt,1);v.value===Bt&&p.value===Fe||(e("calendar-change",[de.toDate(),rt&&rt.toDate()]),v.value=Bt,p.value=Fe,!(!Ie||Te.value)&&w())},$e=W(!1),Ne=W(!1),Le=()=>{$e.value=!1},ie=()=>{Ne.value=!1},Re=(be,Ie)=>{T.value[Ie]=be;const de=qt(be,J.value).locale(f.value);if(de.isValid()){if(a&&a(de.toDate()))return;Ie==="min"?(d.value=de,p.value=(p.value||d.value).year(de.year()).month(de.month()).date(de.date()),!n.unlinkPanels&&(!v.value||v.value.isBefore(p.value))&&(h.value=de.add(1,"month"),v.value=p.value.add(1,"month"))):(h.value=de,v.value=(v.value||h.value).year(de.year()).month(de.month()).date(de.date()),!n.unlinkPanels&&(!p.value||p.value.isAfter(v.value))&&(d.value=de.subtract(1,"month"),p.value=v.value.subtract(1,"month")))}},We=(be,Ie)=>{T.value[Ie]=null},me=(be,Ie)=>{M.value[Ie]=be;const de=qt(be,Y.value).locale(f.value);de.isValid()&&(Ie==="min"?($e.value=!0,p.value=(p.value||d.value).hour(de.hour()).minute(de.minute()).second(de.second()),(!v.value||v.value.isBefore(p.value))&&(v.value=p.value)):(Ne.value=!0,v.value=(v.value||h.value).hour(de.hour()).minute(de.minute()).second(de.second()),h.value=v.value,v.value&&v.value.isBefore(p.value)&&(p.value=v.value)))},Ye=(be,Ie)=>{M.value[Ie]=null,Ie==="min"?(d.value=p.value,$e.value=!1):(h.value=v.value,Ne.value=!1)},ht=(be,Ie,de)=>{M.value.min||(be&&(d.value=be,p.value=(p.value||d.value).hour(be.hour()).minute(be.minute()).second(be.second())),de||($e.value=Ie),(!v.value||v.value.isBefore(p.value))&&(v.value=p.value,h.value=be))},Ct=(be,Ie,de)=>{M.value.max||(be&&(h.value=be,v.value=(v.value||h.value).hour(be.hour()).minute(be.minute()).second(be.second())),de||(Ne.value=Ie),v.value&&v.value.isBefore(p.value)&&(p.value=v.value))},Tt=()=>{d.value=GX(S(c),{lang:S(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),e("pick",null)},it=be=>dt(be)?be.map(Ie=>Ie.format(o)):be.format(o),Me=be=>dt(be)?be.map(Ie=>qt(Ie,o).locale(f.value)):qt(be,o).locale(f.value);function ge(be,Ie){if(n.unlinkPanels&&Ie){const de=(be==null?void 0:be.year())||0,rt=(be==null?void 0:be.month())||0,Fe=Ie.year(),Bt=Ie.month();h.value=de===Fe&&rt===Bt?Ie.add(1,RS):Ie}else h.value=d.value.add(1,RS),Ie&&(h.value=h.value.hour(Ie.hour()).minute(Ie.minute()).second(Ie.second()))}return e("set-picker-option",["isValidValue",re]),e("set-picker-option",["parseUserInput",Me]),e("set-picker-option",["formatToString",it]),e("set-picker-option",["handleClear",Tt]),(be,Ie)=>(z(),ne("div",{class:j([S(y).b(),S(m).b(),{"has-sidebar":be.$slots.sidebar||S(G),"has-time":S(Te)}])},[U("div",{class:j(S(y).e("body-wrapper"))},[ze(be.$slots,"sidebar",{class:j(S(y).e("sidebar"))}),S(G)?(z(),ne("div",{key:0,class:j(S(y).e("sidebar"))},[(z(!0),ne(bt,null,ln(S(u),(de,rt)=>(z(),ne("button",{key:rt,type:"button",class:j(S(y).e("shortcut")),onClick:Fe=>S(C)(de)},Ke(de.text),11,oVe))),128))],2)):we("v-if",!0),U("div",{class:j(S(y).e("body"))},[S(Te)?(z(),ne("div",{key:0,class:j(S(m).e("time-header"))},[U("span",{class:j(S(m).e("editors-wrap"))},[U("span",{class:j(S(m).e("time-picker-wrap"))},[H(S(vi),{size:"small",disabled:S(g).selecting,placeholder:S(_)("el.datepicker.startDate"),class:j(S(m).e("editor")),"model-value":S(I),"validate-event":!1,onInput:Ie[0]||(Ie[0]=de=>Re(de,"min")),onChange:Ie[1]||(Ie[1]=de=>We(de,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Ft((z(),ne("span",{class:j(S(m).e("time-picker-wrap"))},[H(S(vi),{size:"small",class:j(S(m).e("editor")),disabled:S(g).selecting,placeholder:S(_)("el.datepicker.startTime"),"model-value":S(N),"validate-event":!1,onFocus:Ie[2]||(Ie[2]=de=>$e.value=!0),onInput:Ie[3]||(Ie[3]=de=>me(de,"min")),onChange:Ie[4]||(Ie[4]=de=>Ye(de,"min"))},null,8,["class","disabled","placeholder","model-value"]),H(S(jx),{visible:$e.value,format:S(Y),"datetime-role":"start","parsed-value":d.value,onPick:ht},null,8,["visible","format","parsed-value"])],2)),[[S(xf),Le]])],2),U("span",null,[H(S(mt),null,{default:X(()=>[H(S(Bi))]),_:1})]),U("span",{class:j([S(m).e("editors-wrap"),"is-right"])},[U("span",{class:j(S(m).e("time-picker-wrap"))},[H(S(vi),{size:"small",class:j(S(m).e("editor")),disabled:S(g).selecting,placeholder:S(_)("el.datepicker.endDate"),"model-value":S($),readonly:!S(p),"validate-event":!1,onInput:Ie[5]||(Ie[5]=de=>Re(de,"max")),onChange:Ie[6]||(Ie[6]=de=>We(de,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ft((z(),ne("span",{class:j(S(m).e("time-picker-wrap"))},[H(S(vi),{size:"small",class:j(S(m).e("editor")),disabled:S(g).selecting,placeholder:S(_)("el.datepicker.endTime"),"model-value":S(P),readonly:!S(p),"validate-event":!1,onFocus:Ie[7]||(Ie[7]=de=>S(p)&&(Ne.value=!0)),onInput:Ie[8]||(Ie[8]=de=>me(de,"max")),onChange:Ie[9]||(Ie[9]=de=>Ye(de,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),H(S(jx),{"datetime-role":"end",visible:Ne.value,format:S(Y),"parsed-value":h.value,onPick:Ct},null,8,["visible","format","parsed-value"])],2)),[[S(xf),ie]])],2)],2)):we("v-if",!0),U("div",{class:j([[S(y).e("content"),S(m).e("content")],"is-left"])},[U("div",{class:j(S(m).e("header"))},[U("button",{type:"button",class:j([S(y).e("icon-btn"),"d-arrow-left"]),"aria-label":S(_)("el.datepicker.prevYear"),onClick:oe},[H(S(mt),null,{default:X(()=>[H(S(ug))]),_:1})],10,sVe),U("button",{type:"button",class:j([S(y).e("icon-btn"),"arrow-left"]),"aria-label":S(_)("el.datepicker.prevMonth"),onClick:ue},[H(S(mt),null,{default:X(()=>[H(S(bf))]),_:1})],10,lVe),be.unlinkPanels?(z(),ne("button",{key:0,type:"button",disabled:!S(Se),class:j([[S(y).e("icon-btn"),{"is-disabled":!S(Se)}],"d-arrow-right"]),"aria-label":S(_)("el.datepicker.nextYear"),onClick:se},[H(S(mt),null,{default:X(()=>[H(S(cg))]),_:1})],10,uVe)):we("v-if",!0),be.unlinkPanels?(z(),ne("button",{key:1,type:"button",disabled:!S(ce),class:j([[S(y).e("icon-btn"),{"is-disabled":!S(ce)}],"arrow-right"]),"aria-label":S(_)("el.datepicker.nextMonth"),onClick:_e},[H(S(mt),null,{default:X(()=>[H(S(Bi))]),_:1})],10,cVe)):we("v-if",!0),U("div",null,Ke(S(E)),1)],2),H(RL,{"selection-mode":"range",date:d.value,"min-date":S(p),"max-date":S(v),"range-state":S(g),"disabled-date":S(a),"cell-class-name":S(i),onChangerange:S(b),onPick:He,onSelect:S(x)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),U("div",{class:j([[S(y).e("content"),S(m).e("content")],"is-right"])},[U("div",{class:j(S(m).e("header"))},[be.unlinkPanels?(z(),ne("button",{key:0,type:"button",disabled:!S(Se),class:j([[S(y).e("icon-btn"),{"is-disabled":!S(Se)}],"d-arrow-left"]),"aria-label":S(_)("el.datepicker.prevYear"),onClick:ve},[H(S(mt),null,{default:X(()=>[H(S(ug))]),_:1})],10,fVe)):we("v-if",!0),be.unlinkPanels?(z(),ne("button",{key:1,type:"button",disabled:!S(ce),class:j([[S(y).e("icon-btn"),{"is-disabled":!S(ce)}],"arrow-left"]),"aria-label":S(_)("el.datepicker.prevMonth"),onClick:he},[H(S(mt),null,{default:X(()=>[H(S(bf))]),_:1})],10,dVe)):we("v-if",!0),U("button",{type:"button","aria-label":S(_)("el.datepicker.nextYear"),class:j([S(y).e("icon-btn"),"d-arrow-right"]),onClick:le},[H(S(mt),null,{default:X(()=>[H(S(cg))]),_:1})],10,hVe),U("button",{type:"button",class:j([S(y).e("icon-btn"),"arrow-right"]),"aria-label":S(_)("el.datepicker.nextMonth"),onClick:fe},[H(S(mt),null,{default:X(()=>[H(S(Bi))]),_:1})],10,pVe),U("div",null,Ke(S(k)),1)],2),H(RL,{"selection-mode":"range",date:h.value,"min-date":S(p),"max-date":S(v),"range-state":S(g),"disabled-date":S(a),"cell-class-name":S(i),onChangerange:S(b),onPick:He,onSelect:S(x)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),S(Te)?(z(),ne("div",{key:0,class:j(S(y).e("footer"))},[S(l)?(z(),xe(S(Lt),{key:0,text:"",size:"small",class:j(S(y).e("link-btn")),onClick:Tt},{default:X(()=>[lt(Ke(S(_)("el.datepicker.clear")),1)]),_:1},8,["class"])):we("v-if",!0),H(S(Lt),{plain:"",size:"small",class:j(S(y).e("link-btn")),disabled:S(Ae),onClick:Ie[10]||(Ie[10]=de=>S(w)(!1))},{default:X(()=>[lt(Ke(S(_)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):we("v-if",!0)],2))}});var gVe=Je(vVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const yVe=et({...zX}),mVe=["pick","set-picker-option","calendar-change"],bVe=({unlinkPanels:t,leftDate:e,rightDate:n})=>{const{t:r}=xn(),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=B(()=>`${e.value.year()} ${r("el.datepicker.year")}`),u=B(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=B(()=>e.value.year()),f=B(()=>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}},SVe=["onClick"],wVe=["disabled"],_Ve=["disabled"],LS="year",xVe=pe({name:"DatePickerMonthRange"}),CVe=pe({...xVe,props:yVe,emits:mVe,setup(t,{emit:e}){const n=t,{lang:r}=xn(),a=pt("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Rr(a.props,"defaultValue"),u=W(qt().locale(r.value)),c=W(qt().locale(r.value).add(1,LS)),{minDate:f,maxDate:d,rangeState:h,ppNs:p,drpNs:v,handleChangeRange:g,handleRangeConfirm:y,handleShortcutClick:m,onSelect:b}=HX(n,{defaultValue:l,leftDate:u,rightDate:c,unit:LS,onParsedValueChanged:G}),w=B(()=>!!i.length),{leftPrevYear:C,rightNextYear:x,leftNextYear:_,rightPrevYear:T,leftLabel:M,rightLabel:E,leftYear:k,rightYear:R}=bVe({unlinkPanels:Rr(n,"unlinkPanels"),leftDate:u,rightDate:c}),L=B(()=>n.unlinkPanels&&R.value>k.value+1),A=(I,$=!0)=>{const N=I.minDate,P=I.maxDate;d.value===P&&f.value===N||(e("calendar-change",[N.toDate(),P&&P.toDate()]),d.value=P,f.value=N,$&&y())},V=I=>I.map($=>$.format(s));function G(I,$){if(n.unlinkPanels&&$){const N=(I==null?void 0:I.year())||0,P=$.year();c.value=N===P?$.add(1,LS):$}else c.value=u.value.add(1,LS)}return e("set-picker-option",["formatToString",V]),(I,$)=>(z(),ne("div",{class:j([S(p).b(),S(v).b(),{"has-sidebar":!!I.$slots.sidebar||S(w)}])},[U("div",{class:j(S(p).e("body-wrapper"))},[ze(I.$slots,"sidebar",{class:j(S(p).e("sidebar"))}),S(w)?(z(),ne("div",{key:0,class:j(S(p).e("sidebar"))},[(z(!0),ne(bt,null,ln(S(i),(N,P)=>(z(),ne("button",{key:P,type:"button",class:j(S(p).e("shortcut")),onClick:Y=>S(m)(N)},Ke(N.text),11,SVe))),128))],2)):we("v-if",!0),U("div",{class:j(S(p).e("body"))},[U("div",{class:j([[S(p).e("content"),S(v).e("content")],"is-left"])},[U("div",{class:j(S(v).e("header"))},[U("button",{type:"button",class:j([S(p).e("icon-btn"),"d-arrow-left"]),onClick:$[0]||($[0]=(...N)=>S(C)&&S(C)(...N))},[H(S(mt),null,{default:X(()=>[H(S(ug))]),_:1})],2),I.unlinkPanels?(z(),ne("button",{key:0,type:"button",disabled:!S(L),class:j([[S(p).e("icon-btn"),{[S(p).is("disabled")]:!S(L)}],"d-arrow-right"]),onClick:$[1]||($[1]=(...N)=>S(_)&&S(_)(...N))},[H(S(mt),null,{default:X(()=>[H(S(cg))]),_:1})],10,wVe)):we("v-if",!0),U("div",null,Ke(S(M)),1)],2),H(LL,{"selection-mode":"range",date:u.value,"min-date":S(f),"max-date":S(d),"range-state":S(h),"disabled-date":S(o),onChangerange:S(g),onPick:A,onSelect:S(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),U("div",{class:j([[S(p).e("content"),S(v).e("content")],"is-right"])},[U("div",{class:j(S(v).e("header"))},[I.unlinkPanels?(z(),ne("button",{key:0,type:"button",disabled:!S(L),class:j([[S(p).e("icon-btn"),{"is-disabled":!S(L)}],"d-arrow-left"]),onClick:$[2]||($[2]=(...N)=>S(T)&&S(T)(...N))},[H(S(mt),null,{default:X(()=>[H(S(ug))]),_:1})],10,_Ve)):we("v-if",!0),U("button",{type:"button",class:j([S(p).e("icon-btn"),"d-arrow-right"]),onClick:$[3]||($[3]=(...N)=>S(x)&&S(x)(...N))},[H(S(mt),null,{default:X(()=>[H(S(cg))]),_:1})],2),U("div",null,Ke(S(E)),1)],2),H(LL,{"selection-mode":"range",date:c.value,"min-date":S(f),"max-date":S(d),"range-state":S(h),"disabled-date":S(o),onChangerange:S(g),onPick:A,onSelect:S(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var TVe=Je(CVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const EVe=function(t){switch(t){case"daterange":case"datetimerange":return gVe;case"monthrange":return TVe;default:return rVe}};qt.extend(lX);qt.extend(cNe);qt.extend(zN);qt.extend(dNe);qt.extend(pNe);qt.extend(gNe);qt.extend(mNe);qt.extend(SNe);var MVe=pe({name:"ElDatePicker",install:null,props:wNe,emits:["update:modelValue"],setup(t,{expose:e,emit:n,slots:r}){const a=je("picker-panel");on("ElPopperOptions",Rn(Rr(t,"popperOptions"))),on(WN,{slots:r,pickerNs:a});const i=W();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:oLe[t.type]||lv,c=EVe(t.type);return H(qq,en(t,{format:u,type:t.type,ref:i,"onUpdate:modelValue":s}),{default:f=>H(c,f,null),"range-separator":r["range-separator"]})}}});const $_=MVe;$_.install=t=>{t.component($_.name,$_)};const DVe=$_,KN=Symbol("elDescriptions");var H0=pe({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:pt(KN,{})}},render(){var t,e,n,r,a,i;const o=pTe(this.cell),{border:s,direction:l}=this.descriptions,u=l==="vertical",c=((n=(e=(t=this.cell)==null?void 0:t.children)==null?void 0:e.label)==null?void 0:n.call(e))||o.label,f=(i=(a=(r=this.cell)==null?void 0:r.children)==null?void 0:a.default)==null?void 0:i.call(a),d=o.span,h=o.align?`is-${o.align}`:"",p=o.labelAlign?`is-${o.labelAlign}`:h,v=o.className,g=o.labelClassName,y={width:qr(o.width),minWidth:qr(o.minWidth)},m=je("descriptions");switch(this.type){case"label":return xt(this.tag,{style:y,class:[m.e("cell"),m.e("label"),m.is("bordered-label",s),m.is("vertical-label",u),p,g],colSpan:u?d:1},c);case"content":return xt(this.tag,{style:y,class:[m.e("cell"),m.e("content"),m.is("bordered-content",s),m.is("vertical-content",u),h,v],colSpan:u?d:d*2-1},f);default:return xt("td",{style:y,class:[m.e("cell"),h],colSpan:d},[fa(c)?void 0:xt("span",{class:[m.e("label"),g]},c),xt("span",{class:[m.e("content"),v]},f)])}}});const kVe=et({row:{type:Array,default:()=>[]}}),RVe={key:1},LVe=pe({name:"ElDescriptionsRow"}),OVe=pe({...LVe,props:kVe,setup(t){const e=pt(KN,{});return(n,r)=>S(e).direction==="vertical"?(z(),ne(bt,{key:0},[U("tr",null,[(z(!0),ne(bt,null,ln(n.row,(a,i)=>(z(),xe(S(H0),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),U("tr",null,[(z(!0),ne(bt,null,ln(n.row,(a,i)=>(z(),xe(S(H0),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(z(),ne("tr",RVe,[(z(!0),ne(bt,null,ln(n.row,(a,i)=>(z(),ne(bt,{key:`tr3-${i}`},[S(e).border?(z(),ne(bt,{key:0},[H(S(H0),{cell:a,tag:"td",type:"label"},null,8,["cell"]),H(S(H0),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(z(),xe(S(H0),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var AVe=Je(OVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const NVe=et({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:ai,title:{type:String,default:""},extra:{type:String,default:""}}),VVe=pe({name:"ElDescriptions"}),BVe=pe({...VVe,props:NVe,setup(t){const e=t,n=je("descriptions"),r=va(),a=li();on(KN,e);const i=B(()=>[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=Bv((l=a.default)==null?void 0:l.call(a)).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)==="ElDescriptionsItem"}),c=[];let f=[],d=e.column,h=0;return u.forEach((p,v)=>{var g;const y=((g=p.props)==null?void 0:g.span)||1;if(v<u.length-1&&(h+=y>d?d:y),v===u.length-1){const m=e.column-h%e.column;f.push(o(p,m,d,!0)),c.push(f);return}y<d?(d-=y,f.push(p)):(f.push(o(p,y,d)),c.push(f),d=e.column,f=[])}),c};return(l,u)=>(z(),ne("div",{class:j(S(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(z(),ne("div",{key:0,class:j(S(n).e("header"))},[U("div",{class:j(S(n).e("title"))},[ze(l.$slots,"title",{},()=>[lt(Ke(l.title),1)])],2),U("div",{class:j(S(n).e("extra"))},[ze(l.$slots,"extra",{},()=>[lt(Ke(l.extra),1)])],2)],2)):we("v-if",!0),U("div",{class:j(S(n).e("body"))},[U("table",{class:j([S(n).e("table"),S(n).is("bordered",l.border)])},[U("tbody",null,[(z(!0),ne(bt,null,ln(s(),(c,f)=>(z(),xe(AVe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var IVe=Je(BVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),WX=pe({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 $Ve=Zt(IVe,{DescriptionsItem:WX}),PVe=Hr(WX),FVe=et({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:De([String,Array,Object])},zIndex:{type:De([String,Number])}}),zVe={click:t=>t instanceof MouseEvent},UVe="overlay";var GVe=pe({name:"ElOverlay",props:FVe,emits:zVe,setup(t,{slots:e,emit:n}){const r=je(UVe),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=kN(t.customMaskEvent?void 0:a);return()=>t.mask?H("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:i,onMousedown:o,onMouseup:s},[ze(e,"default")],Go.STYLE|Go.CLASS|Go.PROPS,["onClick","onMouseup","onMousedown"]):xt("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ze(e,"default")])}});const YN=GVe,jX=Symbol("dialogInjectionKey"),KX=et({center:Boolean,alignCenter:Boolean,closeIcon:{type:sr},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),HVe={close:()=>!0},WVe=["aria-level"],jVe=["aria-label"],KVe=["id"],YVe=pe({name:"ElDialogContent"}),qVe=pe({...YVe,props:KX,emits:HVe,setup(t){const e=t,{t:n}=xn(),{Close:r}=AY,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=pt(jX),{focusTrapRef:u}=pt($N),c=B(()=>[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=nT(u,a),d=B(()=>e.draggable);return VY(a,i,d),(h,p)=>(z(),ne("div",{ref:S(f),class:j(S(c)),style:St(S(l)),tabindex:"-1"},[U("header",{ref_key:"headerRef",ref:i,class:j(S(s).e("header"))},[ze(h.$slots,"header",{},()=>[U("span",{role:"heading","aria-level":h.ariaLevel,class:j(S(s).e("title"))},Ke(h.title),11,WVe)]),h.showClose?(z(),ne("button",{key:0,"aria-label":S(n)("el.dialog.close"),class:j(S(s).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=v=>h.$emit("close"))},[H(S(mt),{class:j(S(s).e("close"))},{default:X(()=>[(z(),xe(tn(h.closeIcon||S(r))))]),_:1},8,["class"])],10,jVe)):we("v-if",!0)],2),U("div",{id:S(o),class:j(S(s).e("body"))},[ze(h.$slots,"default")],10,KVe),h.$slots.footer?(z(),ne("footer",{key:0,class:j(S(s).e("footer"))},[ze(h.$slots,"footer")],2)):we("v-if",!0)],6))}});var XVe=Je(qVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const YX=et({...KX,appendToBody:Boolean,beforeClose:{type:De(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"}}),qX={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Qt]:t=>da(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},XX=(t,e)=>{const r=Yt().emit,{nextZIndex:a}=Kg();let i="";const o=ls(),s=ls(),l=W(!1),u=W(!1),c=W(!1),f=W(t.zIndex||a());let d,h;const p=cT("namespace",am),v=B(()=>{const A={},V=`--${p.value}-dialog`;return t.fullscreen||(t.top&&(A[`${V}-margin-top`]=t.top),t.width&&(A[`${V}-width`]=qr(t.width))),A}),g=B(()=>t.alignCenter?{display:"flex"}:{});function y(){r("opened")}function m(){r("closed"),r(Qt,!1),t.destroyOnClose&&(c.value=!1)}function b(){r("close")}function w(){h==null||h(),d==null||d(),t.openDelay&&t.openDelay>0?{stop:d}=Gh(()=>T(),t.openDelay):T()}function C(){d==null||d(),h==null||h(),t.closeDelay&&t.closeDelay>0?{stop:h}=Gh(()=>M(),t.closeDelay):M()}function x(){function A(V){V||(u.value=!0,l.value=!1)}t.beforeClose?t.beforeClose(A):C()}function _(){t.closeOnClickModal&&x()}function T(){Sn&&(l.value=!0)}function M(){l.value=!1}function E(){r("openAutoFocus")}function k(){r("closeAutoFocus")}function R(A){var V;((V=A.detail)==null?void 0:V.focusReason)==="pointer"&&A.preventDefault()}t.lockScroll&&$Y(l);function L(){t.closeOnPressEscape&&x()}return Ge(()=>t.modelValue,A=>{A?(u.value=!1,w(),c.value=!0,f.value=t.zIndex?f.value++:a(),yt(()=>{r("open"),e.value&&(e.value.scrollTop=0)})):l.value&&C()}),Ge(()=>t.fullscreen,A=>{e.value&&(A?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),Pt(()=>{t.modelValue&&(l.value=!0,c.value=!0,w())}),{afterEnter:y,afterLeave:m,beforeLeave:b,handleClose:x,onModalClick:_,close:C,doClose:M,onOpenAutoFocus:E,onCloseAutoFocus:k,onCloseRequested:L,onFocusoutPrevented:R,titleId:o,bodyId:s,closed:u,style:v,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},ZVe=["aria-label","aria-labelledby","aria-describedby"],QVe=pe({name:"ElDialog",inheritAttrs:!1}),JVe=pe({...QVe,props:YX,emits:qX,setup(t,{expose:e}){const n=t,r=li();jl({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"},B(()=>!!r.title)),jl({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"},B(()=>!!n.customClass));const a=je("dialog"),i=W(),o=W(),s=W(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:p,afterEnter:v,afterLeave:g,beforeLeave:y,handleClose:m,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:C,onCloseRequested:x,onFocusoutPrevented:_}=XX(n,i);on(jX,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=kN(b),M=B(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:s}),(E,k)=>(z(),xe(eb,{to:"body",disabled:!E.appendToBody},[H(Jr,{name:"dialog-fade",onAfterEnter:S(v),onAfterLeave:S(g),onBeforeLeave:S(y),persisted:""},{default:X(()=>[Ft(H(S(YN),{"custom-mask-event":"",mask:E.modal,"overlay-class":E.modalClass,"z-index":S(p)},{default:X(()=>[U("div",{role:"dialog","aria-modal":"true","aria-label":E.title||void 0,"aria-labelledby":E.title?void 0:S(u),"aria-describedby":S(c),class:j(`${S(a).namespace.value}-overlay-dialog`),style:St(S(d)),onClick:k[0]||(k[0]=(...R)=>S(T).onClick&&S(T).onClick(...R)),onMousedown:k[1]||(k[1]=(...R)=>S(T).onMousedown&&S(T).onMousedown(...R)),onMouseup:k[2]||(k[2]=(...R)=>S(T).onMouseup&&S(T).onMouseup(...R))},[H(S(hT),{loop:"",trapped:S(l),"focus-start-el":"container",onFocusAfterTrapped:S(w),onFocusAfterReleased:S(C),onFocusoutPrevented:S(_),onReleaseRequested:S(x)},{default:X(()=>[S(h)?(z(),xe(XVe,en({key:0,ref_key:"dialogContentRef",ref:s},E.$attrs,{"custom-class":E.customClass,center:E.center,"align-center":E.alignCenter,"close-icon":E.closeIcon,draggable:S(M),fullscreen:E.fullscreen,"show-close":E.showClose,title:E.title,"aria-level":E.headerAriaLevel,onClose:S(m)}),Iu({header:X(()=>[E.$slots.title?ze(E.$slots,"title",{key:1}):ze(E.$slots,"header",{key:0,close:S(m),titleId:S(u),titleClass:S(a).e("title")})]),default:X(()=>[ze(E.$slots,"default")]),_:2},[E.$slots.footer?{name:"footer",fn:X(()=>[ze(E.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):we("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,ZVe)]),_:3},8,["mask","overlay-class","z-index"]),[[pn,S(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var eBe=Je(JVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Ta=Zt(eBe),tBe=et({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:De(String),default:"solid"}}),nBe=pe({name:"ElDivider"}),rBe=pe({...nBe,props:tBe,setup(t){const e=t,n=je("divider"),r=B(()=>n.cssVar({"border-style":e.borderStyle}));return(a,i)=>(z(),ne("div",{class:j([S(n).b(),S(n).m(a.direction)]),style:St(S(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(z(),ne("div",{key:0,class:j([S(n).e("text"),S(n).is(a.contentPosition)])},[ze(a.$slots,"default")],2)):we("v-if",!0)],6))}});var aBe=Je(rBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ZX=Zt(aBe),iBe=et({...YX,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"}}),oBe=qX,sBe=pe({name:"ElDrawer",components:{ElOverlay:YN,ElFocusTrap:hT,ElIcon:mt,Close:Qs},inheritAttrs:!1,props:iBe,emits:oBe,setup(t,{slots:e}){jl({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"},B(()=>!!e.title)),jl({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"},B(()=>!!t.customClass));const n=W(),r=W(),a=je("drawer"),{t:i}=xn(),o=B(()=>t.direction==="rtl"||t.direction==="ltr"),s=B(()=>qr(t.size));return{...XX(t,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),lBe=["aria-label","aria-labelledby","aria-describedby"],uBe=["id","aria-level"],cBe=["aria-label"],fBe=["id"];function dBe(t,e,n,r,a,i){const o=Xe("close"),s=Xe("el-icon"),l=Xe("el-focus-trap"),u=Xe("el-overlay");return z(),xe(eb,{to:"body",disabled:!t.appendToBody},[H(Jr,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:X(()=>[Ft(H(u,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:X(()=>[H(l,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:X(()=>[U("div",en({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]=kt(()=>{},["stop"]))}),[U("span",{ref:"focusStartRef",class:j(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(z(),ne("header",{key:0,class:j(t.ns.e("header"))},[t.$slots.title?ze(t.$slots,"title",{key:1},()=>[we(" DEPRECATED SLOT ")]):ze(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?we("v-if",!0):(z(),ne("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:j(t.ns.e("title"))},Ke(t.title),11,uBe))]),t.showClose?(z(),ne("button",{key:2,"aria-label":t.t("el.drawer.close"),class:j(t.ns.e("close-btn")),type:"button",onClick:e[0]||(e[0]=(...c)=>t.handleClose&&t.handleClose(...c))},[H(s,{class:j(t.ns.e("close"))},{default:X(()=>[H(o)]),_:1},8,["class"])],10,cBe)):we("v-if",!0)],2)):we("v-if",!0),t.rendered?(z(),ne("div",{key:1,id:t.bodyId,class:j(t.ns.e("body"))},[ze(t.$slots,"default")],10,fBe)):we("v-if",!0),t.$slots.footer?(z(),ne("div",{key:2,class:j(t.ns.e("footer"))},[ze(t.$slots,"footer")],2)):we("v-if",!0)],16,lBe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[pn,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var hBe=Je(sBe,[["render",dBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const pBe=Zt(hBe),vBe=pe({inheritAttrs:!1});function gBe(t,e,n,r,a,i){return ze(t.$slots,"default")}var yBe=Je(vBe,[["render",gBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const mBe=pe({name:"ElCollectionItem",inheritAttrs:!1});function bBe(t,e,n,r,a,i){return ze(t.$slots,"default")}var SBe=Je(mBe,[["render",bBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const QX="data-el-collection-item",JX=t=>{const e=`El${t}Collection`,n=`${e}Item`,r=Symbol(e),a=Symbol(n),i={...yBe,name:e,setup(){const s=W(null),l=new Map;on(r,{itemMap:l,getItems:()=>{const c=S(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${QX}]`));return[...l.values()].sort((h,p)=>f.indexOf(h.ref)-f.indexOf(p.ref))},collectionRef:s})}},o={...SBe,name:n,setup(s,{attrs:l}){const u=W(null),c=pt(r,void 0);on(a,{collectionItemRef:u}),Pt(()=>{const f=S(u);f&&c.itemMap.set(f,{ref:f,...l})}),fr(()=>{const f=S(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},wBe=et({style:{type:De([String,Array,Object])},currentTabId:{type:De(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:De(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:_Be,ElCollectionItem:xBe,COLLECTION_INJECTION_KEY:qN,COLLECTION_ITEM_INJECTION_KEY:CBe}=JX("RovingFocusGroup"),XN=Symbol("elRovingFocusGroup"),eZ=Symbol("elRovingFocusGroupItem"),TBe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},EBe=(t,e)=>{if(e!=="rtl")return t;switch(t){case _t.right:return _t.left;case _t.left:return _t.right;default:return t}},MBe=(t,e,n)=>{const r=EBe(t.key,n);if(!(e==="vertical"&&[_t.left,_t.right].includes(r))&&!(e==="horizontal"&&[_t.up,_t.down].includes(r)))return TBe[r]},DBe=(t,e)=>t.map((n,r)=>t[(r+e)%t.length]),ZN=t=>{const{activeElement:e}=document;for(const n of t)if(n===e||(n.focus(),e!==document.activeElement))return},E5="currentTabIdChange",M5="rovingFocusGroup.entryFocus",kBe={bubbles:!1,cancelable:!0},RBe=pe({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:wBe,emits:[E5,"entryFocus"],setup(t,{emit:e}){var n;const r=W((n=t.currentTabId||t.defaultCurrentTabId)!=null?n:null),a=W(!1),i=W(!1),o=W(null),{getItems:s}=pt(qN,void 0),l=B(()=>[{outline:"none"},t.style]),u=v=>{e(E5,v)},c=()=>{a.value=!0},f=Fr(v=>{var g;(g=t.onMousedown)==null||g.call(t,v)},()=>{i.value=!0}),d=Fr(v=>{var g;(g=t.onFocus)==null||g.call(t,v)},v=>{const g=!S(i),{target:y,currentTarget:m}=v;if(y===m&&g&&!S(a)){const b=new Event(M5,kBe);if(m==null||m.dispatchEvent(b),!b.defaultPrevented){const w=s().filter(M=>M.focusable),C=w.find(M=>M.active),x=w.find(M=>M.id===S(r)),T=[C,x,...w].filter(Boolean).map(M=>M.ref);ZN(T)}}i.value=!1}),h=Fr(v=>{var g;(g=t.onBlur)==null||g.call(t,v)},()=>{a.value=!1}),p=(...v)=>{e("entryFocus",...v)};on(XN,{currentTabbedId:zg(r),loop:Rr(t,"loop"),tabIndex:B(()=>S(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Rr(t,"orientation"),dir:Rr(t,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Ge(()=>t.currentTabId,v=>{r.value=v??null}),Sr(o,M5,p)}});function LBe(t,e,n,r,a,i){return ze(t.$slots,"default")}var OBe=Je(RBe,[["render",LBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const ABe=pe({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:_Be,ElRovingFocusGroupImpl:OBe}});function NBe(t,e,n,r,a,i){const o=Xe("el-roving-focus-group-impl"),s=Xe("el-focus-group-collection");return z(),xe(s,null,{default:X(()=>[H(o,$s(IC(t.$attrs)),{default:X(()=>[ze(t.$slots,"default")]),_:3},16)]),_:3})}var VBe=Je(ABe,[["render",NBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const BBe=pe({components:{ElRovingFocusCollectionItem:xBe},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}=pt(XN,void 0),{getItems:o}=pt(qN,void 0),s=ls(),l=W(null),u=Fr(h=>{e("mousedown",h)},h=>{t.focusable?a(S(s)):h.preventDefault()}),c=Fr(h=>{e("focus",h)},()=>{a(S(s))}),f=Fr(h=>{e("keydown",h)},h=>{const{key:p,shiftKey:v,target:g,currentTarget:y}=h;if(p===_t.tab&&v){i();return}if(g!==y)return;const m=MBe(h);if(m){h.preventDefault();let w=o().filter(C=>C.focusable).map(C=>C.ref);switch(m){case"last":{w.reverse();break}case"prev":case"next":{m==="prev"&&w.reverse();const C=w.indexOf(y);w=r.value?DBe(w,C+1):w.slice(C+1);break}}yt(()=>{ZN(w)})}}),d=B(()=>n.value===S(s));return on(eZ,{rovingFocusGroupItemRef:l,tabIndex:B(()=>S(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function IBe(t,e,n,r,a,i){const o=Xe("el-roving-focus-collection-item");return z(),xe(o,{id:t.id,focusable:t.focusable,active:t.active},{default:X(()=>[ze(t.$slots,"default")]),_:3},8,["id","focusable","active"])}var $Be=Je(BBe,[["render",IBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const P_=et({trigger:a1.trigger,effect:{...$a.effect,default:"light"},type:{type:De(String)},placement:{type:De(String),default:"bottom"},popperOptions:{type:De(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:De([Number,String]),default:0},maxHeight:{type:De([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:De(Object)},teleported:$a.teleported}),tZ=et({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:sr}}),PBe=et({onKeydown:{type:De(Function)}}),FBe=[_t.down,_t.pageDown,_t.home],nZ=[_t.up,_t.pageUp,_t.end],zBe=[...FBe,...nZ],{ElCollection:UBe,ElCollectionItem:GBe,COLLECTION_INJECTION_KEY:HBe,COLLECTION_ITEM_INJECTION_KEY:WBe}=JX("Dropdown"),gT=Symbol("elDropdown"),{ButtonGroup:jBe}=Lt,KBe=pe({name:"ElDropdown",components:{ElButton:Lt,ElButtonGroup:jBe,ElScrollbar:ec,ElDropdownCollection:UBe,ElTooltip:Gi,ElRovingFocusGroup:VBe,ElOnlyChild:Mq,ElIcon:mt,ArrowDown:Vf},props:P_,emits:["visible-change","click","command"],setup(t,{emit:e}){const n=Yt(),r=je("dropdown"),{t:a}=xn(),i=W(),o=W(),s=W(null),l=W(null),u=W(null),c=W(null),f=W(!1),d=[_t.enter,_t.space,_t.down],h=B(()=>({maxHeight:qr(t.maxHeight)})),p=B(()=>[r.m(C.value)]),v=B(()=>Wh(t.trigger)),g=ls().value,y=B(()=>t.id||g);Ge([i,v],([I,$],[N])=>{var P,Y,J;(P=N==null?void 0:N.$el)!=null&&P.removeEventListener&&N.$el.removeEventListener("pointerenter",_),(Y=I==null?void 0:I.$el)!=null&&Y.removeEventListener&&I.$el.removeEventListener("pointerenter",_),(J=I==null?void 0:I.$el)!=null&&J.addEventListener&&$.includes("hover")&&I.$el.addEventListener("pointerenter",_)},{immediate:!0}),fr(()=>{var I,$;($=(I=i.value)==null?void 0:I.$el)!=null&&$.removeEventListener&&i.value.$el.removeEventListener("pointerenter",_)});function m(){b()}function b(){var I;(I=s.value)==null||I.onClose()}function w(){var I;(I=s.value)==null||I.onOpen()}const C=va();function x(...I){e("command",...I)}function _(){var I,$;($=(I=i.value)==null?void 0:I.$el)==null||$.focus()}function T(){}function M(){const I=S(l);v.value.includes("hover")&&(I==null||I.focus()),c.value=null}function E(I){c.value=I}function k(I){f.value||(I.preventDefault(),I.stopImmediatePropagation())}function R(){e("visible-change",!0)}function L(I){(I==null?void 0:I.type)==="keydown"&&l.value.focus()}function A(){e("visible-change",!1)}return on(gT,{contentRef:l,role:B(()=>t.role),triggerId:y,isUsingKeyboard:f,onItemEnter:T,onItemLeave:M}),on("elDropdown",{instance:n,dropdownSize:C,handleClick:m,commandHandler:x,trigger:Rr(t,"trigger"),hideOnClick:Rr(t,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:C,triggerId:y,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:E,handlerMainButtonClick:I=>{e("click",I)},handleEntryFocus:k,handleClose:b,handleOpen:w,handleBeforeShowTooltip:R,handleShowTooltip:L,handleBeforeHideTooltip:A,onFocusAfterTrapped:I=>{var $,N;I.preventDefault(),(N=($=l.value)==null?void 0:$.focus)==null||N.call($,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function YBe(t,e,n,r,a,i){var o;const s=Xe("el-dropdown-collection"),l=Xe("el-roving-focus-group"),u=Xe("el-scrollbar"),c=Xe("el-only-child"),f=Xe("el-tooltip"),d=Xe("el-button"),h=Xe("arrow-down"),p=Xe("el-icon"),v=Xe("el-button-group");return z(),ne("div",{class:j([t.ns.b(),t.ns.is("disabled",t.disabled)])},[H(f,{ref:"popperRef",role:t.role,effect:t.effect,"fallback-placements":["bottom","top"],"popper-options":t.popperOptions,"gpu-acceleration":!1,"hide-after":t.trigger==="hover"?t.hideTimeout:0,"manual-mode":!0,placement:t.placement,"popper-class":[t.ns.e("popper"),t.popperClass],"reference-element":(o=t.referenceElementRef)==null?void 0:o.$el,trigger:t.trigger,"trigger-keys":t.triggerKeys,"trigger-target-el":t.contentRef,"show-after":t.trigger==="hover"?t.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":t.triggeringElementRef,"virtual-triggering":t.splitButton,disabled:t.disabled,transition:`${t.ns.namespace.value}-zoom-in-top`,teleported:t.teleported,pure:"",persistent:"",onBeforeShow:t.handleBeforeShowTooltip,onShow:t.handleShowTooltip,onBeforeHide:t.handleBeforeHideTooltip},Iu({content:X(()=>[H(u,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:X(()=>[H(l,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:X(()=>[H(s,null,{default:X(()=>[ze(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:X(()=>[H(c,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:X(()=>[ze(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?(z(),xe(v,{key:0},{default:X(()=>[H(d,en({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:X(()=>[ze(t.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),H(d,en({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:X(()=>[H(p,{class:j(t.ns.e("icon"))},{default:X(()=>[H(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):we("v-if",!0)],2)}var qBe=Je(KBe,[["render",YBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const XBe=pe({name:"DropdownItemImpl",components:{ElIcon:mt},props:tZ,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:e}){const n=je("dropdown"),{role:r}=pt(gT,void 0),{collectionItemRef:a}=pt(WBe,void 0),{collectionItemRef:i}=pt(CBe,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=pt(eZ,void 0),f=nT(a,i,o),d=B(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=Fr(p=>{const{code:v}=p;if(v===_t.enter||v===_t.space)return p.preventDefault(),p.stopImmediatePropagation(),e("clickimpl",p),!0},u);return{ns:n,itemRef:f,dataset:{[QX]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),ZBe=["aria-disabled","tabindex","role"];function QBe(t,e,n,r,a,i){const o=Xe("el-icon");return z(),ne(bt,null,[t.divided?(z(),ne("li",en({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):we("v-if",!0),U("li",en({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]=kt((...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?(z(),xe(o,{key:0},{default:X(()=>[(z(),xe(tn(t.icon)))]),_:1})):we("v-if",!0),ze(t.$slots,"default")],16,ZBe)],64)}var JBe=Je(XBe,[["render",QBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const rZ=()=>{const t=pt("elDropdown",{}),e=B(()=>t==null?void 0:t.dropdownSize);return{elDropdown:t,_elDropdownSize:e}},eIe=pe({name:"ElDropdownItem",components:{ElDropdownCollectionItem:GBe,ElRovingFocusItem:$Be,ElDropdownItemImpl:JBe},inheritAttrs:!1,props:tZ,emits:["pointermove","pointerleave","click"],setup(t,{emit:e,attrs:n}){const{elDropdown:r}=rZ(),a=Yt(),i=W(null),o=B(()=>{var h,p;return(p=(h=S(i))==null?void 0:h.textContent)!=null?p:""}),{onItemEnter:s,onItemLeave:l}=pt(gT,void 0),u=Fr(h=>(e("pointermove",h),h.defaultPrevented),MP(h=>{if(t.disabled){l(h);return}const p=h.currentTarget;p===document.activeElement||p.contains(document.activeElement)||(s(h),h.defaultPrevented||p==null||p.focus())})),c=Fr(h=>(e("pointerleave",h),h.defaultPrevented),MP(h=>{l(h)})),f=Fr(h=>{if(!t.disabled)return e("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var p,v,g;if(t.disabled){h.stopImmediatePropagation();return}(p=r==null?void 0:r.hideOnClick)!=null&&p.value&&((v=r.handleClick)==null||v.call(r)),(g=r.commandHandler)==null||g.call(r,t.command,a,h)}),d=B(()=>({...t,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function tIe(t,e,n,r,a,i){var o;const s=Xe("el-dropdown-item-impl"),l=Xe("el-roving-focus-item"),u=Xe("el-dropdown-collection-item");return z(),xe(u,{disabled:t.disabled,"text-value":(o=t.textValue)!=null?o:t.textContent},{default:X(()=>[H(l,{focusable:!t.disabled},{default:X(()=>[H(s,en(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:X(()=>[ze(t.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var aZ=Je(eIe,[["render",tIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const nIe=pe({name:"ElDropdownMenu",props:PBe,setup(t){const e=je("dropdown"),{_elDropdownSize:n}=rZ(),r=n.value,{focusTrapRef:a,onKeydown:i}=pt($N,void 0),{contentRef:o,role:s,triggerId:l}=pt(gT,void 0),{collectionRef:u,getItems:c}=pt(HBe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:p,onFocus:v,onMousedown:g}=pt(XN,void 0),{collectionRef:y}=pt(qN,void 0),m=B(()=>[e.b("menu"),e.bm("menu",r==null?void 0:r.value)]),b=nT(o,u,a,f,y),w=Fr(x=>{var _;(_=t.onKeydown)==null||_.call(t,x)},x=>{const{currentTarget:_,code:T,target:M}=x;if(_.contains(M),_t.tab===T&&x.stopImmediatePropagation(),x.preventDefault(),M!==S(o)||!zBe.includes(T))return;const k=c().filter(R=>!R.disabled).map(R=>R.ref);nZ.includes(T)&&k.reverse(),ZN(k)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:m,role:s,triggerId:l,dropdownListWrapperRef:b,handleKeydown:x=>{w(x),i(x)},onBlur:p,onFocus:v,onMousedown:g}}}),rIe=["role","aria-labelledby"];function aIe(t,e,n,r,a,i){return z(),ne("ul",{ref:t.dropdownListWrapperRef,class:j(t.dropdownKls),style:St(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]=kt((...o)=>t.handleKeydown&&t.handleKeydown(...o),["self"])),onMousedown:e[3]||(e[3]=kt((...o)=>t.onMousedown&&t.onMousedown(...o),["self"]))},[ze(t.$slots,"default")],46,rIe)}var iZ=Je(nIe,[["render",aIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const iIe=Zt(qBe,{DropdownItem:aZ,DropdownMenu:iZ}),oIe=Hr(aZ),sIe=Hr(iZ),lIe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},uIe=["id"],cIe=["stop-color"],fIe=["stop-color"],dIe=["id"],hIe=["stop-color"],pIe=["stop-color"],vIe=["id"],gIe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},yIe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},mIe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},bIe=["fill"],SIe=["fill"],wIe={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)"},_Ie=["fill"],xIe=["fill"],CIe=["fill"],TIe=["fill"],EIe=["fill"],MIe={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},DIe=["fill","xlink:href"],kIe=["fill","mask"],RIe=["fill"],LIe=pe({name:"ImgEmpty"}),OIe=pe({...LIe,setup(t){const e=je("empty"),n=ls();return(r,a)=>(z(),ne("svg",lIe,[U("defs",null,[U("linearGradient",{id:`linearGradient-1-${S(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[U("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,cIe),U("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,fIe)],8,uIe),U("linearGradient",{id:`linearGradient-2-${S(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[U("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,hIe),U("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,pIe)],8,dIe),U("rect",{id:`path-3-${S(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,vIe)]),U("g",gIe,[U("g",yIe,[U("g",mIe,[U("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${S(e).cssVarBlockName("fill-color-3")})`},null,8,bIe),U("polygon",{id:"Rectangle-Copy-14",fill:`var(${S(e).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,SIe),U("g",wIe,[U("polygon",{id:"Rectangle-Copy-10",fill:`var(${S(e).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_Ie),U("polygon",{id:"Rectangle-Copy-11",fill:`var(${S(e).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,xIe),U("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${S(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,CIe),U("polygon",{id:"Rectangle-Copy-13",fill:`var(${S(e).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,TIe)]),U("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${S(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,EIe),U("g",MIe,[U("use",{id:"Mask",fill:`var(${S(e).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${S(n)}`},null,8,DIe),U("polygon",{id:"Rectangle-Copy",fill:`var(${S(e).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${S(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,kIe)]),U("polygon",{id:"Rectangle-Copy-18",fill:`var(${S(e).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,RIe)])])])]))}});var AIe=Je(OIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const NIe=et({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),VIe=["src"],BIe={key:1},IIe=pe({name:"ElEmpty"}),$Ie=pe({...IIe,props:NIe,setup(t){const e=t,{t:n}=xn(),r=je("empty"),a=B(()=>e.description||n("el.table.emptyText")),i=B(()=>({width:qr(e.imageSize)}));return(o,s)=>(z(),ne("div",{class:j(S(r).b())},[U("div",{class:j(S(r).e("image")),style:St(S(i))},[o.image?(z(),ne("img",{key:0,src:o.image,ondragstart:"return false"},null,8,VIe)):ze(o.$slots,"image",{key:1},()=>[H(AIe)])],6),U("div",{class:j(S(r).e("description"))},[o.$slots.description?ze(o.$slots,"description",{key:0}):(z(),ne("p",BIe,Ke(S(a)),1))],2),o.$slots.default?(z(),ne("div",{key:0,class:j(S(r).e("bottom"))},[ze(o.$slots,"default")],2)):we("v-if",!0)],2))}});var PIe=Je($Ie,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const oZ=Zt(PIe),FIe=et({urlList:{type:De(Array),default:()=>Er([])},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}}),zIe={close:()=>!0,switch:t=>Nt(t),rotate:t=>Nt(t)},UIe=["src"],GIe=pe({name:"ElImageViewer"}),HIe=pe({...GIe,props:FIe,emits:zIe,setup(t,{expose:e,emit:n}){const r=t,a={CONTAIN:{name:"contain",icon:af(Gxe)},ORIGINAL:{name:"original",icon:af(aCe)}},{t:i}=xn(),o=je("image-viewer"),{nextZIndex:s}=Kg(),l=W(),u=W([]),c=K7(),f=W(!0),d=W(r.initialIndex),h=or(a.CONTAIN),p=W({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=B(()=>{const{urlList:N}=r;return N.length<=1}),g=B(()=>d.value===0),y=B(()=>d.value===r.urlList.length-1),m=B(()=>r.urlList[d.value]),b=B(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),w=B(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&y.value)]),C=B(()=>{const{scale:N,deg:P,offsetX:Y,offsetY:J,enableTransition:re}=p.value;let oe=Y/N,ue=J/N;switch(P%360){case 90:case-270:[oe,ue]=[ue,-oe];break;case 180:case-180:[oe,ue]=[-oe,-ue];break;case 270:case-90:[oe,ue]=[-ue,oe];break}const le={transform:`scale(${N}) rotate(${P}deg) translate(${oe}px, ${ue}px)`,transition:re?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(le.maxWidth=le.maxHeight="100%"),le}),x=B(()=>Nt(r.zIndex)?r.zIndex:s());function _(){M(),n("close")}function T(){const N=Eh(Y=>{switch(Y.code){case _t.esc:r.closeOnPressEscape&&_();break;case _t.space:A();break;case _t.left:G();break;case _t.up:$("zoomIn");break;case _t.right:I();break;case _t.down:$("zoomOut");break}}),P=Eh(Y=>{const J=Y.deltaY||Y.deltaX;$(J<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{Sr(document,"keydown",N),Sr(document,"wheel",P)})}function M(){c.stop()}function E(){f.value=!1}function k(N){f.value=!1,N.target.alt=i("el.image.error")}function R(N){if(f.value||N.button!==0||!l.value)return;p.value.enableTransition=!1;const{offsetX:P,offsetY:Y}=p.value,J=N.pageX,re=N.pageY,oe=Eh(le=>{p.value={...p.value,offsetX:P+le.pageX-J,offsetY:Y+le.pageY-re}}),ue=Sr(document,"mousemove",oe);Sr(document,"mouseup",()=>{ue()}),N.preventDefault()}function L(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function A(){if(f.value)return;const N=Zm(a),P=Object.values(a),Y=h.value.name,re=(P.findIndex(oe=>oe.name===Y)+1)%N.length;h.value=a[N[re]],L()}function V(N){const P=r.urlList.length;d.value=(N+P)%P}function G(){g.value&&!r.infinite||V(d.value-1)}function I(){y.value&&!r.infinite||V(d.value+1)}function $(N,P={}){if(f.value)return;const{zoomRate:Y,rotateDeg:J,enableTransition:re}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...P};switch(N){case"zoomOut":p.value.scale>.2&&(p.value.scale=Number.parseFloat((p.value.scale/Y).toFixed(3)));break;case"zoomIn":p.value.scale<7&&(p.value.scale=Number.parseFloat((p.value.scale*Y).toFixed(3)));break;case"clockwise":p.value.deg+=J,n("rotate",p.value.deg);break;case"anticlockwise":p.value.deg-=J,n("rotate",p.value.deg);break}p.value.enableTransition=re}return Ge(m,()=>{yt(()=>{const N=u.value[0];N!=null&&N.complete||(f.value=!0)})}),Ge(d,N=>{L(),n("switch",N)}),Pt(()=>{var N,P;T(),(P=(N=l.value)==null?void 0:N.focus)==null||P.call(N)}),e({setActiveItem:V}),(N,P)=>(z(),xe(eb,{to:"body",disabled:!N.teleported},[H(Jr,{name:"viewer-fade",appear:""},{default:X(()=>[U("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:j(S(o).e("wrapper")),style:St({zIndex:S(x)})},[U("div",{class:j(S(o).e("mask")),onClick:P[0]||(P[0]=kt(Y=>N.hideOnClickModal&&_(),["self"]))},null,2),we(" CLOSE "),U("span",{class:j([S(o).e("btn"),S(o).e("close")]),onClick:_},[H(S(mt),null,{default:X(()=>[H(S(Qs))]),_:1})],2),we(" ARROW "),S(v)?we("v-if",!0):(z(),ne(bt,{key:0},[U("span",{class:j(S(b)),onClick:G},[H(S(mt),null,{default:X(()=>[H(S(bf))]),_:1})],2),U("span",{class:j(S(w)),onClick:I},[H(S(mt),null,{default:X(()=>[H(S(Bi))]),_:1})],2)],64)),we(" ACTIONS "),U("div",{class:j([S(o).e("btn"),S(o).e("actions")])},[U("div",{class:j(S(o).e("actions__inner"))},[H(S(mt),{onClick:P[1]||(P[1]=Y=>$("zoomOut"))},{default:X(()=>[H(S(oTe))]),_:1}),H(S(mt),{onClick:P[2]||(P[2]=Y=>$("zoomIn"))},{default:X(()=>[H(S(LY))]),_:1}),U("i",{class:j(S(o).e("actions__divider"))},null,2),H(S(mt),{onClick:A},{default:X(()=>[(z(),xe(tn(S(h).icon)))]),_:1}),U("i",{class:j(S(o).e("actions__divider"))},null,2),H(S(mt),{onClick:P[3]||(P[3]=Y=>$("anticlockwise"))},{default:X(()=>[H(S(j2e))]),_:1}),H(S(mt),{onClick:P[4]||(P[4]=Y=>$("clockwise"))},{default:X(()=>[H(S(Q2e))]),_:1})],2)],2),we(" CANVAS "),U("div",{class:j(S(o).e("canvas"))},[(z(!0),ne(bt,null,ln(N.urlList,(Y,J)=>Ft((z(),ne("img",{ref_for:!0,ref:re=>u.value[J]=re,key:Y,src:Y,style:St(S(C)),class:j(S(o).e("img")),onLoad:E,onError:k,onMousedown:R},null,46,UIe)),[[pn,J===d.value]])),128))],2),ze(N.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var WIe=Je(HIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const sZ=Zt(WIe),jIe=et({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:De([String,Object])},previewSrcList:{type:De(Array),default:()=>Er([])},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}}),KIe={load:t=>t instanceof Event,error:t=>t instanceof Event,switch:t=>Nt(t),close:()=>!0,show:()=>!0},YIe=["src","loading"],qIe={key:0},XIe=pe({name:"ElImage",inheritAttrs:!1}),ZIe=pe({...XIe,props:jIe,emits:KIe,setup(t,{emit:e}){const n=t;let r="";const{t:a}=xn(),i=je("image"),o=ip(),s=bN(),l=W(),u=W(!1),c=W(!0),f=W(!1),d=W(),h=W(),p=Sn&&"loading"in HTMLImageElement.prototype;let v,g;const y=B(()=>[i.e("inner"),w.value&&i.e("preview"),c.value&&i.is("loading")]),m=B(()=>o.style),b=B(()=>{const{fit:$}=n;return Sn&&$?{objectFit:$}:{}}),w=B(()=>{const{previewSrcList:$}=n;return Array.isArray($)&&$.length>0}),C=B(()=>{const{previewSrcList:$,initialIndex:N}=n;let P=N;return N>$.length-1&&(P=0),P}),x=B(()=>n.loading==="eager"?!1:!p&&n.loading==="lazy"||n.lazy),_=()=>{Sn&&(c.value=!0,u.value=!1,l.value=n.src)};function T($){c.value=!1,u.value=!1,e("load",$)}function M($){c.value=!1,u.value=!0,e("error",$)}function E(){M0e(d.value,h.value)&&(_(),L())}const k=IK(E,200,!0);async function R(){var $;if(!Sn)return;await yt();const{scrollContainer:N}=n;is(N)?h.value=N:$t(N)&&N!==""?h.value=($=document.querySelector(N))!=null?$:void 0:d.value&&(h.value=hN(d.value)),h.value&&(v=Sr(h,"scroll",k),setTimeout(()=>E(),100))}function L(){!Sn||!h.value||!k||(v==null||v(),h.value=void 0)}function A($){if($.ctrlKey){if($.deltaY<0)return $.preventDefault(),!1;if($.deltaY>0)return $.preventDefault(),!1}}function V(){w.value&&(g=Sr("wheel",A,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,e("show"))}function G(){g==null||g(),document.body.style.overflow=r,f.value=!1,e("close")}function I($){e("switch",$)}return Ge(()=>n.src,()=>{x.value?(c.value=!0,u.value=!1,L(),R()):_()}),Pt(()=>{x.value?R():_()}),($,N)=>(z(),ne("div",{ref_key:"container",ref:d,class:j([S(i).b(),$.$attrs.class]),style:St(S(m))},[u.value?ze($.$slots,"error",{key:0},()=>[U("div",{class:j(S(i).e("error"))},Ke(S(a)("el.image.error")),3)]):(z(),ne(bt,{key:1},[l.value!==void 0?(z(),ne("img",en({key:0},S(s),{src:l.value,loading:$.loading,style:S(b),class:S(y),onClick:V,onLoad:T,onError:M}),null,16,YIe)):we("v-if",!0),c.value?(z(),ne("div",{key:1,class:j(S(i).e("wrapper"))},[ze($.$slots,"placeholder",{},()=>[U("div",{class:j(S(i).e("placeholder"))},null,2)])],2)):we("v-if",!0)],64)),S(w)?(z(),ne(bt,{key:2},[f.value?(z(),xe(S(sZ),{key:0,"z-index":$.zIndex,"initial-index":S(C),infinite:$.infinite,"zoom-rate":$.zoomRate,"url-list":$.previewSrcList,"hide-on-click-modal":$.hideOnClickModal,teleported:$.previewTeleported,"close-on-press-escape":$.closeOnPressEscape,onClose:G,onSwitch:I},{default:X(()=>[$.$slots.viewer?(z(),ne("div",qIe,[ze($.$slots,"viewer")])):we("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):we("v-if",!0)],64)):we("v-if",!0)],6))}});var QIe=Je(ZIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const JIe=Zt(QIe),e$e=et({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:ai,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||Nt(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}}),t$e={[yr]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[Ii]:t=>Nt(t)||fa(t),[Qt]:t=>Nt(t)||fa(t)},n$e=["aria-label","onKeydown"],r$e=["aria-label","onKeydown"],a$e=pe({name:"ElInputNumber"}),i$e=pe({...a$e,props:e$e,emits:t$e,setup(t,{expose:e,emit:n}){const r=t,{t:a}=xn(),i=je("input-number"),o=W(),s=Rn({currentValue:r.modelValue,userInput:null}),{formItem:l}=Ki(),u=B(()=>Nt(r.modelValue)&&r.modelValue<=r.min),c=B(()=>Nt(r.modelValue)&&r.modelValue>=r.max),f=B(()=>{const L=y(r.step);return ba(r.precision)?Math.max(y(r.modelValue),L):(L>r.precision,r.precision)}),d=B(()=>r.controls&&r.controlsPosition==="right"),h=va(),p=go(),v=B(()=>{if(s.userInput!==null)return s.userInput;let L=s.currentValue;if(fa(L))return"";if(Nt(L)){if(Number.isNaN(L))return"";ba(r.precision)||(L=L.toFixed(r.precision))}return L}),g=(L,A)=>{if(ba(A)&&(A=f.value),A===0)return Math.round(L);let V=String(L);const G=V.indexOf(".");if(G===-1||!V.replace(".","").split("")[G+A])return L;const N=V.length;return V.charAt(N-1)==="5"&&(V=`${V.slice(0,Math.max(0,N-1))}6`),Number.parseFloat(Number(V).toFixed(A))},y=L=>{if(fa(L))return 0;const A=L.toString(),V=A.indexOf(".");let G=0;return V!==-1&&(G=A.length-V-1),G},m=(L,A=1)=>Nt(L)?g(L+r.step*A):s.currentValue,b=()=>{if(r.readonly||p.value||c.value)return;const L=Number(v.value)||0,A=m(L);x(A),n(Ii,s.currentValue)},w=()=>{if(r.readonly||p.value||u.value)return;const L=Number(v.value)||0,A=m(L,-1);x(A),n(Ii,s.currentValue)},C=(L,A)=>{const{max:V,min:G,step:I,precision:$,stepStrictly:N,valueOnClear:P}=r;V<G&&pa("InputNumber","min should not be greater than max.");let Y=Number(L);if(fa(L)||Number.isNaN(Y))return null;if(L===""){if(P===null)return null;Y=$t(P)?{min:G,max:V}[P]:P}return N&&(Y=g(Math.round(Y/I)*I,$)),ba($)||(Y=g(Y,$)),(Y>V||Y<G)&&(Y=Y>V?V:G,A&&n(Qt,Y)),Y},x=(L,A=!0)=>{var V;const G=s.currentValue,I=C(L);if(!A){n(Qt,I);return}G!==I&&(s.userInput=null,n(Qt,I),n(yr,I,G),r.validateEvent&&((V=l==null?void 0:l.validate)==null||V.call(l,"change").catch($=>void 0)),s.currentValue=I)},_=L=>{s.userInput=L;const A=L===""?null:Number(L);n(Ii,A),x(A,!1)},T=L=>{const A=L!==""?Number(L):"";(Nt(A)&&!Number.isNaN(A)||L==="")&&x(A),s.userInput=null},M=()=>{var L,A;(A=(L=o.value)==null?void 0:L.focus)==null||A.call(L)},E=()=>{var L,A;(A=(L=o.value)==null?void 0:L.blur)==null||A.call(L)},k=L=>{n("focus",L)},R=L=>{var A;n("blur",L),r.validateEvent&&((A=l==null?void 0:l.validate)==null||A.call(l,"blur").catch(V=>void 0))};return Ge(()=>r.modelValue,L=>{const A=C(s.userInput),V=C(L,!0);!Nt(A)&&(!A||A!==V)&&(s.currentValue=V,s.userInput=null)},{immediate:!0}),Pt(()=>{var L;const{min:A,max:V,modelValue:G}=r,I=(L=o.value)==null?void 0:L.input;if(I.setAttribute("role","spinbutton"),Number.isFinite(V)?I.setAttribute("aria-valuemax",String(V)):I.removeAttribute("aria-valuemax"),Number.isFinite(A)?I.setAttribute("aria-valuemin",String(A)):I.removeAttribute("aria-valuemin"),I.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),I.setAttribute("aria-disabled",String(p.value)),!Nt(G)&&G!=null){let $=Number(G);Number.isNaN($)&&($=null),n(Qt,$)}}),Xu(()=>{var L,A;const V=(L=o.value)==null?void 0:L.input;V==null||V.setAttribute("aria-valuenow",`${(A=s.currentValue)!=null?A:""}`)}),e({focus:M,blur:E}),(L,A)=>(z(),ne("div",{class:j([S(i).b(),S(i).m(S(h)),S(i).is("disabled",S(p)),S(i).is("without-controls",!L.controls),S(i).is("controls-right",S(d))]),onDragstart:A[1]||(A[1]=kt(()=>{},["prevent"]))},[L.controls?Ft((z(),ne("span",{key:0,role:"button","aria-label":S(a)("el.inputNumber.decrease"),class:j([S(i).e("decrease"),S(i).is("disabled",S(u))]),onKeydown:_n(w,["enter"])},[H(S(mt),null,{default:X(()=>[S(d)?(z(),xe(S(Vf),{key:0})):(z(),xe(S(d2e),{key:1}))]),_:1})],42,n$e)),[[S(Wx),w]]):we("v-if",!0),L.controls?Ft((z(),ne("span",{key:1,role:"button","aria-label":S(a)("el.inputNumber.increase"),class:j([S(i).e("increase"),S(i).is("disabled",S(c))]),onKeydown:_n(b,["enter"])},[H(S(mt),null,{default:X(()=>[S(d)?(z(),xe(S(eT),{key:0})):(z(),xe(S(kY),{key:1}))]),_:1})],42,r$e)),[[S(Wx),b]]):we("v-if",!0),H(S(vi),{id:L.id,ref_key:"input",ref:o,type:"number",step:L.step,"model-value":S(v),placeholder:L.placeholder,readonly:L.readonly,disabled:S(p),size:S(h),max:L.max,min:L.min,name:L.name,label:L.label,"validate-event":!1,onWheel:A[0]||(A[0]=kt(()=>{},["prevent"])),onKeydown:[_n(kt(b,["prevent"]),["up"]),_n(kt(w,["prevent"]),["down"])],onBlur:R,onFocus:k,onInput:_,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var o$e=Je(i$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const lZ=Zt(o$e),s$e=et({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:sr}}),l$e={click:t=>t instanceof MouseEvent},u$e=["href"],c$e=pe({name:"ElLink"}),f$e=pe({...c$e,props:s$e,emits:l$e,setup(t,{emit:e}){const n=t,r=je("link"),a=B(()=>[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)=>(z(),ne("a",{class:j(S(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(z(),xe(S(mt),{key:0},{default:X(()=>[(z(),xe(tn(o.icon)))]),_:1})):we("v-if",!0),o.$slots.default?(z(),ne("span",{key:1,class:j(S(r).e("inner"))},[ze(o.$slots,"default")],2)):we("v-if",!0),o.$slots.icon?ze(o.$slots,"icon",{key:2}):we("v-if",!0)],10,u$e))}});var d$e=Je(f$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const h$e=Zt(d$e);let p$e=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 _t.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case _t.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case _t.tab:{T_(e,"mouseleave");break}case _t.enter:case _t.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},v$e=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 p$e(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let n=!1;switch(e.code){case _t.down:{T_(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case _t.up:{T_(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case _t.tab:{T_(e.currentTarget,"mouseleave");break}case _t.enter:case _t.space:{n=!0,e.currentTarget.click();break}}n&&e.preventDefault()})}},g$e=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 v$e(r,e)})}};const y$e=pe({name:"ElMenuCollapseTransition",setup(){const t=je("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Al(n,`${t.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){co(n,`${t.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Ks(n,t.m("collapse"))?(co(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Al(n,t.m("collapse"))):(Al(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),co(n,t.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Al(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function m$e(t,e,n,r,a,i){return z(),xe(Jr,en({mode:"out-in"},t.listeners),{default:X(()=>[ze(t.$slots,"default")]),_:3},16)}var b$e=Je(y$e,[["render",m$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function uZ(t,e){const n=B(()=>{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:B(()=>{let a=t.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function S$e(t){return B(()=>{const n=t.backgroundColor;return n?new Fq(n).shade(20).toString():""})}const cZ=(t,e)=>{const n=je("menu");return B(()=>n.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":S$e(t).value||"","active-color":t.activeTextColor||"",level:`${e}`}))},w$e=et({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:sr},expandOpenIcon:{type:sr},collapseCloseIcon:{type:sr},collapseOpenIcon:{type:sr}}),OS="ElSubMenu";var QN=pe({name:OS,props:w$e,setup(t,{slots:e,expose:n}){jl({from:"popper-append-to-body",replacement:"teleported",scope:OS,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},B(()=>t.popperAppendToBody!==void 0));const r=Yt(),{indexPath:a,parentMenu:i}=uZ(r,B(()=>t.index)),o=je("menu"),s=je("sub-menu"),l=pt("rootMenu");l||pa(OS,"can not inject root menu");const u=pt(`subMenu:${i.value.uid}`);u||pa(OS,"can not inject sub menu");const c=W({}),f=W({});let d;const h=W(!1),p=W(),v=W(null),g=B(()=>k.value==="horizontal"&&m.value?"bottom-start":"right-start"),y=B(()=>k.value==="horizontal"&&m.value||k.value==="vertical"&&!l.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?x.value?t.expandOpenIcon:t.expandCloseIcon:Vf:t.collapseCloseIcon&&t.collapseOpenIcon?x.value?t.collapseOpenIcon:t.collapseCloseIcon:Bi),m=B(()=>u.level===0),b=B(()=>{var P;const Y=(P=t.teleported)!=null?P:t.popperAppendToBody;return Y===void 0?m.value:Y}),w=B(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),C=B(()=>k.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"]),x=B(()=>l.openedMenus.includes(t.index)),_=B(()=>{let P=!1;return Object.values(c.value).forEach(Y=>{Y.active&&(P=!0)}),Object.values(f.value).forEach(Y=>{Y.active&&(P=!0)}),P}),T=B(()=>l.props.backgroundColor||""),M=B(()=>l.props.activeTextColor||""),E=B(()=>l.props.textColor||""),k=B(()=>l.props.mode),R=Rn({index:t.index,indexPath:a,active:_}),L=cZ(l.props,u.level+1),A=B(()=>k.value!=="horizontal"?{color:E.value}:{borderBottomColor:_.value?l.props.activeTextColor?M.value:"":"transparent",color:_.value?M.value:E.value}),V=()=>{var P,Y,J;return(J=(Y=(P=v.value)==null?void 0:P.popperRef)==null?void 0:Y.popperInstanceRef)==null?void 0:J.destroy()},G=P=>{P||V()},I=()=>{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:_.value})},$=(P,Y=t.showTimeout)=>{var J;P.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}=Gh(()=>{l.openMenu(t.index,a.value)},Y),b.value&&((J=i.value.vnode.el)==null||J.dispatchEvent(new MouseEvent("mouseenter")))))},N=(P=!1)=>{var Y,J;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Gh(()=>!h.value&&l.closeMenu(t.index,a.value),t.hideTimeout),b.value&&P&&((Y=r.parent)==null?void 0:Y.type.name)==="ElSubMenu"&&((J=u.handleMouseleave)==null||J.call(u,!0)))};Ge(()=>l.props.collapse,P=>G(!!P));{const P=J=>{f.value[J.index]=J},Y=J=>{delete f.value[J.index]};on(`subMenu:${r.uid}`,{addSubMenu:P,removeSubMenu:Y,handleMouseleave:N,mouseInChild:h,level:u.level+1})}return n({opened:x}),Pt(()=>{l.addSubMenu(R),u.addSubMenu(R)}),fr(()=>{u.removeSubMenu(R),l.removeSubMenu(R)}),()=>{var P;const Y=[(P=e.title)==null?void 0:P.call(e),xt(mt,{class:s.e("icon-arrow"),style:{transform:x.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>$t(y.value)?xt(r.appContext.components[y.value]):xt(y.value)})],J=l.isMenuPopup?xt(Gi,{ref:v,visible:x.value,effect:"light",pure:!0,offset:t.popperOffset,showArrow:!1,persistent:!0,popperClass:t.popperClass,placement:g.value,teleported:b.value,fallbackPlacements:C.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var re;return xt("div",{class:[o.m(k.value),o.m("popup-container"),t.popperClass],onMouseenter:oe=>$(oe,100),onMouseleave:()=>N(!0),onFocus:oe=>$(oe,100)},[xt("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:L.value},[(re=e.default)==null?void 0:re.call(e)])])},default:()=>xt("div",{class:s.e("title"),style:[A.value,{backgroundColor:T.value}],onClick:I},Y)}):xt(bt,{},[xt("div",{class:s.e("title"),style:[A.value,{backgroundColor:T.value}],ref:p,onClick:I},Y),xt(vT,{},{default:()=>{var re;return Ft(xt("ul",{role:"menu",class:[o.b(),o.m("inline")],style:L.value},[(re=e.default)==null?void 0:re.call(e)]),[[pn,x.value]])}})]);return xt("li",{class:[s.b(),s.is("active",_.value),s.is("opened",x.value),s.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:$,onMouseleave:()=>N(!0),onFocus:$},[J])}}});const _$e=et({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:De(Array),default:()=>Er([])},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"}}),mM=t=>Array.isArray(t)&&t.every(e=>$t(e)),x$e={close:(t,e)=>$t(t)&&mM(e),open:(t,e)=>$t(t)&&mM(e),select:(t,e,n,r)=>$t(t)&&mM(e)&&an(n)&&(r===void 0||r instanceof Promise)};var C$e=pe({name:"ElMenu",props:_$e,emits:x$e,setup(t,{emit:e,slots:n,expose:r}){const a=Yt(),i=a.appContext.config.globalProperties.$router,o=W(),s=je("menu"),l=je("sub-menu"),u=W(-1),c=W(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),f=W(t.defaultActive),d=W({}),h=W({}),p=B(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),v=()=>{const k=f.value&&d.value[f.value];if(!k||t.mode==="horizontal"||t.collapse)return;k.indexPath.forEach(L=>{const A=h.value[L];A&&g(L,A.indexPath)})},g=(k,R)=>{c.value.includes(k)||(t.uniqueOpened&&(c.value=c.value.filter(L=>R.includes(L))),c.value.push(k),e("open",k,R))},y=k=>{const R=c.value.indexOf(k);R!==-1&&c.value.splice(R,1)},m=(k,R)=>{y(k),e("close",k,R)},b=({index:k,indexPath:R})=>{c.value.includes(k)?m(k,R):g(k,R)},w=k=>{(t.mode==="horizontal"||t.collapse)&&(c.value=[]);const{index:R,indexPath:L}=k;if(!(fa(R)||fa(L)))if(t.router&&i){const A=k.route||R,V=i.push(A).then(G=>(G||(f.value=R),G));e("select",R,L,{index:R,indexPath:L,route:A},V)}else f.value=R,e("select",R,L,{index:R,indexPath:L})},C=k=>{const R=d.value,L=R[k]||f.value&&R[f.value]||R[t.defaultActive];L?f.value=L.index:f.value=k},x=()=>{var k,R;if(!o.value)return-1;const L=Array.from((R=(k=o.value)==null?void 0:k.childNodes)!=null?R:[]).filter(P=>P.nodeName!=="#comment"&&(P.nodeName!=="#text"||P.nodeValue)),A=64,V=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),G=Number.parseInt(getComputedStyle(o.value).paddingRight,10),I=o.value.clientWidth-V-G;let $=0,N=0;return L.forEach((P,Y)=>{$+=P.offsetWidth||0,$<=I-A&&(N=Y+1)}),N===L.length?-1:N},_=(k,R=33.34)=>{let L;return()=>{L&&clearTimeout(L),L=setTimeout(()=>{k()},R)}};let T=!0;const M=()=>{const k=()=>{u.value=-1,yt(()=>{u.value=x()})};T?k():_(k)(),T=!1};Ge(()=>t.defaultActive,k=>{d.value[k]||(f.value=""),C(k)}),Ge(()=>t.collapse,k=>{k&&(c.value=[])}),Ge(d.value,v);let E;To(()=>{t.mode==="horizontal"&&t.ellipsis?E=yi(o,M).stop:E==null||E()});{const k=V=>{h.value[V.index]=V},R=V=>{delete h.value[V.index]};on("rootMenu",Rn({props:t,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:p,addMenuItem:V=>{d.value[V.index]=V},removeMenuItem:V=>{delete d.value[V.index]},addSubMenu:k,removeSubMenu:R,openMenu:g,closeMenu:m,handleMenuItemClick:w,handleSubMenuClick:b})),on(`subMenu:${a.uid}`,{addSubMenu:k,removeSubMenu:R,mouseInChild:W(!1),level:0})}return Pt(()=>{t.mode==="horizontal"&&new g$e(a.vnode.el,s.namespace.value)}),r({open:R=>{const{indexPath:L}=h.value[R];L.forEach(A=>g(A,L))},close:y,handleResize:M}),()=>{var k,R;let L=(R=(k=n.default)==null?void 0:k.call(n))!=null?R:[];const A=[];if(t.mode==="horizontal"&&o.value){const I=Bv(L),$=u.value===-1?I:I.slice(0,u.value),N=u.value===-1?[]:I.slice(u.value);N!=null&&N.length&&t.ellipsis&&(L=$,A.push(xt(QN,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>xt(mt,{class:l.e("icon-more")},{default:()=>xt(x2e)}),default:()=>N})))}const V=cZ(t,0),G=xt("ul",{key:String(t.collapse),role:"menubar",ref:o,style:V.value,class:{[s.b()]:!0,[s.m(t.mode)]:!0,[s.m("collapse")]:t.collapse}},[...L,...A]);return t.collapseTransition&&t.mode==="vertical"?xt(b$e,()=>G):G}}});const T$e=et({index:{type:De([String,null]),default:null},route:{type:De([String,Object])},disabled:Boolean}),E$e={click:t=>$t(t.index)&&Array.isArray(t.indexPath)},bM="ElMenuItem",M$e=pe({name:bM,components:{ElTooltip:Gi},props:T$e,emits:E$e,setup(t,{emit:e}){const n=Yt(),r=pt("rootMenu"),a=je("menu"),i=je("menu-item");r||pa(bM,"can not inject root menu");const{parentMenu:o,indexPath:s}=uZ(n,Rr(t,"index")),l=pt(`subMenu:${o.value.uid}`);l||pa(bM,"can not inject sub menu");const u=B(()=>t.index===r.activeIndex),c=Rn({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 Pt(()=>{l.addSubMenu(c),r.addMenuItem(c)}),fr(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function D$e(t,e,n,r,a,i){const o=Xe("el-tooltip");return z(),ne("li",{class:j([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?(z(),xe(o,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:X(()=>[ze(t.$slots,"title")]),default:X(()=>[U("div",{class:j(t.nsMenu.be("tooltip","trigger"))},[ze(t.$slots,"default")],2)]),_:3},8,["effect"])):(z(),ne(bt,{key:1},[ze(t.$slots,"default"),ze(t.$slots,"title")],64))],2)}var fZ=Je(M$e,[["render",D$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const k$e={title:String},R$e="ElMenuItemGroup",L$e=pe({name:R$e,props:k$e,setup(){return{ns:je("menu-item-group")}}});function O$e(t,e,n,r,a,i){return z(),ne("li",{class:j(t.ns.b())},[U("div",{class:j(t.ns.e("title"))},[t.$slots.title?ze(t.$slots,"title",{key:1}):(z(),ne(bt,{key:0},[lt(Ke(t.title),1)],64))],2),U("ul",null,[ze(t.$slots,"default")])],2)}var dZ=Je(L$e,[["render",O$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const A$e=Zt(C$e,{MenuItem:fZ,MenuItemGroup:dZ,SubMenu:QN}),N$e=Hr(fZ),V$e=Hr(dZ),B$e=Hr(QN),I$e=et({icon:{type:sr,default:()=>h_e},title:String,content:{type:String,default:""}}),$$e={back:()=>!0},P$e=["aria-label"],F$e=pe({name:"ElPageHeader"}),z$e=pe({...F$e,props:I$e,emits:$$e,setup(t,{emit:e}){const n=li(),{t:r}=xn(),a=je("page-header"),i=B(()=>[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)=>(z(),ne("div",{class:j(S(i))},[s.$slots.breadcrumb?(z(),ne("div",{key:0,class:j(S(a).e("breadcrumb"))},[ze(s.$slots,"breadcrumb")],2)):we("v-if",!0),U("div",{class:j(S(a).e("header"))},[U("div",{class:j(S(a).e("left"))},[U("div",{class:j(S(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(z(),ne("div",{key:0,"aria-label":s.title||S(r)("el.pageHeader.title"),class:j(S(a).e("icon"))},[ze(s.$slots,"icon",{},()=>[s.icon?(z(),xe(S(mt),{key:0},{default:X(()=>[(z(),xe(tn(s.icon)))]),_:1})):we("v-if",!0)])],10,P$e)):we("v-if",!0),U("div",{class:j(S(a).e("title"))},[ze(s.$slots,"title",{},()=>[lt(Ke(s.title||S(r)("el.pageHeader.title")),1)])],2)],2),H(S(ZX),{direction:"vertical"}),U("div",{class:j(S(a).e("content"))},[ze(s.$slots,"content",{},()=>[lt(Ke(s.content),1)])],2)],2),s.$slots.extra?(z(),ne("div",{key:0,class:j(S(a).e("extra"))},[ze(s.$slots,"extra")],2)):we("v-if",!0)],2),s.$slots.default?(z(),ne("div",{key:1,class:j(S(a).e("main"))},[ze(s.$slots,"default")],2)):we("v-if",!0)],2))}});var U$e=Je(z$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const G$e=Zt(U$e),hZ=Symbol("elPaginationKey"),H$e=et({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:sr}}),W$e={click:t=>t instanceof MouseEvent},j$e=["disabled","aria-label","aria-disabled"],K$e={key:0},Y$e=pe({name:"ElPaginationPrev"}),q$e=pe({...Y$e,props:H$e,emits:W$e,setup(t){const e=t,{t:n}=xn(),r=B(()=>e.disabled||e.currentPage<=1);return(a,i)=>(z(),ne("button",{type:"button",class:"btn-prev",disabled:S(r),"aria-label":a.prevText||S(n)("el.pagination.prev"),"aria-disabled":S(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(z(),ne("span",K$e,Ke(a.prevText),1)):(z(),xe(S(mt),{key:1},{default:X(()=>[(z(),xe(tn(a.prevIcon)))]),_:1}))],8,j$e))}});var X$e=Je(q$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Z$e=et({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:sr}}),Q$e=["disabled","aria-label","aria-disabled"],J$e={key:0},e4e=pe({name:"ElPaginationNext"}),t4e=pe({...e4e,props:Z$e,emits:["click"],setup(t){const e=t,{t:n}=xn(),r=B(()=>e.disabled||e.currentPage===e.pageCount||e.pageCount===0);return(a,i)=>(z(),ne("button",{type:"button",class:"btn-next",disabled:S(r),"aria-label":a.nextText||S(n)("el.pagination.next"),"aria-disabled":S(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(z(),ne("span",J$e,Ke(a.nextText),1)):(z(),xe(S(mt),{key:1},{default:X(()=>[(z(),xe(tn(a.nextIcon)))]),_:1}))],8,Q$e))}});var n4e=Je(t4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const pZ=Symbol("ElSelectGroup"),pb=Symbol("ElSelect");function r4e(t,e){const n=pt(pb),r=pt(pZ,{disabled:!1}),a=B(()=>Object.prototype.toString.call(t.value).toLowerCase()==="[object object]"),i=B(()=>n.props.multiple?f(n.props.modelValue,t.value):d(t.value,n.props.modelValue)),o=B(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!i.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=B(()=>t.label||(a.value?"":t.value)),l=B(()=>t.value||t.label||""),u=B(()=>t.disabled||e.groupDisabled||o.value),c=Yt(),f=(v=[],g)=>{if(a.value){const y=n.props.valueKey;return v&&v.some(m=>Fn(Cr(m,y))===Cr(g,y))}else return v&&v.includes(g)},d=(v,g)=>{if(a.value){const{valueKey:y}=n.props;return Cr(v,y)===Cr(g,y)}else return v===g},h=()=>{!t.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Ge(()=>s.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),Ge(()=>t.value,(v,g)=>{const{remote:y,valueKey:m}=n.props;if(Object.is(v,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!t.created&&!y){if(m&&typeof v=="object"&&typeof g=="object"&&v[m]===g[m])return;n.setSelected()}}),Ge(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0});const{queryChange:p}=Fn(n);return Ge(p,v=>{const{query:g}=S(v),y=new RegExp(_Y(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 a4e=pe({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const e=je("select"),n=B(()=>[e.be("dropdown","item"),e.is("disabled",S(o)),{selected:S(i),hover:S(c)}]),r=Rn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=r4e(t,r),{visible:u,hover:c}=Ra(r),f=Yt().proxy;s.onOptionCreate(f),fr(()=>{const h=f.value,{selected:p}=s,g=(s.props.multiple?p:[p]).some(y=>y.value===f.value);yt(()=>{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 i4e(t,e,n,r,a,i){return Ft((z(),ne("li",{class:j(t.containerKls),onMouseenter:e[0]||(e[0]=(...o)=>t.hoverItem&&t.hoverItem(...o)),onClick:e[1]||(e[1]=kt((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[ze(t.$slots,"default",{},()=>[U("span",null,Ke(t.currentLabel),1)])],34)),[[pn,t.visible]])}var JN=Je(a4e,[["render",i4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const o4e=pe({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=pt(pb),e=je("select"),n=B(()=>t.props.popperClass),r=B(()=>t.props.multiple),a=B(()=>t.props.fitInputWidth),i=W("");function o(){var s;i.value=`${(s=t.selectWrapper)==null?void 0:s.offsetWidth}px`}return Pt(()=>{o(),yi(t.selectWrapper,o)}),{ns:e,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function s4e(t,e,n,r,a,i){return z(),ne("div",{class:j([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:St({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[ze(t.$slots,"default")],6)}var l4e=Je(o4e,[["render",s4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function u4e(t){const{t:e}=xn();return Rn({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 c4e=(t,e,n)=>{const{t:r}=xn(),a=je("select");jl({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},B(()=>t.suffixTransition===!1));const i=W(null),o=W(null),s=W(null),l=W(null),u=W(null),c=W(null),f=W(null),d=W(null),h=W(-1),p=or({query:""}),v=or(""),g=W([]);let y=0;const{form:m,formItem:b}=Ki(),w=B(()=>!t.filterable||t.multiple||!e.visible),C=B(()=>t.disabled||(m==null?void 0:m.disabled)),x=B(()=>{const Pe=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!=="";return t.clearable&&!C.value&&e.inputHovering&&Pe}),_=B(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),T=B(()=>a.is("reverse",_.value&&e.visible&&t.suffixTransition)),M=B(()=>(m==null?void 0:m.statusIcon)&&(b==null?void 0:b.validateState)&&mN[b==null?void 0:b.validateState]),E=B(()=>t.remote?300:0),k=B(()=>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),R=B(()=>{const Pe=Array.from(e.options.values()),st=[];return g.value.forEach(Ee=>{const nt=Pe.findIndex(jt=>jt.currentLabel===Ee);nt>-1&&st.push(Pe[nt])}),st.length>=Pe.length?st:Pe}),L=B(()=>Array.from(e.cachedOptions.values())),A=B(()=>{const Pe=R.value.filter(st=>!st.created).some(st=>st.currentLabel===e.query);return t.filterable&&t.allowCreate&&e.query!==""&&!Pe}),V=va(),G=B(()=>["small"].includes(V.value)?"small":"default"),I=B({get(){return e.visible&&k.value!==!1},set(Pe){e.visible=Pe}});Ge([()=>C.value,()=>V.value,()=>m==null?void 0:m.size],()=>{yt(()=>{$()})}),Ge(()=>t.placeholder,Pe=>{e.cachedPlaceHolder=e.currentPlaceholder=Pe,t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(e.currentPlaceholder="")}),Ge(()=>t.modelValue,(Pe,st)=>{t.multiple&&($(),Pe&&Pe.length>0||o.value&&e.query!==""?e.currentPlaceholder="":e.currentPlaceholder=e.cachedPlaceHolder,t.filterable&&!t.reserveKeyword&&(e.query="",N(e.query))),J(),t.filterable&&!t.multiple&&(e.inputLength=20),!uo(Pe,st)&&t.validateEvent&&(b==null||b.validate("change").catch(Ee=>void 0))},{flush:"post",deep:!0}),Ge(()=>e.visible,Pe=>{var st,Ee,nt,jt,gn;Pe?((Ee=(st=l.value)==null?void 0:st.updatePopper)==null||Ee.call(st),t.filterable&&(e.filteredOptionsCount=e.optionsCount,e.query=t.remote?"":e.selectedLabel,(jt=(nt=s.value)==null?void 0:nt.focus)==null||jt.call(nt),t.multiple?(gn=o.value)==null||gn.focus():e.selectedLabel&&(e.currentPlaceholder=`${e.selectedLabel}`,e.selectedLabel=""),N(e.query),!t.multiple&&!t.remote&&(p.value.query="",N0(p),N0(v)))):(t.filterable&&(Vt(t.filterMethod)&&t.filterMethod(""),Vt(t.remoteMethod)&&t.remoteMethod("")),e.query="",e.previousQuery=null,e.selectedLabel="",e.inputLength=20,e.menuVisibleOnFocus=!1,oe(),yt(()=>{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",Pe)}),Ge(()=>e.options.entries(),()=>{var Pe,st,Ee;if(!Sn)return;(st=(Pe=l.value)==null?void 0:Pe.updatePopper)==null||st.call(Pe),t.multiple&&$();const nt=((Ee=f.value)==null?void 0:Ee.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!ba(t.modelValue)||!Array.from(nt).includes(document.activeElement))&&J(),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&Y()},{flush:"post"}),Ge(()=>e.hoverIndex,Pe=>{Nt(Pe)&&Pe>-1?h.value=R.value[Pe]||{}:h.value={},R.value.forEach(st=>{st.hover=h.value===st})});const $=()=>{yt(()=>{var Pe,st;if(!i.value)return;const Ee=i.value.$el.querySelector("input");y=y||(Ee.clientHeight>0?Ee.clientHeight+2:0);const nt=c.value,jt=fTe(V.value||(m==null?void 0:m.size)),gn=V.value||jt===y||y<=0?jt:y;!(Ee.offsetParent===null)&&(Ee.style.height=`${(e.selected.length===0?gn:Math.max(nt?nt.clientHeight+(nt.clientHeight>gn?6:0):0,gn))-2}px`),e.visible&&k.value!==!1&&((st=(Pe=l.value)==null?void 0:Pe.updatePopper)==null||st.call(Pe))})},N=async Pe=>{if(!(e.previousQuery===Pe||e.isOnComposition)){if(e.previousQuery===null&&(Vt(t.filterMethod)||Vt(t.remoteMethod))){e.previousQuery=Pe;return}e.previousQuery=Pe,yt(()=>{var st,Ee;e.visible&&((Ee=(st=l.value)==null?void 0:st.updatePopper)==null||Ee.call(st))}),e.hoverIndex=-1,t.multiple&&t.filterable&&yt(()=>{if(!C.value){const st=o.value.value.length*15+20;e.inputLength=t.collapseTags?Math.min(50,st):st,P()}$()}),t.remote&&Vt(t.remoteMethod)?(e.hoverIndex=-1,t.remoteMethod(Pe)):Vt(t.filterMethod)?(t.filterMethod(Pe),N0(v)):(e.filteredOptionsCount=e.optionsCount,p.value.query=Pe,N0(p),N0(v)),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&(await yt(),Y())}},P=()=>{e.currentPlaceholder!==""&&(e.currentPlaceholder=o.value.value?"":e.cachedPlaceHolder)},Y=()=>{const Pe=R.value.filter(nt=>nt.visible&&!nt.disabled&&!nt.states.groupDisabled),st=Pe.find(nt=>nt.created),Ee=Pe[0];e.hoverIndex=Te(R.value,st||Ee)},J=()=>{var Pe;if(t.multiple)e.selectedLabel="";else{const Ee=re(t.modelValue);(Pe=Ee.props)!=null&&Pe.created?(e.createdLabel=Ee.props.value,e.createdSelected=!0):e.createdSelected=!1,e.selectedLabel=Ee.currentLabel,e.selected=Ee,t.filterable&&(e.query=e.selectedLabel);return}const st=[];Array.isArray(t.modelValue)&&t.modelValue.forEach(Ee=>{st.push(re(Ee))}),e.selected=st,yt(()=>{$()})},re=Pe=>{let st;const Ee=v_(Pe).toLowerCase()==="object",nt=v_(Pe).toLowerCase()==="null",jt=v_(Pe).toLowerCase()==="undefined";for(let Nr=e.cachedOptions.size-1;Nr>=0;Nr--){const Vr=L.value[Nr];if(Ee?Cr(Vr.value,t.valueKey)===Cr(Pe,t.valueKey):Vr.value===Pe){st={value:Pe,currentLabel:Vr.currentLabel,isDisabled:Vr.isDisabled};break}}if(st)return st;const gn=Ee?Pe.label:!nt&&!jt?Pe:"",Ar={value:Pe,currentLabel:gn};return t.multiple&&(Ar.hitState=!1),Ar},oe=()=>{setTimeout(()=>{const Pe=t.valueKey;t.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(st=>R.value.findIndex(Ee=>Cr(Ee,Pe)===Cr(st,Pe)))):e.hoverIndex=-1:e.hoverIndex=R.value.findIndex(st=>Ie(st)===Ie(e.selected))},300)},ue=()=>{var Pe,st;le(),(st=(Pe=l.value)==null?void 0:Pe.updatePopper)==null||st.call(Pe),t.multiple&&$()},le=()=>{var Pe;e.inputWidth=(Pe=i.value)==null?void 0:Pe.$el.offsetWidth},fe=()=>{t.filterable&&e.query!==e.selectedLabel&&(e.query=e.selectedLabel,N(e.query))},se=Ui(()=>{fe()},E.value),_e=Ui(Pe=>{N(Pe.target.value)},E.value),ve=Pe=>{uo(t.modelValue,Pe)||n.emit(yr,Pe)},he=Pe=>ywe(Pe,st=>!e.disabledOptions.has(st)),q=Pe=>{if(Pe.code!==_t.delete){if(Pe.target.value.length<=0&&!ie()){const st=t.modelValue.slice(),Ee=he(st);if(Ee<0)return;st.splice(Ee,1),n.emit(Qt,st),ve(st)}Pe.target.value.length===1&&t.modelValue.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}},ce=(Pe,st)=>{const Ee=e.selected.indexOf(st);if(Ee>-1&&!C.value){const nt=t.modelValue.slice();nt.splice(Ee,1),n.emit(Qt,nt),ve(nt),n.emit("remove-tag",st.value)}Pe.stopPropagation(),Ye()},Se=Pe=>{Pe.stopPropagation();const st=t.multiple?[]:"";if(!$t(st))for(const Ee of e.selected)Ee.isDisabled&&st.push(Ee.value);n.emit(Qt,st),ve(st),e.hoverIndex=-1,e.visible=!1,n.emit("clear"),Ye()},Ae=Pe=>{var st;if(t.multiple){const Ee=(t.modelValue||[]).slice(),nt=Te(Ee,Pe.value);nt>-1?Ee.splice(nt,1):(t.multipleLimit<=0||Ee.length<t.multipleLimit)&&Ee.push(Pe.value),n.emit(Qt,Ee),ve(Ee),Pe.created&&(e.query="",N(""),e.inputLength=20),t.filterable&&((st=o.value)==null||st.focus())}else n.emit(Qt,Pe.value),ve(Pe.value),e.visible=!1;Oe(),!e.visible&&yt(()=>{He(Pe)})},Te=(Pe=[],st)=>{if(!an(st))return Pe.indexOf(st);const Ee=t.valueKey;let nt=-1;return Pe.some((jt,gn)=>Fn(Cr(jt,Ee))===Cr(st,Ee)?(nt=gn,!0):!1),nt},Oe=()=>{const Pe=o.value||i.value;Pe&&(Pe==null||Pe.focus())},He=Pe=>{var st,Ee,nt,jt,gn;const Ar=Array.isArray(Pe)?Pe[0]:Pe;let Nr=null;if(Ar!=null&&Ar.value){const Vr=R.value.filter(Br=>Br.value===Ar.value);Vr.length>0&&(Nr=Vr[0].$el)}if(l.value&&Nr){const Vr=(jt=(nt=(Ee=(st=l.value)==null?void 0:st.popperRef)==null?void 0:Ee.contentRef)==null?void 0:nt.querySelector)==null?void 0:jt.call(nt,`.${a.be("dropdown","wrap")}`);Vr&&TY(Vr,Nr)}(gn=d.value)==null||gn.handleScroll()},$e=Pe=>{e.optionsCount++,e.filteredOptionsCount++,e.options.set(Pe.value,Pe),e.cachedOptions.set(Pe.value,Pe),Pe.disabled&&e.disabledOptions.set(Pe.value,Pe)},Ne=(Pe,st)=>{e.options.get(Pe)===st&&(e.optionsCount--,e.filteredOptionsCount--,e.options.delete(Pe))},Le=Pe=>{Pe.code!==_t.backspace&&ie(!1),e.inputLength=o.value.value.length*15+20,$()},ie=Pe=>{if(!Array.isArray(e.selected))return;const st=he(e.selected.map(nt=>nt.value)),Ee=e.selected[st];if(Ee)return Pe===!0||Pe===!1?(Ee.hitState=Pe,Pe):(Ee.hitState=!Ee.hitState,Ee.hitState)},Re=Pe=>{const st=Pe.target.value;if(Pe.type==="compositionend")e.isOnComposition=!1,yt(()=>N(st));else{const Ee=st[st.length-1]||"";e.isOnComposition=!aT(Ee)}},We=()=>{yt(()=>He(e.selected))},me=Pe=>{e.focused||((t.automaticDropdown||t.filterable)&&(t.filterable&&!e.visible&&(e.menuVisibleOnFocus=!0),e.visible=!0),e.focused=!0,n.emit("focus",Pe))},Ye=()=>{var Pe,st;e.visible?(Pe=o.value||i.value)==null||Pe.focus():(st=i.value)==null||st.focus()},ht=()=>{var Pe,st,Ee;e.visible=!1,(Pe=i.value)==null||Pe.blur(),(Ee=(st=s.value)==null?void 0:st.blur)==null||Ee.call(st)},Ct=Pe=>{var st,Ee,nt;(st=l.value)!=null&&st.isFocusInsideContent(Pe)||(Ee=u.value)!=null&&Ee.isFocusInsideContent(Pe)||(nt=f.value)!=null&&nt.contains(Pe.relatedTarget)||(e.visible&&it(),e.focused=!1,n.emit("blur",Pe))},Tt=Pe=>{Se(Pe)},it=()=>{e.visible=!1},Me=Pe=>{e.visible&&(Pe.preventDefault(),Pe.stopPropagation(),e.visible=!1)},ge=Pe=>{Pe&&!e.mouseEnter||C.value||(e.menuVisibleOnFocus?e.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(e.visible=!e.visible),Ye())},be=()=>{e.visible?R.value[e.hoverIndex]&&Ae(R.value[e.hoverIndex]):ge()},Ie=Pe=>an(Pe.value)?Cr(Pe.value,t.valueKey):Pe.value,de=B(()=>R.value.filter(Pe=>Pe.visible).every(Pe=>Pe.disabled)),rt=B(()=>t.multiple?e.selected.slice(0,t.maxCollapseTags):[]),Fe=B(()=>t.multiple?e.selected.slice(t.maxCollapseTags):[]),Bt=Pe=>{if(!e.visible){e.visible=!0;return}if(!(e.options.size===0||e.filteredOptionsCount===0)&&!e.isOnComposition&&!de.value){Pe==="next"?(e.hoverIndex++,e.hoverIndex===e.options.size&&(e.hoverIndex=0)):Pe==="prev"&&(e.hoverIndex--,e.hoverIndex<0&&(e.hoverIndex=e.options.size-1));const st=R.value[e.hoverIndex];(st.disabled===!0||st.states.groupDisabled===!0||!st.visible)&&Bt(Pe),yt(()=>He(h.value))}},Yn=()=>{e.mouseEnter=!0},$n=()=>{e.mouseEnter=!1},dr=(Pe,st)=>{var Ee,nt;ce(Pe,st),(nt=(Ee=u.value)==null?void 0:Ee.updatePopper)==null||nt.call(Ee)},_r=B(()=>({maxWidth:`${S(e.inputWidth)-32-(M.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:R,selectSize:V,handleResize:ue,debouncedOnInputChange:se,debouncedQueryChange:_e,deletePrevTag:q,deleteTag:ce,deleteSelected:Se,handleOptionSelect:Ae,scrollToOption:He,readonly:w,resetInputHeight:$,showClose:x,iconComponent:_,iconReverse:T,showNewOption:A,collapseTagSize:G,setSelected:J,managePlaceholder:P,selectDisabled:C,emptyText:k,toggleLastOptionHitState:ie,resetInputState:Le,handleComposition:Re,onOptionCreate:$e,onOptionDestroy:Ne,handleMenuEnter:We,handleFocus:me,focus:Ye,blur:ht,handleBlur:Ct,handleClearClick:Tt,handleClose:it,handleKeydownEscape:Me,toggleMenu:ge,selectOption:be,getValueKey:Ie,navigateOptions:Bt,handleDeleteTooltipTag:dr,dropMenuVisible:I,queryChange:p,groupQueryChange:v,showTagList:rt,collapseTagList:Fe,selectTagsStyle:_r,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:Yn,handleMouseLeave:$n}};var f4e=pe({name:"ElOptions",emits:["update-options"],setup(t,{slots:e,emit:n}){let r=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=e.default)==null?void 0:i.call(e),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,p,v;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!$t(f.children)&&!Array.isArray(f.children)&&Vt((h=f.children)==null?void 0:h.default)?(p=f.children)==null?void 0:p.default():f.children):g==="ElOption"?l.push((v=f.props)==null?void 0:v.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,r)||(r=l,n("update-options",l)),s}}});const D5="ElSelect",d4e=pe({name:D5,componentName:D5,components:{ElInput:vi,ElSelectMenu:l4e,ElOption:JN,ElOptions:f4e,ElTag:i1,ElScrollbar:ec,ElTooltip:Gi,ElIcon:mt},directives:{ClickOutside:xf},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:rT},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:$a.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:sr,default:Bf},fitInputWidth:Boolean,suffixIcon:{type:sr,default:Vf},tagType:{...HN.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:up,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Qt,yr,"remove-tag","clear","visible-change","focus","blur"],setup(t,e){const n=je("select"),r=je("input"),{t:a}=xn(),i=u4e(t),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,setSelected:b,resetInputHeight:w,managePlaceholder:C,showClose:x,selectDisabled:_,iconComponent:T,iconReverse:M,showNewOption:E,emptyText:k,toggleLastOptionHitState:R,resetInputState:L,handleComposition:A,onOptionCreate:V,onOptionDestroy:G,handleMenuEnter:I,handleFocus:$,focus:N,blur:P,handleBlur:Y,handleClearClick:J,handleClose:re,handleKeydownEscape:oe,toggleMenu:ue,selectOption:le,getValueKey:fe,navigateOptions:se,handleDeleteTooltipTag:_e,dropMenuVisible:ve,reference:he,input:q,iOSInput:ce,tooltipRef:Se,tagTooltipRef:Ae,tags:Te,selectWrapper:Oe,scrollbar:He,queryChange:$e,groupQueryChange:Ne,handleMouseEnter:Le,handleMouseLeave:ie,showTagList:Re,collapseTagList:We,selectTagsStyle:me}=c4e(t,i,e),{inputWidth:Ye,selected:ht,inputLength:Ct,filteredOptionsCount:Tt,visible:it,selectedLabel:Me,hoverIndex:ge,query:be,inputHovering:Ie,currentPlaceholder:de,menuVisibleOnFocus:rt,isOnComposition:Fe,options:Bt,cachedOptions:Yn,optionsCount:$n,prefixWidth:dr}=Ra(i),_r=B(()=>{const Br=[n.b()],Xi=S(l);return Xi&&Br.push(n.m(Xi)),t.disabled&&Br.push(n.m("disabled")),Br}),Pe=B(()=>[n.e("tags"),n.is("disabled",S(_))]),st=B(()=>[n.b("tags-wrapper"),{"has-prefix":S(dr)&&S(ht).length}]),Ee=B(()=>[n.e("input"),n.is(S(l)),n.is("disabled",S(_))]),nt=B(()=>[n.e("input"),n.is(S(l)),n.em("input","iOS")]),jt=B(()=>[n.is("empty",!t.allowCreate&&!!S(be)&&S(Tt)===0)]),gn=B(()=>({maxWidth:`${S(Ye)>123?S(Ye)-123:S(Ye)-75}px`})),Ar=B(()=>({marginLeft:`${S(dr)}px`,flexGrow:1,width:`${S(Ct)/(S(Ye)-32)}%`,maxWidth:`${S(Ye)-42}px`}));on(pb,Rn({props:t,options:Bt,optionsArray:s,cachedOptions:Yn,optionsCount:$n,filteredOptionsCount:Tt,hoverIndex:ge,handleOptionSelect:y,onOptionCreate:V,onOptionDestroy:G,selectWrapper:Oe,selected:ht,setSelected:b,queryChange:$e,groupQueryChange:Ne})),Pt(()=>{i.cachedPlaceHolder=de.value=t.placeholder||(()=>a("el.select.placeholder")),t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(de.value=""),yi(Oe,c),t.remote&&t.multiple&&w(),yt(()=>{const Br=he.value&&he.value.$el;if(Br&&(Ye.value=Br.getBoundingClientRect().width,e.slots.prefix)){const Xi=Br.querySelector(`.${r.e("prefix")}`);dr.value=Math.max(Xi.getBoundingClientRect().width+11,30)}}),b()}),t.multiple&&!Array.isArray(t.modelValue)&&e.emit(Qt,[]),!t.multiple&&Array.isArray(t.modelValue)&&e.emit(Qt,"");const Nr=B(()=>{var Br,Xi;return(Xi=(Br=Se.value)==null?void 0:Br.popperRef)==null?void 0:Xi.contentRef});return{isIOS:VK,onOptionsRendered:Br=>{o.value=Br},prefixWidth:dr,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,handleDeleteTooltipTag:_e,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,inputWidth:Ye,selected:ht,inputLength:Ct,filteredOptionsCount:Tt,visible:it,selectedLabel:Me,hoverIndex:ge,query:be,inputHovering:Ie,currentPlaceholder:de,menuVisibleOnFocus:rt,isOnComposition:Fe,options:Bt,resetInputHeight:w,managePlaceholder:C,showClose:x,selectDisabled:_,iconComponent:T,iconReverse:M,showNewOption:E,emptyText:k,toggleLastOptionHitState:R,resetInputState:L,handleComposition:A,handleMenuEnter:I,handleFocus:$,focus:N,blur:P,handleBlur:Y,handleClearClick:J,handleClose:re,handleKeydownEscape:oe,toggleMenu:ue,selectOption:le,getValueKey:fe,navigateOptions:se,dropMenuVisible:ve,reference:he,input:q,iOSInput:ce,tooltipRef:Se,popperPaneRef:Nr,tags:Te,selectWrapper:Oe,scrollbar:He,wrapperKls:_r,tagsKls:Pe,tagWrapperKls:st,inputKls:Ee,iOSInputKls:nt,scrollbarKls:jt,selectTagsStyle:me,nsSelect:n,tagTextStyle:gn,inputStyle:Ar,handleMouseEnter:Le,handleMouseLeave:ie,showTagList:Re,collapseTagList:We,tagTooltipRef:Ae}}}),h4e=["disabled","autocomplete","aria-label"],p4e=["disabled"],v4e={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function g4e(t,e,n,r,a,i){const o=Xe("el-tag"),s=Xe("el-tooltip"),l=Xe("el-icon"),u=Xe("el-input"),c=Xe("el-option"),f=Xe("el-options"),d=Xe("el-scrollbar"),h=Xe("el-select-menu"),p=Fm("click-outside");return Ft((z(),ne("div",{ref:"selectWrapper",class:j(t.wrapperKls),onMouseenter:e[22]||(e[22]=(...v)=>t.handleMouseEnter&&t.handleMouseEnter(...v)),onMouseleave:e[23]||(e[23]=(...v)=>t.handleMouseLeave&&t.handleMouseLeave(...v)),onClick:e[24]||(e[24]=kt((...v)=>t.toggleMenu&&t.toggleMenu(...v),["stop"]))},[H(s,{ref:"tooltipRef",visible:t.dropMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onShow:t.handleMenuEnter},{default:X(()=>[U("div",{class:"select-trigger",onMouseenter:e[20]||(e[20]=v=>t.inputHovering=!0),onMouseleave:e[21]||(e[21]=v=>t.inputHovering=!1)},[t.multiple?(z(),ne("div",{key:0,ref:"tags",tabindex:"-1",class:j(t.tagsKls),style:St(t.selectTagsStyle),onClick:e[15]||(e[15]=(...v)=>t.focus&&t.focus(...v))},[t.collapseTags&&t.selected.length?(z(),xe(Jr,{key:0,onAfterLeave:t.resetInputHeight},{default:X(()=>[U("span",{class:j(t.tagWrapperKls)},[(z(!0),ne(bt,null,ln(t.showTagList,v=>(z(),xe(o,{key:t.getValueKey(v),closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,v)},{default:X(()=>[U("span",{class:j(t.nsSelect.e("tags-text")),style:St(t.tagTextStyle)},Ke(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),t.selected.length>t.maxCollapseTags?(z(),xe(o,{key:0,closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":""},{default:X(()=>[t.collapseTagsTooltip?(z(),xe(s,{key:0,ref:"tagTooltipRef",disabled:t.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:X(()=>[U("span",{class:j(t.nsSelect.e("tags-text"))},"+ "+Ke(t.selected.length-t.maxCollapseTags),3)]),content:X(()=>[U("div",{class:j(t.nsSelect.e("collapse-tags"))},[(z(!0),ne(bt,null,ln(t.collapseTagList,v=>(z(),ne("div",{key:t.getValueKey(v),class:j(t.nsSelect.e("collapse-tag"))},[H(o,{class:"in-tooltip",closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>t.handleDeleteTooltipTag(g,v)},{default:X(()=>[U("span",{class:j(t.nsSelect.e("tags-text")),style:St({maxWidth:t.inputWidth-75+"px"})},Ke(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(z(),ne("span",{key:1,class:j(t.nsSelect.e("tags-text"))},"+ "+Ke(t.selected.length-t.maxCollapseTags),3))]),_:1},8,["size","type"])):we("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):we("v-if",!0),t.collapseTags?we("v-if",!0):(z(),xe(Jr,{key:1,onAfterLeave:t.resetInputHeight},{default:X(()=>[U("span",{class:j(t.tagWrapperKls),style:St(t.prefixWidth&&t.selected.length?{marginLeft:`${t.prefixWidth}px`}:"")},[(z(!0),ne(bt,null,ln(t.selected,v=>(z(),xe(o,{key:t.getValueKey(v),closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,v)},{default:X(()=>[U("span",{class:j(t.nsSelect.e("tags-text")),style:St({maxWidth:t.inputWidth-75+"px"})},Ke(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),t.filterable&&!t.selectDisabled?Ft((z(),ne("input",{key:2,ref:"input","onUpdate:modelValue":e[0]||(e[0]=v=>t.query=v),type:"text",class:j(t.inputKls),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:St(t.inputStyle),"aria-label":t.ariaLabel,onFocus:e[1]||(e[1]=(...v)=>t.handleFocus&&t.handleFocus(...v)),onBlur:e[2]||(e[2]=(...v)=>t.handleBlur&&t.handleBlur(...v)),onKeyup:e[3]||(e[3]=(...v)=>t.managePlaceholder&&t.managePlaceholder(...v)),onKeydown:[e[4]||(e[4]=(...v)=>t.resetInputState&&t.resetInputState(...v)),e[5]||(e[5]=_n(kt(v=>t.navigateOptions("next"),["prevent"]),["down"])),e[6]||(e[6]=_n(kt(v=>t.navigateOptions("prev"),["prevent"]),["up"])),e[7]||(e[7]=_n((...v)=>t.handleKeydownEscape&&t.handleKeydownEscape(...v),["esc"])),e[8]||(e[8]=_n(kt((...v)=>t.selectOption&&t.selectOption(...v),["stop","prevent"]),["enter"])),e[9]||(e[9]=_n((...v)=>t.deletePrevTag&&t.deletePrevTag(...v),["delete"])),e[10]||(e[10]=_n(v=>t.visible=!1,["tab"]))],onCompositionstart:e[11]||(e[11]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onCompositionupdate:e[12]||(e[12]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onCompositionend:e[13]||(e[13]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onInput:e[14]||(e[14]=(...v)=>t.debouncedQueryChange&&t.debouncedQueryChange(...v))},null,46,h4e)),[[U3,t.query]]):we("v-if",!0)],6)):we("v-if",!0),we(" fix: https://github.com/element-plus/element-plus/issues/11415 "),t.isIOS&&!t.multiple&&t.filterable&&t.readonly?(z(),ne("input",{key:1,ref:"iOSInput",class:j(t.iOSInputKls),disabled:t.selectDisabled,type:"text"},null,10,p4e)):we("v-if",!0),H(u,{id:t.id,ref:"reference",modelValue:t.selectedLabel,"onUpdate:modelValue":e[16]||(e[16]=v=>t.selectedLabel=v),type:"text",placeholder:typeof t.currentPlaceholder=="function"?t.currentPlaceholder():t.currentPlaceholder,name:t.name,autocomplete:t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,class:j([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]=_n(kt(v=>t.navigateOptions("next"),["stop","prevent"]),["down"])),e[18]||(e[18]=_n(kt(v=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),_n(kt(t.selectOption,["stop","prevent"]),["enter"]),_n(t.handleKeydownEscape,["esc"]),e[19]||(e[19]=_n(v=>t.visible=!1,["tab"]))]},Iu({suffix:X(()=>[t.iconComponent&&!t.showClose?(z(),xe(l,{key:0,class:j([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:X(()=>[(z(),xe(tn(t.iconComponent)))]),_:1},8,["class"])):we("v-if",!0),t.showClose&&t.clearIcon?(z(),xe(l,{key:1,class:j([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:X(()=>[(z(),xe(tn(t.clearIcon)))]),_:1},8,["class","onClick"])):we("v-if",!0)]),_:2},[t.$slots.prefix?{name:"prefix",fn:X(()=>[U("div",v4e,[ze(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:X(()=>[H(h,null,{default:X(()=>[Ft(H(d,{ref:"scrollbar",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:j(t.scrollbarKls)},{default:X(()=>[t.showNewOption?(z(),xe(c,{key:0,value:t.query,created:!0},null,8,["value"])):we("v-if",!0),H(f,{onUpdateOptions:t.onOptionsRendered},{default:X(()=>[ze(t.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[pn,t.options.size>0&&!t.loading]]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&t.options.size===0)?(z(),ne(bt,{key:0},[t.$slots.empty?ze(t.$slots,"empty",{key:0}):(z(),ne("p",{key:1,class:j(t.nsSelect.be("dropdown","empty"))},Ke(t.emptyText),3))],64)):we("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[p,t.handleClose,t.popperPaneRef]])}var y4e=Je(d4e,[["render",g4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const m4e=pe({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=je("select"),n=W(!0),r=Yt(),a=W([]);on(pZ,Rn({...Ra(t)}));const i=pt(pb);Pt(()=>{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}=Fn(i);return Ge(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:e}}});function b4e(t,e,n,r,a,i){return Ft((z(),ne("ul",{class:j(t.ns.be("group","wrap"))},[U("li",{class:j(t.ns.be("group","title"))},Ke(t.label),3),U("li",null,[U("ul",{class:j(t.ns.b("group"))},[ze(t.$slots,"default")],2)])],2)),[[pn,t.visible]])}var vZ=Je(m4e,[["render",b4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Cf=Zt(y4e,{Option:JN,OptionGroup:vZ}),Kx=Hr(JN),S4e=Hr(vZ),eV=()=>pt(hZ,{}),w4e=et({pageSize:{type:Number,required:!0},pageSizes:{type:De(Array),default:()=>Er([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:tu}}),_4e=pe({name:"ElPaginationSizes"}),x4e=pe({..._4e,props:w4e,emits:["page-size-change"],setup(t,{emit:e}){const n=t,{t:r}=xn(),a=je("pagination"),i=eV(),o=W(n.pageSize);Ge(()=>n.pageSizes,(u,c)=>{if(!uo(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];e("page-size-change",f)}}),Ge(()=>n.pageSize,u=>{o.value=u});const s=B(()=>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)=>(z(),ne("span",{class:j(S(a).e("sizes"))},[H(S(Cf),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:X(()=>[(z(!0),ne(bt,null,ln(S(s),f=>(z(),xe(S(Kx),{key:f,value:f,label:f+S(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var C4e=Je(x4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const T4e=et({size:{type:String,values:tu}}),E4e=["disabled"],M4e=pe({name:"ElPaginationJumper"}),D4e=pe({...M4e,props:T4e,setup(t){const{t:e}=xn(),n=je("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=eV(),s=W(),l=B(()=>{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)=>(z(),ne("span",{class:j(S(n).e("jump")),disabled:S(a)},[U("span",{class:j([S(n).e("goto")])},Ke(S(e)("el.pagination.goto")),3),H(S(vi),{size:f.size,class:j([S(n).e("editor"),S(n).is("in-pagination")]),min:1,max:S(r),disabled:S(a),"model-value":S(l),"validate-event":!1,label:S(e)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),U("span",{class:j([S(n).e("classifier")])},Ke(S(e)("el.pagination.pageClassifier")),3)],10,E4e))}});var k4e=Je(D4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const R4e=et({total:{type:Number,default:1e3}}),L4e=["disabled"],O4e=pe({name:"ElPaginationTotal"}),A4e=pe({...O4e,props:R4e,setup(t){const{t:e}=xn(),n=je("pagination"),{disabled:r}=eV();return(a,i)=>(z(),ne("span",{class:j(S(n).e("total")),disabled:S(r)},Ke(S(e)("el.pagination.total",{total:a.total})),11,L4e))}});var N4e=Je(A4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const V4e=et({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),B4e=["onKeyup"],I4e=["aria-current","aria-label","tabindex"],$4e=["tabindex","aria-label"],P4e=["aria-current","aria-label","tabindex"],F4e=["tabindex","aria-label"],z4e=["aria-current","aria-label","tabindex"],U4e=pe({name:"ElPaginationPager"}),G4e=pe({...U4e,props:V4e,emits:["change"],setup(t,{emit:e}){const n=t,r=je("pager"),a=je("icon"),{t:i}=xn(),o=W(!1),s=W(!1),l=W(!1),u=W(!1),c=W(!1),f=W(!1),d=B(()=>{const w=n.pagerCount,C=(w-1)/2,x=Number(n.currentPage),_=Number(n.pageCount);let T=!1,M=!1;_>w&&(x>w-C&&(T=!0),x<_-C&&(M=!0));const E=[];if(T&&!M){const k=_-(w-2);for(let R=k;R<_;R++)E.push(R)}else if(!T&&M)for(let k=2;k<w;k++)E.push(k);else if(T&&M){const k=Math.floor(w/2)-1;for(let R=x-k;R<=x+k;R++)E.push(R)}else for(let k=2;k<_;k++)E.push(k);return E}),h=B(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),p=B(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),v=B(()=>n.disabled?-1:0);To(()=>{const w=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-w&&(o.value=!0),n.currentPage<n.pageCount-w&&(s.value=!0))});function g(w=!1){n.disabled||(w?l.value=!0:u.value=!0)}function y(w=!1){w?c.value=!0:f.value=!0}function m(w){const C=w.target;if(C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("number")){const x=Number(C.textContent);x!==n.currentPage&&e("change",x)}else C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("more")&&b(w)}function b(w){const C=w.target;if(C.tagName.toLowerCase()==="ul"||n.disabled)return;let x=Number(C.textContent);const _=n.pageCount,T=n.currentPage,M=n.pagerCount-2;C.className.includes("more")&&(C.className.includes("quickprev")?x=T-M:C.className.includes("quicknext")&&(x=T+M)),Number.isNaN(+x)||(x<1&&(x=1),x>_&&(x=_)),x!==T&&e("change",x)}return(w,C)=>(z(),ne("ul",{class:j(S(r).b()),onClick:b,onKeyup:_n(m,["enter"])},[w.pageCount>0?(z(),ne("li",{key:0,class:j([[S(r).is("active",w.currentPage===1),S(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":S(i)("el.pagination.currentPage",{pager:1}),tabindex:S(v)}," 1 ",10,I4e)):we("v-if",!0),o.value?(z(),ne("li",{key:1,class:j(S(h)),tabindex:S(v),"aria-label":S(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:C[0]||(C[0]=x=>g(!0)),onMouseleave:C[1]||(C[1]=x=>l.value=!1),onFocus:C[2]||(C[2]=x=>y(!0)),onBlur:C[3]||(C[3]=x=>c.value=!1)},[(l.value||c.value)&&!w.disabled?(z(),xe(S(ug),{key:0})):(z(),xe(S(mF),{key:1}))],42,$4e)):we("v-if",!0),(z(!0),ne(bt,null,ln(S(d),x=>(z(),ne("li",{key:x,class:j([[S(r).is("active",w.currentPage===x),S(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===x,"aria-label":S(i)("el.pagination.currentPage",{pager:x}),tabindex:S(v)},Ke(x),11,P4e))),128)),s.value?(z(),ne("li",{key:2,class:j(S(p)),tabindex:S(v),"aria-label":S(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:C[4]||(C[4]=x=>g()),onMouseleave:C[5]||(C[5]=x=>u.value=!1),onFocus:C[6]||(C[6]=x=>y()),onBlur:C[7]||(C[7]=x=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(z(),xe(S(cg),{key:0})):(z(),xe(S(mF),{key:1}))],42,F4e)):we("v-if",!0),w.pageCount>1?(z(),ne("li",{key:3,class:j([[S(r).is("active",w.currentPage===w.pageCount),S(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":S(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:S(v)},Ke(w.pageCount),11,z4e)):we("v-if",!0)],42,B4e))}});var H4e=Je(G4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const xi=t=>typeof t!="number",W4e=et({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>Nt(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:De(Array),default:()=>Er([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:sr,default:()=>bf},nextText:{type:String,default:""},nextIcon:{type:sr,default:()=>Bi},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),j4e={"update:current-page":t=>Nt(t),"update:page-size":t=>Nt(t),"size-change":t=>Nt(t),"current-change":t=>Nt(t),"prev-click":t=>Nt(t),"next-click":t=>Nt(t)},k5="ElPagination";var K4e=pe({name:k5,props:W4e,emits:j4e,setup(t,{emit:e,slots:n}){const{t:r}=xn(),a=je("pagination"),i=Yt().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=B(()=>{if(xi(t.total)&&xi(t.pageCount)||!xi(t.currentPage)&&!o)return!1;if(t.layout.includes("sizes")){if(xi(t.pageCount)){if(!xi(t.total)&&!xi(t.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=W(xi(t.defaultPageSize)?10:t.defaultPageSize),c=W(xi(t.defaultCurrentPage)?1:t.defaultCurrentPage),f=B({get(){return xi(t.pageSize)?u.value:t.pageSize},set(b){xi(t.pageSize)&&(u.value=b),s&&(e("update:page-size",b),e("size-change",b))}}),d=B(()=>{let b=0;return xi(t.pageCount)?xi(t.total)||(b=Math.max(1,Math.ceil(t.total/f.value))):b=t.pageCount,b}),h=B({get(){return xi(t.currentPage)?c.value:t.currentPage},set(b){let w=b;b<1?w=1:b>d.value&&(w=d.value),xi(t.currentPage)&&(c.value=w),o&&(e("update:current-page",w),e("current-change",w))}});Ge(d,b=>{h.value>b&&(h.value=b)});function p(b){h.value=b}function v(b){f.value=b;const w=d.value;h.value>w&&(h.value=w)}function g(){t.disabled||(h.value-=1,e("prev-click",h.value))}function y(){t.disabled||(h.value+=1,e("next-click",h.value))}function m(b,w){b&&(b.props||(b.props={}),b.props.class=[b.props.class,w].join(" "))}return on(hZ,{pageCount:d,disabled:B(()=>t.disabled),currentPage:h,changeEvent:p,handleSizeChange:v}),()=>{var b,w;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!t.layout||t.hideOnSinglePage&&d.value<=1)return null;const C=[],x=[],_=xt("div",{class:a.e("rightwrapper")},x),T={prev:xt(X$e,{disabled:t.disabled,currentPage:h.value,prevText:t.prevText,prevIcon:t.prevIcon,onClick:g}),jumper:xt(k4e,{size:t.small?"small":"default"}),pager:xt(H4e,{currentPage:h.value,pageCount:d.value,pagerCount:t.pagerCount,onChange:p,disabled:t.disabled}),next:xt(n4e,{disabled:t.disabled,currentPage:h.value,pageCount:d.value,nextText:t.nextText,nextIcon:t.nextIcon,onClick:y}),sizes:xt(C4e,{pageSize:f.value,pageSizes:t.pageSizes,popperClass:t.popperClass,disabled:t.disabled,teleported:t.teleported,size:t.small?"small":"default"}),slot:(w=(b=n==null?void 0:n.default)==null?void 0:b.call(n))!=null?w:null,total:xt(N4e,{total:xi(t.total)?0:t.total})},M=t.layout.split(",").map(k=>k.trim());let E=!1;return M.forEach(k=>{if(k==="->"){E=!0;return}E?x.push(T[k]):C.push(T[k])}),m(C[0],a.is("first")),m(C[C.length-1],a.is("last")),E&&x.length>0&&(m(x[0],a.is("first")),m(x[x.length-1],a.is("last")),C.push(_)),xt("div",{class:[a.b(),a.is("background",t.background),{[a.m("small")]:t.small}]},C)}}});const Y4e=Zt(K4e),q4e=et({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:fL,default:"primary"},cancelButtonType:{type:String,values:fL,default:"text"},icon:{type:sr,default:()=>F2e},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:$a.teleported,persistent:$a.persistent,width:{type:[String,Number],default:150}}),X4e={confirm:t=>t instanceof MouseEvent,cancel:t=>t instanceof MouseEvent},Z4e=pe({name:"ElPopconfirm"}),Q4e=pe({...Z4e,props:q4e,emits:X4e,setup(t,{emit:e}){const n=t,{t:r}=xn(),a=je("popconfirm"),i=W(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=B(()=>({width:qr(n.width)})),l=d=>{e("confirm",d),o()},u=d=>{e("cancel",d),o()},c=B(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=B(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(z(),xe(S(Gi),en({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${S(a).namespace.value}-popover`,"popper-style":S(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:X(()=>[U("div",{class:j(S(a).b())},[U("div",{class:j(S(a).e("main"))},[!d.hideIcon&&d.icon?(z(),xe(S(mt),{key:0,class:j(S(a).e("icon")),style:St({color:d.iconColor})},{default:X(()=>[(z(),xe(tn(d.icon)))]),_:1},8,["class","style"])):we("v-if",!0),lt(" "+Ke(d.title),1)],2),U("div",{class:j(S(a).e("action"))},[H(S(Lt),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:X(()=>[lt(Ke(S(f)),1)]),_:1},8,["type","text"]),H(S(Lt),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:X(()=>[lt(Ke(S(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:X(()=>[d.$slots.reference?ze(d.$slots,"reference",{key:0}):we("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var J4e=Je(Q4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ePe=Zt(J4e),tPe=et({trigger:a1.trigger,placement:P_.placement,disabled:a1.disabled,visible:$a.visible,transition:$a.transition,popperOptions:P_.popperOptions,tabindex:P_.tabindex,content:$a.content,popperStyle:$a.popperStyle,popperClass:$a.popperClass,enterable:{...$a.enterable,default:!0},effect:{...$a.effect,default:"light"},teleported:$a.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}}),nPe={"update:visible":t=>da(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},rPe="onUpdate:visible",aPe=pe({name:"ElPopover"}),iPe=pe({...aPe,props:tPe,emits:nPe,setup(t,{expose:e,emit:n}){const r=t,a=B(()=>r[rPe]),i=je("popover"),o=W(),s=B(()=>{var g;return(g=S(o))==null?void 0:g.popperRef}),l=B(()=>[{width:qr(r.width)},r.popperStyle]),u=B(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=B(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},p=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:s,hide:f}),(g,y)=>(z(),xe(S(Gi),en({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":S(u),"popper-style":S(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":S(c),"onUpdate:visible":S(a),onBeforeShow:d,onBeforeHide:h,onShow:p,onHide:v}),{content:X(()=>[g.title?(z(),ne("div",{key:0,class:j(S(i).e("title")),role:"title"},Ke(g.title),3)):we("v-if",!0),ze(g.$slots,"default",{},()=>[lt(Ke(g.content),1)])]),default:X(()=>[g.$slots.reference?ze(g.$slots,"reference",{key:0}):we("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 oPe=Je(iPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const R5=(t,e)=>{const n=e.arg||e.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=t)};var sPe={mounted(t,e){R5(t,e)},updated(t,e){R5(t,e)}};const lPe="popover",gZ=lTe(sPe,lPe),uPe=Zt(oPe,{directive:gZ}),cPe=et({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:De(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:De([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:De(Function),default:t=>`${t}%`}}),fPe=["aria-valuenow"],dPe={viewBox:"0 0 100 100"},hPe=["d","stroke","stroke-linecap","stroke-width"],pPe=["d","stroke","opacity","stroke-linecap","stroke-width"],vPe={key:0},gPe=pe({name:"ElProgress"}),yPe=pe({...gPe,props:cPe,setup(t){const e=t,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=je("progress"),a=B(()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:m(e.percentage)})),i=B(()=>(e.strokeWidth/e.width*100).toFixed(1)),o=B(()=>["circle","dashboard"].includes(e.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=B(()=>{const b=o.value,w=e.type==="dashboard";return`
  56. M 50 50
  57. m 0 ${w?"":"-"}${b}
  58. a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
  59. a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
  60. `}),l=B(()=>2*Math.PI*o.value),u=B(()=>e.type==="dashboard"?.75:1),c=B(()=>`${-1*l.value*(1-u.value)/2}px`),f=B(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=B(()=>({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=B(()=>{let b;return e.color?b=m(e.percentage):b=n[e.status]||n.default,b}),p=B(()=>e.status==="warning"?tT:e.type==="line"?e.status==="success"?pN:Bf:e.status==="success"?ub:Qs),v=B(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),g=B(()=>e.format(e.percentage));function y(b){const w=100/b.length;return b.map((x,_)=>$t(x)?{color:x,percentage:(_+1)*w}:x).sort((x,_)=>x.percentage-_.percentage)}const m=b=>{var w;const{color:C}=e;if(Vt(C))return C(b);if($t(C))return C;{const x=y(C);for(const _ of x)if(_.percentage>b)return _.color;return(w=x[x.length-1])==null?void 0:w.color}};return(b,w)=>(z(),ne("div",{class:j([S(r).b(),S(r).m(b.type),S(r).is(b.status),{[S(r).m("without-text")]:!b.showText,[S(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(z(),ne("div",{key:0,class:j(S(r).b("bar"))},[U("div",{class:j(S(r).be("bar","outer")),style:St({height:`${b.strokeWidth}px`})},[U("div",{class:j([S(r).be("bar","inner"),{[S(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[S(r).bem("bar","inner","striped")]:b.striped},{[S(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:St(S(a))},[(b.showText||b.$slots.default)&&b.textInside?(z(),ne("div",{key:0,class:j(S(r).be("bar","innerText"))},[ze(b.$slots,"default",{percentage:b.percentage},()=>[U("span",null,Ke(S(g)),1)])],2)):we("v-if",!0)],6)],6)],2)):(z(),ne("div",{key:1,class:j(S(r).b("circle")),style:St({height:`${b.width}px`,width:`${b.width}px`})},[(z(),ne("svg",dPe,[U("path",{class:j(S(r).be("circle","track")),d:S(s),stroke:`var(${S(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":S(i),fill:"none",style:St(S(f))},null,14,hPe),U("path",{class:j(S(r).be("circle","path")),d:S(s),stroke:S(h),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":S(i),style:St(S(d))},null,14,pPe)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(z(),ne("div",{key:2,class:j(S(r).e("text")),style:St({fontSize:`${S(v)}px`})},[ze(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(z(),xe(S(mt),{key:1},{default:X(()=>[(z(),xe(tn(S(p))))]),_:1})):(z(),ne("span",vPe,Ke(S(g)),1))])],6)):we("v-if",!0)],10,fPe))}});var mPe=Je(yPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const yZ=Zt(mPe),bPe=et({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:De([Array,Object]),default:()=>Er(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:De([Array,Object]),default:()=>[SS,SS,SS]},voidIcon:{type:sr,default:()=>ACe},disabledVoidIcon:{type:sr,default:()=>SS},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:De(Array),default:()=>Er(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ai,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),SPe={[yr]:t=>Nt(t),[Qt]:t=>Nt(t)},wPe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_Pe=["onMousemove","onClick"],xPe=pe({name:"ElRate"}),CPe=pe({...xPe,props:bPe,emits:SPe,setup(t,{expose:e,emit:n}){const r=t;function a(G,I){const $=Y=>an(Y),N=Object.keys(I).map(Y=>+Y).filter(Y=>{const J=I[Y];return($(J)?J.excluded:!1)?G<Y:G<=Y}).sort((Y,J)=>Y-J),P=I[N[0]];return $(P)&&P.value||P}const i=pt(cp,void 0),o=pt(ql,void 0),s=va(),l=je("rate"),{inputId:u,isLabeledByFormItem:c}=Ff(r,{formItemContext:o}),f=W(r.modelValue),d=W(-1),h=W(!0),p=B(()=>[l.b(),l.m(s.value)]),v=B(()=>r.disabled||(i==null?void 0:i.disabled)),g=B(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),y=B(()=>{let G="";return r.showScore?G=r.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${r.modelValue}`:`${f.value}`):r.showText&&(G=r.texts[Math.ceil(f.value)-1]),G}),m=B(()=>r.modelValue*100-Math.floor(r.modelValue)*100),b=B(()=>dt(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=B(()=>{const G=a(f.value,b.value);return an(G)?"":G}),C=B(()=>{let G="";return v.value?G=`${m.value}%`:r.allowHalf&&(G="50%"),{color:w.value,width:G}}),x=B(()=>{let G=dt(r.icons)?[...r.icons]:{...r.icons};return G=af(G),dt(G)?{[r.lowThreshold]:G[0],[r.highThreshold]:{value:G[1],excluded:!0},[r.max]:G[2]}:G}),_=B(()=>a(r.modelValue,x.value)),T=B(()=>v.value?$t(r.disabledVoidIcon)?r.disabledVoidIcon:af(r.disabledVoidIcon):$t(r.voidIcon)?r.voidIcon:af(r.voidIcon)),M=B(()=>a(f.value,x.value));function E(G){const I=v.value&&m.value>0&&G-1<r.modelValue&&G>r.modelValue,$=r.allowHalf&&h.value&&G-.5<=f.value&&G>f.value;return I||$}function k(G){r.clearable&&G===r.modelValue&&(G=0),n(Qt,G),r.modelValue!==G&&n("change",G)}function R(G){v.value||(r.allowHalf&&h.value?k(f.value):k(G))}function L(G){if(v.value)return;let I=f.value;const $=G.code;return $===_t.up||$===_t.right?(r.allowHalf?I+=.5:I+=1,G.stopPropagation(),G.preventDefault()):($===_t.left||$===_t.down)&&(r.allowHalf?I-=.5:I-=1,G.stopPropagation(),G.preventDefault()),I=I<0?0:I,I=I>r.max?r.max:I,n(Qt,I),n("change",I),I}function A(G,I){if(!v.value){if(r.allowHalf&&I){let $=I.target;Ks($,l.e("item"))&&($=$.querySelector(`.${l.e("icon")}`)),($.clientWidth===0||Ks($,l.e("decimal")))&&($=$.parentNode),h.value=I.offsetX*2<=$.clientWidth,f.value=h.value?G-.5:G}else f.value=G;d.value=G}}function V(){v.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return Ge(()=>r.modelValue,G=>{f.value=G,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Qt,0),e({setCurrentValue:A,resetCurrentValue:V}),(G,I)=>{var $;return z(),ne("div",{id:S(u),class:j([S(p),S(l).is("disabled",S(v))]),role:"slider","aria-label":S(c)?void 0:G.label||"rating","aria-labelledby":S(c)?($=S(o))==null?void 0:$.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":S(y)||void 0,"aria-valuemin":"0","aria-valuemax":G.max,tabindex:"0",style:St(S(g)),onKeydown:L},[(z(!0),ne(bt,null,ln(G.max,(N,P)=>(z(),ne("span",{key:P,class:j(S(l).e("item")),onMousemove:Y=>A(N,Y),onMouseleave:V,onClick:Y=>R(N)},[H(S(mt),{class:j([S(l).e("icon"),{hover:d.value===N},S(l).is("active",N<=f.value)])},{default:X(()=>[E(N)?we("v-if",!0):(z(),ne(bt,{key:0},[Ft((z(),xe(tn(S(M)),null,null,512)),[[pn,N<=f.value]]),Ft((z(),xe(tn(S(T)),null,null,512)),[[pn,!(N<=f.value)]])],64)),E(N)?(z(),xe(S(mt),{key:1,style:St(S(C)),class:j([S(l).e("icon"),S(l).e("decimal")])},{default:X(()=>[(z(),xe(tn(S(_))))]),_:1},8,["style","class"])):we("v-if",!0)]),_:2},1032,["class"])],42,_Pe))),128)),G.showText||G.showScore?(z(),ne("span",{key:0,class:j(S(l).e("text")),style:St({color:G.textColor})},Ke(S(y)),7)):we("v-if",!0)],46,wPe)}}});var TPe=Je(CPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const EPe=Zt(TPe),wv={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},L5={[wv.success]:z_e,[wv.warning]:tT,[wv.error]:vN,[wv.info]:gN},MPe=et({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),DPe=pe({name:"ElResult"}),kPe=pe({...DPe,props:MPe,setup(t){const e=t,n=je("result"),r=B(()=>{const a=e.icon,i=a&&wv[a]?wv[a]:"icon-info",o=L5[i]||L5["icon-info"];return{class:i,component:o}});return(a,i)=>(z(),ne("div",{class:j(S(n).b())},[U("div",{class:j(S(n).e("icon"))},[ze(a.$slots,"icon",{},()=>[S(r).component?(z(),xe(tn(S(r).component),{key:0,class:j(S(r).class)},null,8,["class"])):we("v-if",!0)])],2),a.title||a.$slots.title?(z(),ne("div",{key:0,class:j(S(n).e("title"))},[ze(a.$slots,"title",{},()=>[U("p",null,Ke(a.title),1)])],2)):we("v-if",!0),a.subTitle||a.$slots["sub-title"]?(z(),ne("div",{key:1,class:j(S(n).e("subtitle"))},[ze(a.$slots,"sub-title",{},()=>[U("p",null,Ke(a.subTitle),1)])],2)):we("v-if",!0),a.$slots.extra?(z(),ne("div",{key:2,class:j(S(n).e("extra"))},[ze(a.$slots,"extra")],2)):we("v-if",!0)],2))}});var RPe=Je(kPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const LPe=Zt(RPe);var O5=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function OPe(t,e){return!!(t===e||O5(t)&&O5(e))}function APe(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!OPe(t[n],e[n]))return!1;return!0}function NPe(t,e){e===void 0&&(e=APe);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 mZ=()=>{const e=Yt().proxy.$props;return B(()=>{const n=(r,a,i)=>({});return e.perfMode?ZC(n):NPe(n)})},OL=50,Yx="itemRendered",qx="scroll",_v="forward",Xx="backward",Zo="auto",yT="smart",s1="start",Nl="center",l1="end",mg="horizontal",tV="vertical",VPe="ltr",Fv="rtl",u1="negative",nV="positive-ascending",rV="positive-descending",BPe={[mg]:"left",[tV]:"top"},IPe=20,$Pe={[mg]:"deltaX",[tV]:"deltaY"},PPe=({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=>{iT(a);const u=l[$Pe[n.value]];o(i)&&o(i+u)||(i+=u,$K()||l.preventDefault(),a=fg(()=>{r(i),i=0}))}}},AL=il({type:De([Number,Function]),required:!0}),NL=il({type:Number}),VL=il({type:Number,default:2}),FPe=il({type:String,values:["ltr","rtl"],default:"ltr"}),BL=il({type:Number,default:0}),Zx=il({type:Number,required:!0}),bZ=il({type:String,values:["horizontal","vertical"],default:tV}),SZ=et({className:{type:String,default:""},containerElement:{type:De([String,Object]),default:"div"},data:{type:De(Array),default:()=>Er([])},direction:FPe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:De([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),wZ=et({cache:VL,estimatedItemSize:NL,layout:bZ,initScrollOffset:BL,total:Zx,itemSize:AL,...SZ}),IL={type:Number,default:6},_Z={type:Number,default:0},xZ={type:Number,default:2},Dh=et({columnCache:VL,columnWidth:AL,estimatedColumnWidth:NL,estimatedRowHeight:NL,initScrollLeft:BL,initScrollTop:BL,itemKey:{type:De(Function),default:({columnIndex:t,rowIndex:e})=>`${e}:${t}`},rowCache:VL,rowHeight:AL,totalColumn:Zx,totalRow:Zx,hScrollbarSize:IL,vScrollbarSize:IL,scrollbarStartGap:_Z,scrollbarEndGap:xZ,role:String,...SZ}),CZ=et({alwaysOn:Boolean,class:String,layout:bZ,total:Zx,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:IL,startGap:_Z,endGap:xZ,visible:Boolean}),fh=(t,e)=>t<e?_v:Xx,c1=t=>t===VPe||t===Fv||t===mg,A5=t=>t===Fv;let Rp=null;function Qx(t=!1){if(Rp===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?Rp=rV:(e.scrollLeft=1,e.scrollLeft===0?Rp=u1:Rp=nV),document.body.removeChild(e),Rp}return Rp}function zPe({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 $L=pe({name:"ElVirtualScrollBar",props:CZ,emits:["scroll","start-move","stop-move"],setup(t,{emit:e}){const n=B(()=>t.startGap+t.endGap),r=je("virtual-scrollbar"),a=je("scrollbar"),i=W(),o=W();let s=null,l=null;const u=Rn({isDragging:!1,traveled:0}),c=B(()=>_q[t.layout]),f=B(()=>t.clientSize-S(n)),d=B(()=>({position:"absolute",width:`${mg===t.layout?f.value:t.scrollbarSize}px`,height:`${mg===t.layout?t.scrollbarSize:f.value}px`,[BPe[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=B(()=>{const x=t.ratio,_=t.clientSize;if(x>=100)return Number.POSITIVE_INFINITY;if(x>=50)return x*_/100;const T=_/3;return Math.floor(Math.min(Math.max(x*_,IPe),T))}),p=B(()=>{if(!Number.isFinite(h.value))return{display:"none"};const x=`${h.value}px`;return zPe({bar:c.value,size:x,move:u.traveled},t.layout)}),v=B(()=>Math.floor(t.clientSize-h.value-S(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",b);const x=S(o);x&&(l=document.onselectstart,document.onselectstart=()=>!1,x.addEventListener("touchmove",w),x.addEventListener("touchend",b))},y=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const x=S(o);x&&(x.removeEventListener("touchmove",w),x.removeEventListener("touchend",b))},m=x=>{x.stopImmediatePropagation(),!(x.ctrlKey||[1,2].includes(x.button))&&(u.isDragging=!0,u[c.value.axis]=x.currentTarget[c.value.offset]-(x[c.value.client]-x.currentTarget.getBoundingClientRect()[c.value.direction]),e("start-move"),g())},b=()=>{u.isDragging=!1,u[c.value.axis]=0,e("stop-move"),y()},w=x=>{const{isDragging:_}=u;if(!_||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;iT(s);const M=(i.value.getBoundingClientRect()[c.value.direction]-x[c.value.client])*-1,E=o.value[c.value.offset]-T,k=M-E;s=fg(()=>{u.traveled=Math.max(t.startGap,Math.min(k,v.value)),e("scroll",k,v.value)})},C=x=>{const _=Math.abs(x.target.getBoundingClientRect()[c.value.direction]-x[c.value.client]),T=o.value[c.value.offset]/2,M=_-T;u.traveled=Math.max(0,Math.min(M,v.value)),e("scroll",M,v.value)};return Ge(()=>t.scrollFrom,x=>{u.isDragging||(u.traveled=Math.ceil(x*v.value))}),fr(()=>{y()}),()=>xt("div",{role:"presentation",ref:i,class:[r.b(),t.class,(t.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:kt(C,["stop","prevent"]),onTouchstartPrevent:m},xt("div",{ref:o,class:a.e("thumb"),style:p.value,onMousedown:m},[]))}}),TZ=({name:t,getOffset:e,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>pe({name:t??"ElVirtualList",props:wZ,emits:[Yx,qx],setup(c,{emit:f,expose:d}){u(c);const h=Yt(),p=je("vl"),v=W(s(c,h)),g=mZ(),y=W(),m=W(),b=W(),w=W({isScrolling:!1,scrollDir:"forward",scrollOffset:Nt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),C=B(()=>{const{total:re,cache:oe}=c,{isScrolling:ue,scrollDir:le,scrollOffset:fe}=S(w);if(re===0)return[0,0,0,0];const se=i(c,fe,S(v)),_e=o(c,se,fe,S(v)),ve=!ue||le===Xx?Math.max(1,oe):1,he=!ue||le===_v?Math.max(1,oe):1;return[Math.max(0,se-ve),Math.max(0,Math.min(re-1,_e+he)),se,_e]}),x=B(()=>a(c,S(v))),_=B(()=>c1(c.layout)),T=B(()=>[{position:"relative",[`overflow-${_.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:Nt(c.height)?`${c.height}px`:c.height,width:Nt(c.width)?`${c.width}px`:c.width},c.style]),M=B(()=>{const re=S(x),oe=S(_);return{height:oe?"100%":`${re}px`,pointerEvents:S(w).isScrolling?"none":void 0,width:oe?`${re}px`:"100%"}}),E=B(()=>_.value?c.width:c.height),{onWheel:k}=PPe({atStartEdge:B(()=>w.value.scrollOffset<=0),atEndEdge:B(()=>w.value.scrollOffset>=x.value),layout:B(()=>c.layout)},re=>{var oe,ue;(ue=(oe=b.value).onMouseUp)==null||ue.call(oe),I(Math.min(w.value.scrollOffset+re,x.value-E.value))}),R=()=>{const{total:re}=c;if(re>0){const[fe,se,_e,ve]=S(C);f(Yx,fe,se,_e,ve)}const{scrollDir:oe,scrollOffset:ue,updateRequested:le}=S(w);f(qx,oe,ue,le)},L=re=>{const{clientHeight:oe,scrollHeight:ue,scrollTop:le}=re.currentTarget,fe=S(w);if(fe.scrollOffset===le)return;const se=Math.max(0,Math.min(le,ue-oe));w.value={...fe,isScrolling:!0,scrollDir:fh(fe.scrollOffset,se),scrollOffset:se,updateRequested:!1},yt(P)},A=re=>{const{clientWidth:oe,scrollLeft:ue,scrollWidth:le}=re.currentTarget,fe=S(w);if(fe.scrollOffset===ue)return;const{direction:se}=c;let _e=ue;if(se===Fv)switch(Qx()){case u1:{_e=-ue;break}case rV:{_e=le-oe-ue;break}}_e=Math.max(0,Math.min(_e,le-oe)),w.value={...fe,isScrolling:!0,scrollDir:fh(fe.scrollOffset,_e),scrollOffset:_e,updateRequested:!1},yt(P)},V=re=>{S(_)?A(re):L(re),R()},G=(re,oe)=>{const ue=(x.value-E.value)/oe*re;I(Math.min(x.value-E.value,ue))},I=re=>{re=Math.max(re,0),re!==S(w).scrollOffset&&(w.value={...S(w),scrollOffset:re,scrollDir:fh(S(w).scrollOffset,re),updateRequested:!0},yt(P))},$=(re,oe=Zo)=>{const{scrollOffset:ue}=S(w);re=Math.max(0,Math.min(re,c.total-1)),I(e(c,re,oe,ue,S(v)))},N=re=>{const{direction:oe,itemSize:ue,layout:le}=c,fe=g.value(l&&ue,l&&le,l&&oe);let se;if(yn(fe,String(re)))se=fe[re];else{const _e=r(c,re,S(v)),ve=n(c,re,S(v)),he=S(_),q=oe===Fv,ce=he?_e:0;fe[re]=se={position:"absolute",left:q?void 0:`${ce}px`,right:q?`${ce}px`:void 0,top:he?0:`${_e}px`,height:he?"100%":`${ve}px`,width:he?`${ve}px`:"100%"}}return se},P=()=>{w.value.isScrolling=!1,yt(()=>{g.value(-1,null,null)})},Y=()=>{const re=y.value;re&&(re.scrollTop=0)};Pt(()=>{if(!Sn)return;const{initScrollOffset:re}=c,oe=S(y);Nt(re)&&oe&&(S(_)?oe.scrollLeft=re:oe.scrollTop=re),R()}),Xu(()=>{const{direction:re,layout:oe}=c,{scrollOffset:ue,updateRequested:le}=S(w),fe=S(y);if(le&&fe)if(oe===mg)if(re===Fv)switch(Qx()){case u1:{fe.scrollLeft=-ue;break}case nV:{fe.scrollLeft=ue;break}default:{const{clientWidth:se,scrollWidth:_e}=fe;fe.scrollLeft=_e-se-ue;break}}else fe.scrollLeft=ue;else fe.scrollTop=ue});const J={ns:p,clientSize:E,estimatedTotalSize:x,windowStyle:T,windowRef:y,innerRef:m,innerStyle:M,itemsToRender:C,scrollbarRef:b,states:w,getItemStyle:N,onScroll:V,onScrollbarScroll:G,onWheel:k,scrollTo:I,scrollToItem:$,resetScrollTop:Y};return d({windowRef:y,innerRef:m,getItemStyleCache:g,scrollTo:I,scrollToItem:$,resetScrollTop:Y,states:w}),J},render(c){var f;const{$slots:d,className:h,clientSize:p,containerElement:v,data:g,getItemStyle:y,innerElement:m,itemsToRender:b,innerStyle:w,layout:C,total:x,onScroll:_,onScrollbarScroll:T,onWheel:M,states:E,useIsScrolling:k,windowStyle:R,ns:L}=c,[A,V]=b,G=tn(v),I=tn(m),$=[];if(x>0)for(let J=A;J<=V;J++)$.push((f=d.default)==null?void 0:f.call(d,{data:g,key:J,index:J,isScrolling:k?E.isScrolling:void 0,style:y(J)}));const N=[xt(I,{style:w,ref:"innerRef"},$t(I)?$:{default:()=>$})],P=xt($L,{ref:"scrollbarRef",clientSize:p,layout:C,onScroll:T,ratio:p*100/this.estimatedTotalSize,scrollFrom:E.scrollOffset/(this.estimatedTotalSize-p),total:x}),Y=xt(G,{class:[L.e("window"),h],style:R,onScroll:_,onWheel:M,ref:"windowRef",key:0},$t(G)?[N]:{default:()=>[N]});return xt("div",{key:0,class:[L.e("wrapper"),E.scrollbarAlwaysOn?"always-on":""]},[Y,P])}}),EZ=TZ({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=c1(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===yT&&(s>=f-l&&s<=c+l?o=Zo:o=Nl),o){case s1:return c;case l1:return f;case Nl:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Zo: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=c1(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(){}}),xv=(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]},UPe=(t,e,n)=>{const{items:r,lastVisitedIndex:a}=e;return(a>0?r[a].offset:0)>=n?MZ(t,e,0,a,n):GPe(t,e,Math.max(0,a),n)},MZ=(t,e,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=xv(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)},GPe=(t,e,n,r)=>{const{total:a}=t;let i=1;for(;n<a&&xv(t,n,e).offset<r;)n+=i,i*=2;return MZ(t,e,Math.floor(n/2),Math.min(n,a-1),r)},N5=({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},HPe=TZ({name:"ElDynamicSizeList",getItemOffset:(t,e,n)=>xv(t,e,n).offset,getItemSize:(t,e,{items:n})=>n[e].size,getEstimatedTotalSize:N5,getOffset:(t,e,n,r,a)=>{const{height:i,layout:o,width:s}=t,l=c1(o)?s:i,u=xv(t,e,a),c=N5(t,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===yT&&(r>=d-l&&r<=f+l?n=Zo:n=Nl),n){case s1:return f;case l1:return d;case Nl:return Math.round(d+(f-d)/2);case Zo:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(t,e,n)=>UPe(t,n,e),getStopIndexForStartIndex:(t,e,n,r)=>{const{height:a,total:i,layout:o,width:s}=t,l=c1(o)?s:a,u=xv(t,e,r),c=n+l;let f=u.offset+u.size,d=e;for(;d<i-1&&f<c;)d++,f+=xv(t,d,r).size;return d},initCache({estimatedItemSize:t=OL},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})=>{}}),WPe=({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=>{iT(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=fg(()=>{a(o,s),o=0,s=0}))}}},DZ=({name:t,clearCache:e,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:p})=>pe({name:t??"ElVirtualList",props:Dh,emits:[Yx,qx],setup(v,{emit:g,expose:y,slots:m}){const b=je("vl");p(v);const w=Yt(),C=W(d(v,w));h==null||h(w,C);const x=W(),_=W(),T=W(),M=W(null),E=W({isScrolling:!1,scrollLeft:Nt(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:Nt(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:_v,yAxisScrollDir:_v}),k=mZ(),R=B(()=>Number.parseInt(`${v.height}`,10)),L=B(()=>Number.parseInt(`${v.width}`,10)),A=B(()=>{const{totalColumn:Oe,totalRow:He,columnCache:$e}=v,{isScrolling:Ne,xAxisScrollDir:Le,scrollLeft:ie}=S(E);if(Oe===0||He===0)return[0,0,0,0];const Re=r(v,ie,S(C)),We=a(v,Re,ie,S(C)),me=!Ne||Le===Xx?Math.max(1,$e):1,Ye=!Ne||Le===_v?Math.max(1,$e):1;return[Math.max(0,Re-me),Math.max(0,Math.min(Oe-1,We+Ye)),Re,We]}),V=B(()=>{const{totalColumn:Oe,totalRow:He,rowCache:$e}=v,{isScrolling:Ne,yAxisScrollDir:Le,scrollTop:ie}=S(E);if(Oe===0||He===0)return[0,0,0,0];const Re=c(v,ie,S(C)),We=f(v,Re,ie,S(C)),me=!Ne||Le===Xx?Math.max(1,$e):1,Ye=!Ne||Le===_v?Math.max(1,$e):1;return[Math.max(0,Re-me),Math.max(0,Math.min(He-1,We+Ye)),Re,We]}),G=B(()=>i(v,S(C))),I=B(()=>o(v,S(C))),$=B(()=>{var Oe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:Nt(v.height)?`${v.height}px`:v.height,width:Nt(v.width)?`${v.width}px`:v.width},(Oe=v.style)!=null?Oe:{}]}),N=B(()=>{const Oe=`${S(I)}px`;return{height:`${S(G)}px`,pointerEvents:S(E).isScrolling?"none":void 0,width:Oe}}),P=()=>{const{totalColumn:Oe,totalRow:He}=v;if(Oe>0&&He>0){const[We,me,Ye,ht]=S(A),[Ct,Tt,it,Me]=S(V);g(Yx,{columnCacheStart:We,columnCacheEnd:me,rowCacheStart:Ct,rowCacheEnd:Tt,columnVisibleStart:Ye,columnVisibleEnd:ht,rowVisibleStart:it,rowVisibleEnd:Me})}const{scrollLeft:$e,scrollTop:Ne,updateRequested:Le,xAxisScrollDir:ie,yAxisScrollDir:Re}=S(E);g(qx,{xAxisScrollDir:ie,scrollLeft:$e,yAxisScrollDir:Re,scrollTop:Ne,updateRequested:Le})},Y=Oe=>{const{clientHeight:He,clientWidth:$e,scrollHeight:Ne,scrollLeft:Le,scrollTop:ie,scrollWidth:Re}=Oe.currentTarget,We=S(E);if(We.scrollTop===ie&&We.scrollLeft===Le)return;let me=Le;if(A5(v.direction))switch(Qx()){case u1:me=-Le;break;case rV:me=Re-$e-Le;break}E.value={...We,isScrolling:!0,scrollLeft:me,scrollTop:Math.max(0,Math.min(ie,Ne-He)),updateRequested:!0,xAxisScrollDir:fh(We.scrollLeft,me),yAxisScrollDir:fh(We.scrollTop,ie)},yt(()=>se()),_e(),P()},J=(Oe,He)=>{const $e=S(R),Ne=(G.value-$e)/He*Oe;ue({scrollTop:Math.min(G.value-$e,Ne)})},re=(Oe,He)=>{const $e=S(L),Ne=(I.value-$e)/He*Oe;ue({scrollLeft:Math.min(I.value-$e,Ne)})},{onWheel:oe}=WPe({atXStartEdge:B(()=>E.value.scrollLeft<=0),atXEndEdge:B(()=>E.value.scrollLeft>=I.value-S(L)),atYStartEdge:B(()=>E.value.scrollTop<=0),atYEndEdge:B(()=>E.value.scrollTop>=G.value-S(R))},(Oe,He)=>{var $e,Ne,Le,ie;(Ne=($e=_.value)==null?void 0:$e.onMouseUp)==null||Ne.call($e),(ie=(Le=T.value)==null?void 0:Le.onMouseUp)==null||ie.call(Le);const Re=S(L),We=S(R);ue({scrollLeft:Math.min(E.value.scrollLeft+Oe,I.value-Re),scrollTop:Math.min(E.value.scrollTop+He,G.value-We)})}),ue=({scrollLeft:Oe=E.value.scrollLeft,scrollTop:He=E.value.scrollTop})=>{Oe=Math.max(Oe,0),He=Math.max(He,0);const $e=S(E);He===$e.scrollTop&&Oe===$e.scrollLeft||(E.value={...$e,xAxisScrollDir:fh($e.scrollLeft,Oe),yAxisScrollDir:fh($e.scrollTop,He),scrollLeft:Oe,scrollTop:He,updateRequested:!0},yt(()=>se()),_e(),P())},le=(Oe=0,He=0,$e=Zo)=>{const Ne=S(E);He=Math.max(0,Math.min(He,v.totalColumn-1)),Oe=Math.max(0,Math.min(Oe,v.totalRow-1));const Le=CY(b.namespace.value),ie=S(C),Re=i(v,ie),We=o(v,ie);ue({scrollLeft:s(v,He,$e,Ne.scrollLeft,ie,We>v.width?Le:0),scrollTop:l(v,Oe,$e,Ne.scrollTop,ie,Re>v.height?Le:0)})},fe=(Oe,He)=>{const{columnWidth:$e,direction:Ne,rowHeight:Le}=v,ie=k.value(e&&$e,e&&Le,e&&Ne),Re=`${Oe},${He}`;if(yn(ie,Re))return ie[Re];{const[,We]=n(v,He,S(C)),me=S(C),Ye=A5(Ne),[ht,Ct]=u(v,Oe,me),[Tt]=n(v,He,me);return ie[Re]={position:"absolute",left:Ye?void 0:`${We}px`,right:Ye?`${We}px`:void 0,top:`${Ct}px`,height:`${ht}px`,width:`${Tt}px`},ie[Re]}},se=()=>{E.value.isScrolling=!1,yt(()=>{k.value(-1,null,null)})};Pt(()=>{if(!Sn)return;const{initScrollLeft:Oe,initScrollTop:He}=v,$e=S(x);$e&&(Nt(Oe)&&($e.scrollLeft=Oe),Nt(He)&&($e.scrollTop=He)),P()});const _e=()=>{const{direction:Oe}=v,{scrollLeft:He,scrollTop:$e,updateRequested:Ne}=S(E),Le=S(x);if(Ne&&Le){if(Oe===Fv)switch(Qx()){case u1:{Le.scrollLeft=-He;break}case nV:{Le.scrollLeft=He;break}default:{const{clientWidth:ie,scrollWidth:Re}=Le;Le.scrollLeft=Re-ie-He;break}}else Le.scrollLeft=Math.max(0,He);Le.scrollTop=Math.max(0,$e)}},{resetAfterColumnIndex:ve,resetAfterRowIndex:he,resetAfter:q}=w.proxy;y({windowRef:x,innerRef:M,getItemStyleCache:k,scrollTo:ue,scrollToItem:le,states:E,resetAfterColumnIndex:ve,resetAfterRowIndex:he,resetAfter:q});const ce=()=>{const{scrollbarAlwaysOn:Oe,scrollbarStartGap:He,scrollbarEndGap:$e,totalColumn:Ne,totalRow:Le}=v,ie=S(L),Re=S(R),We=S(I),me=S(G),{scrollLeft:Ye,scrollTop:ht}=S(E),Ct=xt($L,{ref:_,alwaysOn:Oe,startGap:He,endGap:$e,class:b.e("horizontal"),clientSize:ie,layout:"horizontal",onScroll:re,ratio:ie*100/We,scrollFrom:Ye/(We-ie),total:Le,visible:!0}),Tt=xt($L,{ref:T,alwaysOn:Oe,startGap:He,endGap:$e,class:b.e("vertical"),clientSize:Re,layout:"vertical",onScroll:J,ratio:Re*100/me,scrollFrom:ht/(me-Re),total:Ne,visible:!0});return{horizontalScrollbar:Ct,verticalScrollbar:Tt}},Se=()=>{var Oe;const[He,$e]=S(A),[Ne,Le]=S(V),{data:ie,totalColumn:Re,totalRow:We,useIsScrolling:me,itemKey:Ye}=v,ht=[];if(We>0&&Re>0)for(let Ct=Ne;Ct<=Le;Ct++)for(let Tt=He;Tt<=$e;Tt++)ht.push((Oe=m.default)==null?void 0:Oe.call(m,{columnIndex:Tt,data:ie,key:Ye({columnIndex:Tt,data:ie,rowIndex:Ct}),isScrolling:me?S(E).isScrolling:void 0,style:fe(Ct,Tt),rowIndex:Ct}));return ht},Ae=()=>{const Oe=tn(v.innerElement),He=Se();return[xt(Oe,{style:S(N),ref:M},$t(Oe)?He:{default:()=>He})]};return()=>{const Oe=tn(v.containerElement),{horizontalScrollbar:He,verticalScrollbar:$e}=ce(),Ne=Ae();return xt("div",{key:0,class:b.e("wrapper"),role:v.role},[xt(Oe,{class:v.className,style:S($),onScroll:Y,onWheel:oe,ref:x},$t(Oe)?Ne:{default:()=>Ne}),He,$e])}}}),jPe=DZ({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=Zo:a=Nl),a){case s1:return u;case l1:return c;case Nl:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Zo: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===yT&&(i>=c-e&&i<=u+e?a=Zo:a=Nl),a){case s1:return u;case l1:return c;case Nl:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(e/2)?0:f>l+Math.floor(e/2)?l:f}case Zo: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:Jx,min:kZ,floor:RZ}=Math,KPe={column:"columnWidth",row:"rowHeight"},PL={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Su=(t,e,n,r)=>{const[a,i,o]=[n[r],t[KPe[r]],n[PL[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[PL[r]]=e}return a[e]},LZ=(t,e,n,r,a,i)=>{for(;n<=r;){const o=n+RZ((r-n)/2),s=Su(t,o,e,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return Jx(0,n-1)},YPe=(t,e,n,r,a)=>{const i=a==="column"?t.totalColumn:t.totalRow;let o=1;for(;n<i&&Su(t,n,e,a).offset<r;)n+=o,o*=2;return LZ(t,e,RZ(n/2),kZ(n,i-1),r,a)},V5=(t,e,n,r)=>{const[a,i]=[e[r],e[PL[r]]];return(i>0?a[i].offset:0)>=n?LZ(t,e,0,i,n,r):YPe(t,e,Jx(0,i),n,r)},OZ=({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},AZ=({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},qPe={column:AZ,row:OZ},B5=(t,e,n,r,a,i,o)=>{const[s,l]=[i==="row"?t.height:t.width,qPe[i]],u=Su(t,e,a,i),c=l(t,a),f=Jx(0,kZ(c-s,u.offset)),d=Jx(0,u.offset-s+o+u.size);switch(n===yT&&(r>=d-s&&r<=f+s?n=Zo:n=Nl),n){case s1:return f;case l1:return d;case Nl:return Math.round(d+(f-d)/2);case Zo:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},XPe=DZ({name:"ElDynamicSizeGrid",getColumnPosition:(t,e,n)=>{const r=Su(t,e,n,"column");return[r.size,r.offset]},getRowPosition:(t,e,n)=>{const r=Su(t,e,n,"row");return[r.size,r.offset]},getColumnOffset:(t,e,n,r,a,i)=>B5(t,e,n,r,a,"column",i),getRowOffset:(t,e,n,r,a,i)=>B5(t,e,n,r,a,"row",i),getColumnStartIndexForOffset:(t,e,n)=>V5(t,n,e,"column"),getColumnStopIndexForStartIndex:(t,e,n,r)=>{const a=Su(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+=Su(t,e,r,"column").size;return s},getEstimatedTotalHeight:OZ,getEstimatedTotalWidth:AZ,getRowStartIndexForOffset:(t,e,n)=>V5(t,n,e,"row"),getRowStopIndexForStartIndex:(t,e,n,r)=>{const{totalRow:a,height:i}=t,o=Su(t,e,r,"row"),s=n+i;let l=o.size+o.offset,u=e;for(;u<a-1&&l<s;)u++,l+=Su(t,u,r,"row").size;return u},injectToInstance:(t,e)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=ba(s)?!0:s,Nt(i)&&(e.value.lastVisitedColumnIndex=Math.min(e.value.lastVisitedColumnIndex,i-1)),Nt(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=OL,estimatedRowHeight:e=OL})=>({column:{},estimatedColumnWidth:t,estimatedRowHeight:e,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:t,rowHeight:e})=>{}}),ZPe=pe({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:je("select")}}});function QPe(t,e,n,r,a,i){return t.item.isTitle?(z(),ne("div",{key:0,class:j(t.ns.be("group","title")),style:St([t.style,{lineHeight:`${t.height}px`}])},Ke(t.item.label),7)):(z(),ne("div",{key:1,class:j(t.ns.be("group","split")),style:St(t.style)},[U("span",{class:j(t.ns.be("group","split-dash")),style:St({top:`${t.height/2}px`})},null,6)],6))}var JPe=Je(ZPe,[["render",QPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function eFe(t,{emit:e}){return{hoverItem:()=>{t.disabled||e("hover",t.index)},selectOptionClick:()=>{t.disabled||e("select",t.item,t.index)}}}const tFe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Bf},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:$a.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:rT},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:De(String),values:up,default:"bottom-start"}},nFe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},rFe=pe({props:nFe,emits:["select","hover"],setup(t,{emit:e}){const n=je("select"),{hoverItem:r,selectOptionClick:a}=eFe(t,{emit:e});return{ns:n,hoverItem:r,selectOptionClick:a}}}),aFe=["aria-selected"];function iFe(t,e,n,r,a,i){return z(),ne("li",{"aria-selected":t.selected,style:St(t.style),class:j([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]=kt((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[ze(t.$slots,"default",{item:t.item,index:t.index,disabled:t.disabled},()=>[U("span",null,Ke(t.item.label),1)])],46,aFe)}var oFe=Je(rFe,[["render",iFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const NZ=Symbol("ElSelectV2Injection");var sFe=pe({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(t,{slots:e,expose:n}){const r=pt(NZ),a=je("select"),i=W([]),o=W(),s=B(()=>t.data.length);Ge(()=>s.value,()=>{var T,M;(M=(T=r.popper.value).updatePopper)==null||M.call(T)});const l=B(()=>ba(r.props.estimatedOptionHeight)),u=B(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],M)=>{const{props:{valueKey:E}}=r;return an(M)?T&&T.some(k=>Cr(k,E)===Cr(M,E)):T.includes(M)},f=(T,M)=>{if(an(M)){const{valueKey:E}=r.props;return Cr(T,E)===Cr(M,E)}else return T===M},d=(T,M)=>{const{valueKey:E}=r.props;return r.props.multiple?c(T,Cr(M,E)):f(T,Cr(M,E))},h=(T,M)=>{const{disabled:E,multiple:k,multipleLimit:R}=r.props;return E||!M&&(k?R>0&&T.length>=R:!1)},p=T=>t.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:p,isItemSelected:d,scrollToItem:T=>{const M=o.value;M&&M.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const y=T=>{const{index:M,data:E,style:k}=T,R=S(l),{itemSize:L,estimatedSize:A}=S(u),{modelValue:V}=r.props,{onSelect:G,onHover:I}=r,$=E[M];if($.type==="Group")return H(JPe,{item:$,style:k,height:R?L:A},null);const N=d(V,$),P=h(V,N),Y=p(M);return H(oFe,en(T,{selected:N,disabled:$.disabled||P,created:!!$.created,hovering:Y,item:$,onSelect:G,onHover:I}),{default:J=>{var re;return((re=e.default)==null?void 0:re.call(e,J))||H("span",null,[$.label])}})},{onKeyboardNavigate:m,onKeyboardSelect:b}=r,w=()=>{m("forward")},C=()=>{m("backward")},x=()=>{r.expanded=!1},_=T=>{const{code:M}=T,{tab:E,esc:k,down:R,up:L,enter:A}=_t;switch(M!==E&&(T.preventDefault(),T.stopPropagation()),M){case E:case k:{x();break}case R:{w();break}case L:{C();break}case A:{b();break}}};return()=>{var T;const{data:M,width:E}=t,{height:k,multiple:R,scrollbarAlwaysOn:L}=r.props;if(M.length===0)return H("div",{class:a.b("dropdown"),style:{width:`${E}px`}},[(T=e.empty)==null?void 0:T.call(e)]);const A=S(l)?EZ:HPe;return H("div",{class:[a.b("dropdown"),a.is("multiple",R)]},[H(A,en({ref:o},S(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:L,data:M,height:k,width:E,total:M.length,onKeydown:_}),{default:V=>H(y,V,null)})])}}});function lFe(t,e){const n=W(0),r=W(null),a=B(()=>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 uFe=t=>{const e=[];return t.forEach(n=>{dt(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 cFe(t){const e=W(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";e.value=!aT(s)},handleCompositionEnd:i=>{e.value&&(e.value=!1,Vt(t)&&t(i))}}}const I5="",$5=11,fFe={larget:51,default:42,small:33},dFe=(t,e)=>{const{t:n}=xn(),r=je("select-v2"),a=je("input"),{form:i,formItem:o}=Ki(),s=Rn({inputValue:I5,displayInputValue:I5,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=W(-1),u=W(-1),c=W(null),f=W(null),d=W(null),h=W(null),p=W(null),v=W(null),g=W(null),y=W(!1),m=B(()=>t.disabled||(i==null?void 0:i.disabled)),b=B(()=>{const Ee=R.value.length*34;return Ee>t.height?t.height:Ee}),w=B(()=>!fa(t.modelValue)),C=B(()=>{const Ee=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:w.value;return t.clearable&&!m.value&&s.comboBoxHovering&&Ee}),x=B(()=>t.remote&&t.filterable?"":eT),_=B(()=>x.value&&r.is("reverse",y.value)),T=B(()=>(o==null?void 0:o.validateState)||""),M=B(()=>mN[T.value]),E=B(()=>t.remote?300:0),k=B(()=>{const Ee=R.value;return t.loading?t.loadingText||n("el.select.loading"):t.remote&&s.inputValue===""&&Ee.length===0?!1:t.filterable&&s.inputValue&&Ee.length>0?t.noMatchText||n("el.select.noMatch"):Ee.length===0?t.noDataText||n("el.select.noData"):null}),R=B(()=>{const Ee=nt=>{const jt=s.inputValue,gn=new RegExp(_Y(jt),"i");return jt?gn.test(nt.label||""):!0};return t.loading?[]:uFe(t.options.concat(s.createdOptions).map(nt=>{if(dt(nt.options)){const jt=nt.options.filter(Ee);if(jt.length>0)return{...nt,options:jt}}else if(t.remote||Ee(nt))return nt;return null}).filter(nt=>nt!==null))}),L=B(()=>{const Ee=new Map;return R.value.forEach((nt,jt)=>{Ee.set(ie(nt),{option:nt,index:jt})}),Ee}),A=B(()=>R.value.every(Ee=>Ee.disabled)),V=va(),G=B(()=>V.value==="small"?"small":"default"),I=B(()=>{const Ee=v.value,nt=G.value||"default",jt=Ee?Number.parseInt(getComputedStyle(Ee).paddingLeft):0,gn=Ee?Number.parseInt(getComputedStyle(Ee).paddingRight):0;return s.selectWidth-gn-jt-fFe[nt]}),$=()=>{var Ee;u.value=((Ee=p.value)==null?void 0:Ee.offsetWidth)||200},N=B(()=>({width:`${s.calculatedWidth===0?$5:Math.ceil(s.calculatedWidth)+$5}px`})),P=B(()=>dt(t.modelValue)?t.modelValue.length===0&&!s.displayInputValue:t.filterable?s.displayInputValue.length===0:!0),Y=B(()=>{const Ee=t.placeholder||n("el.select.placeholder");return t.multiple||fa(t.modelValue)?Ee:s.selectedLabel}),J=B(()=>{var Ee,nt;return(nt=(Ee=h.value)==null?void 0:Ee.popperRef)==null?void 0:nt.contentRef}),re=B(()=>{if(t.multiple){const Ee=t.modelValue.length;if(t.modelValue.length>0&&L.value.has(t.modelValue[Ee-1])){const{index:nt}=L.value.get(t.modelValue[Ee-1]);return nt}}else if(t.modelValue&&L.value.has(t.modelValue)){const{index:Ee}=L.value.get(t.modelValue);return Ee}return-1}),oe=B({get(){return y.value&&k.value!==!1},set(Ee){y.value=Ee}}),ue=B(()=>s.cachedOptions.slice(0,t.maxCollapseTags)),le=B(()=>s.cachedOptions.slice(t.maxCollapseTags)),{createNewOption:fe,removeNewOption:se,selectNewOption:_e,clearAllNewOption:ve}=lFe(t,s),{handleCompositionStart:he,handleCompositionUpdate:q,handleCompositionEnd:ce}=cFe(Ee=>$n(Ee)),Se=()=>{var Ee,nt,jt;(nt=(Ee=f.value)==null?void 0:Ee.focus)==null||nt.call(Ee),(jt=h.value)==null||jt.updatePopper()},Ae=()=>{if(!t.automaticDropdown&&!m.value)return s.isComposing&&(s.softFocus=!0),yt(()=>{var Ee,nt;y.value=!y.value,(nt=(Ee=f.value)==null?void 0:Ee.focus)==null||nt.call(Ee)})},Te=()=>(t.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),He(s.inputValue),yt(()=>{fe(s.inputValue)})),Oe=Ui(Te,E.value),He=Ee=>{s.previousQuery!==Ee&&(s.previousQuery=Ee,t.filterable&&Vt(t.filterMethod)?t.filterMethod(Ee):t.filterable&&t.remote&&Vt(t.remoteMethod)&&t.remoteMethod(Ee))},$e=Ee=>{uo(t.modelValue,Ee)||e(yr,Ee)},Ne=Ee=>{e(Qt,Ee),$e(Ee),s.previousValue=Ee==null?void 0:Ee.toString()},Le=(Ee=[],nt)=>{if(!an(nt))return Ee.indexOf(nt);const jt=t.valueKey;let gn=-1;return Ee.some((Ar,Nr)=>Cr(Ar,jt)===Cr(nt,jt)?(gn=Nr,!0):!1),gn},ie=Ee=>an(Ee)?Cr(Ee,t.valueKey):Ee,Re=Ee=>an(Ee)?Ee.label:Ee,We=()=>yt(()=>{var Ee,nt;if(!f.value)return;const jt=v.value;p.value.height=jt.offsetHeight,y.value&&k.value!==!1&&((nt=(Ee=h.value)==null?void 0:Ee.updatePopper)==null||nt.call(Ee))}),me=()=>{var Ee,nt;if(Ye(),$(),(nt=(Ee=h.value)==null?void 0:Ee.updatePopper)==null||nt.call(Ee),t.multiple)return We()},Ye=()=>{const Ee=v.value;Ee&&(s.selectWidth=Ee.getBoundingClientRect().width)},ht=(Ee,nt,jt=!0)=>{var gn,Ar;if(t.multiple){let Nr=t.modelValue.slice();const Vr=Le(Nr,ie(Ee));Vr>-1?(Nr=[...Nr.slice(0,Vr),...Nr.slice(Vr+1)],s.cachedOptions.splice(Vr,1),se(Ee)):(t.multipleLimit<=0||Nr.length<t.multipleLimit)&&(Nr=[...Nr,ie(Ee)],s.cachedOptions.push(Ee),_e(Ee),Fe(nt)),Ne(Nr),Ee.created&&(s.query="",He(""),s.inputLength=20),t.filterable&&!t.reserveKeyword&&((Ar=(gn=f.value).focus)==null||Ar.call(gn),Ie("")),t.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),We(),Yn()}else l.value=nt,s.selectedLabel=Ee.label,Ne(ie(Ee)),y.value=!1,s.isComposing=!1,s.isSilentBlur=jt,_e(Ee),Ee.created||ve(),Fe(nt)},Ct=(Ee,nt)=>{const{valueKey:jt}=t,gn=t.modelValue.indexOf(Cr(nt,jt));if(gn>-1&&!m.value){const Ar=[...t.modelValue.slice(0,gn),...t.modelValue.slice(gn+1)];return s.cachedOptions.splice(gn,1),Ne(Ar),e("remove-tag",Cr(nt,jt)),s.softFocus=!0,se(nt),yt(Se)}Ee.stopPropagation()},Tt=Ee=>{const nt=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:nt||e("focus",Ee)},it=Ee=>(s.softFocus=!1,yt(()=>{var nt,jt;(jt=(nt=f.value)==null?void 0:nt.blur)==null||jt.call(nt),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&e("blur",Ee),s.isComposing=!1})),Me=()=>{s.displayInputValue.length>0?Ie(""):y.value=!1},ge=Ee=>{if(s.displayInputValue.length===0){Ee.preventDefault();const nt=t.modelValue.slice();nt.pop(),se(s.cachedOptions.pop()),Ne(nt)}},be=()=>{let Ee;return dt(t.modelValue)?Ee=[]:Ee=void 0,s.softFocus=!0,t.multiple?s.cachedOptions=[]:s.selectedLabel="",y.value=!1,Ne(Ee),e("clear"),ve(),yt(Se)},Ie=Ee=>{s.displayInputValue=Ee,s.inputValue=Ee},de=(Ee,nt=void 0)=>{const jt=R.value;if(!["forward","backward"].includes(Ee)||m.value||jt.length<=0||A.value)return;if(!y.value)return Ae();nt===void 0&&(nt=s.hoveringIndex);let gn=-1;Ee==="forward"?(gn=nt+1,gn>=jt.length&&(gn=0)):Ee==="backward"&&(gn=nt-1,(gn<0||gn>=jt.length)&&(gn=jt.length-1));const Ar=jt[gn];if(Ar.disabled||Ar.type==="Group")return de(Ee,gn);Fe(gn),Pe(gn)},rt=()=>{if(y.value)~s.hoveringIndex&&R.value[s.hoveringIndex]&&ht(R.value[s.hoveringIndex],s.hoveringIndex,!1);else return Ae()},Fe=Ee=>{s.hoveringIndex=Ee},Bt=()=>{s.hoveringIndex=-1},Yn=()=>{var Ee;const nt=f.value;nt&&((Ee=nt.focus)==null||Ee.call(nt))},$n=Ee=>{const nt=Ee.target.value;if(Ie(nt),s.displayInputValue.length>0&&!y.value&&(y.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,t.multiple&&We(),t.remote)Oe();else return Te()},dr=()=>(y.value=!1,it()),_r=()=>(s.inputValue=s.displayInputValue,yt(()=>{~re.value&&(Fe(re.value),Pe(s.hoveringIndex))})),Pe=Ee=>{d.value.scrollToItem(Ee)},st=()=>{if(Bt(),t.multiple)if(t.modelValue.length>0){let Ee=!1;s.cachedOptions.length=0,s.previousValue=t.modelValue.toString();for(const nt of t.modelValue)if(L.value.has(nt)){const{index:jt,option:gn}=L.value.get(nt);s.cachedOptions.push(gn),Ee||Fe(jt),Ee=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(w.value){s.previousValue=t.modelValue;const Ee=R.value,nt=Ee.findIndex(jt=>ie(jt)===ie(t.modelValue));~nt?(s.selectedLabel=Ee[nt].label,Fe(nt)):s.selectedLabel=`${t.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;ve(),$()};return Ge(y,Ee=>{var nt,jt;e("visible-change",Ee),Ee?(jt=(nt=h.value).update)==null||jt.call(nt):(s.displayInputValue="",s.previousQuery=null,fe(""))}),Ge(()=>t.modelValue,(Ee,nt)=>{var jt;(!Ee||Ee.toString()!==s.previousValue)&&st(),!uo(Ee,nt)&&t.validateEvent&&((jt=o==null?void 0:o.validate)==null||jt.call(o,"change").catch(gn=>void 0))},{deep:!0}),Ge(()=>t.options,()=>{const Ee=f.value;(!Ee||Ee&&document.activeElement!==Ee)&&st()},{deep:!0}),Ge(R,()=>yt(d.value.resetScrollTop)),Ge(()=>oe.value,Ee=>{Ee||Bt()}),Pt(()=>{st()}),yi(p,me),{collapseTagSize:G,currentPlaceholder:Y,expanded:y,emptyText:k,popupHeight:b,debounce:E,filteredOptions:R,iconComponent:x,iconReverse:_,inputWrapperStyle:N,popperSize:u,dropdownMenuVisible:oe,hasModelValue:w,shouldShowPlaceholder:P,selectDisabled:m,selectSize:V,showClearBtn:C,states:s,tagMaxWidth:I,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:p,selectionRef:v,popperRef:J,validateState:T,validateIcon:M,showTagList:ue,collapseTagList:le,debouncedOnInputChange:Oe,deleteTag:Ct,getLabel:Re,getValueKey:ie,handleBlur:it,handleClear:be,handleClickOutside:dr,handleDel:ge,handleEsc:Me,handleFocus:Tt,handleMenuEnter:_r,handleResize:me,toggleMenu:Ae,scrollTo:Pe,onInput:$n,onKeyboardNavigate:de,onKeyboardSelect:rt,onSelect:ht,onHover:Fe,onUpdateInputValue:Ie,handleCompositionStart:he,handleCompositionEnd:ce,handleCompositionUpdate:q}},hFe=pe({name:"ElSelectV2",components:{ElSelectMenu:sFe,ElTag:i1,ElTooltip:Gi,ElIcon:mt},directives:{ClickOutside:xf,ModelText:U3},props:tFe,emits:[Qt,yr,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:e}){const n=B(()=>{const{modelValue:a,multiple:i}=t,o=i?[]:void 0;return dt(a)?i?a:o:i?o:a}),r=dFe(Rn({...Ra(t),modelValue:n}),e);return on(NZ,{props:Rn({...Ra(t),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),pFe={key:0},vFe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],gFe=["textContent"],yFe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],mFe=["textContent"];function bFe(t,e,n,r,a,i){const o=Xe("el-tag"),s=Xe("el-tooltip"),l=Xe("el-icon"),u=Xe("el-select-menu"),c=Fm("model-text"),f=Fm("click-outside");return Ft((z(),ne("div",{ref:"selectRef",class:j([t.nsSelectV2.b(),t.nsSelectV2.m(t.selectSize)]),onClick:e[24]||(e[24]=kt((...d)=>t.toggleMenu&&t.toggleMenu(...d),["stop"])),onMouseenter:e[25]||(e[25]=d=>t.states.comboBoxHovering=!0),onMouseleave:e[26]||(e[26]=d=>t.states.comboBoxHovering=!1)},[H(s,{ref:"popper",visible:t.dropdownMenuVisible,teleported:t.teleported,"popper-class":[t.nsSelectV2.e("popper"),t.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,placement:t.placement,pure:"",transition:`${t.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:e[23]||(e[23]=d=>t.states.inputValue=t.states.displayInputValue)},{default:X(()=>[U("div",{ref:"selectionRef",class:j([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?(z(),ne("div",pFe,[ze(t.$slots,"prefix")])):we("v-if",!0),t.multiple?(z(),ne("div",{key:1,class:j(t.nsSelectV2.e("selection"))},[t.collapseTags&&t.modelValue.length>0?(z(),ne(bt,{key:0},[(z(!0),ne(bt,null,ln(t.showTagList,d=>(z(),ne("div",{key:t.getValueKey(d),class:j(t.nsSelectV2.e("selected-item"))},[H(o,{closable:!t.selectDisabled&&!(d!=null&&d.disable),size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:X(()=>[U("span",{class:j(t.nsSelectV2.e("tags-text")),style:St({maxWidth:`${t.tagMaxWidth}px`})},Ke(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),U("div",{class:j(t.nsSelectV2.e("selected-item"))},[t.modelValue.length>t.maxCollapseTags?(z(),xe(o,{key:0,closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""},{default:X(()=>[t.collapseTagsTooltip?(z(),xe(s,{key:0,disabled:t.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:!1},{default:X(()=>[U("span",{class:j(t.nsSelectV2.e("tags-text")),style:St({maxWidth:`${t.tagMaxWidth}px`})},"+ "+Ke(t.modelValue.length-t.maxCollapseTags),7)]),content:X(()=>[U("div",{class:j(t.nsSelectV2.e("selection"))},[(z(!0),ne(bt,null,ln(t.collapseTagList,d=>(z(),ne("div",{key:t.getValueKey(d),class:j(t.nsSelectV2.e("selected-item"))},[H(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:X(()=>[U("span",{class:j(t.nsSelectV2.e("tags-text")),style:St({maxWidth:`${t.tagMaxWidth}px`})},Ke(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(z(),ne("span",{key:1,class:j(t.nsSelectV2.e("tags-text")),style:St({maxWidth:`${t.tagMaxWidth}px`})},"+ "+Ke(t.modelValue.length-t.maxCollapseTags),7))]),_:1},8,["size"])):we("v-if",!0)],2)],64)):(z(!0),ne(bt,{key:1},ln(t.states.cachedOptions,d=>(z(),ne("div",{key:t.getValueKey(d),class:j(t.nsSelectV2.e("selected-item"))},[H(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:X(()=>[U("span",{class:j(t.nsSelectV2.e("tags-text")),style:St({maxWidth:`${t.tagMaxWidth}px`})},Ke(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),U("div",{class:j([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")]),style:St(t.inputWrapperStyle)},[Ft(U("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:j([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]=_n(kt(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[8]||(e[8]=_n(kt(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[9]||(e[9]=_n(kt((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[10]||(e[10]=_n(kt((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"])),e[11]||(e[11]=_n(kt((...d)=>t.handleDel&&t.handleDel(...d),["stop"]),["delete"]))]},null,42,vFe),[[c,t.states.displayInputValue]]),t.filterable?(z(),ne("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:j(t.nsSelectV2.e("input-calculator")),textContent:Ke(t.states.displayInputValue)},null,10,gFe)):we("v-if",!0)],6)],2)):(z(),ne(bt,{key:2},[U("div",{class:j([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")])},[Ft(U("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:j(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]=_n(kt(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[19]||(e[19]=_n(kt(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[20]||(e[20]=_n(kt((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[21]||(e[21]=_n(kt((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":e[22]||(e[22]=(...d)=>t.onUpdateInputValue&&t.onUpdateInputValue(...d))},null,42,yFe),[[c,t.states.displayInputValue]])],2),t.filterable?(z(),ne("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:j([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-calculator")]),textContent:Ke(t.states.displayInputValue)},null,10,mFe)):we("v-if",!0)],64)),t.shouldShowPlaceholder?(z(),ne("span",{key:3,class:j([t.nsSelectV2.e("placeholder"),t.nsSelectV2.is("transparent",t.multiple?t.modelValue.length===0:!t.hasModelValue)])},Ke(t.currentPlaceholder),3)):we("v-if",!0),U("span",{class:j(t.nsSelectV2.e("suffix"))},[t.iconComponent?Ft((z(),xe(l,{key:0,class:j([t.nsSelectV2.e("caret"),t.nsInput.e("icon"),t.iconReverse])},{default:X(()=>[(z(),xe(tn(t.iconComponent)))]),_:1},8,["class"])),[[pn,!t.showClearBtn]]):we("v-if",!0),t.showClearBtn&&t.clearIcon?(z(),xe(l,{key:1,class:j([t.nsSelectV2.e("caret"),t.nsInput.e("icon")]),onClick:kt(t.handleClear,["prevent","stop"])},{default:X(()=>[(z(),xe(tn(t.clearIcon)))]),_:1},8,["class","onClick"])):we("v-if",!0),t.validateState&&t.validateIcon?(z(),xe(l,{key:2,class:j([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:X(()=>[(z(),xe(tn(t.validateIcon)))]),_:1},8,["class"])):we("v-if",!0)],2)],2)]),content:X(()=>[H(u,{ref:"menuRef",data:t.filteredOptions,width:t.popperSize,"hovering-index":t.states.hoveringIndex,"scrollbar-always-on":t.scrollbarAlwaysOn},{default:X(d=>[ze(t.$slots,"default",$s(IC(d)))]),empty:X(()=>[ze(t.$slots,"empty",{},()=>[U("p",{class:j(t.nsSelectV2.e("empty"))},Ke(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 F_=Je(hFe,[["render",bFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);F_.install=t=>{t.component(F_.name,F_)};const SFe=F_,wFe=SFe,_Fe=et({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),xFe=et({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),CFe=pe({name:"ElSkeletonItem"}),TFe=pe({...CFe,props:xFe,setup(t){const e=je("skeleton");return(n,r)=>(z(),ne("div",{class:j([S(e).e("item"),S(e).e(n.variant)])},[n.variant==="image"?(z(),xe(S(k2e),{key:0})):we("v-if",!0)],2))}});var e2=Je(TFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const EFe=pe({name:"ElSkeleton"}),MFe=pe({...EFe,props:_Fe,setup(t,{expose:e}){const n=t,r=je("skeleton"),a=DEe(Rr(n,"loading"),n.throttle);return e({uiLoading:a}),(i,o)=>S(a)?(z(),ne("div",en({key:0,class:[S(r).b(),S(r).is("animated",i.animated)]},i.$attrs),[(z(!0),ne(bt,null,ln(i.count,s=>(z(),ne(bt,{key:s},[i.loading?ze(i.$slots,"template",{key:s},()=>[H(e2,{class:j(S(r).is("first")),variant:"p"},null,8,["class"]),(z(!0),ne(bt,null,ln(i.rows,l=>(z(),xe(e2,{key:l,class:j([S(r).e("paragraph"),S(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):we("v-if",!0)],64))),128))],16)):ze(i.$slots,"default",$s(en({key:1},i.$attrs)))}});var DFe=Je(MFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const kFe=Zt(DFe,{SkeletonItem:e2}),RFe=Hr(e2),VZ=Symbol("sliderContextKey"),LFe=et({modelValue:{type:De([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:ai,inputSize:ai,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:De(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:De(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:up,default:"top"},marks:{type:De(Object)},validateEvent:{type:Boolean,default:!0}}),SM=t=>Nt(t)||dt(t)&&t.every(Nt),OFe={[Qt]:SM,[Ii]:SM,[yr]:SM},AFe=(t,e,n)=>{const r=W();return Pt(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),Sr(window,"resize",n),await yt(),n()}),{sliderWrapper:r}},NFe=t=>B(()=>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]})):[]),VFe=(t,e,n)=>{const{form:r,formItem:a}=Ki(),i=or(),o=W(),s=W(),l={firstButton:o,secondButton:s},u=B(()=>t.disabled||(r==null?void 0:r.disabled)||!1),c=B(()=>Math.min(e.firstValue,e.secondValue)),f=B(()=>Math.max(e.firstValue,e.secondValue)),d=B(()=>t.range?`${100*(f.value-c.value)/(t.max-t.min)}%`:`${100*(e.firstValue-t.min)/(t.max-t.min)}%`),h=B(()=>t.range?`${100*(c.value-t.min)/(t.max-t.min)}%`:"0%"),p=B(()=>t.vertical?{height:t.height}:{}),v=B(()=>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=k=>{const R=t.min+k*(t.max-t.min)/100;if(!t.range)return o;let L;return Math.abs(c.value-R)<Math.abs(f.value-R)?L=e.firstValue<e.secondValue?"firstButton":"secondButton":L=e.firstValue>e.secondValue?"firstButton":"secondButton",l[L]},m=k=>{const R=y(k);return R.value.setPosition(k),R},b=k=>{e.firstValue=k,C(t.range?[c.value,f.value]:k)},w=k=>{e.secondValue=k,t.range&&C([c.value,f.value])},C=k=>{n(Qt,k),n(Ii,k)},x=async()=>{await yt(),n(yr,t.range?[c.value,f.value]:t.modelValue)},_=k=>{var R,L,A,V,G,I;if(u.value||e.dragging)return;g();let $=0;if(t.vertical){const N=(A=(L=(R=k.touches)==null?void 0:R.item(0))==null?void 0:L.clientY)!=null?A:k.clientY;$=(i.value.getBoundingClientRect().bottom-N)/e.sliderSize*100}else{const N=(I=(G=(V=k.touches)==null?void 0:V.item(0))==null?void 0:G.clientX)!=null?I:k.clientX,P=i.value.getBoundingClientRect().left;$=(N-P)/e.sliderSize*100}if(!($<0||$>100))return m($)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:p,barStyle:v,resetSize:g,setPosition:m,emitChange:x,onSliderWrapperPrevent:k=>{var R,L;((R=l.firstButton.value)!=null&&R.dragging||(L=l.secondButton.value)!=null&&L.dragging)&&k.preventDefault()},onSliderClick:k=>{_(k)&&x()},onSliderDown:async k=>{const R=_(k);R&&(await yt(),R.value.onButtonDown(k))},setFirstValue:b,setSecondValue:w}},{left:BFe,down:IFe,right:$Fe,up:PFe,home:FFe,end:zFe,pageUp:UFe,pageDown:GFe}=_t,HFe=(t,e,n)=>{const r=W(),a=W(!1),i=B(()=>e.value instanceof Function),o=B(()=>i.value&&e.value(t.modelValue)||t.modelValue),s=Ui(()=>{n.value&&(a.value=!0)},50),l=Ui(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},WFe=(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}=pt(VZ),{tooltip:p,tooltipVisible:v,formatValue:g,displayTooltip:y,hideTooltip:m}=HFe(t,c,s),b=W(),w=B(()=>`${(t.modelValue-a.value)/(i.value-a.value)*100}%`),C=B(()=>t.vertical?{bottom:w.value}:{left:w.value}),x=()=>{e.hovering=!0,y()},_=()=>{e.hovering=!1,e.dragging||m()},T=J=>{r.value||(J.preventDefault(),$(J),window.addEventListener("mousemove",N),window.addEventListener("touchmove",N),window.addEventListener("mouseup",P),window.addEventListener("touchend",P),window.addEventListener("contextmenu",P),b.value.focus())},M=J=>{r.value||(e.newPosition=Number.parseFloat(w.value)+J/(i.value-a.value)*100,Y(e.newPosition),f())},E=()=>{M(-o.value)},k=()=>{M(o.value)},R=()=>{M(-o.value*4)},L=()=>{M(o.value*4)},A=()=>{r.value||(Y(0),f())},V=()=>{r.value||(Y(100),f())},G=J=>{let re=!0;[BFe,IFe].includes(J.key)?E():[$Fe,PFe].includes(J.key)?k():J.key===FFe?A():J.key===zFe?V():J.key===GFe?R():J.key===UFe?L():re=!1,re&&J.preventDefault()},I=J=>{let re,oe;return J.type.startsWith("touch")?(oe=J.touches[0].clientY,re=J.touches[0].clientX):(oe=J.clientY,re=J.clientX),{clientX:re,clientY:oe}},$=J=>{e.dragging=!0,e.isClick=!0;const{clientX:re,clientY:oe}=I(J);t.vertical?e.startY=oe:e.startX=re,e.startPosition=Number.parseFloat(w.value),e.newPosition=e.startPosition},N=J=>{if(e.dragging){e.isClick=!1,y(),d();let re;const{clientX:oe,clientY:ue}=I(J);t.vertical?(e.currentY=ue,re=(e.startY-e.currentY)/u.value*100):(e.currentX=oe,re=(e.currentX-e.startX)/u.value*100),e.newPosition=e.startPosition+re,Y(e.newPosition)}},P=()=>{e.dragging&&(setTimeout(()=>{e.dragging=!1,e.hovering||m(),e.isClick||Y(e.newPosition),f()},0),window.removeEventListener("mousemove",N),window.removeEventListener("touchmove",N),window.removeEventListener("mouseup",P),window.removeEventListener("touchend",P),window.removeEventListener("contextmenu",P))},Y=async J=>{if(J===null||Number.isNaN(+J))return;J<0?J=0:J>100&&(J=100);const re=100/((i.value-a.value)/o.value);let ue=Math.round(J/re)*re*(i.value-a.value)*.01+a.value;ue=Number.parseFloat(ue.toFixed(l.value)),ue!==t.modelValue&&n(Qt,ue),!e.dragging&&t.modelValue!==e.oldValue&&(e.oldValue=t.modelValue),await yt(),e.dragging&&y(),p.value.updatePopper()};return Ge(()=>e.dragging,J=>{h(J)}),{disabled:r,button:b,tooltip:p,tooltipVisible:v,showTooltip:s,wrapperStyle:C,formatValue:g,handleMouseEnter:x,handleMouseLeave:_,onButtonDown:T,onKeyDown:G,setPosition:Y}},jFe=(t,e,n,r)=>({stops:B(()=>{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}%`}}),KFe=(t,e,n,r,a,i)=>{const o=u=>{a(Qt,u),a(Ii,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&&pa("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(),Ge(()=>e.dragging,u=>{u||l()}),Ge(()=>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}),Ge(()=>[t.min,t.max],()=>{l()})},YFe=et({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:up,default:"top"}}),qFe={[Qt]:t=>Nt(t)},XFe=["tabindex"],ZFe=pe({name:"ElSliderButton"}),QFe=pe({...ZFe,props:YFe,emits:qFe,setup(t,{expose:e,emit:n}){const r=t,a=je("slider"),i=Rn({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:p,onButtonDown:v,onKeyDown:g,setPosition:y}=WFe(r,i,n),{hovering:m,dragging:b}=Ra(i);return e({onButtonDown:v,onKeyDown:g,setPosition:y,hovering:m,dragging:b}),(w,C)=>(z(),ne("div",{ref_key:"button",ref:s,class:j([S(a).e("button-wrapper"),{hover:S(m),dragging:S(b)}]),style:St(S(f)),tabindex:S(o)?-1:0,onMouseenter:C[0]||(C[0]=(...x)=>S(h)&&S(h)(...x)),onMouseleave:C[1]||(C[1]=(...x)=>S(p)&&S(p)(...x)),onMousedown:C[2]||(C[2]=(...x)=>S(v)&&S(v)(...x)),onTouchstart:C[3]||(C[3]=(...x)=>S(v)&&S(v)(...x)),onFocus:C[4]||(C[4]=(...x)=>S(h)&&S(h)(...x)),onBlur:C[5]||(C[5]=(...x)=>S(p)&&S(p)(...x)),onKeydown:C[6]||(C[6]=(...x)=>S(g)&&S(g)(...x))},[H(S(Gi),{ref_key:"tooltip",ref:l,visible:S(c),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!S(u),persistent:""},{content:X(()=>[U("span",null,Ke(S(d)),1)]),default:X(()=>[U("div",{class:j([S(a).e("button"),{hover:S(m),dragging:S(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,XFe))}});var P5=Je(QFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const JFe=et({mark:{type:De([String,Object]),default:void 0}});var e5e=pe({name:"ElSliderMarker",props:JFe,setup(t){const e=je("slider"),n=B(()=>$t(t.mark)?t.mark:t.mark.label),r=B(()=>$t(t.mark)?void 0:t.mark.style);return()=>xt("div",{class:e.e("marks-text"),style:r.value},n.value)}});const t5e=["id","role","aria-label","aria-labelledby"],n5e={key:1},r5e=pe({name:"ElSlider"}),a5e=pe({...r5e,props:LFe,emits:OFe,setup(t,{expose:e,emit:n}){const r=t,a=je("slider"),{t:i}=xn(),o=Rn({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:p,barStyle:v,resetSize:g,emitChange:y,onSliderWrapperPrevent:m,onSliderClick:b,onSliderDown:w,setFirstValue:C,setSecondValue:x}=VFe(r,o,n),{stops:_,getStopStyle:T}=jFe(r,o,d,h),{inputId:M,isLabeledByFormItem:E}=Ff(r,{formItemContext:s}),k=va(),R=B(()=>r.inputSize||k.value),L=B(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),A=B(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):L.value),V=B(()=>r.formatValueText?r.formatValueText(J.value):`${J.value}`),G=B(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),I=B(()=>r.formatValueText?r.formatValueText(re.value):`${re.value}`),$=B(()=>[a.b(),a.m(k.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),N=NFe(r);KFe(r,o,d,h,n,s);const P=B(()=>{const le=[r.min,r.max,r.step].map(fe=>{const se=`${fe}`.split(".")[1];return se?se.length:0});return Math.max.apply(null,le)}),{sliderWrapper:Y}=AFe(r,o,g),{firstValue:J,secondValue:re,sliderSize:oe}=Ra(o),ue=le=>{o.dragging=le};return on(VZ,{...Ra(r),sliderSize:oe,disabled:f,precision:P,emitChange:y,resetSize:g,updateDragging:ue}),e({onSliderClick:b}),(le,fe)=>{var se,_e;return z(),ne("div",{id:le.range?S(M):void 0,ref_key:"sliderWrapper",ref:Y,class:j(S($)),role:le.range?"group":void 0,"aria-label":le.range&&!S(E)?S(L):void 0,"aria-labelledby":le.range&&S(E)?(se=S(s))==null?void 0:se.labelId:void 0,onTouchstart:fe[2]||(fe[2]=(...ve)=>S(m)&&S(m)(...ve)),onTouchmove:fe[3]||(fe[3]=(...ve)=>S(m)&&S(m)(...ve))},[U("div",{ref_key:"slider",ref:l,class:j([S(a).e("runway"),{"show-input":le.showInput&&!le.range},S(a).is("disabled",S(f))]),style:St(S(p)),onMousedown:fe[0]||(fe[0]=(...ve)=>S(w)&&S(w)(...ve)),onTouchstart:fe[1]||(fe[1]=(...ve)=>S(w)&&S(w)(...ve))},[U("div",{class:j(S(a).e("bar")),style:St(S(v))},null,6),H(P5,{id:le.range?void 0:S(M),ref_key:"firstButton",ref:u,"model-value":S(J),vertical:le.vertical,"tooltip-class":le.tooltipClass,placement:le.placement,role:"slider","aria-label":le.range||!S(E)?S(A):void 0,"aria-labelledby":!le.range&&S(E)?(_e=S(s))==null?void 0:_e.labelId:void 0,"aria-valuemin":le.min,"aria-valuemax":le.range?S(re):le.max,"aria-valuenow":S(J),"aria-valuetext":S(V),"aria-orientation":le.vertical?"vertical":"horizontal","aria-disabled":S(f),"onUpdate:modelValue":S(C)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),le.range?(z(),xe(P5,{key:0,ref_key:"secondButton",ref:c,"model-value":S(re),vertical:le.vertical,"tooltip-class":le.tooltipClass,placement:le.placement,role:"slider","aria-label":S(G),"aria-valuemin":S(J),"aria-valuemax":le.max,"aria-valuenow":S(re),"aria-valuetext":S(I),"aria-orientation":le.vertical?"vertical":"horizontal","aria-disabled":S(f),"onUpdate:modelValue":S(x)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):we("v-if",!0),le.showStops?(z(),ne("div",n5e,[(z(!0),ne(bt,null,ln(S(_),(ve,he)=>(z(),ne("div",{key:he,class:j(S(a).e("stop")),style:St(S(T)(ve))},null,6))),128))])):we("v-if",!0),S(N).length>0?(z(),ne(bt,{key:2},[U("div",null,[(z(!0),ne(bt,null,ln(S(N),(ve,he)=>(z(),ne("div",{key:he,style:St(S(T)(ve.position)),class:j([S(a).e("stop"),S(a).e("marks-stop")])},null,6))),128))]),U("div",{class:j(S(a).e("marks"))},[(z(!0),ne(bt,null,ln(S(N),(ve,he)=>(z(),xe(S(e5e),{key:he,mark:ve.mark,style:St(S(T)(ve.position))},null,8,["mark","style"]))),128))],2)],64)):we("v-if",!0)],38),le.showInput&&!le.range?(z(),xe(S(lZ),{key:0,ref:"input","model-value":S(J),class:j(S(a).e("input")),step:le.step,disabled:S(f),controls:le.showInputControls,min:le.min,max:le.max,debounce:le.debounce,size:S(R),"onUpdate:modelValue":S(C),onChange:S(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):we("v-if",!0)],42,t5e)}}});var i5e=Je(a5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const o5e=Zt(i5e),s5e=et({prefixCls:{type:String}}),F5=pe({name:"ElSpaceItem",props:s5e,setup(t,{slots:e}){const n=je("space"),r=B(()=>`${t.prefixCls||n.b()}__item`);return()=>xt("div",{class:r.value},ze(e,"default"))}}),z5={small:8,default:12,large:16};function l5e(t){const e=je("space"),n=B(()=>[e.b(),e.m(t.direction),t.class]),r=W(0),a=W(0),i=B(()=>{const s=t.wrap||t.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:t.alignment};return[s,l,t.style]}),o=B(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=t.fill?{flexGrow:1,minWidth:`${t.fillRatio}%`}:{};return[s,l]});return To(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=t;if(dt(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;Nt(s)?f=s:f=z5[s||"small"]||z5.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 u5e=et({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:De([String,Object,Array]),default:""},style:{type:De([String,Array,Object]),default:""},alignment:{type:De(String),default:"center"},prefixCls:{type:String},spacer:{type:De([Object,String,Number,Array]),default:null,validator:t=>Dr(t)||Nt(t)||$t(t)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:tu,validator:t=>Nt(t)||dt(t)&&t.length===2&&t.every(Nt)}}),c5e=pe({name:"ElSpace",props:u5e,setup(t,{slots:e}){const{classes:n,containerStyle:r,itemStyle:a}=l5e(t);function i(o,s="",l=[]){const{prefixCls:u}=t;return o.forEach((c,f)=>{nL(c)?dt(c.children)&&c.children.forEach((d,h)=>{nL(d)&&dt(d.children)?i(d.children,`${s+h}-`,l):l.push(H(F5,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Go.PROPS|Go.STYLE,["style","prefixCls"]))}):hTe(c)&&l.push(H(F5,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Go.PROPS|Go.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=t,u=ze(e,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(dt(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,p)=>{const v=[...d,h];return p!==f&&v.push(H("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:p},[Dr(s)?s:lt(s,Go.TEXT)],Go.STYLE)),v},[])}return H("div",{class:n.value,style:r.value},c,Go.STYLE|Go.CLASS)}return u.children}}}),f5e=Zt(c5e),d5e=et({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:De([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:De([String,Object,Array])}}),h5e=pe({name:"ElStatistic"}),p5e=pe({...h5e,props:d5e,setup(t,{expose:e}){const n=t,r=je("statistic"),a=B(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(Vt(o))return o(i);if(!Nt(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)=>(z(),ne("div",{class:j(S(r).b())},[i.$slots.title||i.title?(z(),ne("div",{key:0,class:j(S(r).e("head"))},[ze(i.$slots,"title",{},()=>[lt(Ke(i.title),1)])],2)):we("v-if",!0),U("div",{class:j(S(r).e("content"))},[i.$slots.prefix||i.prefix?(z(),ne("div",{key:0,class:j(S(r).e("prefix"))},[ze(i.$slots,"prefix",{},()=>[U("span",null,Ke(i.prefix),1)])],2)):we("v-if",!0),U("span",{class:j(S(r).e("number")),style:St(i.valueStyle)},Ke(S(a)),7),i.$slots.suffix||i.suffix?(z(),ne("div",{key:1,class:j(S(r).e("suffix"))},[ze(i.$slots,"suffix",{},()=>[U("span",null,Ke(i.suffix),1)])],2)):we("v-if",!0)],2)],2))}});var v5e=Je(p5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const BZ=Zt(v5e),g5e=et({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:De([Number,Object]),default:0},valueStyle:{type:De([String,Object,Array])}}),y5e={finish:()=>!0,[yr]:t=>Nt(t)},m5e=[["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]],U5=t=>Nt(t)?new Date(t).getTime():t.valueOf(),G5=(t,e)=>{let n=t;const r=/\[([^\]]*)]/g;return m5e.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")},b5e=pe({name:"ElCountdown"}),S5e=pe({...b5e,props:g5e,emits:y5e,setup(t,{expose:e,emit:n}){const r=t;let a;const i=W(U5(r.value)-Date.now()),o=B(()=>G5(i.value,r.format)),s=c=>G5(c,r.format),l=()=>{a&&(iT(a),a=void 0)},u=()=>{const c=U5(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=fg(f),i.value=d};a=fg(f)};return Ge(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),fr(()=>{l()}),e({displayValue:o}),(c,f)=>(z(),xe(S(BZ),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Iu({_:2},[ln(c.$slots,(d,h)=>({name:h,fn:X(()=>[ze(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var w5e=Je(S5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const _5e=Zt(w5e),x5e=et({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"}}),C5e={[yr]:(t,e)=>[t,e].every(Nt)},T5e=pe({name:"ElSteps"}),E5e=pe({...T5e,props:x5e,emits:C5e,setup(t,{emit:e}){const n=t,r=je("steps"),{children:a,addChild:i,removeChild:o}=VN(Yt(),"ElStep");return Ge(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),on("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),Ge(()=>n.active,(s,l)=>{e(yr,s,l)}),(s,l)=>(z(),ne("div",{class:j([S(r).b(),S(r).m(s.simple?"simple":s.direction)])},[ze(s.$slots,"default")],2))}});var M5e=Je(E5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const D5e=et({title:{type:String,default:""},icon:{type:sr},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),k5e=pe({name:"ElStep"}),R5e=pe({...k5e,props:D5e,setup(t){const e=t,n=je("step"),r=W(-1),a=W({}),i=W(""),o=pt("ElSteps"),s=Yt();Pt(()=>{Ge([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([x])=>{w(x)},{immediate:!0})}),fr(()=>{o.removeStep(C.uid)});const l=B(()=>e.status||i.value),u=B(()=>{const x=o.steps.value[r.value-1];return x?x.currentStatus:"wait"}),c=B(()=>o.props.alignCenter),f=B(()=>o.props.direction==="vertical"),d=B(()=>o.props.simple),h=B(()=>o.steps.value.length),p=B(()=>{var x;return((x=o.steps.value[h.value-1])==null?void 0:x.uid)===(s==null?void 0:s.uid)}),v=B(()=>d.value?"":o.props.space),g=B(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",p.value&&!v.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),y=B(()=>{const x={flexBasis:Nt(v.value)?`${v.value}px`:v.value?v.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||p.value&&(x.maxWidth=`${100/h.value}%`),x}),m=x=>{r.value=x},b=x=>{const _=x==="wait",T={transitionDelay:`${_?"-":""}${150*r.value}ms`},M=x===o.props.processStatus||_?0:100;T.borderWidth=M&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=T},w=x=>{x>r.value?i.value=o.props.finishStatus:x===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const _=o.steps.value[r.value-1];_&&_.calcProgress(i.value)},C=Rn({uid:s.uid,currentStatus:l,setIndex:m,calcProgress:b});return o.addStep(C),(x,_)=>(z(),ne("div",{style:St(S(y)),class:j(S(g))},[we(" icon & line "),U("div",{class:j([S(n).e("head"),S(n).is(S(l))])},[S(d)?we("v-if",!0):(z(),ne("div",{key:0,class:j(S(n).e("line"))},[U("i",{class:j(S(n).e("line-inner")),style:St(a.value)},null,6)],2)),U("div",{class:j([S(n).e("icon"),S(n).is(x.icon||x.$slots.icon?"icon":"text")])},[ze(x.$slots,"icon",{},()=>[x.icon?(z(),xe(S(mt),{key:0,class:j(S(n).e("icon-inner"))},{default:X(()=>[(z(),xe(tn(x.icon)))]),_:1},8,["class"])):S(l)==="success"?(z(),xe(S(mt),{key:1,class:j([S(n).e("icon-inner"),S(n).is("status")])},{default:X(()=>[H(S(ub))]),_:1},8,["class"])):S(l)==="error"?(z(),xe(S(mt),{key:2,class:j([S(n).e("icon-inner"),S(n).is("status")])},{default:X(()=>[H(S(Qs))]),_:1},8,["class"])):S(d)?we("v-if",!0):(z(),ne("div",{key:3,class:j(S(n).e("icon-inner"))},Ke(r.value+1),3))])],2)],2),we(" title & description "),U("div",{class:j(S(n).e("main"))},[U("div",{class:j([S(n).e("title"),S(n).is(S(l))])},[ze(x.$slots,"title",{},()=>[lt(Ke(x.title),1)])],2),S(d)?(z(),ne("div",{key:0,class:j(S(n).e("arrow"))},null,2)):(z(),ne("div",{key:1,class:j([S(n).e("description"),S(n).is(S(l))])},[ze(x.$slots,"description",{},()=>[lt(Ke(x.description),1)])],2))],2)],6))}});var IZ=Je(R5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const L5e=Zt(M5e,{Step:IZ}),O5e=Hr(IZ),A5e=et({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:rT},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:sr},activeActionIcon:{type:sr},activeIcon:{type:sr},inactiveIcon:{type:sr},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:De(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),N5e={[Qt]:t=>da(t)||$t(t)||Nt(t),[yr]:t=>da(t)||$t(t)||Nt(t),[Ii]:t=>da(t)||$t(t)||Nt(t)},V5e=["onClick"],B5e=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],I5e=["aria-hidden"],$5e=["aria-hidden"],P5e=["aria-hidden"],FL="ElSwitch",F5e=pe({name:FL}),z5e=pe({...F5e,props:A5e,emits:N5e,setup(t,{expose:e,emit:n}){const r=t,a=Yt(),{formItem:i}=Ki(),o=va(),s=je("switch");(T=>{T.forEach(M=>{jl({from:M[0],replacement:M[1],scope:FL,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},B(()=>{var E;return!!((E=a.vnode.props)!=null&&E[M[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Ff(r,{formItemContext:i}),c=go(B(()=>r.loading)),f=W(r.modelValue!==!1),d=W(),h=W(),p=B(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",b.value)]),v=B(()=>[s.e("label"),s.em("label","left"),s.is("active",!b.value)]),g=B(()=>[s.e("label"),s.em("label","right"),s.is("active",b.value)]),y=B(()=>({width:qr(r.width)}));Ge(()=>r.modelValue,()=>{f.value=!0}),Ge(()=>r.value,()=>{f.value=!1});const m=B(()=>f.value?r.modelValue:r.value),b=B(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(n(Qt,r.inactiveValue),n(yr,r.inactiveValue),n(Ii,r.inactiveValue)),Ge(b,T=>{var M;d.value.checked=T,r.validateEvent&&((M=i==null?void 0:i.validate)==null||M.call(i,"change").catch(E=>void 0))});const w=()=>{const T=b.value?r.inactiveValue:r.activeValue;n(Qt,T),n(yr,T),n(Ii,T),yt(()=>{d.value.checked=b.value})},C=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){w();return}const M=T();[Am(M),da(M)].includes(!0)||pa(FL,"beforeChange must return type `Promise<boolean>` or `boolean`"),Am(M)?M.then(k=>{k&&w()}).catch(k=>{}):M&&w()},x=B(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),_=()=>{var T,M;(M=(T=d.value)==null?void 0:T.focus)==null||M.call(T)};return Pt(()=>{d.value.checked=b.value}),e({focus:_,checked:b}),(T,M)=>(z(),ne("div",{class:j(S(p)),style:St(S(x)),onClick:kt(C,["prevent"])},[U("input",{id:S(u),ref_key:"input",ref:d,class:j(S(s).e("input")),type:"checkbox",role:"switch","aria-checked":S(b),"aria-disabled":S(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:S(c),tabindex:T.tabindex,onChange:w,onKeydown:_n(C,["enter"])},null,42,B5e),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(z(),ne("span",{key:0,class:j(S(v))},[T.inactiveIcon?(z(),xe(S(mt),{key:0},{default:X(()=>[(z(),xe(tn(T.inactiveIcon)))]),_:1})):we("v-if",!0),!T.inactiveIcon&&T.inactiveText?(z(),ne("span",{key:1,"aria-hidden":S(b)},Ke(T.inactiveText),9,I5e)):we("v-if",!0)],2)):we("v-if",!0),U("span",{ref_key:"core",ref:h,class:j(S(s).e("core")),style:St(S(y))},[T.inlinePrompt?(z(),ne("div",{key:0,class:j(S(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(z(),xe(S(mt),{key:0,class:j(S(s).is("icon"))},{default:X(()=>[(z(),xe(tn(S(b)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(z(),ne("span",{key:1,class:j(S(s).is("text")),"aria-hidden":!S(b)},Ke(S(b)?T.activeText:T.inactiveText),11,$5e)):we("v-if",!0)],2)):we("v-if",!0),U("div",{class:j(S(s).e("action"))},[T.loading?(z(),xe(S(mt),{key:0,class:j(S(s).is("loading"))},{default:X(()=>[H(S(If))]),_:1},8,["class"])):T.activeActionIcon&&S(b)?(z(),xe(S(mt),{key:1},{default:X(()=>[(z(),xe(tn(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!S(b)?(z(),xe(S(mt),{key:2},{default:X(()=>[(z(),xe(tn(T.inactiveActionIcon)))]),_:1})):we("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(z(),ne("span",{key:1,class:j(S(g))},[T.activeIcon?(z(),xe(S(mt),{key:0},{default:X(()=>[(z(),xe(tn(T.activeIcon)))]),_:1})):we("v-if",!0),!T.activeIcon&&T.activeText?(z(),ne("span",{key:1,"aria-hidden":!S(b)},Ke(T.activeText),9,P5e)):we("v-if",!0)],2)):we("v-if",!0)],14,V5e))}});var U5e=Je(z5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const G5e=Zt(U5e);/*!
  61. * escape-html
  62. * Copyright(c) 2012-2013 TJ Holowaychuk
  63. * Copyright(c) 2015 Andreas Lubbe
  64. * Copyright(c) 2015 Tiancheng "Timothy" Gu
  65. * MIT Licensed
  66. */var H5e=/["'&<>]/,W5e=j5e;function j5e(t){var e=""+t,n=H5e.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="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}o!==i&&(a+=e.substring(o,i)),o=i+1,a+=r}return o!==i?a+e.substring(o,i):a}const K5e=wi(W5e),wM=function(t){var e;return(e=t.target)==null?void 0:e.closest("td")},Y5e=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"?Cr(s,u):u(s,l,t))):(e!=="$key"&&an(s)&&"$value"in s&&(s=s.$value),[an(s)?Cr(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)},$Z=function(t,e){let n=null;return t.columns.forEach(r=>{r.id===e&&(n=r)}),n},q5e=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||pa("ElTable",`No column matching with column-key: ${e}`),n},H5=function(t,e,n){const r=(e.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?$Z(t,r[0]):null},Ja=(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)},dh=function(t,e){const n={};return(t||[]).forEach((r,a)=>{n[Ja(r,e)]={row:r,index:a}}),n};function X5e(t,e){const n={};let r;for(r in t)n[r]=t[r];for(r in e)if(yn(e,r)){const a=e[r];typeof a<"u"&&(n[r]=a)}return n}function aV(t){return t===""||t!==void 0&&(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function PZ(t){return t===""||t!==void 0&&(t=aV(t),Number.isNaN(t)&&(t=80)),t}function Z5e(t){return typeof t=="number"?t:typeof t=="string"?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function Q5e(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function um(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,dt(e.children)&&e.children.forEach(l=>{um(t,l,n??!i)})};return da(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function J5e(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 vu;function e6e(t,e,n,r,a){a=SY({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=K5e(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()}vu==null||vu(),vu=()=>{try{c&&c.destroy(),h&&(t==null||t.removeChild(h)),e.removeEventListener("mouseenter",f),e.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",vu),vu=void 0}catch{}};let c=null,f=u,d=vu;a.enterable&&({onOpen:f,onClose:d}=tq({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:vu}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const p=[];if(a.offset&&p.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());p.push({name:"arrow",options:{element:g,padding:10}})}const v=a.popperOptions||{};return c=QY(e,h,{placement:a.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?p.concat(v.modifiers):p}),e.addEventListener("mouseenter",f),e.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",vu),c}function FZ(t){return t.children?Swe(t.children,FZ):[t]}function W5(t,e){return t+e.colSpan}const zZ=(t,e,n,r)=>{let a=0,i=t;const o=n.states.columns.value;if(r){const l=FZ(r[t]);a=o.slice(0,o.indexOf(l[0])).reduce(W5,0),i=a+l.reduce(W5,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}:{}},iV=(t,e,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=zZ(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 j5(t,e){return t+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const oV=(t,e,n,r)=>{const{direction:a,start:i=0,after:o=0}=zZ(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(j5,0):s.right=u.slice(o+1).reverse().reduce(j5,0),s},bg=(t,e)=>{t&&(Number.isNaN(t[e])||(t[e]=`${t[e]}px`))};function t6e(t){const e=Yt(),n=W(!1),r=W([]);return{updateExpandRows:()=>{const l=t.data.value||[],u=t.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=dh(r.value,u);r.value=l.reduce((f,d)=>{const h=Ja(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{um(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=dh(u,c);r.value=l.reduce((d,h)=>{const p=f[h];return p&&d.push(p.row),d},[])},isRowExpanded:l=>{const u=t.rowKey.value;return u?!!dh(r.value,u)[Ja(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function n6e(t){const e=Yt(),n=W(null),r=W(null),a=u=>{e.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:f}=t;let d=null;f.value&&(d=(S(c)||[]).find(h=>Ja(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=Ja(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 r6e(t){const e=W([]),n=W({}),r=W(16),a=W(!1),i=W({}),o=W("hasChildren"),s=W("children"),l=Yt(),u=B(()=>{if(!t.rowKey.value)return{};const y=t.data.value||[];return f(y)}),c=B(()=>{const y=t.rowKey.value,m=Object.keys(i.value),b={};return m.length&&m.forEach(w=>{if(i.value[w].length){const C={children:[]};i.value[w].forEach(x=>{const _=Ja(x,y);C.children.push(_),x[o.value]&&!b[_]&&(b[_]={children:[]})}),b[w]=C}}),b}),f=y=>{const m=t.rowKey.value,b={};return J5e(y,(w,C,x)=>{const _=Ja(w,m);Array.isArray(C)?b[_]={children:C.map(T=>Ja(T,m)),level:x}:a.value&&(b[_]={children:[],lazy:!0,level:x})},s.value,o.value),b},d=(y=!1,m=(b=>(b=l.store)==null?void 0:b.states.defaultExpandAll.value)())=>{var b;const w=u.value,C=c.value,x=Object.keys(w),_={};if(x.length){const T=S(n),M=[],E=(R,L)=>{if(y)return e.value?m||e.value.includes(L):!!(m||R!=null&&R.expanded);{const A=m||e.value&&e.value.includes(L);return!!(R!=null&&R.expanded||A)}};x.forEach(R=>{const L=T[R],A={...w[R]};if(A.expanded=E(L,R),A.lazy){const{loaded:V=!1,loading:G=!1}=L||{};A.loaded=!!V,A.loading=!!G,M.push(R)}_[R]=A});const k=Object.keys(C);a.value&&k.length&&M.length&&k.forEach(R=>{const L=T[R],A=C[R].children;if(M.includes(R)){if(_[R].children.length!==0)throw new Error("[ElTable]children must be an empty array.");_[R].children=A}else{const{loaded:V=!1,loading:G=!1}=L||{};_[R]={lazy:!0,loaded:!!V,loading:!!G,expanded:E(L,R),children:A,level:""}}})}n.value=_,(b=l.store)==null||b.updateTableScrollY()};Ge(()=>e.value,()=>{d(!0)}),Ge(()=>u.value,()=>{d()}),Ge(()=>c.value,()=>{d()});const h=y=>{e.value=y,d()},p=(y,m)=>{l.store.assertRowKey();const b=t.rowKey.value,w=Ja(y,b),C=w&&n.value[w];if(w&&C&&"expanded"in C){const x=C.expanded;m=typeof m>"u"?!C.expanded:m,n.value[w].expanded=m,x!==m&&l.emit("expand-change",y,m),l.store.updateTableScrollY()}},v=y=>{l.store.assertRowKey();const m=t.rowKey.value,b=Ja(y,m),w=n.value[b];a.value&&w&&"loaded"in w&&!w.loaded?g(y,b,w):p(y,void 0)},g=(y,m,b)=>{const{load:w}=l.props;w&&!n.value[m].loaded&&(n.value[m].loading=!0,w(y,b,C=>{if(!Array.isArray(C))throw new TypeError("[ElTable] data must be an array");n.value[m].loading=!1,n.value[m].loaded=!0,n.value[m].expanded=!0,C.length&&(i.value[m]=C),l.emit("expand-change",y,!0)}))};return{loadData:g,loadOrToggle:v,toggleTreeExpansion:p,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:e,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const a6e=(t,e)=>{const n=e.sortingColumn;return!n||typeof n.sortable=="string"?t:Y5e(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy)},z_=t=>{const e=[];return t.forEach(n=>{n.children&&n.children.length>0?e.push.apply(e,z_(n.children)):e.push(n)}),e};function i6e(){var t;const e=Yt(),{size:n}=Ra((t=e.proxy)==null?void 0:t.$props),r=W(null),a=W([]),i=W([]),o=W(!1),s=W([]),l=W([]),u=W([]),c=W([]),f=W([]),d=W([]),h=W([]),p=W([]),v=[],g=W(0),y=W(0),m=W(0),b=W(!1),w=W([]),C=W(!1),x=W(!1),_=W(null),T=W({}),M=W(null),E=W(null),k=W(null),R=W(null),L=W(null);Ge(a,()=>e.state&&I(!1),{deep:!0});const A=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},V=it=>{var Me;(Me=it.children)==null||Me.forEach(ge=>{ge.fixed=it.fixed,V(ge)})},G=()=>{s.value.forEach(Ie=>{V(Ie)}),c.value=s.value.filter(Ie=>Ie.fixed===!0||Ie.fixed==="left"),f.value=s.value.filter(Ie=>Ie.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 it=s.value.filter(Ie=>!Ie.fixed);l.value=[].concat(c.value).concat(it).concat(f.value);const Me=z_(it),ge=z_(c.value),be=z_(f.value);g.value=Me.length,y.value=ge.length,m.value=be.length,u.value=[].concat(ge).concat(Me).concat(be),o.value=c.value.length>0||f.value.length>0},I=(it,Me=!1)=>{it&&G(),Me?e.state.doLayout():e.state.debouncedUpdateLayout()},$=it=>w.value.includes(it),N=()=>{b.value=!1,w.value.length&&(w.value=[],e.emit("selection-change",[]))},P=()=>{let it;if(r.value){it=[];const Me=dh(w.value,r.value),ge=dh(a.value,r.value);for(const be in Me)yn(Me,be)&&!ge[be]&&it.push(Me[be].row)}else it=w.value.filter(Me=>!a.value.includes(Me));if(it.length){const Me=w.value.filter(ge=>!it.includes(ge));w.value=Me,e.emit("selection-change",Me.slice())}},Y=()=>(w.value||[]).slice(),J=(it,Me=void 0,ge=!0)=>{if(um(w.value,it,Me)){const Ie=(w.value||[]).slice();ge&&e.emit("select",Ie,it),e.emit("selection-change",Ie)}},re=()=>{var it,Me;const ge=x.value?!b.value:!(b.value||w.value.length);b.value=ge;let be=!1,Ie=0;const de=(Me=(it=e==null?void 0:e.store)==null?void 0:it.states)==null?void 0:Me.rowKey.value;a.value.forEach((rt,Fe)=>{const Bt=Fe+Ie;_.value?_.value.call(null,rt,Bt)&&um(w.value,rt,ge)&&(be=!0):um(w.value,rt,ge)&&(be=!0),Ie+=le(Ja(rt,de))}),be&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",w.value)},oe=()=>{const it=dh(w.value,r.value);a.value.forEach(Me=>{const ge=Ja(Me,r.value),be=it[ge];be&&(w.value[be.index]=Me)})},ue=()=>{var it,Me,ge;if(((it=a.value)==null?void 0:it.length)===0){b.value=!1;return}let be;r.value&&(be=dh(w.value,r.value));const Ie=function(Bt){return be?!!be[Ja(Bt,r.value)]:w.value.includes(Bt)};let de=!0,rt=0,Fe=0;for(let Bt=0,Yn=(a.value||[]).length;Bt<Yn;Bt++){const $n=(ge=(Me=e==null?void 0:e.store)==null?void 0:Me.states)==null?void 0:ge.rowKey.value,dr=Bt+Fe,_r=a.value[Bt],Pe=_.value&&_.value.call(null,_r,dr);if(Ie(_r))rt++;else if(!_.value||Pe){de=!1;break}Fe+=le(Ja(_r,$n))}rt===0&&(de=!1),b.value=de},le=it=>{var Me;if(!e||!e.store)return 0;const{treeData:ge}=e.store.states;let be=0;const Ie=(Me=ge.value[it])==null?void 0:Me.children;return Ie&&(be+=Ie.length,Ie.forEach(de=>{be+=le(de)})),be},fe=(it,Me)=>{Array.isArray(it)||(it=[it]);const ge={};return it.forEach(be=>{T.value[be.id]=Me,ge[be.columnKey||be.id]=Me}),ge},se=(it,Me,ge)=>{E.value&&E.value!==it&&(E.value.order=null),E.value=it,k.value=Me,R.value=ge},_e=()=>{let it=S(i);Object.keys(T.value).forEach(Me=>{const ge=T.value[Me];if(!ge||ge.length===0)return;const be=$Z({columns:u.value},Me);be&&be.filterMethod&&(it=it.filter(Ie=>ge.some(de=>be.filterMethod.call(null,de,Ie,be))))}),M.value=it},ve=()=>{a.value=a6e(M.value,{sortingColumn:E.value,sortProp:k.value,sortOrder:R.value})},he=(it=void 0)=>{it&&it.filter||_e(),ve()},q=it=>{const{tableHeaderRef:Me}=e.refs;if(!Me)return;const ge=Object.assign({},Me.filterPanels),be=Object.keys(ge);if(be.length)if(typeof it=="string"&&(it=[it]),Array.isArray(it)){const Ie=it.map(de=>q5e({columns:u.value},de));be.forEach(de=>{const rt=Ie.find(Fe=>Fe.id===de);rt&&(rt.filteredValue=[])}),e.store.commit("filterChange",{column:Ie,values:[],silent:!0,multi:!0})}else be.forEach(Ie=>{const de=u.value.find(rt=>rt.id===Ie);de&&(de.filteredValue=[])}),T.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},ce=()=>{E.value&&(se(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Se,toggleRowExpansion:Ae,updateExpandRows:Te,states:Oe,isRowExpanded:He}=t6e({data:a,rowKey:r}),{updateTreeExpandKeys:$e,toggleTreeExpansion:Ne,updateTreeData:Le,loadOrToggle:ie,states:Re}=r6e({data:a,rowKey:r}),{updateCurrentRowData:We,updateCurrentRow:me,setCurrentRowKey:Ye,states:ht}=n6e({data:a,rowKey:r});return{assertRowKey:A,updateColumns:G,scheduleLayout:I,isSelected:$,clearSelection:N,cleanSelection:P,getSelectionRows:Y,toggleRowSelection:J,_toggleAllSelection:re,toggleAllSelection:null,updateSelectionByRowKey:oe,updateAllSelected:ue,updateFilters:fe,updateCurrentRow:me,updateSort:se,execFilter:_e,execSort:ve,execQuery:he,clearFilter:q,clearSort:ce,toggleRowExpansion:Ae,setExpandRowKeysAdapter:it=>{Se(it),$e(it)},setCurrentRowKey:Ye,toggleRowExpansionAdapter:(it,Me)=>{u.value.some(({type:be})=>be==="expand")?Ae(it,Me):Ne(it,Me)},isRowExpanded:He,updateExpandRows:Te,updateCurrentRowData:We,loadOrToggle:ie,updateTreeData:Le,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:m,isAllSelected:b,selection:w,reserveSelection:C,selectOnIndeterminate:x,selectable:_,filters:T,filteredData:M,sortingColumn:E,sortProp:k,sortOrder:R,hoverRow:L,...Oe,...Re,...ht}}}function zL(t,e){return t.map(n=>{var r;return n.id===e.id?e:((r=n.children)!=null&&r.length&&(n.children=zL(n.children,e)),n)})}function UL(t){t.forEach(e=>{var n,r;e.no=(n=e.getColumnIndex)==null?void 0:n.call(e),(r=e.children)!=null&&r.length&&UL(e.children)}),t.sort((e,n)=>e.no-n.no)}function o6e(){const t=Yt(),e=i6e();return{ns:je("table"),...e,mutations:{setData(o,s){const l=S(o._data)!==s;o.data.value=s,o._data.value=s,t.store.execQuery(),t.store.updateCurrentRowData(),t.store.updateExpandRows(),t.store.updateTreeData(t.store.states.defaultExpandAll.value),S(o.reserveSelection)?(t.store.assertRowKey(),t.store.updateSelectionByRowKey()):l?t.store.clearSelection():t.store.cleanSelection(),t.store.updateAllSelected(),t.$ready&&t.store.scheduleLayout()},insertColumn(o,s,l,u){const c=S(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=zL(c,l)):(c.push(s),f=c),UL(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&&(UL(o._columns.value),t.$ready&&t.store.updateColumns())},removeColumn(o,s,l,u){const c=S(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),yt(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=zL(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=S(o.columns).find(d=>d.property===l);f&&(f.order=u,t.store.updateSort(f,l,u),t.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=S(l),d=S(u),h=S(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const p={filter:!0};t.store.execQuery(p),(!s||!(s.silent||s.init))&&t.emit("sort-change",{column:f,prop:d,order:h}),t.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=t.store.updateFilters(l,u);t.store.execQuery(),c||t.emit("filter-change",f),t.store.updateTableScrollY()},toggleAllSelection(){t.store.toggleAllSelection()},rowSelectedChanged(o,s){t.store.toggleRowSelection(s),t.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){t.store.updateCurrentRow(s)}},commit:function(o,...s){const l=t.store.mutations;if(l[o])l[o].apply(t,[t.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){yt(()=>t.layout.updateScrollY.apply(t.layout))}}}const cm={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 s6e(t,e){if(!t)throw new Error("Table is required.");const n=o6e();return n.toggleAllSelection=Ui(n._toggleAllSelection,10),Object.keys(cm).forEach(r=>{UZ(GZ(e,r),r,n)}),l6e(n,e),n}function l6e(t,e){Object.keys(cm).forEach(n=>{Ge(()=>GZ(e,n),r=>{UZ(r,n,t)})})}function UZ(t,e,n){let r=t,a=cm[e];typeof cm[e]=="object"&&(a=a.key,r=r||cm[e].default),n.states[a].value=r}function GZ(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 u6e{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=W(null),this.scrollX=W(!1),this.scrollY=W(!1),this.bodyWidth=W(null),this.fixedWidth=W(null),this.rightFixedWidth=W(null),this.gutterWidth=0;for(const n in e)yn(e,n)&&(Ot(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(!Sn)return;const r=this.table.vnode.el;if(e=Z5e(e),this.height.value=Number(e),!r&&(e||e===0))return yt(()=>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(!Sn)return;const e=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&e){if(a.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;i.forEach((d,h)=>{if(h===0)return;const p=Math.floor(Number(d.minWidth||80)*c);f+=p,d.realWidth=Number(d.minWidth||80)+p}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const n=this.observers.indexOf(e);n!==-1&&this.observers.splice(n,1)}notifyObservers(e){this.observers.forEach(r=>{var a,i;switch(e){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}}const{CheckboxGroup:c6e}=cs,f6e=pe({name:"ElTableFilterPanel",components:{ElCheckbox:cs,ElCheckboxGroup:c6e,ElScrollbar:ec,ElTooltip:Gi,ElIcon:mt,ArrowDown:Vf,ArrowUp:eT},directives:{ClickOutside:xf},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(t){const e=Yt(),{t:n}=xn(),r=je("table-filter"),a=e==null?void 0:e.parent;a.filterPanels.value[t.column.id]||(a.filterPanels.value[t.column.id]=e);const i=W(!1),o=W(null),s=B(()=>t.column&&t.column.filters),l=B({get:()=>{var w;return(((w=t.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{u.value&&(typeof w<"u"&&w!==null?u.value.splice(0,1,w):u.value.splice(0,1))}}),u=B({get(){return t.column?t.column.filteredValue||[]:[]},set(w){t.column&&t.upDataColumn("filteredValue",w)}}),c=B(()=>t.column?t.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},p=()=>{i.value=!1},v=()=>{m(u.value),d()},g=()=>{u.value=[],m(u.value),d()},y=w=>{l.value=w,m(typeof w<"u"&&w!==null?u.value:[]),d()},m=w=>{t.store.commit("filterChange",{column:t.column,values:w}),t.store.updateAllSelected()};Ge(i,w=>{t.column&&t.upDataColumn("filterOpened",w)},{immediate:!0});const b=B(()=>{var w,C;return(C=(w=o.value)==null?void 0:w.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:v,handleReset:g,handleSelect:y,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:p,popperPaneRef:b,tooltip:o}}}),d6e={key:0},h6e=["disabled"],p6e=["label","onClick"];function v6e(t,e,n,r,a,i){const o=Xe("el-checkbox"),s=Xe("el-checkbox-group"),l=Xe("el-scrollbar"),u=Xe("arrow-up"),c=Xe("arrow-down"),f=Xe("el-icon"),d=Xe("el-tooltip"),h=Fm("click-outside");return z(),xe(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:X(()=>[t.multiple?(z(),ne("div",d6e,[U("div",{class:j(t.ns.e("content"))},[H(l,{"wrap-class":t.ns.e("wrap")},{default:X(()=>[H(s,{modelValue:t.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=p=>t.filteredValue=p),class:j(t.ns.e("checkbox-group"))},{default:X(()=>[(z(!0),ne(bt,null,ln(t.filters,p=>(z(),xe(o,{key:p.value,label:p.value},{default:X(()=>[lt(Ke(p.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),U("div",{class:j(t.ns.e("bottom"))},[U("button",{class:j({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:e[1]||(e[1]=(...p)=>t.handleConfirm&&t.handleConfirm(...p))},Ke(t.t("el.table.confirmFilter")),11,h6e),U("button",{type:"button",onClick:e[2]||(e[2]=(...p)=>t.handleReset&&t.handleReset(...p))},Ke(t.t("el.table.resetFilter")),1)],2)])):(z(),ne("ul",{key:1,class:j(t.ns.e("list"))},[U("li",{class:j([t.ns.e("list-item"),{[t.ns.is("active")]:t.filterValue===void 0||t.filterValue===null}]),onClick:e[3]||(e[3]=p=>t.handleSelect(null))},Ke(t.t("el.table.clearFilter")),3),(z(!0),ne(bt,null,ln(t.filters,p=>(z(),ne("li",{key:p.value,class:j([t.ns.e("list-item"),t.ns.is("active",t.isActive(p))]),label:p.value,onClick:v=>t.handleSelect(p.value)},Ke(p.text),11,p6e))),128))],2))]),default:X(()=>[Ft((z(),ne("span",{class:j([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:e[4]||(e[4]=(...p)=>t.showFilterPanel&&t.showFilterPanel(...p))},[H(f,null,{default:X(()=>[t.column.filterOpened?(z(),xe(u,{key:0})):(z(),xe(c,{key:1}))]),_:1})],2)),[[h,t.hideFilterPanel,t.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var g6e=Je(f6e,[["render",v6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function HZ(t){const e=Yt();VC(()=>{n.value.addObserver(e)}),Pt(()=>{r(n.value),a(n.value)}),Xu(()=>{r(n.value),a(n.value)}),Zu(()=>{n.value.removeObserver(e)});const n=B(()=>{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"),p=u[h];p&&d.setAttribute("width",p.realWidth||p.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 nu=Symbol("ElTable");function y6e(t,e){const n=Yt(),r=pt(nu),a=v=>{v.stopPropagation()},i=(v,g)=>{!g.filters&&g.sortable?p(v,g,!1):g.filterable&&!g.sortable&&a(v),r==null||r.emit("header-click",g,v)},o=(v,g)=>{r==null||r.emit("header-contextmenu",g,v)},s=W(null),l=W(!1),u=W({}),c=(v,g)=>{if(Sn&&!(g.children&&g.children.length>0)&&s.value&&t.border){l.value=!0;const y=r;e("set-drag-visible",!0);const b=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${g.id}`),C=w.getBoundingClientRect(),x=C.left-b+30;Al(w,"noclick"),u.value={startMouseLeft:v.clientX,startLeft:C.right-b,startColumnLeft:C.left-b,tableLeft:b};const _=y==null?void 0:y.refs.resizeProxy;_.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=E=>{const k=E.clientX-u.value.startMouseLeft,R=u.value.startLeft+k;_.style.left=`${Math.max(x,R)}px`},M=()=>{if(l.value){const{startColumnLeft:E,startLeft:k}=u.value,L=Number.parseInt(_.style.left,10)-E;g.width=g.realWidth=L,y==null||y.emit("header-dragend",g.width,k-E,g,v),requestAnimationFrame(()=>{t.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},e("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{co(w,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",M)}},f=(v,g)=>{if(g.children&&g.children.length>0)return;const y=v.target;if(!is(y))return;const m=y==null?void 0:y.closest("th");if(!(!g||!g.resizable)&&!l.value&&t.border){const b=m.getBoundingClientRect(),w=document.body.style;b.width>12&&b.right-v.pageX<8?(w.cursor="col-resize",Ks(m,"is-sortable")&&(m.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",Ks(m,"is-sortable")&&(m.style.cursor="pointer"),s.value=null)}},d=()=>{Sn&&(document.body.style.cursor="")},h=({order:v,sortOrders:g})=>{if(v==="")return g[0];const y=g.indexOf(v||null);return g[y>g.length-2?0:y+1]},p=(v,g,y)=>{var m;v.stopPropagation();const b=g.order===y?null:y||h(g),w=(m=v.target)==null?void 0:m.closest("th");if(w&&Ks(w,"noclick")){co(w,"noclick");return}if(!g.sortable)return;const C=t.store.states;let x=C.sortProp.value,_;const T=C.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),C.sortingColumn.value=g,x=g.property),b?_=g.order=b:_=g.order=null,C.sortProp.value=x,C.sortOrder.value=_,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:p,handleFilterClick:a}}function m6e(t){const e=pt(nu),n=je("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=oV(l,c.fixed,t.store,u);return bg(h,"left"),bg(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=iV(n.b(),l,c.fixed,t.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.sortable&&d.push("is-sortable");const h=e==null?void 0:e.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:c})),d.push(n.e("cell")),d.filter(p=>!!p).join(" ")}}}const WZ=t=>{const e=[];return t.forEach(n=>{n.children?(e.push(n),e.push.apply(e,WZ(n.children))):e.push(n)}),e},b6e=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 WZ(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 S6e(t){const e=pt(nu),n=B(()=>b6e(t.store.states.originColumns.value));return{isGroup:B(()=>{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 w6e=pe({name:"ElTableHeader",components:{ElCheckbox:cs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t,{emit:e}){const n=Yt(),r=pt(nu),a=je("table"),i=W({}),{onColumnsChange:o,onScrollableChange:s}=HZ(r);Pt(async()=>{await yt(),await yt();const{prop:x,order:_}=t.defaultSort;r==null||r.store.commit("sort",{prop:x,order:_,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p}=y6e(t,e),{getHeaderRowStyle:v,getHeaderRowClass:g,getHeaderCellStyle:y,getHeaderCellClass:m}=m6e(t),{isGroup:b,toggleAllSelection:w,columnRows:C}=S6e(t);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:C,getHeaderRowClass:g,getHeaderRowStyle:v,getHeaderCellClass:m,getHeaderCellStyle:y,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p,isGroup:b,toggleAllSelection:w}},render(){const{ns:t,isGroup:e,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:p}=this;let v=1;return xt("thead",{class:{[t.is("group")]:e}},n.map((g,y)=>xt("tr",{class:i(y),key:y,style:o(y)},g.map((m,b)=>(m.rowSpan>v&&(v=m.rowSpan),xt("th",{class:a(y,b,g,m),colspan:m.colSpan,key:`${m.id}-thead`,rowspan:m.rowSpan,style:r(y,b,g,m),onClick:w=>s(w,m),onContextmenu:w=>l(w,m),onMousedown:w=>u(w,m),onMousemove:w=>c(w,m),onMouseout:d},[xt("div",{class:["cell",m.filteredValue&&m.filteredValue.length>0?"highlight":""]},[m.renderHeader?m.renderHeader({column:m,$index:b,store:h,_self:p}):m.label,m.sortable&&xt("span",{onClick:w=>f(w,m),class:"caret-wrapper"},[xt("i",{onClick:w=>f(w,m,"ascending"),class:"sort-caret ascending"}),xt("i",{onClick:w=>f(w,m,"descending"),class:"sort-caret descending"})]),m.filterable&&xt(g6e,{store:h,placement:m.filterPlacement||"bottom-start",column:m,upDataColumn:(w,C)=>{m[w]=C}})])]))))))}});function _6e(t){const e=pt(nu),n=W(""),r=W(xt("div")),{nextZIndex:a}=Kg(),i=(p,v,g)=>{var y;const m=e,b=wM(p);let w;const C=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;b&&(w=H5({columns:t.store.states.columns.value},b,C),w&&(m==null||m.emit(`cell-${g}`,v,w,b,p))),m==null||m.emit(`row-${g}`,v,w,p)},o=(p,v)=>{i(p,v,"dblclick")},s=(p,v)=>{t.store.commit("setCurrentRow",v),i(p,v,"click")},l=(p,v)=>{i(p,v,"contextmenu")},u=Ui(p=>{t.store.commit("setHoverRow",p)},30),c=Ui(()=>{t.store.commit("setHoverRow",null)},30),f=p=>{const v=window.getComputedStyle(p,null),g=Number.parseInt(v.paddingLeft,10)||0,y=Number.parseInt(v.paddingRight,10)||0,m=Number.parseInt(v.paddingTop,10)||0,b=Number.parseInt(v.paddingBottom,10)||0;return{left:g,right:y,top:m,bottom:b}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,g)=>{var y;const m=e,b=wM(p),w=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;if(b){const I=H5({columns:t.store.states.columns.value},b,w),$=m.hoverState={cell:b,column:I,row:v};m==null||m.emit("cell-mouse-enter",$.row,$.column,$.cell,p)}if(!g)return;const C=p.target.querySelector(".cell");if(!(Ks(C,`${w}-tooltip`)&&C.childNodes.length))return;const x=document.createRange();x.setStart(C,0),x.setEnd(C,C.childNodes.length);let _=x.getBoundingClientRect().width,T=x.getBoundingClientRect().height;_-Math.floor(_)<.001&&(_=Math.floor(_)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:k,left:R,right:L,bottom:A}=f(C),V=R+L,G=k+A;(_+V>C.offsetWidth||T+G>C.offsetHeight||C.scrollWidth>C.offsetWidth)&&e6e(e==null?void 0:e.refs.tableWrapper,b,b.innerText||b.textContent,a,g)},handleCellMouseLeave:p=>{if(!wM(p))return;const g=e==null?void 0:e.hoverState;e==null||e.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,p)},tooltipContent:n,tooltipTrigger:r}}function x6e(t){const e=pt(nu),n=je("table");return{getRowStyle:(u,c)=>{const f=e==null?void 0:e.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];e!=null&&e.props.highlightCurrentRow&&u===t.store.states.currentRow.value&&f.push("current-row"),t.stripe&&c%2===1&&f.push(n.em("row","striped"));const d=e==null?void 0:e.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=e==null?void 0:e.props.cellStyle;let p=h??{};typeof h=="function"&&(p=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const v=oV(c,t==null?void 0:t.fixed,t.store);return bg(v,"left"),bg(v,"right"),Object.assign({},p,v)},getCellClass:(u,c,f,d,h)=>{const p=iV(n.b(),c,t==null?void 0:t.fixed,t.store,void 0,h),v=[d.id,d.align,d.className,...p],g=e==null?void 0:e.props.cellClassName;return typeof g=="string"?v.push(g):typeof g=="function"&&v.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(u,c,f,d)=>{let h=1,p=1;const v=e==null?void 0:e.props.spanMethod;if(typeof v=="function"){const g=v({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],p=g[1]):typeof g=="object"&&(h=g.rowspan,p=g.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:p})=>h||p).slice(f,f+c);return Number(d.reduce((h,p)=>Number(h)+Number(p),-1))}}}function C6e(t){const e=pt(nu),n=je("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=_6e(t),{getRowStyle:d,getRowClass:h,getCellStyle:p,getCellClass:v,getSpan:g,getColspanRealWidth:y}=x6e(t),m=B(()=>t.store.states.columns.value.findIndex(({type:_})=>_==="default")),b=(_,T)=>{const M=e.props.rowKey;return M?Ja(_,M):T},w=(_,T,M,E=!1)=>{const{tooltipEffect:k,tooltipOptions:R,store:L}=t,{indent:A,columns:V}=L.states,G=h(_,T);let I=!0;return M&&(G.push(n.em("row",`level-${M.level}`)),I=M.display),xt("tr",{style:[I?null:{display:"none"},d(_,T)],class:G,key:b(_,T),onDblclick:N=>r(N,_),onClick:N=>a(N,_),onContextmenu:N=>i(N,_),onMouseenter:()=>o(T),onMouseleave:s},V.value.map((N,P)=>{const{rowspan:Y,colspan:J}=g(_,N,T,P);if(!Y||!J)return null;const re=Object.assign({},N);re.realWidth=y(V.value,J,P);const oe={store:t.store,_self:t.context||e,column:re,row:_,$index:T,cellIndex:P,expanded:E};P===m.value&&M&&(oe.treeNode={indent:M.level*A.value,level:M.level},typeof M.expanded=="boolean"&&(oe.treeNode.expanded=M.expanded,"loading"in M&&(oe.treeNode.loading=M.loading),"noLazyChildren"in M&&(oe.treeNode.noLazyChildren=M.noLazyChildren)));const ue=`${T},${P}`,le=re.columnKey||re.rawColumnKey||"",fe=C(P,N,oe),se=N.showOverflowTooltip&&SY({effect:k},R,N.showOverflowTooltip);return xt("td",{style:p(T,P,_,N),class:v(T,P,_,N,J-1),key:`${le}${ue}`,rowspan:Y,colspan:J,onMouseenter:_e=>l(_e,_,se),onMouseleave:u},[fe])}))},C=(_,T,M)=>T.renderCell(M);return{wrappedRowRender:(_,T)=>{const M=t.store,{isRowExpanded:E,assertRowKey:k}=M,{treeData:R,lazyTreeNodeMap:L,childrenColumnName:A,rowKey:V}=M.states,G=M.states.columns.value;if(G.some(({type:$})=>$==="expand")){const $=E(_),N=w(_,T,void 0,$),P=e.renderExpanded;return $?P?[[N,xt("tr",{key:`expanded-row__${N.key}`},[xt("td",{colspan:G.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[P({row:_,$index:T,store:M,expanded:$})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(R.value).length){k();const $=Ja(_,V.value);let N=R.value[$],P=null;N&&(P={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(P.noLazyChildren=!(N.children&&N.children.length)),P.loading=N.loading));const Y=[w(_,T,P)];if(N){let J=0;const re=(ue,le)=>{ue&&ue.length&&le&&ue.forEach(fe=>{const se={display:le.display&&le.expanded,level:le.level+1,expanded:!1,noLazyChildren:!1,loading:!1},_e=Ja(fe,V.value);if(_e==null)throw new Error("For nested data item, row-key is required.");if(N={...R.value[_e]},N&&(se.expanded=N.expanded,N.level=N.level||se.level,N.display=!!(N.expanded&&se.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(se.noLazyChildren=!(N.children&&N.children.length)),se.loading=N.loading)),J++,Y.push(w(fe,T+J,se)),N){const ve=L.value[_e]||fe[A.value];re(ve,N)}})};N.display=!0;const oe=L.value[$]||_[A.value];re(oe,N)}return Y}else return w(_,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const T6e={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 E6e=pe({name:"ElTableBody",props:T6e,setup(t){const e=Yt(),n=pt(nu),r=je("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=C6e(t),{onColumnsChange:s,onScrollableChange:l}=HZ(n);return Ge(t.store.states.hoverRow,(u,c)=>{!t.store.states.isComplex.value||!Sn||fg(()=>{const f=e==null?void 0:e.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${r.e("row")}`)),h=d[c],p=d[u];h&&co(h,"hover-row"),p&&Al(p,"hover-row")})}),Zu(()=>{var u;(u=vu)==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 xt("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(t(a,r.length)),[])])}});function sV(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 xt("colgroup",{},n.map(a=>xt("col",r(a))))}sV.props=["columns","tableLayout"];function M6e(){const t=pt(nu),e=t==null?void 0:t.store,n=B(()=>e.states.fixedLeafColumnsLength.value),r=B(()=>e.states.rightFixedColumns.value.length),a=B(()=>e.states.columns.value.length),i=B(()=>e.states.fixedColumns.value.length),o=B(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:e.states.columns}}function D6e(t){const{columns:e}=M6e(),n=je("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...iV(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=oV(o,i.fixed,t.store);return bg(s,"left"),bg(s,"right"),s},columns:e}}var k6e=pe({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}=D6e(t);return{ns:je("table"),getCellClasses:e,getCellStyles:n,columns:r}},render(){const{columns:t,getCellStyles:e,getCellClasses:n,summaryMethod:r,sumText:a,ns:i}=this,o=this.store.states.data.value;let s=[];return r?s=r({columns:t,data:o}):t.forEach((l,u)=>{if(u===0){s[u]=a;return}const c=o.map(p=>Number(p[l.property])),f=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const v=`${p}`.split(".")[1];f.push(v?v.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((p,v)=>{const g=Number(v);return Number.isNaN(+g)?p:Number.parseFloat((p+v).toFixed(Math.min(h,20)))},0)}),xt("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[sV({columns:t}),xt("tbody",[xt("tr",{},[...t.map((l,u)=>xt("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(t,u),style:e(l,u)},[xt("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function R6e(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 L6e(t,e,n,r){const a=W(!1),i=W(null),o=W(!1),s=N=>{o.value=N},l=W({width:null,height:null,headerHeight:null}),u=W(!1),c={display:"inline-block",verticalAlign:"middle"},f=W(),d=W(0),h=W(0),p=W(0),v=W(0),g=W(0);To(()=>{e.setHeight(t.height)}),To(()=>{e.setMaxHeight(t.maxHeight)}),Ge(()=>[t.currentRowKey,n.states.rowKey],([N,P])=>{!S(P)||!S(N)||n.setCurrentRowKey(`${N}`)},{immediate:!0}),Ge(()=>t.data,N=>{r.store.commit("setData",N)},{immediate:!0,deep:!0}),To(()=>{t.expandRowKeys&&n.setExpandRowKeysAdapter(t.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},m=(N,P)=>{const{pixelX:Y,pixelY:J}=P;Math.abs(Y)>=Math.abs(J)&&(r.refs.bodyWrapper.scrollLeft+=P.pixelX/5)},b=B(()=>t.height||t.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=B(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),C=()=>{b.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(M)};Pt(async()=>{await yt(),n.updateColumns(),E(),requestAnimationFrame(C);const N=r.vnode.el,P=r.refs.headerWrapper;t.flexible&&N&&N.parentElement&&(N.parentElement.style.minWidth="0"),l.value={width:f.value=N.offsetWidth,height:N.offsetHeight,headerHeight:t.showHeader&&P?P.offsetHeight:null},n.states.columns.value.forEach(Y=>{Y.filteredValue&&Y.filteredValue.length&&r.store.commit("filterChange",{column:Y,values:Y.filteredValue,silent:!0})}),r.$ready=!0});const x=(N,P)=>{if(!N)return;const Y=Array.from(N.classList).filter(J=>!J.startsWith("is-scrolling-"));Y.push(e.scrollX.value?P:"is-scrolling-none"),N.className=Y.join(" ")},_=N=>{const{tableWrapper:P}=r.refs;x(P,N)},T=N=>{const{tableWrapper:P}=r.refs;return!!(P&&P.classList.contains(N))},M=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const le="is-scrolling-none";T(le)||_(le);return}const N=r.refs.scrollBarRef.wrapRef;if(!N)return;const{scrollLeft:P,offsetWidth:Y,scrollWidth:J}=N,{headerWrapper:re,footerWrapper:oe}=r.refs;re&&(re.scrollLeft=P),oe&&(oe.scrollLeft=P);const ue=J-Y-1;P>=ue?_("is-scrolling-right"):_(P===0?"is-scrolling-left":"is-scrolling-middle")},E=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Sr(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),t.fit?yi(r.vnode.el,k):Sr(window,"resize",k),yi(r.refs.bodyWrapper,()=>{var N,P;k(),(P=(N=r.refs)==null?void 0:N.scrollBarRef)==null||P.update()}))},k=()=>{var N,P,Y,J;const re=r.vnode.el;if(!r.$ready||!re)return;let oe=!1;const{width:ue,height:le,headerHeight:fe}=l.value,se=f.value=re.offsetWidth;ue!==se&&(oe=!0);const _e=re.offsetHeight;(t.height||b.value)&&le!==_e&&(oe=!0);const ve=t.tableLayout==="fixed"?r.refs.headerWrapper:(N=r.refs.tableHeaderRef)==null?void 0:N.$el;t.showHeader&&(ve==null?void 0:ve.offsetHeight)!==fe&&(oe=!0),d.value=((P=r.refs.tableWrapper)==null?void 0:P.scrollHeight)||0,p.value=(ve==null?void 0:ve.scrollHeight)||0,v.value=((Y=r.refs.footerWrapper)==null?void 0:Y.offsetHeight)||0,g.value=((J=r.refs.appendWrapper)==null?void 0:J.offsetHeight)||0,h.value=d.value-p.value-v.value-g.value,oe&&(l.value={width:se,height:_e,headerHeight:t.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},C())},R=va(),L=B(()=>{const{bodyWidth:N,scrollY:P,gutterWidth:Y}=e;return N.value?`${N.value-(P.value?Y:0)}px`:""}),A=B(()=>t.maxHeight?"fixed":t.tableLayout),V=B(()=>{if(t.data&&t.data.length)return null;let N="100%";t.height&&h.value&&(N=`${h.value}px`);const P=f.value;return{width:P?`${P}px`:"",height:N}}),G=B(()=>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`}:{}),I=B(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${t.maxHeight-p.value-v.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:m,tableSize:R,emptyBlockStyle:V,handleFixedMousewheel:(N,P)=>{const Y=r.refs.bodyWrapper;if(Math.abs(P.spinY)>0){const J=Y.scrollTop;P.pixelY<0&&J!==0&&N.preventDefault(),P.pixelY>0&&Y.scrollHeight-Y.clientHeight>J&&N.preventDefault(),Y.scrollTop+=Math.ceil(P.pixelY/5)}else Y.scrollLeft+=Math.ceil(P.pixelX/5)},resizeProxyVisible:o,bodyWidth:L,resizeState:l,doLayout:C,tableBodyStyles:w,tableLayout:A,scrollbarViewStyle:c,tableInnerStyle:G,scrollbarStyle:I}}function O6e(t){const e=W(),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)};Pt(()=>{n()}),Zu(()=>{var r;(r=e.value)==null||r.disconnect()})}var A6e={data:{type:Array,default:()=>[]},size:ai,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 N6e=()=>{const t=W(),e=(i,o)=>{const s=t.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=t.value;s&&Nt(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 V6e=1;const B6e=pe({name:"ElTable",directives:{Mousewheel:wLe},components:{TableHeader:w6e,TableBody:E6e,TableFooter:k6e,ElScrollbar:ec,hColgroup:sV},props:A6e,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}=xn(),n=je("table"),r=Yt();on(nu,r);const a=s6e(r,t);r.store=a;const i=new u6e({store:r.store,table:r,fit:t.fit,showHeader:t.showHeader});r.layout=i;const o=B(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,sort:v}=R6e(a),{isHidden:g,renderExpanded:y,setDragVisible:m,isGroup:b,handleMouseLeave:w,handleHeaderFooterMousewheel:C,tableSize:x,emptyBlockStyle:_,handleFixedMousewheel:T,resizeProxyVisible:M,bodyWidth:E,resizeState:k,doLayout:R,tableBodyStyles:L,tableLayout:A,scrollbarViewStyle:V,tableInnerStyle:G,scrollbarStyle:I}=L6e(t,i,a,r),{scrollBarRef:$,scrollTo:N,setScrollLeft:P,setScrollTop:Y}=N6e(),J=Ui(R,50),re=`${n.namespace.value}-table_${V6e++}`;r.tableId=re,r.state={isGroup:b,resizeState:k,doLayout:R,debouncedUpdateLayout:J};const oe=B(()=>t.sumText||e("el.table.sumText")),ue=B(()=>t.emptyText||e("el.table.emptyText"));return O6e(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:C,handleMouseLeave:w,tableId:re,tableSize:x,isHidden:g,isEmpty:o,renderExpanded:y,resizeProxyVisible:M,resizeState:k,isGroup:b,bodyWidth:E,tableBodyStyles:L,emptyBlockStyle:_,debouncedUpdateLayout:J,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,doLayout:R,sort:v,t:e,setDragVisible:m,context:r,computedSumText:oe,computedEmptyText:ue,tableLayout:A,scrollbarViewStyle:V,tableInnerStyle:G,scrollbarStyle:I,scrollBarRef:$,scrollTo:N,setScrollLeft:P,setScrollTop:Y}}}),I6e=["data-prefix"],$6e={ref:"hiddenColumns",class:"hidden-columns"};function P6e(t,e,n,r,a,i){const o=Xe("hColgroup"),s=Xe("table-header"),l=Xe("table-body"),u=Xe("el-scrollbar"),c=Xe("table-footer"),f=Fm("mousewheel");return z(),ne("div",{ref:"tableWrapper",class:j([{[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:St(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...d)=>t.handleMouseLeave&&t.handleMouseLeave(...d))},[U("div",{class:j(t.ns.e("inner-wrapper")),style:St(t.tableInnerStyle)},[U("div",$6e,[ze(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?Ft((z(),ne("div",{key:0,ref:"headerWrapper",class:j(t.ns.e("header-wrapper"))},[U("table",{ref:"tableHeader",class:j(t.ns.e("header")),style:St(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[H(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),H(s,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,t.handleHeaderFooterMousewheel]]):we("v-if",!0),U("div",{ref:"bodyWrapper",class:j(t.ns.e("body-wrapper"))},[H(u,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn},{default:X(()=>[U("table",{ref:"tableBody",class:j(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:St({width:t.bodyWidth,tableLayout:t.tableLayout})},[H(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(z(),xe(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"])):we("v-if",!0),H(l,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),t.isEmpty?(z(),ne("div",{key:0,ref:"emptyBlock",style:St(t.emptyBlockStyle),class:j(t.ns.e("empty-block"))},[U("span",{class:j(t.ns.e("empty-text"))},[ze(t.$slots,"empty",{},()=>[lt(Ke(t.computedEmptyText),1)])],2)],6)):we("v-if",!0),t.$slots.append?(z(),ne("div",{key:1,ref:"appendWrapper",class:j(t.ns.e("append-wrapper"))},[ze(t.$slots,"append")],2)):we("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),t.showSummary?Ft((z(),ne("div",{key:1,ref:"footerWrapper",class:j(t.ns.e("footer-wrapper"))},[H(c,{border:t.border,"default-sort":t.defaultSort,store:t.store,style:St(t.tableBodyStyles),"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[pn,!t.isEmpty],[f,t.handleHeaderFooterMousewheel]]):we("v-if",!0),t.border||t.isGroup?(z(),ne("div",{key:2,class:j(t.ns.e("border-left-patch"))},null,2)):we("v-if",!0)],6),Ft(U("div",{ref:"resizeProxy",class:j(t.ns.e("column-resize-proxy"))},null,2),[[pn,t.resizeProxyVisible]])],46,I6e)}var F6e=Je(B6e,[["render",P6e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const z6e={selection:"table-column--selection",expand:"table__expand-column"},U6e={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:""}},G6e=t=>z6e[t]||"",H6e={selection:{renderHeader({store:t,column:e}){function n(){return t.states.data.value&&t.states.data.value.length===0}return xt(cs,{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 xt(cs,{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)),xt("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")),xt("div",{class:a,onClick:function(o){o.stopPropagation(),e.toggleRowExpansion(t)}},{default:()=>[xt(mt,null,{default:()=>[xt(Bi)]})]})},sortable:!1,resizable:!1}};function W6e({row:t,column:e,$index:n}){var r;const a=e.property,i=a&&M_(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 j6e({row:t,treeNode:e,store:n},r=!1){const{ns:a}=n;if(!e)return r?[xt("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!e.loading&&n.loadOrToggle(t)};if(e.indent&&i.push(xt("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=Bi;e.loading&&(l=If),i.push(xt("div",{class:s,onClick:o},{default:()=>[xt(mt,{class:{[a.is("loading")]:e.loading}},{default:()=>[xt(l)]})]}))}else i.push(xt("span",{class:a.e("placeholder")}));return i}function K5(t,e){return t.reduce((n,r)=>(n[r]=r,n),e)}function K6e(t,e){const n=Yt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=K5(i,o);Object.keys(s).forEach(l=>{const u=o[l];yn(e,u)&&Ge(()=>e[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=aV(c)),u==="minWidth"&&l==="realMinWidth"&&(f=PZ(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=K5(i,o);Object.keys(s).forEach(l=>{const u=o[l];yn(e,u)&&Ge(()=>e[u],c=>{n.columnConfig.value[l]=c})})}}}function Y6e(t,e,n){const r=Yt(),a=W(""),i=W(!1),o=W(),s=W(),l=je("table");To(()=>{o.value=t.align?`is-${t.align}`:null,o.value}),To(()=>{s.value=t.headerAlign?`is-${t.headerAlign}`:o.value,s.value});const u=B(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=B(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:C}=w.states,x=C.value;return x&&Object.keys(x).length>0}),f=W(aV(t.width)),d=W(PZ(t.minWidth)),h=w=>(f.value&&(w.width=f.value),d.value&&(w.minWidth=d.value),!f.value&&d.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),p=w=>{const C=w.type,x=H6e[C]||{};Object.keys(x).forEach(T=>{const M=x[T];T!=="className"&&M!==void 0&&(w[T]=M)});const _=G6e(C);if(_){const T=`${S(l.namespace)}-${_}`;w.className=w.className?`${w.className} ${T}`:T}return w},v=w=>{Array.isArray(w)?w.forEach(x=>C(x)):C(w);function C(x){var _;((_=x==null?void 0:x.type)==null?void 0:_.name)==="ElTableColumn"&&(x.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:w=>{t.renderHeader||w.type!=="selection"&&(w.renderHeader=x=>{r.columnConfig.value.label;const _=e.header;return _?_(x):w.label});let C=w.renderCell;return w.type==="expand"?(w.renderCell=x=>xt("div",{class:"cell"},[C(x)]),n.value.renderExpanded=x=>e.default?e.default(x):e.default):(C=C||W6e,w.renderCell=x=>{let _=null;if(e.default){const L=e.default(x);_=L.some(A=>A.type!==Vi)?L:C(x)}else _=C(x);const{columns:T}=n.value.store.states,M=T.value.findIndex(L=>L.type==="default"),E=c.value&&x.cellIndex===M,k=j6e(x,E),R={class:"cell",style:{}};return w.showOverflowTooltip&&(R.class=`${R.class} ${S(l.namespace)}-tooltip`,R.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),v(_),xt("div",R,[k,_])}),w},getPropsData:(...w)=>w.reduce((C,x)=>(Array.isArray(x)&&x.forEach(_=>{C[_]=t[_]}),C),{}),getColumnElIndex:(w,C)=>Array.prototype.indexOf.call(w,C),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var q6e={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 X6e=1;var jZ=pe({name:"ElTableColumn",components:{ElCheckbox:cs},props:q6e,setup(t,{slots:e}){const n=Yt(),r=W({}),a=B(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:o}=K6e(a,t),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:p,getColumnElIndex:v,realAlign:g,updateColumnOrder:y}=Y6e(t,e,a),m=c.value;s.value=`${m.tableId||m.columnId}_column_${X6e++}`,VC(()=>{l.value=a.value!==m;const b=t.type||"default",w=t.sortable===""?!0:t.sortable,C=ba(t.showOverflowTooltip)?m.props.showOverflowTooltip:t.showOverflowTooltip,x={...U6e[b],id:s.value,type:b,property:t.prop||t.property,align:g,headerAlign:u,showOverflowTooltip:C,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:t.index,rawColumnKey:n.vnode.key};let k=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);k=X5e(x,k),k=Q5e(h,f,d)(k),r.value=k,i(),o()}),Pt(()=>{var b;const w=c.value,C=l.value?w.vnode.el.children:(b=w.refs.hiddenColumns)==null?void 0:b.children,x=()=>v(C||[],n.vnode.el);r.value.getColumnIndex=x,x()>-1&&a.value.store.commit("insertColumn",r.value,l.value?w.columnConfig.value:null,y)}),fr(()=>{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===bt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!$t(s==null?void 0:s.children)&&a.push(s)});return xt("div",a)}catch{return xt("div",[])}}});const Z6e=Zt(F6e,{TableColumn:jZ}),Q6e=Hr(jZ);var f1=(t=>(t.ASC="asc",t.DESC="desc",t))(f1||{}),d1=(t=>(t.CENTER="center",t.RIGHT="right",t))(d1||{}),KZ=(t=>(t.LEFT="left",t.RIGHT="right",t))(KZ||{});const GL={asc:"desc",desc:"asc"},h1=Symbol("placeholder"),J6e=(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 eze(t,e,n){const r=B(()=>S(e).filter(v=>!v.hidden)),a=B(()=>S(r).filter(v=>v.fixed==="left"||v.fixed===!0)),i=B(()=>S(r).filter(v=>v.fixed==="right")),o=B(()=>S(r).filter(v=>!v.fixed)),s=B(()=>{const v=[];return S(a).forEach(g=>{v.push({...g,placeholderSign:h1})}),S(o).forEach(g=>{v.push(g)}),S(i).forEach(g=>{v.push({...g,placeholderSign:h1})}),v}),l=B(()=>S(a).length||S(i).length),u=B(()=>S(e).reduce((g,y)=>(g[y.key]=J6e(y,S(n),t.fixed),g),{})),c=B(()=>S(r).reduce((v,g)=>v+g.width,0)),f=v=>S(e).find(g=>g.key===v),d=v=>S(u)[v],h=(v,g)=>{v.width=g};function p(v){var g;const{key:y}=v.currentTarget.dataset;if(!y)return;const{sortState:m,sortBy:b}=t;let w=f1.ASC;an(m)?w=GL[m[y]]:w=GL[b.order],(g=t.onColumnSort)==null||g.call(t,{column:f(y),key:y,order:w})}return{columns:e,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:r,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:p}}const tze=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=W({scrollLeft:0,scrollTop:0});function o(h){var p,v,g;const{scrollTop:y}=h;(p=e.value)==null||p.scrollTo(h),(v=n.value)==null||v.scrollToTop(y),(g=r.value)==null||g.scrollToTop(y)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(S(i))}function u(h){var p,v;i.value.scrollLeft=h,(v=(p=e.value)==null?void 0:p.scrollTo)==null||v.call(p,S(i))}function c(h){var p;s(h),(p=t.onScroll)==null||p.call(t,h)}function f({scrollTop:h}){const{scrollTop:p}=S(i);h!==p&&l(h)}function d(h,p="auto"){var v;(v=e.value)==null||v.scrollToRow(h,p)}return Ge(()=>S(i).scrollTop,(h,p)=>{h>p&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},nze=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r})=>{const a=Yt(),{emit:i}=a,o=or(!1),s=or(null),l=W(t.defaultExpandedRowKeys||[]),u=W(-1),c=or(null),f=W({}),d=W({}),h=or({}),p=or({}),v=or({}),g=B(()=>Nt(t.estimatedRowHeight));function y(T){var M;(M=t.onRowsRendered)==null||M.call(t,T),T.rowCacheEnd>S(u)&&(u.value=T.rowCacheEnd)}function m({hovered:T,rowKey:M}){s.value=T?M:null}function b({expanded:T,rowData:M,rowIndex:E,rowKey:k}){var R,L;const A=[...S(l)],V=A.indexOf(k);T?V===-1&&A.push(k):V>-1&&A.splice(V,1),l.value=A,i("update:expandedRowKeys",A),(R=t.onRowExpand)==null||R.call(t,{expanded:T,rowData:M,rowIndex:E,rowKey:k}),(L=t.onExpandedRowsChange)==null||L.call(t,A)}const w=Ui(()=>{var T,M,E,k;o.value=!0,f.value={...S(f),...S(d)},C(S(c),!1),d.value={},c.value=null,(T=e.value)==null||T.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(E=r.value)==null||E.forceUpdate(),(k=a.proxy)==null||k.$forceUpdate(),o.value=!1},0);function C(T,M=!1){S(g)&&[e,n,r].forEach(E=>{const k=S(E);k&&k.resetAfterRowIndex(T,M)})}function x(T,M,E){const k=S(c);(k===null||k>E)&&(c.value=E),d.value[T]=M}function _({rowKey:T,height:M,rowIndex:E},k){k?k===KZ.RIGHT?v.value[T]=M:h.value[T]=M:p.value[T]=M;const R=Math.max(...[h,v,p].map(L=>L.value[T]||0));S(f)[T]!==R&&(x(T,R,E),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:C,onRowExpanded:b,onRowHovered:m,onRowsRendered:y,onRowHeightChange:_}},rze=(t,{expandedRowKeys:e,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=W({}),i=B(()=>{const s={},{data:l,rowKey:u}=t,c=S(e);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(p=>d.add(p));let h=l.slice();for(h.forEach(p=>s[p[u]]=0);h.length>0;){const p=h.shift();f.push(p),d.has(p[u])&&Array.isArray(p.children)&&p.children.length>0&&(h=[...p.children,...h],p.children.forEach(v=>s[v[u]]=s[p[u]]+1))}return a.value=s,f}),o=B(()=>{const{data:s,expandColumnKey:l}=t;return l?S(i):s});return Ge(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},aze=(t,e)=>t+e,U_=t=>dt(t)?t.reduce(aze,0):t,jh=(t,e,n={})=>Vt(t)?t(e):t??n,Yc=t=>(["width","maxWidth","minWidth","height"].forEach(e=>{t[e]=qr(t[e])}),t),YZ=t=>Dr(t)?e=>xt(t,e):t,ize=(t,{columnsTotalWidth:e,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=B(()=>{const{fixed:b,width:w,vScrollbarSize:C}=t,x=w-C;return b?Math.max(Math.round(S(e)),x):x}),o=B(()=>S(i)+(t.fixed?t.vScrollbarSize:0)),s=B(()=>{const{height:b=0,maxHeight:w=0,footerHeight:C,hScrollbarSize:x}=t;if(w>0){const _=S(p),T=S(l),E=S(h)+_+T+x;return Math.min(E,w-C)}return b-C}),l=B(()=>{const{rowHeight:b,estimatedRowHeight:w}=t,C=S(n);return Nt(w)?C.length*w:C.length*b}),u=B(()=>{const{maxHeight:b}=t,w=S(s);if(Nt(b)&&b>0)return w;const C=S(l)+S(h)+S(p);return Math.min(w,C)}),c=b=>b.width,f=B(()=>U_(S(r).map(c))),d=B(()=>U_(S(a).map(c))),h=B(()=>U_(t.headerHeight)),p=B(()=>{var b;return(((b=t.fixedData)==null?void 0:b.length)||0)*t.rowHeight}),v=B(()=>S(s)-S(h)-S(p)),g=B(()=>{const{style:b={},height:w,width:C}=t;return Yc({...b,height:w,width:C})}),y=B(()=>Yc({height:t.footerHeight})),m=B(()=>({top:qr(S(h)),bottom:qr(t.footerHeight),width:qr(t.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:v,footerHeight:y,emptyStyle:m,rootStyle:g,headerHeight:h}},oze=t=>{const e=W(),n=W(0),r=W(0);let a;return Pt(()=>{a=yi(e,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),d=Number.parseInt(l)||0,h=Number.parseInt(u)||0,p=Number.parseInt(c)||0,v=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-p-v}).stop}),fr(()=>{a==null||a()}),Ge([n,r],([i,o])=>{var s;(s=t.onResize)==null||s.call(t,{width:i,height:o})}),{sizer:e,width:n,height:r}};function sze(t){const e=W(),n=W(),r=W(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=eze(t,Rr(t,"columns"),Rr(t,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:y,scrollPos:m}=tze(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:q}),{expandedRowKeys:b,hoveringRowKey:w,lastRenderedRowIndex:C,isDynamic:x,isResetting:_,rowHeights:T,resetAfterIndex:M,onRowExpanded:E,onRowHeightChange:k,onRowHovered:R,onRowsRendered:L}=nze(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r}),{data:A,depthMap:V}=rze(t,{expandedRowKeys:b,lastRenderedRowIndex:C,resetAfterIndex:M}),{bodyWidth:G,fixedTableHeight:I,mainTableHeight:$,leftTableWidth:N,rightTableWidth:P,headerWidth:Y,rowsHeight:J,windowHeight:re,footerHeight:oe,emptyStyle:ue,rootStyle:le,headerHeight:fe}=ize(t,{columnsTotalWidth:o,data:A,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),se=or(!1),_e=W(),ve=B(()=>{const ce=S(A).length===0;return dt(t.fixedData)?t.fixedData.length===0&&ce:ce});function he(ce){const{estimatedRowHeight:Se,rowHeight:Ae,rowKey:Te}=t;return Se?S(T)[S(A)[ce][Te]]||Se:Ae}function q(){const{onEndReached:ce}=t;if(!ce)return;const{scrollTop:Se}=S(m),Ae=S(J),Te=S(re),Oe=Ae-(Se+Te)+t.hScrollbarSize;S(C)>=0&&Ae===Se+S($)-S(fe)&&ce(Oe)}return Ge(()=>t.expandedRowKeys,ce=>b.value=ce,{deep:!0}),{columns:a,containerRef:_e,mainTableRef:e,leftTableRef:n,rightTableRef:r,isDynamic:x,isResetting:_,isScrolling:se,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:A,expandedRowKeys:b,depthMap:V,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:G,emptyStyle:ue,rootStyle:le,headerWidth:Y,footerHeight:oe,mainTableHeight:$,fixedTableHeight:I,leftTableWidth:N,rightTableWidth:P,showEmpty:ve,getRowHeight:he,onColumnSorted:f,onRowHovered:R,onRowExpanded:E,onRowsRendered:L,onRowHeightChange:k,scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:y}}const lV=Symbol("tableV2"),qZ=String,vb={type:De(Array),required:!0},uV={type:De(Array)},XZ={...uV,required:!0},lze=String,Y5={type:De(Array),default:()=>Er([])},Qd={type:Number,required:!0},ZZ={type:De([String,Number,Symbol]),default:"id"},q5={type:De(Object)},hh=et({class:String,columns:vb,columnsStyles:{type:De(Object),required:!0},depth:Number,expandColumnKey:lze,estimatedRowHeight:{...Dh.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:De(Function)},onRowHover:{type:De(Function)},onRowHeightChange:{type:De(Function)},rowData:{type:De(Object),required:!0},rowEventHandlers:{type:De(Object)},rowIndex:{type:Number,required:!0},rowKey:ZZ,style:{type:De(Object)}}),_M={type:Number,required:!0},cV=et({class:String,columns:vb,fixedHeaderData:{type:De(Array)},headerData:{type:De(Array),required:!0},headerHeight:{type:De([Number,Array]),default:50},rowWidth:_M,rowHeight:{type:Number,default:50},height:_M,width:_M}),G_=et({columns:vb,data:XZ,fixedData:uV,estimatedRowHeight:hh.estimatedRowHeight,width:Qd,height:Qd,headerWidth:Qd,headerHeight:cV.headerHeight,bodyWidth:Qd,rowHeight:Qd,cache:wZ.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Dh.scrollbarAlwaysOn,scrollbarStartGap:Dh.scrollbarStartGap,scrollbarEndGap:Dh.scrollbarEndGap,class:qZ,style:q5,containerStyle:q5,getRowHeight:{type:De(Function),required:!0},rowKey:hh.rowKey,onRowsRendered:{type:De(Function)},onScroll:{type:De(Function)}}),uze=et({cache:G_.cache,estimatedRowHeight:hh.estimatedRowHeight,rowKey:ZZ,headerClass:{type:De([String,Function])},headerProps:{type:De([Object,Function])},headerCellProps:{type:De([Object,Function])},headerHeight:cV.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:De([String,Function])},rowProps:{type:De([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:De([Object,Function])},columns:vb,data:XZ,dataGetter:{type:De(Function)},fixedData:uV,expandColumnKey:hh.expandColumnKey,expandedRowKeys:Y5,defaultExpandedRowKeys:Y5,class:qZ,fixed:Boolean,style:{type:De(Object)},width:Qd,height:Qd,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Dh.hScrollbarSize,vScrollbarSize:Dh.vScrollbarSize,scrollbarAlwaysOn:CZ.alwaysOn,sortBy:{type:De(Object),default:()=>({})},sortState:{type:De(Object),default:void 0},onColumnSort:{type:De(Function)},onExpandedRowsChange:{type:De(Function)},onEndReached:{type:De(Function)},onRowExpand:hh.onRowExpand,onScroll:G_.onScroll,onRowsRendered:G_.onRowsRendered,rowEventHandlers:hh.rowEventHandlers}),fV=(t,{slots:e})=>{var n;const{cellData:r,style:a}=t,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return H("div",{class:t.class,title:i,style:a},[e.default?e.default(t):i])};fV.displayName="ElTableV2Cell";fV.inheritAttrs=!1;const dV=(t,{slots:e})=>{var n,r;return e.default?e.default(t):H("div",{class:t.class,title:(n=t.column)==null?void 0:n.title},[(r=t.column)==null?void 0:r.title])};dV.displayName="ElTableV2HeaderCell";dV.inheritAttrs=!1;const cze=et({class:String,columns:vb,columnsStyles:{type:De(Object),required:!0},headerIndex:Number,style:{type:De(Object)}}),fze=pe({name:"ElTableV2HeaderRow",props:cze,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=>dt(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),H("div",{class:t.class,style:i,role:"row"},[o])}}}),dze="ElTableV2Header",hze=pe({name:dze,props:cV,setup(t,{slots:e,expose:n}){const r=je("table-v2"),a=W(),i=B(()=>Yc({width:t.width,height:t.height})),o=B(()=>Yc({width:t.rowWidth,height:t.height})),s=B(()=>Wh(S(t.headerHeight))),l=f=>{const d=S(a);yt(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:p}=t;return h==null?void 0:h.map((v,g)=>{var y;const m=Yc({height:p,width:"100%"});return(y=e.fixed)==null?void 0:y.call(e,{class:f,columns:d,rowData:v,rowIndex:-(g+1),style:m})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:d}=t;return S(s).map((h,p)=>{var v;const g=Yc({width:"100%",height:h});return(v=e.dynamic)==null?void 0:v.call(e,{class:f,columns:d,headerIndex:p,style:g})})};return n({scrollToLeft:l}),()=>{if(!(t.height<=0))return H("div",{ref:a,class:t.class,style:S(i),role:"rowgroup"},[H("div",{style:S(o),class:r.e("header")},[c(),u()])])}}}),pze=t=>{const{isScrolling:e}=pt(lV),n=W(!1),r=W(),a=B(()=>Nt(t.estimatedRowHeight)&&t.rowIndex>=0),i=(l=!1)=>{const u=S(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:p}=t,{height:v}=u.getBoundingClientRect();n.value=!0,yt(()=>{if(l||v!==Number.parseInt(p.height)){const g=c[0],y=(g==null?void 0:g.placeholderSign)===h1;f==null||f({rowKey:d,height:v,rowIndex:h},g&&!y&&g.fixed)}})},o=B(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=t,d=t.rowEventHandlers||{},h={};return Object.entries(d).forEach(([p,v])=>{Vt(v)&&(h[p]=g=>{v({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const g=h[p];h[p]=y=>{f({event:y,hovered:v,rowData:l,rowIndex:u,rowKey:c}),g==null||g(y)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=t;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return Pt(()=>{S(a)&&i(!0)}),{isScrolling:e,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},vze="ElTableV2TableRow",gze=pe({name:vze,props:hh,setup(t,{expose:e,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=pze(t);return e({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:p,rowIndex:v,style:g}=t;let y=c.map((m,b)=>{const w=dt(p.children)&&p.children.length>0&&m.key===d;return n.cell({column:m,columns:c,columnIndex:b,depth:h,style:f[m.key],rowData:p,rowIndex:v,isScrolling:S(i),expandIconProps:w?{rowData:p,rowIndex:v,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(m=>dt(m)&&m.length===1?m[0]:m),style:g,columns:c,depth:h,rowData:p,rowIndex:v,isScrolling:S(i)})),S(o)){const{height:m,...b}=g||{},w=S(s);return H("div",en({ref:l,class:t.class,style:w?g:b,role:"row"},r,S(a)),[y])}return H("div",en(r,{ref:l,class:t.class,style:g,role:"row"},S(a)),[y])}}}),yze=t=>{const{sortOrder:e}=t;return H(mt,{size:14,class:t.class},{default:()=>[e===f1.ASC?H(_Ce,null,null):H(gCe,null,null)]})},mze=t=>{const{expanded:e,expandable:n,onExpand:r,style:a,size:i}=t,o={onClick:n?()=>r(!e):void 0,class:t.class};return H(mt,en(o,{size:i,style:a}),{default:()=>[H(Bi,null,null)]})},bze="ElTableV2Grid",Sze=t=>{const e=W(),n=W(),r=B(()=>{const{data:v,rowHeight:g,estimatedRowHeight:y}=t;if(!y)return v.length*g}),a=B(()=>{const{fixedData:v,rowHeight:g}=t;return((v==null?void 0:v.length)||0)*g}),i=B(()=>U_(t.headerHeight)),o=B(()=>{const{height:v}=t;return Math.max(0,v-S(i)-S(a))}),s=B(()=>S(i)+S(a)>0),l=({data:v,rowIndex:g})=>v[g][t.rowKey];function u({rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m}){var b;(b=t.onRowsRendered)==null||b.call(t,{rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m})}function c(v,g){var y;(y=n.value)==null||y.resetAfterRowIndex(v,g)}function f(v,g){const y=S(e),m=S(n);!y||!m||(an(v)?(y.scrollToLeft(v.scrollLeft),m.scrollTo(v)):(y.scrollToLeft(v),m.scrollTo({scrollLeft:v,scrollTop:g})))}function d(v){var g;(g=S(n))==null||g.scrollTo({scrollTop:v})}function h(v,g){var y;(y=S(n))==null||y.scrollToItem(v,1,g)}function p(){var v,g;(v=S(n))==null||v.$forceUpdate(),(g=S(e))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:p,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:e,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},hV=pe({name:bze,props:G_,setup(t,{slots:e,expose:n}){const{ns:r}=pt(lV),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:p,scrollTo:v,scrollToTop:g,scrollToRow:y}=Sze(t);n({forceUpdate:f,totalHeight:c,scrollTo:v,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:p});const m=()=>t.bodyWidth;return()=>{const{cache:b,columns:w,data:C,fixedData:x,useIsScrolling:_,scrollbarAlwaysOn:T,scrollbarEndGap:M,scrollbarStartGap:E,style:k,rowHeight:R,bodyWidth:L,estimatedRowHeight:A,headerWidth:V,height:G,width:I,getRowHeight:$,onScroll:N}=t,P=Nt(A),Y=P?XPe:jPe,J=S(u);return H("div",{role:"table",class:[r.e("table"),t.class],style:k},[H(Y,{ref:a,data:C,useIsScrolling:_,itemKey:d,columnCache:0,columnWidth:P?m:L,totalColumn:1,totalRow:C.length,rowCache:b,rowHeight:P?$:R,width:I,height:S(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:E,scrollbarEndGap:M,scrollbarAlwaysOn:T,onScroll:N,onItemRendered:h,perfMode:!1},{default:re=>{var oe;const ue=C[re.rowIndex];return(oe=e.row)==null?void 0:oe.call(e,{...re,columns:w,rowData:ue})}}),S(s)&&H(hze,{ref:l,class:r.e("header-wrapper"),columns:w,headerData:C,headerHeight:t.headerHeight,fixedHeaderData:x,rowWidth:V,rowHeight:R,width:I,height:Math.min(J+S(i),G)},{dynamic:e.header,fixed:e.row})])}}});function wze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Dr(t)}const _ze=(t,{slots:e})=>{const{mainTableRef:n,...r}=t;return H(hV,en({ref:n},r),wze(e)?e:{default:()=>[e]})};function xze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Dr(t)}const Cze=(t,{slots:e})=>{if(!t.columns.length)return;const{leftTableRef:n,...r}=t;return H(hV,en({ref:n},r),xze(e)?e:{default:()=>[e]})};function Tze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Dr(t)}const Eze=(t,{slots:e})=>{if(!t.columns.length)return;const{rightTableRef:n,...r}=t;return H(hV,en({ref:n},r),Tze(e)?e:{default:()=>[e]})};function Mze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Dr(t)}const Dze=(t,{slots:e})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:p,rowClass:v,rowKey:g,rowEventHandlers:y,ns:m,onRowHovered:b,onRowExpanded:w}=t,C=jh(v,{columns:n,rowData:c,rowIndex:f},""),x=jh(p,{columns:n,rowData:c,rowIndex:f}),_=c[g],T=a[_]||0,M=!!i,E=f<0,k=[m.e("row"),C,{[m.e(`row-depth-${T}`)]:M&&f>=0,[m.is("expanded")]:M&&o.includes(_),[m.is("hovered")]:!h&&_===u,[m.is("fixed")]:!T&&E,[m.is("customized")]:!!e.row}],R=l?b:void 0,L={...x,columns:n,columnsStyles:r,class:k,depth:T,expandColumnKey:i,estimatedRowHeight:E?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:_,rowEventHandlers:y,style:d};return H(gze,en(L,{onRowHover:R,onRowExpand:w}),Mze(e)?e:{default:()=>[e]})},HL=({columns:t,column:e,columnIndex:n,depth:r,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:d,indentSize:h,iconSize:p,rowKey:v},{slots:g})=>{const y=Yc(l);if(e.placeholderSign===h1)return H("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:m,dataKey:b,dataGetter:w}=e,x=YZ(m)||g.default||(G=>H(fV,G,null)),_=Vt(w)?w({columns:t,column:e,columnIndex:n,rowData:o,rowIndex:s}):Cr(o,b??""),T=jh(f,{cellData:_,columns:t,column:e,columnIndex:n,rowIndex:s,rowData:o}),M={class:c.e("cell-text"),columns:t,column:e,columnIndex:n,cellData:_,isScrolling:i,rowData:o,rowIndex:s},E=x(M),k=[c.e("row-cell"),e.class,e.align===d1.CENTER&&c.is("align-center"),e.align===d1.RIGHT&&c.is("align-right")],R=s>=0&&d&&e.key===d,L=s>=0&&u.includes(o[v]);let A;const V=`margin-inline-start: ${r*h}px;`;return R&&(an(a)?A=H(mze,en(a,{class:[c.e("expand-icon"),c.is("expanded",L)],size:p,expanded:L,style:V,expandable:!0}),null):A=H("div",{style:[V,`width: ${p}px; height: ${p}px;`].join(" ")},null)),H("div",en({class:k,style:y},T,{role:"cell"}),[A,E])};HL.inheritAttrs=!1;function kze(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Dr(t)}const Rze=({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"),jh(a,l,""),{[o.is("customized")]:!!s.header}],c={...jh(i,l),columnsStyles:e,class:u,columns:t,headerIndex:n,style:r};return H(fze,c,kze(s)?s:{default:()=>[s]})},X5=(t,{slots:e})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=t,o=Yc(a);if(n.placeholderSign===h1)return H("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...t,class:r.e("header-cell-text")},d=(YZ(s)||e.default||(w=>H(dV,w,null)))(c),{sortBy:h,sortState:p,headerCellProps:v}=t;let g,y;if(p){const w=p[n.key];g=!!GL[w],y=g?w:f1.ASC}else g=n.key===h.key,y=g?h.order:f1.ASC;const m=[r.e("header-cell"),jh(l,t,""),n.align===d1.CENTER&&r.is("align-center"),n.align===d1.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...jh(v,t),onClick:n.sortable?i:void 0,class:m,style:o,"data-key":n.key};return H("div",en(b,{role:"columnheader"}),[d,u&&H(yze,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])},QZ=(t,{slots:e})=>{var n;return H("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};QZ.displayName="ElTableV2Footer";const JZ=(t,{slots:e})=>H("div",{class:t.class,style:t.style},[e.default?e.default():H(oZ,null,null)]);JZ.displayName="ElTableV2Empty";const eQ=(t,{slots:e})=>{var n;return H("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};eQ.displayName="ElTableV2Overlay";function W0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Dr(t)}const Lze="ElTableV2",Oze=pe({name:Lze,props:uze,setup(t,{slots:e,expose:n}){const r=je("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:p,hasFixedColumns:v,hoveringRowKey:g,mainTableRef:y,leftTableRef:m,rightTableRef:b,isDynamic:w,isResetting:C,isScrolling:x,bodyWidth:_,emptyStyle:T,rootStyle:M,headerWidth:E,footerHeight:k,showEmpty:R,scrollTo:L,scrollToLeft:A,scrollToTop:V,scrollToRow:G,getRowHeight:I,onColumnSorted:$,onRowHeightChange:N,onRowHovered:P,onRowExpanded:Y,onRowsRendered:J,onScroll:re,onVerticalScroll:oe}=sze(t);return n({scrollTo:L,scrollToLeft:A,scrollToTop:V,scrollToRow:G}),on(lV,{ns:r,isResetting:C,hoveringRowKey:g,isScrolling:x}),()=>{const{cache:ue,cellProps:le,estimatedRowHeight:fe,expandColumnKey:se,fixedData:_e,headerHeight:ve,headerClass:he,headerProps:q,headerCellProps:ce,sortBy:Se,sortState:Ae,rowHeight:Te,rowClass:Oe,rowEventHandlers:He,rowKey:$e,rowProps:Ne,scrollbarAlwaysOn:Le,indentSize:ie,iconSize:Re,useIsScrolling:We,vScrollbarSize:me,width:Ye}=t,ht=S(d),Ct={cache:ue,class:r.e("main"),columns:S(s),data:ht,fixedData:_e,estimatedRowHeight:fe,bodyWidth:S(_)+me,headerHeight:ve,headerWidth:S(E),height:S(l),mainTableRef:y,rowKey:$e,rowHeight:Te,scrollbarAlwaysOn:Le,scrollbarStartGap:2,scrollbarEndGap:me,useIsScrolling:We,width:Ye,getRowHeight:I,onRowsRendered:J,onScroll:re},Tt=S(c),it=S(u),Me={cache:ue,class:r.e("left"),columns:S(i),data:ht,estimatedRowHeight:fe,leftTableRef:m,rowHeight:Te,bodyWidth:Tt,headerWidth:Tt,headerHeight:ve,height:it,rowKey:$e,scrollbarAlwaysOn:Le,scrollbarStartGap:2,scrollbarEndGap:me,useIsScrolling:We,width:Tt,getRowHeight:I,onScroll:oe},be=S(f)+me,Ie={cache:ue,class:r.e("right"),columns:S(o),data:ht,estimatedRowHeight:fe,rightTableRef:b,rowHeight:Te,bodyWidth:be,headerWidth:be,headerHeight:ve,height:it,rowKey:$e,scrollbarAlwaysOn:Le,scrollbarStartGap:2,scrollbarEndGap:me,width:be,style:`--${S(r.namespace)}-table-scrollbar-size: ${me}px`,useIsScrolling:We,getRowHeight:I,onScroll:oe},de=S(a),rt={ns:r,depthMap:S(h),columnsStyles:de,expandColumnKey:se,expandedRowKeys:S(p),estimatedRowHeight:fe,hasFixedColumns:S(v),hoveringRowKey:S(g),rowProps:Ne,rowClass:Oe,rowKey:$e,rowEventHandlers:He,onRowHovered:P,onRowExpanded:Y,onRowHeightChange:N},Fe={cellProps:le,expandColumnKey:se,indentSize:ie,iconSize:Re,rowKey:$e,expandedRowKeys:S(p),ns:r},Bt={ns:r,headerClass:he,headerProps:q,columnsStyles:de},Yn={ns:r,sortBy:Se,sortState:Ae,headerCellProps:ce,onColumnSorted:$},$n={row:Pe=>H(Dze,en(Pe,rt),{row:e.row,cell:st=>{let Ee;return e.cell?H(HL,en(st,Fe,{style:de[st.column.key]}),W0(Ee=e.cell(st))?Ee:{default:()=>[Ee]}):H(HL,en(st,Fe,{style:de[st.column.key]}),null)}}),header:Pe=>H(Rze,en(Pe,Bt),{header:e.header,cell:st=>{let Ee;return e["header-cell"]?H(X5,en(st,Yn,{style:de[st.column.key]}),W0(Ee=e["header-cell"](st))?Ee:{default:()=>[Ee]}):H(X5,en(st,Yn,{style:de[st.column.key]}),null)}})},dr=[t.class,r.b(),r.e("root"),{[r.is("dynamic")]:S(w)}],_r={class:r.e("footer"),style:S(k)};return H("div",{class:dr,style:S(M)},[H(_ze,Ct,W0($n)?$n:{default:()=>[$n]}),H(Cze,Me,W0($n)?$n:{default:()=>[$n]}),H(Eze,Ie,W0($n)?$n:{default:()=>[$n]}),e.footer&&H(QZ,_r,{default:e.footer}),S(R)&&H(JZ,{class:r.e("empty"),style:S(T)},{default:e.empty}),e.overlay&&H(eQ,{class:r.e("overlay")},{default:e.overlay})])}}}),Aze=et({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:De(Function)}}),Nze=pe({name:"ElAutoResizer",props:Aze,setup(t,{slots:e}){const n=je("auto-resizer"),{height:r,width:a,sizer:i}=oze(t),o={width:"100%",height:"100%"};return()=>{var s;return H("div",{ref:i,class:n.b(),style:o},[(s=e.default)==null?void 0:s.call(e,{height:r.value,width:a.value})])}}}),Vze=Zt(Oze),Bze=Zt(Nze),mT=Symbol("tabsRootContextKey"),Ize=et({tabs:{type:De(Array),default:()=>Er([])}}),tQ="ElTabBar",$ze=pe({name:tQ}),Pze=pe({...$ze,props:Ize,setup(t,{expose:e}){const n=t,r=Yt(),a=pt(mT);a||pa(tQ,"<el-tabs><el-tab-bar /></el-tabs>");const i=je("tabs"),o=W(),s=W(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",p=h==="x"?"left":"top";return n.tabs.every(v=>{var g,y;const m=(y=(g=r.parent)==null?void 0:g.refs)==null?void 0:y[`tab-${v.uid}`];if(!m)return!1;if(!v.active)return!0;c=m[`offset${Rl(p)}`],f=m[`client${Rl(d)}`];const b=window.getComputedStyle(m);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight)),c+=Number.parseFloat(b.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${Rl(h)}(${c}px)`}},u=()=>s.value=l();return Ge(()=>n.tabs,async()=>{await yt(),u()},{immediate:!0}),yi(o,()=>u()),e({ref:o,update:u}),(c,f)=>(z(),ne("div",{ref_key:"barRef",ref:o,class:j([S(i).e("active-bar"),S(i).is(S(a).props.tabPosition)]),style:St(s.value)},null,6))}});var Fze=Je(Pze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const zze=et({panes:{type:De(Array),default:()=>Er([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Uze={tabClick:(t,e,n)=>n instanceof Event,tabRemove:(t,e)=>e instanceof Event},Z5="ElTabNav",Gze=pe({name:Z5,props:zze,emits:Uze,setup(t,{expose:e,emit:n}){const r=Yt(),a=pt(mT);a||pa(Z5,"<el-tabs><tab-nav /></el-tabs>");const i=je("tabs"),o=v0e(),s=T0e(),l=W(),u=W(),c=W(),f=W(),d=W(!1),h=W(0),p=W(!1),v=W(!0),g=B(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=B(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),m=()=>{if(!l.value)return;const M=l.value[`offset${Rl(g.value)}`],E=h.value;if(!E)return;const k=E>M?E-M:0;h.value=k},b=()=>{if(!l.value||!u.value)return;const M=u.value[`offset${Rl(g.value)}`],E=l.value[`offset${Rl(g.value)}`],k=h.value;if(M-k<=E)return;const R=M-k>E*2?k+E:M-E;h.value=R},w=async()=>{const M=u.value;if(!d.value||!c.value||!l.value||!M)return;await yt();const E=c.value.querySelector(".is-active");if(!E)return;const k=l.value,R=["top","bottom"].includes(a.props.tabPosition),L=E.getBoundingClientRect(),A=k.getBoundingClientRect(),V=R?M.offsetWidth-A.width:M.offsetHeight-A.height,G=h.value;let I=G;R?(L.left<A.left&&(I=G-(A.left-L.left)),L.right>A.right&&(I=G+L.right-A.right)):(L.top<A.top&&(I=G-(A.top-L.top)),L.bottom>A.bottom&&(I=G+(L.bottom-A.bottom))),I=Math.max(I,0),h.value=Math.min(I,V)},C=()=>{var M;if(!u.value||!l.value)return;t.stretch&&((M=f.value)==null||M.update());const E=u.value[`offset${Rl(g.value)}`],k=l.value[`offset${Rl(g.value)}`],R=h.value;k<E?(d.value=d.value||{},d.value.prev=R,d.value.next=R+k<E,E-R<k&&(h.value=E-k)):(d.value=!1,R>0&&(h.value=0))},x=M=>{const E=M.code,{up:k,down:R,left:L,right:A}=_t;if(![k,R,L,A].includes(E))return;const V=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),G=V.indexOf(M.target);let I;E===L||E===k?G===0?I=V.length-1:I=G-1:G<V.length-1?I=G+1:I=0,V[I].focus({preventScroll:!0}),V[I].click(),_()},_=()=>{v.value&&(p.value=!0)},T=()=>p.value=!1;return Ge(o,M=>{M==="hidden"?v.value=!1:M==="visible"&&setTimeout(()=>v.value=!0,50)}),Ge(s,M=>{M?setTimeout(()=>v.value=!0,50):v.value=!1}),yi(c,C),Pt(()=>setTimeout(()=>w(),0)),Xu(()=>C()),e({scrollToActiveTab:w,removeFocus:T}),Ge(()=>t.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const M=d.value?[H("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:m},[H(mt,null,{default:()=>[H(bf,null,null)]})]),H("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:b},[H(mt,null,{default:()=>[H(Bi,null,null)]})])]:null,E=t.panes.map((k,R)=>{var L,A,V,G;const I=k.uid,$=k.props.disabled,N=(A=(L=k.props.name)!=null?L:k.index)!=null?A:`${R}`,P=!$&&(k.isClosable||t.editable);k.index=`${R}`;const Y=P?H(mt,{class:"is-icon-close",onClick:oe=>n("tabRemove",k,oe)},{default:()=>[H(Qs,null,null)]}):null,J=((G=(V=k.slots).label)==null?void 0:G.call(V))||k.props.label,re=!$&&k.active?0:-1;return H("div",{ref:`tab-${I}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",k.active),i.is("disabled",$),i.is("closable",P),i.is("focus",p.value)],id:`tab-${N}`,key:`tab-${I}`,"aria-controls":`pane-${N}`,role:"tab","aria-selected":k.active,tabindex:re,onFocus:()=>_(),onBlur:()=>T(),onClick:oe=>{T(),n("tabClick",k,N,oe)},onKeydown:oe=>{P&&(oe.code===_t.delete||oe.code===_t.backspace)&&n("tabRemove",k,oe)}},[J,Y])});return H("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[M,H("div",{class:i.e("nav-scroll"),ref:l},[H("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",t.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:y.value,role:"tablist",onKeydown:x},[t.type?null:H(Fze,{ref:f,tabs:[...t.panes]},null),E])])])}}}),Hze=et({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:De(Function),default:()=>!0},stretch:Boolean}),xM=t=>$t(t)||Nt(t),Wze={[Qt]:t=>xM(t),tabClick:(t,e)=>e instanceof Event,tabChange:t=>xM(t),edit:(t,e)=>["remove","add"].includes(e),tabRemove:t=>xM(t),tabAdd:()=>!0};var jze=pe({name:"ElTabs",props:Hze,emits:Wze,setup(t,{emit:e,slots:n,expose:r}){var a,i;const o=je("tabs"),{children:s,addChild:l,removeChild:u}=VN(Yt(),"ElTabPane"),c=W(),f=W((i=(a=t.modelValue)!=null?a:t.activeName)!=null?i:"0"),d=y=>{f.value=y,e(Qt,y),e("tabChange",y)},h=async y=>{var m,b,w;if(!(f.value===y||ba(y)))try{await((m=t.beforeLeave)==null?void 0:m.call(t,y,f.value))!==!1&&(d(y),(w=(b=c.value)==null?void 0:b.removeFocus)==null||w.call(b))}catch{}},p=(y,m,b)=>{y.props.disabled||(h(m),e("tabClick",y,b))},v=(y,m)=>{y.props.disabled||ba(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 jl({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"},B(()=>!!t.activeName)),Ge(()=>t.activeName,y=>h(y)),Ge(()=>t.modelValue,y=>h(y)),Ge(f,async()=>{var y;await yt(),(y=c.value)==null||y.scrollToActiveTab()}),on(mT,{props:t,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const y=t.editable||t.addable?H("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:w=>{w.code===_t.enter&&g()}},[H(mt,{class:o.is("icon-plus")},{default:()=>[H(kY,null,null)]})]):null,m=H("div",{class:[o.e("header"),o.is(t.tabPosition)]},[y,H(Gze,{ref:c,currentName:f.value,editable:t.editable,type:t.type,panes:s.value,stretch:t.stretch,onTabClick:p,onTabRemove:v},null)]),b=H("div",{class:o.e("content")},[ze(n,"default")]);return H("div",{class:[o.b(),o.m(t.tabPosition),{[o.m("card")]:t.type==="card",[o.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[m,b]:[b,m]])}}});const Kze=et({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Yze=["id","aria-hidden","aria-labelledby"],nQ="ElTabPane",qze=pe({name:nQ}),Xze=pe({...qze,props:Kze,setup(t){const e=t,n=Yt(),r=li(),a=pt(mT);a||pa(nQ,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=je("tab-pane"),o=W(),s=B(()=>e.closable||a.props.closable),l=RP(()=>{var h;return a.currentName.value===((h=e.name)!=null?h:o.value)}),u=W(l.value),c=B(()=>{var h;return(h=e.name)!=null?h:o.value}),f=RP(()=>!e.lazy||u.value||l.value);Ge(l,h=>{h&&(u.value=!0)});const d=Rn({uid:n.uid,slots:r,props:e,paneName:c,active:l,index:o,isClosable:s});return Pt(()=>{a.registerPane(d)}),Zu(()=>{a.unregisterPane(d.uid)}),(h,p)=>S(f)?Ft((z(),ne("div",{key:0,id:`pane-${S(c)}`,class:j(S(i).b()),role:"tabpanel","aria-hidden":!S(l),"aria-labelledby":`tab-${S(c)}`},[ze(h.$slots,"default")],10,Yze)),[[pn,S(l)]]):we("v-if",!0)}});var rQ=Je(Xze,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const Zze=Zt(jze,{TabPane:rQ}),Qze=Hr(rQ),Jze=et({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:tu,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),e8e=pe({name:"ElText"}),t8e=pe({...e8e,props:Jze,setup(t){const e=t,n=va(),r=je("text"),a=B(()=>[r.b(),r.m(e.type),r.m(n.value),r.is("truncated",e.truncated)]);return(i,o)=>(z(),xe(tn(i.tag),{class:j(S(a))},{default:X(()=>[ze(i.$slots,"default")]),_:3},8,["class"]))}});var n8e=Je(t8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const r8e=Zt(n8e),a8e=et({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:ai,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:De([String,Object]),default:()=>MY},clearIcon:{type:De([String,Object]),default:()=>Bf}}),_u=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},CM=(t,e)=>{const n=_u(t);if(!n)return-1;const r=_u(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},Q5=t=>`${t}`.padStart(2,"0"),uv=t=>`${Q5(t.hours)}:${Q5(t.minutes)}`,i8e=(t,e)=>{const n=_u(t);if(!n)return"";const r=_u(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,uv(a)},o8e=pe({name:"ElTimeSelect"}),s8e=pe({...o8e,props:a8e,emits:["change","blur","focus","update:modelValue"],setup(t,{expose:e}){const n=t;qt.extend(zN);const{Option:r}=Cf,a=je("input"),i=W(),o=go(),s=B(()=>n.modelValue),l=B(()=>{const g=_u(n.start);return g?uv(g):null}),u=B(()=>{const g=_u(n.end);return g?uv(g):null}),c=B(()=>{const g=_u(n.step);return g?uv(g):null}),f=B(()=>{const g=_u(n.minTime||"");return g?uv(g):null}),d=B(()=>{const g=_u(n.maxTime||"");return g?uv(g):null}),h=B(()=>{const g=[];if(n.start&&n.end&&n.step){let y=l.value,m;for(;y&&u.value&&CM(y,u.value)<=0;)m=qt(y,"HH:mm").format(n.format),g.push({value:m,disabled:CM(y,f.value||"-1:-1")<=0||CM(y,d.value||"100:100")>=0}),y=i8e(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)=>(z(),xe(S(Cf),{ref_key:"select",ref:i,"model-value":S(s),disabled:S(o),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":y[0]||(y[0]=m=>g.$emit("update:modelValue",m)),onChange:y[1]||(y[1]=m=>g.$emit("change",m)),onBlur:y[2]||(y[2]=m=>g.$emit("blur",m)),onFocus:y[3]||(y[3]=m=>g.$emit("focus",m))},{prefix:X(()=>[g.prefixIcon?(z(),xe(S(mt),{key:0,class:j(S(a).e("prefix-icon"))},{default:X(()=>[(z(),xe(tn(g.prefixIcon)))]),_:1},8,["class"])):we("v-if",!0)]),default:X(()=>[(z(!0),ne(bt,null,ln(S(h),m=>(z(),xe(S(r),{key:m.value,label:m.value,value:m.value,disabled:m.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var H_=Je(s8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);H_.install=t=>{t.component(H_.name,H_)};const l8e=H_,u8e=l8e,c8e=pe({name:"ElTimeline",setup(t,{slots:e}){const n=je("timeline");return on("timeline",e),()=>xt("ul",{class:[n.b()]},[ze(e,"default")])}}),f8e=et({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:sr},hollow:{type:Boolean,default:!1}}),d8e=pe({name:"ElTimelineItem"}),h8e=pe({...d8e,props:f8e,setup(t){const e=t,n=je("timeline-item"),r=B(()=>[n.e("node"),n.em("node",e.size||""),n.em("node",e.type||""),n.is("hollow",e.hollow)]);return(a,i)=>(z(),ne("li",{class:j([S(n).b(),{[S(n).e("center")]:a.center}])},[U("div",{class:j(S(n).e("tail"))},null,2),a.$slots.dot?we("v-if",!0):(z(),ne("div",{key:0,class:j(S(r)),style:St({backgroundColor:a.color})},[a.icon?(z(),xe(S(mt),{key:0,class:j(S(n).e("icon"))},{default:X(()=>[(z(),xe(tn(a.icon)))]),_:1},8,["class"])):we("v-if",!0)],6)),a.$slots.dot?(z(),ne("div",{key:1,class:j(S(n).e("dot"))},[ze(a.$slots,"dot")],2)):we("v-if",!0),U("div",{class:j(S(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(z(),ne("div",{key:0,class:j([S(n).e("timestamp"),S(n).is("top")])},Ke(a.timestamp),3)):we("v-if",!0),U("div",{class:j(S(n).e("content"))},[ze(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(z(),ne("div",{key:1,class:j([S(n).e("timestamp"),S(n).is("bottom")])},Ke(a.timestamp),3)):we("v-if",!0)],2)],2))}});var aQ=Je(h8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const p8e=Zt(c8e,{TimelineItem:aQ}),v8e=Hr(aQ),iQ=et({nowrap:Boolean});var oQ=(t=>(t.top="top",t.bottom="bottom",t.left="left",t.right="right",t))(oQ||{});const g8e=Object.values(oQ),pV=et({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:De(Object),default:null}}),y8e=et({side:{type:De(String),values:g8e,required:!0}}),m8e=["absolute","fixed"],b8e=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],vV=et({ariaLabel:String,arrowPadding:{type:De(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:De(String),values:b8e,default:"bottom"},reference:{type:De(Object),default:null},offset:{type:Number,default:8},strategy:{type:De(String),values:m8e,default:"absolute"},showArrow:{type:Boolean,default:!1}}),gV=et({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:De(Function)},"onUpdate:open":{type:De(Function)}}),Lp={type:De(Function)},yV=et({onBlur:Lp,onClick:Lp,onFocus:Lp,onMouseDown:Lp,onMouseEnter:Lp,onMouseLeave:Lp}),S8e=et({...gV,...pV,...yV,...vV,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:De(Object),default:null},teleported:Boolean,to:{type:De(String),default:"body"}}),bT=Symbol("tooltipV2"),sQ=Symbol("tooltipV2Content"),TM="tooltip_v2.open",w8e=pe({name:"ElTooltipV2Root"}),_8e=pe({...w8e,props:gV,setup(t,{expose:e}){const n=t,r=W(n.defaultOpen),a=W(null),i=B({get:()=>Bwe(n.open)?r.value:n.open,set:g=>{var y;r.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),o=B(()=>Nt(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=Gh(()=>{i.value=!0},B(()=>n.delayDuration),{immediate:!1}),u=je("tooltip-v2"),c=ls(),f=()=>{l(),i.value=!0},d=()=>{S(o)?s():f()},h=f,p=()=>{l(),i.value=!1};return Ge(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(TM)),h()),(y=n.onOpenChange)==null||y.call(n,g)}),Pt(()=>{document.addEventListener(TM,p)}),fr(()=>{l(),document.removeEventListener(TM,p)}),on(bT,{contentId:c,triggerRef:a,ns:u,onClose:p,onDelayOpen:d,onOpen:h}),e({onOpen:h,onClose:p}),(g,y)=>ze(g.$slots,"default",{open:S(i)})}});var x8e=Je(_8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const C8e=pe({name:"ElTooltipV2Arrow"}),T8e=pe({...C8e,props:{...pV,...y8e},setup(t){const e=t,{ns:n}=pt(bT),{arrowRef:r}=pt(sQ),a=B(()=>{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)=>(z(),ne("span",{ref_key:"arrowRef",ref:r,style:St(S(a)),class:j(S(n).e("arrow"))},null,6))}});var J5=Je(T8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const E8e=et({style:{type:De([String,Object,Array]),default:()=>({})}}),M8e=pe({name:"ElVisuallyHidden"}),D8e=pe({...M8e,props:E8e,setup(t){const e=t,n=B(()=>[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)=>(z(),ne("span",en(r.$attrs,{style:S(n)}),[ze(r.$slots,"default")],16))}});var k8e=Je(D8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const R8e=["data-side"],L8e=pe({name:"ElTooltipV2Content"}),O8e=pe({...L8e,props:{...vV,...iQ},setup(t){const e=t,{triggerRef:n,contentId:r}=pt(bT),a=W(e.placement),i=W(e.strategy),o=W(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=lMe({placement:a,strategy:i,middleware:B(()=>{const b=[GEe(e.offset)];return e.showArrow&&b.push(uMe({arrowRef:o})),b})}),h=Kg().nextZIndex(),p=je("tooltip-v2"),v=B(()=>a.value.split("-")[0]),g=B(()=>({position:S(i),top:`${S(f)||0}px`,left:`${S(c)||0}px`,zIndex:h})),y=B(()=>{if(!e.showArrow)return{};const{arrow:b}=S(u);return{[`--${p.namespace.value}-tooltip-v2-arrow-x`]:`${b==null?void 0:b.x}px`||"",[`--${p.namespace.value}-tooltip-v2-arrow-y`]:`${b==null?void 0:b.y}px`||""}}),m=B(()=>[p.e("content"),p.is("dark",e.effect==="dark"),p.is(S(i)),e.contentClass]);return Ge(o,()=>d()),Ge(()=>e.placement,b=>a.value=b),Pt(()=>{Ge(()=>e.reference||n.value,b=>{s.value=b||void 0},{immediate:!0})}),on(sQ,{arrowRef:o}),(b,w)=>(z(),ne("div",{ref_key:"contentRef",ref:l,style:St(S(g)),"data-tooltip-v2-root":""},[b.nowrap?we("v-if",!0):(z(),ne("div",{key:0,"data-side":S(v),class:j(S(m))},[ze(b.$slots,"default",{contentStyle:S(g),contentClass:S(m)}),H(S(k8e),{id:S(r),role:"tooltip"},{default:X(()=>[b.ariaLabel?(z(),ne(bt,{key:0},[lt(Ke(b.ariaLabel),1)],64)):ze(b.$slots,"default",{key:1})]),_:3},8,["id"]),ze(b.$slots,"arrow",{style:St(S(y)),side:S(v)})],10,R8e))],4))}});var e6=Je(O8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const A8e=et({setRef:{type:De(Function),required:!0},onlyChild:Boolean});var N8e=pe({props:A8e,setup(t,{slots:e}){const n=W(),r=nT(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?vTe(i.children):i.children;return H(bt,{ref:r},[o])}}});const V8e=pe({name:"ElTooltipV2Trigger"}),B8e=pe({...V8e,props:{...iQ,...yV},setup(t){const e=t,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=pt(bT);let s=!1;const l=m=>{i.value=m},u=()=>{s=!1},c=Fr(e.onMouseEnter,a),f=Fr(e.onMouseLeave,n),d=Fr(e.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Fr(e.onFocus,()=>{s||r()}),p=Fr(e.onBlur,n),v=Fr(e.onClick,m=>{m.detail===0&&n()}),g={blur:p,click:v,focus:h,mousedown:d,mouseenter:c,mouseleave:f},y=(m,b,w)=>{m&&Object.entries(b).forEach(([C,x])=>{m[w](C,x)})};return Ge(i,(m,b)=>{y(m,g,"addEventListener"),y(b,g,"removeEventListener"),m&&m.setAttribute("aria-describedby",o.value)}),fr(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(m,b)=>m.nowrap?(z(),xe(S(N8e),{key:0,"set-ref":l,"only-child":""},{default:X(()=>[ze(m.$slots,"default")]),_:3})):(z(),ne("button",en({key:1,ref_key:"triggerRef",ref:i},m.$attrs),[ze(m.$slots,"default")],16))}});var I8e=Je(B8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const $8e=pe({name:"ElTooltipV2"}),P8e=pe({...$8e,props:S8e,setup(t){const n=Ra(t),r=Rn(Cu(n,Object.keys(pV))),a=Rn(Cu(n,Object.keys(vV))),i=Rn(Cu(n,Object.keys(gV))),o=Rn(Cu(n,Object.keys(yV)));return(s,l)=>(z(),xe(x8e,$s(IC(i)),{default:X(({open:u})=>[H(I8e,en(o,{nowrap:""}),{default:X(()=>[ze(s.$slots,"trigger")]),_:3},16),(z(),xe(eb,{to:s.to,disabled:!s.teleported},[s.fullTransition?(z(),xe(Jr,$s(en({key:0},s.transitionProps)),{default:X(()=>[s.alwaysOn||u?(z(),xe(e6,$s(en({key:0},a)),{arrow:X(({style:c,side:f})=>[s.showArrow?(z(),xe(J5,en({key:0},r,{style:c,side:f}),null,16,["style","side"])):we("v-if",!0)]),default:X(()=>[ze(s.$slots,"default")]),_:3},16)):we("v-if",!0)]),_:2},1040)):(z(),ne(bt,{key:1},[s.alwaysOn||u?(z(),xe(e6,$s(en({key:0},a)),{arrow:X(({style:c,side:f})=>[s.showArrow?(z(),xe(J5,en({key:0},r,{style:c,side:f}),null,16,["style","side"])):we("v-if",!0)]),default:X(()=>[ze(s.$slots,"default")]),_:3},16)):we("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var F8e=Je(P8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const z8e=Zt(F8e),lQ="left-check-change",uQ="right-check-change",cv=et({data:{type:De(Array),default:()=>[]},titles:{type:De(Array),default:()=>[]},buttonTexts:{type:De(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:De(Function)},leftDefaultChecked:{type:De(Array),default:()=>[]},rightDefaultChecked:{type:De(Array),default:()=>[]},renderContent:{type:De(Function)},modelValue:{type:De(Array),default:()=>[]},format:{type:De(Object),default:()=>({})},filterable:Boolean,props:{type:De(Object),default:()=>Er({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),WL=(t,e)=>[t,e].every(dt)||dt(t)&&fa(e),U8e={[yr]:(t,e,n)=>[t,n].every(dt)&&["left","right"].includes(e),[Qt]:t=>dt(t),[lQ]:WL,[uQ]:WL},jL="checked-change",G8e=et({data:cv.data,optionRender:{type:De(Function)},placeholder:String,title:String,filterable:Boolean,format:cv.format,filterMethod:cv.filterMethod,defaultChecked:cv.leftDefaultChecked,props:cv.props}),H8e={[jL]:WL},gb=t=>{const e={label:"label",key:"key",disabled:"disabled"};return B(()=>({...e,...t.props}))},W8e=(t,e,n)=>{const r=gb(t),a=B(()=>t.data.filter(c=>Vt(t.filterMethod)?t.filterMethod(e.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(e.query.toLowerCase()))),i=B(()=>a.value.filter(c=>!c[r.value.disabled])),o=B(()=>{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=B(()=>{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 Ge(()=>e.checked,(c,f)=>{if(l(),e.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(jL,c,d)}else n(jL,c),e.checkChangeByUser=!0}),Ge(i,()=>{l()}),Ge(()=>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}),Ge(()=>t.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(p=>f.includes(p)))return;const d=[],h=i.value.map(p=>p[r.value.key]);c.forEach(p=>{h.includes(p)&&d.push(p)}),e.checkChangeByUser=!1,e.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},j8e=(t,e)=>({onSourceCheckedChange:(a,i)=>{t.leftChecked=a,i&&e(lQ,a,i)},onTargetCheckedChange:(a,i)=>{t.rightChecked=a,i&&e(uQ,a,i)}}),K8e=t=>{const e=gb(t),n=B(()=>t.data.reduce((i,o)=>(i[o[e.value.key]]=o)&&i,{})),r=B(()=>t.data.filter(i=>!t.modelValue.includes(i[e.value.key]))),a=B(()=>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}},Y8e=(t,e,n)=>{const r=gb(t),a=(s,l,u)=>{n(Qt,s),n(yr,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)}}},q8e=pe({name:"ElTransferPanel"}),X8e=pe({...q8e,props:G8e,emits:H8e,setup(t,{expose:e,emit:n}){const r=t,a=li(),i=({option:b})=>b,{t:o}=xn(),s=je("transfer"),l=Rn({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=gb(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=W8e(r,l,n),p=B(()=>!qo(l.query)&&qo(c.value)),v=B(()=>!qo(a.default()[0].children)),{checked:g,allChecked:y,query:m}=Ra(l);return e({query:m}),(b,w)=>(z(),ne("div",{class:j(S(s).b("panel"))},[U("p",{class:j(S(s).be("panel","header"))},[H(S(cs),{modelValue:S(y),"onUpdate:modelValue":w[0]||(w[0]=C=>Ot(y)?y.value=C:null),indeterminate:S(d),"validate-event":!1,onChange:S(h)},{default:X(()=>[lt(Ke(b.title)+" ",1),U("span",null,Ke(S(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),U("div",{class:j([S(s).be("panel","body"),S(s).is("with-footer",S(v))])},[b.filterable?(z(),xe(S(vi),{key:0,modelValue:S(m),"onUpdate:modelValue":w[1]||(w[1]=C=>Ot(m)?m.value=C:null),class:j(S(s).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":S(cCe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):we("v-if",!0),Ft(H(S(gX),{modelValue:S(g),"onUpdate:modelValue":w[2]||(w[2]=C=>Ot(g)?g.value=C:null),"validate-event":!1,class:j([S(s).is("filterable",b.filterable),S(s).be("panel","list")])},{default:X(()=>[(z(!0),ne(bt,null,ln(S(c),C=>(z(),xe(S(cs),{key:C[S(u).key],class:j(S(s).be("panel","item")),label:C[S(u).key],disabled:C[S(u).disabled],"validate-event":!1},{default:X(()=>{var x;return[H(i,{option:(x=b.optionRender)==null?void 0:x.call(b,C)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[pn,!S(p)&&!S(qo)(b.data)]]),Ft(U("p",{class:j(S(s).be("panel","empty"))},Ke(S(p)?S(o)("el.transfer.noMatch"):S(o)("el.transfer.noData")),3),[[pn,S(p)||S(qo)(b.data)]])],2),S(v)?(z(),ne("p",{key:0,class:j(S(s).be("panel","footer"))},[ze(b.$slots,"default")],2)):we("v-if",!0)],2))}});var t6=Je(X8e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Z8e={key:0},Q8e={key:0},J8e=pe({name:"ElTransfer"}),eUe=pe({...J8e,props:cv,emits:U8e,setup(t,{expose:e,emit:n}){const r=t,a=li(),{t:i}=xn(),o=je("transfer"),{formItem:s}=Ki(),l=Rn({leftChecked:[],rightChecked:[]}),u=gb(r),{sourceData:c,targetData:f}=K8e(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=j8e(l,n),{addToLeft:p,addToRight:v}=Y8e(r,l,n),g=W(),y=W(),m=T=>{switch(T){case"left":g.value.query="";break;case"right":y.value.query="";break}},b=B(()=>r.buttonTexts.length===2),w=B(()=>r.titles[0]||i("el.transfer.titles.0")),C=B(()=>r.titles[1]||i("el.transfer.titles.1")),x=B(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ge(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(M=>void 0))});const _=B(()=>T=>r.renderContent?r.renderContent(xt,T):a.default?a.default({option:T}):xt("span",T[u.value.label]||T[u.value.key]));return e({clearQuery:m,leftPanel:g,rightPanel:y}),(T,M)=>(z(),ne("div",{class:j(S(o).b())},[H(t6,{ref_key:"leftPanel",ref:g,data:S(c),"option-render":S(_),placeholder:S(x),title:S(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:S(d)},{default:X(()=>[ze(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),U("div",{class:j(S(o).e("buttons"))},[H(S(Lt),{type:"primary",class:j([S(o).e("button"),S(o).is("with-texts",S(b))]),disabled:S(qo)(l.rightChecked),onClick:S(p)},{default:X(()=>[H(S(mt),null,{default:X(()=>[H(S(bf))]),_:1}),S(ba)(T.buttonTexts[0])?we("v-if",!0):(z(),ne("span",Z8e,Ke(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),H(S(Lt),{type:"primary",class:j([S(o).e("button"),S(o).is("with-texts",S(b))]),disabled:S(qo)(l.leftChecked),onClick:S(v)},{default:X(()=>[S(ba)(T.buttonTexts[1])?we("v-if",!0):(z(),ne("span",Q8e,Ke(T.buttonTexts[1]),1)),H(S(mt),null,{default:X(()=>[H(S(Bi))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),H(t6,{ref_key:"rightPanel",ref:y,data:S(f),"option-render":S(_),placeholder:S(x),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:S(C),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:S(h)},{default:X(()=>[ze(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var tUe=Je(eUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const nUe=Zt(tUe),zv="$treeNodeId",n6=function(t,e){!e||e[zv]||Object.defineProperty(e,zv,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},mV=function(t,e){return t?e[t]:e[zv]},KL=(t,e,n)=>{const r=t.value.currentNode;n();const a=t.value.currentNode;r!==a&&e("current-change",a?a.data:null,a)},YL=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}},W_=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=YL(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||W_(a)},AS=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 rUe=0,qL=class j_{constructor(e){this.id=rUe++,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)yn(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=AS(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)||n6(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)||n6(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=AS(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return AS(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return AS(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 j_)){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=Rn(new j_(e)),e instanceof j_&&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||W_(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}=YL(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 p=u[d];a=a||e!==!1;const v=p.disabled?p.checked:a;p.setChecked(v,n,!0,a)}const{half:c,all:f}=YL(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),W_(this)},{checked:e!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||W_(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[zv];!!s&&n.findIndex(u=>u[zv]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[zv]]||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 aUe{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)yn(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new qL({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 qL)return e;const n=an(e)?mV(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)yn(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(p){p.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(e,n=!1){const r=this.key,a={};e.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,a={};e.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const a=this.getNode(e);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const iUe=pe({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=je("tree"),n=pt("NodeInstance"),r=pt("RootTree");return()=>{const a=t.node,{data:i,store:o}=a;return t.renderContent?t.renderContent(xt,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):xt("span",{class:e.be("node","label")},[a.label])}}});var oUe=Je(iUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function cQ(t){const e=pt("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),on("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const fQ=Symbol("dragEvents");function sUe({props:t,ctx:e,el$:n,dropIndicator$:r,store:a}){const i=je("tree"),o=W({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return on(fQ,{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&&co(h.$el,i.is("drop-inner"));const p=o.value.draggingNode;if(!p||!d)return;let v=!0,g=!0,y=!0,m=!0;typeof t.allowDrop=="function"&&(v=t.allowDrop(p.node,d.node,"prev"),m=g=t.allowDrop(p.node,d.node,"inner"),y=t.allowDrop(p.node,d.node,"next")),c.dataTransfer.dropEffect=g||v||y?"move":"none",(v||g||y)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&e.emit("node-drag-leave",p.node,h.node,c),e.emit("node-drag-enter",p.node,d.node,c)),(v||g||y)&&(o.value.dropNode=d),d.node.nextSibling===p.node&&(y=!1),d.node.previousSibling===p.node&&(v=!1),d.node.contains(p.node,!1)&&(g=!1),(p.node===d.node||p.node.contains(d.node))&&(v=!1,g=!1,y=!1);const b=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let C;const x=v?g?.25:y?.45:1:-1,_=y?g?.75:v?.55:0:1;let T=-9999;const M=c.clientY-b.top;M<b.height*x?C="before":M>b.height*_?C="after":g?C="inner":C="none";const E=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),k=r.value;C==="before"?T=E.top-w.top:C==="after"&&(T=E.bottom-w.top),k.style.top=`${T}px`,k.style.left=`${E.right-w.left}px`,C==="inner"?Al(d.$el,i.is("drop-inner")):co(d.$el,i.is("drop-inner")),o.value.showDropIndicator=C==="before"||C==="after",o.value.allowDrop=o.value.showDropIndicator||m,o.value.dropType=C,e.emit("node-drag-over",p.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const p={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(p,h.node):d==="after"?h.node.parent.insertAfter(p,h.node):d==="inner"&&h.node.insertChild(p),d!=="none"&&a.value.registerNode(p),co(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 lUe=pe({name:"ElTreeNode",components:{ElCollapseTransition:vT,ElCheckbox:cs,NodeContent:oUe,ElIcon:mt,Loading:If},props:{node:{type:qL,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=je("tree"),{broadcastExpanded:r}=cQ(t),a=pt("RootTree"),i=W(!1),o=W(!1),s=W(null),l=W(null),u=W(null),c=pt(fQ),f=Yt();on("NodeInstance",f),t.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";Ge(()=>{const M=t.node.data[d];return M&&[...M]},()=>{t.node.updateChildren()}),Ge(()=>t.node.indeterminate,M=>{v(t.node.checked,M)}),Ge(()=>t.node.checked,M=>{v(M,t.node.indeterminate)}),Ge(()=>t.node.expanded,M=>{yt(()=>i.value=M),M&&(o.value=!0)});const h=M=>mV(a.props.nodeKey,M.data),p=M=>{const E=t.props.class;if(!E)return{};let k;if(Vt(E)){const{data:R}=M;k=E(R,M)}else k=E;return $t(k)?{[k]:!0}:k},v=(M,E)=>{(s.value!==M||l.value!==E)&&a.ctx.emit("check-change",t.node.data,M,E),s.value=M,l.value=E},g=M=>{KL(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(t.node)),a.currentNode.value=t.node,a.props.expandOnClickNode&&m(),a.props.checkOnClickNode&&!t.node.disabled&&b(null,{target:{checked:!t.node.checked}}),a.ctx.emit("node-click",t.node.data,t.node,f,M)},y=M=>{a.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),a.ctx.emit("node-contextmenu",M,t.node.data,t.node,f)},m=()=>{t.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,f)))},b=(M,E)=>{t.node.setChecked(E.target.checked,!a.props.checkStrictly),yt(()=>{const k=a.store.value;a.ctx.emit("check",t.node.data,{checkedNodes:k.getCheckedNodes(),checkedKeys:k.getCheckedKeys(),halfCheckedNodes:k.getHalfCheckedNodes(),halfCheckedKeys:k.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:p,handleSelectChange:v,handleClick:g,handleContextMenu:y,handleExpandIconClick:m,handleCheckChange:b,handleChildNodeExpand:(M,E,k)=>{r(E),a.ctx.emit("node-expand",M,E,k)},handleDragStart:M=>{a.props.draggable&&c.treeNodeDragStart({event:M,treeNode:t})},handleDragOver:M=>{M.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:M,treeNode:{$el:u.value,node:t.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{a.props.draggable&&c.treeNodeDragEnd(M)},CaretRight:EY}}}),uUe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],cUe=["aria-expanded"];function fUe(t,e,n,r,a,i){const o=Xe("el-icon"),s=Xe("el-checkbox"),l=Xe("loading"),u=Xe("node-content"),c=Xe("el-tree-node"),f=Xe("el-collapse-transition");return Ft((z(),ne("div",{ref:"node$",class:j([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]=kt((...d)=>t.handleClick&&t.handleClick(...d),["stop"])),onContextmenu:e[2]||(e[2]=(...d)=>t.handleContextMenu&&t.handleContextMenu(...d)),onDragstart:e[3]||(e[3]=kt((...d)=>t.handleDragStart&&t.handleDragStart(...d),["stop"])),onDragover:e[4]||(e[4]=kt((...d)=>t.handleDragOver&&t.handleDragOver(...d),["stop"])),onDragend:e[5]||(e[5]=kt((...d)=>t.handleDragEnd&&t.handleDragEnd(...d),["stop"])),onDrop:e[6]||(e[6]=kt((...d)=>t.handleDrop&&t.handleDrop(...d),["stop"]))},[U("div",{class:j(t.ns.be("node","content")),style:St({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(z(),xe(o,{key:0,class:j([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:kt(t.handleExpandIconClick,["stop"])},{default:X(()=>[(z(),xe(tn(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):we("v-if",!0),t.showCheckbox?(z(),xe(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=kt(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):we("v-if",!0),t.node.loading?(z(),xe(o,{key:2,class:j([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:X(()=>[H(l)]),_:1},8,["class"])):we("v-if",!0),H(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),H(f,null,{default:X(()=>[!t.renderAfterExpand||t.childNodeRendered?Ft((z(),ne("div",{key:0,class:j(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(z(!0),ne(bt,null,ln(t.node.childNodes,d=>(z(),xe(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,cUe)),[[pn,t.expanded]]):we("v-if",!0)]),_:1})],42,uUe)),[[pn,t.node.visible]])}var dUe=Je(lUe,[["render",fUe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function hUe({el$:t},e){const n=je("tree"),r=or([]),a=or([]);Pt(()=>{o()}),Xu(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),Ge(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),Sr(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([_t.up,_t.down].includes(u)){if(s.preventDefault(),u===_t.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const h=f;for(;!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()}[_t.left,_t.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[_t.enter,_t.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;r.value=Array.from(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 pUe=pe({name:"ElTree",components:{ElTreeNode:dUe},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:sr}},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}=xn(),r=je("tree"),a=W(new aUe({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=W(a.value.root),o=W(null),s=W(null),l=W(null),{broadcastExpanded:u}=cQ(t),{dragState:c}=sUe({props:t,ctx:e,el$:s,dropIndicator$:l,store:a});hUe({el$:s},a);const f=B(()=>{const{childNodes:I}=i.value;return!I||I.length===0||I.every(({visible:$})=>!$)});Ge(()=>t.currentNodeKey,I=>{a.value.setCurrentNodeKey(I)}),Ge(()=>t.defaultCheckedKeys,I=>{a.value.setDefaultCheckedKey(I)}),Ge(()=>t.defaultExpandedKeys,I=>{a.value.setDefaultExpandedKeys(I)}),Ge(()=>t.data,I=>{a.value.setData(I)},{deep:!0}),Ge(()=>t.checkStrictly,I=>{a.value.checkStrictly=I});const d=I=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(I)},h=I=>mV(t.nodeKey,I.data),p=I=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const $=a.value.getNode(I);if(!$)return[];const N=[$.data];let P=$.parent;for(;P&&P!==i.value;)N.push(P.data),P=P.parent;return N.reverse()},v=(I,$)=>a.value.getCheckedNodes(I,$),g=I=>a.value.getCheckedKeys(I),y=()=>{const I=a.value.getCurrentNode();return I?I.data:null},m=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const I=y();return I?I[t.nodeKey]:null},b=(I,$)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(I,$)},w=(I,$)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(I,$)},C=(I,$,N)=>{a.value.setChecked(I,$,N)},x=()=>a.value.getHalfCheckedNodes(),_=()=>a.value.getHalfCheckedKeys(),T=(I,$=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");KL(a,e.emit,()=>a.value.setUserCurrentNode(I,$))},M=(I,$=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");KL(a,e.emit,()=>a.value.setCurrentNodeKey(I,$))},E=I=>a.value.getNode(I),k=I=>{a.value.remove(I)},R=(I,$)=>{a.value.append(I,$)},L=(I,$)=>{a.value.insertBefore(I,$)},A=(I,$)=>{a.value.insertAfter(I,$)},V=(I,$,N)=>{u($),e.emit("node-expand",I,$,N)},G=(I,$)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(I,$)};return on("RootTree",{ctx:e,props:t,store:a,root:i,currentNode:o,instance:Yt()}),on(ql,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:p,getCheckedNodes:v,getCheckedKeys:g,getCurrentNode:y,getCurrentKey:m,setCheckedNodes:b,setCheckedKeys:w,setChecked:C,getHalfCheckedNodes:x,getHalfCheckedKeys:_,setCurrentNode:T,setCurrentKey:M,t:n,getNode:E,remove:k,append:R,insertBefore:L,insertAfter:A,handleNodeExpand:V,updateKeyChildren:G}}});function vUe(t,e,n,r,a,i){const o=Xe("el-tree-node");return z(),ne("div",{ref:"el$",class:j([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"},[(z(!0),ne(bt,null,ln(t.root.childNodes,s=>(z(),xe(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?(z(),ne("div",{key:0,class:j(t.ns.e("empty-block"))},[ze(t.$slots,"empty",{},()=>{var s;return[U("span",{class:j(t.ns.e("empty-text"))},Ke((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):we("v-if",!0),Ft(U("div",{ref:"dropIndicator$",class:j(t.ns.e("drop-indicator"))},null,2),[[pn,t.dragState.showDropIndicator]])],2)}var K_=Je(pUe,[["render",vUe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);K_.install=t=>{t.component(K_.name,K_)};const t2=K_,gUe=t2,yUe=(t,{attrs:e},{tree:n,key:r})=>{const a=je("tree-select"),i={...Cu(Ra(t),Object.keys(Cf.props)),...e,valueKey:r,popperClass:B(()=>{const o=[a.e("popper")];return t.popperClass&&o.push(t.popperClass),o.join(" ")}),filterMethod:(o="")=>{t.filterMethod&&t.filterMethod(o),yt(()=>{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},mUe=pe({extends:Kx,setup(t,e){const n=Kx.setup(t,e);delete n.selectOptionClick;const r=Yt().proxy;return yt(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function XL(t){return t||t===0}function bV(t){return Array.isArray(t)&&t.length}function j0(t){return Array.isArray(t)?t:XL(t)?[t]:[]}function Y_(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(bV(s)){const l=Y_(s,e,n,r,o);if(l)return l}}}}function dQ(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);bV(o)&&dQ(o,e,n,i)}}const bUe=(t,{attrs:e,slots:n,emit:r},{select:a,tree:i,key:o})=>{Ge(()=>t.modelValue,()=>{t.showCheckbox&&yt(()=>{const d=i.value;d&&!uo(d.getCheckedKeys(),j0(t.modelValue))&&d.setCheckedKeys(j0(t.modelValue))})},{immediate:!0,deep:!0});const s=B(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),l=(d,h)=>{var p;const v=s.value[d];return Vt(v)?v(h,(p=i.value)==null?void 0:p.getNode(l("value",h))):h[v]},u=j0(t.modelValue).map(d=>Y_(t.data||[],h=>l("value",h)===d,h=>l("children",h),(h,p,v,g)=>g&&l("value",g))).filter(d=>XL(d)),c=B(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const d=[];return dQ(t.data.concat(t.cacheData),h=>{const p=l("value",h);d.push({value:p,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=B(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...Cu(Ra(t),Object.keys(t2.props)),...e,nodeKey:o,expandOnClickNode:B(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:B(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:p,store:v})=>d(mUe,{value:l("value",p),label:l("label",p),disabled:l("disabled",p)},t.renderContent?()=>t.renderContent(d,{node:h,data:p,store:v}):n.default?()=>n.default({node:h,data:p,store:v}):void 0),filterNodeMethod:(d,h,p)=>{var v;return t.filterNodeMethod?t.filterNodeMethod(d,h,p):d?(v=l("label",h))==null?void 0:v.includes(d):!0},onNodeClick:(d,h,p)=>{var v,g,y;if((v=e.onNodeClick)==null||v.call(e,d,h,p),!(t.showCheckbox&&t.checkOnClickNode))if(!t.showCheckbox&&(t.checkStrictly||h.isLeaf)){if(!l("disabled",d)){const m=(g=a.value)==null?void 0:g.options.get(l("value",d));(y=a.value)==null||y.handleOptionSelect(m)}}else t.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!t.showCheckbox)return;const p=l("value",d),v=h.checkedKeys,g=t.multiple?j0(t.modelValue).filter(m=>m in f.value&&!i.value.getNode(m)&&!v.includes(m)):[],y=v.concat(g);if(t.checkStrictly)r(Qt,t.multiple?y:y.includes(p)?p:void 0);else if(t.multiple)r(Qt,i.value.getCheckedKeys(!0));else{const m=Y_([d],C=>!bV(l("children",C))&&!l("disabled",C),C=>l("children",C)),b=m?l("value",m):void 0,w=XL(t.modelValue)&&!!Y_([d],C=>l("value",C)===t.modelValue,C=>l("children",C));r(Qt,b===t.modelValue||w?void 0:b)}yt(()=>{var m;const b=j0(t.modelValue);i.value.setCheckedKeys(b),(m=e.onCheck)==null||m.call(e,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var SUe=pe({props:{data:{type:Array,default:()=>[]}},setup(t){const e=pt(pb);return Ge(()=>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 wUe=pe({name:"ElTreeSelect",inheritAttrs:!1,props:{...Cf.props,...t2.props,cacheData:{type:Array,default:()=>[]}},setup(t,e){const{slots:n,expose:r}=e,a=W(),i=W(),o=B(()=>t.nodeKey||t.valueKey||"value"),s=yUe(t,e,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=bUe(t,e,{select:a,tree:i,key:o}),c=Rn({});return r(c),Pt(()=>{Object.assign(c,{...Cu(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Cu(a.value,["focus","blur"])})}),()=>xt(Cf,Rn({...s,ref:f=>a.value=f}),{...n,default:()=>[xt(SUe,{data:l.value}),xt(t2,Rn({...u,ref:f=>i.value=f}))]})}});var q_=Je(wUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);q_.install=t=>{t.component(q_.name,q_)};const _Ue=q_,xUe=_Ue,SV=Symbol(),CUe={key:-1,level:-1,data:{}};var Dy=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t))(Dy||{}),ZL=(t=>(t.ADD="add",t.DELETE="delete",t))(ZL||{});const hQ={type:Number,default:26},TUe=et({data:{type:De(Array),default:()=>Er([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:De(Object),default:()=>Er({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:De(Array),default:()=>Er([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:De(Array),default:()=>Er([])},indent:{type:Number,default:16},itemSize:hQ,icon:{type:sr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:De([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:De(Function)},perfMode:{type:Boolean,default:!0}}),EUe=et({node:{type:De(Object),default:()=>Er(CUe)},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:hQ}),MUe=et({node:{type:De(Object),required:!0}}),pQ="node-click",vQ="node-expand",gQ="node-collapse",yQ="current-change",mQ="check",bQ="check-change",SQ="node-contextmenu",DUe={[pQ]:(t,e,n)=>t&&e&&n,[vQ]:(t,e)=>t&&e,[gQ]:(t,e)=>t&&e,[yQ]:(t,e)=>t&&e,[mQ]:(t,e)=>t&&e,[bQ]:(t,e)=>t&&typeof e=="boolean",[SQ]:(t,e,n)=>t&&e&&n},kUe={click:(t,e)=>!!(t&&e),toggle:t=>!!t,check:(t,e)=>t&&typeof e=="boolean"};function RUe(t,e){const n=W(new Set),r=W(new Set),{emit:a}=Yt();Ge([()=>e.value,()=>t.defaultCheckedKeys],()=>yt(()=>{m(t.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!e.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:w}=e.value,C=n.value,x=new Set;for(let _=w-1;_>=1;--_){const T=b.get(_);T&&T.forEach(M=>{const E=M.children;if(E){let k=!0,R=!1;for(const L of E){const A=L.key;if(C.has(A))R=!0;else if(x.has(A)){k=!1,R=!0;break}else k=!1}k?C.add(M.key):R?(x.add(M.key),C.delete(M.key)):(C.delete(M.key),x.delete(M.key))}})}r.value=x},o=b=>n.value.has(b.key),s=b=>r.value.has(b.key),l=(b,w,C=!0)=>{const x=n.value,_=(T,M)=>{x[M?ZL.ADD:ZL.DELETE](T.key);const E=T.children;!t.checkStrictly&&E&&E.forEach(k=>{k.disabled||_(k,M)})};_(b,w),i(),C&&u(b,w)},u=(b,w)=>{const{checkedNodes:C,checkedKeys:x}=p(),{halfCheckedNodes:_,halfCheckedKeys:T}=v();a(mQ,b.data,{checkedKeys:x,checkedNodes:C,halfCheckedKeys:T,halfCheckedNodes:_}),a(bQ,b.data,w)};function c(b=!1){return p(b).checkedKeys}function f(b=!1){return p(b).checkedNodes}function d(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function p(b=!1){const w=[],C=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:x}=e.value;n.value.forEach(_=>{const T=x.get(_);T&&(!b||b&&T.isLeaf)&&(C.push(_),w.push(T.data))})}return{checkedKeys:C,checkedNodes:w}}function v(){const b=[],w=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:C}=e.value;r.value.forEach(x=>{const _=C.get(x);_&&(w.push(x),b.push(_.data))})}return{halfCheckedNodes:b,halfCheckedKeys:w}}function g(b){n.value.clear(),r.value.clear(),m(b)}function y(b,w){if(e!=null&&e.value&&t.showCheckbox){const C=e.value.treeNodeMap.get(b);C&&l(C,w,!1)}}function m(b){if(e!=null&&e.value){const{treeNodeMap:w}=e.value;if(t.showCheckbox&&w&&b)for(const C of b){const x=w.get(C);x&&!o(x)&&l(x,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:y,setCheckedKeys:g}}function LUe(t,e){const n=W(new Set([])),r=W(new Set([])),a=B(()=>Vt(t.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=r.value,f=n.value,d=[],h=((l=e.value)==null?void 0:l.treeNodes)||[],p=t.filterMethod;f.clear();function v(g){g.forEach(y=>{d.push(y),p!=null&&p(s,y.data)?d.forEach(b=>{u.add(b.key)}):y.isLeaf&&f.add(y.key);const m=y.children;if(m&&v(m),!y.isLeaf){if(!u.has(y.key))f.add(y.key);else if(m){let b=!0;for(const w of m)if(!f.has(w.key)){b=!1;break}b?c.add(y.key):c.delete(y.key)}}d.pop()})}return v(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function OUe(t,e){const n=W(new Set(t.defaultExpandedKeys)),r=W(),a=or();Ge(()=>t.currentNodeKey,se=>{r.value=se},{immediate:!0}),Ge(()=>t.data,se=>{le(se)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=RUe(t,a),{doFilter:p,hiddenNodeKeySet:v,isForceHiddenExpandIcon:g}=LUe(t,a),y=B(()=>{var se;return((se=t.props)==null?void 0:se.value)||Dy.KEY}),m=B(()=>{var se;return((se=t.props)==null?void 0:se.children)||Dy.CHILDREN}),b=B(()=>{var se;return((se=t.props)==null?void 0:se.disabled)||Dy.DISABLED}),w=B(()=>{var se;return((se=t.props)==null?void 0:se.label)||Dy.LABEL}),C=B(()=>{const se=n.value,_e=v.value,ve=[],he=a.value&&a.value.treeNodes||[];function q(){const ce=[];for(let Se=he.length-1;Se>=0;--Se)ce.push(he[Se]);for(;ce.length;){const Se=ce.pop();if(Se&&(_e.has(Se.key)||ve.push(Se),se.has(Se.key))){const Ae=Se.children;if(Ae){const Te=Ae.length;for(let Oe=Te-1;Oe>=0;--Oe)ce.push(Ae[Oe])}}}}return q(),ve}),x=B(()=>C.value.length>0);function _(se){const _e=new Map,ve=new Map;let he=1;function q(Se,Ae=1,Te=void 0){var Oe;const He=[];for(const $e of Se){const Ne=E($e),Le={level:Ae,key:Ne,data:$e};Le.label=R($e),Le.parent=Te;const ie=M($e);Le.disabled=k($e),Le.isLeaf=!ie||ie.length===0,ie&&ie.length&&(Le.children=q(ie,Ae+1,Le)),He.push(Le),_e.set(Ne,Le),ve.has(Ae)||ve.set(Ae,[]),(Oe=ve.get(Ae))==null||Oe.push(Le)}return Ae>he&&(he=Ae),He}const ce=q(se);return{treeNodeMap:_e,levelTreeNodeMap:ve,maxLevel:he,treeNodes:ce}}function T(se){const _e=p(se);_e&&(n.value=_e)}function M(se){return se[m.value]}function E(se){return se?se[y.value]:""}function k(se){return se[b.value]}function R(se){return se[w.value]}function L(se){n.value.has(se.key)?N(se):$(se)}function A(se){n.value=new Set(se)}function V(se,_e){e(pQ,se.data,se,_e),G(se),t.expandOnClickNode&&L(se),t.showCheckbox&&t.checkOnClickNode&&!se.disabled&&s(se,!o(se),!0)}function G(se){J(se)||(r.value=se.key,e(yQ,se.data,se))}function I(se,_e){s(se,_e)}function $(se){const _e=n.value;if(a.value&&t.accordion){const{treeNodeMap:ve}=a.value;_e.forEach(he=>{const q=ve.get(he);se&&se.level===(q==null?void 0:q.level)&&_e.delete(he)})}_e.add(se.key),e(vQ,se.data,se)}function N(se){n.value.delete(se.key),e(gQ,se.data,se)}function P(se){return n.value.has(se.key)}function Y(se){return!!se.disabled}function J(se){const _e=r.value;return _e!==void 0&&_e===se.key}function re(){var se,_e;if(r.value)return(_e=(se=a.value)==null?void 0:se.treeNodeMap.get(r.value))==null?void 0:_e.data}function oe(){return r.value}function ue(se){r.value=se}function le(se){yt(()=>a.value=_(se))}function fe(se){var _e;const ve=an(se)?E(se):se;return(_e=a.value)==null?void 0:_e.treeNodeMap.get(ve)}return{tree:a,flattenTree:C,isNotEmpty:x,getKey:E,getChildren:M,toggleExpand:L,toggleCheckbox:s,isExpanded:P,isChecked:o,isIndeterminate:i,isDisabled:Y,isCurrent:J,isForceHiddenExpandIcon:g,handleNodeClick:V,handleNodeCheck:I,getCurrentNode:re,getCurrentKey:oe,setCurrentKey:ue,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:le,getNode:fe,expandNode:$,collapseNode:N,setExpandedKeys:A}}var AUe=pe({name:"ElTreeNodeContent",props:MUe,setup(t){const e=pt(SV),n=je("tree");return()=>{const r=t.node,{data:a}=r;return e!=null&&e.ctx.slots.default?e.ctx.slots.default({node:r,data:a}):xt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const NUe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],VUe=pe({name:"ElTreeNode"}),BUe=pe({...VUe,props:EUe,emits:kUe,setup(t,{emit:e}){const n=t,r=pt(SV),a=je("tree"),i=B(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=B(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:EY}),s=f=>{e("click",n.node,f)},l=()=>{e("toggle",n.node)},u=f=>{e("check",n.node,f)},c=f=>{var d,h,p,v;(p=(h=(d=r==null?void 0:r.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&p.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(SQ,f,(v=n.node)==null?void 0:v.data,n.node)};return(f,d)=>{var h,p,v;return z(),ne("div",{ref:"node$",class:j([S(a).b("node"),S(a).is("expanded",f.expanded),S(a).is("current",f.current),S(a).is("focusable",!f.disabled),S(a).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:kt(s,["stop"]),onContextmenu:c},[U("div",{class:j(S(a).be("node","content")),style:St({paddingLeft:`${(f.node.level-1)*S(i)}px`,height:f.itemSize+"px"})},[S(o)?(z(),xe(S(mt),{key:0,class:j([S(a).is("leaf",!!((p=f.node)!=null&&p.isLeaf)),S(a).is("hidden",f.hiddenExpandIcon),{expanded:!((v=f.node)!=null&&v.isLeaf)&&f.expanded},S(a).be("node","expand-icon")]),onClick:kt(l,["stop"])},{default:X(()=>[(z(),xe(tn(S(o))))]),_:1},8,["class","onClick"])):we("v-if",!0),f.showCheckbox?(z(),xe(S(cs),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=kt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):we("v-if",!0),H(S(AUe),{node:f.node},null,8,["node"])],6)],42,NUe)}}});var IUe=Je(BUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const $Ue=pe({name:"ElTreeV2"}),PUe=pe({...$Ue,props:TUe,emits:DUe,setup(t,{expose:e,emit:n}){const r=t,a=li(),i=B(()=>r.itemSize);on(SV,{ctx:{emit:n,slots:a},props:r,instance:Yt()}),on(ql,void 0);const{t:o}=xn(),s=je("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:p,isCurrent:v,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeCheck:m,toggleCheckbox:b,getCurrentNode:w,getCurrentKey:C,setCurrentKey:x,getCheckedKeys:_,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:E,setChecked:k,setCheckedKeys:R,filter:L,setData:A,getNode:V,expandNode:G,collapseNode:I,setExpandedKeys:$}=OUe(r,n);return e({toggleCheckbox:b,getCurrentNode:w,getCurrentKey:C,setCurrentKey:x,getCheckedKeys:_,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:E,setChecked:k,setCheckedKeys:R,filter:L,setData:A,getNode:V,expandNode:G,collapseNode:I,setExpandedKeys:$}),(N,P)=>{var Y;return z(),ne("div",{class:j([S(s).b(),{[S(s).m("highlight-current")]:N.highlightCurrent}]),role:"tree"},[S(u)?(z(),xe(S(EZ),{key:0,"class-name":S(s).b("virtual-list"),data:S(l),total:S(l).length,height:N.height,"item-size":S(i),"perf-mode":N.perfMode},{default:X(({data:J,index:re,style:oe})=>[(z(),xe(IUe,{key:J[re].key,style:St(oe),node:J[re],expanded:S(f)(J[re]),"show-checkbox":N.showCheckbox,checked:S(h)(J[re]),indeterminate:S(d)(J[re]),"item-size":S(i),disabled:S(p)(J[re]),current:S(v)(J[re]),"hidden-expand-icon":S(g)(J[re]),onClick:S(y),onToggle:S(c),onCheck:S(m)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(z(),ne("div",{key:1,class:j(S(s).e("empty-block"))},[U("span",{class:j(S(s).e("empty-text"))},Ke((Y=N.emptyText)!=null?Y:S(o)("el.tree.emptyText")),3)],2))],2)}}});var FUe=Je(PUe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const zUe=Zt(FUe),wQ=Symbol("uploadContextKey"),UUe="ElUpload";class GUe extends Error{constructor(e,n,r,a){super(e),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function r6(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 GUe(r,n.status,e.method,t)}function HUe(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}const WUe=t=>{typeof XMLHttpRequest>"u"&&pa(UUe,"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))dt(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(r6(n,t,e))}),e.addEventListener("load",()=>{if(e.status<200||e.status>=300)return t.onError(r6(n,t,e));t.onSuccess(HUe(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))fa(o)||e.setRequestHeader(i,String(o));return e.send(r),e},_Q=["text","picture","picture-card"];let jUe=1;const QL=()=>Date.now()+jUe++,xQ=et({action:{type:String,default:"#"},headers:{type:De(Object)},method:{type:String,default:"post"},data:{type:De([Object,Function,Promise]),default:()=>Er({})},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:De(Array),default:()=>Er([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:_Q,default:"text"},httpRequest:{type:De(Function),default:WUe},disabled:Boolean,limit:Number}),KUe=et({...xQ,beforeUpload:{type:De(Function),default:Kn},beforeRemove:{type:De(Function)},onRemove:{type:De(Function),default:Kn},onChange:{type:De(Function),default:Kn},onPreview:{type:De(Function),default:Kn},onSuccess:{type:De(Function),default:Kn},onProgress:{type:De(Function),default:Kn},onError:{type:De(Function),default:Kn},onExceed:{type:De(Function),default:Kn}}),YUe=et({files:{type:De(Array),default:()=>Er([])},disabled:{type:Boolean,default:!1},handlePreview:{type:De(Function),default:Kn},listType:{type:String,values:_Q,default:"text"}}),qUe={remove:t=>!!t},XUe=["onKeydown"],ZUe=["src"],QUe=["onClick"],JUe=["title"],eGe=["onClick"],tGe=["onClick"],nGe=pe({name:"ElUploadList"}),rGe=pe({...nGe,props:YUe,emits:qUe,setup(t,{emit:e}){const{t:n}=xn(),r=je("upload"),a=je("icon"),i=je("list"),o=go(),s=W(!1),l=u=>{e("remove",u)};return(u,c)=>(z(),xe(Yj,{tag:"ul",class:j([S(r).b("list"),S(r).bm("list",u.listType),S(r).is("disabled",S(o))]),name:S(i).b()},{default:X(()=>[(z(!0),ne(bt,null,ln(u.files,f=>(z(),ne("li",{key:f.uid||f.name,class:j([S(r).be("list","item"),S(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:_n(d=>!S(o)&&l(f),["delete"]),onFocus:c[0]||(c[0]=d=>s.value=!0),onBlur:c[1]||(c[1]=d=>s.value=!1),onClick:c[2]||(c[2]=d=>s.value=!1)},[ze(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(z(),ne("img",{key:0,class:j(S(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,ZUe)):we("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(z(),ne("div",{key:1,class:j(S(r).be("list","item-info"))},[U("a",{class:j(S(r).be("list","item-name")),onClick:kt(d=>u.handlePreview(f),["prevent"])},[H(S(mt),{class:j(S(a).m("document"))},{default:X(()=>[H(S(Ixe))]),_:1},8,["class"]),U("span",{class:j(S(r).be("list","item-file-name")),title:f.name},Ke(f.name),11,JUe)],10,QUe),f.status==="uploading"?(z(),xe(S(yZ),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:St(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):we("v-if",!0)],2)):we("v-if",!0),U("label",{class:j(S(r).be("list","item-status-label"))},[u.listType==="text"?(z(),xe(S(mt),{key:0,class:j([S(a).m("upload-success"),S(a).m("circle-check")])},{default:X(()=>[H(S(pN))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(z(),xe(S(mt),{key:1,class:j([S(a).m("upload-success"),S(a).m("check")])},{default:X(()=>[H(S(ub))]),_:1},8,["class"])):we("v-if",!0)],2),S(o)?we("v-if",!0):(z(),xe(S(mt),{key:2,class:j(S(a).m("close")),onClick:d=>l(f)},{default:X(()=>[H(S(Qs))]),_:2},1032,["class","onClick"])),we(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),we(" This is a bug which needs to be fixed "),we(" TODO: Fix the incorrect navigation interaction "),S(o)?we("v-if",!0):(z(),ne("i",{key:3,class:j(S(a).m("close-tip"))},Ke(S(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(z(),ne("span",{key:4,class:j(S(r).be("list","item-actions"))},[U("span",{class:j(S(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[H(S(mt),{class:j(S(a).m("zoom-in"))},{default:X(()=>[H(S(LY))]),_:1},8,["class"])],10,eGe),S(o)?we("v-if",!0):(z(),ne("span",{key:0,class:j(S(r).be("list","item-delete")),onClick:d=>l(f)},[H(S(mt),{class:j(S(a).m("delete"))},{default:X(()=>[H(S(DY))]),_:1},8,["class"])],10,tGe))],2)):we("v-if",!0)])],42,XUe))),128)),ze(u.$slots,"append")]),_:3},8,["class","name"]))}});var a6=Je(rGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const aGe=et({disabled:{type:Boolean,default:!1}}),iGe={file:t=>dt(t)},oGe=["onDrop","onDragover"],CQ="ElUploadDrag",sGe=pe({name:CQ}),lGe=pe({...sGe,props:aGe,emits:iGe,setup(t,{emit:e}){const n=pt(wQ);n||pa(CQ,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=je("upload"),a=W(!1),i=go(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){e("file",u);return}const f=u.filter(d=>{const{type:h,name:p}=d,v=p.includes(".")?`.${p.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?v===y:/\/\*$/.test(y)?g===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?h===y:!1)});e("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(z(),ne("div",{class:j([S(r).b("dragger"),S(r).is("dragover",a.value)]),onDrop:kt(o,["prevent"]),onDragover:kt(s,["prevent"]),onDragleave:u[0]||(u[0]=kt(c=>a.value=!1,["prevent"]))},[ze(l.$slots,"default")],42,oGe))}});var uGe=Je(lGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const cGe=et({...xQ,beforeUpload:{type:De(Function),default:Kn},onRemove:{type:De(Function),default:Kn},onStart:{type:De(Function),default:Kn},onSuccess:{type:De(Function),default:Kn},onProgress:{type:De(Function),default:Kn},onError:{type:De(Function),default:Kn},onExceed:{type:De(Function),default:Kn}}),fGe=["onKeydown"],dGe=["name","multiple","accept"],hGe=pe({name:"ElUploadContent",inheritAttrs:!1}),pGe=pe({...hGe,props:cGe,setup(t,{expose:e}){const n=t,r=je("upload"),a=go(),i=or({}),o=or(),s=v=>{if(v.length===0)return;const{autoUpload:g,limit:y,fileList:m,multiple:b,onStart:w,onExceed:C}=n;if(y&&m.length+v.length>y){C(v,m);return}b||(v=v.slice(0,1));for(const x of v){const _=x;_.uid=QL(),w(_),g&&l(_)}},l=async v=>{if(o.value.value="",!n.beforeUpload)return c(v);let g,y={};try{const b=n.data,w=n.beforeUpload(v);y=Dx(n.data)?Fx(n.data):n.data,g=await w,Dx(n.data)&&uo(b,y)&&(y=Fx(n.data))}catch{g=!1}if(g===!1){n.onRemove(v);return}let m=v;g instanceof Blob&&(g instanceof File?m=g:m=new File([g],v.name,{type:v.type})),c(Object.assign(m,{uid:v.uid}),y)},u=async(v,g)=>Vt(v)?v(g):v,c=async(v,g)=>{const{headers:y,data:m,method:b,withCredentials:w,name:C,action:x,onProgress:_,onSuccess:T,onError:M,httpRequest:E}=n;try{g=await u(g??m,v)}catch{n.onRemove(v);return}const{uid:k}=v,R={headers:y||{},withCredentials:w,file:v,data:g,method:b,filename:C,action:x,onProgress:A=>{_(A,v)},onSuccess:A=>{T(A,v),delete i.value[k]},onError:A=>{M(A,v),delete i.value[k]}},L=E(R);i.value[k]=L,L instanceof Promise&&L.then(R.onSuccess,R.onError)},f=v=>{const g=v.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return e({abort:v=>{$we(i.value).filter(v?([y])=>String(v.uid)===y:()=>!0).forEach(([y,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[y]})},upload:l}),(v,g)=>(z(),ne("div",{class:j([S(r).b(),S(r).m(v.listType),S(r).is("drag",v.drag)]),tabindex:"0",onClick:d,onKeydown:_n(kt(h,["self"]),["enter","space"])},[v.drag?(z(),xe(uGe,{key:0,disabled:S(a),onFile:s},{default:X(()=>[ze(v.$slots,"default")]),_:3},8,["disabled"])):ze(v.$slots,"default",{key:1}),U("input",{ref_key:"inputRef",ref:o,class:j(S(r).e("input")),name:v.name,multiple:v.multiple,accept:v.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=kt(()=>{},["stop"]))},null,42,dGe)],42,fGe))}});var i6=Je(pGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const o6="ElUpload",s6=t=>{var e;(e=t.url)!=null&&e.startsWith("blob:")&&URL.revokeObjectURL(t.url)},vGe=(t,e)=>{const n=C0e(t,"fileList",void 0,{passive:!0}),r=d=>n.value.find(h=>h.uid===d.uid);function a(d){var h;(h=e.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const p=r(h);p&&(console.error(d),p.status="fail",n.value.splice(n.value.indexOf(p),1),t.onError(d,p,n.value),t.onChange(p,n.value))},s=(d,h)=>{const p=r(h);p&&(t.onProgress(d,p,n.value),p.status="uploading",p.percentage=Math.round(d.percent))},l=(d,h)=>{const p=r(h);p&&(p.status="success",p.response=d,t.onSuccess(d,p,n.value),t.onChange(p,n.value))},u=d=>{fa(d.uid)&&(d.uid=QL());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(t.listType==="picture-card"||t.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(p){p.message,t.onError(p,h,n.value)}n.value=[...n.value,h],t.onChange(h,n.value)},c=async d=>{const h=d instanceof File?r(d):d;h||pa(o6,"file to be removed not found");const p=v=>{a(v);const g=n.value;g.splice(g.indexOf(v),1),t.onRemove(v,g),s6(v)};t.beforeRemove?await t.beforeRemove(h,n.value)!==!1&&p(h):p(h)};function f(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=e.value)==null?void 0:h.upload(d))})}return Ge(()=>t.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:p,url:v}=h;if(!v&&p)try{h.url=URL.createObjectURL(p)}catch(g){t.onError(g,h,n.value)}return h}))}),Ge(n,d=>{for(const h of d)h.uid||(h.uid=QL()),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:s6}},gGe=pe({name:"ElUpload"}),yGe=pe({...gGe,props:KUe,setup(t,{expose:e}){const n=t,r=go(),a=or(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:p}=vGe(n,a),v=B(()=>n.listType==="picture-card"),g=B(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return fr(()=>{l.value.forEach(p)}),on(wQ,{accept:Rr(n,"accept")}),e({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(y,m)=>(z(),ne("div",null,[S(v)&&y.showFileList?(z(),xe(a6,{key:0,disabled:S(r),"list-type":y.listType,files:S(l),"handle-preview":y.onPreview,onRemove:S(f)},Iu({append:X(()=>[H(i6,en({ref_key:"uploadRef",ref:a},S(g)),{default:X(()=>[y.$slots.trigger?ze(y.$slots,"trigger",{key:0}):we("v-if",!0),!y.$slots.trigger&&y.$slots.default?ze(y.$slots,"default",{key:1}):we("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:X(({file:b})=>[ze(y.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):we("v-if",!0),!S(v)||S(v)&&!y.showFileList?(z(),xe(i6,en({key:1,ref_key:"uploadRef",ref:a},S(g)),{default:X(()=>[y.$slots.trigger?ze(y.$slots,"trigger",{key:0}):we("v-if",!0),!y.$slots.trigger&&y.$slots.default?ze(y.$slots,"default",{key:1}):we("v-if",!0)]),_:3},16)):we("v-if",!0),y.$slots.trigger?ze(y.$slots,"default",{key:2}):we("v-if",!0),ze(y.$slots,"tip"),!S(v)&&y.showFileList?(z(),xe(a6,{key:3,disabled:S(r),"list-type":y.listType,files:S(l),"handle-preview":y.onPreview,onRemove:S(f)},Iu({_:2},[y.$slots.file?{name:"default",fn:X(({file:b})=>[ze(y.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):we("v-if",!0)]))}});var mGe=Je(yGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const bGe=Zt(mGe);var SGe=[CMe,VMe,sRe,Bze,pRe,wRe,Vq,NRe,VRe,Lt,Uq,eOe,iOe,bOe,SOe,NAe,SAe,FAe,cs,FOe,gX,QAe,g3e,y3e,l3e,j3e,n1,aNe,iNe,oNe,sNe,lNe,DVe,$Ve,PVe,Ta,ZX,pBe,iIe,oIe,sIe,oZ,DDe,kDe,mt,JIe,sZ,vi,lZ,h$e,A$e,N$e,V$e,B$e,G$e,Y4e,ePe,uPe,Oq,yZ,xX,nAe,tAe,EPe,LPe,KAe,ec,Cf,Kx,S4e,wFe,kFe,RFe,o5e,f5e,BZ,_5e,L5e,O5e,G5e,Z6e,Q6e,Vze,Zze,Qze,i1,r8e,OLe,u8e,p8e,v8e,Gi,z8e,nUe,gUe,xUe,zUe,bGe];const As="ElInfiniteScroll",wGe=50,_Ge=200,xGe=0,CGe={delay:{type:Number,default:_Ge},distance:{type:Number,default:xGe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},wV=(t,e)=>Object.entries(CGe).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},{}),TQ=t=>{const{observer:e}=t[As];e&&(e.disconnect(),delete t[As].observer)},TGe=(t,e)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=t[As],{disabled:s,distance:l}=wV(t,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(t[As].lastScrollTop=f,i||s||d<0)return;let h=!1;if(n===t)h=c-(u+f)<=l;else{const{clientTop:p,scrollHeight:v}=t,g=D0e(t,r);h=f+u>=g+p+v-l}h&&e.call(a)};function EM(t,e){const{containerEl:n,instance:r}=t[As],{disabled:a}=wV(t,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?e.call(r):TQ(t))}const EGe={async mounted(t,e){const{instance:n,value:r}=e;Vt(r)||pa(As,"'v-infinite-scroll' binding value must be a function"),await yt();const{delay:a,immediate:i}=wV(t,n),o=hN(t,!0),s=o===window?document.documentElement:o,l=Eh(TGe.bind(null,t,r),a);if(o){if(t[As]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Eh(EM.bind(null,t,r),wGe));t[As].observer=u,u.observe(t,{childList:!0,subtree:!0}),EM(t,r)}o.addEventListener("scroll",l)}},unmounted(t){const{container:e,onScroll:n}=t[As];e==null||e.removeEventListener("scroll",n),TQ(t)},async updated(t){if(!t[As])await yt();else{const{containerEl:e,cb:n,observer:r}=t[As];e.clientHeight&&r&&EM(t,n)}}},JL=EGe;JL.install=t=>{t.directive("InfiniteScroll",JL)};const MGe=JL;function DGe(t){let e;const n=W(!1),r=Rn({...t,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let p=d.getAttribute("loading-number");p=Number.parseInt(p)-1,p?d.setAttribute("loading-number",p.toString()):(co(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),co(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=pe({name:"ElLoading",setup(d,{expose:h}){const{ns:p,zIndex:v}=fT("loading");return h({ns:p,zIndex:v}),()=>{const g=r.spinner||r.svg,y=xt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[xt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),m=r.text?xt("p",{class:p.b("text")},[r.text]):void 0;return xt(Jr,{name:p.b("fade"),onAfterLeave:l},{default:X(()=>[Ft(H("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[xt("div",{class:p.b("spinner")},[y,m])]),[[pn,r.visible]])])})}}}),c=Jj(u),f=c.mount(document.createElement("div"));return{...Ra(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let NS;const eO=function(t={}){if(!Sn)return;const e=kGe(t);if(e.fullscreen&&NS)return NS;const n=DGe({...e,closed:()=>{var a;(a=e.closed)==null||a.call(e),e.fullscreen&&(NS=void 0)}});RGe(e,e.parent,n),l6(e,e.parent,n),e.parent.vLoadingAddClassList=()=>l6(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),yt(()=>n.visible.value=e.visible),e.fullscreen&&(NS=n),n},kGe=t=>{var e,n,r,a;let i;return $t(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}},RGe=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(t.fullscreen)n.originalPosition.value=Wc(document.body,"position"),n.originalOverflow.value=Wc(document.body,"overflow"),a.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=Wc(document.body,"position"),await yt();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(Wc(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${t.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Wc(e,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},l6=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?co(e,r.bm("parent","relative")):Al(e,r.bm("parent","relative")),t.fullscreen&&t.lock?Al(e,r.bm("parent","hidden")):co(e,r.bm("parent","hidden"))},tO=Symbol("ElLoading"),u6=(t,e)=>{var n,r,a,i;const o=e.instance,s=d=>an(e.value)?e.value[d]:void 0,l=d=>{const h=$t(d)&&(o==null?void 0:o[d])||d;return h&&W(h)},u=d=>l(s(d)||t.getAttribute(`element-loading-${Nf(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[tO]={options:f,instance:eO(f)}},LGe=(t,e)=>{for(const n of Object.keys(e))Ot(e[n])&&(e[n].value=t[n])},c6={mounted(t,e){e.value&&u6(t,e)},updated(t,e){const n=t[tO];e.oldValue!==e.value&&(e.value&&!e.oldValue?u6(t,e):e.value&&e.oldValue?an(e.value)&&LGe(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[tO])==null||e.instance.close()}},OGe={install(t){t.directive("loading",c6),t.config.globalProperties.$loading=eO},directive:c6,service:eO},EQ=["success","info","warning","error"],no=Er({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:Sn?document.body:void 0}),AGe=et({customClass:{type:String,default:no.customClass},center:{type:Boolean,default:no.center},dangerouslyUseHTMLString:{type:Boolean,default:no.dangerouslyUseHTMLString},duration:{type:Number,default:no.duration},icon:{type:sr,default:no.icon},id:{type:String,default:no.id},message:{type:De([String,Object,Function]),default:no.message},onClose:{type:De(Function),required:!1},showClose:{type:Boolean,default:no.showClose},type:{type:String,values:EQ,default:no.type},offset:{type:Number,default:no.offset},zIndex:{type:Number,default:no.zIndex},grouping:{type:Boolean,default:no.grouping},repeatNum:{type:Number,default:no.repeatNum}}),NGe={destroy:()=>!0},zs=oj([]),VGe=t=>{const e=zs.findIndex(a=>a.id===t),n=zs[e];let r;return e>0&&(r=zs[e-1]),{current:n,prev:r}},BGe=t=>{const{prev:e}=VGe(t);return e?e.vm.exposed.bottom.value:0},IGe=(t,e)=>zs.findIndex(r=>r.id===t)>0?20:e,$Ge=["id"],PGe=["innerHTML"],FGe=pe({name:"ElMessage"}),zGe=pe({...FGe,props:AGe,emits:NGe,setup(t,{expose:e}){const n=t,{Close:r}=yN,{ns:a,zIndex:i}=fT("message"),{currentZIndex:o,nextZIndex:s}=i,l=W(),u=W(!1),c=W(0);let f;const d=B(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=B(()=>{const _=n.type;return{[a.bm("icon",_)]:_&&Sf[_]}}),p=B(()=>n.icon||Sf[n.type]||""),v=B(()=>BGe(n.id)),g=B(()=>IGe(n.id,n.offset)+v.value),y=B(()=>c.value+g.value),m=B(()=>({top:`${g.value}px`,zIndex:o.value}));function b(){n.duration!==0&&({stop:f}=Gh(()=>{C()},n.duration))}function w(){f==null||f()}function C(){u.value=!1}function x({code:_}){_===_t.esc&&C()}return Pt(()=>{b(),s(),u.value=!0}),Ge(()=>n.repeatNum,()=>{w(),b()}),Sr(document,"keydown",x),yi(l,()=>{c.value=l.value.getBoundingClientRect().height}),e({visible:u,bottom:y,close:C}),(_,T)=>(z(),xe(Jr,{name:S(a).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:T[0]||(T[0]=M=>_.$emit("destroy")),persisted:""},{default:X(()=>[Ft(U("div",{id:_.id,ref_key:"messageRef",ref:l,class:j([S(a).b(),{[S(a).m(_.type)]:_.type&&!_.icon},S(a).is("center",_.center),S(a).is("closable",_.showClose),_.customClass]),style:St(S(m)),role:"alert",onMouseenter:w,onMouseleave:b},[_.repeatNum>1?(z(),xe(S(Vq),{key:0,value:_.repeatNum,type:S(d),class:j(S(a).e("badge"))},null,8,["value","type","class"])):we("v-if",!0),S(p)?(z(),xe(S(mt),{key:1,class:j([S(a).e("icon"),S(h)])},{default:X(()=>[(z(),xe(tn(S(p))))]),_:1},8,["class"])):we("v-if",!0),ze(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(z(),ne(bt,{key:1},[we(" Caution here, message could've been compromised, never use user's input as message "),U("p",{class:j(S(a).e("content")),innerHTML:_.message},null,10,PGe)],2112)):(z(),ne("p",{key:0,class:j(S(a).e("content"))},Ke(_.message),3))]),_.showClose?(z(),xe(S(mt),{key:2,class:j(S(a).e("closeBtn")),onClick:kt(C,["stop"])},{default:X(()=>[H(S(r))]),_:1},8,["class","onClick"])):we("v-if",!0)],46,$Ge),[[pn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var UGe=Je(zGe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let GGe=1;const MQ=t=>{const e=!t||$t(t)||Dr(t)||Vt(t)?{message:t}:t,n={...no,...e};if(!n.appendTo)n.appendTo=document.body;else if($t(n.appendTo)){let r=document.querySelector(n.appendTo);is(r)||(r=document.body),n.appendTo=r}return n},HGe=t=>{const e=zs.indexOf(t);if(e===-1)return;zs.splice(e,1);const{handler:n}=t;n.close()},WGe=({appendTo:t,...e},n)=>{const r=`message_${GGe++}`,a=e.onClose,i=document.createElement("div"),o={...e,id:r,onClose:()=>{a==null||a(),HGe(c)},onDestroy:()=>{rg(null,i)}},s=H(UGe,o,Vt(o.message)||Dr(o.message)?{default:Vt(o.message)?o.message:()=>o.message}:null);s.appContext=n||Sg._context,rg(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},Sg=(t={},e)=>{if(!Sn)return{close:()=>{}};if(Nt(iL.max)&&zs.length>=iL.max)return{close:()=>{}};const n=MQ(t);if(n.grouping&&zs.length){const a=zs.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=WGe(n,e);return zs.push(r),r.handler};EQ.forEach(t=>{Sg[t]=(e={},n)=>{const r=MQ(e);return Sg({...r,type:t},n)}});function jGe(t){for(const e of zs)(!t||t===e.props.type)&&e.handler.close()}Sg.closeAll=jGe;Sg._context=null;const sn=NY(Sg,"$message"),KGe=pe({name:"ElMessageBox",directives:{TrapFocus:pLe},components:{ElButton:Lt,ElFocusTrap:hT,ElInput:vi,ElOverlay:YN,ElIcon:mt,...yN},inheritAttrs:!1,props:{buttonSize:{type:String,validator:rT},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}=fT("message-box",B(()=>t.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=W(!1),u=Rn({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=B(()=>{const V=u.type;return{[a.bm("icon",V)]:V&&Sf[V]}}),f=ls(),d=ls(),h=B(()=>u.icon||Sf[u.type]||""),p=B(()=>!!u.message),v=W(),g=W(),y=W(),m=W(),b=W(),w=B(()=>u.confirmButtonClass);Ge(()=>u.inputValue,async V=>{await yt(),t.boxType==="prompt"&&V!==null&&k()},{immediate:!0}),Ge(()=>l.value,V=>{var G,I;V&&(t.boxType!=="prompt"&&(u.autofocus?y.value=(I=(G=b.value)==null?void 0:G.$el)!=null?I:v.value:y.value=v.value),u.zIndex=s()),t.boxType==="prompt"&&(V?yt().then(()=>{var $;m.value&&m.value.$el&&(u.autofocus?y.value=($=R())!=null?$:v.value:y.value=v.value)}):(u.editorErrorMessage="",u.validateError=!1))});const C=B(()=>t.draggable);VY(v,g,C),Pt(async()=>{await yt(),t.closeOnHashChange&&window.addEventListener("hashchange",x)}),fr(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",x)});function x(){l.value&&(l.value=!1,yt(()=>{u.action&&e("action",u.action)}))}const _=()=>{t.closeOnClickModal&&E(u.distinguishCancelAndClose?"close":"cancel")},T=kN(_),M=V=>{if(u.inputType!=="textarea")return V.preventDefault(),E("confirm")},E=V=>{var G;t.boxType==="prompt"&&V==="confirm"&&!k()||(u.action=V,u.beforeClose?(G=u.beforeClose)==null||G.call(u,V,u,x):x())},k=()=>{if(t.boxType==="prompt"){const V=u.inputPattern;if(V&&!V.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const G=u.inputValidator;if(typeof G=="function"){const I=G(u.inputValue);if(I===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof I=="string")return u.editorErrorMessage=I,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},R=()=>{const V=m.value.$refs;return V.input||V.textarea},L=()=>{E("close")},A=()=>{t.closeOnPressEscape&&L()};return t.lockScroll&&$Y(l),{...Ra(u),ns:a,overlayEvent:T,visible:l,hasMessage:p,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:v,focusStartRef:y,headerRef:g,inputRef:m,confirmRef:b,doClose:x,handleClose:L,onCloseRequested:A,handleWrapperClick:_,handleInputEnter:M,handleAction:E,t:o}}}),YGe=["aria-label","aria-describedby"],qGe=["aria-label"],XGe=["id"];function ZGe(t,e,n,r,a,i){const o=Xe("el-icon"),s=Xe("close"),l=Xe("el-input"),u=Xe("el-button"),c=Xe("el-focus-trap"),f=Xe("el-overlay");return z(),xe(Jr,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=d=>t.$emit("vanish")),persisted:""},{default:X(()=>[Ft(H(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:X(()=>[U("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:j(`${t.ns.namespace.value}-overlay-message-box`),onClick:e[8]||(e[8]=(...d)=>t.overlayEvent.onClick&&t.overlayEvent.onClick(...d)),onMousedown:e[9]||(e[9]=(...d)=>t.overlayEvent.onMousedown&&t.overlayEvent.onMousedown(...d)),onMouseup:e[10]||(e[10]=(...d)=>t.overlayEvent.onMouseup&&t.overlayEvent.onMouseup(...d))},[H(c,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:X(()=>[U("div",{ref:"rootRef",class:j([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:St(t.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=kt(()=>{},["stop"]))},[t.title!==null&&t.title!==void 0?(z(),ne("div",{key:0,ref:"headerRef",class:j(t.ns.e("header"))},[U("div",{class:j(t.ns.e("title"))},[t.iconComponent&&t.center?(z(),xe(o,{key:0,class:j([t.ns.e("status"),t.typeClass])},{default:X(()=>[(z(),xe(tn(t.iconComponent)))]),_:1},8,["class"])):we("v-if",!0),U("span",null,Ke(t.title),1)],2),t.showClose?(z(),ne("button",{key:0,type:"button",class:j(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]=_n(kt(d=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[H(o,{class:j(t.ns.e("close"))},{default:X(()=>[H(s)]),_:1},8,["class"])],42,qGe)):we("v-if",!0)],2)):we("v-if",!0),U("div",{id:t.contentId,class:j(t.ns.e("content"))},[U("div",{class:j(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(z(),xe(o,{key:0,class:j([t.ns.e("status"),t.typeClass])},{default:X(()=>[(z(),xe(tn(t.iconComponent)))]),_:1},8,["class"])):we("v-if",!0),t.hasMessage?(z(),ne("div",{key:1,class:j(t.ns.e("message"))},[ze(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(z(),xe(tn(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(z(),xe(tn(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:X(()=>[lt(Ke(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):we("v-if",!0)],2),Ft(U("div",{class:j(t.ns.e("input"))},[H(l,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":e[2]||(e[2]=d=>t.inputValue=d),type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:j({invalid:t.validateError}),onKeydown:_n(t.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),U("div",{class:j(t.ns.e("errormsg")),style:St({visibility:t.editorErrorMessage?"visible":"hidden"})},Ke(t.editorErrorMessage),7)],2),[[pn,t.showInput]])],10,XGe),U("div",{class:j(t.ns.e("btns"))},[t.showCancelButton?(z(),xe(u,{key:0,loading:t.cancelButtonLoading,class:j([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:e[3]||(e[3]=d=>t.handleAction("cancel")),onKeydown:e[4]||(e[4]=_n(kt(d=>t.handleAction("cancel"),["prevent"]),["enter"]))},{default:X(()=>[lt(Ke(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):we("v-if",!0),Ft(H(u,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,class:j([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]=_n(kt(d=>t.handleAction("confirm"),["prevent"]),["enter"]))},{default:X(()=>[lt(Ke(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[pn,t.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,YGe)]),_:3},8,["z-index","overlay-class","mask"]),[[pn,t.visible]])]),_:3})}var QGe=Je(KGe,[["render",ZGe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const p1=new Map,JGe=t=>{let e=document.body;return t.appendTo&&($t(t.appendTo)&&(e=document.querySelector(t.appendTo)),is(t.appendTo)&&(e=t.appendTo),is(e)||(e=document.body)),e},eHe=(t,e,n=null)=>{const r=H(QGe,t,Vt(t.message)||Dr(t.message)?{default:Vt(t.message)?t.message:()=>t.message}:null);return r.appContext=n,rg(r,e),JGe(t).appendChild(e.firstElementChild),r.component},tHe=()=>document.createElement("div"),nHe=(t,e)=>{const n=tHe();t.onVanish=()=>{rg(null,n),p1.delete(a)},t.onAction=i=>{const o=p1.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=eHe(t,n,e),a=r.proxy;for(const i in t)yn(t,i)&&!yn(a.$props,i)&&(a[i]=t[i]);return a.visible=!0,a};function qg(t,e=null){if(!Sn)return Promise.reject();let n;return $t(t)||Dr(t)?t={message:t}:n=t.callback,new Promise((r,a)=>{const i=nHe(t,e??qg._context);p1.set(i,{options:t,callback:n,resolve:r,reject:a})})}const rHe=["alert","confirm","prompt"],aHe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};rHe.forEach(t=>{qg[t]=iHe(t)});function iHe(t){return(e,n,r,a)=>{let i="";return an(n)?(r=n,i=""):ba(n)?i="":i=n,qg(Object.assign({title:i,message:e,type:"",...aHe[t]},r,{boxType:t}),a)}}qg.close=()=>{p1.forEach((t,e)=>{e.doClose()}),p1.clear()};qg._context=null;const Oc=qg;Oc.install=t=>{Oc._context=t._context,t.config.globalProperties.$msgbox=Oc,t.config.globalProperties.$messageBox=Oc,t.config.globalProperties.$alert=Oc.alert,t.config.globalProperties.$confirm=Oc.confirm,t.config.globalProperties.$prompt=Oc.prompt};const oHe=Oc,DQ=["success","info","warning","error"],sHe=et({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:sr},id:{type:String,default:""},message:{type:De([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:De(Function),default:()=>{}},onClose:{type:De(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:[...DQ,""],default:""},zIndex:Number}),lHe={destroy:()=>!0},uHe=["id"],cHe=["textContent"],fHe={key:0},dHe=["innerHTML"],hHe=pe({name:"ElNotification"}),pHe=pe({...hHe,props:sHe,emits:lHe,setup(t,{expose:e}){const n=t,{ns:r,zIndex:a}=fT("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=AY,l=W(!1);let u;const c=B(()=>{const b=n.type;return b&&Sf[n.type]?r.m(b):""}),f=B(()=>n.type&&Sf[n.type]||n.icon),d=B(()=>n.position.endsWith("right")?"right":"left"),h=B(()=>n.position.startsWith("top")?"top":"bottom"),p=B(()=>{var b;return{[h.value]:`${n.offset}px`,zIndex:(b=n.zIndex)!=null?b:o.value}});function v(){n.duration>0&&({stop:u}=Gh(()=>{l.value&&y()},n.duration))}function g(){u==null||u()}function y(){l.value=!1}function m({code:b}){b===_t.delete||b===_t.backspace?g():b===_t.esc?l.value&&y():v()}return Pt(()=>{v(),i(),l.value=!0}),Sr(document,"keydown",m),e({visible:l,close:y}),(b,w)=>(z(),xe(Jr,{name:S(r).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:w[1]||(w[1]=C=>b.$emit("destroy")),persisted:""},{default:X(()=>[Ft(U("div",{id:b.id,class:j([S(r).b(),b.customClass,S(d)]),style:St(S(p)),role:"alert",onMouseenter:g,onMouseleave:v,onClick:w[0]||(w[0]=(...C)=>b.onClick&&b.onClick(...C))},[S(f)?(z(),xe(S(mt),{key:0,class:j([S(r).e("icon"),S(c)])},{default:X(()=>[(z(),xe(tn(S(f))))]),_:1},8,["class"])):we("v-if",!0),U("div",{class:j(S(r).e("group"))},[U("h2",{class:j(S(r).e("title")),textContent:Ke(b.title)},null,10,cHe),Ft(U("div",{class:j(S(r).e("content")),style:St(b.title?void 0:{margin:0})},[ze(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(z(),ne(bt,{key:1},[we(" Caution here, message could've been compromised, never use user's input as message "),U("p",{innerHTML:b.message},null,8,dHe)],2112)):(z(),ne("p",fHe,Ke(b.message),1))])],6),[[pn,b.message]]),b.showClose?(z(),xe(S(mt),{key:0,class:j(S(r).e("closeBtn")),onClick:kt(y,["stop"])},{default:X(()=>[H(S(s))]),_:1},8,["class","onClick"])):we("v-if",!0)],2)],46,uHe),[[pn,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var vHe=Je(pHe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const n2={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},nO=16;let gHe=1;const wg=function(t={},e=null){if(!Sn)return{close:()=>{}};(typeof t=="string"||Dr(t))&&(t={message:t});const n=t.position||"top-right";let r=t.offset||0;n2[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+nO}),r+=nO;const a=`notification_${gHe++}`,i=t.onClose,o={...t,offset:r,id:a,onClose:()=>{yHe(a,n,i)}};let s=document.body;is(t.appendTo)?s=t.appendTo:$t(t.appendTo)&&(s=document.querySelector(t.appendTo)),is(s)||(s=document.body);const l=document.createElement("div"),u=H(vHe,o,Dr(o.message)?{default:()=>o.message}:null);return u.appContext=e??wg._context,u.props.onDestroy=()=>{rg(null,l)},rg(u,l),n2[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};DQ.forEach(t=>{wg[t]=(e={})=>((typeof e=="string"||Dr(e))&&(e={message:e}),wg({...e,type:t}))});function yHe(t,e,n){const r=n2[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-nO;f.props.offset=d}}function mHe(){for(const t of Object.values(n2))t.forEach(({vm:e})=>{e.component.exposed.visible.value=!1})}wg.closeAll=mHe;wg._context=null;const bHe=NY(wg,"$notify");var SHe=[MGe,OGe,sn,oHe,bHe,gZ],wHe=mMe([...SGe,...SHe]),r2={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const Ea="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAALCAYAAACksgdhAAAAAXNSR0IArs4c6QAAANZJREFUKFONkKFOw3AQxn/HGqiYQNQsQSCWzC010/AAPMHUEgQVPETfAbMsSzaHYe8wP4UnAVlRUVFRknYfLQHC2n+Wnblc7n733XfGT8xW8rnE/61d+eOVfBtbaU0zetETRgR4xyCJAuPRomddc877seGDnkj+Q2VVMelVZK4FdsGNxFqQHSqJN0HuVDUCg6sOJDHHKJxKYohx14ZKQVQbTV2QRHgGcfe8E77RUdp/MlhM7VvpYaP72sOyvcf1iOTPkwgw+g4otdtY3mjMzkR4wnXNyPILgh9dNRVCDU4AAAAASUVORK5CYII=",_He=""+new URL("g-5e0184b4.jpg",import.meta.url).href,xHe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEySURBVHgB7ZbbDYIwFIaPxAHcQJ3AEXQTZQL1jUuI5QV4UycQN3AERmEQgv41NCHEciuKD/2Tk1Pg9M/XayDS0hpZE9F4QvRDTSCeDRpZGmAq+yDWqE5BEBxQtkczQfi2baeyWtkek27CMAwfMD/WmRZ1C6Qd4oRgiPunPlV/MUApQBRFZmGaUMPoBAgsGHzXeZ77ruvGSgCiAMYMaasK0hugaorHGBA+NQh9NkhnxIyDOI5z6w3QNLoGkB3SybKshTJAGQQAF8MwVm1BlJagBmSD9J7aLMtMz/MSGgoApyDtOs1Us1H7ACzxKkbdfAgQlWMoTLmZ2eFi2sMihu2V91HeA22muQpSPro4BUwJQKjL/V8GQd12EABhinRAcBBGkvu/rM5L8G3pP6K/AdDSGl0vEYcYLybsUwwAAAAASUVORK5CYII=",CHe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL4SURBVHgB5Ve9bhpBEB5QHoBI7gP2A9h+Al/eABd2yyHRUBl3/Aj5KBB0gZKKyxOYJwDS0hgkekgHQsiUFIjLN749ZVn2LnCQJhlptHezM7Pf7M3M7hH97xQ5RtlxHANDEnwHjoNjYmoFHoJH4E4kEunTOQkLm+CJczixrkmnEpzEwW9OeJqwDwpDMEyB353TiX0kj108qfO0Xq+d+Xz+Kubjkv6NkNkBQFK6tT5pFmfHbY1up91uj1ar1Qu5CTf0JpB03nsH9hZGZnXBBuZ+QHcqC6OahXr0O7s9eobhfTabtfCcgKME61WrVVM15gXALK8oU+zzdU9ffnHczFWjr8ChpRrWajVOUAtzd9vttlIqlWxVB/M5DN8UcRo2th+ACbn17ZEN5TQFEIAYYpGYDgh8ctRyEvIOJfYAOG6T6cnGrVZrulwutdFpgJgYOD+m4HShUJgKv7z1HJj8Wb96zUoG0MDwJCnZ9Xq9gqga0Wj02m+bA4D0wRUGovHdBICcCoCjNySleyh1hFOWf+TGZrNJl8vlPv0ZiEVuJfQfHx9Hl5eXci4M4ftWBfBOu9t0K8orMDoKBvGRqLFYLIUKkqdW8P1ZBeDIGlCIBDg2jwWSz+cnOv+hAHhOMZjgJy4rmDeDgPj59/0ENmg2mx28zdwP2Az6Fc3iNxjeJJH2E7DCjffe7XY7g8GA3/t0xPfWNSZxGMldkFuyoQLYKxWUIctyQm6Bvx8IhBvYFw8Iv9Pu2aAtQ4N2GxHfchJQXB3SdjVATAwvFxcX00wmYyjT+41IgFBbMV+v7pXojgKyWCx6AGFIIn0rFgBM2j+M+CRsyAK5McHmuVgsdkhDmONStRSx/2EkjHaSURBHvZfdfv1f+NGdhDvR+wGIk1sy6p3AJvdongYA6V9dXTUfHh74Wb2GcU7d6uxJA8IMuFq1NVcyzo3keDye8LXNh0LdC891KTUpDInIJk544it9nE4l5y/+mIT9NeMquabdX7Of5Lbt8/+a/dP0CyTTqNuZ5l8rAAAAAElFTkSuQmCC";const yb=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},THe=t=>(LC("data-v-2e23cdcd"),t=t(),OC(),t),EHe={class:"my-header"},MHe=["id"],DHe={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},kHe={class:"guand_1"},RHe=THe(()=>U("span",{class:"spantext"},"搜索",-1)),LHe=[RHe],OHe={class:"demo-pagination-block",style:{"margin-top":"20px"}},AHe={class:"dialog-footer footer_div l_btn"},NHe={class:"footerbtn flex1"},VHe={class:"borderimg"},BHe={class:"footerbtn flex1"},IHe={class:"borderimg"},$He={__name:"NodeLine",props:{},emits:["queding"],setup(t,{expose:e,emit:n}){W({dianadddialog:!1});let r=W(99),a=W(500),i=W([]);const o=W(),s=W([]);let l=W(!1),u=W(1),c=W(""),f=W("");const d=W(1),h=W(5);Pt(()=>{});const p=({row:x,rowIndex:_})=>_%2!=0?"evenRow":"oddRow",v=x=>{g()},g=()=>{const x={transCode:"D00000",count:h.value,page:d.value,searchtag:f.value};Tr(x).then(_=>{i.value=_.rows,u.value=_.total}).catch(_=>{sn.error(_.returnMsg)})};function y(){f.value=c.value,g()}const m=x=>{},b=(x,_)=>{if(x.length>1){o.value.clearSelection(),o.value.toggleRowSelection(_,!0);let T=[];T.push(x[1]),s.value=T;return}x.length==1?s.value=x:x.length==0},w=()=>{d.value=1,s.value.length!=0&&(console.log(s.value[0]),n("queding",s.value[0]))},C=()=>{f.value="",w()};return e({dialogVisiblenode:l,pipelinedata:g,searchtaggd:c}),(x,_)=>{const T=Xe("el-image"),M=Xe("el-input"),E=Xe("el-form-item"),k=Xe("el-table-column"),R=Xe("el-table"),L=Xe("el-pagination");return z(),ne("div",null,[H(S(Ta),{modelValue:S(l),"onUpdate:modelValue":_[5]||(_[5]=A=>Ot(l)?l.value=A:l=A),width:"700","z-index":9999,"align-center":"","append-to-body":!0,class:"dialog_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:X(({titleId:A,titleClass:V})=>[U("div",EHe,[H(T,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:A,class:j(V)}," 选择节点",10,MHe)])]),default:X(()=>[U("div",DHe,[U("div",kHe,[H(E,{label:"节点选择","label-width":S(r)},{default:X(()=>[H(M,{modelValue:S(c),"onUpdate:modelValue":_[0]||(_[0]=A=>Ot(c)?c.value=A:c=A),class:"w-50 m-2",placeholder:"节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",{class:"asdis_btn"},[U("div",{class:"flex_a"},[U("div",{class:"btns",onClick:y},LHe)])])]),H(R,{"row-class-name":p,"max-height":S(a),ref_key:"multipleTableRef",ref:o,data:S(i),style:{width:"100%"},onSelectionChange:m,onSelect:b,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:X(()=>[H(k,{type:"selection",width:"55"}),H(k,{property:"id",label:"节点编号"}),H(k,{property:"name",label:"名称"}),H(k,{property:"ntype",label:"类型"}),H(k,{property:"x",label:"x"}),H(k,{property:"y",label:"y"}),H(k,{property:"z",label:"z"})]),_:1},8,["max-height","data","header-cell-style"]),U("div",OHe,[H(S(n1),{locale:S(r2)},{default:X(()=>[H(L,{"current-page":d.value,"onUpdate:currentPage":_[1]||(_[1]=A=>d.value=A),"page-size":h.value,"onUpdate:pageSize":_[2]||(_[2]=A=>h.value=A),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(u)),class:"mt-4",onCurrentChange:v},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])]),U("div",AHe,[U("div",NHe,[U("div",VHe,[H(S(Lt),{onClick:_[3]||(_[3]=A=>{Ot(l)?l.value=!1:l=!1,Ot(f)?f.value="":f=""})},{default:X(()=>[lt("取消")]),_:1})])]),U("div",BHe,[U("div",IHe,[H(S(Lt),{onClick:_[4]||(_[4]=A=>{C(),Ot(l)?l.value=!1:l=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},kQ=yb($He,[["__scopeId","data-v-2e23cdcd"]]);var RQ={exports:{}};/*!
  67. * jQuery JavaScript Library v3.7.1
  68. * https://jquery.com/
  69. *
  70. * Copyright OpenJS Foundation and other contributors
  71. * Released under the MIT license
  72. * https://jquery.org/license
  73. *
  74. * Date: 2023-08-28T13:37Z
  75. */(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:aa,function(e,n){var r=[],a=Object.getPrototypeOf,i=r.slice,o=r.flat?function(D){return r.flat.call(D)}:function(D){return r.concat.apply([],D)},s=r.push,l=r.indexOf,u={},c=u.toString,f=u.hasOwnProperty,d=f.toString,h=d.call(Object),p={},v=function(O){return typeof O=="function"&&typeof O.nodeType!="number"&&typeof O.item!="function"},g=function(O){return O!=null&&O===O.window},y=e.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function b(D,O,F){F=F||y;var K,ee,te=F.createElement("script");if(te.text=D,O)for(K in m)ee=O[K]||O.getAttribute&&O.getAttribute(K),ee&&te.setAttribute(K,ee);F.head.appendChild(te).parentNode.removeChild(te)}function w(D){return D==null?D+"":typeof D=="object"||typeof D=="function"?u[c.call(D)]||"object":typeof D}var C="3.7.1",x=/HTML$/i,_=function(D,O){return new _.fn.init(D,O)};_.fn=_.prototype={jquery:C,constructor:_,length:0,toArray:function(){return i.call(this)},get:function(D){return D==null?i.call(this):D<0?this[D+this.length]:this[D]},pushStack:function(D){var O=_.merge(this.constructor(),D);return O.prevObject=this,O},each:function(D){return _.each(this,D)},map:function(D){return this.pushStack(_.map(this,function(O,F){return D.call(O,F,O)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,function(D,O){return(O+1)%2}))},odd:function(){return this.pushStack(_.grep(this,function(D,O){return O%2}))},eq:function(D){var O=this.length,F=+D+(D<0?O:0);return this.pushStack(F>=0&&F<O?[this[F]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:r.sort,splice:r.splice},_.extend=_.fn.extend=function(){var D,O,F,K,ee,te,ae=arguments[0]||{},ke=1,Ce=arguments.length,Ue=!1;for(typeof ae=="boolean"&&(Ue=ae,ae=arguments[ke]||{},ke++),typeof ae!="object"&&!v(ae)&&(ae={}),ke===Ce&&(ae=this,ke--);ke<Ce;ke++)if((D=arguments[ke])!=null)for(O in D)K=D[O],!(O==="__proto__"||ae===K)&&(Ue&&K&&(_.isPlainObject(K)||(ee=Array.isArray(K)))?(F=ae[O],ee&&!Array.isArray(F)?te=[]:!ee&&!_.isPlainObject(F)?te={}:te=F,ee=!1,ae[O]=_.extend(Ue,te,K)):K!==void 0&&(ae[O]=K));return ae},_.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(D){throw new Error(D)},noop:function(){},isPlainObject:function(D){var O,F;return!D||c.call(D)!=="[object Object]"?!1:(O=a(D),O?(F=f.call(O,"constructor")&&O.constructor,typeof F=="function"&&d.call(F)===h):!0)},isEmptyObject:function(D){var O;for(O in D)return!1;return!0},globalEval:function(D,O,F){b(D,{nonce:O&&O.nonce},F)},each:function(D,O){var F,K=0;if(T(D))for(F=D.length;K<F&&O.call(D[K],K,D[K])!==!1;K++);else for(K in D)if(O.call(D[K],K,D[K])===!1)break;return D},text:function(D){var O,F="",K=0,ee=D.nodeType;if(!ee)for(;O=D[K++];)F+=_.text(O);return ee===1||ee===11?D.textContent:ee===9?D.documentElement.textContent:ee===3||ee===4?D.nodeValue:F},makeArray:function(D,O){var F=O||[];return D!=null&&(T(Object(D))?_.merge(F,typeof D=="string"?[D]:D):s.call(F,D)),F},inArray:function(D,O,F){return O==null?-1:l.call(O,D,F)},isXMLDoc:function(D){var O=D&&D.namespaceURI,F=D&&(D.ownerDocument||D).documentElement;return!x.test(O||F&&F.nodeName||"HTML")},merge:function(D,O){for(var F=+O.length,K=0,ee=D.length;K<F;K++)D[ee++]=O[K];return D.length=ee,D},grep:function(D,O,F){for(var K,ee=[],te=0,ae=D.length,ke=!F;te<ae;te++)K=!O(D[te],te),K!==ke&&ee.push(D[te]);return ee},map:function(D,O,F){var K,ee,te=0,ae=[];if(T(D))for(K=D.length;te<K;te++)ee=O(D[te],te,F),ee!=null&&ae.push(ee);else for(te in D)ee=O(D[te],te,F),ee!=null&&ae.push(ee);return o(ae)},guid:1,support:p}),typeof Symbol=="function"&&(_.fn[Symbol.iterator]=r[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(D,O){u["[object "+O+"]"]=O.toLowerCase()});function T(D){var O=!!D&&"length"in D&&D.length,F=w(D);return v(D)||g(D)?!1:F==="array"||O===0||typeof O=="number"&&O>0&&O-1 in D}function M(D,O){return D.nodeName&&D.nodeName.toLowerCase()===O.toLowerCase()}var E=r.pop,k=r.sort,R=r.splice,L="[\\x20\\t\\r\\n\\f]",A=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");_.contains=function(D,O){var F=O&&O.parentNode;return D===F||!!(F&&F.nodeType===1&&(D.contains?D.contains(F):D.compareDocumentPosition&&D.compareDocumentPosition(F)&16))};var V=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function G(D,O){return O?D==="\0"?"�":D.slice(0,-1)+"\\"+D.charCodeAt(D.length-1).toString(16)+" ":"\\"+D}_.escapeSelector=function(D){return(D+"").replace(V,G)};var I=y,$=s;(function(){var D,O,F,K,ee,te=$,ae,ke,Ce,Ue,ot,ft=_.expando,Ze=0,Et=0,Cn=sS(),rr=sS(),Pn=sS(),qa=sS(),_a=function(ye,Be){return ye===Be&&(ee=!0),0},ul="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",cl="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",qn="\\["+L+"*("+cl+")(?:"+L+"*([*^$|!~]?=)"+L+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+cl+"))|)"+L+"*\\]",Qf=":("+cl+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+qn+")*)|.*)\\)|)",ar=new RegExp(L+"+","g"),ta=new RegExp("^"+L+"*,"+L+"*"),L0=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),VE=new RegExp(L+"|>"),fl=new RegExp(Qf),O0=new RegExp("^"+cl+"$"),dl={ID:new RegExp("^#("+cl+")"),CLASS:new RegExp("^\\.("+cl+")"),TAG:new RegExp("^("+cl+"|[*])"),ATTR:new RegExp("^"+qn),PSEUDO:new RegExp("^"+Qf),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+ul+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},lc=/^(?:input|select|textarea|button)$/i,uc=/^h\d$/i,Lo=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,BE=/[+~]/,ou=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),su=function(ye,Be){var qe="0x"+ye.slice(1)-65536;return Be||(qe<0?String.fromCharCode(qe+65536):String.fromCharCode(qe>>10|55296,qe&1023|56320))},Dfe=function(){cc()},kfe=uS(function(ye){return ye.disabled===!0&&M(ye,"fieldset")},{dir:"parentNode",next:"legend"});function Rfe(){try{return ae.activeElement}catch{}}try{te.apply(r=i.call(I.childNodes),I.childNodes),r[I.childNodes.length].nodeType}catch{te={apply:function(Be,qe){$.apply(Be,i.call(qe))},call:function(Be){$.apply(Be,i.call(arguments,1))}}}function mr(ye,Be,qe,tt){var ct,At,Ut,Jt,Gt,Wn,bn,En=Be&&Be.ownerDocument,jn=Be?Be.nodeType:9;if(qe=qe||[],typeof ye!="string"||!ye||jn!==1&&jn!==9&&jn!==11)return qe;if(!tt&&(cc(Be),Be=Be||ae,Ce)){if(jn!==11&&(Gt=Lo.exec(ye)))if(ct=Gt[1]){if(jn===9)if(Ut=Be.getElementById(ct)){if(Ut.id===ct)return te.call(qe,Ut),qe}else return qe;else if(En&&(Ut=En.getElementById(ct))&&mr.contains(Be,Ut)&&Ut.id===ct)return te.call(qe,Ut),qe}else{if(Gt[2])return te.apply(qe,Be.getElementsByTagName(ye)),qe;if((ct=Gt[3])&&Be.getElementsByClassName)return te.apply(qe,Be.getElementsByClassName(ct)),qe}if(!qa[ye+" "]&&(!Ue||!Ue.test(ye))){if(bn=ye,En=Be,jn===1&&(VE.test(ye)||L0.test(ye))){for(En=BE.test(ye)&&IE(Be.parentNode)||Be,(En!=Be||!p.scope)&&((Jt=Be.getAttribute("id"))?Jt=_.escapeSelector(Jt):Be.setAttribute("id",Jt=ft)),Wn=A0(ye),At=Wn.length;At--;)Wn[At]=(Jt?"#"+Jt:":scope")+" "+lS(Wn[At]);bn=Wn.join(",")}try{return te.apply(qe,En.querySelectorAll(bn)),qe}catch{qa(ye,!0)}finally{Jt===ft&&Be.removeAttribute("id")}}}return c4(ye.replace(A,"$1"),Be,qe,tt)}function sS(){var ye=[];function Be(qe,tt){return ye.push(qe+" ")>O.cacheLength&&delete Be[ye.shift()],Be[qe+" "]=tt}return Be}function bs(ye){return ye[ft]=!0,ye}function Cp(ye){var Be=ae.createElement("fieldset");try{return!!ye(Be)}catch{return!1}finally{Be.parentNode&&Be.parentNode.removeChild(Be),Be=null}}function Lfe(ye){return function(Be){return M(Be,"input")&&Be.type===ye}}function Ofe(ye){return function(Be){return(M(Be,"input")||M(Be,"button"))&&Be.type===ye}}function l4(ye){return function(Be){return"form"in Be?Be.parentNode&&Be.disabled===!1?"label"in Be?"label"in Be.parentNode?Be.parentNode.disabled===ye:Be.disabled===ye:Be.isDisabled===ye||Be.isDisabled!==!ye&&kfe(Be)===ye:Be.disabled===ye:"label"in Be?Be.disabled===ye:!1}}function Jf(ye){return bs(function(Be){return Be=+Be,bs(function(qe,tt){for(var ct,At=ye([],qe.length,Be),Ut=At.length;Ut--;)qe[ct=At[Ut]]&&(qe[ct]=!(tt[ct]=qe[ct]))})})}function IE(ye){return ye&&typeof ye.getElementsByTagName<"u"&&ye}function cc(ye){var Be,qe=ye?ye.ownerDocument||ye:I;return qe==ae||qe.nodeType!==9||!qe.documentElement||(ae=qe,ke=ae.documentElement,Ce=!_.isXMLDoc(ae),ot=ke.matches||ke.webkitMatchesSelector||ke.msMatchesSelector,ke.msMatchesSelector&&I!=ae&&(Be=ae.defaultView)&&Be.top!==Be&&Be.addEventListener("unload",Dfe),p.getById=Cp(function(tt){return ke.appendChild(tt).id=_.expando,!ae.getElementsByName||!ae.getElementsByName(_.expando).length}),p.disconnectedMatch=Cp(function(tt){return ot.call(tt,"*")}),p.scope=Cp(function(){return ae.querySelectorAll(":scope")}),p.cssHas=Cp(function(){try{return ae.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),p.getById?(O.filter.ID=function(tt){var ct=tt.replace(ou,su);return function(At){return At.getAttribute("id")===ct}},O.find.ID=function(tt,ct){if(typeof ct.getElementById<"u"&&Ce){var At=ct.getElementById(tt);return At?[At]:[]}}):(O.filter.ID=function(tt){var ct=tt.replace(ou,su);return function(At){var Ut=typeof At.getAttributeNode<"u"&&At.getAttributeNode("id");return Ut&&Ut.value===ct}},O.find.ID=function(tt,ct){if(typeof ct.getElementById<"u"&&Ce){var At,Ut,Jt,Gt=ct.getElementById(tt);if(Gt){if(At=Gt.getAttributeNode("id"),At&&At.value===tt)return[Gt];for(Jt=ct.getElementsByName(tt),Ut=0;Gt=Jt[Ut++];)if(At=Gt.getAttributeNode("id"),At&&At.value===tt)return[Gt]}return[]}}),O.find.TAG=function(tt,ct){return typeof ct.getElementsByTagName<"u"?ct.getElementsByTagName(tt):ct.querySelectorAll(tt)},O.find.CLASS=function(tt,ct){if(typeof ct.getElementsByClassName<"u"&&Ce)return ct.getElementsByClassName(tt)},Ue=[],Cp(function(tt){var ct;ke.appendChild(tt).innerHTML="<a id='"+ft+"' href='' disabled='disabled'></a><select id='"+ft+"-\r\\' disabled='disabled'><option selected=''></option></select>",tt.querySelectorAll("[selected]").length||Ue.push("\\["+L+"*(?:value|"+ul+")"),tt.querySelectorAll("[id~="+ft+"-]").length||Ue.push("~="),tt.querySelectorAll("a#"+ft+"+*").length||Ue.push(".#.+[+~]"),tt.querySelectorAll(":checked").length||Ue.push(":checked"),ct=ae.createElement("input"),ct.setAttribute("type","hidden"),tt.appendChild(ct).setAttribute("name","D"),ke.appendChild(tt).disabled=!0,tt.querySelectorAll(":disabled").length!==2&&Ue.push(":enabled",":disabled"),ct=ae.createElement("input"),ct.setAttribute("name",""),tt.appendChild(ct),tt.querySelectorAll("[name='']").length||Ue.push("\\["+L+"*name"+L+"*="+L+`*(?:''|"")`)}),p.cssHas||Ue.push(":has"),Ue=Ue.length&&new RegExp(Ue.join("|")),_a=function(tt,ct){if(tt===ct)return ee=!0,0;var At=!tt.compareDocumentPosition-!ct.compareDocumentPosition;return At||(At=(tt.ownerDocument||tt)==(ct.ownerDocument||ct)?tt.compareDocumentPosition(ct):1,At&1||!p.sortDetached&&ct.compareDocumentPosition(tt)===At?tt===ae||tt.ownerDocument==I&&mr.contains(I,tt)?-1:ct===ae||ct.ownerDocument==I&&mr.contains(I,ct)?1:K?l.call(K,tt)-l.call(K,ct):0:At&4?-1:1)}),ae}mr.matches=function(ye,Be){return mr(ye,null,null,Be)},mr.matchesSelector=function(ye,Be){if(cc(ye),Ce&&!qa[Be+" "]&&(!Ue||!Ue.test(Be)))try{var qe=ot.call(ye,Be);if(qe||p.disconnectedMatch||ye.document&&ye.document.nodeType!==11)return qe}catch{qa(Be,!0)}return mr(Be,ae,null,[ye]).length>0},mr.contains=function(ye,Be){return(ye.ownerDocument||ye)!=ae&&cc(ye),_.contains(ye,Be)},mr.attr=function(ye,Be){(ye.ownerDocument||ye)!=ae&&cc(ye);var qe=O.attrHandle[Be.toLowerCase()],tt=qe&&f.call(O.attrHandle,Be.toLowerCase())?qe(ye,Be,!Ce):void 0;return tt!==void 0?tt:ye.getAttribute(Be)},mr.error=function(ye){throw new Error("Syntax error, unrecognized expression: "+ye)},_.uniqueSort=function(ye){var Be,qe=[],tt=0,ct=0;if(ee=!p.sortStable,K=!p.sortStable&&i.call(ye,0),k.call(ye,_a),ee){for(;Be=ye[ct++];)Be===ye[ct]&&(tt=qe.push(ct));for(;tt--;)R.call(ye,qe[tt],1)}return K=null,ye},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(i.apply(this)))},O=_.expr={cacheLength:50,createPseudo:bs,match:dl,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ye){return ye[1]=ye[1].replace(ou,su),ye[3]=(ye[3]||ye[4]||ye[5]||"").replace(ou,su),ye[2]==="~="&&(ye[3]=" "+ye[3]+" "),ye.slice(0,4)},CHILD:function(ye){return ye[1]=ye[1].toLowerCase(),ye[1].slice(0,3)==="nth"?(ye[3]||mr.error(ye[0]),ye[4]=+(ye[4]?ye[5]+(ye[6]||1):2*(ye[3]==="even"||ye[3]==="odd")),ye[5]=+(ye[7]+ye[8]||ye[3]==="odd")):ye[3]&&mr.error(ye[0]),ye},PSEUDO:function(ye){var Be,qe=!ye[6]&&ye[2];return dl.CHILD.test(ye[0])?null:(ye[3]?ye[2]=ye[4]||ye[5]||"":qe&&fl.test(qe)&&(Be=A0(qe,!0))&&(Be=qe.indexOf(")",qe.length-Be)-qe.length)&&(ye[0]=ye[0].slice(0,Be),ye[2]=qe.slice(0,Be)),ye.slice(0,3))}},filter:{TAG:function(ye){var Be=ye.replace(ou,su).toLowerCase();return ye==="*"?function(){return!0}:function(qe){return M(qe,Be)}},CLASS:function(ye){var Be=Cn[ye+" "];return Be||(Be=new RegExp("(^|"+L+")"+ye+"("+L+"|$)"))&&Cn(ye,function(qe){return Be.test(typeof qe.className=="string"&&qe.className||typeof qe.getAttribute<"u"&&qe.getAttribute("class")||"")})},ATTR:function(ye,Be,qe){return function(tt){var ct=mr.attr(tt,ye);return ct==null?Be==="!=":Be?(ct+="",Be==="="?ct===qe:Be==="!="?ct!==qe:Be==="^="?qe&&ct.indexOf(qe)===0:Be==="*="?qe&&ct.indexOf(qe)>-1:Be==="$="?qe&&ct.slice(-qe.length)===qe:Be==="~="?(" "+ct.replace(ar," ")+" ").indexOf(qe)>-1:Be==="|="?ct===qe||ct.slice(0,qe.length+1)===qe+"-":!1):!0}},CHILD:function(ye,Be,qe,tt,ct){var At=ye.slice(0,3)!=="nth",Ut=ye.slice(-4)!=="last",Jt=Be==="of-type";return tt===1&&ct===0?function(Gt){return!!Gt.parentNode}:function(Gt,Wn,bn){var En,jn,hn,Ir,Qi,ui=At!==Ut?"nextSibling":"previousSibling",Oo=Gt.parentNode,hl=Jt&&Gt.nodeName.toLowerCase(),Tp=!bn&&!Jt,_i=!1;if(Oo){if(At){for(;ui;){for(hn=Gt;hn=hn[ui];)if(Jt?M(hn,hl):hn.nodeType===1)return!1;Qi=ui=ye==="only"&&!Qi&&"nextSibling"}return!0}if(Qi=[Ut?Oo.firstChild:Oo.lastChild],Ut&&Tp){for(jn=Oo[ft]||(Oo[ft]={}),En=jn[ye]||[],Ir=En[0]===Ze&&En[1],_i=Ir&&En[2],hn=Ir&&Oo.childNodes[Ir];hn=++Ir&&hn&&hn[ui]||(_i=Ir=0)||Qi.pop();)if(hn.nodeType===1&&++_i&&hn===Gt){jn[ye]=[Ze,Ir,_i];break}}else if(Tp&&(jn=Gt[ft]||(Gt[ft]={}),En=jn[ye]||[],Ir=En[0]===Ze&&En[1],_i=Ir),_i===!1)for(;(hn=++Ir&&hn&&hn[ui]||(_i=Ir=0)||Qi.pop())&&!((Jt?M(hn,hl):hn.nodeType===1)&&++_i&&(Tp&&(jn=hn[ft]||(hn[ft]={}),jn[ye]=[Ze,_i]),hn===Gt)););return _i-=ct,_i===tt||_i%tt===0&&_i/tt>=0}}},PSEUDO:function(ye,Be){var qe,tt=O.pseudos[ye]||O.setFilters[ye.toLowerCase()]||mr.error("unsupported pseudo: "+ye);return tt[ft]?tt(Be):tt.length>1?(qe=[ye,ye,"",Be],O.setFilters.hasOwnProperty(ye.toLowerCase())?bs(function(ct,At){for(var Ut,Jt=tt(ct,Be),Gt=Jt.length;Gt--;)Ut=l.call(ct,Jt[Gt]),ct[Ut]=!(At[Ut]=Jt[Gt])}):function(ct){return tt(ct,0,qe)}):tt}},pseudos:{not:bs(function(ye){var Be=[],qe=[],tt=zE(ye.replace(A,"$1"));return tt[ft]?bs(function(ct,At,Ut,Jt){for(var Gt,Wn=tt(ct,null,Jt,[]),bn=ct.length;bn--;)(Gt=Wn[bn])&&(ct[bn]=!(At[bn]=Gt))}):function(ct,At,Ut){return Be[0]=ct,tt(Be,null,Ut,qe),Be[0]=null,!qe.pop()}}),has:bs(function(ye){return function(Be){return mr(ye,Be).length>0}}),contains:bs(function(ye){return ye=ye.replace(ou,su),function(Be){return(Be.textContent||_.text(Be)).indexOf(ye)>-1}}),lang:bs(function(ye){return O0.test(ye||"")||mr.error("unsupported lang: "+ye),ye=ye.replace(ou,su).toLowerCase(),function(Be){var qe;do if(qe=Ce?Be.lang:Be.getAttribute("xml:lang")||Be.getAttribute("lang"))return qe=qe.toLowerCase(),qe===ye||qe.indexOf(ye+"-")===0;while((Be=Be.parentNode)&&Be.nodeType===1);return!1}}),target:function(ye){var Be=e.location&&e.location.hash;return Be&&Be.slice(1)===ye.id},root:function(ye){return ye===ke},focus:function(ye){return ye===Rfe()&&ae.hasFocus()&&!!(ye.type||ye.href||~ye.tabIndex)},enabled:l4(!1),disabled:l4(!0),checked:function(ye){return M(ye,"input")&&!!ye.checked||M(ye,"option")&&!!ye.selected},selected:function(ye){return ye.parentNode&&ye.parentNode.selectedIndex,ye.selected===!0},empty:function(ye){for(ye=ye.firstChild;ye;ye=ye.nextSibling)if(ye.nodeType<6)return!1;return!0},parent:function(ye){return!O.pseudos.empty(ye)},header:function(ye){return uc.test(ye.nodeName)},input:function(ye){return lc.test(ye.nodeName)},button:function(ye){return M(ye,"input")&&ye.type==="button"||M(ye,"button")},text:function(ye){var Be;return M(ye,"input")&&ye.type==="text"&&((Be=ye.getAttribute("type"))==null||Be.toLowerCase()==="text")},first:Jf(function(){return[0]}),last:Jf(function(ye,Be){return[Be-1]}),eq:Jf(function(ye,Be,qe){return[qe<0?qe+Be:qe]}),even:Jf(function(ye,Be){for(var qe=0;qe<Be;qe+=2)ye.push(qe);return ye}),odd:Jf(function(ye,Be){for(var qe=1;qe<Be;qe+=2)ye.push(qe);return ye}),lt:Jf(function(ye,Be,qe){var tt;for(qe<0?tt=qe+Be:qe>Be?tt=Be:tt=qe;--tt>=0;)ye.push(tt);return ye}),gt:Jf(function(ye,Be,qe){for(var tt=qe<0?qe+Be:qe;++tt<Be;)ye.push(tt);return ye})}},O.pseudos.nth=O.pseudos.eq;for(D in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})O.pseudos[D]=Lfe(D);for(D in{submit:!0,reset:!0})O.pseudos[D]=Ofe(D);function u4(){}u4.prototype=O.filters=O.pseudos,O.setFilters=new u4;function A0(ye,Be){var qe,tt,ct,At,Ut,Jt,Gt,Wn=rr[ye+" "];if(Wn)return Be?0:Wn.slice(0);for(Ut=ye,Jt=[],Gt=O.preFilter;Ut;){(!qe||(tt=ta.exec(Ut)))&&(tt&&(Ut=Ut.slice(tt[0].length)||Ut),Jt.push(ct=[])),qe=!1,(tt=L0.exec(Ut))&&(qe=tt.shift(),ct.push({value:qe,type:tt[0].replace(A," ")}),Ut=Ut.slice(qe.length));for(At in O.filter)(tt=dl[At].exec(Ut))&&(!Gt[At]||(tt=Gt[At](tt)))&&(qe=tt.shift(),ct.push({value:qe,type:At,matches:tt}),Ut=Ut.slice(qe.length));if(!qe)break}return Be?Ut.length:Ut?mr.error(ye):rr(ye,Jt).slice(0)}function lS(ye){for(var Be=0,qe=ye.length,tt="";Be<qe;Be++)tt+=ye[Be].value;return tt}function uS(ye,Be,qe){var tt=Be.dir,ct=Be.next,At=ct||tt,Ut=qe&&At==="parentNode",Jt=Et++;return Be.first?function(Gt,Wn,bn){for(;Gt=Gt[tt];)if(Gt.nodeType===1||Ut)return ye(Gt,Wn,bn);return!1}:function(Gt,Wn,bn){var En,jn,hn=[Ze,Jt];if(bn){for(;Gt=Gt[tt];)if((Gt.nodeType===1||Ut)&&ye(Gt,Wn,bn))return!0}else for(;Gt=Gt[tt];)if(Gt.nodeType===1||Ut)if(jn=Gt[ft]||(Gt[ft]={}),ct&&M(Gt,ct))Gt=Gt[tt]||Gt;else{if((En=jn[At])&&En[0]===Ze&&En[1]===Jt)return hn[2]=En[2];if(jn[At]=hn,hn[2]=ye(Gt,Wn,bn))return!0}return!1}}function $E(ye){return ye.length>1?function(Be,qe,tt){for(var ct=ye.length;ct--;)if(!ye[ct](Be,qe,tt))return!1;return!0}:ye[0]}function Afe(ye,Be,qe){for(var tt=0,ct=Be.length;tt<ct;tt++)mr(ye,Be[tt],qe);return qe}function cS(ye,Be,qe,tt,ct){for(var At,Ut=[],Jt=0,Gt=ye.length,Wn=Be!=null;Jt<Gt;Jt++)(At=ye[Jt])&&(!qe||qe(At,tt,ct))&&(Ut.push(At),Wn&&Be.push(Jt));return Ut}function PE(ye,Be,qe,tt,ct,At){return tt&&!tt[ft]&&(tt=PE(tt)),ct&&!ct[ft]&&(ct=PE(ct,At)),bs(function(Ut,Jt,Gt,Wn){var bn,En,jn,hn,Ir=[],Qi=[],ui=Jt.length,Oo=Ut||Afe(Be||"*",Gt.nodeType?[Gt]:Gt,[]),hl=ye&&(Ut||!Be)?cS(Oo,Ir,ye,Gt,Wn):Oo;if(qe?(hn=ct||(Ut?ye:ui||tt)?[]:Jt,qe(hl,hn,Gt,Wn)):hn=hl,tt)for(bn=cS(hn,Qi),tt(bn,[],Gt,Wn),En=bn.length;En--;)(jn=bn[En])&&(hn[Qi[En]]=!(hl[Qi[En]]=jn));if(Ut){if(ct||ye){if(ct){for(bn=[],En=hn.length;En--;)(jn=hn[En])&&bn.push(hl[En]=jn);ct(null,hn=[],bn,Wn)}for(En=hn.length;En--;)(jn=hn[En])&&(bn=ct?l.call(Ut,jn):Ir[En])>-1&&(Ut[bn]=!(Jt[bn]=jn))}}else hn=cS(hn===Jt?hn.splice(ui,hn.length):hn),ct?ct(null,Jt,hn,Wn):te.apply(Jt,hn)})}function FE(ye){for(var Be,qe,tt,ct=ye.length,At=O.relative[ye[0].type],Ut=At||O.relative[" "],Jt=At?1:0,Gt=uS(function(En){return En===Be},Ut,!0),Wn=uS(function(En){return l.call(Be,En)>-1},Ut,!0),bn=[function(En,jn,hn){var Ir=!At&&(hn||jn!=F)||((Be=jn).nodeType?Gt(En,jn,hn):Wn(En,jn,hn));return Be=null,Ir}];Jt<ct;Jt++)if(qe=O.relative[ye[Jt].type])bn=[uS($E(bn),qe)];else{if(qe=O.filter[ye[Jt].type].apply(null,ye[Jt].matches),qe[ft]){for(tt=++Jt;tt<ct&&!O.relative[ye[tt].type];tt++);return PE(Jt>1&&$E(bn),Jt>1&&lS(ye.slice(0,Jt-1).concat({value:ye[Jt-2].type===" "?"*":""})).replace(A,"$1"),qe,Jt<tt&&FE(ye.slice(Jt,tt)),tt<ct&&FE(ye=ye.slice(tt)),tt<ct&&lS(ye))}bn.push(qe)}return $E(bn)}function Nfe(ye,Be){var qe=Be.length>0,tt=ye.length>0,ct=function(At,Ut,Jt,Gt,Wn){var bn,En,jn,hn=0,Ir="0",Qi=At&&[],ui=[],Oo=F,hl=At||tt&&O.find.TAG("*",Wn),Tp=Ze+=Oo==null?1:Math.random()||.1,_i=hl.length;for(Wn&&(F=Ut==ae||Ut||Wn);Ir!==_i&&(bn=hl[Ir])!=null;Ir++){if(tt&&bn){for(En=0,!Ut&&bn.ownerDocument!=ae&&(cc(bn),Jt=!Ce);jn=ye[En++];)if(jn(bn,Ut||ae,Jt)){te.call(Gt,bn);break}Wn&&(Ze=Tp)}qe&&((bn=!jn&&bn)&&hn--,At&&Qi.push(bn))}if(hn+=Ir,qe&&Ir!==hn){for(En=0;jn=Be[En++];)jn(Qi,ui,Ut,Jt);if(At){if(hn>0)for(;Ir--;)Qi[Ir]||ui[Ir]||(ui[Ir]=E.call(Gt));ui=cS(ui)}te.apply(Gt,ui),Wn&&!At&&ui.length>0&&hn+Be.length>1&&_.uniqueSort(Gt)}return Wn&&(Ze=Tp,F=Oo),Qi};return qe?bs(ct):ct}function zE(ye,Be){var qe,tt=[],ct=[],At=Pn[ye+" "];if(!At){for(Be||(Be=A0(ye)),qe=Be.length;qe--;)At=FE(Be[qe]),At[ft]?tt.push(At):ct.push(At);At=Pn(ye,Nfe(ct,tt)),At.selector=ye}return At}function c4(ye,Be,qe,tt){var ct,At,Ut,Jt,Gt,Wn=typeof ye=="function"&&ye,bn=!tt&&A0(ye=Wn.selector||ye);if(qe=qe||[],bn.length===1){if(At=bn[0]=bn[0].slice(0),At.length>2&&(Ut=At[0]).type==="ID"&&Be.nodeType===9&&Ce&&O.relative[At[1].type]){if(Be=(O.find.ID(Ut.matches[0].replace(ou,su),Be)||[])[0],Be)Wn&&(Be=Be.parentNode);else return qe;ye=ye.slice(At.shift().value.length)}for(ct=dl.needsContext.test(ye)?0:At.length;ct--&&(Ut=At[ct],!O.relative[Jt=Ut.type]);)if((Gt=O.find[Jt])&&(tt=Gt(Ut.matches[0].replace(ou,su),BE.test(At[0].type)&&IE(Be.parentNode)||Be))){if(At.splice(ct,1),ye=tt.length&&lS(At),!ye)return te.apply(qe,tt),qe;break}}return(Wn||zE(ye,bn))(tt,Be,!Ce,qe,!Be||BE.test(ye)&&IE(Be.parentNode)||Be),qe}p.sortStable=ft.split("").sort(_a).join("")===ft,cc(),p.sortDetached=Cp(function(ye){return ye.compareDocumentPosition(ae.createElement("fieldset"))&1}),_.find=mr,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,mr.compile=zE,mr.select=c4,mr.setDocument=cc,mr.tokenize=A0,mr.escape=_.escapeSelector,mr.getText=_.text,mr.isXML=_.isXMLDoc,mr.selectors=_.expr,mr.support=_.support,mr.uniqueSort=_.uniqueSort})();var N=function(D,O,F){for(var K=[],ee=F!==void 0;(D=D[O])&&D.nodeType!==9;)if(D.nodeType===1){if(ee&&_(D).is(F))break;K.push(D)}return K},P=function(D,O){for(var F=[];D;D=D.nextSibling)D.nodeType===1&&D!==O&&F.push(D);return F},Y=_.expr.match.needsContext,J=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function re(D,O,F){return v(O)?_.grep(D,function(K,ee){return!!O.call(K,ee,K)!==F}):O.nodeType?_.grep(D,function(K){return K===O!==F}):typeof O!="string"?_.grep(D,function(K){return l.call(O,K)>-1!==F}):_.filter(O,D,F)}_.filter=function(D,O,F){var K=O[0];return F&&(D=":not("+D+")"),O.length===1&&K.nodeType===1?_.find.matchesSelector(K,D)?[K]:[]:_.find.matches(D,_.grep(O,function(ee){return ee.nodeType===1}))},_.fn.extend({find:function(D){var O,F,K=this.length,ee=this;if(typeof D!="string")return this.pushStack(_(D).filter(function(){for(O=0;O<K;O++)if(_.contains(ee[O],this))return!0}));for(F=this.pushStack([]),O=0;O<K;O++)_.find(D,ee[O],F);return K>1?_.uniqueSort(F):F},filter:function(D){return this.pushStack(re(this,D||[],!1))},not:function(D){return this.pushStack(re(this,D||[],!0))},is:function(D){return!!re(this,typeof D=="string"&&Y.test(D)?_(D):D||[],!1).length}});var oe,ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,le=_.fn.init=function(D,O,F){var K,ee;if(!D)return this;if(F=F||oe,typeof D=="string")if(D[0]==="<"&&D[D.length-1]===">"&&D.length>=3?K=[null,D,null]:K=ue.exec(D),K&&(K[1]||!O))if(K[1]){if(O=O instanceof _?O[0]:O,_.merge(this,_.parseHTML(K[1],O&&O.nodeType?O.ownerDocument||O:y,!0)),J.test(K[1])&&_.isPlainObject(O))for(K in O)v(this[K])?this[K](O[K]):this.attr(K,O[K]);return this}else return ee=y.getElementById(K[2]),ee&&(this[0]=ee,this.length=1),this;else return!O||O.jquery?(O||F).find(D):this.constructor(O).find(D);else{if(D.nodeType)return this[0]=D,this.length=1,this;if(v(D))return F.ready!==void 0?F.ready(D):D(_)}return _.makeArray(D,this)};le.prototype=_.fn,oe=_(y);var fe=/^(?:parents|prev(?:Until|All))/,se={children:!0,contents:!0,next:!0,prev:!0};_.fn.extend({has:function(D){var O=_(D,this),F=O.length;return this.filter(function(){for(var K=0;K<F;K++)if(_.contains(this,O[K]))return!0})},closest:function(D,O){var F,K=0,ee=this.length,te=[],ae=typeof D!="string"&&_(D);if(!Y.test(D)){for(;K<ee;K++)for(F=this[K];F&&F!==O;F=F.parentNode)if(F.nodeType<11&&(ae?ae.index(F)>-1:F.nodeType===1&&_.find.matchesSelector(F,D))){te.push(F);break}}return this.pushStack(te.length>1?_.uniqueSort(te):te)},index:function(D){return D?typeof D=="string"?l.call(_(D),this[0]):l.call(this,D.jquery?D[0]:D):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(D,O){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(D,O))))},addBack:function(D){return this.add(D==null?this.prevObject:this.prevObject.filter(D))}});function _e(D,O){for(;(D=D[O])&&D.nodeType!==1;);return D}_.each({parent:function(D){var O=D.parentNode;return O&&O.nodeType!==11?O:null},parents:function(D){return N(D,"parentNode")},parentsUntil:function(D,O,F){return N(D,"parentNode",F)},next:function(D){return _e(D,"nextSibling")},prev:function(D){return _e(D,"previousSibling")},nextAll:function(D){return N(D,"nextSibling")},prevAll:function(D){return N(D,"previousSibling")},nextUntil:function(D,O,F){return N(D,"nextSibling",F)},prevUntil:function(D,O,F){return N(D,"previousSibling",F)},siblings:function(D){return P((D.parentNode||{}).firstChild,D)},children:function(D){return P(D.firstChild)},contents:function(D){return D.contentDocument!=null&&a(D.contentDocument)?D.contentDocument:(M(D,"template")&&(D=D.content||D),_.merge([],D.childNodes))}},function(D,O){_.fn[D]=function(F,K){var ee=_.map(this,O,F);return D.slice(-5)!=="Until"&&(K=F),K&&typeof K=="string"&&(ee=_.filter(K,ee)),this.length>1&&(se[D]||_.uniqueSort(ee),fe.test(D)&&ee.reverse()),this.pushStack(ee)}});var ve=/[^\x20\t\r\n\f]+/g;function he(D){var O={};return _.each(D.match(ve)||[],function(F,K){O[K]=!0}),O}_.Callbacks=function(D){D=typeof D=="string"?he(D):_.extend({},D);var O,F,K,ee,te=[],ae=[],ke=-1,Ce=function(){for(ee=ee||D.once,K=O=!0;ae.length;ke=-1)for(F=ae.shift();++ke<te.length;)te[ke].apply(F[0],F[1])===!1&&D.stopOnFalse&&(ke=te.length,F=!1);D.memory||(F=!1),O=!1,ee&&(F?te=[]:te="")},Ue={add:function(){return te&&(F&&!O&&(ke=te.length-1,ae.push(F)),function ot(ft){_.each(ft,function(Ze,Et){v(Et)?(!D.unique||!Ue.has(Et))&&te.push(Et):Et&&Et.length&&w(Et)!=="string"&&ot(Et)})}(arguments),F&&!O&&Ce()),this},remove:function(){return _.each(arguments,function(ot,ft){for(var Ze;(Ze=_.inArray(ft,te,Ze))>-1;)te.splice(Ze,1),Ze<=ke&&ke--}),this},has:function(ot){return ot?_.inArray(ot,te)>-1:te.length>0},empty:function(){return te&&(te=[]),this},disable:function(){return ee=ae=[],te=F="",this},disabled:function(){return!te},lock:function(){return ee=ae=[],!F&&!O&&(te=F=""),this},locked:function(){return!!ee},fireWith:function(ot,ft){return ee||(ft=ft||[],ft=[ot,ft.slice?ft.slice():ft],ae.push(ft),O||Ce()),this},fire:function(){return Ue.fireWith(this,arguments),this},fired:function(){return!!K}};return Ue};function q(D){return D}function ce(D){throw D}function Se(D,O,F,K){var ee;try{D&&v(ee=D.promise)?ee.call(D).done(O).fail(F):D&&v(ee=D.then)?ee.call(D,O,F):O.apply(void 0,[D].slice(K))}catch(te){F.apply(void 0,[te])}}_.extend({Deferred:function(D){var O=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],F="pending",K={state:function(){return F},always:function(){return ee.done(arguments).fail(arguments),this},catch:function(te){return K.then(null,te)},pipe:function(){var te=arguments;return _.Deferred(function(ae){_.each(O,function(ke,Ce){var Ue=v(te[Ce[4]])&&te[Ce[4]];ee[Ce[1]](function(){var ot=Ue&&Ue.apply(this,arguments);ot&&v(ot.promise)?ot.promise().progress(ae.notify).done(ae.resolve).fail(ae.reject):ae[Ce[0]+"With"](this,Ue?[ot]:arguments)})}),te=null}).promise()},then:function(te,ae,ke){var Ce=0;function Ue(ot,ft,Ze,Et){return function(){var Cn=this,rr=arguments,Pn=function(){var _a,ul;if(!(ot<Ce)){if(_a=Ze.apply(Cn,rr),_a===ft.promise())throw new TypeError("Thenable self-resolution");ul=_a&&(typeof _a=="object"||typeof _a=="function")&&_a.then,v(ul)?Et?ul.call(_a,Ue(Ce,ft,q,Et),Ue(Ce,ft,ce,Et)):(Ce++,ul.call(_a,Ue(Ce,ft,q,Et),Ue(Ce,ft,ce,Et),Ue(Ce,ft,q,ft.notifyWith))):(Ze!==q&&(Cn=void 0,rr=[_a]),(Et||ft.resolveWith)(Cn,rr))}},qa=Et?Pn:function(){try{Pn()}catch(_a){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(_a,qa.error),ot+1>=Ce&&(Ze!==ce&&(Cn=void 0,rr=[_a]),ft.rejectWith(Cn,rr))}};ot?qa():(_.Deferred.getErrorHook?qa.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(qa.error=_.Deferred.getStackHook()),e.setTimeout(qa))}}return _.Deferred(function(ot){O[0][3].add(Ue(0,ot,v(ke)?ke:q,ot.notifyWith)),O[1][3].add(Ue(0,ot,v(te)?te:q)),O[2][3].add(Ue(0,ot,v(ae)?ae:ce))}).promise()},promise:function(te){return te!=null?_.extend(te,K):K}},ee={};return _.each(O,function(te,ae){var ke=ae[2],Ce=ae[5];K[ae[1]]=ke.add,Ce&&ke.add(function(){F=Ce},O[3-te][2].disable,O[3-te][3].disable,O[0][2].lock,O[0][3].lock),ke.add(ae[3].fire),ee[ae[0]]=function(){return ee[ae[0]+"With"](this===ee?void 0:this,arguments),this},ee[ae[0]+"With"]=ke.fireWith}),K.promise(ee),D&&D.call(ee,ee),ee},when:function(D){var O=arguments.length,F=O,K=Array(F),ee=i.call(arguments),te=_.Deferred(),ae=function(ke){return function(Ce){K[ke]=this,ee[ke]=arguments.length>1?i.call(arguments):Ce,--O||te.resolveWith(K,ee)}};if(O<=1&&(Se(D,te.done(ae(F)).resolve,te.reject,!O),te.state()==="pending"||v(ee[F]&&ee[F].then)))return te.then();for(;F--;)Se(ee[F],ae(F),te.reject);return te.promise()}});var Ae=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(D,O){e.console&&e.console.warn&&D&&Ae.test(D.name)&&e.console.warn("jQuery.Deferred exception: "+D.message,D.stack,O)},_.readyException=function(D){e.setTimeout(function(){throw D})};var Te=_.Deferred();_.fn.ready=function(D){return Te.then(D).catch(function(O){_.readyException(O)}),this},_.extend({isReady:!1,readyWait:1,ready:function(D){(D===!0?--_.readyWait:_.isReady)||(_.isReady=!0,!(D!==!0&&--_.readyWait>0)&&Te.resolveWith(y,[_]))}}),_.ready.then=Te.then;function Oe(){y.removeEventListener("DOMContentLoaded",Oe),e.removeEventListener("load",Oe),_.ready()}y.readyState==="complete"||y.readyState!=="loading"&&!y.documentElement.doScroll?e.setTimeout(_.ready):(y.addEventListener("DOMContentLoaded",Oe),e.addEventListener("load",Oe));var He=function(D,O,F,K,ee,te,ae){var ke=0,Ce=D.length,Ue=F==null;if(w(F)==="object"){ee=!0;for(ke in F)He(D,O,ke,F[ke],!0,te,ae)}else if(K!==void 0&&(ee=!0,v(K)||(ae=!0),Ue&&(ae?(O.call(D,K),O=null):(Ue=O,O=function(ot,ft,Ze){return Ue.call(_(ot),Ze)})),O))for(;ke<Ce;ke++)O(D[ke],F,ae?K:K.call(D[ke],ke,O(D[ke],F)));return ee?D:Ue?O.call(D):Ce?O(D[0],F):te},$e=/^-ms-/,Ne=/-([a-z])/g;function Le(D,O){return O.toUpperCase()}function ie(D){return D.replace($e,"ms-").replace(Ne,Le)}var Re=function(D){return D.nodeType===1||D.nodeType===9||!+D.nodeType};function We(){this.expando=_.expando+We.uid++}We.uid=1,We.prototype={cache:function(D){var O=D[this.expando];return O||(O={},Re(D)&&(D.nodeType?D[this.expando]=O:Object.defineProperty(D,this.expando,{value:O,configurable:!0}))),O},set:function(D,O,F){var K,ee=this.cache(D);if(typeof O=="string")ee[ie(O)]=F;else for(K in O)ee[ie(K)]=O[K];return ee},get:function(D,O){return O===void 0?this.cache(D):D[this.expando]&&D[this.expando][ie(O)]},access:function(D,O,F){return O===void 0||O&&typeof O=="string"&&F===void 0?this.get(D,O):(this.set(D,O,F),F!==void 0?F:O)},remove:function(D,O){var F,K=D[this.expando];if(K!==void 0){if(O!==void 0)for(Array.isArray(O)?O=O.map(ie):(O=ie(O),O=O in K?[O]:O.match(ve)||[]),F=O.length;F--;)delete K[O[F]];(O===void 0||_.isEmptyObject(K))&&(D.nodeType?D[this.expando]=void 0:delete D[this.expando])}},hasData:function(D){var O=D[this.expando];return O!==void 0&&!_.isEmptyObject(O)}};var me=new We,Ye=new We,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ct=/[A-Z]/g;function Tt(D){return D==="true"?!0:D==="false"?!1:D==="null"?null:D===+D+""?+D:ht.test(D)?JSON.parse(D):D}function it(D,O,F){var K;if(F===void 0&&D.nodeType===1)if(K="data-"+O.replace(Ct,"-$&").toLowerCase(),F=D.getAttribute(K),typeof F=="string"){try{F=Tt(F)}catch{}Ye.set(D,O,F)}else F=void 0;return F}_.extend({hasData:function(D){return Ye.hasData(D)||me.hasData(D)},data:function(D,O,F){return Ye.access(D,O,F)},removeData:function(D,O){Ye.remove(D,O)},_data:function(D,O,F){return me.access(D,O,F)},_removeData:function(D,O){me.remove(D,O)}}),_.fn.extend({data:function(D,O){var F,K,ee,te=this[0],ae=te&&te.attributes;if(D===void 0){if(this.length&&(ee=Ye.get(te),te.nodeType===1&&!me.get(te,"hasDataAttrs"))){for(F=ae.length;F--;)ae[F]&&(K=ae[F].name,K.indexOf("data-")===0&&(K=ie(K.slice(5)),it(te,K,ee[K])));me.set(te,"hasDataAttrs",!0)}return ee}return typeof D=="object"?this.each(function(){Ye.set(this,D)}):He(this,function(ke){var Ce;if(te&&ke===void 0)return Ce=Ye.get(te,D),Ce!==void 0||(Ce=it(te,D),Ce!==void 0)?Ce:void 0;this.each(function(){Ye.set(this,D,ke)})},null,O,arguments.length>1,null,!0)},removeData:function(D){return this.each(function(){Ye.remove(this,D)})}}),_.extend({queue:function(D,O,F){var K;if(D)return O=(O||"fx")+"queue",K=me.get(D,O),F&&(!K||Array.isArray(F)?K=me.access(D,O,_.makeArray(F)):K.push(F)),K||[]},dequeue:function(D,O){O=O||"fx";var F=_.queue(D,O),K=F.length,ee=F.shift(),te=_._queueHooks(D,O),ae=function(){_.dequeue(D,O)};ee==="inprogress"&&(ee=F.shift(),K--),ee&&(O==="fx"&&F.unshift("inprogress"),delete te.stop,ee.call(D,ae,te)),!K&&te&&te.empty.fire()},_queueHooks:function(D,O){var F=O+"queueHooks";return me.get(D,F)||me.access(D,F,{empty:_.Callbacks("once memory").add(function(){me.remove(D,[O+"queue",F])})})}}),_.fn.extend({queue:function(D,O){var F=2;return typeof D!="string"&&(O=D,D="fx",F--),arguments.length<F?_.queue(this[0],D):O===void 0?this:this.each(function(){var K=_.queue(this,D,O);_._queueHooks(this,D),D==="fx"&&K[0]!=="inprogress"&&_.dequeue(this,D)})},dequeue:function(D){return this.each(function(){_.dequeue(this,D)})},clearQueue:function(D){return this.queue(D||"fx",[])},promise:function(D,O){var F,K=1,ee=_.Deferred(),te=this,ae=this.length,ke=function(){--K||ee.resolveWith(te,[te])};for(typeof D!="string"&&(O=D,D=void 0),D=D||"fx";ae--;)F=me.get(te[ae],D+"queueHooks"),F&&F.empty&&(K++,F.empty.add(ke));return ke(),ee.promise(O)}});var Me=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ge=new RegExp("^(?:([+-])=|)("+Me+")([a-z%]*)$","i"),be=["Top","Right","Bottom","Left"],Ie=y.documentElement,de=function(D){return _.contains(D.ownerDocument,D)},rt={composed:!0};Ie.getRootNode&&(de=function(D){return _.contains(D.ownerDocument,D)||D.getRootNode(rt)===D.ownerDocument});var Fe=function(D,O){return D=O||D,D.style.display==="none"||D.style.display===""&&de(D)&&_.css(D,"display")==="none"};function Bt(D,O,F,K){var ee,te,ae=20,ke=K?function(){return K.cur()}:function(){return _.css(D,O,"")},Ce=ke(),Ue=F&&F[3]||(_.cssNumber[O]?"":"px"),ot=D.nodeType&&(_.cssNumber[O]||Ue!=="px"&&+Ce)&&ge.exec(_.css(D,O));if(ot&&ot[3]!==Ue){for(Ce=Ce/2,Ue=Ue||ot[3],ot=+Ce||1;ae--;)_.style(D,O,ot+Ue),(1-te)*(1-(te=ke()/Ce||.5))<=0&&(ae=0),ot=ot/te;ot=ot*2,_.style(D,O,ot+Ue),F=F||[]}return F&&(ot=+ot||+Ce||0,ee=F[1]?ot+(F[1]+1)*F[2]:+F[2],K&&(K.unit=Ue,K.start=ot,K.end=ee)),ee}var Yn={};function $n(D){var O,F=D.ownerDocument,K=D.nodeName,ee=Yn[K];return ee||(O=F.body.appendChild(F.createElement(K)),ee=_.css(O,"display"),O.parentNode.removeChild(O),ee==="none"&&(ee="block"),Yn[K]=ee,ee)}function dr(D,O){for(var F,K,ee=[],te=0,ae=D.length;te<ae;te++)K=D[te],K.style&&(F=K.style.display,O?(F==="none"&&(ee[te]=me.get(K,"display")||null,ee[te]||(K.style.display="")),K.style.display===""&&Fe(K)&&(ee[te]=$n(K))):F!=="none"&&(ee[te]="none",me.set(K,"display",F)));for(te=0;te<ae;te++)ee[te]!=null&&(D[te].style.display=ee[te]);return D}_.fn.extend({show:function(){return dr(this,!0)},hide:function(){return dr(this)},toggle:function(D){return typeof D=="boolean"?D?this.show():this.hide():this.each(function(){Fe(this)?_(this).show():_(this).hide()})}});var _r=/^(?:checkbox|radio)$/i,Pe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,st=/^$|^module$|\/(?:java|ecma)script/i;(function(){var D=y.createDocumentFragment(),O=D.appendChild(y.createElement("div")),F=y.createElement("input");F.setAttribute("type","radio"),F.setAttribute("checked","checked"),F.setAttribute("name","t"),O.appendChild(F),p.checkClone=O.cloneNode(!0).cloneNode(!0).lastChild.checked,O.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!O.cloneNode(!0).lastChild.defaultValue,O.innerHTML="<option></option>",p.option=!!O.lastChild})();var Ee={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td,p.option||(Ee.optgroup=Ee.option=[1,"<select multiple='multiple'>","</select>"]);function nt(D,O){var F;return typeof D.getElementsByTagName<"u"?F=D.getElementsByTagName(O||"*"):typeof D.querySelectorAll<"u"?F=D.querySelectorAll(O||"*"):F=[],O===void 0||O&&M(D,O)?_.merge([D],F):F}function jt(D,O){for(var F=0,K=D.length;F<K;F++)me.set(D[F],"globalEval",!O||me.get(O[F],"globalEval"))}var gn=/<|&#?\w+;/;function Ar(D,O,F,K,ee){for(var te,ae,ke,Ce,Ue,ot,ft=O.createDocumentFragment(),Ze=[],Et=0,Cn=D.length;Et<Cn;Et++)if(te=D[Et],te||te===0)if(w(te)==="object")_.merge(Ze,te.nodeType?[te]:te);else if(!gn.test(te))Ze.push(O.createTextNode(te));else{for(ae=ae||ft.appendChild(O.createElement("div")),ke=(Pe.exec(te)||["",""])[1].toLowerCase(),Ce=Ee[ke]||Ee._default,ae.innerHTML=Ce[1]+_.htmlPrefilter(te)+Ce[2],ot=Ce[0];ot--;)ae=ae.lastChild;_.merge(Ze,ae.childNodes),ae=ft.firstChild,ae.textContent=""}for(ft.textContent="",Et=0;te=Ze[Et++];){if(K&&_.inArray(te,K)>-1){ee&&ee.push(te);continue}if(Ue=de(te),ae=nt(ft.appendChild(te),"script"),Ue&&jt(ae),F)for(ot=0;te=ae[ot++];)st.test(te.type||"")&&F.push(te)}return ft}var Nr=/^([^.]*)(?:\.(.+)|)/;function Vr(){return!0}function Br(){return!1}function Xi(D,O,F,K,ee,te){var ae,ke;if(typeof O=="object"){typeof F!="string"&&(K=K||F,F=void 0);for(ke in O)Xi(D,ke,F,K,O[ke],te);return D}if(K==null&&ee==null?(ee=F,K=F=void 0):ee==null&&(typeof F=="string"?(ee=K,K=void 0):(ee=K,K=F,F=void 0)),ee===!1)ee=Br;else if(!ee)return D;return te===1&&(ae=ee,ee=function(Ce){return _().off(Ce),ae.apply(this,arguments)},ee.guid=ae.guid||(ae.guid=_.guid++)),D.each(function(){_.event.add(this,O,ee,K,F)})}_.event={global:{},add:function(D,O,F,K,ee){var te,ae,ke,Ce,Ue,ot,ft,Ze,Et,Cn,rr,Pn=me.get(D);if(Re(D))for(F.handler&&(te=F,F=te.handler,ee=te.selector),ee&&_.find.matchesSelector(Ie,ee),F.guid||(F.guid=_.guid++),(Ce=Pn.events)||(Ce=Pn.events=Object.create(null)),(ae=Pn.handle)||(ae=Pn.handle=function(qa){return typeof _<"u"&&_.event.triggered!==qa.type?_.event.dispatch.apply(D,arguments):void 0}),O=(O||"").match(ve)||[""],Ue=O.length;Ue--;)ke=Nr.exec(O[Ue])||[],Et=rr=ke[1],Cn=(ke[2]||"").split(".").sort(),Et&&(ft=_.event.special[Et]||{},Et=(ee?ft.delegateType:ft.bindType)||Et,ft=_.event.special[Et]||{},ot=_.extend({type:Et,origType:rr,data:K,handler:F,guid:F.guid,selector:ee,needsContext:ee&&_.expr.match.needsContext.test(ee),namespace:Cn.join(".")},te),(Ze=Ce[Et])||(Ze=Ce[Et]=[],Ze.delegateCount=0,(!ft.setup||ft.setup.call(D,K,Cn,ae)===!1)&&D.addEventListener&&D.addEventListener(Et,ae)),ft.add&&(ft.add.call(D,ot),ot.handler.guid||(ot.handler.guid=F.guid)),ee?Ze.splice(Ze.delegateCount++,0,ot):Ze.push(ot),_.event.global[Et]=!0)},remove:function(D,O,F,K,ee){var te,ae,ke,Ce,Ue,ot,ft,Ze,Et,Cn,rr,Pn=me.hasData(D)&&me.get(D);if(!(!Pn||!(Ce=Pn.events))){for(O=(O||"").match(ve)||[""],Ue=O.length;Ue--;){if(ke=Nr.exec(O[Ue])||[],Et=rr=ke[1],Cn=(ke[2]||"").split(".").sort(),!Et){for(Et in Ce)_.event.remove(D,Et+O[Ue],F,K,!0);continue}for(ft=_.event.special[Et]||{},Et=(K?ft.delegateType:ft.bindType)||Et,Ze=Ce[Et]||[],ke=ke[2]&&new RegExp("(^|\\.)"+Cn.join("\\.(?:.*\\.|)")+"(\\.|$)"),ae=te=Ze.length;te--;)ot=Ze[te],(ee||rr===ot.origType)&&(!F||F.guid===ot.guid)&&(!ke||ke.test(ot.namespace))&&(!K||K===ot.selector||K==="**"&&ot.selector)&&(Ze.splice(te,1),ot.selector&&Ze.delegateCount--,ft.remove&&ft.remove.call(D,ot));ae&&!Ze.length&&((!ft.teardown||ft.teardown.call(D,Cn,Pn.handle)===!1)&&_.removeEvent(D,Et,Pn.handle),delete Ce[Et])}_.isEmptyObject(Ce)&&me.remove(D,"handle events")}},dispatch:function(D){var O,F,K,ee,te,ae,ke=new Array(arguments.length),Ce=_.event.fix(D),Ue=(me.get(this,"events")||Object.create(null))[Ce.type]||[],ot=_.event.special[Ce.type]||{};for(ke[0]=Ce,O=1;O<arguments.length;O++)ke[O]=arguments[O];if(Ce.delegateTarget=this,!(ot.preDispatch&&ot.preDispatch.call(this,Ce)===!1)){for(ae=_.event.handlers.call(this,Ce,Ue),O=0;(ee=ae[O++])&&!Ce.isPropagationStopped();)for(Ce.currentTarget=ee.elem,F=0;(te=ee.handlers[F++])&&!Ce.isImmediatePropagationStopped();)(!Ce.rnamespace||te.namespace===!1||Ce.rnamespace.test(te.namespace))&&(Ce.handleObj=te,Ce.data=te.data,K=((_.event.special[te.origType]||{}).handle||te.handler).apply(ee.elem,ke),K!==void 0&&(Ce.result=K)===!1&&(Ce.preventDefault(),Ce.stopPropagation()));return ot.postDispatch&&ot.postDispatch.call(this,Ce),Ce.result}},handlers:function(D,O){var F,K,ee,te,ae,ke=[],Ce=O.delegateCount,Ue=D.target;if(Ce&&Ue.nodeType&&!(D.type==="click"&&D.button>=1)){for(;Ue!==this;Ue=Ue.parentNode||this)if(Ue.nodeType===1&&!(D.type==="click"&&Ue.disabled===!0)){for(te=[],ae={},F=0;F<Ce;F++)K=O[F],ee=K.selector+" ",ae[ee]===void 0&&(ae[ee]=K.needsContext?_(ee,this).index(Ue)>-1:_.find(ee,this,null,[Ue]).length),ae[ee]&&te.push(K);te.length&&ke.push({elem:Ue,handlers:te})}}return Ue=this,Ce<O.length&&ke.push({elem:Ue,handlers:O.slice(Ce)}),ke},addProp:function(D,O){Object.defineProperty(_.Event.prototype,D,{enumerable:!0,configurable:!0,get:v(O)?function(){if(this.originalEvent)return O(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[D]},set:function(F){Object.defineProperty(this,D,{enumerable:!0,configurable:!0,writable:!0,value:F})}})},fix:function(D){return D[_.expando]?D:new _.Event(D)},special:{load:{noBubble:!0},click:{setup:function(D){var O=this||D;return _r.test(O.type)&&O.click&&M(O,"input")&&Kf(O,"click",!0),!1},trigger:function(D){var O=this||D;return _r.test(O.type)&&O.click&&M(O,"input")&&Kf(O,"click"),!0},_default:function(D){var O=D.target;return _r.test(O.type)&&O.click&&M(O,"input")&&me.get(O,"click")||M(O,"a")}},beforeunload:{postDispatch:function(D){D.result!==void 0&&D.originalEvent&&(D.originalEvent.returnValue=D.result)}}}};function Kf(D,O,F){if(!F){me.get(D,O)===void 0&&_.event.add(D,O,Vr);return}me.set(D,O,!1),_.event.add(D,O,{namespace:!1,handler:function(K){var ee,te=me.get(this,O);if(K.isTrigger&1&&this[O]){if(te)(_.event.special[O]||{}).delegateType&&K.stopPropagation();else if(te=i.call(arguments),me.set(this,O,te),this[O](),ee=me.get(this,O),me.set(this,O,!1),te!==ee)return K.stopImmediatePropagation(),K.preventDefault(),ee}else te&&(me.set(this,O,_.event.trigger(te[0],te.slice(1),this)),K.stopPropagation(),K.isImmediatePropagationStopped=Vr)}})}_.removeEvent=function(D,O,F){D.removeEventListener&&D.removeEventListener(O,F)},_.Event=function(D,O){if(!(this instanceof _.Event))return new _.Event(D,O);D&&D.type?(this.originalEvent=D,this.type=D.type,this.isDefaultPrevented=D.defaultPrevented||D.defaultPrevented===void 0&&D.returnValue===!1?Vr:Br,this.target=D.target&&D.target.nodeType===3?D.target.parentNode:D.target,this.currentTarget=D.currentTarget,this.relatedTarget=D.relatedTarget):this.type=D,O&&_.extend(this,O),this.timeStamp=D&&D.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Br,isPropagationStopped:Br,isImmediatePropagationStopped:Br,isSimulated:!1,preventDefault:function(){var D=this.originalEvent;this.isDefaultPrevented=Vr,D&&!this.isSimulated&&D.preventDefault()},stopPropagation:function(){var D=this.originalEvent;this.isPropagationStopped=Vr,D&&!this.isSimulated&&D.stopPropagation()},stopImmediatePropagation:function(){var D=this.originalEvent;this.isImmediatePropagationStopped=Vr,D&&!this.isSimulated&&D.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},function(D,O){function F(K){if(y.documentMode){var ee=me.get(this,"handle"),te=_.event.fix(K);te.type=K.type==="focusin"?"focus":"blur",te.isSimulated=!0,ee(K),te.target===te.currentTarget&&ee(te)}else _.event.simulate(O,K.target,_.event.fix(K))}_.event.special[D]={setup:function(){var K;if(Kf(this,D,!0),y.documentMode)K=me.get(this,O),K||this.addEventListener(O,F),me.set(this,O,(K||0)+1);else return!1},trigger:function(){return Kf(this,D),!0},teardown:function(){var K;if(y.documentMode)K=me.get(this,O)-1,K?me.set(this,O,K):(this.removeEventListener(O,F),me.remove(this,O));else return!1},_default:function(K){return me.get(K.target,D)},delegateType:O},_.event.special[O]={setup:function(){var K=this.ownerDocument||this.document||this,ee=y.documentMode?this:K,te=me.get(ee,O);te||(y.documentMode?this.addEventListener(O,F):K.addEventListener(D,F,!0)),me.set(ee,O,(te||0)+1)},teardown:function(){var K=this.ownerDocument||this.document||this,ee=y.documentMode?this:K,te=me.get(ee,O)-1;te?me.set(ee,O,te):(y.documentMode?this.removeEventListener(O,F):K.removeEventListener(D,F,!0),me.remove(ee,O))}}}),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(D,O){_.event.special[D]={delegateType:O,bindType:O,handle:function(F){var K,ee=this,te=F.relatedTarget,ae=F.handleObj;return(!te||te!==ee&&!_.contains(ee,te))&&(F.type=ae.origType,K=ae.handler.apply(this,arguments),F.type=O),K}}}),_.fn.extend({on:function(D,O,F,K){return Xi(this,D,O,F,K)},one:function(D,O,F,K){return Xi(this,D,O,F,K,1)},off:function(D,O,F){var K,ee;if(D&&D.preventDefault&&D.handleObj)return K=D.handleObj,_(D.delegateTarget).off(K.namespace?K.origType+"."+K.namespace:K.origType,K.selector,K.handler),this;if(typeof D=="object"){for(ee in D)this.off(ee,O,D[ee]);return this}return(O===!1||typeof O=="function")&&(F=O,O=void 0),F===!1&&(F=Br),this.each(function(){_.event.remove(this,D,F,O)})}});var eS=/<script|<style|<link/i,w0=/checked\s*(?:[^=]|=\s*.checked.)/i,tS=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function _0(D,O){return M(D,"table")&&M(O.nodeType!==11?O:O.firstChild,"tr")&&_(D).children("tbody")[0]||D}function nS(D){return D.type=(D.getAttribute("type")!==null)+"/"+D.type,D}function rS(D){return(D.type||"").slice(0,5)==="true/"?D.type=D.type.slice(5):D.removeAttribute("type"),D}function x0(D,O){var F,K,ee,te,ae,ke,Ce;if(O.nodeType===1){if(me.hasData(D)&&(te=me.get(D),Ce=te.events,Ce)){me.remove(O,"handle events");for(ee in Ce)for(F=0,K=Ce[ee].length;F<K;F++)_.event.add(O,ee,Ce[ee][F])}Ye.hasData(D)&&(ae=Ye.access(D),ke=_.extend({},ae),Ye.set(O,ke))}}function CE(D,O){var F=O.nodeName.toLowerCase();F==="input"&&_r.test(D.type)?O.checked=D.checked:(F==="input"||F==="textarea")&&(O.defaultValue=D.defaultValue)}function Ro(D,O,F,K){O=o(O);var ee,te,ae,ke,Ce,Ue,ot=0,ft=D.length,Ze=ft-1,Et=O[0],Cn=v(Et);if(Cn||ft>1&&typeof Et=="string"&&!p.checkClone&&w0.test(Et))return D.each(function(rr){var Pn=D.eq(rr);Cn&&(O[0]=Et.call(this,rr,Pn.html())),Ro(Pn,O,F,K)});if(ft&&(ee=Ar(O,D[0].ownerDocument,!1,D,K),te=ee.firstChild,ee.childNodes.length===1&&(ee=te),te||K)){for(ae=_.map(nt(ee,"script"),nS),ke=ae.length;ot<ft;ot++)Ce=ee,ot!==Ze&&(Ce=_.clone(Ce,!0,!0),ke&&_.merge(ae,nt(Ce,"script"))),F.call(D[ot],Ce,ot);if(ke)for(Ue=ae[ae.length-1].ownerDocument,_.map(ae,rS),ot=0;ot<ke;ot++)Ce=ae[ot],st.test(Ce.type||"")&&!me.access(Ce,"globalEval")&&_.contains(Ue,Ce)&&(Ce.src&&(Ce.type||"").toLowerCase()!=="module"?_._evalUrl&&!Ce.noModule&&_._evalUrl(Ce.src,{nonce:Ce.nonce||Ce.getAttribute("nonce")},Ue):b(Ce.textContent.replace(tS,""),Ce,Ue))}return D}function _p(D,O,F){for(var K,ee=O?_.filter(O,D):D,te=0;(K=ee[te])!=null;te++)!F&&K.nodeType===1&&_.cleanData(nt(K)),K.parentNode&&(F&&de(K)&&jt(nt(K,"script")),K.parentNode.removeChild(K));return D}_.extend({htmlPrefilter:function(D){return D},clone:function(D,O,F){var K,ee,te,ae,ke=D.cloneNode(!0),Ce=de(D);if(!p.noCloneChecked&&(D.nodeType===1||D.nodeType===11)&&!_.isXMLDoc(D))for(ae=nt(ke),te=nt(D),K=0,ee=te.length;K<ee;K++)CE(te[K],ae[K]);if(O)if(F)for(te=te||nt(D),ae=ae||nt(ke),K=0,ee=te.length;K<ee;K++)x0(te[K],ae[K]);else x0(D,ke);return ae=nt(ke,"script"),ae.length>0&&jt(ae,!Ce&&nt(D,"script")),ke},cleanData:function(D){for(var O,F,K,ee=_.event.special,te=0;(F=D[te])!==void 0;te++)if(Re(F)){if(O=F[me.expando]){if(O.events)for(K in O.events)ee[K]?_.event.remove(F,K):_.removeEvent(F,K,O.handle);F[me.expando]=void 0}F[Ye.expando]&&(F[Ye.expando]=void 0)}}}),_.fn.extend({detach:function(D){return _p(this,D,!0)},remove:function(D){return _p(this,D)},text:function(D){return He(this,function(O){return O===void 0?_.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=O)})},null,D,arguments.length)},append:function(){return Ro(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var O=_0(this,D);O.appendChild(D)}})},prepend:function(){return Ro(this,arguments,function(D){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var O=_0(this,D);O.insertBefore(D,O.firstChild)}})},before:function(){return Ro(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this)})},after:function(){return Ro(this,arguments,function(D){this.parentNode&&this.parentNode.insertBefore(D,this.nextSibling)})},empty:function(){for(var D,O=0;(D=this[O])!=null;O++)D.nodeType===1&&(_.cleanData(nt(D,!1)),D.textContent="");return this},clone:function(D,O){return D=D??!1,O=O??D,this.map(function(){return _.clone(this,D,O)})},html:function(D){return He(this,function(O){var F=this[0]||{},K=0,ee=this.length;if(O===void 0&&F.nodeType===1)return F.innerHTML;if(typeof O=="string"&&!eS.test(O)&&!Ee[(Pe.exec(O)||["",""])[1].toLowerCase()]){O=_.htmlPrefilter(O);try{for(;K<ee;K++)F=this[K]||{},F.nodeType===1&&(_.cleanData(nt(F,!1)),F.innerHTML=O);F=0}catch{}}F&&this.empty().append(O)},null,D,arguments.length)},replaceWith:function(){var D=[];return Ro(this,arguments,function(O){var F=this.parentNode;_.inArray(this,D)<0&&(_.cleanData(nt(this)),F&&F.replaceChild(O,this))},D)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(D,O){_.fn[D]=function(F){for(var K,ee=[],te=_(F),ae=te.length-1,ke=0;ke<=ae;ke++)K=ke===ae?this:this.clone(!0),_(te[ke])[O](K),s.apply(ee,K.get());return this.pushStack(ee)}});var ic=new RegExp("^("+Me+")(?!px)[a-z%]+$","i"),oc=/^--/,Yf=function(D){var O=D.ownerDocument.defaultView;return(!O||!O.opener)&&(O=e),O.getComputedStyle(D)},C0=function(D,O,F){var K,ee,te={};for(ee in O)te[ee]=D.style[ee],D.style[ee]=O[ee];K=F.call(D);for(ee in O)D.style[ee]=te[ee];return K},aS=new RegExp(be.join("|"),"i");(function(){function D(){if(Ue){Ce.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ue.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ie.appendChild(Ce).appendChild(Ue);var ot=e.getComputedStyle(Ue);F=ot.top!=="1%",ke=O(ot.marginLeft)===12,Ue.style.right="60%",te=O(ot.right)===36,K=O(ot.width)===36,Ue.style.position="absolute",ee=O(Ue.offsetWidth/3)===12,Ie.removeChild(Ce),Ue=null}}function O(ot){return Math.round(parseFloat(ot))}var F,K,ee,te,ae,ke,Ce=y.createElement("div"),Ue=y.createElement("div");Ue.style&&(Ue.style.backgroundClip="content-box",Ue.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle=Ue.style.backgroundClip==="content-box",_.extend(p,{boxSizingReliable:function(){return D(),K},pixelBoxStyles:function(){return D(),te},pixelPosition:function(){return D(),F},reliableMarginLeft:function(){return D(),ke},scrollboxSize:function(){return D(),ee},reliableTrDimensions:function(){var ot,ft,Ze,Et;return ae==null&&(ot=y.createElement("table"),ft=y.createElement("tr"),Ze=y.createElement("div"),ot.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ft.style.cssText="box-sizing:content-box;border:1px solid",ft.style.height="1px",Ze.style.height="9px",Ze.style.display="block",Ie.appendChild(ot).appendChild(ft).appendChild(Ze),Et=e.getComputedStyle(ft),ae=parseInt(Et.height,10)+parseInt(Et.borderTopWidth,10)+parseInt(Et.borderBottomWidth,10)===ft.offsetHeight,Ie.removeChild(ot)),ae}}))})();function sc(D,O,F){var K,ee,te,ae,ke=oc.test(O),Ce=D.style;return F=F||Yf(D),F&&(ae=F.getPropertyValue(O)||F[O],ke&&ae&&(ae=ae.replace(A,"$1")||void 0),ae===""&&!de(D)&&(ae=_.style(D,O)),!p.pixelBoxStyles()&&ic.test(ae)&&aS.test(O)&&(K=Ce.width,ee=Ce.minWidth,te=Ce.maxWidth,Ce.minWidth=Ce.maxWidth=Ce.width=ae,ae=F.width,Ce.width=K,Ce.minWidth=ee,Ce.maxWidth=te)),ae!==void 0?ae+"":ae}function T0(D,O){return{get:function(){if(D()){delete this.get;return}return(this.get=O).apply(this,arguments)}}}var E0=["Webkit","Moz","ms"],M0=y.createElement("div").style,qf={};function nfe(D){for(var O=D[0].toUpperCase()+D.slice(1),F=E0.length;F--;)if(D=E0[F]+O,D in M0)return D}function TE(D){var O=_.cssProps[D]||qf[D];return O||(D in M0?D:qf[D]=nfe(D)||D)}var rfe=/^(none|table(?!-c[ea]).+)/,afe={position:"absolute",visibility:"hidden",display:"block"},K$={letterSpacing:"0",fontWeight:"400"};function Y$(D,O,F){var K=ge.exec(O);return K?Math.max(0,K[2]-(F||0))+(K[3]||"px"):O}function EE(D,O,F,K,ee,te){var ae=O==="width"?1:0,ke=0,Ce=0,Ue=0;if(F===(K?"border":"content"))return 0;for(;ae<4;ae+=2)F==="margin"&&(Ue+=_.css(D,F+be[ae],!0,ee)),K?(F==="content"&&(Ce-=_.css(D,"padding"+be[ae],!0,ee)),F!=="margin"&&(Ce-=_.css(D,"border"+be[ae]+"Width",!0,ee))):(Ce+=_.css(D,"padding"+be[ae],!0,ee),F!=="padding"?Ce+=_.css(D,"border"+be[ae]+"Width",!0,ee):ke+=_.css(D,"border"+be[ae]+"Width",!0,ee));return!K&&te>=0&&(Ce+=Math.max(0,Math.ceil(D["offset"+O[0].toUpperCase()+O.slice(1)]-te-Ce-ke-.5))||0),Ce+Ue}function q$(D,O,F){var K=Yf(D),ee=!p.boxSizingReliable()||F,te=ee&&_.css(D,"boxSizing",!1,K)==="border-box",ae=te,ke=sc(D,O,K),Ce="offset"+O[0].toUpperCase()+O.slice(1);if(ic.test(ke)){if(!F)return ke;ke="auto"}return(!p.boxSizingReliable()&&te||!p.reliableTrDimensions()&&M(D,"tr")||ke==="auto"||!parseFloat(ke)&&_.css(D,"display",!1,K)==="inline")&&D.getClientRects().length&&(te=_.css(D,"boxSizing",!1,K)==="border-box",ae=Ce in D,ae&&(ke=D[Ce])),ke=parseFloat(ke)||0,ke+EE(D,O,F||(te?"border":"content"),ae,K,ke)+"px"}_.extend({cssHooks:{opacity:{get:function(D,O){if(O){var F=sc(D,"opacity");return F===""?"1":F}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(D,O,F,K){if(!(!D||D.nodeType===3||D.nodeType===8||!D.style)){var ee,te,ae,ke=ie(O),Ce=oc.test(O),Ue=D.style;if(Ce||(O=TE(ke)),ae=_.cssHooks[O]||_.cssHooks[ke],F!==void 0){if(te=typeof F,te==="string"&&(ee=ge.exec(F))&&ee[1]&&(F=Bt(D,O,ee),te="number"),F==null||F!==F)return;te==="number"&&!Ce&&(F+=ee&&ee[3]||(_.cssNumber[ke]?"":"px")),!p.clearCloneStyle&&F===""&&O.indexOf("background")===0&&(Ue[O]="inherit"),(!ae||!("set"in ae)||(F=ae.set(D,F,K))!==void 0)&&(Ce?Ue.setProperty(O,F):Ue[O]=F)}else return ae&&"get"in ae&&(ee=ae.get(D,!1,K))!==void 0?ee:Ue[O]}},css:function(D,O,F,K){var ee,te,ae,ke=ie(O),Ce=oc.test(O);return Ce||(O=TE(ke)),ae=_.cssHooks[O]||_.cssHooks[ke],ae&&"get"in ae&&(ee=ae.get(D,!0,F)),ee===void 0&&(ee=sc(D,O,K)),ee==="normal"&&O in K$&&(ee=K$[O]),F===""||F?(te=parseFloat(ee),F===!0||isFinite(te)?te||0:ee):ee}}),_.each(["height","width"],function(D,O){_.cssHooks[O]={get:function(F,K,ee){if(K)return rfe.test(_.css(F,"display"))&&(!F.getClientRects().length||!F.getBoundingClientRect().width)?C0(F,afe,function(){return q$(F,O,ee)}):q$(F,O,ee)},set:function(F,K,ee){var te,ae=Yf(F),ke=!p.scrollboxSize()&&ae.position==="absolute",Ce=ke||ee,Ue=Ce&&_.css(F,"boxSizing",!1,ae)==="border-box",ot=ee?EE(F,O,ee,Ue,ae):0;return Ue&&ke&&(ot-=Math.ceil(F["offset"+O[0].toUpperCase()+O.slice(1)]-parseFloat(ae[O])-EE(F,O,"border",!1,ae)-.5)),ot&&(te=ge.exec(K))&&(te[3]||"px")!=="px"&&(F.style[O]=K,K=_.css(F,O)),Y$(F,K,ot)}}}),_.cssHooks.marginLeft=T0(p.reliableMarginLeft,function(D,O){if(O)return(parseFloat(sc(D,"marginLeft"))||D.getBoundingClientRect().left-C0(D,{marginLeft:0},function(){return D.getBoundingClientRect().left}))+"px"}),_.each({margin:"",padding:"",border:"Width"},function(D,O){_.cssHooks[D+O]={expand:function(F){for(var K=0,ee={},te=typeof F=="string"?F.split(" "):[F];K<4;K++)ee[D+be[K]+O]=te[K]||te[K-2]||te[0];return ee}},D!=="margin"&&(_.cssHooks[D+O].set=Y$)}),_.fn.extend({css:function(D,O){return He(this,function(F,K,ee){var te,ae,ke={},Ce=0;if(Array.isArray(K)){for(te=Yf(F),ae=K.length;Ce<ae;Ce++)ke[K[Ce]]=_.css(F,K[Ce],!1,te);return ke}return ee!==void 0?_.style(F,K,ee):_.css(F,K)},D,O,arguments.length>1)}});function Zi(D,O,F,K,ee){return new Zi.prototype.init(D,O,F,K,ee)}_.Tween=Zi,Zi.prototype={constructor:Zi,init:function(D,O,F,K,ee,te){this.elem=D,this.prop=F,this.easing=ee||_.easing._default,this.options=O,this.start=this.now=this.cur(),this.end=K,this.unit=te||(_.cssNumber[F]?"":"px")},cur:function(){var D=Zi.propHooks[this.prop];return D&&D.get?D.get(this):Zi.propHooks._default.get(this)},run:function(D){var O,F=Zi.propHooks[this.prop];return this.options.duration?this.pos=O=_.easing[this.easing](D,this.options.duration*D,0,1,this.options.duration):this.pos=O=D,this.now=(this.end-this.start)*O+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),F&&F.set?F.set(this):Zi.propHooks._default.set(this),this}},Zi.prototype.init.prototype=Zi.prototype,Zi.propHooks={_default:{get:function(D){var O;return D.elem.nodeType!==1||D.elem[D.prop]!=null&&D.elem.style[D.prop]==null?D.elem[D.prop]:(O=_.css(D.elem,D.prop,""),!O||O==="auto"?0:O)},set:function(D){_.fx.step[D.prop]?_.fx.step[D.prop](D):D.elem.nodeType===1&&(_.cssHooks[D.prop]||D.elem.style[TE(D.prop)]!=null)?_.style(D.elem,D.prop,D.now+D.unit):D.elem[D.prop]=D.now}}},Zi.propHooks.scrollTop=Zi.propHooks.scrollLeft={set:function(D){D.elem.nodeType&&D.elem.parentNode&&(D.elem[D.prop]=D.now)}},_.easing={linear:function(D){return D},swing:function(D){return .5-Math.cos(D*Math.PI)/2},_default:"swing"},_.fx=Zi.prototype.init,_.fx.step={};var xp,iS,ife=/^(?:toggle|show|hide)$/,ofe=/queueHooks$/;function ME(){iS&&(y.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(ME):e.setTimeout(ME,_.fx.interval),_.fx.tick())}function X$(){return e.setTimeout(function(){xp=void 0}),xp=Date.now()}function oS(D,O){var F,K=0,ee={height:D};for(O=O?1:0;K<4;K+=2-O)F=be[K],ee["margin"+F]=ee["padding"+F]=D;return O&&(ee.opacity=ee.width=D),ee}function Z$(D,O,F){for(var K,ee=(ms.tweeners[O]||[]).concat(ms.tweeners["*"]),te=0,ae=ee.length;te<ae;te++)if(K=ee[te].call(F,O,D))return K}function sfe(D,O,F){var K,ee,te,ae,ke,Ce,Ue,ot,ft="width"in O||"height"in O,Ze=this,Et={},Cn=D.style,rr=D.nodeType&&Fe(D),Pn=me.get(D,"fxshow");F.queue||(ae=_._queueHooks(D,"fx"),ae.unqueued==null&&(ae.unqueued=0,ke=ae.empty.fire,ae.empty.fire=function(){ae.unqueued||ke()}),ae.unqueued++,Ze.always(function(){Ze.always(function(){ae.unqueued--,_.queue(D,"fx").length||ae.empty.fire()})}));for(K in O)if(ee=O[K],ife.test(ee)){if(delete O[K],te=te||ee==="toggle",ee===(rr?"hide":"show"))if(ee==="show"&&Pn&&Pn[K]!==void 0)rr=!0;else continue;Et[K]=Pn&&Pn[K]||_.style(D,K)}if(Ce=!_.isEmptyObject(O),!(!Ce&&_.isEmptyObject(Et))){ft&&D.nodeType===1&&(F.overflow=[Cn.overflow,Cn.overflowX,Cn.overflowY],Ue=Pn&&Pn.display,Ue==null&&(Ue=me.get(D,"display")),ot=_.css(D,"display"),ot==="none"&&(Ue?ot=Ue:(dr([D],!0),Ue=D.style.display||Ue,ot=_.css(D,"display"),dr([D]))),(ot==="inline"||ot==="inline-block"&&Ue!=null)&&_.css(D,"float")==="none"&&(Ce||(Ze.done(function(){Cn.display=Ue}),Ue==null&&(ot=Cn.display,Ue=ot==="none"?"":ot)),Cn.display="inline-block")),F.overflow&&(Cn.overflow="hidden",Ze.always(function(){Cn.overflow=F.overflow[0],Cn.overflowX=F.overflow[1],Cn.overflowY=F.overflow[2]})),Ce=!1;for(K in Et)Ce||(Pn?"hidden"in Pn&&(rr=Pn.hidden):Pn=me.access(D,"fxshow",{display:Ue}),te&&(Pn.hidden=!rr),rr&&dr([D],!0),Ze.done(function(){rr||dr([D]),me.remove(D,"fxshow");for(K in Et)_.style(D,K,Et[K])})),Ce=Z$(rr?Pn[K]:0,K,Ze),K in Pn||(Pn[K]=Ce.start,rr&&(Ce.end=Ce.start,Ce.start=0))}}function lfe(D,O){var F,K,ee,te,ae;for(F in D)if(K=ie(F),ee=O[K],te=D[F],Array.isArray(te)&&(ee=te[1],te=D[F]=te[0]),F!==K&&(D[K]=te,delete D[F]),ae=_.cssHooks[K],ae&&"expand"in ae){te=ae.expand(te),delete D[K];for(F in te)F in D||(D[F]=te[F],O[F]=ee)}else O[K]=ee}function ms(D,O,F){var K,ee,te=0,ae=ms.prefilters.length,ke=_.Deferred().always(function(){delete Ce.elem}),Ce=function(){if(ee)return!1;for(var ft=xp||X$(),Ze=Math.max(0,Ue.startTime+Ue.duration-ft),Et=Ze/Ue.duration||0,Cn=1-Et,rr=0,Pn=Ue.tweens.length;rr<Pn;rr++)Ue.tweens[rr].run(Cn);return ke.notifyWith(D,[Ue,Cn,Ze]),Cn<1&&Pn?Ze:(Pn||ke.notifyWith(D,[Ue,1,0]),ke.resolveWith(D,[Ue]),!1)},Ue=ke.promise({elem:D,props:_.extend({},O),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},F),originalProperties:O,originalOptions:F,startTime:xp||X$(),duration:F.duration,tweens:[],createTween:function(ft,Ze){var Et=_.Tween(D,Ue.opts,ft,Ze,Ue.opts.specialEasing[ft]||Ue.opts.easing);return Ue.tweens.push(Et),Et},stop:function(ft){var Ze=0,Et=ft?Ue.tweens.length:0;if(ee)return this;for(ee=!0;Ze<Et;Ze++)Ue.tweens[Ze].run(1);return ft?(ke.notifyWith(D,[Ue,1,0]),ke.resolveWith(D,[Ue,ft])):ke.rejectWith(D,[Ue,ft]),this}}),ot=Ue.props;for(lfe(ot,Ue.opts.specialEasing);te<ae;te++)if(K=ms.prefilters[te].call(Ue,D,ot,Ue.opts),K)return v(K.stop)&&(_._queueHooks(Ue.elem,Ue.opts.queue).stop=K.stop.bind(K)),K;return _.map(ot,Z$,Ue),v(Ue.opts.start)&&Ue.opts.start.call(D,Ue),Ue.progress(Ue.opts.progress).done(Ue.opts.done,Ue.opts.complete).fail(Ue.opts.fail).always(Ue.opts.always),_.fx.timer(_.extend(Ce,{elem:D,anim:Ue,queue:Ue.opts.queue})),Ue}_.Animation=_.extend(ms,{tweeners:{"*":[function(D,O){var F=this.createTween(D,O);return Bt(F.elem,D,ge.exec(O),F),F}]},tweener:function(D,O){v(D)?(O=D,D=["*"]):D=D.match(ve);for(var F,K=0,ee=D.length;K<ee;K++)F=D[K],ms.tweeners[F]=ms.tweeners[F]||[],ms.tweeners[F].unshift(O)},prefilters:[sfe],prefilter:function(D,O){O?ms.prefilters.unshift(D):ms.prefilters.push(D)}}),_.speed=function(D,O,F){var K=D&&typeof D=="object"?_.extend({},D):{complete:F||!F&&O||v(D)&&D,duration:D,easing:F&&O||O&&!v(O)&&O};return _.fx.off?K.duration=0:typeof K.duration!="number"&&(K.duration in _.fx.speeds?K.duration=_.fx.speeds[K.duration]:K.duration=_.fx.speeds._default),(K.queue==null||K.queue===!0)&&(K.queue="fx"),K.old=K.complete,K.complete=function(){v(K.old)&&K.old.call(this),K.queue&&_.dequeue(this,K.queue)},K},_.fn.extend({fadeTo:function(D,O,F,K){return this.filter(Fe).css("opacity",0).show().end().animate({opacity:O},D,F,K)},animate:function(D,O,F,K){var ee=_.isEmptyObject(D),te=_.speed(O,F,K),ae=function(){var ke=ms(this,_.extend({},D),te);(ee||me.get(this,"finish"))&&ke.stop(!0)};return ae.finish=ae,ee||te.queue===!1?this.each(ae):this.queue(te.queue,ae)},stop:function(D,O,F){var K=function(ee){var te=ee.stop;delete ee.stop,te(F)};return typeof D!="string"&&(F=O,O=D,D=void 0),O&&this.queue(D||"fx",[]),this.each(function(){var ee=!0,te=D!=null&&D+"queueHooks",ae=_.timers,ke=me.get(this);if(te)ke[te]&&ke[te].stop&&K(ke[te]);else for(te in ke)ke[te]&&ke[te].stop&&ofe.test(te)&&K(ke[te]);for(te=ae.length;te--;)ae[te].elem===this&&(D==null||ae[te].queue===D)&&(ae[te].anim.stop(F),ee=!1,ae.splice(te,1));(ee||!F)&&_.dequeue(this,D)})},finish:function(D){return D!==!1&&(D=D||"fx"),this.each(function(){var O,F=me.get(this),K=F[D+"queue"],ee=F[D+"queueHooks"],te=_.timers,ae=K?K.length:0;for(F.finish=!0,_.queue(this,D,[]),ee&&ee.stop&&ee.stop.call(this,!0),O=te.length;O--;)te[O].elem===this&&te[O].queue===D&&(te[O].anim.stop(!0),te.splice(O,1));for(O=0;O<ae;O++)K[O]&&K[O].finish&&K[O].finish.call(this);delete F.finish})}}),_.each(["toggle","show","hide"],function(D,O){var F=_.fn[O];_.fn[O]=function(K,ee,te){return K==null||typeof K=="boolean"?F.apply(this,arguments):this.animate(oS(O,!0),K,ee,te)}}),_.each({slideDown:oS("show"),slideUp:oS("hide"),slideToggle:oS("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(D,O){_.fn[D]=function(F,K,ee){return this.animate(O,F,K,ee)}}),_.timers=[],_.fx.tick=function(){var D,O=0,F=_.timers;for(xp=Date.now();O<F.length;O++)D=F[O],!D()&&F[O]===D&&F.splice(O--,1);F.length||_.fx.stop(),xp=void 0},_.fx.timer=function(D){_.timers.push(D),_.fx.start()},_.fx.interval=13,_.fx.start=function(){iS||(iS=!0,ME())},_.fx.stop=function(){iS=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(D,O){return D=_.fx&&_.fx.speeds[D]||D,O=O||"fx",this.queue(O,function(F,K){var ee=e.setTimeout(F,D);K.stop=function(){e.clearTimeout(ee)}})},function(){var D=y.createElement("input"),O=y.createElement("select"),F=O.appendChild(y.createElement("option"));D.type="checkbox",p.checkOn=D.value!=="",p.optSelected=F.selected,D=y.createElement("input"),D.value="t",D.type="radio",p.radioValue=D.value==="t"}();var Q$,D0=_.expr.attrHandle;_.fn.extend({attr:function(D,O){return He(this,_.attr,D,O,arguments.length>1)},removeAttr:function(D){return this.each(function(){_.removeAttr(this,D)})}}),_.extend({attr:function(D,O,F){var K,ee,te=D.nodeType;if(!(te===3||te===8||te===2)){if(typeof D.getAttribute>"u")return _.prop(D,O,F);if((te!==1||!_.isXMLDoc(D))&&(ee=_.attrHooks[O.toLowerCase()]||(_.expr.match.bool.test(O)?Q$:void 0)),F!==void 0){if(F===null){_.removeAttr(D,O);return}return ee&&"set"in ee&&(K=ee.set(D,F,O))!==void 0?K:(D.setAttribute(O,F+""),F)}return ee&&"get"in ee&&(K=ee.get(D,O))!==null?K:(K=_.find.attr(D,O),K??void 0)}},attrHooks:{type:{set:function(D,O){if(!p.radioValue&&O==="radio"&&M(D,"input")){var F=D.value;return D.setAttribute("type",O),F&&(D.value=F),O}}}},removeAttr:function(D,O){var F,K=0,ee=O&&O.match(ve);if(ee&&D.nodeType===1)for(;F=ee[K++];)D.removeAttribute(F)}}),Q$={set:function(D,O,F){return O===!1?_.removeAttr(D,F):D.setAttribute(F,F),F}},_.each(_.expr.match.bool.source.match(/\w+/g),function(D,O){var F=D0[O]||_.find.attr;D0[O]=function(K,ee,te){var ae,ke,Ce=ee.toLowerCase();return te||(ke=D0[Ce],D0[Ce]=ae,ae=F(K,ee,te)!=null?Ce:null,D0[Ce]=ke),ae}});var ufe=/^(?:input|select|textarea|button)$/i,cfe=/^(?:a|area)$/i;_.fn.extend({prop:function(D,O){return He(this,_.prop,D,O,arguments.length>1)},removeProp:function(D){return this.each(function(){delete this[_.propFix[D]||D]})}}),_.extend({prop:function(D,O,F){var K,ee,te=D.nodeType;if(!(te===3||te===8||te===2))return(te!==1||!_.isXMLDoc(D))&&(O=_.propFix[O]||O,ee=_.propHooks[O]),F!==void 0?ee&&"set"in ee&&(K=ee.set(D,F,O))!==void 0?K:D[O]=F:ee&&"get"in ee&&(K=ee.get(D,O))!==null?K:D[O]},propHooks:{tabIndex:{get:function(D){var O=_.find.attr(D,"tabindex");return O?parseInt(O,10):ufe.test(D.nodeName)||cfe.test(D.nodeName)&&D.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(_.propHooks.selected={get:function(D){var O=D.parentNode;return O&&O.parentNode&&O.parentNode.selectedIndex,null},set:function(D){var O=D.parentNode;O&&(O.selectedIndex,O.parentNode&&O.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});function Xf(D){var O=D.match(ve)||[];return O.join(" ")}function Zf(D){return D.getAttribute&&D.getAttribute("class")||""}function DE(D){return Array.isArray(D)?D:typeof D=="string"?D.match(ve)||[]:[]}_.fn.extend({addClass:function(D){var O,F,K,ee,te,ae;return v(D)?this.each(function(ke){_(this).addClass(D.call(this,ke,Zf(this)))}):(O=DE(D),O.length?this.each(function(){if(K=Zf(this),F=this.nodeType===1&&" "+Xf(K)+" ",F){for(te=0;te<O.length;te++)ee=O[te],F.indexOf(" "+ee+" ")<0&&(F+=ee+" ");ae=Xf(F),K!==ae&&this.setAttribute("class",ae)}}):this)},removeClass:function(D){var O,F,K,ee,te,ae;return v(D)?this.each(function(ke){_(this).removeClass(D.call(this,ke,Zf(this)))}):arguments.length?(O=DE(D),O.length?this.each(function(){if(K=Zf(this),F=this.nodeType===1&&" "+Xf(K)+" ",F){for(te=0;te<O.length;te++)for(ee=O[te];F.indexOf(" "+ee+" ")>-1;)F=F.replace(" "+ee+" "," ");ae=Xf(F),K!==ae&&this.setAttribute("class",ae)}}):this):this.attr("class","")},toggleClass:function(D,O){var F,K,ee,te,ae=typeof D,ke=ae==="string"||Array.isArray(D);return v(D)?this.each(function(Ce){_(this).toggleClass(D.call(this,Ce,Zf(this),O),O)}):typeof O=="boolean"&&ke?O?this.addClass(D):this.removeClass(D):(F=DE(D),this.each(function(){if(ke)for(te=_(this),ee=0;ee<F.length;ee++)K=F[ee],te.hasClass(K)?te.removeClass(K):te.addClass(K);else(D===void 0||ae==="boolean")&&(K=Zf(this),K&&me.set(this,"__className__",K),this.setAttribute&&this.setAttribute("class",K||D===!1?"":me.get(this,"__className__")||""))}))},hasClass:function(D){var O,F,K=0;for(O=" "+D+" ";F=this[K++];)if(F.nodeType===1&&(" "+Xf(Zf(F))+" ").indexOf(O)>-1)return!0;return!1}});var ffe=/\r/g;_.fn.extend({val:function(D){var O,F,K,ee=this[0];return arguments.length?(K=v(D),this.each(function(te){var ae;this.nodeType===1&&(K?ae=D.call(this,te,_(this).val()):ae=D,ae==null?ae="":typeof ae=="number"?ae+="":Array.isArray(ae)&&(ae=_.map(ae,function(ke){return ke==null?"":ke+""})),O=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],(!O||!("set"in O)||O.set(this,ae,"value")===void 0)&&(this.value=ae))})):ee?(O=_.valHooks[ee.type]||_.valHooks[ee.nodeName.toLowerCase()],O&&"get"in O&&(F=O.get(ee,"value"))!==void 0?F:(F=ee.value,typeof F=="string"?F.replace(ffe,""):F??"")):void 0}}),_.extend({valHooks:{option:{get:function(D){var O=_.find.attr(D,"value");return O??Xf(_.text(D))}},select:{get:function(D){var O,F,K,ee=D.options,te=D.selectedIndex,ae=D.type==="select-one",ke=ae?null:[],Ce=ae?te+1:ee.length;for(te<0?K=Ce:K=ae?te:0;K<Ce;K++)if(F=ee[K],(F.selected||K===te)&&!F.disabled&&(!F.parentNode.disabled||!M(F.parentNode,"optgroup"))){if(O=_(F).val(),ae)return O;ke.push(O)}return ke},set:function(D,O){for(var F,K,ee=D.options,te=_.makeArray(O),ae=ee.length;ae--;)K=ee[ae],(K.selected=_.inArray(_.valHooks.option.get(K),te)>-1)&&(F=!0);return F||(D.selectedIndex=-1),te}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(D,O){if(Array.isArray(O))return D.checked=_.inArray(_(D).val(),O)>-1}},p.checkOn||(_.valHooks[this].get=function(D){return D.getAttribute("value")===null?"on":D.value})});var k0=e.location,J$={guid:Date.now()},kE=/\?/;_.parseXML=function(D){var O,F;if(!D||typeof D!="string")return null;try{O=new e.DOMParser().parseFromString(D,"text/xml")}catch{}return F=O&&O.getElementsByTagName("parsererror")[0],(!O||F)&&_.error("Invalid XML: "+(F?_.map(F.childNodes,function(K){return K.textContent}).join(`
  76. `):D)),O};var e4=/^(?:focusinfocus|focusoutblur)$/,t4=function(D){D.stopPropagation()};_.extend(_.event,{trigger:function(D,O,F,K){var ee,te,ae,ke,Ce,Ue,ot,ft,Ze=[F||y],Et=f.call(D,"type")?D.type:D,Cn=f.call(D,"namespace")?D.namespace.split("."):[];if(te=ft=ae=F=F||y,!(F.nodeType===3||F.nodeType===8)&&!e4.test(Et+_.event.triggered)&&(Et.indexOf(".")>-1&&(Cn=Et.split("."),Et=Cn.shift(),Cn.sort()),Ce=Et.indexOf(":")<0&&"on"+Et,D=D[_.expando]?D:new _.Event(Et,typeof D=="object"&&D),D.isTrigger=K?2:3,D.namespace=Cn.join("."),D.rnamespace=D.namespace?new RegExp("(^|\\.)"+Cn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,D.result=void 0,D.target||(D.target=F),O=O==null?[D]:_.makeArray(O,[D]),ot=_.event.special[Et]||{},!(!K&&ot.trigger&&ot.trigger.apply(F,O)===!1))){if(!K&&!ot.noBubble&&!g(F)){for(ke=ot.delegateType||Et,e4.test(ke+Et)||(te=te.parentNode);te;te=te.parentNode)Ze.push(te),ae=te;ae===(F.ownerDocument||y)&&Ze.push(ae.defaultView||ae.parentWindow||e)}for(ee=0;(te=Ze[ee++])&&!D.isPropagationStopped();)ft=te,D.type=ee>1?ke:ot.bindType||Et,Ue=(me.get(te,"events")||Object.create(null))[D.type]&&me.get(te,"handle"),Ue&&Ue.apply(te,O),Ue=Ce&&te[Ce],Ue&&Ue.apply&&Re(te)&&(D.result=Ue.apply(te,O),D.result===!1&&D.preventDefault());return D.type=Et,!K&&!D.isDefaultPrevented()&&(!ot._default||ot._default.apply(Ze.pop(),O)===!1)&&Re(F)&&Ce&&v(F[Et])&&!g(F)&&(ae=F[Ce],ae&&(F[Ce]=null),_.event.triggered=Et,D.isPropagationStopped()&&ft.addEventListener(Et,t4),F[Et](),D.isPropagationStopped()&&ft.removeEventListener(Et,t4),_.event.triggered=void 0,ae&&(F[Ce]=ae)),D.result}},simulate:function(D,O,F){var K=_.extend(new _.Event,F,{type:D,isSimulated:!0});_.event.trigger(K,null,O)}}),_.fn.extend({trigger:function(D,O){return this.each(function(){_.event.trigger(D,O,this)})},triggerHandler:function(D,O){var F=this[0];if(F)return _.event.trigger(D,O,F,!0)}});var dfe=/\[\]$/,n4=/\r?\n/g,hfe=/^(?:submit|button|image|reset|file)$/i,pfe=/^(?:input|select|textarea|keygen)/i;function RE(D,O,F,K){var ee;if(Array.isArray(O))_.each(O,function(te,ae){F||dfe.test(D)?K(D,ae):RE(D+"["+(typeof ae=="object"&&ae!=null?te:"")+"]",ae,F,K)});else if(!F&&w(O)==="object")for(ee in O)RE(D+"["+ee+"]",O[ee],F,K);else K(D,O)}_.param=function(D,O){var F,K=[],ee=function(te,ae){var ke=v(ae)?ae():ae;K[K.length]=encodeURIComponent(te)+"="+encodeURIComponent(ke??"")};if(D==null)return"";if(Array.isArray(D)||D.jquery&&!_.isPlainObject(D))_.each(D,function(){ee(this.name,this.value)});else for(F in D)RE(F,D[F],O,ee);return K.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var D=_.prop(this,"elements");return D?_.makeArray(D):this}).filter(function(){var D=this.type;return this.name&&!_(this).is(":disabled")&&pfe.test(this.nodeName)&&!hfe.test(D)&&(this.checked||!_r.test(D))}).map(function(D,O){var F=_(this).val();return F==null?null:Array.isArray(F)?_.map(F,function(K){return{name:O.name,value:K.replace(n4,`\r
  77. `)}}):{name:O.name,value:F.replace(n4,`\r
  78. `)}}).get()}});var vfe=/%20/g,gfe=/#.*$/,yfe=/([?&])_=[^&]*/,mfe=/^(.*?):[ \t]*([^\r\n]*)$/mg,bfe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Sfe=/^(?:GET|HEAD)$/,wfe=/^\/\//,r4={},LE={},a4="*/".concat("*"),OE=y.createElement("a");OE.href=k0.href;function i4(D){return function(O,F){typeof O!="string"&&(F=O,O="*");var K,ee=0,te=O.toLowerCase().match(ve)||[];if(v(F))for(;K=te[ee++];)K[0]==="+"?(K=K.slice(1)||"*",(D[K]=D[K]||[]).unshift(F)):(D[K]=D[K]||[]).push(F)}}function o4(D,O,F,K){var ee={},te=D===LE;function ae(ke){var Ce;return ee[ke]=!0,_.each(D[ke]||[],function(Ue,ot){var ft=ot(O,F,K);if(typeof ft=="string"&&!te&&!ee[ft])return O.dataTypes.unshift(ft),ae(ft),!1;if(te)return!(Ce=ft)}),Ce}return ae(O.dataTypes[0])||!ee["*"]&&ae("*")}function AE(D,O){var F,K,ee=_.ajaxSettings.flatOptions||{};for(F in O)O[F]!==void 0&&((ee[F]?D:K||(K={}))[F]=O[F]);return K&&_.extend(!0,D,K),D}function _fe(D,O,F){for(var K,ee,te,ae,ke=D.contents,Ce=D.dataTypes;Ce[0]==="*";)Ce.shift(),K===void 0&&(K=D.mimeType||O.getResponseHeader("Content-Type"));if(K){for(ee in ke)if(ke[ee]&&ke[ee].test(K)){Ce.unshift(ee);break}}if(Ce[0]in F)te=Ce[0];else{for(ee in F){if(!Ce[0]||D.converters[ee+" "+Ce[0]]){te=ee;break}ae||(ae=ee)}te=te||ae}if(te)return te!==Ce[0]&&Ce.unshift(te),F[te]}function xfe(D,O,F,K){var ee,te,ae,ke,Ce,Ue={},ot=D.dataTypes.slice();if(ot[1])for(ae in D.converters)Ue[ae.toLowerCase()]=D.converters[ae];for(te=ot.shift();te;)if(D.responseFields[te]&&(F[D.responseFields[te]]=O),!Ce&&K&&D.dataFilter&&(O=D.dataFilter(O,D.dataType)),Ce=te,te=ot.shift(),te){if(te==="*")te=Ce;else if(Ce!=="*"&&Ce!==te){if(ae=Ue[Ce+" "+te]||Ue["* "+te],!ae){for(ee in Ue)if(ke=ee.split(" "),ke[1]===te&&(ae=Ue[Ce+" "+ke[0]]||Ue["* "+ke[0]],ae)){ae===!0?ae=Ue[ee]:Ue[ee]!==!0&&(te=ke[0],ot.unshift(ke[1]));break}}if(ae!==!0)if(ae&&D.throws)O=ae(O);else try{O=ae(O)}catch(ft){return{state:"parsererror",error:ae?ft:"No conversion from "+Ce+" to "+te}}}}return{state:"success",data:O}}_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:k0.href,type:"GET",isLocal:bfe.test(k0.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":a4,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(D,O){return O?AE(AE(D,_.ajaxSettings),O):AE(_.ajaxSettings,D)},ajaxPrefilter:i4(r4),ajaxTransport:i4(LE),ajax:function(D,O){typeof D=="object"&&(O=D,D=void 0),O=O||{};var F,K,ee,te,ae,ke,Ce,Ue,ot,ft,Ze=_.ajaxSetup({},O),Et=Ze.context||Ze,Cn=Ze.context&&(Et.nodeType||Et.jquery)?_(Et):_.event,rr=_.Deferred(),Pn=_.Callbacks("once memory"),qa=Ze.statusCode||{},_a={},ul={},cl="canceled",qn={readyState:0,getResponseHeader:function(ar){var ta;if(Ce){if(!te)for(te={};ta=mfe.exec(ee);)te[ta[1].toLowerCase()+" "]=(te[ta[1].toLowerCase()+" "]||[]).concat(ta[2]);ta=te[ar.toLowerCase()+" "]}return ta==null?null:ta.join(", ")},getAllResponseHeaders:function(){return Ce?ee:null},setRequestHeader:function(ar,ta){return Ce==null&&(ar=ul[ar.toLowerCase()]=ul[ar.toLowerCase()]||ar,_a[ar]=ta),this},overrideMimeType:function(ar){return Ce==null&&(Ze.mimeType=ar),this},statusCode:function(ar){var ta;if(ar)if(Ce)qn.always(ar[qn.status]);else for(ta in ar)qa[ta]=[qa[ta],ar[ta]];return this},abort:function(ar){var ta=ar||cl;return F&&F.abort(ta),Qf(0,ta),this}};if(rr.promise(qn),Ze.url=((D||Ze.url||k0.href)+"").replace(wfe,k0.protocol+"//"),Ze.type=O.method||O.type||Ze.method||Ze.type,Ze.dataTypes=(Ze.dataType||"*").toLowerCase().match(ve)||[""],Ze.crossDomain==null){ke=y.createElement("a");try{ke.href=Ze.url,ke.href=ke.href,Ze.crossDomain=OE.protocol+"//"+OE.host!=ke.protocol+"//"+ke.host}catch{Ze.crossDomain=!0}}if(Ze.data&&Ze.processData&&typeof Ze.data!="string"&&(Ze.data=_.param(Ze.data,Ze.traditional)),o4(r4,Ze,O,qn),Ce)return qn;Ue=_.event&&Ze.global,Ue&&_.active++===0&&_.event.trigger("ajaxStart"),Ze.type=Ze.type.toUpperCase(),Ze.hasContent=!Sfe.test(Ze.type),K=Ze.url.replace(gfe,""),Ze.hasContent?Ze.data&&Ze.processData&&(Ze.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ze.data=Ze.data.replace(vfe,"+")):(ft=Ze.url.slice(K.length),Ze.data&&(Ze.processData||typeof Ze.data=="string")&&(K+=(kE.test(K)?"&":"?")+Ze.data,delete Ze.data),Ze.cache===!1&&(K=K.replace(yfe,"$1"),ft=(kE.test(K)?"&":"?")+"_="+J$.guid+++ft),Ze.url=K+ft),Ze.ifModified&&(_.lastModified[K]&&qn.setRequestHeader("If-Modified-Since",_.lastModified[K]),_.etag[K]&&qn.setRequestHeader("If-None-Match",_.etag[K])),(Ze.data&&Ze.hasContent&&Ze.contentType!==!1||O.contentType)&&qn.setRequestHeader("Content-Type",Ze.contentType),qn.setRequestHeader("Accept",Ze.dataTypes[0]&&Ze.accepts[Ze.dataTypes[0]]?Ze.accepts[Ze.dataTypes[0]]+(Ze.dataTypes[0]!=="*"?", "+a4+"; q=0.01":""):Ze.accepts["*"]);for(ot in Ze.headers)qn.setRequestHeader(ot,Ze.headers[ot]);if(Ze.beforeSend&&(Ze.beforeSend.call(Et,qn,Ze)===!1||Ce))return qn.abort();if(cl="abort",Pn.add(Ze.complete),qn.done(Ze.success),qn.fail(Ze.error),F=o4(LE,Ze,O,qn),!F)Qf(-1,"No Transport");else{if(qn.readyState=1,Ue&&Cn.trigger("ajaxSend",[qn,Ze]),Ce)return qn;Ze.async&&Ze.timeout>0&&(ae=e.setTimeout(function(){qn.abort("timeout")},Ze.timeout));try{Ce=!1,F.send(_a,Qf)}catch(ar){if(Ce)throw ar;Qf(-1,ar)}}function Qf(ar,ta,L0,VE){var fl,O0,dl,lc,uc,Lo=ta;Ce||(Ce=!0,ae&&e.clearTimeout(ae),F=void 0,ee=VE||"",qn.readyState=ar>0?4:0,fl=ar>=200&&ar<300||ar===304,L0&&(lc=_fe(Ze,qn,L0)),!fl&&_.inArray("script",Ze.dataTypes)>-1&&_.inArray("json",Ze.dataTypes)<0&&(Ze.converters["text script"]=function(){}),lc=xfe(Ze,lc,qn,fl),fl?(Ze.ifModified&&(uc=qn.getResponseHeader("Last-Modified"),uc&&(_.lastModified[K]=uc),uc=qn.getResponseHeader("etag"),uc&&(_.etag[K]=uc)),ar===204||Ze.type==="HEAD"?Lo="nocontent":ar===304?Lo="notmodified":(Lo=lc.state,O0=lc.data,dl=lc.error,fl=!dl)):(dl=Lo,(ar||!Lo)&&(Lo="error",ar<0&&(ar=0))),qn.status=ar,qn.statusText=(ta||Lo)+"",fl?rr.resolveWith(Et,[O0,Lo,qn]):rr.rejectWith(Et,[qn,Lo,dl]),qn.statusCode(qa),qa=void 0,Ue&&Cn.trigger(fl?"ajaxSuccess":"ajaxError",[qn,Ze,fl?O0:dl]),Pn.fireWith(Et,[qn,Lo]),Ue&&(Cn.trigger("ajaxComplete",[qn,Ze]),--_.active||_.event.trigger("ajaxStop")))}return qn},getJSON:function(D,O,F){return _.get(D,O,F,"json")},getScript:function(D,O){return _.get(D,void 0,O,"script")}}),_.each(["get","post"],function(D,O){_[O]=function(F,K,ee,te){return v(K)&&(te=te||ee,ee=K,K=void 0),_.ajax(_.extend({url:F,type:O,dataType:te,data:K,success:ee},_.isPlainObject(F)&&F))}}),_.ajaxPrefilter(function(D){var O;for(O in D.headers)O.toLowerCase()==="content-type"&&(D.contentType=D.headers[O]||"")}),_._evalUrl=function(D,O,F){return _.ajax({url:D,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(K){_.globalEval(K,O,F)}})},_.fn.extend({wrapAll:function(D){var O;return this[0]&&(v(D)&&(D=D.call(this[0])),O=_(D,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&O.insertBefore(this[0]),O.map(function(){for(var F=this;F.firstElementChild;)F=F.firstElementChild;return F}).append(this)),this},wrapInner:function(D){return v(D)?this.each(function(O){_(this).wrapInner(D.call(this,O))}):this.each(function(){var O=_(this),F=O.contents();F.length?F.wrapAll(D):O.append(D)})},wrap:function(D){var O=v(D);return this.each(function(F){_(this).wrapAll(O?D.call(this,F):D)})},unwrap:function(D){return this.parent(D).not("body").each(function(){_(this).replaceWith(this.childNodes)}),this}}),_.expr.pseudos.hidden=function(D){return!_.expr.pseudos.visible(D)},_.expr.pseudos.visible=function(D){return!!(D.offsetWidth||D.offsetHeight||D.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var Cfe={0:200,1223:204},R0=_.ajaxSettings.xhr();p.cors=!!R0&&"withCredentials"in R0,p.ajax=R0=!!R0,_.ajaxTransport(function(D){var O,F;if(p.cors||R0&&!D.crossDomain)return{send:function(K,ee){var te,ae=D.xhr();if(ae.open(D.type,D.url,D.async,D.username,D.password),D.xhrFields)for(te in D.xhrFields)ae[te]=D.xhrFields[te];D.mimeType&&ae.overrideMimeType&&ae.overrideMimeType(D.mimeType),!D.crossDomain&&!K["X-Requested-With"]&&(K["X-Requested-With"]="XMLHttpRequest");for(te in K)ae.setRequestHeader(te,K[te]);O=function(ke){return function(){O&&(O=F=ae.onload=ae.onerror=ae.onabort=ae.ontimeout=ae.onreadystatechange=null,ke==="abort"?ae.abort():ke==="error"?typeof ae.status!="number"?ee(0,"error"):ee(ae.status,ae.statusText):ee(Cfe[ae.status]||ae.status,ae.statusText,(ae.responseType||"text")!=="text"||typeof ae.responseText!="string"?{binary:ae.response}:{text:ae.responseText},ae.getAllResponseHeaders()))}},ae.onload=O(),F=ae.onerror=ae.ontimeout=O("error"),ae.onabort!==void 0?ae.onabort=F:ae.onreadystatechange=function(){ae.readyState===4&&e.setTimeout(function(){O&&F()})},O=O("abort");try{ae.send(D.hasContent&&D.data||null)}catch(ke){if(O)throw ke}},abort:function(){O&&O()}}}),_.ajaxPrefilter(function(D){D.crossDomain&&(D.contents.script=!1)}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(D){return _.globalEval(D),D}}}),_.ajaxPrefilter("script",function(D){D.cache===void 0&&(D.cache=!1),D.crossDomain&&(D.type="GET")}),_.ajaxTransport("script",function(D){if(D.crossDomain||D.scriptAttrs){var O,F;return{send:function(K,ee){O=_("<script>").attr(D.scriptAttrs||{}).prop({charset:D.scriptCharset,src:D.url}).on("load error",F=function(te){O.remove(),F=null,te&&ee(te.type==="error"?404:200,te.type)}),y.head.appendChild(O[0])},abort:function(){F&&F()}}}});var s4=[],NE=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var D=s4.pop()||_.expando+"_"+J$.guid++;return this[D]=!0,D}}),_.ajaxPrefilter("json jsonp",function(D,O,F){var K,ee,te,ae=D.jsonp!==!1&&(NE.test(D.url)?"url":typeof D.data=="string"&&(D.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&NE.test(D.data)&&"data");if(ae||D.dataTypes[0]==="jsonp")return K=D.jsonpCallback=v(D.jsonpCallback)?D.jsonpCallback():D.jsonpCallback,ae?D[ae]=D[ae].replace(NE,"$1"+K):D.jsonp!==!1&&(D.url+=(kE.test(D.url)?"&":"?")+D.jsonp+"="+K),D.converters["script json"]=function(){return te||_.error(K+" was not called"),te[0]},D.dataTypes[0]="json",ee=e[K],e[K]=function(){te=arguments},F.always(function(){ee===void 0?_(e).removeProp(K):e[K]=ee,D[K]&&(D.jsonpCallback=O.jsonpCallback,s4.push(K)),te&&v(ee)&&ee(te[0]),te=ee=void 0}),"script"}),p.createHTMLDocument=function(){var D=y.implementation.createHTMLDocument("").body;return D.innerHTML="<form></form><form></form>",D.childNodes.length===2}(),_.parseHTML=function(D,O,F){if(typeof D!="string")return[];typeof O=="boolean"&&(F=O,O=!1);var K,ee,te;return O||(p.createHTMLDocument?(O=y.implementation.createHTMLDocument(""),K=O.createElement("base"),K.href=y.location.href,O.head.appendChild(K)):O=y),ee=J.exec(D),te=!F&&[],ee?[O.createElement(ee[1])]:(ee=Ar([D],O,te),te&&te.length&&_(te).remove(),_.merge([],ee.childNodes))},_.fn.load=function(D,O,F){var K,ee,te,ae=this,ke=D.indexOf(" ");return ke>-1&&(K=Xf(D.slice(ke)),D=D.slice(0,ke)),v(O)?(F=O,O=void 0):O&&typeof O=="object"&&(ee="POST"),ae.length>0&&_.ajax({url:D,type:ee||"GET",dataType:"html",data:O}).done(function(Ce){te=arguments,ae.html(K?_("<div>").append(_.parseHTML(Ce)).find(K):Ce)}).always(F&&function(Ce,Ue){ae.each(function(){F.apply(this,te||[Ce.responseText,Ue,Ce])})}),this},_.expr.pseudos.animated=function(D){return _.grep(_.timers,function(O){return D===O.elem}).length},_.offset={setOffset:function(D,O,F){var K,ee,te,ae,ke,Ce,Ue,ot=_.css(D,"position"),ft=_(D),Ze={};ot==="static"&&(D.style.position="relative"),ke=ft.offset(),te=_.css(D,"top"),Ce=_.css(D,"left"),Ue=(ot==="absolute"||ot==="fixed")&&(te+Ce).indexOf("auto")>-1,Ue?(K=ft.position(),ae=K.top,ee=K.left):(ae=parseFloat(te)||0,ee=parseFloat(Ce)||0),v(O)&&(O=O.call(D,F,_.extend({},ke))),O.top!=null&&(Ze.top=O.top-ke.top+ae),O.left!=null&&(Ze.left=O.left-ke.left+ee),"using"in O?O.using.call(D,Ze):ft.css(Ze)}},_.fn.extend({offset:function(D){if(arguments.length)return D===void 0?this:this.each(function(ee){_.offset.setOffset(this,D,ee)});var O,F,K=this[0];if(K)return K.getClientRects().length?(O=K.getBoundingClientRect(),F=K.ownerDocument.defaultView,{top:O.top+F.pageYOffset,left:O.left+F.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var D,O,F,K=this[0],ee={top:0,left:0};if(_.css(K,"position")==="fixed")O=K.getBoundingClientRect();else{for(O=this.offset(),F=K.ownerDocument,D=K.offsetParent||F.documentElement;D&&(D===F.body||D===F.documentElement)&&_.css(D,"position")==="static";)D=D.parentNode;D&&D!==K&&D.nodeType===1&&(ee=_(D).offset(),ee.top+=_.css(D,"borderTopWidth",!0),ee.left+=_.css(D,"borderLeftWidth",!0))}return{top:O.top-ee.top-_.css(K,"marginTop",!0),left:O.left-ee.left-_.css(K,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var D=this.offsetParent;D&&_.css(D,"position")==="static";)D=D.offsetParent;return D||Ie})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(D,O){var F=O==="pageYOffset";_.fn[D]=function(K){return He(this,function(ee,te,ae){var ke;if(g(ee)?ke=ee:ee.nodeType===9&&(ke=ee.defaultView),ae===void 0)return ke?ke[O]:ee[te];ke?ke.scrollTo(F?ke.pageXOffset:ae,F?ae:ke.pageYOffset):ee[te]=ae},D,K,arguments.length)}}),_.each(["top","left"],function(D,O){_.cssHooks[O]=T0(p.pixelPosition,function(F,K){if(K)return K=sc(F,O),ic.test(K)?_(F).position()[O]+"px":K})}),_.each({Height:"height",Width:"width"},function(D,O){_.each({padding:"inner"+D,content:O,"":"outer"+D},function(F,K){_.fn[K]=function(ee,te){var ae=arguments.length&&(F||typeof ee!="boolean"),ke=F||(ee===!0||te===!0?"margin":"border");return He(this,function(Ce,Ue,ot){var ft;return g(Ce)?K.indexOf("outer")===0?Ce["inner"+D]:Ce.document.documentElement["client"+D]:Ce.nodeType===9?(ft=Ce.documentElement,Math.max(Ce.body["scroll"+D],ft["scroll"+D],Ce.body["offset"+D],ft["offset"+D],ft["client"+D])):ot===void 0?_.css(Ce,Ue,ke):_.style(Ce,Ue,ot,ke)},O,ae?ee:void 0,ae)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(D,O){_.fn[O]=function(F){return this.on(O,F)}}),_.fn.extend({bind:function(D,O,F){return this.on(D,null,O,F)},unbind:function(D,O){return this.off(D,null,O)},delegate:function(D,O,F,K){return this.on(O,D,F,K)},undelegate:function(D,O,F){return arguments.length===1?this.off(D,"**"):this.off(O,D||"**",F)},hover:function(D,O){return this.on("mouseenter",D).on("mouseleave",O||D)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(D,O){_.fn[O]=function(F,K){return arguments.length>0?this.on(O,null,F,K):this.trigger(O)}});var Tfe=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(D,O){var F,K,ee;if(typeof O=="string"&&(F=D[O],O=D,D=F),!!v(D))return K=i.call(arguments,2),ee=function(){return D.apply(O||this,K.concat(i.call(arguments)))},ee.guid=D.guid=D.guid||_.guid++,ee},_.holdReady=function(D){D?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=M,_.isFunction=v,_.isWindow=g,_.camelCase=ie,_.type=w,_.now=Date.now,_.isNumeric=function(D){var O=_.type(D);return(O==="number"||O==="string")&&!isNaN(D-parseFloat(D))},_.trim=function(D){return D==null?"":(D+"").replace(Tfe,"$1")};var Efe=e.jQuery,Mfe=e.$;return _.noConflict=function(D){return e.$===_&&(e.$=Mfe),D&&e.jQuery===_&&(e.jQuery=Efe),_},typeof n>"u"&&(e.jQuery=e.$=_),_})})(RQ);var LQ=RQ.exports;const PHe=wi(LQ);/*! WebUploader 0.1.6 */var FHe=LQ,zHe=function(t,e){var n={},r=function(u,c){var f,d,h;if(typeof u=="string")return o(u);for(f=[],d=u.length,h=0;h<d;h++)f.push(o(u[h]));return c.apply(null,f)},a=function(u,c,f){arguments.length===2&&(f=c,c=null),r(c||[],function(){i(u,f,arguments)})},i=function(u,c,f){var d={exports:c},h;typeof c=="function"&&(f.length||(f=[r,d.exports,d]),h=c.apply(null,f),h!==void 0&&(d.exports=h)),n[u]=d.exports},o=function(u){var c=n[u]||t[u];if(!c)throw new Error("`"+u+"` is undefined");return c},s=function(u){var c,f,d,h,p,v;v=function(g){return g&&g.charAt(0).toUpperCase()+g.substr(1)};for(c in n)if(f=u,!!n.hasOwnProperty(c)){for(d=c.split("/"),p=v(d.pop());h=v(d.shift());)f[h]=f[h]||{},f=f[h];f[p]=n[c]}return u},l=function(u){return t.__dollar=u,s(e(t,a,r))};return l(FHe)}(window,function(t,e,n){e("dollar-third",[],function(){var a=t.require,i=t.__dollar||t.jQuery||t.Zepto||a("jquery")||a("zepto");if(!i)throw new Error("jQuery or Zepto not found!");return i}),e("dollar",["dollar-third"],function(a){return a}),e("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(i){return i&&typeof i.then=="function"}}}),e("promise",["promise-third"],function(a){return a}),e("base",["dollar","promise"],function(a,i){var o=function(){},s=Function.call;function l(f){return function(){return s.apply(f,arguments)}}function u(f,d){return function(){return f.apply(d,arguments)}}function c(f){var d;return Object.create?Object.create(f):(d=function(){},d.prototype=f,new d)}return{version:"0.1.6",$:a,Deferred:i.Deferred,isPromise:i.isPromise,when:i.when,browser:function(f){var d={},h=f.match(/WebKit\/([\d.]+)/),p=f.match(/Chrome\/([\d.]+)/)||f.match(/CriOS\/([\d.]+)/),v=f.match(/MSIE\s([\d\.]+)/)||f.match(/(?:trident)(?:.*rv:([\w.]+))?/i),g=f.match(/Firefox\/([\d.]+)/),y=f.match(/Safari\/([\d.]+)/),m=f.match(/OPR\/([\d.]+)/);return h&&(d.webkit=parseFloat(h[1])),p&&(d.chrome=parseFloat(p[1])),v&&(d.ie=parseFloat(v[1])),g&&(d.firefox=parseFloat(g[1])),y&&(d.safari=parseFloat(y[1])),m&&(d.opera=parseFloat(m[1])),d}(navigator.userAgent),os:function(f){var d={},h=f.match(/(?:Android);?[\s\/]+([\d.]+)?/),p=f.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return h&&(d.android=parseFloat(h[1])),p&&(d.ios=parseFloat(p[1].replace(/_/g,"."))),d}(navigator.userAgent),inherits:function(f,d,h){var p;return typeof d=="function"?(p=d,d=null):d&&d.hasOwnProperty("constructor")?p=d.constructor:p=function(){return f.apply(this,arguments)},a.extend(!0,p,f,h||{}),p.__super__=f.prototype,p.prototype=c(f.prototype),d&&a.extend(!0,p.prototype,d),p},noop:o,bindFn:u,log:function(){return t.console?u(console.log,console):o}(),nextTick:function(){return function(f){setTimeout(f,1)}}(),slice:l([].slice),guid:function(){var f=0;return function(d){for(var h=(+new Date).toString(32),p=0;p<5;p++)h+=Math.floor(Math.random()*65535).toString(32);return(d||"wu_")+h+(f++).toString(32)}}(),formatSize:function(f,d,h){var p;for(h=h||["B","K","M","G","TB"];(p=h.shift())&&f>1024;)f=f/1024;return(p==="B"?f:f.toFixed(d||2))+p}}}),e("mediator",["base"],function(a){var i=a.$,o=[].slice,s=/\s+/,l;function u(d,h,p,v){return i.grep(d,function(g){return g&&(!h||g.e===h)&&(!p||g.cb===p||g.cb._cb===p)&&(!v||g.ctx===v)})}function c(d,h,p){i.each((d||"").split(s),function(v,g){p(g,h)})}function f(d,h){for(var p=!1,v=-1,g=d.length,y;++v<g;)if(y=d[v],y.cb.apply(y.ctx2,h)===!1){p=!0;break}return!p}return l={on:function(d,h,p){var v=this,g;return h?(g=this._events||(this._events=[]),c(d,h,function(y,m){var b={e:y};b.cb=m,b.ctx=p,b.ctx2=p||v,b.id=g.length,g.push(b)}),this):this},once:function(d,h,p){var v=this;return h&&c(d,h,function(g,y){var m=function(){return v.off(g,m),y.apply(p||v,arguments)};m._cb=y,v.on(g,m,p)}),v},off:function(d,h,p){var v=this._events;return v?!d&&!h&&!p?(this._events=[],this):(c(d,h,function(g,y){i.each(u(v,g,y,p),function(){delete v[this.id]})}),this):this},trigger:function(d){var h,p,v;return!this._events||!d?this:(h=o.call(arguments,1),p=u(this._events,d),v=u(this._events,"all"),f(p,h)&&f(v,arguments))}},i.extend({installTo:function(d){return i.extend(d,l)}},l)}),e("uploader",["base","mediator"],function(a,i){var o=a.$;function s(l){this.options=o.extend(!0,{},s.options,l),this._init(this.options)}return s.options={},i.installTo(s.prototype),o.each({upload:"start-upload",stop:"stop-upload",getFile:"get-file",getFiles:"get-files",addFile:"add-file",addFiles:"add-file",sort:"sort-files",removeFile:"remove-file",cancelFile:"cancel-file",skipFile:"skip-file",retry:"retry",isInProgress:"is-in-progress",makeThumb:"make-thumb",md5File:"md5-file",getDimension:"get-dimension",addButton:"add-btn",predictRuntimeType:"predict-runtime-type",refresh:"refresh",disable:"disable",enable:"enable",reset:"reset"},function(l,u){s.prototype[l]=function(){return this.request(u,arguments)}}),o.extend(s.prototype,{state:"pending",_init:function(l){var u=this;u.request("init",l,function(){u.state="ready",u.trigger("ready")})},option:function(l,u){var c=this.options;if(arguments.length>1)o.isPlainObject(u)&&o.isPlainObject(c[l])?o.extend(c[l],u):c[l]=u;else return l?c[l]:c},getStats:function(){var l=this.request("get-stats");return l?{successNum:l.numOfSuccess,progressNum:l.numOfProgress,cancelNum:l.numOfCancel,invalidNum:l.numOfInvalid,uploadFailNum:l.numOfUploadFailed,queueNum:l.numOfQueue,interruptNum:l.numofInterrupt}:{}},trigger:function(l){var u=[].slice.call(arguments,1),c=this.options,f="on"+l.substring(0,1).toUpperCase()+l.substring(1);return!(i.trigger.apply(this,arguments)===!1||o.isFunction(c[f])&&c[f].apply(this,u)===!1||o.isFunction(this[f])&&this[f].apply(this,u)===!1||i.trigger.apply(i,[this,l].concat(u))===!1)},destroy:function(){this.request("destroy",arguments),this.off()},request:a.noop}),a.create=s.create=function(l){return new s(l)},a.Uploader=s,s}),e("runtime/runtime",["base","mediator"],function(a,i){var o=a.$,s={},l=function(c){for(var f in c)if(c.hasOwnProperty(f))return f;return null};function u(c){this.options=o.extend({container:document.body},c),this.uid=a.guid("rt_")}return o.extend(u.prototype,{getContainer:function(){var c=this.options,f,d;return this._container?this._container:(f=o(c.container||document.body),d=o(document.createElement("div")),d.attr("id","rt_"+this.uid),d.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),f.append(d),f.addClass("webuploader-container"),this._container=d,this._parent=f,d)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.remove(),this._parent&&this._parent.removeClass("webuploader-container"),this.off()}}),u.orders="html5,flash",u.addRuntime=function(c,f){s[c]=f},u.hasRuntime=function(c){return!!(c?s[c]:l(s))},u.create=function(c,f){var d,h;if(f=f||u.orders,o.each(f.split(/\s*,\s*/g),function(){if(s[this])return d=this,!1}),d=d||l(s),!d)throw new Error("Runtime Error");return h=new s[d](c),h},i.installTo(u.prototype),u}),e("runtime/client",["base","mediator","runtime/runtime"],function(a,i,o){var s;s=function(){var u={};return{add:function(c){u[c.uid]=c},get:function(c,f){var d;if(c)return u[c];for(d in u)if(!(f&&u[d].__standalone))return u[d];return null},remove:function(c){delete u[c.uid]}}}();function l(u,c){var f=a.Deferred(),d;this.uid=a.guid("client_"),this.runtimeReady=function(h){return f.done(h)},this.connectRuntime=function(h,p){if(d)throw new Error("already connected!");return f.done(p),typeof h=="string"&&s.get(h)&&(d=s.get(h)),d=d||s.get(null,c),d?(a.$.extend(d.options,h),d.__promise.then(f.resolve),d.__client++):(d=o.create(h,h.runtimeOrder),d.__promise=f.promise(),d.once("ready",f.resolve),d.init(),s.add(d),d.__client=1),c&&(d.__standalone=c),d},this.getRuntime=function(){return d},this.disconnectRuntime=function(){d&&(d.__client--,d.__client<=0&&(s.remove(d),delete d.__promise,d.destroy()),d=null)},this.exec=function(){if(d){var h=a.slice(arguments);return u&&h.unshift(u),d.exec.apply(this,h)}},this.getRuid=function(){return d&&d.uid},this.destroy=function(h){return function(){h&&h.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}return i.installTo(l.prototype),l}),e("lib/dnd",["base","mediator","runtime/client"],function(a,i,o){var s=a.$;function l(u){u=this.options=s.extend({},l.options,u),u.container=s(u.container),u.container.length&&o.call(this,"DragAndDrop")}return l.options={accept:null,disableGlobalDnd:!1},a.inherits(o,{constructor:l,init:function(){var u=this;u.connectRuntime(u.options,function(){u.exec("init"),u.trigger("ready")})}}),i.installTo(l.prototype),l}),e("widgets/widget",["base","uploader"],function(a,i){var o=a.$,s=i.prototype._init,l=i.prototype.destroy,u={},c=[];function f(h){if(!h)return!1;var p=h.length,v=o.type(h);return h.nodeType===1&&p?!0:v==="array"||v!=="function"&&v!=="string"&&(p===0||typeof p=="number"&&p>0&&p-1 in h)}function d(h){this.owner=h,this.options=h.options}return o.extend(d.prototype,{init:a.noop,invoke:function(h,p){var v=this.responseMap;return!v||!(h in v)||!(v[h]in this)||!o.isFunction(this[v[h]])?u:this[v[h]].apply(this,p)},request:function(){return this.owner.request.apply(this.owner,arguments)}}),o.extend(i.prototype,{_init:function(){var h=this,p=h._widgets=[],v=h.options.disableWidgets||"";return o.each(c,function(g,y){(!v||!~v.indexOf(y._name))&&p.push(new y(h))}),s.apply(h,arguments)},request:function(h,p,v){var g=0,y=this._widgets,m=y&&y.length,b=[],w=[],C,x,_,T;for(p=f(p)?p:[p];g<m;g++)C=y[g],x=C.invoke(h,p),x!==u&&(a.isPromise(x)?w.push(x):b.push(x));return v||w.length?(_=a.when.apply(a,w),T=_.pipe?"pipe":"then",_[T](function(){var M=a.Deferred(),E=arguments;return E.length===1&&(E=E[0]),setTimeout(function(){M.resolve(E)},1),M.promise()})[v?T:"done"](v||a.noop)):b[0]},destroy:function(){l.apply(this,arguments),this._widgets=null}}),i.register=d.register=function(h,p){var v={init:"init",destroy:"destroy",name:"anonymous"},g;return arguments.length===1?(p=h,o.each(p,function(y){if(y[0]==="_"||y==="name"){y==="name"&&(v.name=p.name);return}v[y.replace(/[A-Z]/g,"-$&").toLowerCase()]=y})):v=o.extend(v,h),p.responseMap=v,g=a.inherits(d,p),g._name=v.name,c.push(g),g},i.unRegister=d.unRegister=function(h){if(!(!h||h==="anonymous"))for(var p=c.length;p--;)c[p]._name===h&&c.splice(p,1)},d}),e("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(a,i,o){var s=a.$;return i.options.dnd="",i.register({name:"dnd",init:function(l){if(!(!l.dnd||this.request("predict-runtime-type")!=="html5")){var u=this,c=a.Deferred(),f=s.extend({},{disableGlobalDnd:l.disableGlobalDnd,container:l.dnd,accept:l.accept}),d;return this.dnd=d=new o(f),d.once("ready",c.resolve),d.on("drop",function(h){u.request("add-file",[h])}),d.on("accept",function(h){return u.owner.trigger("dndAccept",h)}),d.init(),c.promise()}},destroy:function(){this.dnd&&this.dnd.destroy()}})}),e("lib/filepaste",["base","mediator","runtime/client"],function(a,i,o){var s=a.$;function l(u){u=this.options=s.extend({},u),u.container=s(u.container||document.body),o.call(this,"FilePaste")}return a.inherits(o,{constructor:l,init:function(){var u=this;u.connectRuntime(u.options,function(){u.exec("init"),u.trigger("ready")})}}),i.installTo(l.prototype),l}),e("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(a,i,o){var s=a.$;return i.register({name:"paste",init:function(l){if(!(!l.paste||this.request("predict-runtime-type")!=="html5")){var u=this,c=a.Deferred(),f=s.extend({},{container:l.paste,accept:l.accept}),d;return this.paste=d=new o(f),d.once("ready",c.resolve),d.on("paste",function(h){u.owner.request("add-file",[h])}),d.init(),c.promise()}},destroy:function(){this.paste&&this.paste.destroy()}})}),e("lib/blob",["base","runtime/client"],function(a,i){function o(s,l){var u=this;u.source=l,u.ruid=s,this.size=l.size||0,!l.type&&this.ext&&~"jpg,jpeg,png,gif,bmp".indexOf(this.ext)?this.type="image/"+(this.ext==="jpg"?"jpeg":this.ext):this.type=l.type||"application/octet-stream",i.call(u,"Blob"),this.uid=l.uid||this.uid,s&&u.connectRuntime(s)}return a.inherits(i,{constructor:o,slice:function(s,l){return this.exec("slice",s,l)},getSource:function(){return this.source}}),o}),e("lib/file",["base","lib/blob"],function(a,i){var o=1,s=/\.([^.]+)$/;function l(u,c){var f;this.name=c.name||"untitled"+o++,f=s.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&c.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(c.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||new Date().toLocaleString(),i.apply(this,arguments)}return a.inherits(i,l)}),e("lib/filepicker",["base","runtime/client","lib/file"],function(a,i,o){var s=a.$;function l(u){if(u=this.options=s.extend({},l.options,u),u.container=s(u.id),!u.container.length)throw new Error("按钮指定错误");u.innerHTML=u.innerHTML||u.label||u.container.html()||"",u.button=s(u.button||document.createElement("div")),u.button.html(u.innerHTML),u.container.html(u.button),i.call(this,"FilePicker",!0)}return l.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file",style:"webuploader-pick"},a.inherits(i,{constructor:l,init:function(){var u=this,c=u.options,f=c.button,d=c.style;d&&f.addClass("webuploader-pick"),u.on("all",function(h){var p;switch(h){case"mouseenter":d&&f.addClass("webuploader-pick-hover");break;case"mouseleave":d&&f.removeClass("webuploader-pick-hover");break;case"change":p=u.exec("getFiles"),u.trigger("select",s.map(p,function(v){return v=new o(u.getRuid(),v),v._refer=c.container,v}),c.container);break}}),u.connectRuntime(c,function(){u.refresh(),u.exec("init",c),u.trigger("ready")}),this._resizeHandler=a.bindFn(this.refresh,this),s(t).on("resize",this._resizeHandler)},refresh:function(){var u=this.getRuntime().getContainer(),c=this.options.button,f=c.outerWidth?c.outerWidth():c.width(),d=c.outerHeight?c.outerHeight():c.height(),h=c.offset();f&&d&&u.css({bottom:"auto",right:"auto",width:f+"px",height:d+"px"}).offset(h)},enable:function(){var u=this.options.button;u.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var u=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),u.addClass("webuploader-pick-disable")},destroy:function(){var u=this.options.button;s(t).off("resize",this._resizeHandler),u.removeClass("webuploader-pick-disable webuploader-pick-hover webuploader-pick")}}),l}),e("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,i,o){var s=a.$;return s.extend(i.options,{pick:null,accept:null}),i.register({name:"picker",init:function(l){return this.pickers=[],l.pick&&this.addBtn(l.pick)},refresh:function(){s.each(this.pickers,function(){this.refresh()})},addBtn:function(l){var u=this,c=u.options,f=c.accept,d=[];if(l)return s.isPlainObject(l)||(l={id:l}),s(l.id).each(function(){var h,p,v;v=a.Deferred(),h=s.extend({},l,{accept:s.isPlainObject(f)?[f]:f,swf:c.swf,runtimeOrder:c.runtimeOrder,id:this}),p=new o(h),p.once("ready",v.resolve),p.on("select",function(g){u.owner.request("add-file",[g])}),p.on("dialogopen",function(){u.owner.trigger("dialogOpen",p.button)}),p.init(),u.pickers.push(p),d.push(v.promise())}),a.when.apply(a,d)},disable:function(){s.each(this.pickers,function(){this.disable()})},enable:function(){s.each(this.pickers,function(){this.enable()})},destroy:function(){s.each(this.pickers,function(){this.destroy()}),this.pickers=null}})}),e("lib/image",["base","runtime/client","lib/blob"],function(a,i,o){var s=a.$;function l(u){this.options=s.extend({},l.options,u),i.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}return l.options={quality:90,crop:!1,preserveHeaders:!1,allowMagnify:!1},a.inherits(i,{constructor:l,info:function(u){return u?(this._info=u,this):this._info},meta:function(u){return u?(this._meta=u,this):this._meta},loadFromBlob:function(u){var c=this,f=u.getRuid();this.connectRuntime(f,function(){c.exec("init",c.options),c.exec("loadFromBlob",u)})},resize:function(){var u=a.slice(arguments);return this.exec.apply(this,["resize"].concat(u))},crop:function(){var u=a.slice(arguments);return this.exec.apply(this,["crop"].concat(u))},getAsDataUrl:function(u){return this.exec("getAsDataUrl",u)},getAsBlob:function(u){var c=this.exec("getAsBlob",u);return new o(this.getRuid(),c)}}),l}),e("widgets/image",["base","uploader","lib/image","widgets/widget"],function(a,i,o){var s=a.$,l;return l=function(u){var c=0,f=[],d=function(){for(var h;f.length&&c<u;)h=f.shift(),c+=h[0],h[1]()};return function(h,p,v){f.push([p,v]),h.once("destroy",function(){c-=p,setTimeout(d,1)}),setTimeout(d,1)}}(5*1024*1024),s.extend(i.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),i.register({name:"image",makeThumb:function(u,c,f,d){var h,p;if(u=this.request("get-file",u),!u.type.match(/^image/)){c(!0);return}h=s.extend({},this.options.thumb),s.isPlainObject(f)&&(h=s.extend(h,f),f=null),f=f||h.width,d=d||h.height,p=new o(h),p.once("load",function(){u._info=u._info||p.info(),u._meta=u._meta||p.meta(),f<=1&&f>0&&(f=u._info.width*f),d<=1&&d>0&&(d=u._info.height*d),p.resize(f,d)}),p.once("complete",function(){c(!1,p.getAsDataUrl(h.type)),p.destroy()}),p.once("error",function(v){c(v||!0),p.destroy()}),l(p,u.source.size,function(){u._info&&p.info(u._info),u._meta&&p.meta(u._meta),p.loadFromBlob(u.source)})},beforeSendFile:function(u){var c=this.options.compress||this.options.resize,f=c&&c.compressSize||0,d=c&&c.noCompressIfLarger||!1,h,p;if(u=this.request("get-file",u),!(!c||!~"image/jpeg,image/jpg".indexOf(u.type)||u.size<f||u._compressed))return c=s.extend({},c),p=a.Deferred(),h=new o(c),p.always(function(){h.destroy(),h=null}),h.once("error",p.reject),h.once("load",function(){var v=c.width,g=c.height;u._info=u._info||h.info(),u._meta=u._meta||h.meta(),v<=1&&v>0&&(v=u._info.width*v),g<=1&&g>0&&(g=u._info.height*g),h.resize(v,g)}),h.once("complete",function(){var v,g;try{v=h.getAsBlob(c.type),g=u.size,(!d||v.size<g)&&(u.source=v,u.size=v.size,u.trigger("resize",v.size,g)),u._compressed=!0,p.resolve()}catch{p.resolve()}}),u._info&&h.info(u._info),u._meta&&h.meta(u._meta),h.loadFromBlob(u.source),p.promise()}})}),e("file",["base","mediator"],function(a,i){var o=a.$,s="WU_FILE_",l=0,u=/\.([^.]+)$/,c={};function f(){return s+l++}function d(h){this.name=h.name||"Untitled",this.size=h.size||0,this.type=h.type||"application/octet-stream",this.lastModifiedDate=h.lastModifiedDate||new Date*1,this.id=f(),this.ext=u.exec(this.name)?RegExp.$1:"",this.statusText="",c[this.id]=d.Status.INITED,this.source=h,this.loaded=0,this.on("error",function(p){this.setStatus(d.Status.ERROR,p)})}return o.extend(d.prototype,{setStatus:function(h,p){var v=c[this.id];typeof p<"u"&&(this.statusText=p),h!==v&&(c[this.id]=h,this.trigger("statuschange",h,v))},getStatus:function(){return c[this.id]},getSource:function(){return this.source},destroy:function(){this.off(),delete c[this.id]}}),i.installTo(d.prototype),d.Status={INITED:"inited",QUEUED:"queued",PROGRESS:"progress",ERROR:"error",COMPLETE:"complete",CANCELLED:"cancelled",INTERRUPT:"interrupt",INVALID:"invalid"},d}),e("queue",["base","mediator","file"],function(a,i,o){var s=a.$,l=o.Status;function u(){this.stats={numOfQueue:0,numOfSuccess:0,numOfCancel:0,numOfProgress:0,numOfUploadFailed:0,numOfInvalid:0,numofDeleted:0,numofInterrupt:0},this._queue=[],this._map={}}return s.extend(u.prototype,{append:function(c){return this._queue.push(c),this._fileAdded(c),this},prepend:function(c){return this._queue.unshift(c),this._fileAdded(c),this},getFile:function(c){return typeof c!="string"?c:this._map[c]},fetch:function(c){var f=this._queue.length,d,h;for(c=c||l.QUEUED,d=0;d<f;d++)if(h=this._queue[d],c===h.getStatus())return h;return null},sort:function(c){typeof c=="function"&&this._queue.sort(c)},getFiles:function(){for(var c=[].slice.call(arguments,0),f=[],d=0,h=this._queue.length,p;d<h;d++)p=this._queue[d],!(c.length&&!~s.inArray(p.getStatus(),c))&&f.push(p);return f},removeFile:function(c){var f=this._map[c.id];f&&(delete this._map[c.id],c.destroy(),this.stats.numofDeleted++)},_fileAdded:function(c){var f=this,d=this._map[c.id];d||(this._map[c.id]=c,c.on("statuschange",function(h,p){f._onFileStatusChange(h,p)}))},_onFileStatusChange:function(c,f){var d=this.stats;switch(f){case l.PROGRESS:d.numOfProgress--;break;case l.QUEUED:d.numOfQueue--;break;case l.ERROR:d.numOfUploadFailed--;break;case l.INVALID:d.numOfInvalid--;break;case l.INTERRUPT:d.numofInterrupt--;break}switch(c){case l.QUEUED:d.numOfQueue++;break;case l.PROGRESS:d.numOfProgress++;break;case l.ERROR:d.numOfUploadFailed++;break;case l.COMPLETE:d.numOfSuccess++;break;case l.CANCELLED:d.numOfCancel++;break;case l.INVALID:d.numOfInvalid++;break;case l.INTERRUPT:d.numofInterrupt++;break}}}),i.installTo(u.prototype),u}),e("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,i,o,s,l,u){var c=a.$,f=/\.\w+$/,d=s.Status;return i.register({name:"queue",init:function(h){var p=this,v,g,y,m,b,w,C;if(c.isPlainObject(h.accept)&&(h.accept=[h.accept]),h.accept){for(b=[],y=0,g=h.accept.length;y<g;y++)m=h.accept[y].extensions,m&&b.push(m);b.length&&(w="\\."+b.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),p.accept=new RegExp(w,"i")}if(p.queue=new o,p.stats=p.queue.stats,this.request("predict-runtime-type")==="html5")return v=a.Deferred(),this.placeholder=C=new u("Placeholder"),C.connectRuntime({runtimeOrder:"html5"},function(){p._ruid=C.getRuid(),v.resolve()}),v.promise()},_wrapFile:function(h){if(!(h instanceof s)){if(!(h instanceof l)){if(!this._ruid)throw new Error("Can't add external files.");h=new l(this._ruid,h)}h=new s(h)}return h},acceptFile:function(h){var p=!h||!h.size||this.accept&&f.exec(h.name)&&!this.accept.test(h.name);return!p},_addFile:function(h){var p=this;if(h=p._wrapFile(h),!!p.owner.trigger("beforeFileQueued",h)){if(!p.acceptFile(h)){p.owner.trigger("error","Q_TYPE_DENIED",h);return}return p.queue.append(h),p.owner.trigger("fileQueued",h),h}},getFile:function(h){return this.queue.getFile(h)},addFile:function(h){var p=this;h.length||(h=[h]),h=c.map(h,function(v){return p._addFile(v)}),h.length&&(p.owner.trigger("filesQueued",h),p.options.auto&&setTimeout(function(){p.request("start-upload")},20))},getStats:function(){return this.stats},removeFile:function(h,p){var v=this;h=h.id?h:v.queue.getFile(h),this.request("cancel-file",h),p&&this.queue.removeFile(h)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(h,p){var v=this,g,y,m;if(h){h=h.id?h:v.queue.getFile(h),h.setStatus(d.QUEUED),p||v.request("start-upload");return}for(g=v.queue.getFiles(d.ERROR),y=0,m=g.length;y<m;y++)h=g[y],h.setStatus(d.QUEUED);v.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.owner.trigger("reset"),this.queue=new o,this.stats=this.queue.stats},destroy:function(){this.reset(),this.placeholder&&this.placeholder.destroy()}})}),e("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,i){return a.support=function(){return i.hasRuntime.apply(i,arguments)},a.register({name:"runtime",init:function(){if(!this.predictRuntimeType())throw Error("Runtime Error")},predictRuntimeType:function(){var o=this.options.runtimeOrder||i.orders,s=this.type,l,u;if(!s){for(o=o.split(/\s*,\s*/g),l=0,u=o.length;l<u;l++)if(i.hasRuntime(o[l])){this.type=s=o[l];break}}return s}})}),e("lib/transport",["base","runtime/client","mediator"],function(a,i,o){var s=a.$;function l(u){var c=this;u=c.options=s.extend(!0,{},l.options,u||{}),i.call(this,"Transport"),this._blob=null,this._formData=u.formData||{},this._headers=u.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}return l.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:2*60*1e3,formData:{},headers:{},sendAsBinary:!1},s.extend(l.prototype,{appendBlob:function(u,c,f){var d=this,h=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(c.ruid,function(){d.exec("init")}),d._blob=c,h.fileVal=u||h.fileVal,h.filename=f||h.filename},append:function(u,c){typeof u=="object"?s.extend(this._formData,u):this._formData[u]=c},setRequestHeader:function(u,c){typeof u=="object"?s.extend(this._headers,u):this._headers[u]=c},send:function(u){this.exec("send",u),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var u=this,c=u.options.timeout;c&&(clearTimeout(u._timer),u._timer=setTimeout(function(){u.abort(),u.trigger("error","timeout")},c))}}),o.installTo(l.prototype),l}),e("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,i,o,s){var l=a.$,u=a.isPromise,c=o.Status;l.extend(i.options,{prepareNextFile:!1,chunked:!1,chunkSize:5*1024*1024,chunkRetry:2,threads:3,formData:{}});function f(d,h){var p=[],v=d.source,g=v.size,y=h?Math.ceil(g/h):1,m=0,b=0,w,C;for(C={file:d,has:function(){return!!p.length},shift:function(){return p.shift()},unshift:function(x){p.unshift(x)}};b<y;)w=Math.min(h,g-m),p.push({file:d,start:m,end:h?m+w:g,total:g,chunks:y,chunk:b++,cuted:C}),m+=w;return d.blocks=p.concat(),d.remaning=p.length,C}i.register({name:"upload",init:function(){var d=this.owner,h=this;this.runing=!1,this.progress=!1,d.on("startUpload",function(){h.progress=!0}).on("uploadFinished",function(){h.progress=!1}),this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),d.on("uploadComplete",function(p){p.blocks&&l.each(p.blocks,function(v,g){g.transport&&(g.transport.abort(),g.transport.destroy()),delete g.transport}),delete p.blocks,delete p.remaning})},reset:function(){this.request("stop-upload",!0),this.runing=!1,this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this._trigged=!1,this._promise=null},startUpload:function(d){var h=this;if(l.each(h.request("get-files",c.INVALID),function(){h.request("remove-file",this)}),d?(d=d.id?d:h.request("get-file",d),d.getStatus()===c.INTERRUPT?(d.setStatus(c.QUEUED),l.each(h.pool,function(v,g){g.file===d&&(g.transport&&g.transport.send(),d.setStatus(c.PROGRESS))})):d.getStatus()!==c.PROGRESS&&d.setStatus(c.QUEUED)):l.each(h.request("get-files",[c.INITED]),function(){this.setStatus(c.QUEUED)}),h.runing)return a.nextTick(h.__tick);h.runing=!0;var p=[];d||l.each(h.pool,function(v,g){var y=g.file;y.getStatus()===c.INTERRUPT&&(h._trigged=!1,p.push(y),g.transport&&g.transport.send())}),l.each(p,function(){this.setStatus(c.PROGRESS)}),d||l.each(h.request("get-files",c.INTERRUPT),function(){this.setStatus(c.PROGRESS)}),h._trigged=!1,a.nextTick(h.__tick),h.owner.trigger("startUpload")},stopUpload:function(d,h){var p=this,v;if(d===!0&&(h=d,d=null),p.runing!==!1){if(d)return d=d.id?d:p.request("get-file",d),d.getStatus()!==c.PROGRESS&&d.getStatus()!==c.QUEUED?void 0:(d.setStatus(c.INTERRUPT),l.each(p.pool,function(g,y){if(y.file===d)return v=y,!1}),v.transport&&v.transport.abort(),h&&(p._putback(v),p._popBlock(v)),a.nextTick(p.__tick));p.runing=!1,this._promise&&this._promise.file&&this._promise.file.setStatus(c.INTERRUPT),h&&l.each(p.pool,function(g,y){y.transport&&y.transport.abort(),y.file.setStatus(c.INTERRUPT)}),p.owner.trigger("stopUpload")}},cancelFile:function(d){d=d.id?d:this.request("get-file",d),d.blocks&&l.each(d.blocks,function(h,p){var v=p.transport;v&&(v.abort(),v.destroy(),delete p.transport)}),d.setStatus(c.CANCELLED),this.owner.trigger("fileDequeued",d)},isInProgress:function(){return!!this.progress},_getStats:function(){return this.request("get-stats")},skipFile:function(d,h){d=d.id?d:this.request("get-file",d),d.setStatus(h||c.COMPLETE),d.skipped=!0,d.blocks&&l.each(d.blocks,function(p,v){var g=v.transport;g&&(g.abort(),g.destroy(),delete v.transport)}),this.owner.trigger("uploadSkip",d)},_tick:function(){var d=this,h=d.options,p,v;if(d._promise)return d._promise.always(d.__tick);d.pool.length<h.threads&&(v=d._nextBlock())?(d._trigged=!1,p=function(g){d._promise=null,g&&g.file&&d._startSend(g),a.nextTick(d.__tick)},d._promise=u(v)?v.always(p):p(v)):!d.remaning&&!d._getStats().numOfQueue&&!d._getStats().numofInterrupt&&(d.runing=!1,d._trigged||a.nextTick(function(){d.owner.trigger("uploadFinished")}),d._trigged=!0)},_putback:function(d){var h;d.cuted.unshift(d),h=this.stack.indexOf(d.cuted),~h||this.stack.unshift(d.cuted)},_getStack:function(){for(var d=0,h;h=this.stack[d++];){if(h.has()&&h.file.getStatus()===c.PROGRESS)return h;(!h.has()||h.file.getStatus()!==c.PROGRESS&&h.file.getStatus()!==c.INTERRUPT)&&this.stack.splice(--d,1)}return null},_nextBlock:function(){var d=this,h=d.options,p,v,g,y;if(p=this._getStack())return h.prepareNextFile&&!d.pending.length&&d._prepareNextFile(),p.shift();if(d.runing)return!d.pending.length&&d._getStats().numOfQueue&&d._prepareNextFile(),v=d.pending.shift(),g=function(m){return m?(p=f(m,h.chunked?h.chunkSize:0),d.stack.push(p),p.shift()):null},u(v)?(y=v.file,v=v[v.pipe?"pipe":"then"](g),v.file=y,v):g(v)},_prepareNextFile:function(){var d=this,h=d.request("fetch-file"),p=d.pending,v;h&&(v=d.request("before-send-file",h,function(){return h.getStatus()===c.PROGRESS||h.getStatus()===c.INTERRUPT?h:d._finishFile(h)}),d.owner.trigger("uploadStart",h),h.setStatus(c.PROGRESS),v.file=h,v.done(function(){var g=l.inArray(v,p);~g&&p.splice(g,1,h)}),v.fail(function(g){h.setStatus(c.ERROR,g),d.owner.trigger("uploadError",h,g),d.owner.trigger("uploadComplete",h)}),p.push(v))},_popBlock:function(d){var h=l.inArray(d,this.pool);this.pool.splice(h,1),d.file.remaning--,this.remaning--},_startSend:function(d){var h=this,p=d.file,v;if(p.getStatus()!==c.PROGRESS){p.getStatus()===c.INTERRUPT&&h._putback(d);return}h.pool.push(d),h.remaning++,d.blob=d.chunks===1?p.source:p.source.slice(d.start,d.end),v=h.request("before-send",d,function(){p.getStatus()===c.PROGRESS?h._doSend(d):(h._popBlock(d),a.nextTick(h.__tick))}),v.fail(function(){p.remaning===1?h._finishFile(p).always(function(){d.percentage=1,h._popBlock(d),h.owner.trigger("uploadComplete",p),a.nextTick(h.__tick)}):(d.percentage=1,h.updateFileProgress(p),h._popBlock(d),a.nextTick(h.__tick))})},_doSend:function(d){var h=this,p=h.owner,v=h.options,g=d.file,y=new s(v),m=l.extend({},v.formData),b=l.extend({},v.headers),w,C;d.transport=y,y.on("destroy",function(){delete d.transport,h._popBlock(d),a.nextTick(h.__tick)}),y.on("progress",function(x){d.percentage=x,h.updateFileProgress(g)}),w=function(x){var _;return C=y.getResponseAsJson()||{},C._raw=y.getResponse(),_=function(T){x=T},p.trigger("uploadAccept",d,C,_)||(x=x||"server"),x},y.on("error",function(x,_){d.retried=d.retried||0,d.chunks>1&&~"http,abort".indexOf(x)&&d.retried<v.chunkRetry?(d.retried++,y.send()):(!_&&x==="server"&&(x=w(x)),g.setStatus(c.ERROR,x),p.trigger("uploadError",g,x),p.trigger("uploadComplete",g))}),y.on("load",function(){var x;if(x=w()){y.trigger("error",x,!0);return}g.remaning===1?h._finishFile(g,C):y.destroy()}),m=l.extend(m,{id:g.id,name:g.name,type:g.type,lastModifiedDate:g.lastModifiedDate,size:g.size}),d.chunks>1&&l.extend(m,{chunks:d.chunks,chunk:d.chunk}),p.trigger("uploadBeforeSend",d,m,b),y.appendBlob(v.fileVal,d.blob,g.name),y.append(m),y.setRequestHeader(b),y.send()},_finishFile:function(d,h,p){var v=this.owner;return v.request("after-send-file",arguments,function(){d.setStatus(c.COMPLETE),v.trigger("uploadSuccess",d,h,p)}).fail(function(g){d.getStatus()===c.PROGRESS&&d.setStatus(c.ERROR,g),v.trigger("uploadError",d,g)}).always(function(){v.trigger("uploadComplete",d)})},updateFileProgress:function(d){var h=0,p=0;d.blocks&&(l.each(d.blocks,function(v,g){p+=(g.percentage||0)*(g.end-g.start)}),h=p/d.size,this.owner.trigger("uploadProgress",d,h||0))}})}),e("widgets/validator",["base","uploader","file","widgets/widget"],function(a,i,o){var s=a.$,l={},u;return u={addValidator:function(c,f){l[c]=f},removeValidator:function(c){delete l[c]}},i.register({name:"validator",init:function(){var c=this;a.nextTick(function(){s.each(l,function(){this.call(c.owner)})})}}),u.addValidator("fileNumLimit",function(){var c=this,f=c.options,d=0,h=parseInt(f.fileNumLimit,10),p=!0;h&&(c.on("beforeFileQueued",function(v){return d>=h&&p&&(p=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",h,v),setTimeout(function(){p=!0},1)),!(d>=h)}),c.on("fileQueued",function(){d++}),c.on("fileDequeued",function(){d--}),c.on("reset",function(){d=0}))}),u.addValidator("fileSizeLimit",function(){var c=this,f=c.options,d=0,h=parseInt(f.fileSizeLimit,10),p=!0;h&&(c.on("beforeFileQueued",function(v){var g=d+v.size>h;return g&&p&&(p=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",h,v),setTimeout(function(){p=!0},1)),!g}),c.on("fileQueued",function(v){d+=v.size}),c.on("fileDequeued",function(v){d-=v.size}),c.on("reset",function(){d=0}))}),u.addValidator("fileSingleSizeLimit",function(){var c=this,f=c.options,d=f.fileSingleSizeLimit;d&&c.on("beforeFileQueued",function(h){if(h.size>d)return h.setStatus(o.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",d,h),!1})}),u.addValidator("duplicate",function(){var c=this,f=c.options,d={};if(f.duplicate)return;function h(p){for(var v=0,g=0,y=p.length,m;g<y;g++)m=p.charCodeAt(g),v=m+(v<<6)+(v<<16)-v;return v}c.on("beforeFileQueued",function(p){var v=p.__hash||(p.__hash=h(p.name+p.size+p.lastModifiedDate));if(d[v])return this.trigger("error","F_DUPLICATE",p),!1}),c.on("fileQueued",function(p){var v=p.__hash;v&&(d[v]=!0)}),c.on("fileDequeued",function(p){var v=p.__hash;v&&delete d[v]}),c.on("reset",function(){d={}})}),u}),e("lib/md5",["runtime/client","mediator"],function(a,i){function o(){a.call(this,"Md5")}return i.installTo(o.prototype),o.prototype.loadFromBlob=function(s){var l=this;l.getRuid()&&l.disconnectRuntime(),l.connectRuntime(s.ruid,function(){l.exec("init"),l.exec("loadFromBlob",s)})},o.prototype.getResult=function(){return this.exec("getResult")},o}),e("widgets/md5",["base","uploader","lib/md5","lib/blob","widgets/widget"],function(a,i,o,s){return i.register({name:"md5",md5File:function(l,u,c){var f=new o,d=a.Deferred(),h=l instanceof s?l:this.request("get-file",l).source;return f.on("progress load",function(p){p=p||{},d.notify(p.total?p.loaded/p.total:1)}),f.on("complete",function(){d.resolve(f.getResult())}),f.on("error",function(p){d.reject(p)}),arguments.length>1&&(u=u||0,c=c||0,u<0&&(u=h.size+u),c<0&&(c=h.size+c),c=Math.min(c,h.size),h=h.slice(u,c)),f.loadFromBlob(h),d.promise()}})}),e("runtime/compbase",[],function(){function a(i,o){this.owner=i,this.options=i.options,this.getRuntime=function(){return o},this.getRuid=function(){return o.uid},this.trigger=function(){return i.trigger.apply(i,arguments)}}return a}),e("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(a,i,o){var s="html5",l={};function u(){var c={},f=this,d=this.destroy;i.apply(f,arguments),f.type=s,f.exec=function(h,p){var v=this,g=v.uid,y=a.slice(arguments,2),m;if(l[h]&&(m=c[g]=c[g]||new l[h](v,f),m[p]))return m[p].apply(m,y)},f.destroy=function(){return d&&d.apply(this,arguments)}}return a.inherits(i,{constructor:u,init:function(){var c=this;setTimeout(function(){c.trigger("ready")},1)}}),u.register=function(c,f){var d=l[c]=a.inherits(o,f);return d},t.Blob&&t.FileReader&&t.DataView&&i.addRuntime(s,u),u}),e("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,i){return a.register("Blob",{slice:function(o,s){var l=this.owner.source,u=l.slice||l.webkitSlice||l.mozSlice;return l=u.call(l,o,s),new i(this.getRuid(),l)}})}),e("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(a,i,o){var s=a.$,l="webuploader-dnd-";return i.register("DragAndDrop",{init:function(){var u=this.elem=this.options.container;this.dragEnterHandler=a.bindFn(this._dragEnterHandler,this),this.dragOverHandler=a.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=a.bindFn(this._dragLeaveHandler,this),this.dropHandler=a.bindFn(this._dropHandler,this),this.dndOver=!1,u.on("dragenter",this.dragEnterHandler),u.on("dragover",this.dragOverHandler),u.on("dragleave",this.dragLeaveHandler),u.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(s(document).on("dragover",this.dragOverHandler),s(document).on("drop",this.dropHandler))},_dragEnterHandler:function(u){var c=this,f=c._denied||!1,d;return u=u.originalEvent||u,c.dndOver||(c.dndOver=!0,d=u.dataTransfer.items,d&&d.length&&(c._denied=f=!c.trigger("accept",d)),c.elem.addClass(l+"over"),c.elem[f?"addClass":"removeClass"](l+"denied")),u.dataTransfer.dropEffect=f?"none":"copy",!1},_dragOverHandler:function(u){var c=this.elem.parent().get(0);return c&&!s.contains(c,u.currentTarget)||(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,u)),!1},_dragLeaveHandler:function(){var u=this,c;return c=function(){u.dndOver=!1,u.elem.removeClass(l+"over "+l+"denied")},clearTimeout(u._leaveTimer),u._leaveTimer=setTimeout(c,100),!1},_dropHandler:function(u){var c=this,f=c.getRuid(),d=c.elem.parent().get(0),h,p;if(d&&!s.contains(d,u.currentTarget))return!1;u=u.originalEvent||u,h=u.dataTransfer;try{p=h.getData("text/html")}catch{}if(c.dndOver=!1,c.elem.removeClass(l+"over"),!p)return c._getTansferFiles(h,function(v){c.trigger("drop",s.map(v,function(g){return new o(f,g)}))}),!1},_getTansferFiles:function(u,c){var f=[],d=[],h,p,v,g,y,m,b;for(h=u.items,p=u.files,b=!!(h&&h[0].webkitGetAsEntry),y=0,m=p.length;y<m;y++)v=p[y],g=h&&h[y],b&&g.webkitGetAsEntry().isDirectory?d.push(this._traverseDirectoryTree(g.webkitGetAsEntry(),f)):f.push(v);a.when.apply(a,d).done(function(){f.length&&c(f)})},_traverseDirectoryTree:function(u,c){var f=a.Deferred(),d=this;return u.isFile?u.file(function(h){c.push(h),f.resolve()}):u.isDirectory&&u.createReader().readEntries(function(h){var p=h.length,v=[],g=[],y;for(y=0;y<p;y++)v.push(d._traverseDirectoryTree(h[y],g));a.when.apply(a,v).then(function(){c.push.apply(c,g),f.resolve()},f.reject)}),f.promise()},destroy:function(){var u=this.elem;u&&(u.off("dragenter",this.dragEnterHandler),u.off("dragover",this.dragOverHandler),u.off("dragleave",this.dragLeaveHandler),u.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(s(document).off("dragover",this.dragOverHandler),s(document).off("drop",this.dropHandler)))}})}),e("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(a,i,o){return i.register("FilePaste",{init:function(){var s=this.options,l=this.elem=s.container,u=".*",c,f,d,h;if(s.accept){for(c=[],f=0,d=s.accept.length;f<d;f++)h=s.accept[f].mimeTypes,h&&c.push(h);c.length&&(u=c.join(","),u=u.replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=u=new RegExp(u,"i"),this.hander=a.bindFn(this._pasteHander,this),l.on("paste",this.hander)},_pasteHander:function(s){var l=[],u=this.getRuid(),c,f,d,h,p;for(s=s.originalEvent||s,c=s.clipboardData.items,h=0,p=c.length;h<p;h++)f=c[h],!(f.kind!=="file"||!(d=f.getAsFile()))&&l.push(new o(u,d));l.length&&(s.preventDefault(),s.stopPropagation(),this.trigger("paste",l))},destroy:function(){this.elem.off("paste",this.hander)}})}),e("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(a,i){var o=a.$;return i.register("FilePicker",{init:function(){var s=this.getRuntime().getContainer(),l=this,u=l.owner,c=l.options,f=this.label=o(document.createElement("label")),d=this.input=o(document.createElement("input")),h,p,v,g;if(d.attr("type","file"),d.attr("capture","camera"),d.attr("name",c.name),d.addClass("webuploader-element-invisible"),f.on("click",function(m){d.trigger("click"),m.stopPropagation(),u.trigger("dialogopen")}),f.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),c.multiple&&d.attr("multiple","multiple"),c.accept&&c.accept.length>0){for(h=[],p=0,v=c.accept.length;p<v;p++)h.push(c.accept[p].mimeTypes);d.attr("accept",h.join(","))}s.append(d),s.append(f),g=function(m){u.trigger(m.type)};var y=function m(b,w){var C;l.files=w.target.files,C=b.cloneNode(!0),C.value=null,b.parentNode.replaceChild(C,b),d.off(),d=o(C).on("change",function(x){m(this,x)}).on("mouseenter mouseleave",g),u.trigger("change")};d.on("change",function(m){y(this,m)}),f.on("mouseenter mouseleave",g)},getFiles:function(){return this.files},destroy:function(){this.input.off(),this.label.off()}})}),e("runtime/html5/util",["base"],function(a){var i=t.createObjectURL&&t||t.URL&&URL.revokeObjectURL&&URL||t.webkitURL,o=a.noop,s=o;return i&&(o=function(){return i.createObjectURL.apply(i,arguments)},s=function(){return i.revokeObjectURL.apply(i,arguments)}),{createObjectURL:o,revokeObjectURL:s,dataURL2Blob:function(l){var u,c,f,d,h,p;for(p=l.split(","),~p[0].indexOf("base64")?u=atob(p[1]):u=decodeURIComponent(p[1]),f=new ArrayBuffer(u.length),c=new Uint8Array(f),d=0;d<u.length;d++)c[d]=u.charCodeAt(d);return h=p[0].split(":")[1].split(";")[0],this.arrayBufferToBlob(f,h)},dataURL2ArrayBuffer:function(l){var u,c,f,d;for(d=l.split(","),~d[0].indexOf("base64")?u=atob(d[1]):u=decodeURIComponent(d[1]),c=new Uint8Array(u.length),f=0;f<u.length;f++)c[f]=u.charCodeAt(f);return c.buffer},arrayBufferToBlob:function(l,u){var c=t.BlobBuilder||t.WebKitBlobBuilder,f;return c?(f=new c,f.append(l),f.getBlob(u)):new Blob([l],u?{type:u}:{})},canvasToDataUrl:function(l,u,c){return l.toDataURL(u,c/100)},parseMeta:function(l,u){u(!1,{})},updateImageHead:function(l){return l}}}),e("runtime/html5/imagemeta",["runtime/html5/util"],function(a){var i;return i={parsers:{65505:[]},maxMetaDataSize:262144,parse:function(o,s){var l=this,u=new FileReader;u.onload=function(){s(!1,l._parse(this.result)),u=u.onload=u.onerror=null},u.onerror=function(c){s(c.message),u=u.onload=u.onerror=null},o=o.slice(0,l.maxMetaDataSize),u.readAsArrayBuffer(o.getSource())},_parse:function(o,s){if(!(o.byteLength<6)){var l=new DataView(o),u=2,c=l.byteLength-4,f=u,d={},h,p,v,g;if(l.getUint16(0)===65496){for(;u<c&&(h=l.getUint16(u),h>=65504&&h<=65519||h===65534);){if(p=l.getUint16(u+2)+2,u+p>l.byteLength)break;if(v=i.parsers[h],!s&&v)for(g=0;g<v.length;g+=1)v[g].call(i,l,u,p,d);u+=p,f=u}f>6&&(o.slice?d.imageHead=o.slice(2,f):d.imageHead=new Uint8Array(o).subarray(2,f))}return d}},updateImageHead:function(o,s){var l=this._parse(o,!0),u,c,f;return f=2,l.imageHead&&(f=2+l.imageHead.byteLength),o.slice?c=o.slice(f):c=new Uint8Array(o).subarray(f),u=new Uint8Array(s.byteLength+2+c.byteLength),u[0]=255,u[1]=216,u.set(new Uint8Array(s),2),u.set(new Uint8Array(c),s.byteLength+2),u.buffer}},a.parseMeta=function(){return i.parse.apply(i,arguments)},a.updateImageHead=function(){return i.updateImageHead.apply(i,arguments)},i}),e("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(a,i){var o={};return o.ExifMap=function(){return this},o.ExifMap.prototype.map={Orientation:274},o.ExifMap.prototype.get=function(s){return this[s]||this[this.map[s]]},o.exifTagTypes={1:{getValue:function(s,l){return s.getUint8(l)},size:1},2:{getValue:function(s,l){return String.fromCharCode(s.getUint8(l))},size:1,ascii:!0},3:{getValue:function(s,l,u){return s.getUint16(l,u)},size:2},4:{getValue:function(s,l,u){return s.getUint32(l,u)},size:4},5:{getValue:function(s,l,u){return s.getUint32(l,u)/s.getUint32(l+4,u)},size:8},9:{getValue:function(s,l,u){return s.getInt32(l,u)},size:4},10:{getValue:function(s,l,u){return s.getInt32(l,u)/s.getInt32(l+4,u)},size:8}},o.exifTagTypes[7]=o.exifTagTypes[1],o.getExifValue=function(s,l,u,c,f,d){var h=o.exifTagTypes[c],p,v,g,y,m,b;if(!h){a.log("Invalid Exif data: Invalid tag type.");return}if(p=h.size*f,v=p>4?l+s.getUint32(u+8,d):u+8,v+p>s.byteLength){a.log("Invalid Exif data: Invalid data offset.");return}if(f===1)return h.getValue(s,v,d);for(g=[],y=0;y<f;y+=1)g[y]=h.getValue(s,v+y*h.size,d);if(h.ascii){for(m="",y=0;y<g.length&&(b=g[y],b!=="\0");y+=1)m+=b;return m}return g},o.parseExifTag=function(s,l,u,c,f){var d=s.getUint16(u,c);f.exif[d]=o.getExifValue(s,l,u,s.getUint16(u+2,c),s.getUint32(u+4,c),c)},o.parseExifTags=function(s,l,u,c,f){var d,h,p;if(u+6>s.byteLength){a.log("Invalid Exif data: Invalid directory offset.");return}if(d=s.getUint16(u,c),h=u+2+12*d,h+4>s.byteLength){a.log("Invalid Exif data: Invalid directory size.");return}for(p=0;p<d;p+=1)this.parseExifTag(s,l,u+2+12*p,c,f);return s.getUint32(h,c)},o.parseExifData=function(s,l,u,c){var f=l+10,d,h;if(s.getUint32(l+4)===1165519206){if(f+8>s.byteLength){a.log("Invalid Exif data: Invalid segment size.");return}if(s.getUint16(l+8)!==0){a.log("Invalid Exif data: Missing byte alignment offset.");return}switch(s.getUint16(f)){case 18761:d=!0;break;case 19789:d=!1;break;default:a.log("Invalid Exif data: Invalid byte alignment marker.");return}if(s.getUint16(f+2,d)!==42){a.log("Invalid Exif data: Missing TIFF marker.");return}h=s.getUint32(f+4,d),c.exif=new o.ExifMap,h=o.parseExifTags(s,f,f+h,d,c)}},i.parsers[65505].push(o.parseExifData),o}),e("runtime/html5/jpegencoder",[],function(a,i,o){function s(l){var u=Math.floor,c=new Array(64),f=new Array(64),d=new Array(64),h=new Array(64),p,v,g,y,m=new Array(65535),b=new Array(65535),w=new Array(64),C=new Array(64),x=[],_=0,T=7,M=new Array(64),E=new Array(64),k=new Array(64),R=new Array(256),L=new Array(2048),A,V=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],G=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],$=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],P=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Y=[0,1,2,3,4,5,6,7,8,9,10,11],J=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],re=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function oe(ie){for(var Re=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],We=0;We<64;We++){var me=u((Re[We]*ie+50)/100);me<1?me=1:me>255&&(me=255),c[V[We]]=me}for(var Ye=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ht=0;ht<64;ht++){var Ct=u((Ye[ht]*ie+50)/100);Ct<1?Ct=1:Ct>255&&(Ct=255),f[V[ht]]=Ct}for(var Tt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],it=0,Me=0;Me<8;Me++)for(var ge=0;ge<8;ge++)d[it]=1/(c[V[it]]*Tt[Me]*Tt[ge]*8),h[it]=1/(f[V[it]]*Tt[Me]*Tt[ge]*8),it++}function ue(ie,Re){for(var We=0,me=0,Ye=new Array,ht=1;ht<=16;ht++){for(var Ct=1;Ct<=ie[ht];Ct++)Ye[Re[me]]=[],Ye[Re[me]][0]=We,Ye[Re[me]][1]=ht,me++,We++;We*=2}return Ye}function le(){p=ue(G,I),v=ue(P,Y),g=ue($,N),y=ue(J,re)}function fe(){for(var ie=1,Re=2,We=1;We<=15;We++){for(var me=ie;me<Re;me++)b[32767+me]=We,m[32767+me]=[],m[32767+me][1]=We,m[32767+me][0]=me;for(var Ye=-(Re-1);Ye<=-ie;Ye++)b[32767+Ye]=We,m[32767+Ye]=[],m[32767+Ye][1]=We,m[32767+Ye][0]=Re-1+Ye;ie<<=1,Re<<=1}}function se(){for(var ie=0;ie<256;ie++)L[ie]=19595*ie,L[ie+256>>0]=38470*ie,L[ie+512>>0]=7471*ie+32768,L[ie+768>>0]=-11059*ie,L[ie+1024>>0]=-21709*ie,L[ie+1280>>0]=32768*ie+8421375,L[ie+1536>>0]=-27439*ie,L[ie+1792>>0]=-5329*ie}function _e(ie){for(var Re=ie[0],We=ie[1]-1;We>=0;)Re&1<<We&&(_|=1<<T),We--,T--,T<0&&(_==255?(ve(255),ve(0)):ve(_),T=7,_=0)}function ve(ie){x.push(R[ie])}function he(ie){ve(ie>>8&255),ve(ie&255)}function q(ie,Re){var We,me,Ye,ht,Ct,Tt,it,Me,ge=0,be,Ie=8,de=64;for(be=0;be<Ie;++be){We=ie[ge],me=ie[ge+1],Ye=ie[ge+2],ht=ie[ge+3],Ct=ie[ge+4],Tt=ie[ge+5],it=ie[ge+6],Me=ie[ge+7];var rt=We+Me,Fe=We-Me,Bt=me+it,Yn=me-it,$n=Ye+Tt,dr=Ye-Tt,_r=ht+Ct,Pe=ht-Ct,st=rt+_r,Ee=rt-_r,nt=Bt+$n,jt=Bt-$n;ie[ge]=st+nt,ie[ge+4]=st-nt;var gn=(jt+Ee)*.707106781;ie[ge+2]=Ee+gn,ie[ge+6]=Ee-gn,st=Pe+dr,nt=dr+Yn,jt=Yn+Fe;var Ar=(st-jt)*.382683433,Nr=.5411961*st+Ar,Vr=1.306562965*jt+Ar,Br=nt*.707106781,Xi=Fe+Br,Kf=Fe-Br;ie[ge+5]=Kf+Nr,ie[ge+3]=Kf-Nr,ie[ge+1]=Xi+Vr,ie[ge+7]=Xi-Vr,ge+=8}for(ge=0,be=0;be<Ie;++be){We=ie[ge],me=ie[ge+8],Ye=ie[ge+16],ht=ie[ge+24],Ct=ie[ge+32],Tt=ie[ge+40],it=ie[ge+48],Me=ie[ge+56];var eS=We+Me,w0=We-Me,tS=me+it,_0=me-it,nS=Ye+Tt,rS=Ye-Tt,x0=ht+Ct,CE=ht-Ct,Ro=eS+x0,_p=eS-x0,ic=tS+nS,oc=tS-nS;ie[ge]=Ro+ic,ie[ge+32]=Ro-ic;var Yf=(oc+_p)*.707106781;ie[ge+16]=_p+Yf,ie[ge+48]=_p-Yf,Ro=CE+rS,ic=rS+_0,oc=_0+w0;var C0=(Ro-oc)*.382683433,aS=.5411961*Ro+C0,sc=1.306562965*oc+C0,T0=ic*.707106781,E0=w0+T0,M0=w0-T0;ie[ge+40]=M0+aS,ie[ge+24]=M0-aS,ie[ge+8]=E0+sc,ie[ge+56]=E0-sc,ge++}var qf;for(be=0;be<de;++be)qf=ie[be]*Re[be],w[be]=qf>0?qf+.5|0:qf-.5|0;return w}function ce(){he(65504),he(16),ve(74),ve(70),ve(73),ve(70),ve(0),ve(1),ve(1),ve(0),he(1),he(1),ve(0),ve(0)}function Se(ie,Re){he(65472),he(17),ve(8),he(Re),he(ie),ve(3),ve(1),ve(17),ve(0),ve(2),ve(17),ve(1),ve(3),ve(17),ve(1)}function Ae(){he(65499),he(132),ve(0);for(var ie=0;ie<64;ie++)ve(c[ie]);ve(1);for(var Re=0;Re<64;Re++)ve(f[Re])}function Te(){he(65476),he(418),ve(0);for(var ie=0;ie<16;ie++)ve(G[ie+1]);for(var Re=0;Re<=11;Re++)ve(I[Re]);ve(16);for(var We=0;We<16;We++)ve($[We+1]);for(var me=0;me<=161;me++)ve(N[me]);ve(1);for(var Ye=0;Ye<16;Ye++)ve(P[Ye+1]);for(var ht=0;ht<=11;ht++)ve(Y[ht]);ve(17);for(var Ct=0;Ct<16;Ct++)ve(J[Ct+1]);for(var Tt=0;Tt<=161;Tt++)ve(re[Tt])}function Oe(){he(65498),he(12),ve(3),ve(1),ve(0),ve(2),ve(17),ve(3),ve(17),ve(0),ve(63),ve(0)}function He(ie,Re,We,me,Ye){for(var ht=Ye[0],Ct=Ye[240],Tt,it=16,Me=63,ge=64,be=q(ie,Re),Ie=0;Ie<ge;++Ie)C[V[Ie]]=be[Ie];var de=C[0]-We;We=C[0],de==0?_e(me[0]):(Tt=32767+de,_e(me[b[Tt]]),_e(m[Tt]));for(var rt=63;rt>0&&C[rt]==0;rt--);if(rt==0)return _e(ht),We;for(var Fe=1,Bt;Fe<=rt;){for(var Yn=Fe;C[Fe]==0&&Fe<=rt;++Fe);var $n=Fe-Yn;if($n>=it){Bt=$n>>4;for(var dr=1;dr<=Bt;++dr)_e(Ct);$n=$n&15}Tt=32767+C[Fe],_e(Ye[($n<<4)+b[Tt]]),_e(m[Tt]),Fe++}return rt!=Me&&_e(ht),We}function $e(){for(var ie=String.fromCharCode,Re=0;Re<256;Re++)R[Re]=ie(Re)}this.encode=function(ie,Re){Re&&Ne(Re),x=new Array,_=0,T=7,he(65496),ce(),Ae(),Se(ie.width,ie.height),Te(),Oe();var We=0,me=0,Ye=0;_=0,T=7,this.encode.displayName="_encode_";for(var ht=ie.data,Ct=ie.width,Tt=ie.height,it=Ct*4,Me,ge=0,be,Ie,de,rt,Fe,Bt,Yn,$n;ge<Tt;){for(Me=0;Me<it;){for(rt=it*ge+Me,Fe=rt,Bt=-1,Yn=0,$n=0;$n<64;$n++)Yn=$n>>3,Bt=($n&7)*4,Fe=rt+Yn*it+Bt,ge+Yn>=Tt&&(Fe-=it*(ge+1+Yn-Tt)),Me+Bt>=it&&(Fe-=Me+Bt-it+4),be=ht[Fe++],Ie=ht[Fe++],de=ht[Fe++],M[$n]=(L[be]+L[Ie+256>>0]+L[de+512>>0]>>16)-128,E[$n]=(L[be+768>>0]+L[Ie+1024>>0]+L[de+1280>>0]>>16)-128,k[$n]=(L[be+1280>>0]+L[Ie+1536>>0]+L[de+1792>>0]>>16)-128;We=He(M,d,We,p,g),me=He(E,h,me,v,y),Ye=He(k,h,Ye,v,y),Me+=32}ge+=8}if(T>=0){var dr=[];dr[1]=T+1,dr[0]=(1<<T+1)-1,_e(dr)}he(65497);var _r="data:image/jpeg;base64,"+btoa(x.join(""));return x=[],_r};function Ne(ie){if(ie<=0&&(ie=1),ie>100&&(ie=100),A!=ie){var Re=0;ie<50?Re=Math.floor(5e3/ie):Re=Math.floor(200-ie*2),oe(Re),A=ie}}function Le(){l||(l=50),$e(),le(),fe(),se(),Ne(l)}Le()}return s.encode=function(l,u){var c=new s(u);return c.encode(l)},s}),e("runtime/html5/androidpatch",["runtime/html5/util","runtime/html5/jpegencoder","base"],function(a,i,o){var s=a.canvasToDataUrl,l;a.canvasToDataUrl=function(u,c,f){var d,h,p,v,g;return o.os.android?(c==="image/jpeg"&&typeof l>"u"&&(v=s.apply(null,arguments),g=v.split(","),~g[0].indexOf("base64")?v=atob(g[1]):v=decodeURIComponent(g[1]),v=v.substring(0,2),l=v.charCodeAt(0)===255&&v.charCodeAt(1)===216),c==="image/jpeg"&&!l?(h=u.width,p=u.height,d=u.getContext("2d"),i.encode(d.getImageData(0,0,h,p),f)):s.apply(null,arguments)):s.apply(null,arguments)}}),e("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],function(a,i,o){var s="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return i.register("Image",{modified:!1,init:function(){var l=this,u=new Image;u.onload=function(){l._info={type:l.type,width:this.width,height:this.height},!l._metas&&l.type==="image/jpeg"?o.parseMeta(l._blob,function(c,f){l._metas=f,l.owner.trigger("load")}):l.owner.trigger("load")},u.onerror=function(){l.owner.trigger("error")},l._img=u},loadFromBlob:function(l){var u=this,c=u._img;u._blob=l,u.type=l.type,c.src=o.createObjectURL(l.getSource()),u.owner.once("load",function(){o.revokeObjectURL(c.src)})},resize:function(l,u){var c=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,c,l,u),this._blob=null,this.modified=!0,this.owner.trigger("complete","resize")},crop:function(l,u,c,f,d){var h=this._canvas||(this._canvas=document.createElement("canvas")),p=this.options,v=this._img,g=v.naturalWidth,y=v.naturalHeight,m=this.getOrientation();d=d||1,h.width=c,h.height=f,p.preserveHeaders||this._rotate2Orientaion(h,m),this._renderImageToCanvas(h,v,-l,-u,g*d,y*d),this._blob=null,this.modified=!0,this.owner.trigger("complete","crop")},getAsBlob:function(l){var u=this._blob,c=this.options,f;if(l=l||this.type,this.modified||this.type!==l){if(f=this._canvas,l==="image/jpeg"){if(u=o.canvasToDataUrl(f,l,c.quality),c.preserveHeaders&&this._metas&&this._metas.imageHead)return u=o.dataURL2ArrayBuffer(u),u=o.updateImageHead(u,this._metas.imageHead),u=o.arrayBufferToBlob(u,l),u}else u=o.canvasToDataUrl(f,l);u=o.dataURL2Blob(u)}return u},getAsDataUrl:function(l){var u=this.options;return l=l||this.type,l==="image/jpeg"?o.canvasToDataUrl(this._canvas,l,u.quality):this._canvas.toDataURL(l)},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(l){return l?(this._info=l,this):this._info},meta:function(l){return l?(this._metas=l,this):this._metas},destroy:function(){var l=this._canvas;this._img.onload=null,l&&(l.getContext("2d").clearRect(0,0,l.width,l.height),l.width=l.height=0,this._canvas=null),this._img.src=s,this._img=this._blob=null},_resize:function(l,u,c,f){var d=this.options,h=l.width,p=l.height,v=this.getOrientation(),g,y,m,b,w;~[5,6,7,8].indexOf(v)&&(c^=f,f^=c,c^=f),g=Math[d.crop?"max":"min"](c/h,f/p),d.allowMagnify||(g=Math.min(1,g)),y=h*g,m=p*g,d.crop?(u.width=c,u.height=f):(u.width=y,u.height=m),b=(u.width-y)/2,w=(u.height-m)/2,d.preserveHeaders||this._rotate2Orientaion(u,v),this._renderImageToCanvas(u,l,b,w,y,m)},_rotate2Orientaion:function(l,u){var c=l.width,f=l.height,d=l.getContext("2d");switch(u){case 5:case 6:case 7:case 8:l.width=f,l.height=c;break}switch(u){case 2:d.translate(c,0),d.scale(-1,1);break;case 3:d.translate(c,f),d.rotate(Math.PI);break;case 4:d.translate(0,f),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-f);break;case 7:d.rotate(.5*Math.PI),d.translate(c,-f),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-c,0);break}},_renderImageToCanvas:function(){if(!a.os.ios)return function(c){var f=a.slice(arguments,1),d=c.getContext("2d");d.drawImage.apply(d,f)};function l(c,f,d){var h=document.createElement("canvas"),p=h.getContext("2d"),v=0,g=d,y=d,m,b,w;for(h.width=1,h.height=d,p.drawImage(c,0,0),m=p.getImageData(0,0,1,d).data;y>v;)b=m[(y-1)*4+3],b===0?g=y:v=y,y=g+v>>1;return w=y/d,w===0?1:w}if(a.os.ios>=7)return function(c,f,d,h,p,v){var g=f.naturalWidth,y=f.naturalHeight,m=l(f,g,y);return c.getContext("2d").drawImage(f,0,0,g*m,y*m,d,h,p,v)};function u(c){var f=c.naturalWidth,d=c.naturalHeight,h,p;return f*d>1024*1024?(h=document.createElement("canvas"),h.width=h.height=1,p=h.getContext("2d"),p.drawImage(c,-f+1,0),p.getImageData(0,0,1,1).data[3]===0):!1}return function(c,f,d,h,p,v){var g=f.naturalWidth,y=f.naturalHeight,m=c.getContext("2d"),b=u(f),w=this.type==="image/jpeg",C=1024,x=0,_=0,T,M,E,k,R,L,A;for(b&&(g/=2,y/=2),m.save(),T=document.createElement("canvas"),T.width=T.height=C,M=T.getContext("2d"),E=w?l(f,g,y):1,k=Math.ceil(C*p/g),R=Math.ceil(C*v/y/E);x<y;){for(L=0,A=0;L<g;)M.clearRect(0,0,C,C),M.drawImage(f,-L,-x),m.drawImage(T,0,0,C,C,d+A,h+_,k,R),L+=C,A+=k;x+=C,_+=R}m.restore(),T=M=null}}()})}),e("runtime/html5/transport",["base","runtime/html5/runtime"],function(a,i){var o=a.noop,s=a.$;return i.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var l=this.owner,u=this.options,c=this._initAjax(),f=l._blob,d=u.server,h,p,v;u.sendAsBinary?(d+=(/\?/.test(d)?"&":"?")+s.param(l._formData),p=f.getSource()):(h=new FormData,s.each(l._formData,function(g,y){h.append(g,y)}),h.append(u.fileVal,f.getSource(),u.filename||l._formData.name||"")),u.withCredentials&&"withCredentials"in c?(c.open(u.method,d,!0),c.withCredentials=!0):c.open(u.method,d),this._setRequestHeader(c,u.headers),p?(c.overrideMimeType&&c.overrideMimeType("application/octet-stream"),a.os.android?(v=new FileReader,v.onload=function(){c.send(this.result),v=v.onload=null},v.readAsArrayBuffer(p)):c.send(p)):c.send(h)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var l=this._xhr;l&&(l.upload.onprogress=o,l.onreadystatechange=o,l.abort(),this._xhr=l=null)},destroy:function(){this.abort()},_initAjax:function(){var l=this,u=new XMLHttpRequest,c=this.options;return c.withCredentials&&!("withCredentials"in u)&&typeof XDomainRequest<"u"&&(u=new XDomainRequest),u.upload.onprogress=function(f){var d=0;return f.lengthComputable&&(d=f.loaded/f.total),l.trigger("progress",d)},u.onreadystatechange=function(){if(u.readyState===4)return u.upload.onprogress=o,u.onreadystatechange=o,l._xhr=null,l._status=u.status,u.status>=200&&u.status<300?(l._response=u.responseText,l.trigger("load")):u.status>=500&&u.status<600?(l._response=u.responseText,l.trigger("error","server")):l.trigger("error",l._status?"http":"abort")},l._xhr=u,u},_setRequestHeader:function(l,u){s.each(u,function(c,f){l.setRequestHeader(c,f)})},_parseJson:function(l){var u;try{u=JSON.parse(l)}catch{u={}}return u}})}),e("runtime/html5/md5",["runtime/html5/runtime"],function(a){var i=function(C,x){return C+x&4294967295},o=function(C,x,_,T,M,E){return x=i(i(x,C),i(T,E)),i(x<<M|x>>>32-M,_)},s=function(C,x,_,T,M,E,k){return o(x&_|~x&T,C,x,M,E,k)},l=function(C,x,_,T,M,E,k){return o(x&T|_&~T,C,x,M,E,k)},u=function(C,x,_,T,M,E,k){return o(x^_^T,C,x,M,E,k)},c=function(C,x,_,T,M,E,k){return o(_^(x|~T),C,x,M,E,k)},f=function(C,x){var _=C[0],T=C[1],M=C[2],E=C[3];_=s(_,T,M,E,x[0],7,-680876936),E=s(E,_,T,M,x[1],12,-389564586),M=s(M,E,_,T,x[2],17,606105819),T=s(T,M,E,_,x[3],22,-1044525330),_=s(_,T,M,E,x[4],7,-176418897),E=s(E,_,T,M,x[5],12,1200080426),M=s(M,E,_,T,x[6],17,-1473231341),T=s(T,M,E,_,x[7],22,-45705983),_=s(_,T,M,E,x[8],7,1770035416),E=s(E,_,T,M,x[9],12,-1958414417),M=s(M,E,_,T,x[10],17,-42063),T=s(T,M,E,_,x[11],22,-1990404162),_=s(_,T,M,E,x[12],7,1804603682),E=s(E,_,T,M,x[13],12,-40341101),M=s(M,E,_,T,x[14],17,-1502002290),T=s(T,M,E,_,x[15],22,1236535329),_=l(_,T,M,E,x[1],5,-165796510),E=l(E,_,T,M,x[6],9,-1069501632),M=l(M,E,_,T,x[11],14,643717713),T=l(T,M,E,_,x[0],20,-373897302),_=l(_,T,M,E,x[5],5,-701558691),E=l(E,_,T,M,x[10],9,38016083),M=l(M,E,_,T,x[15],14,-660478335),T=l(T,M,E,_,x[4],20,-405537848),_=l(_,T,M,E,x[9],5,568446438),E=l(E,_,T,M,x[14],9,-1019803690),M=l(M,E,_,T,x[3],14,-187363961),T=l(T,M,E,_,x[8],20,1163531501),_=l(_,T,M,E,x[13],5,-1444681467),E=l(E,_,T,M,x[2],9,-51403784),M=l(M,E,_,T,x[7],14,1735328473),T=l(T,M,E,_,x[12],20,-1926607734),_=u(_,T,M,E,x[5],4,-378558),E=u(E,_,T,M,x[8],11,-2022574463),M=u(M,E,_,T,x[11],16,1839030562),T=u(T,M,E,_,x[14],23,-35309556),_=u(_,T,M,E,x[1],4,-1530992060),E=u(E,_,T,M,x[4],11,1272893353),M=u(M,E,_,T,x[7],16,-155497632),T=u(T,M,E,_,x[10],23,-1094730640),_=u(_,T,M,E,x[13],4,681279174),E=u(E,_,T,M,x[0],11,-358537222),M=u(M,E,_,T,x[3],16,-722521979),T=u(T,M,E,_,x[6],23,76029189),_=u(_,T,M,E,x[9],4,-640364487),E=u(E,_,T,M,x[12],11,-421815835),M=u(M,E,_,T,x[15],16,530742520),T=u(T,M,E,_,x[2],23,-995338651),_=c(_,T,M,E,x[0],6,-198630844),E=c(E,_,T,M,x[7],10,1126891415),M=c(M,E,_,T,x[14],15,-1416354905),T=c(T,M,E,_,x[5],21,-57434055),_=c(_,T,M,E,x[12],6,1700485571),E=c(E,_,T,M,x[3],10,-1894986606),M=c(M,E,_,T,x[10],15,-1051523),T=c(T,M,E,_,x[1],21,-2054922799),_=c(_,T,M,E,x[8],6,1873313359),E=c(E,_,T,M,x[15],10,-30611744),M=c(M,E,_,T,x[6],15,-1560198380),T=c(T,M,E,_,x[13],21,1309151649),_=c(_,T,M,E,x[4],6,-145523070),E=c(E,_,T,M,x[11],10,-1120210379),M=c(M,E,_,T,x[2],15,718787259),T=c(T,M,E,_,x[9],21,-343485551),C[0]=i(_,C[0]),C[1]=i(T,C[1]),C[2]=i(M,C[2]),C[3]=i(E,C[3])},d=function(C){var x=[],_;for(_=0;_<64;_+=4)x[_>>2]=C.charCodeAt(_)+(C.charCodeAt(_+1)<<8)+(C.charCodeAt(_+2)<<16)+(C.charCodeAt(_+3)<<24);return x},h=function(C){var x=[],_;for(_=0;_<64;_+=4)x[_>>2]=C[_]+(C[_+1]<<8)+(C[_+2]<<16)+(C[_+3]<<24);return x},p=function(C){var x=C.length,_=[1732584193,-271733879,-1732584194,271733878],T,M,E,k,R,L;for(T=64;T<=x;T+=64)f(_,d(C.substring(T-64,T)));for(C=C.substring(T-64),M=C.length,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T=0;T<M;T+=1)E[T>>2]|=C.charCodeAt(T)<<(T%4<<3);if(E[T>>2]|=128<<(T%4<<3),T>55)for(f(_,E),T=0;T<16;T+=1)E[T]=0;return k=x*8,k=k.toString(16).match(/(.*?)(.{0,8})$/),R=parseInt(k[2],16),L=parseInt(k[1],16)||0,E[14]=R,E[15]=L,f(_,E),_},v=function(C){var x=C.length,_=[1732584193,-271733879,-1732584194,271733878],T,M,E,k,R,L;for(T=64;T<=x;T+=64)f(_,h(C.subarray(T-64,T)));for(C=T-64<x?C.subarray(T-64):new Uint8Array(0),M=C.length,E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T=0;T<M;T+=1)E[T>>2]|=C[T]<<(T%4<<3);if(E[T>>2]|=128<<(T%4<<3),T>55)for(f(_,E),T=0;T<16;T+=1)E[T]=0;return k=x*8,k=k.toString(16).match(/(.*?)(.{0,8})$/),R=parseInt(k[2],16),L=parseInt(k[1],16)||0,E[14]=R,E[15]=L,f(_,E),_},g=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],y=function(C){var x="",_;for(_=0;_<4;_+=1)x+=g[C>>_*8+4&15]+g[C>>_*8&15];return x},m=function(C){var x;for(x=0;x<C.length;x+=1)C[x]=y(C[x]);return C.join("")},b=function(C){return m(p(C))},w=function(){this.reset()};return b("hello")!=="5d41402abc4b2a76b9719d911017c592"&&(i=function(C,x){var _=(C&65535)+(x&65535),T=(C>>16)+(x>>16)+(_>>16);return T<<16|_&65535}),w.prototype.append=function(C){return/[\u0080-\uFFFF]/.test(C)&&(C=unescape(encodeURIComponent(C))),this.appendBinary(C),this},w.prototype.appendBinary=function(C){this._buff+=C,this._length+=C.length;var x=this._buff.length,_;for(_=64;_<=x;_+=64)f(this._state,d(this._buff.substring(_-64,_)));return this._buff=this._buff.substr(_-64),this},w.prototype.end=function(C){var x=this._buff,_=x.length,T,M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],E;for(T=0;T<_;T+=1)M[T>>2]|=x.charCodeAt(T)<<(T%4<<3);return this._finish(M,_),E=C?this._state:m(this._state),this.reset(),E},w.prototype._finish=function(C,x){var _=x,T,M,E;if(C[_>>2]|=128<<(_%4<<3),_>55)for(f(this._state,C),_=0;_<16;_+=1)C[_]=0;T=this._length*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),M=parseInt(T[2],16),E=parseInt(T[1],16)||0,C[14]=M,C[15]=E,f(this._state,C)},w.prototype.reset=function(){return this._buff="",this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.destroy=function(){delete this._state,delete this._buff,delete this._length},w.hash=function(C,x){/[\u0080-\uFFFF]/.test(C)&&(C=unescape(encodeURIComponent(C)));var _=p(C);return x?_:m(_)},w.hashBinary=function(C,x){var _=p(C);return x?_:m(_)},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(C){var x=this._concatArrayBuffer(this._buff,C),_=x.length,T;for(this._length+=C.byteLength,T=64;T<=_;T+=64)f(this._state,h(x.subarray(T-64,T)));return this._buff=T-64<_?x.subarray(T-64):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(C){var x=this._buff,_=x.length,T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],M,E;for(M=0;M<_;M+=1)T[M>>2]|=x[M]<<(M%4<<3);return this._finish(T,_),E=C?this._state:m(this._state),this.reset(),E},w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._concatArrayBuffer=function(C,x){var _=C.length,T=new Uint8Array(_+x.byteLength);return T.set(C),T.set(new Uint8Array(x),_),T},w.ArrayBuffer.hash=function(C,x){var _=v(new Uint8Array(C));return x?_:m(_)},a.register("Md5",{init:function(){},loadFromBlob:function(C){var x=C.getSource(),_=2*1024*1024,T=Math.ceil(x.size/_),M=0,E=this.owner,k=new w.ArrayBuffer,R=this,L=x.mozSlice||x.webkitSlice||x.slice,A,V;V=new FileReader,A=function(){var G,I;G=M*_,I=Math.min(G+_,x.size),V.onload=function($){k.append($.target.result),E.trigger("progress",{total:C.size,loaded:I})},V.onloadend=function(){V.onloadend=V.onload=null,++M<T?setTimeout(A,1):setTimeout(function(){E.trigger("load"),R.result=k.end(),A=C=x=k=null,E.trigger("complete")},50)},V.readAsArrayBuffer(L.call(x,G,I))},A()},getResult:function(){return this.result}})}),e("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(a,i,o){var s=a.$,l="flash",u={};function c(){var d;try{d=navigator.plugins["Shockwave Flash"],d=d.description}catch{try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch{d="0.0"}}return d=d.match(/\d+/g),parseFloat(d[0]+"."+d[1],10)}function f(){var d={},h={},p=this.destroy,v=this,g=a.guid("webuploader_");i.apply(v,arguments),v.type=l,v.exec=function(m,b){var w=this,C=w.uid,x=a.slice(arguments,2),_;return h[C]=w,u[m]&&(d[C]||(d[C]=new u[m](w,v)),_=d[C],_[b])?_[b].apply(_,x):v.flashExec.apply(w,arguments)};function y(m,b){var w=m.type||m,C,x;C=w.split("::"),x=C[0],w=C[1],w==="Ready"&&x===v.uid?v.trigger("ready"):h[x]&&h[x].trigger(w.toLowerCase(),m,b)}t[g]=function(){var m=arguments;setTimeout(function(){y.apply(null,m)},1)},this.jsreciver=g,this.destroy=function(){return p&&p.apply(this,arguments)},this.flashExec=function(m,b){var w=v.getFlash(),C=a.slice(arguments,2);return w.exec(this.uid,m,b,C)}}return a.inherits(i,{constructor:f,init:function(){var d=this.getContainer(),h=this.options,p;d.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),p='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+h.swf+'" ',a.browser.ie&&(p+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),p+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+h.swf+'" /><param name="flashvars" value="uid='+this.uid+"&jsreciver="+this.jsreciver+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',d.html(p)},getFlash:function(){return this._flash?this._flash:(this._flash=s("#"+this.uid).get(0),this._flash)}}),f.register=function(d,h){return h=u[d]=a.inherits(o,s.extend({flashExec:function(){var p=this.owner,v=this.getRuntime();return v.flashExec.apply(p,arguments)}},h)),h},c()>=11.4&&i.addRuntime(l,f),f}),e("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(a,i){var o=a.$;return i.register("FilePicker",{init:function(s){var l=o.extend({},s),u,c;for(u=l.accept&&l.accept.length,c=0;c<u;c++)l.accept[c].title||(l.accept[c].title="Files");delete l.button,delete l.id,delete l.container,this.flashExec("FilePicker","init",l)},destroy:function(){this.flashExec("FilePicker","destroy")}})}),e("runtime/flash/image",["runtime/flash/runtime"],function(a){return a.register("Image",{loadFromBlob:function(i){var o=this.owner;o.info()&&this.flashExec("Image","info",o.info()),o.meta()&&this.flashExec("Image","meta",o.meta()),this.flashExec("Image","loadFromBlob",i.uid)}})}),e("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(a,i,o){var s=a.$;return i.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var l=this.owner,u=this.options,c=this._initAjax(),f=l._blob,d=u.server,h;c.connectRuntime(f.ruid),u.sendAsBinary?(d+=(/\?/.test(d)?"&":"?")+s.param(l._formData),h=f.uid):(s.each(l._formData,function(p,v){c.exec("append",p,v)}),c.exec("appendBlob",u.fileVal,f.uid,u.filename||l._formData.name||"")),this._setRequestHeader(c,u.headers),c.exec("send",{method:u.method,url:d,forceURLStream:u.forceURLStream,mimeType:"application/octet-stream"},h)},getStatus:function(){return this._status},getResponse:function(){return this._response||""},getResponseAsJson:function(){return this._responseJson},abort:function(){var l=this._xhr;l&&(l.exec("abort"),l.destroy(),this._xhr=l=null)},destroy:function(){this.abort()},_initAjax:function(){var l=this,u=new o("XMLHttpRequest");return u.on("uploadprogress progress",function(c){var f=c.loaded/c.total;return f=Math.min(1,Math.max(0,f)),l.trigger("progress",f)}),u.on("load",function(){var c=u.exec("getStatus"),f=!1,d="",h;return u.off(),l._xhr=null,c>=200&&c<300?f=!0:c>=500&&c<600?(f=!0,d="server"):d="http",f&&(l._response=u.exec("getResponse"),l._response=decodeURIComponent(l._response),h=function(p){try{return t.JSON&&t.JSON.parse?JSON.parse(p):new Function("return "+p).call()}catch{return{}}},l._responseJson=l._response?h(l._response):{}),u.destroy(),u=null,d?l.trigger("error",d):l.trigger("load")}),u.on("error",function(){u.off(),l._xhr=null,l.trigger("error","http")}),l._xhr=u,u},_setRequestHeader:function(l,u){s.each(u,function(c,f){l.exec("setRequestHeader",c,f)})}})}),e("runtime/flash/blob",["runtime/flash/runtime","lib/blob"],function(a,i){return a.register("Blob",{slice:function(o,s){var l=this.flashExec("Blob","slice",o,s);return new i(this.getRuid(),l)}})}),e("runtime/flash/md5",["runtime/flash/runtime"],function(a){return a.register("Md5",{init:function(){},loadFromBlob:function(i){return this.flashExec("Md5","loadFromBlob",i.uid)}})}),e("preset/all",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","widgets/md5","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/androidpatch","runtime/html5/image","runtime/html5/transport","runtime/html5/md5","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport","runtime/flash/blob","runtime/flash/md5"],function(a){return a}),e("widgets/log",["base","uploader","widgets/widget"],function(a,i){var o=a.$,s=" http://static.tieba.baidu.com/tb/pms/img/st.gif??",l=(location.hostname||location.host||"protected").toLowerCase(),u=l&&/baidu/i.exec(l),c;if(!u)return;c={dv:3,master:"webuploader",online:/test/.exec(l)?0:1,module:"",product:l,type:0};function f(d){var h=o.extend({},c,d),p=s.replace(/^(.*)\?/,"$1"+o.param(h)),v=new Image;v.src=p}return i.register({name:"log",init:function(){var d=this.owner,h=0,p=0;d.on("error",function(v){f({type:2,c_error_code:v})}).on("uploadError",function(v,g){f({type:2,c_error_code:"UPLOAD_ERROR",c_reason:""+g})}).on("uploadComplete",function(v){h++,p+=v.size}).on("uploadFinished",function(){f({c_count:h,c_size:p}),h=p=0}),f({c_usage:1})}})}),e("webuploader",["preset/all","widgets/log"],function(a){return a});var r=n;return r("webuploader")});const UHe=wi(zHe);const GHe={class:"webuploader-container"},HHe=["id"],WHe={class:"btntext upname wenjian"},jHe=["id"],f6={__name:"fileuploads",props:{projectId:Number,solverType:String,accept:String,upId:String,name:String,namelist:Array,gfname:String},emits:["Gassaddgfid","Gassaddbfid"],setup(t,{expose:e,emit:n}){const r=t;let a=W(!0),i=W(void 0),o=W(void 0);W("1212");let s=W([]),l=W(""),u=W(""),c=W();W([]);let f=W("");W("");let d=W("");W(""),W([]),Pt(()=>{h()});const h=()=>{p(),d.value=p(),v()},p=()=>"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(y){var m=Math.random()*16|0,b=y=="x"?m:m&3|8;return b.toString(16)}),v=()=>{s.value=[],i.value=UHe.create({swf:"./Uploader.swf",server:"/disaster/TransServlet",formData:{},pick:{id:"#picker"+r.upId,multiple:!0},resize:!1,chunked:!0,chunkSize:2*1024*1024,threads:4}),i.value.on("fileQueued",y=>{console.log(2222),o.value=y.name,console.log(o.value);const m=o.value.split(".")[1];if(console.log(m),r.accept.indexOf(m)<0){i.value.reset(),sn.error("只支持"+r.accept+"格式文件!");return}i.value.md5File(y).progress(b=>{console.log("Percentage:",b)}).then(b=>{b.value=b}),s.value.length>0&&(i.value.removeFile(s.value[0].id),s.value=[]),s.value.push({id:y.id,name:y.name,msg:"等待上传...",percentage:0}),i.value.upload()}),i.value.on("uploadBeforeSend",(y,m,b)=>{m.chunk=y.chunk,m.chunks=y.chunks,m.bfid=d.value,m.fileName=o.value,m.channelNo="service",m.clientToken="e47b87eec69545559d1e81e56626da68",m.transCode="B00028",m.userId="5f06c8bc77234f969d13e160b54c27e3",b.Content="multipart",b.Type="form-data"}),i.value.on("uploadProgress",(y,m)=>{let b=Math.floor(m*100);s.value.forEach(w=>{(w.id=y.id)&&(w.msg="上传中"),c.value=w.msg,w.percentage=b})}),i.value.on("uploadSuccess",(y,m)=>{console.log(y.ext),console.log(m),f.value=m.bfid;let b={transCode:"B00029",bfid:m.bfid};Tr(b).then(w=>{console.log(w),s.value.forEach(C=>{(C.id=y.id)&&(C.msg="已上传",c.value=C.msg,a.value=!1),y.ext=="x"?(l.value=m.bfid,n("Gassaddgfid",l.value)):y.ext=="inp"&&(u.value=m.bfid,n("Gassaddbfid",u.value))})}).catch(w=>{})}),i.value.on("uploadAccept",(y,m)=>m.returnCode=="000000000"?!0:(sn.error(m.returnMsg),!1)),i.value.on("uploadError",(y,m)=>{PHe("#"+y.id).text(y.name+"上传出错"),p(),d.value=p()}),i.value.on("uploadComplete",y=>{})},g=y=>{console.log(y),p(),d.value=p(),s.value=s.value.filter(m=>(m.id==y&&(console.log(m),m.name=m.name,c.value="",i.value.removeFile(y)),m.id!=y))};return e({gfid:l,bfid:u,initWebUploader:v,files:s,msg:c}),(y,m)=>{const b=Xe("el-row"),w=Xe("el-col"),C=Xe("el-progress");return z(),ne("div",GHe,[U("div",{id:"uploader"+t.upId},[H(b,null,{default:X(()=>[U("div",WHe,Ke(t.gfname),1),U("div",{class:"btntext upname",id:"picker"+t.upId},Ke(t.name),9,jHe)]),_:1}),(z(!0),ne(bt,null,ln(S(s),(x,_)=>(z(),xe(b,{key:_,class:"disflex"},{default:X(()=>[H(w,{span:6},{default:X(()=>[lt(Ke(x.name),1)]),_:2},1024),H(w,{span:8},{default:X(()=>[H(C,{percentage:x.percentage},null,8,["percentage"])]),_:2},1024),H(w,{span:5},{default:X(()=>[lt(Ke(x.msg),1)]),_:2},1024),H(w,{span:5},{default:X(()=>[H(S(Lt),{type:"danger",onClick:T=>g(x.id),icon:S(DY),circle:""},null,8,["onClick","icon"])]),_:2},1024)]),_:2},1024))),128))],8,HHe)])}}},KHe={class:"l_Dialog bou tablebk"},YHe={class:"common-layout",style:{margin:"0"}},qHe={class:"demo-collapse"},XHe={class:"asides_content"},ZHe={class:"jc_content tablecolor"},QHe={class:"jc_padding font12"},JHe={class:"xian btncolor tablefocus bmar"},eWe={class:"classtab"},tWe={class:"asides_content"},nWe={class:"jc_content tablecolor jc_content"},rWe={class:"font12 my_content1"},aWe={class:"btncolor tablefocus bmar"},iWe={class:"demo-pagination-block pagination",style:{"margin-top":"20px"}},oWe={class:"dialog-footer footer_div l_btn"},sWe={class:"footerbtn flex1"},lWe={class:"borderimg"},uWe={class:"footerbtn flex1"},cWe={class:"borderimg"},fWe={class:"footerbtn flex1"},dWe={class:"borderimg"},hWe={class:"asides_content"},pWe={class:"jc_content tablecolor jc_content"},vWe={class:"font12 my_content1"},gWe={class:"btncolor tablefocus bmar"},yWe={class:"demo-pagination-block pagination",style:{"margin-top":"20px"}},mWe={class:"dialog-footer footer_div l_btn"},bWe={class:"footerbtn flex1"},SWe={class:"borderimg"},wWe={class:"footerbtn flex1"},_We={class:"borderimg"},xWe={class:"footerbtn flex1"},CWe={class:"borderimg"},TWe={class:"my-header"},EWe=["id"],MWe={class:"dialog-footer footer_div l_btn"},DWe={class:"footerbtn flex1"},kWe={class:"borderimg"},RWe={class:"footerbtn flex1"},LWe={class:"borderimg"},OWe={class:"my-header"},AWe=["id"],NWe={class:"delecttitle"},VWe={class:"spanclad"},BWe={class:"dialog-footer footer_div l_btn"},IWe={class:"footerbtn flex1"},$We={class:"borderimg"},PWe={class:"footerbtn flex1"},FWe={class:"borderimg"},zWe={class:"my-header"},UWe=["id"],GWe={class:"demo-input-suffix firsttitle magintop guand_1"},HWe={class:"btn2"},WWe={class:"demo-input-suffix firsttitle magintop guand_1"},jWe={class:"btn2"},KWe={class:"demo-input-suffix firsttitle magintop guand_1"},YWe={class:"btn2"},qWe={key:0,class:"elimg"},XWe={key:1,class:"elimg"},ZWe={key:2,class:"elimg"},QWe={class:"btncolor tablefocus"},JWe={class:"dialog-footer footer_div l_btn"},e9e={class:"footerbtn flex1"},t9e={class:"borderimg"},n9e={class:"footerbtn flex1"},r9e={class:"borderimg"},a9e={class:"my-header"},i9e=["id"],o9e={class:"delecttitle"},s9e={class:"spanclad"},l9e={class:"dialog-footer footer_div l_btn"},u9e={class:"footerbtn flex1"},c9e={class:"borderimg"},f9e={class:"footerbtn flex1"},d9e={class:"borderimg"},h9e={__name:"MenuMine",setup(t,{expose:e}){const n=W(),r=W();W(""),W("");let a=W(""),i=W(""),o=W(""),s=W(""),l=W(),u=W(!1),c=W([]);W("Fire");let f=W(["1"]),d=W(70),h=W(100);const p=W("first");let v=W(280),g=W(1),y=W(""),m=W([{label:"CIRCULAR",value:"CIRCULAR"},{label:"RECTANGLE",value:"RECTANGLE"}]);const b=W(1),w=W(4);let C=W(!1),x=W(!1),_=W({adddialog:!1,dialogsgdelect:!1,gdadddialog:!1,guddialogsgdelect:!1}),T=W(""),M=W(),E=W(""),k=W("添加"),R=W({}),L=W({}),A=W({name:"",x:"",y:"",z:"",code:""}),V=W({pid:"",name:"",snId:Number,enId:Number,roughCoe:"",sectionType:"CIRCULAR",sectionPara1:"",sectionPara2:"",sectionPara3:"",sectionPara4:"",sectionPara5:"",code:""}),G=W({total:1,currentPage4:1,pageSize4:5});const I=({row:Le,rowIndex:ie})=>ie%2!=0?"evenRow":"oddRow";Pt(()=>{Y()});const $=(Le,ie)=>{switch(Le.props.name){case"first":Y();break;case"second":_e();break}},N=Le=>{Y()},P=Le=>{_e()},Y=()=>{const Le={transCode:"D00000",count:w.value,page:b.value,searchtag:y.value};Tr(Le).then(ie=>{c.value=ie.rows,g.value=ie.total,R.value={}}).catch(ie=>{sn.error(ie.returnMsg)})},J=()=>{k.value="添加",C.value=!1,_.value.adddialog=!0,A.value.name="",A.value.x="",A.value.y="",A.value.z="",A.value.nid="",A.value.code="",R.value={}},re=()=>{if(A.value.name==null||A.value.name=="")sn.error("名称不能为空");else if(A.value.code==null||A.value.code=="")sn.error("编号不能为空");else if(A.value.x==null||A.value.x=="")sn.error("X不能为空");else if(A.value.y==null||A.value.y=="")sn.error("Y不能为空");else if(A.value.z==null||A.value.z=="")sn.error("Z不能为空");else if(A.value.name!=""&&A.value.x!=""&&A.value.y!=""&&A.value.z!=""){const Le={transCode:"D10000",nid:A.value.nid,name:A.value.name,x:A.value.x,y:A.value.y,z:A.value.z,code:A.value.code,desc:"",ntype:"mid"};Tr(Le).then(ie=>{_.value.adddialog=!1,Y(),sn({message:ie.returnMsg,type:"success"})}).catch(ie=>{sn.error(ie.returnMsg)})}else sn.error("不能为空")},oe=Le=>{C.value=!0,R.value=Le},ue=Le=>{x.value=!0,L.value=Le,o.value=L.value.gfname,s.value=L.value.bfname},le=()=>{console.log(R.value),JSON.stringify(R.value)=="{}"?sn.error("你还没有选中修改的项目"):(_.value.dialogsgdelect=!0,E.value=R.value.name)},fe=()=>{const Le={transCode:"D10001",nid:R.value.id};Tr(Le).then(ie=>{Y(),sn({message:ie.returnMsg,type:"success"})}).catch(ie=>{sn.error(ie.returnMsg)})},se=()=>{JSON.stringify(R.value)=="{}"?sn.error("你还没有选中修改的项目"):(k.value="修改",_.value.adddialog=!0,A.value.name=R.value.name,A.value.x=R.value.x,A.value.y=R.value.y,A.value.z=R.value.z,A.value.nid=R.value.id,A.value.code=R.value.code)},_e=()=>{const Le={transCode:"D00001",count:G.value.pageSize4,page:G.value.currentPage4,searchtag:""};Tr(Le).then(ie=>{M.value=ie.rows,G.value.total=ie.total}).catch(ie=>{sn.error(ie.returnMsg)})},ve=Le=>{console.log(111),l.value.searchtaggd="",l.value.dialogVisiblenode=!0,l.value.pipelinedata(""),T.value=Le},he=Le=>{T.value=="start"?V.value.snId=Le.id:V.value.enId=Le.id},q=()=>{_.value.gdadddialog=!0,x.value=!1,V.value.code="",V.value.pid="",V.value.name="",V.value.snId="",V.value.enId="",V.value.roughCoe="",V.value.sectionType="CIRCULAR",V.value.sectionPara1="",V.value.sectionPara2="",V.value.sectionPara3="",V.value.sectionPara4="",V.value.sectionPara5="",o.value="",s.value="",L.value={},yt(()=>{n.value.files=[],r.value.files=[]})},ce=()=>{if(V.value.snId<V.value.enId){const Le={transCode:"D10002",code:V.value.code,pid:V.value.pid,name:V.value.name,snId:V.value.snId,enId:V.value.enId,roughCoe:V.value.roughCoe,sectionType:V.value.sectionType,sectionPara1:V.value.sectionPara1,sectionPara2:V.value.sectionPara2,sectionPara3:V.value.sectionPara3,sectionPara4:V.value.sectionPara4,sectionPara5:V.value.sectionPara5,gfid:a.value,bfid:i.value};Tr(Le).then(ie=>{_.value.gdadddialog=!1,sn({message:ie.returnMsg,type:"success"}),_e()}).catch(ie=>{sn.error(ie.returnMsg)})}else sn.error("结束节点要大于开始节点")},Se=()=>{console.log(L.value),JSON.stringify(L.value)=="{}"?sn.error("你还没有选中修改的项目"):(_.value.guddialogsgdelect=!0,E.value=L.value.name)},Ae=()=>{const Le={transCode:"D10003",pid:L.value.id};Tr(Le).then(ie=>{_e(),sn({message:ie.returnMsg,type:"success"}),L.value={}}).catch(ie=>{sn.error(ie.returnMsg)})},Te=()=>{JSON.stringify(L.value)=="{}"?sn.error("你还没有选中修改的项目"):(k.value="修改",_.value.gdadddialog=!0,V.value.code=L.value.code,V.value.pid=L.value.id,V.value.name=L.value.name,V.value.snId=L.value.snId,V.value.enId=L.value.enId,V.value.roughCoe=L.value.roughCoe,V.value.sectionType=L.value.sectionType,V.value.sectionPara1=L.value.sectionPara1,V.value.sectionPara2=L.value.sectionPara2,V.value.sectionPara3=L.value.sectionPara3,V.value.sectionPara4=L.value.sectionPara4,V.value.sectionPara5=L.value.sectionPara5,He(L.value.gfid),$e(L.value.bfid),yt(()=>{n.value.files=[],r.value.files=[]}))},Oe=Le=>{files.value="",files.value=Le,console.log(files.value)},He=Le=>{a.value=Le},$e=Le=>{i.value=Le},Ne=Le=>{let ie=n.value.msg,Re=r.value.msg;console.log(Re),ie=="上传中"||Re=="上传中"?sn.error("上传中不能关闭"):(_.value.gdadddialog=!1,(Le=="confirm"&&ie=="已上传"||Le=="confirm"&&Re=="已上传"||ie==null||Re==null)&&ce())};return e({dialogVisible:u}),(Le,ie)=>{const Re=Xe("el-icon"),We=Xe("el-table-column"),me=Xe("el-table"),Ye=Xe("el-pagination"),ht=Xe("el-tab-pane"),Ct=Xe("el-tabs"),Tt=Xe("el-image"),it=Xe("el-input"),Me=Xe("el-form-item"),ge=Xe("el-form"),be=Xe("el-option"),Ie=Xe("el-collapse-item"),de=Xe("el-collapse"),rt=Xe("el-aside");return z(),ne("div",KHe,[U("div",YHe,[Ft(H(rt,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:X(()=>[U("div",qHe,[H(de,{modelValue:S(f),"onUpdate:modelValue":ie[43]||(ie[43]=Fe=>Ot(f)?f.value=Fe:f=Fe),accordion:""},{default:X(()=>[H(Ie,{name:"1",class:"btnicon"},{title:X(()=>[H(Re,{class:"iconimg Frame3",fit:"contain"}),lt(" 矿井信息"),H(Re,{class:"header-icon"})]),default:X(()=>[U("div",XHe,[U("div",ZHe,[U("div",QHe,[U("div",JHe,[U("div",eWe,[H(Ct,{modelValue:p.value,"onUpdate:modelValue":ie[12]||(ie[12]=Fe=>p.value=Fe),type:"card",class:"demo-tabs",onTabClick:$,stretch:!0},{default:X(()=>[H(ht,{label:"节点信息",name:"first"},{default:X(()=>[U("div",tWe,[U("div",nWe,[U("div",rWe,[U("div",aWe,[H(me,{data:S(c),style:{width:"480px"},"max-height":S(v),"highlight-current-row":S(C),"row-class-name":I,onRowClick:ie[0]||(ie[0]=Fe=>oe(Fe)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{default:X(()=>[H(We,{prop:"id",label:"序号",width:"80px"}),H(We,{prop:"code",label:"节点编号"}),H(We,{prop:"name",label:"节点名称"}),H(We,{prop:"x",label:"X"},{default:X(Fe=>[U("span",null,Ke(Number(Fe.row.x).toFixed(2)),1)]),_:1}),H(We,{prop:"y",label:"Y"},{default:X(Fe=>[U("span",null,Ke(Number(Fe.row.y).toFixed(2)),1)]),_:1}),H(We,{prop:"z",label:"Z"},{default:X(Fe=>[U("span",null,Ke(Number(Fe.row.z).toFixed(2)),1)]),_:1})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"]),U("div",iWe,[H(S(n1),{locale:S(r2)},{default:X(()=>[H(Ye,{"current-page":b.value,"onUpdate:currentPage":ie[1]||(ie[1]=Fe=>b.value=Fe),"page-size":w.value,"onUpdate:pageSize":ie[2]||(ie[2]=Fe=>w.value=Fe),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(g)),class:"mt-4",onCurrentChange:N},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])])])]),U("div",oWe,[U("div",sWe,[U("div",lWe,[H(S(Lt),{onClick:ie[3]||(ie[3]=Fe=>{J()})},{default:X(()=>[lt("添加")]),_:1})])]),U("div",uWe,[U("div",cWe,[H(S(Lt),{onClick:ie[4]||(ie[4]=Fe=>le())},{default:X(()=>[lt(" 删除 ")]),_:1})])]),U("div",fWe,[U("div",dWe,[H(S(Lt),{onClick:ie[5]||(ie[5]=Fe=>se())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])]),_:1}),H(ht,{label:"巷道信息",name:"second"},{default:X(()=>[U("div",hWe,[U("div",pWe,[U("div",vWe,[U("div",gWe,[H(me,{"row-class-name":I,"max-height":S(v),ref:"multipleTableRef","highlight-current-row":S(x),onRowClick:ie[6]||(ie[6]=Fe=>ue(Fe)),data:S(M),style:{width:"100%"},"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:X(()=>[H(We,{property:"id",label:"序号"}),H(We,{property:"snId",label:"开始节点"}),H(We,{property:"enId",label:"结束节点"}),H(We,{property:"code",label:"编号",width:"70"}),H(We,{property:"name",label:"名称",width:"70"}),H(We,{property:"sectionType",label:"截面类型",width:"120"}),H(We,{property:"roughCoe",label:"粗糙系数"}),H(We,{property:"sectionPara1",label:"截面参数1",width:"90"}),H(We,{property:"sectionPara2",label:"截面参数2",width:"90"}),H(We,{property:"sectionPara3",label:"截面参数3",width:"90"}),H(We,{property:"sectionPara4",label:"截面参数4",width:"90"}),H(We,{property:"sectionPara5",label:"截面参数5",width:"90"})]),_:1},8,["max-height","highlight-current-row","data","header-cell-style"]),U("div",yWe,[H(S(n1),{locale:S(r2)},{default:X(()=>[H(Ye,{"current-page":S(G).currentPage4,"onUpdate:currentPage":ie[7]||(ie[7]=Fe=>S(G).currentPage4=Fe),"page-size":S(G).pageSize4,"onUpdate:pageSize":ie[8]||(ie[8]=Fe=>S(G).pageSize4=Fe),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(G).total),class:"mt-4",onCurrentChange:P},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])])])]),U("div",mWe,[U("div",bWe,[U("div",SWe,[H(S(Lt),{onClick:ie[9]||(ie[9]=Fe=>{q()})},{default:X(()=>[lt("添加")]),_:1})])]),U("div",wWe,[U("div",_We,[H(S(Lt),{onClick:ie[10]||(ie[10]=Fe=>{Se()})},{default:X(()=>[lt(" 删除 ")]),_:1})])]),U("div",xWe,[U("div",CWe,[H(S(Lt),{onClick:ie[11]||(ie[11]=Fe=>Te())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])]),_:1})]),_:1},8,["modelValue"])]),H(S(Ta),{modelValue:S(_).adddialog,"onUpdate:modelValue":ie[20]||(ie[20]=Fe=>S(_).adddialog=Fe),"align-center":"","append-to-body":!0,width:"480",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:Fe,titleClass:Bt})=>[U("div",TWe,[H(Tt,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Fe,class:j(Bt)},Ke(S(k)),11,EWe)])]),default:X(()=>[U("div",null,[H(ge,null,{default:X(()=>[H(Me,{label:"编号","label-width":S(d)},{default:X(()=>[H(it,{modelValue:S(A).code,"onUpdate:modelValue":ie[13]||(ie[13]=Fe=>S(A).code=Fe),maxlength:"18",oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"名称","label-width":S(d)},{default:X(()=>[H(it,{modelValue:S(A).name,"onUpdate:modelValue":ie[14]||(ie[14]=Fe=>S(A).name=Fe),maxlength:"18",oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"X","label-width":S(d)},{default:X(()=>[H(it,{modelValue:S(A).x,"onUpdate:modelValue":ie[15]||(ie[15]=Fe=>S(A).x=Fe),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"Y","label-width":S(d)},{default:X(()=>[H(it,{modelValue:S(A).y,"onUpdate:modelValue":ie[16]||(ie[16]=Fe=>S(A).y=Fe),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"Z","label-width":S(d)},{default:X(()=>[H(it,{modelValue:S(A).z,"onUpdate:modelValue":ie[17]||(ie[17]=Fe=>S(A).z=Fe),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1})]),U("div",MWe,[U("div",DWe,[U("div",kWe,[H(S(Lt),{onClick:ie[18]||(ie[18]=Fe=>S(_).adddialog=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",RWe,[U("div",LWe,[H(S(Lt),{onClick:ie[19]||(ie[19]=Fe=>re())},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(_).dialogsgdelect,"onUpdate:modelValue":ie[23]||(ie[23]=Fe=>S(_).dialogsgdelect=Fe),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:Fe,titleClass:Bt})=>[U("div",OWe,[H(Tt,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Fe,class:j(Bt)},"删除框",10,AWe)])]),default:X(()=>[U("h4",NWe,[lt(" 是否确认删除 "),U("span",VWe,Ke(S(E)),1)]),U("div",BWe,[U("div",IWe,[U("div",$We,[H(S(Lt),{onClick:ie[21]||(ie[21]=Fe=>S(_).dialogsgdelect=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",PWe,[U("div",FWe,[H(S(Lt),{onClick:ie[22]||(ie[22]=Fe=>{fe(),S(_).dialogsgdelect=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(_).gdadddialog,"onUpdate:modelValue":ie[39]||(ie[39]=Fe=>S(_).gdadddialog=Fe),"align-center":"","append-to-body":!0,width:"480",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:Fe,titleClass:Bt})=>[U("div",zWe,[H(Tt,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Fe,class:j(Bt)},Ke(S(k)),11,UWe)])]),default:X(()=>[U("div",null,[H(Me,{label:"编号","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).code,"onUpdate:modelValue":ie[24]||(ie[24]=Fe=>S(V).code=Fe),maxlength:"18",oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"名称","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).name,"onUpdate:modelValue":ie[25]||(ie[25]=Fe=>S(V).name=Fe),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",GWe,[H(Me,{label:"开始节点","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).snId,"onUpdate:modelValue":ie[26]||(ie[26]=Fe=>S(V).snId=Fe),disabled:"",class:"w-50 m-2",oninput:"value=value.replace(/[^0-9.]/g,'')",placeholder:"请选择节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",HWe,[H(S(Lt),{type:"primary",onClick:ie[27]||(ie[27]=Fe=>{ve("start")})},{default:X(()=>[lt("选择开始节点")]),_:1})])]),U("div",WWe,[H(Me,{label:"结束节点","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).enId,"onUpdate:modelValue":ie[28]||(ie[28]=Fe=>S(V).enId=Fe),disabled:"disabled",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请选择节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",jWe,[H(S(Lt),{type:"primary",onClick:ie[29]||(ie[29]=Fe=>{ve("end")})},{default:X(()=>[lt("选择结束节点")]),_:1})])]),H(Me,{label:"粗糙系数","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).roughCoe,"onUpdate:modelValue":ie[30]||(ie[30]=Fe=>S(V).roughCoe=Fe),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",KWe,[H(Me,{label:"截面类型","label-width":S(h)},{default:X(()=>[H(S(Cf),{modelValue:S(V).sectionType,"onUpdate:modelValue":ie[31]||(ie[31]=Fe=>S(V).sectionType=Fe),placeholder:"请选择"},{default:X(()=>[(z(!0),ne(bt,null,ln(S(m),Fe=>(z(),xe(be,{key:Fe.id,label:Fe.label,value:Fe.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),U("div",YWe,[S(V).sectionType=="CIRCULAR"?(z(),ne("div",qWe,[H(Tt,{src:S(CHe),fit:"contain"},null,8,["src"])])):S(V).sectionType=="RECTANGLE"?(z(),ne("div",XWe,[H(Tt,{src:S(xHe),fit:"contain"},null,8,["src"])])):(z(),ne("div",ZWe,[H(Tt,{src:S(_He),fit:"contain"},null,8,["src"])]))])]),_:1},8,["label-width"])]),H(Me,{label:"截面参数1","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).sectionPara1,"onUpdate:modelValue":ie[32]||(ie[32]=Fe=>S(V).sectionPara1=Fe),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"截面参数2","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).sectionPara2,"onUpdate:modelValue":ie[33]||(ie[33]=Fe=>S(V).sectionPara2=Fe),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"截面参数3","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).sectionPara3,"onUpdate:modelValue":ie[34]||(ie[34]=Fe=>S(V).sectionPara3=Fe),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"截面参数4","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).sectionPara4,"onUpdate:modelValue":ie[35]||(ie[35]=Fe=>S(V).sectionPara4=Fe),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Me,{label:"截面参数5","label-width":S(h)},{default:X(()=>[H(it,{modelValue:S(V).sectionPara5,"onUpdate:modelValue":ie[36]||(ie[36]=Fe=>S(V).sectionPara5=Fe),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",QWe,[H(f6,{ref_key:"gfx",ref:n,solverType:"fem",accept:".x",upId:"1",gfname:S(o),name:"网格文件上传",onHandfiles:Oe,onGassaddgfid:He,style:{margin:"20px 0 0 0"}},null,8,["accept","gfname"]),H(f6,{ref_key:"inp",ref:r,solverType:"fem",accept:".inp",name:"边界文件",upId:"2",gfname:S(s),onHandfiles:Oe,onGassaddbfid:$e,style:{margin:"20px 0 0 0"}},null,8,["accept","gfname"])])]),U("div",JWe,[U("div",e9e,[U("div",t9e,[H(S(Lt),{onClick:ie[37]||(ie[37]=Fe=>{Ne("cancel")})},{default:X(()=>[lt("取消")]),_:1})])]),U("div",n9e,[U("div",r9e,[H(S(Lt),{onClick:ie[38]||(ie[38]=Fe=>{Ne("confirm")})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(_).guddialogsgdelect,"onUpdate:modelValue":ie[42]||(ie[42]=Fe=>S(_).guddialogsgdelect=Fe),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:Fe,titleClass:Bt})=>[U("div",a9e,[H(Tt,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Fe,class:j(Bt)},"删除框",10,i9e)])]),default:X(()=>[U("h4",o9e,[lt(" 是否确认删除 "),U("span",s9e,Ke(S(E)),1)]),U("div",l9e,[U("div",u9e,[U("div",c9e,[H(S(Lt),{onClick:ie[40]||(ie[40]=Fe=>S(_).guddialogsgdelect=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",f9e,[U("div",d9e,[H(S(Lt),{onClick:ie[41]||(ie[41]=Fe=>{Ae(),S(_).guddialogsgdelect=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(kQ,{ref_key:"nodeselect",ref:l,onQueding:he},null,512)])])])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},512),[[pn,S(u)]])])])}}};const p9e=t=>(LC("data-v-eb49f278"),t=t(),OC(),t),v9e={class:"my-header"},g9e=["id"],y9e={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},m9e={class:"guand_1"},b9e=p9e(()=>U("span",{class:"spantext"},"搜索",-1)),S9e=[b9e],w9e={class:"demo-pagination-block",style:{"margin-top":"20px"}},_9e={class:"dialog-footer footer_div l_btn"},x9e={class:"footerbtn flex1"},C9e={class:"borderimg"},T9e={class:"footerbtn flex1"},E9e={class:"borderimg"},M9e={__name:"PipeIine",props:{},emits:["pipelineapi"],setup(t,{expose:e,emit:n}){W({dianadddialog:!1});let r=W(99),a=W(500),i=W([]);const o=W(),s=W([]);let l=W(!1),u=W(1),c=W(""),f=W("");const d=W(1),h=W(5);Pt(()=>{});const p=({row:C,rowIndex:x})=>x%2!=0?"evenRow":"oddRow";function v(){f.value=c.value,y(c.value)}const g=C=>{y()},y=C=>{const x={transCode:"D00001",count:h.value,page:d.value,searchtag:C};Tr(x).then(_=>{i.value=_.rows,u.value=_.total}).catch(_=>{sn.error(_.returnMsg)})},m=(C,x)=>{if(C.length>1){o.value.clearSelection(),o.value.toggleRowSelection(x,!0);let _=[];_.push(C[1]),s.value=_;return}C.length==1?s.value=C:C.length==0},b=()=>{n("pipelineapi",""),d.value=1,s.value.length!=0&&n("pipelineapi",s.value[0])},w=()=>{b()};return e({dialogVisiblenode:l,pipelinedata:y,searchtaggd:c}),(C,x)=>{const _=Xe("el-image"),T=Xe("el-input"),M=Xe("el-form-item"),E=Xe("el-table-column"),k=Xe("el-table"),R=Xe("el-pagination");return z(),ne("div",null,[H(S(Ta),{modelValue:S(l),"onUpdate:modelValue":x[5]||(x[5]=L=>Ot(l)?l.value=L:l=L),"align-center":"","append-to-body":!0,width:"700",class:"log_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:X(({titleId:L,titleClass:A})=>[U("div",v9e,[H(_,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:L,class:j(A)}," 选择巷道",10,g9e)])]),default:X(()=>[U("div",y9e,[U("div",m9e,[H(M,{label:"节点选择","label-width":S(r)},{default:X(()=>[H(T,{modelValue:S(c),"onUpdate:modelValue":x[0]||(x[0]=L=>Ot(c)?c.value=L:c=L),class:"w-50 m-2",placeholder:"巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",{class:"asdis_btn"},[U("div",{class:"flex_a"},[U("div",{class:"btns",onClick:v},S9e)])])]),H(k,{"row-class-name":p,"max-height":S(a),ref_key:"multipleTableRef",ref:o,data:S(i),style:{width:"100%"},onSelect:m,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:X(()=>[H(E,{type:"selection",width:"55"}),H(E,{property:"snId",label:"开始节点"}),H(E,{property:"enId",label:"结束节点"}),H(E,{property:"id",label:"编号",width:"70"}),H(E,{property:"name",label:"名称",width:"70"}),H(E,{property:"sectionType",label:"截面类型",width:"120"}),H(E,{property:"roughCoe",label:"粗糙系数"}),H(E,{property:"sectionPara1",label:"截面参数1",width:"90"}),H(E,{property:"sectionPara2",label:"截面参数2",width:"90"}),H(E,{property:"sectionPara3",label:"截面参数3",width:"90"}),H(E,{property:"sectionPara4",label:"截面参数4",width:"90"}),H(E,{property:"sectionPara5",label:"截面参数5",width:"90"})]),_:1},8,["max-height","data","header-cell-style"]),U("div",w9e,[H(R,{"current-page":d.value,"onUpdate:currentPage":x[1]||(x[1]=L=>d.value=L),"page-size":h.value,"onUpdate:pageSize":x[2]||(x[2]=L=>h.value=L),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(u)),class:"mt-4",onCurrentChange:g},null,8,["current-page","page-size","total"])]),U("div",_9e,[U("div",x9e,[U("div",C9e,[H(S(Lt),{onClick:x[3]||(x[3]=L=>Ot(l)?l.value=!1:l=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",T9e,[U("div",E9e,[H(S(Lt),{onClick:x[4]||(x[4]=L=>{w(),Ot(l)?l.value=!1:l=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},D9e=yb(M9e,[["__scopeId","data-v-eb49f278"]]),k9e={class:"l_Dialog bou tablebk"},R9e={class:"common-layout",style:{margin:"0"}},L9e={class:"demo-collapse"},O9e={class:"l_Dialog"},A9e={class:"classtab"},N9e={class:"asides_content"},V9e={class:"jc_content tablecolor jc_content"},B9e={class:"font12 my_content1"},I9e={class:"btncolor tablefocus bmar"},$9e={class:"dialog-footer footer_div l_btn"},P9e={class:"footerbtn flex1"},F9e={class:"borderimg"},z9e={class:"footerbtn flex1"},U9e={class:"borderimg"},G9e={class:"footerbtn flex1"},H9e={class:"borderimg"},W9e={class:"my-header"},j9e=["id"],K9e={class:"demo-input-suffix firsttitle magintop guand_1"},Y9e={class:"btn2"},q9e={class:"input"},X9e={class:"dialog-footer footer_div l_btn"},Z9e={class:"footerbtn flex1"},Q9e={class:"borderimg"},J9e={class:"footerbtn flex1"},e7e={class:"borderimg"},t7e={class:"my-header"},n7e=["id"],r7e={class:"delecttitle"},a7e={class:"spanclad"},i7e={class:"dialog-footer footer_div l_btn"},o7e={class:"footerbtn flex1"},s7e={class:"borderimg"},l7e={class:"footerbtn flex1"},u7e={class:"borderimg"},c7e={__name:"MenuSensor",setup(t,{expose:e}){let n=W(),r=W(!0),a=W(!1),i=W(!1),o=W(!1);W("Fire");const s=W(100);let l=W(["1","2"]),u=W("");W("first");let c=W(180),f=W([]),d=W({}),h=W(),p=W({pid:0,seid:0,site:0,type:"温度传感器",senobj:""}),v=W({selectstr:"",site:""});W("");const g=({row:E,rowIndex:k})=>k%2!=0?"evenRow":"oddRow",y=E=>{d.value=E,r.value=!0},m=()=>{JSON.stringify(d.value)=="{}"?sn.error("你还没有选中修改的项目"):(o.value=!0,h.value=d.value.type)},b=()=>{const E={transCode:"D10012",seid:d.value.seid};Tr(E).then(k=>{w()}).catch(k=>{sn.error(k.returnMsg)})};Pt(()=>{w()});const w=()=>{Tr({transCode:"D10010",type:"Fire"}).then(k=>{f.value=k.rows,d.value={}}).catch(k=>{sn.error(k.returnMsg)})},C=()=>{u.value="添加",r.value=!1,i.value=!0,p.value.seid="",p.value.pid="",p.value.type="",p.value.site=0,v.value.selectstr="",d.value={}},x=()=>{const E={transCode:"D10011",seid:p.value.seid,pid:p.value.pid,site:p.value.site,type:p.value.type};Tr(E).then(k=>{f.value=k.rows,w()}).catch(k=>{sn.error(k.returnMsg)})},_=()=>{u.value="修改",JSON.stringify(d.value)=="{}"?sn.error("你还没有选中修改的项目"):(p.value.seid=d.value.seid,p.value.pid=d.value.pid,p.value.site=d.value.site,p.value.type=d.value.type,v.value.selectstr=d.value.pname,i.value=!0)},T=()=>{n.value.searchtaggd="",n.value.dialogVisiblenode=!0,n.value.pipelinedata("")},M=E=>{p.value.pid=E.id,v.value.selectstr=E.name,d.value.pid=E.id};return e({sendialogVisible:a}),(E,k)=>{const R=Xe("el-icon"),L=Xe("el-table-column"),A=Xe("el-table"),V=Xe("el-collapse-item"),G=Xe("el-collapse"),I=Xe("el-image"),$=Xe("el-input"),N=Xe("el-form-item"),P=Xe("el-input-number"),Y=Xe("el-form"),J=Xe("el-aside");return z(),ne("div",k9e,[U("div",R9e,[Ft(H(J,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:X(()=>[U("div",L9e,[H(G,{modelValue:S(l),"onUpdate:modelValue":k[4]||(k[4]=re=>Ot(l)?l.value=re:l=re),accordion:""},{default:X(()=>[H(V,{name:"1",class:"imgneon"},{title:X(()=>[H(R,{class:"iconimg Frame3",fit:"contain"}),lt(" 传感器信息"),H(R,{class:"header-icon"})]),default:X(()=>[U("div",O9e,[U("div",A9e,[U("div",N9e,[U("div",V9e,[U("div",B9e,[U("div",I9e,[H(A,{data:S(f),style:{width:"480px"},"max-height":S(c),"highlight-current-row":S(r),"row-class-name":g,onRowClick:k[0]||(k[0]=re=>y(re)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{default:X(()=>[H(L,{type:"index",label:"编号"}),H(L,{prop:"type",label:"类型"}),H(L,{prop:"pname",label:"所在巷道"}),H(L,{prop:"site",label:"位置"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),U("div",$9e,[U("div",P9e,[U("div",F9e,[H(S(Lt),{onClick:k[1]||(k[1]=re=>{C()})},{default:X(()=>[lt("添加")]),_:1})])]),U("div",z9e,[U("div",U9e,[H(S(Lt),{onClick:k[2]||(k[2]=re=>m())},{default:X(()=>[lt(" 删除 ")]),_:1})])]),U("div",G9e,[U("div",H9e,[H(S(Lt),{onClick:k[3]||(k[3]=re=>_())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])])])]),_:1})]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(i),"onUpdate:modelValue":k[11]||(k[11]=re=>Ot(i)?i.value=re:i=re),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:X(({titleId:re,titleClass:oe})=>[U("div",W9e,[H(I,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:re,class:j(oe)},Ke(S(u)),11,j9e)])]),default:X(()=>[H(Y,{class:"demo-form-inline",inline:!0,model:S(p)},{default:X(()=>[H(N,{label:"类型","label-width":s.value},{default:X(()=>[H($,{modelValue:S(p).type,"onUpdate:modelValue":k[5]||(k[5]=re=>S(p).type=re),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",K9e,[H(N,{label:"巷道名称","label-width":s.value},{default:X(()=>[H($,{modelValue:S(v).selectstr,"onUpdate:modelValue":k[6]||(k[6]=re=>S(v).selectstr=re),disabled:"",class:"w-50 m-2",placeholder:"巷道名称"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",Y9e,[H(S(Lt),{type:"primary",onClick:k[7]||(k[7]=re=>{T()})},{default:X(()=>[lt("选择巷道")]),_:1})])]),U("div",q9e,[H(N,{label:"位置","label-width":s.value},{default:X(()=>[H(P,{modelValue:S(p).site,"onUpdate:modelValue":k[8]||(k[8]=re=>S(p).site=re),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])])]),_:1},8,["model"]),U("div",X9e,[U("div",Z9e,[U("div",Q9e,[H(S(Lt),{onClick:k[9]||(k[9]=re=>Ot(i)?i.value=!1:i=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",J9e,[U("div",e7e,[H(S(Lt),{onClick:k[10]||(k[10]=re=>{x(),Ot(i)?i.value=!1:i=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(o),"onUpdate:modelValue":k[14]||(k[14]=re=>Ot(o)?o.value=re:o=re),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:re,titleClass:oe})=>[U("div",t7e,[H(I,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:re,class:j(oe)},"删除框",10,n7e)])]),default:X(()=>[U("h4",r7e,[lt(" 是否确认删除类型: "),U("span",a7e,Ke(S(h)),1)]),U("div",i7e,[U("div",o7e,[U("div",s7e,[H(S(Lt),{onClick:k[12]||(k[12]=re=>Ot(o)?o.value=!1:o=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",l7e,[U("div",u7e,[H(S(Lt),{onClick:k[13]||(k[13]=re=>{b(),Ot(o)?o.value=!1:o=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(D9e,{ref_key:"pipeline",ref:n,selectstr:S(v).selectstr,onPipelineapi:M},null,8,["selectstr"])])]),_:1},512),[[pn,S(a)]])])])}}},MM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAACLhJREFUWEd1V3twVNUZ/74bsnmBSRCS8EiACCIWKIzQ4uC0yCgWKELLqExbB3AGsQMEC1apdpo4tdPOVLH8UbWCVqY+WhnEYspjJAXE8CahAZKQQHazSchmN7t7N7t7797H3q9zzn3s3UTvzs4599zv+873Pr+D8A1PiG5tFiCnQgABwPqzGZvbP3tuspur3zbqhgqSLoGkSiDpCWtkcwlSfD3h+s7WkyDbaw6fBCkXXUqXfFc3+/cPVx+HLwSpY14irTSfSVwnBAQiQAAEAdF5F1Agtm6OhIyO0TgjCpwWTF7SDA11QwMtrYJm6KAbGqlpBTVDAz2tARs1QyfNUEBLa+w7slEzNMbLaFA1VNLSXA5paRUHvG16Qoot8NaI/3PbMMKgQbp96J+Dp9c0xJuIuJrmw+dMd/Yg/2QpzIn4OxmAFoXJZK2bhlkPW2PvfGTUZNIREw/kEFqOdPay+S3eiP8W+FvOn/bWiA9/q0EsOnFdaf61bx9okCa+mdsqgylibZlR1lSdGUnsK9OKzc2paQwxRbnCIzKcrzgyTVKTj62bck0RlpMYLQEYBJ1nDqOajD/StT3WkPGXawcWnY8GTq85Ll5hqWS6mynEZAnAlswX4vlnbUl8Lx4986MdUmQ8zOeWT7jWJrcruramlkxObelsh9nyKnJetpW1STzUA3eav7rRFRXnQx3oLtcAsOgMKPHmXbf3g0Z6JqWGp43tseGuttMos+44AlhkBTOdWFo6qTgsjbJEMmKTNkPlnloO7G06gVI0uMG3XeQNwiEfJO/Jt/xHl5wWr9nBMevCqhVOiEAby1fhp6ETkDRkx+is3AeAteOXQmvSC22Sl6tgZ21RToG1pSuPLUekKQ0pQ4GHSxfClXgbxPSEWYYEuK5sGfjVIDXF2ziNzc1GZWgQ+pu+7DOi4gxfHaS4nlHq+WFPKnhqR9vfQQMrOpYho3MKYfm4B027iHBO0T2QJgPaZB/vcCFVhNNik50dtHHCKsjHXJxeUAl/9n8IAS1MLB1ZXe2b+QpeTXQ45WC7MwcEuCX3wpFII22oWInHIuepQMiHHBBYzdKGihV4LHKBqvLK8OPgccuRVn0R4GDnOUqGul/1bRNf5QZFyHfyL13/WdIQaTHTwmrCrDIneMbBlsq1cDBwEsfm3gUziirhQuwGq1deuM9MXInbbr4JBUIe1FQ9AYOaSO/fqYcKz9340pSfQ/1gI5yIXuGVtOfeHfi3vs9pcckc2Nt3mDthaekDWJlfTvv7j8Akz3hcP3E5XBxqpUKhAD2Yy2lWjFsER8PneeYcCDXwfbmlSNxZeioOwatHxJSqz0AWHb8cOrX12j7SjLSVhHb5AXggF8fnlVCfEoIXp/4MDwe/hvZkN+9n7JlRWAmFggd3TF0Hl2Pt8LV4jRcu248p9PTEZSinFXi54114c9Y22NK6m56qWIqzx1TTgYFTsGHCctzV8Q6opFF14STYOGk5XBTbsNQzhsaOGoPtkp8WFX8H6m69j4tL51IjO3Yyzd3pG3FfM8oDN9/BCPlfOTPY9trvbx60G6jTTRj14+UPwUOlc6Asr5SlAPQrYS7k3qJK6E0FQUorsLennkQ9Ad8vnsW/PTpuAV6KtVNUjeMdJQydyV5I6BK8PWcHPHd9N9/nFxMfxeemrIYnm2rhjhI2Wz4Cbar8MdaHztGmyatwt/dTeLZqFY3NHYP1wXMwpaAC/hVoIPu8y7RUAFXsw0RX43WMkrfEIMG7/vJbxX1yxO6xmfPCOhT3z98Fv+v4gLqlAHiEXNg7dyduanmD1LTOe3tZfilV5ZfxsD05cQk0hJsprA7xBL4s3uSGvjt3Jz7b8gbNueseeH7aWvwicBZWViyiXa17MazFuFGbp66CLwLnoKb6pzSkSagYKuTneGhC3ljcceNtUA0tc2A7XQ8gcfNL1OTwGq5AjPpqj/ZfrftD+yEzO+1zjbdG80RbUDwTn5j0A4hocarMH4/v+Y9Rc6zTETm9aDLcP2YKI8cflS+E89E2ELUEbwCHB85yZd+b/wIcCjTSyrLv4W/bPgBmxOLS2bi1ejU83fQn0ikNL81YB4U5eXCw7wz2yEGYPnoSLBp7P8V1CVpiXdge7wHJSGU1Bj3qQ7Xv0vnbNbEHrS7nLQHyeJ86u6e4Vw6bR58DUUyD7htdhUvL5sHCkpkQ1RLA2uwnvaeoKdqJOYJA5Z5S58zYUv04UwgCqSivScXQKKzG4OMFv8GD/Y00oIig6IpzZJR6RkNfKkL3jZ6Md3uK4Ua8m1aUL0BRS5IAAk4rqoA7KTPVX+88QCzNM0d0mpTOI2iklXkM1zlC4xSqre+9Uld7/YCNrbgybLM93/0l9kghqg9chHPhVo4ephVV0ObqFfBZbyP65SA9M3UZbwQmysl+upNB+Kj3JD1W9gAWjsq3vMsgToaeOenUYIsFecw0ycNcfG32eqht/Qetr3oEZxdPha3NfzXBhykFDbGDjFDLv7tqYj/hC/bWrJYEo8i7+qvXi3ukwQx0cgERG8K4IUimzWcDFg6ZHLjknKcObLHhj13YvDOaaeGGRhmAbANcE9gTRxHskO05njJSynzfC/H2LIPYS5LCtZ/7r9S9fPUTVksWIswCVsOdn427+Klv6exG1DY6N51qY1Wr5dqo0yXackYWlB0Ordj1RWwhGurc46sZ+pXNnZUeUYqWjDLI+1jDH4u7EyErfBmDRsA113XCDaNtZGBj0JFwzDQqg3Htu5OllhUo+4rhACUb/BIipuM0auC/MZKVWb4Xk4FvNIgtyhSr/az7Uu3OSx+aSNslZMScQ32OGDKA083jON2lsPs+5I53Ft+IMhxx98qLXEBM9T/v2y7ucYsZwcmiVAi53riqlPCbqn21RoHSRhplXQZZl0DW2N81t9dc31O6TOyaLWsSmvQSOPzsmq3JIGnsGi6Dmlaz09mCNVYDMC+C7jIlLUCR2DQGSN2M/wem4lEkToLqMQAAAABJRU5ErkJggg==",DM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAACMFJREFUWEd1VwtwVFcZ/v67r4SE7DYQCCmR0KE4PBSsShDrILWA2A5SHCtTHR/jYKFaZUQ71rYTHKojtR2GcTqFxE7r9Cl9YKCp0A4NtCMIVJdXgABhkxCSJa/dzb7v7r2/nnPu3XsD9c7cufec/z/n/O//O4RPeNbv6/5uwEeTy70aAh4Pyr1AwKch4NVQ7vEg4AXKPRoE3ecDyr0elHsg6RN8GvyahoDPgwkWnwEgnTeRyhtI54tI5U2k8waycg5I6+JbQLpgIpU11FfwyHnF56xXtIzOfYkdd7x1o/h048QP2yIL/Uxh02R4NZKvz2N9S2ONvcRkz0seQfNYX2ss5zTigsmkF03ki4yCwchb/2JOL7J8xZxuqH85lv+CrtbZtLzBrBdN6urLFceS+hw8v+SyW4ebFHqwrXtPJm+uSRdMBgOQHASwGKgRSFIAtsekxiaTNaPOIGueTbKXMsByIPaQ61nxyX+ydhRciq10lnWwnCfizp4sOi6nD6C5cdX/VWh9W2ShBxTujxXAUhglZ+lhJqGROtumS2UtAR0hhGhsC01gYia1p6WrpZE9UrsSWCgv+Zx9be3dvMK+HxyPUybLX0XLosPOvi55H3q3d08sXVgTzxosFkjhbSVIyKdUtIWzx9IZNwgslCQi5VdJV94QSkk3S/mlY5TrbX1KCrvs6D7T8pCgXhvScbozfQwtjV+6SaGH2iILibTwxYGcEFq53rRCwyWAPHrcY0WtsKxGJUPIyBKia2C5j/jKfaQX7WBVFrKFLFnMOsDhUhJIzVX0q82Jj3ckaSxpfg8ti16xyGrxL/b37umP6WsGk0UuHWALLoVQOREs82AsW3TCx2Uxm13wJLKGnTaWWx0r+DWC36shpRuOMjcZiVFT4UMiWyDdvDH2SwojnjJw6kKyC5eyc3BoWVEKuqktstDQtHA4ki6FgGNNV3ID2Lqijp49OsQDyYIMM9t00rhWOP1h5a302wPX3IaR5J8vmULPHh3EytlBFsF38HKStyyvo1f+M4KOwVzJ8xsXT8Fz/xqE4H+3M4HLI3mnCIk0s0JQFROmjq4M4knjN2hp3CYF+uX7V/d0X8+t6Rst3BBOwJdnVmLdgmoaTBWkjh4iGFZmeDVNCrblwDXHvkT81D3TafuHUQyMFbB8dhDnB3Msyu7vVtRh+0fXsW5hNY73pujKqM7lXqI7Z07k/Z0JdI3kaOltE/GdBdX428lRrJ4Xwsd9Ge4f02Wh6IvlqWtUt2S0QpeZcrqJ05cyceiZmbTpvchCmJ7wRxeSbJrjs0OMZk3yU2XAy7dNCuD2yQHa1h7lJQ2V8jBh2WlVfmR1g9bMD8mmenE4z/VBH3UO5dAd1/nuWUE8/o+rNKnCi3vnhuQBq+eGsO9cQmWIKCYACgb41fAInlv7KdrbkYAIxpWzq+jMQAb9Vhp0jeh8bjArs/hGy/cO5GgkUfgjPXKw77FoTN8qwq1UKtUS6T3hoW8vqEZrR5zbLyex7Z7p9PbZGM+bWkaTJvikTE8disr9V88NUjxn8trPhCjg1TiaLNCT7/ezIfqT9dQF/fzM6np6PTxSsl6Rids6YrR+cQ2G00W8fTYuFzyyrJbEuReu56wiYIW/K6ftVjmWKlLPQO4C/bo9UltB/vOt/44Hs3nD1TjVr/DK/Npyu4bjR401eOH4MH+xvoJOXE1zWjfpvQsJWTCa759BD7/Zi6fX1GPnkUE8/JWpvOGN7lI/Fvs9+rVamlVTht0nY9wzmie/V+PNS6fSD16L8AQv0X0LqnlebZk8fEHdBERG8kjmDemRVz8ewdlo1mnYroDqvpajXIHXyYXbjg40Xe7Pbfng3JjVIe0qwjSjOsC3TymTBSBU4eXHl9fR3rNxPtyVlOGSzJt8rCeNBz5fLfPrpRPDtPP+Bt74Rjc9uGQKTwxo9Kf2qGw4tVU+PPPNevzsrR5s/cat2Nzax00rp1HrmQSO9aallyv8Gjyaaqq/uqsWe8/EcHFY5Y3AdobpBJvd+9KZIkVHCifR3Pg5qdD29kjIVzEh8pfDw8FYumA1PVVBbOgR8BD9+Vsz8Nfjw/j+osl4pyOOfR0JybN4ZiVvWFJDP34tAsMEmtc14CevC88AT6ysg8ifzX+/ys3rGujpgwM4H83zqnlBPLZiGr18Yhg7jww7PcpGIP/LraZV03l3eBTno1lVTUUFEkGuAWwySLRmBvcP6VQ0cTd2LTpYiu3nw0NNZ3ozW3YfH7UrsQyV+mo/7p0XxIpPV9GOw4N86NIYAl6iR1fUYV5tOdrOxdF5Pc/dIzmqrvTxZ6eV0YY7p2Dpjk67Ggk+Wj4nyHFhyWSBvz4nhHIf0UsnRnjtgltocoWXW0/HyO8jNDZMZIlOiHh2TYBEpRRRYEfXpjd7VGNWZYHSWZMTqWIrmhvvkxM24wvhSKjcWxXZuq8/OJhQJVqQ59eVUcOkMt7fEUdR7ivwnCaLRk2Vj2dNDuDIlbRM2llTyviO+gqcupZBZzTrKkaEMi8JRE0PfKEaH15Jcd+oLoEQoHH9LX7Uh3x0NJJSKEUJ5oKDFky10LLFI2HJaKKYM4HF2NV4apxCYtDaGWs6eim1ZVf7kAta2kjbAeYWNLZ1dtVQJaBC0BYetczprJaYqoS+VSQp+O08km6jSRv0O9BRQGRmyuSZ83ljF1oaN9pr3btgTzgWqqzSIj99uSfYP6q7/GcXiXEFS3rLYlJXDcdEpcuBksYNY62CaXnHsYZT2h0byBalrhhKYQfrMjidMfIoZGbixWXRT1RITP6zJ9l08PxY0+/f6bcFdoWAOxxkdEhLuoNahaSDsh2r2wKrHiehtmUB5XHRYN3Xi9KFwka1lvEVT7HIZBjmk2hZ/ITLteP8LOfbI7FQld8XSWSMkLhSB7yEgEfkgEfC52xBXn+R0U2BEOTXfhXNPWa2+EjNC35GpmAgkxfrTWSsNeKWOl4wu7mrr0TYLl8xEBVQBy8uy7nX/Rdr8RbRdENQYQAAAABJRU5ErkJggg==",kM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAAB+hJREFUWEeVV1lsXFcZ/s4dz3i8xYmVxTUmrZsmbWhCgiWrVLR1SyktMaikIOANikAIJBRR8UBVEFULyDwQRThB5aEilVB4KGVtCAipHtPYCSRxTTZnsT3jZbyMM5595t65954fneXeuR4XJO7DzFn+c/7/+/fDUPdRfDiK9p1xGEYnmAEwBvkPMdZzb2yIdb3v0wTnDDAYuFOFaxXhVEtwrRJc/S/mvFqCI9eK/t46On9fnC3Ks3p/6tzFwt6XY3CCENgGQLnpI5RbPcbnJ0iCIY9CDAS5WiCxy0DiX60xsUBEnIn/II3YI5D4gSFoxIxIIFeXq1GNk95T96zn6x14790TWElefvHTQ/jpfwUkrbPl7rh9M9YJqyC4aloFRAovmPsCC6EkFMnY21eIpXHFrw/GE1wqwxDg9XmhGC6u1fcIRXJSvMRNAcUKxQi6cjGFsb8O5qy823P4JLIeqHUWolz8iJtZOObMjPlQtAKlnjwBxJrStLaZEMy3ltrjpBiLM1JQSaMs592pcftGEMKIc97d/tmACXwfIWBy/Ldsaf7C4MDP8eIGQJ51zKund/Dymn9FTYs1Yd6PUf3a+80lkHrrBubeXn0YKPetUxCAqlnAhdhxq2Ka+5/9BaaCioKwjp1OHDMn/6ZcRdhauoF2PGLSs4K+HmSs3EjGlI40dVKuiXsM7U76Tt86aiD5BEJU+ZpcUU7kieHReGxmb59lc1NnTw4M4XkfEMXjUWp348XxUzt4JaMDPuB1pNSovEz6Vp1bgFhkEwtv3U1OJgEWbqo5FrfhFpdhRLcgtOkDYNF2ZkSayUlPgZfTCHUeYM7s2UC0EsLdfaguXED4roPgZp65mZl1ruojJ8B1bVw6+ytmm+WPDpzAPyV8ysV/aC1efbl84y/+QWVmpZ7mfYeJhcIbzC6AWdMxuKVVNO97DtXkRWLhZjQ9eJhV588TWAML73gQhdFjCLVspejupxk5FlhDmNzMHIzWbWBNHQyuDW6XYV59i0LtH0TzgS+xamKUGrY/wLhVgJtdgLCwvXqb8XJKK7WWZe8s36Dp68Mjh47jCUaZ+GaCG8+OvbaZl9Mq3QYzAYDQpi6AhVRGk0lLZjtJ5hZTCLXexcLb94K4A15KUfSex1h+bAjR3U+BymmyFscR3vYAi+76ONz8IrmZBBq275XCGo1tYEYYpcuniFyHbXrkBZiJd0GujUjXAZBZhL02LWPPyc4xcZ/WupcfmPDpKxf/gGo59wyjbOIlK3Xt1dz4r5WbBNO+9mOVfgOfR6OXGnd+jDV2fUTO8ueOU8fAUZaL/YRae7/CBEhzZhh2JoHW/V8ANzMy47GGKJVvnUFb39elosrX3iJhvWjPE8xKXpKKi3T3MTLzZN+5qb2FYK9eFwpd/zEgm06yqcl/TDAqzPc7xdXYnXd+TCILyGSi6qWf0nWGrsWFV3NkMSVioQja+r7Biu+9QWSb2PLUK6yavETFq2+irferrDwzDOFWjV0HwSsZinT1slBzB7iZhb2WkGvhbXuYOXcO4S33yGCVad77vPQvgN88rYu54u2RLMxeZqml6ddUDBUWhjOX3ugvJ0ZV2DNR1mWplAD97GHIpYAZVYYSgrbcPwCnsITK3Hm07PkkwDnKt85Q6/4vsrXYq2REWhDu2IXIjv3rap9wJTs7z6qpa+SW0qyx80PUdN/TWpuKVDDlVh65i68HCrYu2WBwbBOTV0Ys7rg9ClBlqd/JrsSWznyXhCDB1Khjxiv8G9shzbqhtRONXb3MaGyHW1lDNXUdnc+9jpW3j8BenZR6CjVvQ8u9j+kOQWhYuAIxJzdPZvKCFLZlzzMgq4DS7GgtZgFsP3QUqdMv1Hu+dKf52essm1n+0cAQfuBri4rLw+nzx/sL0+/4dUH43aZ9n6fmnsc39HzezW45jcr8GIXaupi5OIHNvV9GOvYKdTz6PWavzSDa3Yf0yCDstdvU2PlhRLsfYtzM+YJJpEYI+Su/kV1N2/2fIpEoKslxVZt0tu145DtY+dO3NmRhyyrT9O2JlVQRPc+fhFkDVFntt3OLsfnffQ0gty7vK/61tkMW2XUNqADfdt+T5LoOa931CRRu/Blm8l8U6diF1r3PsrXRo1Ixzd0PkZ1fWNdGRTbfjdWRQRkTLfc+yRo7D4jaVWubADTtfJgtv/1tHRE1oMmFKSqW8t8cGMIv/dDw1EWVO8OpkcH+/K0zsggp/9XNgmwQVUzJGA00EevpVIhJOkM21n5TreLR60h1x+41trrnVu2FPu8JoefeXUoSsFKxgMWluYlUEQ8L62wEZGf6q2sLscSpzxFx1297gllbc9NCyobYD1zVCEs4KpnIl4KnEP+R4RdsZXbVfXhJSHW5ddrSbmcEBOGcWHIpCcu0PjtwAn/0E2JdRgeZ2eHFv3//8dzk7+uzfT2pL1itTilzeAIFmdRfVqOpnallaV03VAPnwwjGVLFUonQmO3poCI8GBdv4wLML/dVsMrY2flJZQT3LIDQt/Ycc4o7NiFfJdRwGsuWcuzbAbXIdmwkaUenV2CZybIjYEmvEFb0ciz3x79jg3NWy1DcCvriynzSU2ZErVpjN+cHPDOHf/xOQjAe78hJAWyUQ75ltGIKpfCZzWzyby3DNAhxbPY25VVJjs6z31ZNaPZeLmk48ucvqyW2Js2pM4ikuFPL/fQuHhvCz+iP/AW4IU6nN1I/hAAAAAElFTkSuQmCC",RM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAAB7JJREFUWEd9V21oFOcWfs5sdrP5TjShgd5KC/bHNr1BaIX8KXrBe21iw421lAr+sdz2Z1VSWsRitJhS8EepcOmHXLg2IFx/VJBCE7wQ7w+VpNFqSgyoycZ8mNnNx66bnc1md2ZOed+Zd3Z2ktuBYd55P885zznPOS9hi4enp3tB9CdoGkAE+RVPRYXTFn3iEW3RJ55QyPlXr+hz19qWBcswYBsGzPV1WLkcTMOAtb5e1ifHDQNF0Z/LyXE5T6wVbdFX2uPx3x4+/GdQfFeyUjc/fLiLC4Vfce8eC4EYkHNI05x/ZhJt0S+/zCQF971EVFpLxGyaZBeLYNNUL1vFInGgT4zbhQJs01RjYi1sMdc05RqYJov/mYkJGKurHQcSiRG/UpsVmpq6al6/3sOTkywGuWy2Aw2x0Adgcv8B2SGVddETUzSxnAi2UFoCRnKSNIZQWhiLWViMbcckcks1Qx4tLebI4Y7JeU/jcTwYHf1fp67/5f8qxPH4Hntl5Ubh0iWQZTlCy1OdR6ElhfPpKgV0lHIEd9ubvkJSb6a7q6OeJ5PaS50njRdc4+iJkevXaT2TebMzmRxSG5QhxNPTwxs//bTXHh+XFnctI00prK3Q8h+qNgr2bTHHhQTS4i4iymaOHZTwwcBw/ktAubKkkkmMj45Ojep67AxgqkmO9efm9li6fiP3zTcg01ToSNv40fEj4z/Xh5JniCBantUDnryVgf7II/z7jI+NUWZl5R+dicS/yhWamRnOXbmyt3j3bsnHFSbC4V1fV7EjEWOWbih9X5iwsRGcTpfHnecLBKquBlVWgqJR2IkEYFlAayshkXCDUsYTEImACwVo27eDBSFkMtKom2IagJHNYvzOnUR+fT12MJ1Oy/UCHXN29kbmwgWJjoO8w2hCXEUCHiIq8EvhhfDu3Qg1NTFsW7TJzmSkqkKw3PffI/zKKxx+7TWipiZQXR3MiQnYKyuo3LcPxdFRCPbaGBwE1dSg5sQJyvb3c+WBA2QvLaE4MlJiTYd5FAFJ408/esTLyeTZTl0/6yg0M/Nr5uLFXYXx8TJSC7qU+FexVGatSITqPv4YuStXoFVVcbS7mzJffIHwq68i0t7OucuXQZEI6o4dw8adO/JMrb4eoZ07YT5+DK26mgu3b6MYj1P1oUNynZ1OI7RjB1jkoJUVYWBeHxoic3KyLByEQhv5PCYePEhbhUKMeHb27+bc3NXVzz8PMpoXCwFG81hPRXTNkSMUfv55RmMjZc6d48b+fkr19nL9yZNUvHePN0ZGKPTSS4ju2YPio0ewl5cRicXYuHwZNe+/T8IFM+fPsxaJoP70aUp/9plkyqqDB8lOJnnj5k3PtbfmC2B+cZH0ZPLfQqFTuVu3zj377rtS4lQUTITqri6EX3zRoRkndzgk4uYW0c5eusTR/fvJisd54+5dtAwMUHZggK1EAlX791P+5k2It+bQIcAwuKKtjSgUQnFyElpzM+xUCtq2bbB0HdGODnmO2F9raJBxZmeznh6p06eVz5WljvTaGs3Mz48Rx+ONrGnxRG9vg6nrXvCrBKm1thLV1jqolPzXiQ+VSCsrse2TT5C/fRu54WHUHz0KFIu82teH7efPY/XkSYR37hRxpKhbxpGILyoUpPBs2zB+/BGhhgbWWlocdlVniMRbKJA5O+t4kZvYVRIWv1MLC5TL53scORcW+rLDw2dWL1woi6FNSc5Pt76EGBKWrK0VAczhWIyqOjpQfPIEdW+/jezPP8O4elXOjrz8MuoPH3bKJRdx0c7/8gtyg4Py7Nq33kK4vZ2KU1M+DiIW/YtHjij3cLzEqUt4NZslPZX6b+fi4l8dhQRK4XB84cMPG4pPn3oMGcgPXhIOVgk1b7zBVfv2OcFeV4f0t99yqLmZms+eRWZgAJkffpDCCtetfecdWfb4XXbjt99gDA1J49d1d7O9tobsjRteDhT9rRcvQv/ggzL6lpUJM08tL4tacdebyeR9T0heWurLDA6eSX75ZTlNq7LDF41B5ARdW2trVLN7N9e9+y4V5+YQfuEFJE+d4u0ffSTihJY+/ZSr9u6laHu7YDOZF6RaAFW2tWGpv1/GRG1PD9X39MBcWPBISmgRbWvDXE+P8guP6dL5PC/lcv/p0vXDCgkHPoFSdXX8yXvvNRTm571CR8Lq+qxbc0nGFoKo5Kqq8orGRhZlfyQWo/z9+w7FM6OipQXm8jLCO3ZQRWsrVKJ0az8ONTXBuHVLOlDFc8+xbVkkmNCrjZkRff11Wh8bk/lRyGMTkWXbmM3l8nnm2EFdnylTSK5OpfrS166d0QWTuBXAJpoU1YHYNDDg1dC+UslxLMfP/dODRa5K5B6DBs92zizbR+yxapqcMc2vuxKJE2pteXGaSjWybcenuroaNmZnN+kS7PBX14ExiaJXTQavIW7lrkomefXwVR1bVOvK/TxXMwHWmROmYfy5e21NwrkJIYnSs2fH0teufTV3/HhZMtuK8fzXBoWCd68JIhi4WiiFt0LFf2Xxj0uB3chbraigHHD8QCLxtf+ozRe8eDyKlpY4NK3Vu067V2mRK8T1WV6h3a/6V33y6vwH49589wrurSsUSrcoadmgubz6Usk/k9D12FEg71fod9B/86+fB+YiAAAAAElFTkSuQmCC",f7e={class:"l_Dialog bou tablebk"},d7e={class:"common-layout",style:{margin:"0"}},h7e={class:"demo-collapse"},p7e={class:"asides_content"},v7e={class:"jc_content tablecolor"},g7e={class:"jc_padding font12"},y7e={class:"xian btncolor tablefocus bmar"},m7e={class:"classtab"},b7e={class:"asides_content"},S7e={class:"jc_content tablecolor jc_content"},w7e={class:"font12 my_content1"},_7e={class:"btncolor tablefocus bmar"},x7e={class:"dialog-footer footer_div l_btn"},C7e={class:"footerbtn flex1"},T7e={class:"borderimg"},E7e={class:"asides_content"},M7e={class:"jc_content tablecolor jc_content"},D7e={class:"font12 my_content1"},k7e={class:"btncolor tablefocus bmar"},R7e={class:"dialog-footer footer_div l_btn"},L7e={class:"footerbtn flex1"},O7e={class:"borderimg"},A7e={class:"asides_content"},N7e={class:"jc_content tablecolor jc_content"},V7e={class:"font12 my_content1"},B7e={class:"btncolor tablefocus bmar"},I7e={class:"dialog-footer footer_div l_btn"},$7e={class:"footerbtn flex1"},P7e={class:"borderimg"},F7e={class:"my-header"},z7e=["id"],U7e={key:0},G7e={key:1},H7e={class:"dialog-footer footer_div l_btn"},W7e={class:"footerbtn flex1"},j7e={class:"borderimg"},K7e={class:"footerbtn flex1"},Y7e={class:"borderimg"},q7e={__name:"Menudisaster",setup(t,{expose:e}){let n=W(!1),r=W(120),a=W(!1);const i=W("Water");let o=W(["1","2"]),s=W({region:"",height:"",add:"",temperature:"",co2:"",so2:"",ch4:""}),l=W({id:null,height:null,temperature:null,co2:null,ch4:null,so2:null});W(),W();let u=W(280),c=W(!1);const f=W([]);Pt(()=>{l.value={},h()});const d=(y,m)=>{l.value={},c.value=!1,i.value=y.props.name,h()},h=()=>{const y={transCode:"D10028",stype:i.value};Tr(y).then(m=>{f.value=m.rows,console.log(f)}).catch(m=>{sn.error(m.returnMsg)})},p=y=>{l.value=y,c.value=!0},v=()=>{c.value==!1?sn.error("你还没有选中修改的项目"):(i.value=="Water"?(s.value.add="突水",s.value.height=l.value.height,s.value.so2=null,s.value.co2=null,s.value.temperature=null,s.value.ch4=null):i.value=="Fire"?(s.value.add="火灾",console.log(l.value),s.value.so2=l.value.so2,s.value.co2=l.value.co2,s.value.temperature=l.value.temperature,s.value.height=null,s.value.ch4=null):(s.value.add="瓦斯",s.value.so2=l.value.so2,s.value.co2=l.value.co2,s.value.temperature=l.value.temperature,s.value.height=null,s.value.ch4=l.value.ch4),a.value=!0)},g=()=>{const y={transCode:"D10029",id:l.value.id,height:s.value.height,temperature:s.value.temperature,co2:s.value.co2,ch4:s.value.ch4,so2:s.value.so2};Tr(y).then(m=>{h(),c.value=!1}).catch(m=>{sn.error(m.returnMsg)})};return e({dialogVisible:n}),(y,m)=>{const b=Xe("el-icon"),w=Xe("el-image"),C=Xe("el-table-column"),x=Xe("el-table"),_=Xe("el-tab-pane"),T=Xe("el-tabs"),M=Xe("el-collapse-item"),E=Xe("el-collapse"),k=Xe("el-aside"),R=Xe("el-input"),L=Xe("el-form-item"),A=Xe("el-form");return z(),ne(bt,null,[U("div",f7e,[U("div",d7e,[Ft(H(k,{width:"480px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:X(()=>[U("div",h7e,[H(E,{modelValue:S(o),"onUpdate:modelValue":m[7]||(m[7]=V=>Ot(o)?o.value=V:o=V),accordion:""},{default:X(()=>[H(M,{name:"1",class:"imgneon"},{title:X(()=>[H(b,{class:"iconimg Frame3 imgneon",fit:"contain"}),lt(" 报警设置 ")]),default:X(()=>[U("div",p7e,[U("div",v7e,[U("div",g7e,[U("div",y7e,[U("div",m7e,[H(T,{modelValue:i.value,"onUpdate:modelValue":m[6]||(m[6]=V=>i.value=V),type:"card",class:"demo-tabs",onTabClick:d,stretch:!0},{default:X(()=>[H(_,{label:"突水",name:"Water"},{default:X(()=>[U("div",b7e,[U("div",S7e,[U("div",w7e,[U("div",_7e,[H(x,{data:f.value,style:{width:"480px"},"max-height":S(u),"highlight-current-row":S(c),onRowClick:m[0]||(m[0]=V=>p(V)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{default:X(()=>[H(C,{prop:"grade",label:"预警"},{default:X(V=>[V.row.grade=="1"?(z(),xe(w,{key:0,style:{height:"100%"},src:S(MM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="2"?(z(),xe(w,{key:1,style:{height:"100%"},src:S(DM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="3"?(z(),xe(w,{key:2,style:{height:"100%"},src:S(kM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="4"?(z(),xe(w,{key:3,style:{height:"100%"},src:S(RM),fit:"contain"},null,8,["src"])):we("",!0)]),_:1}),H(C,{prop:"height",label:"水位"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),U("div",x7e,[U("div",C7e,[U("div",T7e,[H(S(Lt),{onClick:m[1]||(m[1]=V=>v())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])]),_:1}),H(_,{label:"火灾",name:"Fire"},{default:X(()=>[U("div",E7e,[U("div",M7e,[U("div",D7e,[U("div",k7e,[H(x,{data:f.value,style:{width:"480px"},"max-height":S(u),"highlight-current-row":S(c),onRowClick:m[2]||(m[2]=V=>p(V)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{default:X(()=>[H(C,{prop:"grade",label:"预警"},{default:X(V=>[V.row.grade=="1"?(z(),xe(w,{key:0,style:{height:"100%"},src:S(MM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="2"?(z(),xe(w,{key:1,style:{height:"100%"},src:S(DM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="3"?(z(),xe(w,{key:2,style:{height:"100%"},src:S(kM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="4"?(z(),xe(w,{key:3,style:{height:"100%"},src:S(RM),fit:"contain"},null,8,["src"])):we("",!0)]),_:1}),H(C,{prop:"temperature",label:"温度"}),H(C,{prop:"co2",label:"co2"}),H(C,{prop:"so2",label:"so2"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),U("div",R7e,[U("div",L7e,[U("div",O7e,[H(S(Lt),{onClick:m[3]||(m[3]=V=>v())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])]),_:1}),H(_,{label:"瓦斯",name:"Gass"},{default:X(()=>[U("div",A7e,[U("div",N7e,[U("div",V7e,[U("div",B7e,[H(x,{data:f.value,style:{width:"480px"},"max-height":S(u),"highlight-current-row":S(c),onRowClick:m[4]||(m[4]=V=>p(V)),"header-cell-style":{background:"rgba(13, 22, 57,0) "}},{default:X(()=>[H(C,{prop:"grade",label:"预警"},{default:X(V=>[V.row.grade=="1"?(z(),xe(w,{key:0,style:{height:"100%"},src:S(MM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="2"?(z(),xe(w,{key:1,style:{height:"100%"},src:S(DM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="3"?(z(),xe(w,{key:2,style:{height:"100%"},src:S(kM),fit:"contain"},null,8,["src"])):we("",!0),V.row.grade=="4"?(z(),xe(w,{key:3,style:{height:"100%"},src:S(RM),fit:"contain"},null,8,["src"])):we("",!0)]),_:1}),H(C,{prop:"temperature",label:"温度"}),H(C,{prop:"co2",label:"co2"}),H(C,{prop:"ch4",label:"ch4"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),U("div",I7e,[U("div",$7e,[U("div",P7e,[H(S(Lt),{onClick:m[5]||(m[5]=V=>v())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])]),_:1})]),_:1},8,["modelValue"])])])])])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},512),[[pn,S(n)]])])]),H(S(Ta),{modelValue:S(a),"onUpdate:modelValue":m[15]||(m[15]=V=>Ot(a)?a.value=V:a=V),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:X(({titleId:V,titleClass:G})=>[U("div",F7e,[H(w,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:V,class:j(G)},Ke(S(s).add),11,z7e)])]),default:X(()=>[H(A,{class:"demo-form-inline",inline:!0,model:S(s)},{default:X(()=>[i.value=="Water"?(z(),ne("div",U7e,[H(L,{label:"水位","label-width":S(r)},{default:X(()=>[H(R,{modelValue:S(s).height,"onUpdate:modelValue":m[8]||(m[8]=V=>S(s).height=V),oninput:"value=value.replace(/[^0-9.]/g,'')",maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])])):we("",!0),i.value=="Fire"||i.value=="Gass"?(z(),ne("div",G7e,[H(L,{label:"温度","label-width":S(r)},{default:X(()=>[H(R,{modelValue:S(s).temperature,"onUpdate:modelValue":m[9]||(m[9]=V=>S(s).temperature=V),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(L,{label:"co2","label-width":S(r)},{default:X(()=>[H(R,{modelValue:S(s).co2,"onUpdate:modelValue":m[10]||(m[10]=V=>S(s).co2=V),oninput:"value=value.replace(/[^0-9.]/g,'')",maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),i.value=="Fire"?(z(),xe(L,{key:0,label:"so2","label-width":S(r)},{default:X(()=>[H(R,{modelValue:S(s).so2,"onUpdate:modelValue":m[11]||(m[11]=V=>S(s).so2=V),oninput:"value=value.replace(/[^0-9.]/g,'')",maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])):we("",!0),i.value=="Gass"?(z(),xe(L,{key:1,label:"ch4","label-width":S(r)},{default:X(()=>[H(R,{modelValue:S(s).ch4,"onUpdate:modelValue":m[12]||(m[12]=V=>S(s).ch4=V),oninput:"value=value.replace(/[^0-9.]/g,'')",maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])):we("",!0)])):we("",!0)]),_:1},8,["model"]),U("div",H7e,[U("div",W7e,[U("div",j7e,[H(S(Lt),{onClick:m[13]||(m[13]=V=>Ot(a)?a.value=!1:a=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",K7e,[U("div",Y7e,[H(S(Lt),{onClick:m[14]||(m[14]=V=>{g(),Ot(a)?a.value=!1:a=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])],64)}}},X7e={class:"bou tablebk"},Z7e={class:"common-layout",style:{margin:"0"}},Q7e={class:"demo-collapse"},J7e={class:"l_Dialog"},eje={class:"classtab"},tje={class:"asides_content"},nje={class:"jc_content tablecolor jc_content"},rje={class:"font12 my_content1"},aje={class:"btncolor tablefocus bmar"},ije={class:"dialog-footer footer_div l_btn"},oje={class:"footerbtn flex1"},sje={class:"borderimg"},lje={class:"footerbtn flex1"},uje={class:"borderimg"},cje={class:"footerbtn flex1"},fje={class:"borderimg"},dje={class:"my-header"},hje=["id"],pje={class:"delecttitle"},vje={class:"spanclad"},gje={class:"dialog-footer footer_div l_btn"},yje={class:"footerbtn flex1"},mje={class:"borderimg"},bje={class:"footerbtn flex1"},Sje={class:"borderimg"},wje={class:"my-header"},_je=["id"],xje={class:"demo-input-suffix firsttitle magintop guand_1"},Cje={class:"btn2"},Tje={class:"input"},Eje={class:"dialog-footer footer_div l_btn"},Mje={class:"footerbtn flex1"},Dje={class:"borderimg"},kje={class:"footerbtn flex1"},Rje={class:"borderimg"},Lje={class:"my-header"},Oje=["id"],Aje={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},Nje={class:"guand_1"},Vje=U("span",{class:"spantext"},"搜索",-1),Bje=[Vje],Ije={class:"demo-pagination-block",style:{"margin-top":"20px"}},$je={class:"dialog-footer footer_div l_btn"},Pje={class:"footerbtn flex1"},Fje={class:"borderimg"},zje={class:"footerbtn flex1"},Uje={class:"borderimg"},Gje={__name:"MenuCheck",setup(t,{expose:e}){let n=W(!1),r=W(!0),a=W(!1),i=W(!1);W("Fire"),W(100);const o=W(90),s=W(),l=W([]);let u=W(""),c=W([]),f=W({dianadddialog:!1,dialogVisiblenode:!1}),d=W(["1","2"]),h=W(1),p=W("");const v=W(1),g=W(5);let y=W(""),m=W({selectstr:"",site:0,chname:"",chcode:""}),b=W("");W("first");let w=W(160),C=W([]),x=W({}),_=W();W({pid:0,seid:0,site:0,type:"温度传感器"});const T=({row:re,rowIndex:oe})=>oe%2!=0?"evenRow":"oddRow",M=re=>{r.value=!0,x.value=re,y.value=re.cid,console.log(x.value)},E=()=>{JSON.stringify(x.value)=="{}"?sn.error("你还没有选中修改的项目"):(_.value=x.value.pname,i.value=!0)},k=()=>{const re={transCode:"D10006",cid:y.value};Tr(re).then(oe=>{R()}).catch(oe=>{sn.error(oe.returnMsg)})};Pt(()=>{R()});const R=()=>{Tr({transCode:"D10004"}).then(oe=>{C.value=oe.rows,x.value={}}).catch(oe=>{sn.error(oe.returnMsg)})},L=()=>{u.value="添加",a.value=!0,r.value=!1,m.value.selectstr="",m.value.site=0,m.value.chname="",m.value.chcode="",b.value="",y.value="",x.value={}},A=()=>{const re={transCode:"D10005",cid:y.value,pid:b.value,site:m.value.site,chname:m.value.chname,chcode:m.value.chcode};Tr(re).then(oe=>{f.value.dianadddialog=!1,sn({message:oe.returnMsg,type:"success"}),C.value=oe.rows,R()}).catch(oe=>{sn.error(oe.returnMsg)})},V=()=>{u.value="修改",JSON.stringify(x.value)=="{}"?sn.error("你还没有选中修改的项目"):(f.value.dianadddialog=!0,y.value=x.value.cid,m.value.chname=x.value.chname,m.value.chcode=x.value.chcode,m.value.site=x.value.site,m.value.selectstr=x.value.pname,b.value=x.value.pid)},G=()=>{p.value="",N("")};function I(){N(p.value)}const $=re=>{N(p.value)},N=re=>{const oe={transCode:"D00001",count:g.value,page:v.value,searchtag:re};Tr(oe).then(ue=>{c.value=ue.rows,h.value=ue.total}).catch(ue=>{sn.error(ue.returnMsg)})},P=(re,oe)=>{if(re.length>1){s.value.clearSelection(),s.value.toggleRowSelection(oe,!0);let ue=[];ue.push(re[1]),l.value=ue;return}re.length==1?l.value=re:re.length==0},Y=()=>{m.value.selectstr="",v.value=1,console.log(),l.value.length!=0&&(b.value=l.value[0].id,m.value.selectstr=l.value[0].name,console.log(l.value[0]))},J=()=>{Y()};return e({sendialogVisible:n}),(re,oe)=>{const ue=Xe("el-icon"),le=Xe("el-table-column"),fe=Xe("el-table"),se=Xe("el-collapse-item"),_e=Xe("el-collapse"),ve=Xe("el-image"),he=Xe("el-input"),q=Xe("el-form-item"),ce=Xe("el-input-number"),Se=Xe("el-pagination"),Ae=Xe("el-aside");return z(),ne("div",X7e,[U("div",Z7e,[Ft(H(Ae,{width:"357px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:X(()=>[U("div",Q7e,[H(_e,{modelValue:S(d),"onUpdate:modelValue":oe[4]||(oe[4]=Te=>Ot(d)?d.value=Te:d=Te),accordion:""},{default:X(()=>[H(se,{name:"1",class:"imgneon"},{title:X(()=>[H(ue,{class:"iconimg Frame3",fit:"contain"}),lt(" 监测点"),H(ue,{class:"header-icon"})]),default:X(()=>[U("div",J7e,[U("div",eje,[U("div",tje,[U("div",nje,[U("div",rje,[U("div",aje,[H(fe,{data:S(C),style:{width:"480px"},"max-height":S(w),"highlight-current-row":S(r),"row-class-name":T,onRowClick:oe[0]||(oe[0]=Te=>M(Te)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{default:X(()=>[H(le,{type:"index",label:"编号"}),H(le,{prop:"chcode",label:"监测点编号",width:"90"}),H(le,{prop:"chname",label:"名称"}),H(le,{prop:"pname",label:"所在巷道"}),H(le,{prop:"site",label:"位置"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),U("div",ije,[U("div",oje,[U("div",sje,[H(S(Lt),{onClick:oe[1]||(oe[1]=Te=>{L(),S(f).dianadddialog=!0})},{default:X(()=>[lt("添加")]),_:1})])]),U("div",lje,[U("div",uje,[H(S(Lt),{onClick:oe[2]||(oe[2]=Te=>E())},{default:X(()=>[lt(" 删除 ")]),_:1})])]),U("div",cje,[U("div",fje,[H(S(Lt),{onClick:oe[3]||(oe[3]=Te=>V())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])])])]),_:1})]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(i),"onUpdate:modelValue":oe[7]||(oe[7]=Te=>Ot(i)?i.value=Te:i=Te),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:Te,titleClass:Oe})=>[U("div",dje,[H(ve,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Te,class:j(Oe)},"删除框",10,hje)])]),default:X(()=>[U("h4",pje,[lt(" 是否确认删除 "),U("span",vje,"巷道"+Ke(S(_)),1)]),U("div",gje,[U("div",yje,[U("div",mje,[H(S(Lt),{onClick:oe[5]||(oe[5]=Te=>Ot(i)?i.value=!1:i=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",bje,[U("div",Sje,[H(S(Lt),{onClick:oe[6]||(oe[6]=Te=>{k(),Ot(i)?i.value=!1:i=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(f).dianadddialog,"onUpdate:modelValue":oe[15]||(oe[15]=Te=>S(f).dianadddialog=Te),"align-center":"","append-to-body":!0,width:"500px",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:Te,titleClass:Oe})=>[U("div",wje,[H(ve,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Te,class:j(Oe)},Ke(S(u)),11,_je)])]),default:X(()=>[H(q,{label:"监测点编号:","label-width":o.value},{default:X(()=>[H(he,{modelValue:S(m).chcode,"onUpdate:modelValue":oe[8]||(oe[8]=Te=>S(m).chcode=Te),oninput:"value=value.replace(/[^\\a-\\z\\A-\\Z0-9\\u4E00-\\u9FA5]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(q,{label:"监测点名称:","label-width":o.value},{default:X(()=>[H(he,{modelValue:S(m).chname,"onUpdate:modelValue":oe[9]||(oe[9]=Te=>S(m).chname=Te),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",xje,[H(q,{label:"巷道名称","label-width":o.value},{default:X(()=>[H(he,{modelValue:S(m).selectstr,"onUpdate:modelValue":oe[10]||(oe[10]=Te=>S(m).selectstr=Te),disabled:"",class:"w-50 m-2 text-disabled",placeholder:"请选择巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",Cje,[H(S(Lt),{type:"primary",onClick:oe[11]||(oe[11]=Te=>{G(),S(f).dialogVisiblenode=!0})},{default:X(()=>[lt("选择巷道")]),_:1})])]),U("div",Tje,[H(q,{label:"位置","label-width":o.value},{default:X(()=>[H(ce,{modelValue:S(m).site,"onUpdate:modelValue":oe[12]||(oe[12]=Te=>S(m).site=Te),min:0,max:10,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])]),U("div",Eje,[U("div",Mje,[U("div",Dje,[H(S(Lt),{onClick:oe[13]||(oe[13]=Te=>S(f).dianadddialog=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",kje,[U("div",Rje,[H(S(Lt),{onClick:oe[14]||(oe[14]=Te=>{A()})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(f).dialogVisiblenode,"onUpdate:modelValue":oe[21]||(oe[21]=Te=>S(f).dialogVisiblenode=Te),"align-center":"","append-to-body":!0,width:"600",class:"dialog_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:X(({titleId:Te,titleClass:Oe})=>[U("div",Lje,[H(ve,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Te,class:j(Oe)}," 选择巷道",10,Oje)])]),default:X(()=>[U("div",Aje,[U("div",Nje,[H(q,{label:"节点选择","label-width":o.value},{default:X(()=>[H(he,{modelValue:S(p),"onUpdate:modelValue":oe[16]||(oe[16]=Te=>Ot(p)?p.value=Te:p=Te),class:"w-50 m-2",placeholder:"巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",{class:"asdis_btn"},[U("div",{class:"flex_a"},[U("div",{class:"btns",onClick:I},Bje)])])]),H(fe,{"row-class-name":T,"max-height":S(w),ref_key:"multipleTableRef",ref:s,data:S(c),style:{width:"100%"},onSelect:P,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:X(()=>[H(le,{type:"selection",width:"55"}),H(le,{property:"snId",label:"开始节点"}),H(le,{property:"enId",label:"结束节点"}),H(le,{property:"id",label:"编号",width:"70"}),H(le,{property:"name",label:"名称",width:"70"}),H(le,{property:"sectionType",label:"截面类型",width:"120"}),H(le,{property:"roughCoe",label:"粗糙系数"}),H(le,{property:"sectionPara1",label:"截面参数1",width:"90"}),H(le,{property:"sectionPara2",label:"截面参数2",width:"90"}),H(le,{property:"sectionPara3",label:"截面参数3",width:"90"}),H(le,{property:"sectionPara4",label:"截面参数4",width:"90"}),H(le,{property:"sectionPara5",label:"截面参数5",width:"90"})]),_:1},8,["max-height","data","header-cell-style"]),U("div",Ije,[H(S(n1),{locale:S(r2)},{default:X(()=>[H(Se,{"current-page":v.value,"onUpdate:currentPage":oe[17]||(oe[17]=Te=>v.value=Te),"page-size":g.value,"onUpdate:pageSize":oe[18]||(oe[18]=Te=>g.value=Te),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(h)),class:"mt-4",onCurrentChange:$},null,8,["current-page","page-size","total"])]),_:1},8,["locale"])]),U("div",$je,[U("div",Pje,[U("div",Fje,[H(S(Lt),{onClick:oe[19]||(oe[19]=Te=>S(f).dialogVisiblenode=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",zje,[U("div",Uje,[H(S(Lt),{onClick:oe[20]||(oe[20]=Te=>{J(),S(f).dialogVisiblenode=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])]),_:1},512),[[pn,S(n)]])])])}}},Hje={class:"bou tablebk"},Wje={class:"common-layout",style:{margin:"0"}},jje={class:"demo-collapse"},Kje={class:"l_Dialog"},Yje={class:"classtab"},qje={class:"asides_content"},Xje={class:"jc_content tablecolor jc_content"},Zje={class:"font12 my_content1"},Qje={class:"btncolor tablefocus bmar"},Jje={class:"dialog-footer footer_div l_btn"},eKe={class:"footerbtn flex1"},tKe={class:"borderimg"},nKe={class:"footerbtn flex1"},rKe={class:"borderimg"},aKe={class:"footerbtn flex1"},iKe={class:"borderimg"},oKe={class:"my-header"},sKe=["id"],lKe={class:"dialog-footer footer_div l_btn"},uKe={class:"footerbtn flex1"},cKe={class:"borderimg"},fKe={class:"footerbtn flex1"},dKe={class:"borderimg"},hKe={class:"my-header"},pKe=["id"],vKe={class:"delecttitle"},gKe={class:"spanclad"},yKe={class:"dialog-footer footer_div l_btn"},mKe={class:"footerbtn flex1"},bKe={class:"borderimg"},SKe={class:"footerbtn flex1"},wKe={class:"borderimg"},_Ke={__name:"MenuPhysics",setup(t,{expose:e}){W();let n=W(!1),r=W(!0),a=W(!1),i=W(!1);W("Fire");const o=W(100);let s=W("");W("first");let l=W(["1","2"]),u=W(145),c=W([]),f=W({}),d=W(),h=W({coid:"",code:"",name:"",density:"",diffcoe:"",speheat:""});W({selectstr:"",site:""}),W("");const p=({row:x,rowIndex:_})=>_%2!=0?"evenRow":"oddRow",v=x=>{r.value=!0,f.value=x,console.log(f.value)},g=()=>{JSON.stringify(f.value)=="{}"?sn.error("你还没有选中修改的项目"):(i.value=!0,d.value=f.value.name)},y=()=>{console.log(d.value);const x={transCode:"D10015",coid:f.value.coid};Tr(x).then(_=>{m()}).catch(_=>{sn.error(_.returnMsg)})};Pt(()=>{m()});const m=()=>{Tr({transCode:"D10013"}).then(_=>{c.value=_.rows,f.value={}}).catch(_=>{sn.error(_.returnMsg)})},b=()=>{s.value="添加",r.value=!1,a.value=!0,h.value.coid="",h.value.code="",h.value.name="",h.value.density="",h.value.diffcoe="",h.value.speheat="",f.value={}},w=()=>{const x={transCode:"D10014",coid:h.value.coid,code:h.value.code,name:h.value.name,density:h.value.density,diffcoe:h.value.diffcoe,speheat:h.value.speheat};Tr(x).then(_=>{c.value=_.rows,m()}).catch(_=>{sn.error(_.returnMsg)})},C=()=>{s.value="修改",JSON.stringify(f.value)=="{}"?sn.error("你还没有选中修改的项目"):(a.value=!0,h.value.coid=f.value.coid,h.value.code=f.value.code,h.value.name=f.value.name,h.value.density=f.value.density,h.value.diffcoe=f.value.diffcoe,h.value.speheat=f.value.speheat)};return e({sendialogVisible:n}),(x,_)=>{const T=Xe("el-icon"),M=Xe("el-table-column"),E=Xe("el-table"),k=Xe("el-collapse-item"),R=Xe("el-collapse"),L=Xe("el-image"),A=Xe("el-input"),V=Xe("el-form-item"),G=Xe("el-form"),I=Xe("el-aside");return z(),ne("div",Hje,[U("div",Wje,[Ft(H(I,{width:"357px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:X(()=>[U("div",jje,[H(R,{modelValue:S(l),"onUpdate:modelValue":_[4]||(_[4]=$=>Ot(l)?l.value=$:l=$),accordion:""},{default:X(()=>[H(k,{name:"1",class:"imgneon"},{title:X(()=>[H(T,{class:"iconimg Frame3",fit:"contain"}),lt(" 物理属性"),H(T,{class:"header-icon"})]),default:X(()=>[U("div",Kje,[U("div",Yje,[U("div",qje,[U("div",Xje,[U("div",Zje,[U("div",Qje,[H(E,{data:S(c),style:{width:"480px"},"max-height":S(u),"highlight-current-row":S(r),"row-class-name":p,onRowClick:_[0]||(_[0]=$=>v($)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{default:X(()=>[H(M,{prop:"name",label:"名称"}),H(M,{prop:"density",label:"密度"}),H(M,{prop:"diffcoe",label:"扩散系数"}),H(M,{prop:"speheat",label:"比热"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),U("div",Jje,[U("div",eKe,[U("div",tKe,[H(S(Lt),{onClick:_[1]||(_[1]=$=>{b()})},{default:X(()=>[lt("添加")]),_:1})])]),U("div",nKe,[U("div",rKe,[H(S(Lt),{onClick:_[2]||(_[2]=$=>g())},{default:X(()=>[lt(" 删除 ")]),_:1})])]),U("div",aKe,[U("div",iKe,[H(S(Lt),{onClick:_[3]||(_[3]=$=>C())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])])])]),_:1})]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(a),"onUpdate:modelValue":_[12]||(_[12]=$=>Ot(a)?a.value=$:a=$),width:"400","align-center":"","append-to-body":!0,class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:X(({titleId:$,titleClass:N})=>[U("div",oKe,[H(L,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:$,class:j(N)},Ke(S(s)),11,sKe)])]),default:X(()=>[H(G,{class:"demo-form-inline",inline:!0,model:S(h)},{default:X(()=>[H(V,{label:"编号","label-width":o.value},{default:X(()=>[H(A,{modelValue:S(h).code,"onUpdate:modelValue":_[5]||(_[5]=$=>S(h).code=$),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(V,{label:"名称","label-width":o.value},{default:X(()=>[H(A,{modelValue:S(h).name,"onUpdate:modelValue":_[6]||(_[6]=$=>S(h).name=$),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(V,{label:"密度","label-width":o.value},{default:X(()=>[H(A,{modelValue:S(h).density,"onUpdate:modelValue":_[7]||(_[7]=$=>S(h).density=$),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(V,{label:"扩散系数","label-width":o.value},{default:X(()=>[H(A,{modelValue:S(h).diffcoe,"onUpdate:modelValue":_[8]||(_[8]=$=>S(h).diffcoe=$),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(V,{label:"比热","label-width":o.value},{default:X(()=>[H(A,{modelValue:S(h).speheat,"onUpdate:modelValue":_[9]||(_[9]=$=>S(h).speheat=$),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),U("div",lKe,[U("div",uKe,[U("div",cKe,[H(S(Lt),{onClick:_[10]||(_[10]=$=>Ot(a)?a.value=!1:a=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",fKe,[U("div",dKe,[H(S(Lt),{onClick:_[11]||(_[11]=$=>{w(),Ot(a)?a.value=!1:a=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(i),"onUpdate:modelValue":_[15]||(_[15]=$=>Ot(i)?i.value=$:i=$),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:$,titleClass:N})=>[U("div",hKe,[H(L,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:$,class:j(N)},"删除框",10,pKe)])]),default:X(()=>[U("h4",vKe,[lt(" 是否确认删除名称 "),U("span",gKe,Ke(S(d)),1)]),U("div",yKe,[U("div",mKe,[U("div",bKe,[H(S(Lt),{onClick:_[13]||(_[13]=$=>Ot(i)?i.value=!1:i=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",SKe,[U("div",wKe,[H(S(Lt),{onClick:_[14]||(_[14]=$=>{y(),Ot(i)?i.value=!1:i=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])]),_:1},512),[[pn,S(n)]])])])}}};function X_(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xKe(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OQ(t){let e,n,r;t.length!==2?(e=X_,n=(s,l)=>X_(t(s),l),r=(s,l)=>t(s)-l):(e=t===X_||t===xKe?t:CKe,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 CKe(){return 0}function TKe(t){return t===null?NaN:+t}const EKe=OQ(X_),MKe=EKe.right;OQ(TKe).center;const DKe=MKe,kKe=Math.sqrt(50),RKe=Math.sqrt(10),LKe=Math.sqrt(2);function a2(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>=kKe?10:i>=RKe?5:i>=LKe?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?a2(t,e,n*2):[s,l,u]}function OKe(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?a2(e,t,n):a2(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 rO(t,e,n){return e=+e,t=+t,n=+n,a2(t,e,n)[2]}function AKe(t,e,n){e=+e,t=+t,n=+n;const r=e<t,a=r?rO(e,t,n):rO(t,e,n);return(r?-1:1)*(a<0?1/-a:a)}function NKe(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function _V(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function AQ(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function mb(){}var v1=.7,i2=1/v1,Uv="\\s*([+-]?\\d+)\\s*",g1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",VKe=/^#([0-9a-f]{3,8})$/,BKe=new RegExp(`^rgb\\(${Uv},${Uv},${Uv}\\)$`),IKe=new RegExp(`^rgb\\(${Pl},${Pl},${Pl}\\)$`),$Ke=new RegExp(`^rgba\\(${Uv},${Uv},${Uv},${g1}\\)$`),PKe=new RegExp(`^rgba\\(${Pl},${Pl},${Pl},${g1}\\)$`),FKe=new RegExp(`^hsl\\(${g1},${Pl},${Pl}\\)$`),zKe=new RegExp(`^hsla\\(${g1},${Pl},${Pl},${g1}\\)$`),d6={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};_V(mb,y1,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:h6,formatHex:h6,formatHex8:UKe,formatHsl:GKe,formatRgb:p6,toString:p6});function h6(){return this.rgb().formatHex()}function UKe(){return this.rgb().formatHex8()}function GKe(){return NQ(this).formatHsl()}function p6(){return this.rgb().formatRgb()}function y1(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=VKe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?v6(e):n===3?new lo(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?VS(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?VS(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=BKe.exec(t))?new lo(e[1],e[2],e[3],1):(e=IKe.exec(t))?new lo(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=$Ke.exec(t))?VS(e[1],e[2],e[3],e[4]):(e=PKe.exec(t))?VS(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=FKe.exec(t))?m6(e[1],e[2]/100,e[3]/100,1):(e=zKe.exec(t))?m6(e[1],e[2]/100,e[3]/100,e[4]):d6.hasOwnProperty(t)?v6(d6[t]):t==="transparent"?new lo(NaN,NaN,NaN,0):null}function v6(t){return new lo(t>>16&255,t>>8&255,t&255,1)}function VS(t,e,n,r){return r<=0&&(t=e=n=NaN),new lo(t,e,n,r)}function HKe(t){return t instanceof mb||(t=y1(t)),t?(t=t.rgb(),new lo(t.r,t.g,t.b,t.opacity)):new lo}function aO(t,e,n,r){return arguments.length===1?HKe(t):new lo(t,e,n,r??1)}function lo(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}_V(lo,aO,AQ(mb,{brighter(t){return t=t==null?i2:Math.pow(i2,t),new lo(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?v1:Math.pow(v1,t),new lo(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new lo(kh(this.r),kh(this.g),kh(this.b),o2(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:g6,formatHex:g6,formatHex8:WKe,formatRgb:y6,toString:y6}));function g6(){return`#${ph(this.r)}${ph(this.g)}${ph(this.b)}`}function WKe(){return`#${ph(this.r)}${ph(this.g)}${ph(this.b)}${ph((isNaN(this.opacity)?1:this.opacity)*255)}`}function y6(){const t=o2(this.opacity);return`${t===1?"rgb(":"rgba("}${kh(this.r)}, ${kh(this.g)}, ${kh(this.b)}${t===1?")":`, ${t})`}`}function o2(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function kh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ph(t){return t=kh(t),(t<16?"0":"")+t.toString(16)}function m6(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Bs(t,e,n,r)}function NQ(t){if(t instanceof Bs)return new Bs(t.h,t.s,t.l,t.opacity);if(t instanceof mb||(t=y1(t)),!t)return new Bs;if(t instanceof Bs)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 Bs(o,s,l,t.opacity)}function jKe(t,e,n,r){return arguments.length===1?NQ(t):new Bs(t,e,n,r??1)}function Bs(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}_V(Bs,jKe,AQ(mb,{brighter(t){return t=t==null?i2:Math.pow(i2,t),new Bs(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?v1:Math.pow(v1,t),new Bs(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 lo(LM(t>=240?t-240:t+120,a,r),LM(t,a,r),LM(t<120?t+240:t-120,a,r),this.opacity)},clamp(){return new Bs(b6(this.h),BS(this.s),BS(this.l),o2(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=o2(this.opacity);return`${t===1?"hsl(":"hsla("}${b6(this.h)}, ${BS(this.s)*100}%, ${BS(this.l)*100}%${t===1?")":`, ${t})`}`}}));function b6(t){return t=(t||0)%360,t<0?t+360:t}function BS(t){return Math.max(0,Math.min(1,t||0))}function LM(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 xV=t=>()=>t;function KKe(t,e){return function(n){return t+n*e}}function YKe(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 qKe(t){return(t=+t)==1?VQ:function(e,n){return n-e?YKe(e,n,t):xV(isNaN(e)?n:e)}}function VQ(t,e){var n=e-t;return n?KKe(t,n):xV(isNaN(t)?e:t)}const S6=function t(e){var n=qKe(e);function r(a,i){var o=n((a=aO(a)).r,(i=aO(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=VQ(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 XKe(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 ZKe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function QKe(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]=CV(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 JKe(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function s2(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function eYe(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]=CV(t[a],e[a]):r[a]=e[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var iO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,OM=new RegExp(iO.source,"g");function tYe(t){return function(){return t}}function nYe(t){return function(e){return t(e)+""}}function rYe(t,e){var n=iO.lastIndex=OM.lastIndex=0,r,a,i,o=-1,s=[],l=[];for(t=t+"",e=e+"";(r=iO.exec(t))&&(a=OM.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:s2(r,a)})),n=OM.lastIndex;return n<e.length&&(i=e.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?nYe(l[0].x):tYe(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 CV(t,e){var n=typeof e,r;return e==null||n==="boolean"?xV(e):(n==="number"?s2:n==="string"?(r=y1(e))?(e=r,S6):rYe:e instanceof y1?S6:e instanceof Date?JKe:ZKe(e)?XKe:Array.isArray(e)?QKe:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?eYe:s2)(t,e)}function aYe(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function iYe(t){return function(){return t}}function oYe(t){return+t}var w6=[0,1];function Cv(t){return t}function oO(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:iYe(isNaN(e)?NaN:.5)}function sYe(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function lYe(t,e,n){var r=t[0],a=t[1],i=e[0],o=e[1];return a<r?(r=oO(a,r),i=n(o,i)):(r=oO(r,a),i=n(i,o)),function(s){return i(r(s))}}function uYe(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]=oO(t[o],t[o+1]),i[o]=n(e[o],e[o+1]);return function(s){var l=DKe(t,s,1,r)-1;return i[l](a[l](s))}}function cYe(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function fYe(){var t=w6,e=w6,n=CV,r,a,i,o=Cv,s,l,u;function c(){var d=Math.min(t.length,e.length);return o!==Cv&&(o=sYe(t[0],t[d-1])),s=d>2?uYe:lYe,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),s2)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,oYe),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=aYe,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Cv,c()):o!==Cv},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 dYe(){return fYe()(Cv,Cv)}function hYe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function l2(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 _g(t){return t=l2(Math.abs(t)),t?t[1]:NaN}function pYe(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 vYe(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var gYe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u2(t){if(!(e=gYe.exec(t)))throw new Error("invalid format: "+t);var e;return new TV({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]})}u2.prototype=TV.prototype;function TV(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+""}TV.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 yYe(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 BQ;function mYe(t,e){var n=l2(t,e);if(!n)return t+"";var r=n[0],a=n[1],i=a-(BQ=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")+l2(t,Math.max(0,e+i-1))[0]}function _6(t,e){var n=l2(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 x6={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:hYe,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)=>_6(t*100,e),r:_6,s:mYe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function C6(t){return t}var T6=Array.prototype.map,E6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bYe(t){var e=t.grouping===void 0||t.thousands===void 0?C6:pYe(T6.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?C6:vYe(T6.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=u2(f);var d=f.fill,h=f.align,p=f.sign,v=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,w=f.trim,C=f.type;C==="n"?(m=!0,C="g"):x6[C]||(b===void 0&&(b=12),w=!0,C="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var x=v==="$"?n:v==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",_=v==="$"?r:/[%p]/.test(C)?o:"",T=x6[C],M=/[defgprs%]/.test(C);b=b===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function E(k){var R=x,L=_,A,V,G;if(C==="c")L=T(k)+L,k="";else{k=+k;var I=k<0||1/k<0;if(k=isNaN(k)?l:T(Math.abs(k),b),w&&(k=yYe(k)),I&&+k==0&&p!=="+"&&(I=!1),R=(I?p==="("?p:s:p==="-"||p==="("?"":p)+R,L=(C==="s"?E6[8+BQ/3]:"")+L+(I&&p==="("?")":""),M){for(A=-1,V=k.length;++A<V;)if(G=k.charCodeAt(A),48>G||G>57){L=(G===46?a+k.slice(A+1):k.slice(A))+L,k=k.slice(0,A);break}}}m&&!g&&(k=e(k,1/0));var $=R.length+k.length+L.length,N=$<y?new Array(y-$+1).join(d):"";switch(m&&g&&(k=e(N+k,N.length?y-L.length:1/0),N=""),h){case"<":k=R+k+L+N;break;case"=":k=R+N+k+L;break;case"^":k=N.slice(0,$=N.length>>1)+R+k+L+N.slice($);break;default:k=N+R+k+L;break}return i(k)}return E.toString=function(){return f+""},E}function c(f,d){var h=u((f=u2(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(_g(d)/3)))*3,v=Math.pow(10,-p),g=E6[8+p/3];return function(y){return h(v*y)+g}}return{format:u,formatPrefix:c}}var IS,IQ,$Q;ST({thousands:",",grouping:[3],currency:["$",""]});function ST(t){return IS=bYe(t),IQ=IS.format,$Q=IS.formatPrefix,IS}function SYe(t){return Math.max(0,-_g(Math.abs(t)))}function wYe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_g(e)/3)))*3-_g(Math.abs(t)))}function _Ye(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,_g(e)-_g(t))+1}function xYe(t,e,n,r){var a=AKe(t,e,n),i;switch(r=u2(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=wYe(a,o))&&(r.precision=i),$Q(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=_Ye(a,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=SYe(a))&&(r.precision=i-(r.type==="%")*2);break}}return IQ(r)}function CYe(t){var e=t.domain;return t.ticks=function(n){var r=e();return OKe(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var a=e();return xYe(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=rO(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 Xg(){var t=dYe();return t.copy=function(){return cYe(t,Xg())},NKe.apply(t,arguments),CYe(t)}var er=1e-6,ja=typeof Float32Array<"u"?Float32Array:Array,TYe=Math.PI/180;function EYe(t){return t*TYe}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function PQ(){var t=new ja(9);return ja!=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 EV(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 MYe(t){var e=new ja(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 DYe(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 kYe(t,e,n,r,a,i,o,s,l){var u=new ja(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 RYe(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 fp(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 MV(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=c*o-s*u,d=-c*i+s*l,h=u*i-o*l,p=n*f+r*d+a*h;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+a*u)*p,t[2]=(s*r-a*o)*p,t[3]=d*p,t[4]=(c*n-a*l)*p,t[5]=(-s*n+a*i)*p,t[6]=h*p,t[7]=(-u*n+r*l)*p,t[8]=(o*n-r*i)*p,t):null}function LYe(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 OYe(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 zQ(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],w=n[8];return t[0]=d*r+h*o+p*u,t[1]=d*a+h*s+p*c,t[2]=d*i+h*l+p*f,t[3]=v*r+g*o+y*u,t[4]=v*a+g*s+y*c,t[5]=v*i+g*l+y*f,t[6]=m*r+b*o+w*u,t[7]=m*a+b*s+w*c,t[8]=m*i+b*l+w*f,t}function AYe(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 NYe(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 VYe(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 BYe(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 IYe(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 $Ye(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 PYe(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 FYe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,s=r+r,l=a+a,u=n*o,c=r*o,f=r*s,d=a*o,h=a*s,p=a*l,v=i*o,g=i*s,y=i*l;return t[0]=1-f-p,t[3]=c-y,t[6]=d+g,t[1]=c+y,t[4]=1-u-p,t[7]=h-v,t[2]=d-g,t[5]=h+v,t[8]=1-u-f,t}function zYe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*l-a*o,w=n*u-i*o,C=r*l-a*s,x=r*u-i*s,_=a*u-i*l,T=c*v-f*p,M=c*g-d*p,E=c*y-h*p,k=f*g-d*v,R=f*y-h*v,L=d*y-h*g,A=m*L-b*R+w*k+C*E-x*M+_*T;return A?(A=1/A,t[0]=(s*L-l*R+u*k)*A,t[1]=(l*E-o*L-u*M)*A,t[2]=(o*R-s*E+u*T)*A,t[3]=(a*R-r*L-i*k)*A,t[4]=(n*L-a*E+i*M)*A,t[5]=(r*E-n*R-i*T)*A,t[6]=(v*_-g*x+y*C)*A,t[7]=(g*w-p*_-y*b)*A,t[8]=(p*x-v*w+y*m)*A,t):null}function UYe(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 GYe(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function HYe(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function WYe(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 UQ(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 jYe(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 KYe(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 YYe(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 qYe(t,e){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=e[0],d=e[1],h=e[2],p=e[3],v=e[4],g=e[5],y=e[6],m=e[7],b=e[8];return Math.abs(n-f)<=er*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-d)<=er*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-h)<=er*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-p)<=er*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-v)<=er*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-g)<=er*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=er*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=er*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-b)<=er*Math.max(1,Math.abs(c),Math.abs(b))}var XYe=zQ,ZYe=UQ;const QYe=Object.freeze(Object.defineProperty({__proto__:null,add:WYe,adjoint:LYe,clone:MYe,copy:DYe,create:PQ,determinant:OYe,equals:qYe,exactEquals:YYe,frob:HYe,fromMat2d:PYe,fromMat4:EV,fromQuat:FYe,fromRotation:IYe,fromScaling:$Ye,fromTranslation:BYe,fromValues:kYe,identity:fp,invert:MV,mul:XYe,multiply:zQ,multiplyScalar:jYe,multiplyScalarAndAdd:KYe,normalFromMat4:zYe,projection:UYe,rotate:NYe,scale:VYe,set:RYe,str:GYe,sub:ZYe,subtract:UQ,translate:AYe,transpose:FQ},Symbol.toStringTag,{value:"Module"}));function DV(){var t=new ja(16);return ja!=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 JYe(t){var e=new ja(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 Qa(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 eqe(t,e,n,r,a,i,o,s,l,u,c,f,d,h,p,v){var g=new ja(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=l,g[9]=u,g[10]=c,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function tqe(t,e,n,r,a,i,o,s,l,u,c,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Un(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 Gr(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 $i(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*l-a*o,w=n*u-i*o,C=r*l-a*s,x=r*u-i*s,_=a*u-i*l,T=c*v-f*p,M=c*g-d*p,E=c*y-h*p,k=f*g-d*v,R=f*y-h*v,L=d*y-h*g,A=m*L-b*R+w*k+C*E-x*M+_*T;return A?(A=1/A,t[0]=(s*L-l*R+u*k)*A,t[1]=(a*R-r*L-i*k)*A,t[2]=(v*_-g*x+y*C)*A,t[3]=(d*x-f*_-h*C)*A,t[4]=(l*E-o*L-u*M)*A,t[5]=(n*L-a*E+i*M)*A,t[6]=(g*w-p*_-y*b)*A,t[7]=(c*_-d*w+h*b)*A,t[8]=(o*R-s*E+u*T)*A,t[9]=(r*E-n*R-i*T)*A,t[10]=(p*x-v*w+y*m)*A,t[11]=(f*w-c*x-h*m)*A,t[12]=(s*M-o*k-l*T)*A,t[13]=(n*k-r*M+a*T)*A,t[14]=(v*b-p*C-g*m)*A,t[15]=(c*C-f*b+d*m)*A,t):null}function nqe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(l*y-u*g)+v*(l*h-u*d),t[1]=-(r*(d*y-h*g)-f*(a*y-i*g)+v*(a*h-i*d)),t[2]=r*(l*y-u*g)-s*(a*y-i*g)+v*(a*u-i*l),t[3]=-(r*(l*h-u*d)-s*(a*h-i*d)+f*(a*u-i*l)),t[4]=-(o*(d*y-h*g)-c*(l*y-u*g)+p*(l*h-u*d)),t[5]=n*(d*y-h*g)-c*(a*y-i*g)+p*(a*h-i*d),t[6]=-(n*(l*y-u*g)-o*(a*y-i*g)+p*(a*u-i*l)),t[7]=n*(l*h-u*d)-o*(a*h-i*d)+c*(a*u-i*l),t[8]=o*(f*y-h*v)-c*(s*y-u*v)+p*(s*h-u*f),t[9]=-(n*(f*y-h*v)-c*(r*y-i*v)+p*(r*h-i*f)),t[10]=n*(s*y-u*v)-o*(r*y-i*v)+p*(r*u-i*s),t[11]=-(n*(s*h-u*f)-o*(r*h-i*f)+c*(r*u-i*s)),t[12]=-(o*(f*g-d*v)-c*(s*g-l*v)+p*(s*d-l*f)),t[13]=n*(f*g-d*v)-c*(r*g-a*v)+p*(r*d-a*f),t[14]=-(n*(s*g-l*v)-o*(r*g-a*v)+p*(r*l-a*s)),t[15]=n*(s*d-l*f)-o*(r*d-a*f)+c*(r*l-a*s),t}function rqe(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*i,m=e*s-r*i,b=e*l-a*i,w=n*s-r*o,C=n*l-a*o,x=r*l-a*s,_=u*p-c*h,T=u*v-f*h,M=u*g-d*h,E=c*v-f*p,k=c*g-d*p,R=f*g-d*v;return y*R-m*k+b*E+w*M-C*T+x*_}function Ha(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],w=n[1],C=n[2],x=n[3];return t[0]=b*r+w*s+C*f+x*v,t[1]=b*a+w*l+C*d+x*g,t[2]=b*i+w*u+C*h+x*y,t[3]=b*o+w*c+C*p+x*m,b=n[4],w=n[5],C=n[6],x=n[7],t[4]=b*r+w*s+C*f+x*v,t[5]=b*a+w*l+C*d+x*g,t[6]=b*i+w*u+C*h+x*y,t[7]=b*o+w*c+C*p+x*m,b=n[8],w=n[9],C=n[10],x=n[11],t[8]=b*r+w*s+C*f+x*v,t[9]=b*a+w*l+C*d+x*g,t[10]=b*i+w*u+C*h+x*y,t[11]=b*o+w*c+C*p+x*m,b=n[12],w=n[13],C=n[14],x=n[15],t[12]=b*r+w*s+C*f+x*v,t[13]=b*a+w*l+C*d+x*g,t[14]=b*i+w*u+C*h+x*y,t[15]=b*o+w*c+C*p+x*m,t}function la(t,e,n){var r=n[0],a=n[1],i=n[2],o,s,l,u,c,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*a+e[8]*i+e[12],t[13]=e[1]*r+e[5]*a+e[9]*i+e[13],t[14]=e[2]*r+e[6]*a+e[10]*i+e[14],t[15]=e[3]*r+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],l=e[2],u=e[3],c=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=l,t[3]=u,t[4]=c,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+c*a+p*i+e[12],t[13]=s*r+f*a+v*i+e[13],t[14]=l*r+d*a+g*i+e[14],t[15]=u*r+h*a+y*i+e[15]),t}function Kh(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 Es(t,e,n,r){var a=r[0],i=r[1],o=r[2],s=Math.hypot(a,i,o),l,u,c,f,d,h,p,v,g,y,m,b,w,C,x,_,T,M,E,k,R,L,A,V;return s<er?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],p=e[3],v=e[4],g=e[5],y=e[6],m=e[7],b=e[8],w=e[9],C=e[10],x=e[11],_=a*a*c+u,T=i*a*c+o*l,M=o*a*c-i*l,E=a*i*c-o*l,k=i*i*c+u,R=o*i*c+a*l,L=a*o*c+i*l,A=i*o*c-a*l,V=o*o*c+u,t[0]=f*_+v*T+b*M,t[1]=d*_+g*T+w*M,t[2]=h*_+y*T+C*M,t[3]=p*_+m*T+x*M,t[4]=f*E+v*k+b*R,t[5]=d*E+g*k+w*R,t[6]=h*E+y*k+C*R,t[7]=p*E+m*k+x*R,t[8]=f*L+v*A+b*V,t[9]=d*L+g*A+w*V,t[10]=h*L+y*A+C*V,t[11]=p*L+m*A+x*V,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function kV(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 RV(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 LV(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 GQ(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 HQ(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 WQ(t,e,n){var r=n[0],a=n[1],i=n[2],o=Math.hypot(r,a,i),s,l,u;return o<er?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 aqe(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 iqe(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 oqe(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 jQ(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,p=a*u,v=i*u,g=o*s,y=o*l,m=o*u;return t[0]=1-(h+v),t[1]=f+m,t[2]=d-y,t[3]=0,t[4]=f-m,t[5]=1-(c+v),t[6]=p+g,t[7]=0,t[8]=d+y,t[9]=p-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 sqe(t,e){var n=new ja(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),jQ(t,e,n),t}function lqe(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function KQ(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 YQ(t,e){var n=new ja(3);KQ(n,e);var r=1/n[0],a=1/n[1],i=1/n[2],o=e[0]*r,s=e[1]*a,l=e[2]*i,u=e[4]*r,c=e[5]*a,f=e[6]*i,d=e[8]*r,h=e[9]*a,p=e[10]*i,v=o+c+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-l)/g,t[2]=(s-u)/g):o>c&&o>p?(g=Math.sqrt(1+o-c-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+u)/g,t[2]=(d+l)/g):c>p?(g=Math.sqrt(1+c-o-p)*2,t[3]=(d-l)/g,t[0]=(s+u)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-c)*2,t[3]=(s-u)/g,t[0]=(d+l)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function qQ(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=e[3],l=a+a,u=i+i,c=o+o,f=a*l,d=a*u,h=a*c,p=i*u,v=i*c,g=o*c,y=s*l,m=s*u,b=s*c,w=r[0],C=r[1],x=r[2];return t[0]=(1-(p+g))*w,t[1]=(d+b)*w,t[2]=(h-m)*w,t[3]=0,t[4]=(d-b)*C,t[5]=(1-(f+g))*C,t[6]=(v+y)*C,t[7]=0,t[8]=(h+m)*x,t[9]=(v-y)*x,t[10]=(1-(f+p))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function uqe(t,e,n,r,a){var i=e[0],o=e[1],s=e[2],l=e[3],u=i+i,c=o+o,f=s+s,d=i*u,h=i*c,p=i*f,v=o*c,g=o*f,y=s*f,m=l*u,b=l*c,w=l*f,C=r[0],x=r[1],_=r[2],T=a[0],M=a[1],E=a[2],k=(1-(v+y))*C,R=(h+w)*C,L=(p-b)*C,A=(h-w)*x,V=(1-(d+y))*x,G=(g+m)*x,I=(p+b)*_,$=(g-m)*_,N=(1-(d+v))*_;return t[0]=k,t[1]=R,t[2]=L,t[3]=0,t[4]=A,t[5]=V,t[6]=G,t[7]=0,t[8]=I,t[9]=$,t[10]=N,t[11]=0,t[12]=n[0]+T-(k*T+A*M+I*E),t[13]=n[1]+M-(R*T+V*M+$*E),t[14]=n[2]+E-(L*T+G*M+N*E),t[15]=1,t}function OV(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,s=r+r,l=a+a,u=n*o,c=r*o,f=r*s,d=a*o,h=a*s,p=a*l,v=i*o,g=i*s,y=i*l;return t[0]=1-f-p,t[1]=c+y,t[2]=d-g,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function cqe(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 XQ(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 fqe=XQ;function dqe(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 hqe(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 ZQ(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 QQ=ZQ;function pqe(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 JQ(t,e,n,r){var a,i,o,s,l,u,c,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],w=n[0],C=n[1],x=n[2];return Math.abs(p-w)<er&&Math.abs(v-C)<er&&Math.abs(g-x)<er?Un(t):(c=p-w,f=v-C,d=g-x,h=1/Math.hypot(c,f,d),c*=h,f*=h,d*=h,a=m*d-b*f,i=b*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*p+i*v+o*g),t[13]=-(s*p+l*v+u*g),t[14]=-(c*p+f*v+d*g),t[15]=1,t)}function vqe(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 p=l*d-u*f,v=u*c-s*d,g=s*f-l*c;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-c*g,t[6]=c*v-f*p,t[7]=0,t[8]=c,t[9]=f,t[10]=d,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t}function gqe(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 yqe(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 mqe(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 eJ(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 bqe(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 Sqe(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 wqe(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 _qe(t,e){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],w=e[2],C=e[3],x=e[4],_=e[5],T=e[6],M=e[7],E=e[8],k=e[9],R=e[10],L=e[11],A=e[12],V=e[13],G=e[14],I=e[15];return Math.abs(n-m)<=er*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=er*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(a-w)<=er*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-C)<=er*Math.max(1,Math.abs(i),Math.abs(C))&&Math.abs(o-x)<=er*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(s-_)<=er*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(l-T)<=er*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(u-M)<=er*Math.max(1,Math.abs(u),Math.abs(M))&&Math.abs(c-E)<=er*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(f-k)<=er*Math.max(1,Math.abs(f),Math.abs(k))&&Math.abs(d-R)<=er*Math.max(1,Math.abs(d),Math.abs(R))&&Math.abs(h-L)<=er*Math.max(1,Math.abs(h),Math.abs(L))&&Math.abs(p-A)<=er*Math.max(1,Math.abs(p),Math.abs(A))&&Math.abs(v-V)<=er*Math.max(1,Math.abs(v),Math.abs(V))&&Math.abs(g-G)<=er*Math.max(1,Math.abs(g),Math.abs(G))&&Math.abs(y-I)<=er*Math.max(1,Math.abs(y),Math.abs(I))}var sO=Ha,xqe=eJ;const lO=Object.freeze(Object.defineProperty({__proto__:null,add:mqe,adjoint:nqe,clone:JYe,copy:Qa,create:DV,determinant:rqe,equals:_qe,exactEquals:wqe,frob:yqe,fromQuat:OV,fromQuat2:sqe,fromRotation:WQ,fromRotationTranslation:jQ,fromRotationTranslationScale:qQ,fromRotationTranslationScaleOrigin:uqe,fromScaling:HQ,fromTranslation:GQ,fromValues:eqe,fromXRotation:aqe,fromYRotation:iqe,fromZRotation:oqe,frustum:cqe,getRotation:YQ,getScaling:KQ,getTranslation:lqe,identity:Un,invert:$i,lookAt:JQ,mul:sO,multiply:Ha,multiplyScalar:bqe,multiplyScalarAndAdd:Sqe,ortho:QQ,orthoNO:ZQ,orthoZO:pqe,perspective:fqe,perspectiveFromFieldOfView:hqe,perspectiveNO:XQ,perspectiveZO:dqe,rotate:Es,rotateX:kV,rotateY:RV,rotateZ:LV,scale:Kh,set:tqe,str:gqe,sub:xqe,subtract:eJ,targetTo:vqe,translate:la,transpose:Gr},Symbol.toStringTag,{value:"Module"}));function tJ(){var t=new ja(3);return ja!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function uO(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function M6(t,e,n){var r=new ja(3);return r[0]=t,r[1]=e,r[2]=n,r}function Dl(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function ky(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function qc(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function Ac(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function Cqe(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function lf(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 AV(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Gv(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 hr(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 X3t(t,e,n){var r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function D6(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function k6(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)<=er*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=er*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-s)<=er*Math.max(1,Math.abs(a),Math.abs(s))}var cO=qc,nJ=uO;(function(){var t=tJ();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 Tqe(){var t=new ja(4);return ja!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Eqe(t,e,n,r){var a=new ja(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a}function Mqe(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 $S(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=Tqe();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 Yh(){var t=new ja(4);return ja!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function NV(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 Dqe(t,e){var n=Math.acos(e[3])*2,r=Math.sin(n/2);return r>er?(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 R6(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 Z_(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=e[3],l=n[0],u=n[1],c=n[2],f=n[3],d,h,p,v,g;return h=a*l+i*u+o*c+s*f,h<0&&(h=-h,l=-l,u=-u,c=-c,f=-f),1-h>er?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*a+g*l,t[1]=v*i+g*u,t[2]=v*o+g*c,t[3]=v*s+g*f,t}function kqe(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Rqe(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 L6=Eqe,rJ=Mqe;(function(){var t=tJ(),e=M6(1,0,0),n=M6(0,1,0);return function(r,a,i){var o=AV(a,i);return o<-.999999?(Gv(t,e,a),nJ(t)<1e-6&&Gv(t,n,a),lf(t,t),NV(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Gv(t,a,i),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,rJ(r,r))}})();(function(){var t=Yh(),e=Yh();return function(n,r,a,i,o,s){return Z_(t,r,o,s),Z_(e,a,i,s),Z_(n,t,e,2*s*(1-s)),n}})();(function(){var t=PQ();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],rJ(e,Rqe(e,t))}})();var Lqe=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 Oqe=wi(Lqe);var O6=Object.prototype.toString,aJ=function(e){var n=O6.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&O6.call(e.callee)==="[object Function]"),r},AM,A6;function Aqe(){if(A6)return AM;A6=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=aJ,a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),o=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(d){var h=d.constructor;return h&&h.prototype===d},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var d in window)try{if(!u["$"+d]&&e.call(window,d)&&window[d]!==null&&typeof window[d]=="object")try{l(window[d])}catch{return!0}}catch{return!0}return!1}(),f=function(d){if(typeof window>"u"||!c)return l(d);try{return l(d)}catch{return!1}};t=function(h){var p=h!==null&&typeof h=="object",v=n.call(h)==="[object Function]",g=r(h),y=p&&n.call(h)==="[object String]",m=[];if(!p&&!v&&!g)throw new TypeError("Object.keys called on a non-object");var b=o&&v;if(y&&h.length>0&&!e.call(h,0))for(var w=0;w<h.length;++w)m.push(String(w));if(g&&h.length>0)for(var C=0;C<h.length;++C)m.push(String(C));else for(var x in h)!(b&&x==="prototype")&&e.call(h,x)&&m.push(String(x));if(i)for(var _=f(h),T=0;T<s.length;++T)!(_&&s[T]==="constructor")&&e.call(h,s[T])&&m.push(s[T]);return m}}return AM=t,AM}var Nqe=Array.prototype.slice,Vqe=aJ,N6=Object.keys,Q_=N6?function(e){return N6(e)}:Aqe(),V6=Object.keys;Q_.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 Vqe(r)?V6(Nqe.call(r)):V6(r)})}else Object.keys=Q_;return Object.keys||Q_};var Bqe=Q_,Iqe=Error,$qe=EvalError,Pqe=RangeError,Fqe=ReferenceError,iJ=SyntaxError,oJ=TypeError,zqe=URIError,Uqe=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},B6=typeof Symbol<"u"&&Symbol,Gqe=Uqe,Hqe=function(){return typeof B6!="function"||typeof Symbol!="function"||typeof B6("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Gqe()},I6={foo:{}},Wqe=Object,jqe=function(){return{__proto__:I6}.foo===I6.foo&&!({__proto__:null}instanceof Wqe)},Kqe="Function.prototype.bind called on incompatible ",Yqe=Object.prototype.toString,qqe=Math.max,Xqe="[object Function]",$6=function(e,n){for(var r=[],a=0;a<e.length;a+=1)r[a]=e[a];for(var i=0;i<n.length;i+=1)r[i+e.length]=n[i];return r},Zqe=function(e,n){for(var r=[],a=n||0,i=0;a<e.length;a+=1,i+=1)r[i]=e[a];return r},Qqe=function(t,e){for(var n="",r=0;r<t.length;r+=1)n+=t[r],r+1<t.length&&(n+=e);return n},Jqe=function(e){var n=this;if(typeof n!="function"||Yqe.apply(n)!==Xqe)throw new TypeError(Kqe+n);for(var r=Zqe(arguments,1),a,i=function(){if(this instanceof a){var c=n.apply(this,$6(r,arguments));return Object(c)===c?c:this}return n.apply(e,$6(r,arguments))},o=qqe(0,n.length-r.length),s=[],l=0;l<o;l++)s[l]="$"+l;if(a=Function("binder","return function ("+Qqe(s,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a},eXe=Jqe,sJ=Function.prototype.bind||eXe,tXe=Function.prototype.call,nXe=Object.prototype.hasOwnProperty,rXe=sJ,aXe=rXe.call(tXe,nXe),Xn,iXe=Iqe,oXe=$qe,sXe=Pqe,lXe=Fqe,xg=iJ,Hv=oJ,uXe=zqe,lJ=Function,NM=function(t){try{return lJ('"use strict"; return ('+t+").constructor;")()}catch{}},Rh=Object.getOwnPropertyDescriptor;if(Rh)try{Rh({},"")}catch{Rh=null}var VM=function(){throw new Hv},cXe=Rh?function(){try{return arguments.callee,VM}catch{try{return Rh(arguments,"callee").get}catch{return VM}}}():VM,Op=Hqe(),fXe=jqe(),Ia=Object.getPrototypeOf||(fXe?function(t){return t.__proto__}:null),fv={},dXe=typeof Uint8Array>"u"||!Ia?Xn:Ia(Uint8Array),Lh={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Xn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Xn:ArrayBuffer,"%ArrayIteratorPrototype%":Op&&Ia?Ia([][Symbol.iterator]()):Xn,"%AsyncFromSyncIteratorPrototype%":Xn,"%AsyncFunction%":fv,"%AsyncGenerator%":fv,"%AsyncGeneratorFunction%":fv,"%AsyncIteratorPrototype%":fv,"%Atomics%":typeof Atomics>"u"?Xn:Atomics,"%BigInt%":typeof BigInt>"u"?Xn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Xn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Xn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Xn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iXe,"%eval%":eval,"%EvalError%":oXe,"%Float32Array%":typeof Float32Array>"u"?Xn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Xn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Xn:FinalizationRegistry,"%Function%":lJ,"%GeneratorFunction%":fv,"%Int8Array%":typeof Int8Array>"u"?Xn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Xn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Xn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Op&&Ia?Ia(Ia([][Symbol.iterator]())):Xn,"%JSON%":typeof JSON=="object"?JSON:Xn,"%Map%":typeof Map>"u"?Xn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Op||!Ia?Xn:Ia(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Xn:Promise,"%Proxy%":typeof Proxy>"u"?Xn:Proxy,"%RangeError%":sXe,"%ReferenceError%":lXe,"%Reflect%":typeof Reflect>"u"?Xn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Xn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Op||!Ia?Xn:Ia(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Xn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Op&&Ia?Ia(""[Symbol.iterator]()):Xn,"%Symbol%":Op?Symbol:Xn,"%SyntaxError%":xg,"%ThrowTypeError%":cXe,"%TypedArray%":dXe,"%TypeError%":Hv,"%Uint8Array%":typeof Uint8Array>"u"?Xn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Xn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Xn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Xn:Uint32Array,"%URIError%":uXe,"%WeakMap%":typeof WeakMap>"u"?Xn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Xn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Xn:WeakSet};if(Ia)try{null.error}catch(t){var hXe=Ia(Ia(t));Lh["%Error.prototype%"]=hXe}var pXe=function t(e){var n;if(e==="%AsyncFunction%")n=NM("async function () {}");else if(e==="%GeneratorFunction%")n=NM("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=NM("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&Ia&&(n=Ia(a.prototype))}return Lh[e]=n,n},P6={__proto__:null,"%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"]},bb=sJ,c2=aXe,vXe=bb.call(Function.call,Array.prototype.concat),gXe=bb.call(Function.apply,Array.prototype.splice),F6=bb.call(Function.call,String.prototype.replace),f2=bb.call(Function.call,String.prototype.slice),yXe=bb.call(Function.call,RegExp.prototype.exec),mXe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bXe=/\\(\\)?/g,SXe=function(e){var n=f2(e,0,1),r=f2(e,-1);if(n==="%"&&r!=="%")throw new xg("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new xg("invalid intrinsic syntax, expected opening `%`");var a=[];return F6(e,mXe,function(i,o,s,l){a[a.length]=s?F6(l,bXe,"$1"):o||i}),a},wXe=function(e,n){var r=e,a;if(c2(P6,r)&&(a=P6[r],r="%"+a[0]+"%"),c2(Lh,r)){var i=Lh[r];if(i===fv&&(i=pXe(r)),typeof i>"u"&&!n)throw new Hv("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new xg("intrinsic "+e+" does not exist!")},uJ=function(e,n){if(typeof e!="string"||e.length===0)throw new Hv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Hv('"allowMissing" argument must be a boolean');if(yXe(/^%?[^%]*%?$/,e)===null)throw new xg("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=SXe(e),a=r.length>0?r[0]:"",i=wXe("%"+a+"%",n),o=i.name,s=i.value,l=!1,u=i.alias;u&&(a=u[0],gXe(r,vXe([0,1],u)));for(var c=1,f=!0;c<r.length;c+=1){var d=r[c],h=f2(d,0,1),p=f2(d,-1);if((h==='"'||h==="'"||h==="`"||p==='"'||p==="'"||p==="`")&&h!==p)throw new xg("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(l=!0),a+="."+d,o="%"+a+"%",c2(Lh,o))s=Lh[o];else if(s!=null){if(!(d in s)){if(!n)throw new Hv("base intrinsic for "+e+" exists, but the property is not available.");return}if(Rh&&c+1>=r.length){var v=Rh(s,d);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[d]}else f=c2(s,d),s=s[d];f&&!l&&(Lh[o]=s)}}return s},_Xe=uJ,J_=_Xe("%Object.defineProperty%",!0)||!1;if(J_)try{J_({},"a",{value:1})}catch{J_=!1}var cJ=J_,xXe=uJ,ex=xXe("%Object.getOwnPropertyDescriptor%",!0);if(ex)try{ex([],"length")}catch{ex=null}var CXe=ex,z6=cJ,TXe=iJ,Ap=oJ,U6=CXe,EXe=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Ap("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Ap("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ap("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ap("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ap("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ap("`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=!!U6&&U6(e,n);if(z6)z6(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 TXe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},fO=cJ,fJ=function(){return!!fO};fJ.hasArrayLengthDefineBug=function(){if(!fO)return null;try{return fO([],"length",{value:1}).length!==1}catch{return!0}};var MXe=fJ,DXe=Bqe,kXe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",RXe=Object.prototype.toString,LXe=Array.prototype.concat,G6=EXe,OXe=function(t){return typeof t=="function"&&RXe.call(t)==="[object Function]"},dJ=MXe(),AXe=function(t,e,n,r){if(e in t){if(r===!0){if(t[e]===n)return}else if(!OXe(r)||!r())return}dJ?G6(t,e,n,!0):G6(t,e,n)},hJ=function(t,e){var n=arguments.length>2?arguments[2]:{},r=DXe(e);kXe&&(r=LXe.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;a<r.length;a+=1)AXe(t,r[a],e[r[a]],n[r[a]])};hJ.supportsDescriptors=!!dJ;var pJ=hJ,tx={exports:{}};typeof self<"u"?tx.exports=self:typeof window<"u"?tx.exports=window:tx.exports=Function("return this")();var vJ=tx.exports,NXe=vJ,gJ=function(){return typeof aa!="object"||!aa||aa.Math!==Math||aa.Array!==Array?NXe:aa},VXe=pJ,BXe=gJ,IXe=function(){var e=BXe();if(VXe.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},$Xe=pJ,PXe=vJ,yJ=gJ,FXe=IXe,zXe=yJ(),mJ=function(){return zXe};$Xe(mJ,{getPolyfill:yJ,implementation:PXe,shim:FXe});var UXe=mJ;const GXe=wi(UXe),Ns=GXe(),bJ={vtkObject:()=>null};function Us(t){if(t==null||t.isA)return t;if(!t.vtkClass)return Ns.console&&Ns.console.error&&Ns.console.error("Invalid VTK object"),null;const e=bJ[t.vtkClass];if(!e)return Ns.console&&Ns.console.error&&Ns.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]=Us(n[a]))});const r=e(n);return r&&r.modified&&r.modified(),r}function HXe(t,e){bJ[t]=e}Us.register=HXe;class BM extends Array{push(){for(let e=0;e<arguments.length;e++)this.includes(arguments[e])||super.push(arguments[e]);return this.length}}let dO=0;const SJ=Symbol("void");function WXe(){return dO}const wJ={};function Jd(){}const jXe=["log","debug","info","warn","error","time","timeEnd","group","groupEnd"];jXe.forEach(t=>{wJ[t]=Jd});Ns.console=console.hasOwnProperty("log")?console:wJ;const Tf={debug:Jd,error:Ns.console.error||Jd,info:Ns.console.info||Jd,log:Ns.console.log||Jd,warn:Ns.console.warn||Jd};function _J(t,e){Tf[t]&&(Tf[t]=e||Jd)}function xJ(){Tf.log(...arguments)}function CJ(){Tf.info(...arguments)}function d2(){Tf.debug(...arguments)}function Gn(){Tf.error(...arguments)}function VV(){Tf.warn(...arguments)}const H6={};function TJ(t){H6[t]||(Tf.error(t),H6[t]=!0)}const mi=Object.create(null);mi.Float32Array=Float32Array;mi.Float64Array=Float64Array;mi.Uint8Array=Uint8Array;mi.Int8Array=Int8Array;mi.Uint16Array=Uint16Array;mi.Int16Array=Int16Array;mi.Uint32Array=Uint32Array;mi.Int32Array=Int32Array;mi.Uint8ClampedArray=Uint8ClampedArray;try{mi.BigInt64Array=BigInt64Array,mi.BigUint64Array=BigUint64Array}catch{}function Zg(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(mi[t]||Float64Array)(...n)}function BV(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(mi[t]||Float64Array).from(...n)}function wT(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ia(t){return wT(t[0]==="_"?t.slice(1):t)}function EJ(t){return t.charAt(0).toLowerCase()+t.slice(1)}function MJ(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 DJ(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 kJ(t){Object.keys(t).forEach(e=>{Array.isArray(t[e])&&(t[e]=[].concat(t[e]))})}function KXe(t){return Object.values(mi).some(e=>t instanceof e)}function YXe(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 qXe(t,e){return Object.keys(t).find(n=>t[n]===e)}function RJ(t){return t&&t.isA?t.getState():t}function IV(t){setTimeout(t,0)}function LJ(t,e){const n=performance.now();t.finally(()=>{const r=performance.now()-n;e(r)})}function Ka(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};kJ(e);const n=[];if(Number.isInteger(e.mtime)||(e.mtime=++dO),!("classHierarchy"in e))e.classHierarchy=new BM("vtkObject");else if(!(e.classHierarchy instanceof BM)){const i=new BM;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){Gn("instance deleted - cannot call any method");return}i&&i<t.getMTime()||(e.mtime=++dO,n.forEach(o=>o&&o(t)))},t.onModified=i=>{if(e.deleted)return Gn("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${wT(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&&VV(`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(RJ):KXe(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&&d2(`add ${c} in shallowCopy`):l.splice(f,1),e[c]=s[c]}),l.length&&o&&d2(`Untouched keys: ${l.join(", ")}`),t.modified()},t.toJSON=function(){return t.getState()},t}const XXe={object(t,e,n){return function(){return{...e[n.name]}}}};function Yi(t,e,n){n.forEach(r=>{if(typeof r=="object"){const a=XXe[r.type];a?t[`get${ia(r.name)}`]=a(t,e,r):t[`get${ia(r.name)}`]=()=>e[r.name]}else t[`get${ia(r)}`]=()=>e[r]})}const ZXe={enum(t,e,n){const r=`_on${ia(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 Gn(`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 Gn(`Set Enum outside numeric range ${n}, ${a}`),new RangeError("Set Enum outside numeric range")}return!1}throw Gn(`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${ia(n.name)}Changed`;return a=>{var i;if(!Oqe(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 W6(t){if(typeof t=="object"){const e=ZXe[t.type];if(e)return(n,r)=>e(n,r,t);throw Gn(`No setter for field ${t}`),new TypeError("No setter for field")}return function(n,r){const a=`_on${ia(t)}Changed`;return function(o){var s;if(r.deleted)return Gn("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 Sb(t,e,n){n.forEach(r=>{typeof r=="object"?t[`set${ia(r.name)}`]=W6(r)(t,e):t[`set${ia(r)}`]=W6(r)(t,e)})}function Va(t,e,n){Yi(t,e,n),Sb(t,e,n)}function Qg(t,e,n){n.forEach(r=>{t[`get${ia(r)}`]=()=>e[r]?Array.from(e[r]):e[r],t[`get${ia(r)}ByReference`]=()=>e[r]})}function $V(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${ia(i)}Changed`;t[`set${ia(i)}`]=function(){var h;if(e.deleted)return Gn("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 p=0;!f&&p<c.length;++p)f=e[i][p]!==c[p];f&&d&&(c=Array.from(c))}if(f){const p=e[i.name];e[i]=c,(h=e[o])==null||h.call(e,t,e,c,p),t.modified()}return f},t[`set${ia(i)}From`]=s=>{const l=e[i];s.forEach((u,c)=>{l[c]=u})}})}function PV(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;Qg(t,e,n),$V(t,e,n,r,a)}function wb(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 OJ(t,e,n,r){e.inputData?e.inputData=e.inputData.map(Us):e.inputData=[],e.inputConnection?e.inputConnection=e.inputConnection.map(Us):e.inputConnection=[],e.output?e.output=e.output.map(Us):e.output=[],e.inputArrayToProcess?e.inputArrayToProcess=e.inputArrayToProcess.map(Us):e.inputArrayToProcess=[],e.numberOfInputs=n;function a(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){Gn("instance deleted - cannot call any method");return}if(p>=e.numberOfInputs){Gn(`algorithm ${t.getClassName()} only has ${e.numberOfInputs} input ports. To add more input ports, use addInputData()`);return}(e.inputData[p]!==h||e.inputConnection[p])&&(e.inputData[p]=h,e.inputConnection[p]=null,t.modified&&t.modified())}function i(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.inputConnection[h]&&(e.inputData[h]=e.inputConnection[h]()),e.inputData[h]}function o(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){Gn("instance deleted - cannot call any method");return}if(p>=e.numberOfInputs){let v=`algorithm ${t.getClassName()} only has `;v+=`${e.numberOfInputs}`,v+=" input ports. To add more input ports, use addInputConnection()",Gn(v);return}e.inputData[p]=null,e.inputConnection[p]=h}function s(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.inputConnection[h]}function l(){let h=e.numberOfInputs;for(;h&&!e.inputData[h-1]&&!e.inputConnection[h-1];)h--;return h===e.numberOfInputs&&e.numberOfInputs++,h}function u(h){if(e.deleted){Gn("instance deleted - cannot call any method");return}o(h,l())}function c(h){if(e.deleted){Gn("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?(Gn("instance deleted - cannot call any method"),null):(t.shouldUpdate()&&t.update(),e.output[h])}t.shouldUpdate=()=>{var g,y;const h=t.getMTime();let p=1/0,v=r;for(;v--;){if(!e.output[v]||e.output[v].isDeleted())return!0;const m=e.output[v].getMTime();if(m<h)return!0;m<p&&(p=m)}for(v=e.numberOfInputs;v--;)if((g=e.inputConnection[v])!=null&&g.filter.shouldUpdate()||((y=t.getInputData(v))==null?void 0:y.getMTime())>p)return!0;return!1};function d(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const p=()=>f(h);return p.filter=t,p}if(e.numberOfInputs){let h=e.numberOfInputs;for(;h--;)e.inputData.push(null),e.inputConnection.push(null);t.setInputData=a,t.setInputConnection=o,t.addInputData=c,t.addInputConnection=u,t.getInputData=i,t.getInputConnection=s}r&&(t.getOutputData=f,t.getOutputPort=d),t.update=()=>{const h=[];if(e.numberOfInputs){let p=0;for(;p<e.numberOfInputs;)h[p]=t.getInputData(p),p++}t.shouldUpdate()&&t.requestData&&t.requestData(h,e.output)},t.getNumberOfInputPorts=()=>e.numberOfInputs,t.getNumberOfOutputPorts=()=>r||e.output.length,t.getInputArrayToProcess=h=>{const p=e.inputArrayToProcess[h],v=e.inputData[h];return p&&v?v[`get${p.fieldAssociation}`]().getArray(p.arrayName):null},t.setInputArrayToProcess=function(h,p,v){let g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Scalars";for(;e.inputArrayToProcess.length<h;)e.inputArrayToProcess.push(null);e.inputArrayToProcess[h]={arrayName:p,fieldAssociation:v,attributeType:g}}}const FV=Symbol("Event abort");function AJ(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){Gn("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)===FV)break}}}t[`invoke${ia(n)}`]=l,t[`on${ia(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 Gn("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 Or(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&&Us.register(e,n),n}function NJ(){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 zV(t){return t&&t.isA&&t.isA("vtkObject")}function h2(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(zV(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=>{h2(l,e,n,r)}):h2(s,e,n,r)})}return n}function VJ(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 UV(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 GV(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 QXe=1;const PS="__root__";function BJ(t,e){GV(t,e);const n=t.delete;e.proxyId=`${QXe++}`,e.ui=JSON.parse(JSON.stringify(e.ui||[])),Yi(t,e,["proxyId","proxyGroup","proxyName"]),Va(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,PS),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,PS),t.modified()};function o(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:PS;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${ia(t.getProxyGroup().slice(0,-1))}`;e.proxyManager[u]&&e.proxyManager[u](t)}},e.propertyLinkSubscribers={},t.registerPropertyLinkForGC=(u,c)=>{c in e.propertyLinkSubscribers||(e.propertyLinkSubscribers[c]=[]),e.propertyLinkSubscribers[c].push(u)},t.gcPropertyLinks=u=>{const c=e.propertyLinkSubscribers[u]||[];for(;c.length;)c.pop().unbind(t)},e.propertyLinkMap={},t.getPropertyLink=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.propertyLinkMap[u])return e.propertyLinkMap[u];let f=null;const d=[];let h=0,p=!1;function v(w){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(p)return null;const x=[];let _=null;for(h=d.length;h--;){const M=d[h];M.instance===w?_=M:x.push(M)}if(!_)return null;const T=_.instance[`get${ia(_.propertyName)}`]();if(!YXe(T,f)||C){for(f=T,p=!0;x.length;){const M=x.pop();M.instance.set({[M.propertyName]:f})}p=!1}return e.propertyLinkMap[u].persistent&&(e.propertyLinkMap[u].value=T),T}function g(w,C){const x=[];for(h=d.length;h--;){const _=d[h];_.instance===w&&(_.propertyName===C||C===void 0)&&(_.subscription.unsubscribe(),x.push(h))}for(;x.length;)d.splice(x.pop(),1)}function y(w,C){let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const _=w.onModified(v),T=d[0];return d.push({instance:w,propertyName:C,subscription:_}),x&&(e.propertyLinkMap[u].persistent&&e.propertyLinkMap[u].value!==void 0?w.set({[C]:e.propertyLinkMap[u].value}):T&&v(T.instance,!0)),{unsubscribe:()=>g(w,C)}}function m(){for(;d.length;)d.pop().subscription.unsubscribe()}const b={bind:y,unbind:g,unsubscribe:m,persistent:c};return e.propertyLinkMap[u]=b,b};function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:PS;const c=[],f=e.proxyId,d=o(u)||[];for(let h=0;h<d.length;h++){const p=d[h],v=t[`get${ia(p)}`],g=v?v():void 0,y={id:f,name:p,value:g},m=s(p);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:p}=e.links[u];if(p==="application"){const v=e.proxyManager.getPropertyLink(c,d);t.registerPropertyLinkForGC(v,"application"),v.bind(t,f,h)}}}IV(l)}function IJ(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=ia(u),d=ia(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 $J(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${ia(s)}`]=u=>{if(u!==e[s]){e[s]=u;const c=l[u];a(c),t.modified()}}}i.length&&Yi(t,e,i)}const j6=10,K6=40,Y6=800;function PJ(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*j6,a=n*j6,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode===1?(r*=K6,a*=K6):(r*=Y6,a*=Y6)),r&&!e&&(e=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:e,spinY:n||e,pixelX:r,pixelY:a||r}}var Q={algo:OJ,capitalize:wT,chain:NJ,debounce:VJ,enumToString:qXe,event:AJ,EVENT_ABORT:FV,formatBytesToProperUnit:MJ,formatNumbersWithThousandSeparator:DJ,get:Yi,getArray:Qg,getCurrentGlobalMTime:WXe,getStateArrayMapFunc:RJ,isVtkObject:zV,keystore:GV,measurePromiseExecution:LJ,moveToProtected:wb,newInstance:Or,newTypedArray:Zg,newTypedArrayFrom:BV,normalizeWheel:PJ,obj:Ka,proxy:BJ,proxyPropertyMapping:IJ,proxyPropertyState:$J,safeArrays:kJ,set:Sb,setArray:$V,setGet:Va,setGetArray:PV,setImmediate:IV,setLoggerFunction:_J,throttle:UV,traverseInstanceTree:h2,TYPED_ARRAYS:mi,uncapitalize:EJ,VOID:SJ,vtkDebugMacro:d2,vtkErrorMacro:Gn,vtkInfoMacro:CJ,vtkLogMacro:xJ,vtkOnceErrorMacro:TJ,vtkWarningMacro:VV},ru=Object.freeze({__proto__:null,VOID:SJ,setLoggerFunction:_J,vtkLogMacro:xJ,vtkInfoMacro:CJ,vtkDebugMacro:d2,vtkErrorMacro:Gn,vtkWarningMacro:VV,vtkOnceErrorMacro:TJ,TYPED_ARRAYS:mi,newTypedArray:Zg,newTypedArrayFrom:BV,capitalize:wT,_capitalize:ia,uncapitalize:EJ,formatBytesToProperUnit:MJ,formatNumbersWithThousandSeparator:DJ,setImmediateVTK:IV,measurePromiseExecution:LJ,obj:Ka,get:Yi,set:Sb,setGet:Va,getArray:Qg,setArray:$V,setGetArray:PV,moveToProtected:wb,algo:OJ,EVENT_ABORT:FV,event:AJ,newInstance:Or,chain:NJ,isVtkObject:zV,traverseInstanceTree:h2,debounce:VJ,throttle:UV,keystore:GV,proxy:BJ,proxyPropertyMapping:IJ,proxyPropertyState:$J,normalizeWheel:PJ,default:Q});const{vtkErrorMacro:JXe}=Q,eZe=["Build","Render"];function tZe(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 JXe("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 nZe={renderable:null,myFactory:null,children:[],visited:!1};function FJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nZe,n),Q.obj(t,e),Q.event(t,e,"event"),e._renderableChildMap=new Map,Q.get(t,e,["visited"]),Q.setGet(t,e,["_parent","renderable","myFactory"]),Q.getArray(t,e,["children"]),Q.moveToProtected(t,e,["parent"]),tZe(t,e)}const rZe=Q.newInstance(FJ,"vtkViewNode");var sa={newInstance:rZe,extend:FJ,PASS_TYPES:eZe};function aZe(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 iZe={};function zJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iZe,n),Q.obj(t,e),aZe(t,e)}const oZe=Q.newInstance(zJ,"vtkViewNodeFactory");var UJ={newInstance:oZe,extend:zJ};const GJ=Object.create(null);function sl(t,e){GJ[t]=e}function sZe(t,e){e.classHierarchy.push("vtkOpenGLViewNodeFactory")}const lZe={};function HJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,lZe,n),e.overrides=GJ,UJ.extend(t,e,n),sZe(t,e)}const uZe=Q.newInstance(HJ,"vtkOpenGLViewNodeFactory");var cZe={newInstance:uZe,extend:HJ};function fZe(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()){Qa(e.keyMatrices.wcvc,e.renderable.getViewMatrix()),EV(e.keyMatrices.normalMatrix,e.keyMatrices.wcvc),MV(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),Gr(e.keyMatrices.wcvc,e.keyMatrices.wcvc);const r=e._openGLRenderer.getAspectRatio();Qa(e.keyMatrices.vcpc,e.renderable.getProjectionMatrix(r,-1,1)),Gr(e.keyMatrices.vcpc,e.keyMatrices.vcpc),Ha(e.keyMatrices.wcpc,e.keyMatrices.vcpc,e.keyMatrices.wcvc),e.keyMatrixTime.modified(),e.lastRenderer=n}return e.keyMatrices}}const dZe={context:null,lastRenderer:null,keyMatrixTime:null,keyMatrices:null};function hZe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,dZe,n),sa.extend(t,e,n),e.keyMatrixTime={},Ka(e.keyMatrixTime),e.keyMatrices={normalMatrix:new Float64Array(9),vcpc:new Float64Array(16),wcvc:new Float64Array(16),wcpc:new Float64Array(16)},Va(t,e,["context","keyMatrixTime"]),fZe(t,e)}const pZe=Or(hZe);sl("vtkCamera",pZe);const{vtkDebugMacro:vZe}=ru;function gZe(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||(vZe("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 yZe={context:null,_openGLRenderWindow:null,selector:null};function mZe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yZe,n),sa.extend(t,e,n),Yi(t,e,["shaderCache"]),Va(t,e,["selector"]),wb(t,e,["openGLRenderWindow"]),gZe(t,e)}const bZe=Or(mZe,"vtkOpenGLRenderer");sl("vtkRenderer",bZe);function SZe(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(),Qa(e.keyMatrices.mcwc,e.renderable.getMatrix()),Gr(e.keyMatrices.mcwc,e.keyMatrices.mcwc),e.renderable.getIsIdentity()?fp(e.keyMatrices.normalMatrix):(EV(e.keyMatrices.normalMatrix,e.keyMatrices.mcwc),MV(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),FQ(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix)),e.keyMatrixTime.modified()),e.keyMatrices)}const wZe={context:null,keyMatrixTime:null,keyMatrices:null,activeTextures:null};function _Ze(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,wZe,n),sa.extend(t,e,n),e.keyMatrixTime={},Ka(e.keyMatrixTime,{mtime:0}),e.keyMatrices={normalMatrix:fp(new Float64Array(9)),mcwc:Un(new Float64Array(16))},Va(t,e,["context"]),Yi(t,e,["activeTextures"]),SZe(t,e)}const xZe=Or(_Ze);sl("vtkActor",xZe);function CZe(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 TZe={context:null,activeTextures:null};function EZe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,TZe,n),sa.extend(t,e,n),Va(t,e,["context"]),Yi(t,e,["activeTextures"]),CZe(t,e)}const MZe=Or(EZe);sl("vtkActor2D",MZe);var HV={exports:{}};HV.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})(aa,t,!1)})(HV);var DZe=HV.exports,WV={exports:{}};WV.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,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xor128=o})(aa,t,!1)})(WV);var kZe=WV.exports,jV={exports:{}};jV.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,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xorwow=o})(aa,t,!1)})(jV);var RZe=jV.exports,KV={exports:{}};KV.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,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(c.x&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xorshift7=o})(aa,t,!1)})(KV);var LZe=KV.exports,YV={exports:{}};YV.exports;(function(t){(function(e,n,r){function a(s){var l=this;l.next=function(){var c=l.w,f=l.X,d=l.i,h,p;return l.w=c=c+1640531527|0,p=f[d+34&127],h=f[d=d+1&127],p^=p<<13,h^=h<<17,p^=p>>>15,h^=h>>>12,p=f[d]=p^h,l.i=d,p+(c^c>>>16)|0};function u(c,f){var d,h,p,v,g,y=[],m=128;for(f===(f|0)?(h=f,f=null):(f=f+"\0",h=0,m=Math.max(m,f.length)),p=0,v=-32;v<m;++v)f&&(h^=f.charCodeAt((v+32)%f.length)),v===0&&(g=h),h^=h<<10,h^=h>>>15,h^=h<<4,h^=h>>>13,v>=0&&(g=g+1640531527|0,d=y[v&127]^=h+g,p=d==0?p+1:0);for(p>=128&&(y[(f&&f.length||0)&127]=-1),p=127,v=4*128;v>0;--v)h=y[p+34&127],d=y[p=p+1&127],h^=h<<13,d^=d<<17,h^=h>>>15,d^=d>>>12,y[p]=h^d;c.w=g,c.X=y,c.i=p}u(l,s)}function i(s,l){return l.i=s.i,l.w=s.w,l.X=s.X.slice(),l}function o(s,l){s==null&&(s=+new Date);var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(c.X&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xor4096=o})(aa,t,!1)})(YV);var OZe=YV.exports,qV={exports:{}};qV.exports;(function(t){(function(e,n,r){function a(s){var l=this,u="";l.next=function(){var f=l.b,d=l.c,h=l.d,p=l.a;return f=f<<25^f>>>7^d,d=d-h|0,h=h<<24^h>>>8^p,p=p-f|0,l.b=f=f<<20^f>>>12^d,l.c=d=d-h|0,l.d=h<<16^d>>>16^p,l.a=p-f|0},l.a=0,l.b=0,l.c=-1640531527,l.d=1367130551,s===Math.floor(s)?(l.a=s/4294967296|0,l.b=s|0):u+=s;for(var c=0;c<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,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.tychei=o})(aa,t,!1)})(qV);var AZe=qV.exports,WJ={exports:{}};const NZe={},VZe=Object.freeze(Object.defineProperty({__proto__:null,default:NZe},Symbol.toStringTag,{value:"Module"})),BZe=$ge(VZe);(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(w,C,x){var _=[];C=C==!0?{entropy:!0}:C||{};var T=y(g(C.entropy?[w,b(n)]:w??m(),3),_),M=new p(_),E=function(){for(var k=M.g(i),R=l,L=0;k<u;)k=(k+L)*a,R*=a,L=M.g(1);for(;k>=c;)k/=2,R/=2,L>>>=1;return(k+L)/R};return E.int32=function(){return M.g(4)|0},E.quick=function(){return M.g(4)/4294967296},E.double=E,y(b(M.S),n),(C.pass||x||function(k,R,L,A){return A&&(A.S&&v(A,M),k.state=function(){return v(M,{})}),L?(r[s]=k,R):k})(E,T,"global"in C?C.global:this==r,C.state)}function p(w){var C,x=w.length,_=this,T=0,M=_.i=_.j=0,E=_.S=[];for(x||(w=[x++]);T<a;)E[T]=T++;for(T=0;T<a;T++)E[T]=E[M=f&M+w[T%x]+(C=E[T])],E[M]=C;(_.g=function(k){for(var R,L=0,A=_.i,V=_.j,G=_.S;k--;)R=G[A=f&A+1],L=L*a+G[f&(G[A]=G[V=f&V+R])+(G[V]=R)];return _.i=A,_.j=V,L})(a)}function v(w,C){return C.i=w.i,C.j=w.j,C.S=w.S.slice(),C}function g(w,C){var x=[],_=typeof w,T;if(C&&_=="object")for(T in w)try{x.push(g(w[T],C-1))}catch{}return x.length?x:_=="string"?w:w+"\0"}function y(w,C){for(var x=w+"",_,T=0;T<x.length;)C[f&T]=f&(_^=C[f&T]*19)+x.charCodeAt(T++);return b(C)}function m(){try{var w;return d&&(w=d.randomBytes)?w=w(a):(w=new Uint8Array(a),(e.crypto||e.msCrypto).getRandomValues(w)),b(w)}catch{var C=e.navigator,x=C&&C.plugins;return[+new Date,e,x,e.screen,b(n)]}}function b(w){return String.fromCharCode.apply(0,w)}if(y(r.random(),n),t.exports){t.exports=h;try{d=BZe}catch{}}else r["seed"+s]=h})(typeof self<"u"?self:aa,[],Math)})(WJ);var IZe=WJ.exports,$Ze=DZe,PZe=kZe,FZe=RZe,zZe=LZe,UZe=OZe,GZe=AZe,dp=IZe;dp.alea=$Ze;dp.xor128=PZe;dp.xorwow=FZe;dp.xorshift7=zZe;dp.xor4096=UZe;dp.tychei=GZe;var HZe=dp;const WZe=wi(HZe),jJ=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],jZe=[1,0,0,0,1,0,0,0,1],XV=1e-6,ZV=1e-12,{vtkErrorMacro:KJ,vtkWarningMacro:qh}=Q;let YJ=0;const q6=20;function _b(t){return()=>KJ(`vtkMath::${t} - NOT IMPLEMENTED`)}function fm(t,e,n,r){let a;for(let i=0;i<e;i++)a=t[n*e+i],t[n*e+i]=t[r*e+i],t[r*e+i]=a}function Ry(t,e,n,r){let a;for(let i=0;i<e;i++)a=t[i*e+n],t[i*e+n]=t[i*e+r],t[i*e+r]=a}function zr(){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}const KZe=()=>Math.PI;function na(t){return t/180*Math.PI}function Cg(t){return t*180/Math.PI}const{round:Ly,floor:qJ,ceil:YZe,min:qZe,max:XZe}=Math;function ZZe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=1/0;for(let a=e,i=t.length;a<i;a+=n)t[a]<r&&(r=t[a]);return r}function QZe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=-1/0;for(let a=e,i=t.length;a<i;a+=n)r<t[a]&&(r=t[a]);return r}function JZe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=1/0,a=-1/0;for(let i=e,o=t.length;i<o;i+=n)t[i]<r&&(r=t[i]),a<t[i]&&(a=t[i]);return[r,a]}const eQe=_b("ceilLog2"),tQe=_b("factorial");function jo(t){let e=1;for(;e<t;)e*=2;return e}function Oy(t){return t===jo(t)}function nQe(t,e){let n=1;for(let r=1;r<=e;++r)n*=(t-r+1)/r;return Math.floor(n)}function rQe(t,e){if(t<e)return 0;const n=zr(e);for(let r=0;r<e;++r)n[r]=r;return n}function aQe(t,e,n){let r=0;for(let a=e-1;a>=0;--a)if(n[a]<t-e+a){let i=n[a]+1;for(;a<e;)n[a++]=i++;r=1;break}return r}function iQe(t){WZe(`${t}`,{global:!0}),YJ=t}function oQe(){return YJ}function sQe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:1)-t;return t+n*Math.random()}const lQe=_b("gaussian");function p2(t,e,n){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n}function Fl(t,e,n){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n}function XJ(t,e){return t[0]*=e,t[1]*=e,t[2]*=e,t}function ZJ(t,e){return t[0]*=e,t[1]*=e,t}function hO(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 uQe(t,e,n,r){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Dn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function cQe(t,e,n){n[0]=t[0]*e[0],n[1]=t[0]*e[1],n[2]=t[0]*e[2],n[3]=t[1]*e[0],n[4]=t[1]*e[1],n[5]=t[1]*e[2],n[6]=t[2]*e[0],n[7]=t[2]*e[1],n[8]=t[2]*e[2]}function Xl(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 Tu(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 Xh(t){const e=Tu(t);return e!==0&&(t[0]/=e,t[1]/=e,t[2]/=e),e}function fQe(t,e,n,r){const a=t[0]*t[0],i=t[1]*t[1],o=t[2]*t[2],s=Math.sqrt(a+i+o);let l,u,c;a>i&&a>o?(l=0,u=1,c=2):i>o?(l=1,u=2,c=0):(l=2,u=0,c=1);const f=t[l]/s,d=t[u]/s,h=t[c]/s,p=Math.sqrt(f*f+h*h);if(r!==0){const v=Math.sin(r),g=Math.cos(r);e&&(e[l]=(h*g-f*d*v)/p,e[u]=v*p,e[c]=(-(f*g)-d*h*v)/p),n&&(n[l]=(-(h*v)-f*d*g)/p,n[u]=g*p,n[c]=(f*v-d*h*g)/p)}else e&&(e[l]=h/p,e[u]=0,e[c]=-f/p),n&&(n[l]=-f*d/p,n[u]=p,n[c]=-d*h/p)}function dQe(t,e,n){const r=Dn(e,e);if(r===0)return n[0]=0,n[1]=0,n[2]=0,!1;const a=Dn(t,e)/r;for(let i=0;i<3;i++)n[i]=e[i];return XJ(n,a),!0}function pO(t,e){return t[0]*e[0]+t[1]*e[1]}function hQe(t,e,n){const r=pO(e,e);if(r===0)return n[0]=0,n[1]=0,!1;const a=pO(t,e)/r;for(let i=0;i<2;i++)n[i]=e[i];return ZJ(n,a),!0}function Os(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 pQe(t,e){const n=[0,0,0];return Xl(t,e,n),Math.atan2(Tu(n),Dn(t,e))}function vQe(t,e,n){const r=Math.abs(t-n);return 1/Math.sqrt(2*Math.PI*e)*Math.exp(-(r**2)/(2*e))}function gQe(t,e,n){const r=Math.abs(t-n);return Math.exp(-(r**2)/(2*e))}function yQe(t,e,n){n[0]=t[0]*e[0],n[1]=t[0]*e[1],n[2]=t[1]*e[0],n[3]=t[1]*e[1]}function QJ(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function JJ(t){const e=QJ(t);return e!==0&&(t[0]/=e,t[1]/=e),e}function Zr(){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 mQe(t,e){let n,r,a;const i=[0,0,0];for(let o=0;o<3;o++)a=Math.abs(t[o*3]),(r=Math.abs(t[o*3+1]))>a&&(a=r),(r=Math.abs(t[o*3+2]))>a&&(a=r),i[o]=1/a;a=i[0]*Math.abs(t[0]),n=0,(r=i[1]*Math.abs(t[3]))>=a&&(a=r,n=1),(r=i[2]*Math.abs(t[6]))>=a&&(n=2),n!==0&&(fm(t,3,n,0),i[n]=i[0]),e[0]=n,t[3]/=t[0],t[6]/=t[0],t[4]-=t[3]*t[1],t[7]-=t[6]*t[1],a=i[1]*Math.abs(t[4]),n=1,(r=i[2]*Math.abs(t[7]))>=a&&(n=2,fm(t,3,1,2),i[2]=i[1]),e[1]=n,t[7]/=t[4],t[5]-=t[3]*t[2],t[8]-=t[6]*t[2]+t[7]*t[5],e[2]=2}function bQe(t,e,n){let r=n[e[0]];n[e[0]]=n[0],n[0]=r,r=n[e[1]],n[e[1]]=n[1],n[1]=r-t[3]*n[0],r=n[e[2]],n[e[2]]=n[2],n[2]=r-t[6]*n[0]-t[7]*n[1],n[2]/=t[8],n[1]=(n[1]-t[5]*n[2])/t[4],n[0]=(n[0]-t[1]*n[1]-t[2]*n[2])/t[0]}function SQe(t,e,n){const r=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],d=+Zr(s,c,l,f),h=-Zr(o,u,l,f),p=+Zr(o,u,s,c),v=-Zr(a,c,i,f),g=+Zr(r,u,i,f),y=-Zr(r,u,a,c),m=+Zr(a,s,i,l),b=-Zr(r,o,i,l),w=+Zr(r,o,a,s),C=r*d+a*h+i*p,x=d*e[0]+v*e[1]+m*e[2],_=h*e[0]+g*e[1]+b*e[2],T=p*e[0]+y*e[1]+w*e[2];n[0]=x/C,n[1]=_/C,n[2]=T/C}function wQe(t,e,n){const r=t[0]*e[0]+t[1]*e[1]+t[2]*e[2],a=t[3]*e[0]+t[4]*e[1]+t[5]*e[2],i=t[6]*e[0]+t[7]*e[1]+t[8]*e[2];n[0]=r,n[1]=a,n[2]=i}function vO(t,e,n){const r=[...t],a=[...e];for(let i=0;i<3;i++)n[i]=r[0]*a[i]+r[1]*a[i+3]+r[2]*a[i+6],n[i+3]=r[3]*a[i]+r[4]*a[i+3]+r[5]*a[i+6],n[i+6]=r[6]*a[i]+r[7]*a[i+3]+r[8]*a[i+6]}function _Qe(t,e,n,r,a,i,o){r!==a&&KJ("Number of columns of A must match number of rows of B.");const s=[...t],l=[...e];for(let u=0;u<n;u++)for(let c=0;c<i;c++){o[u*i+c]=0;for(let f=0;f<r;f++)o[u*i+c]+=s[u*r+f]*l[c+i*f]}}function Wv(t,e){let n;n=t[3],e[3]=t[1],e[1]=n,n=t[6],e[6]=t[2],e[2]=n,n=t[7],e[7]=t[5],e[5]=n,e[0]=t[0],e[4]=t[4],e[8]=t[8]}function xQe(t,e){const 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=+Zr(o,u,s,c),d=-Zr(i,l,s,c),h=+Zr(i,l,o,u),p=-Zr(r,u,a,c),v=+Zr(n,l,a,c),g=-Zr(n,l,r,u),y=+Zr(r,o,a,s),m=-Zr(n,i,a,s),b=+Zr(n,i,r,o),w=n*f+r*d+a*h;w===0&&qh("Matrix has 0 determinant"),e[0]=f/w,e[3]=d/w,e[6]=h/w,e[1]=p/w,e[4]=v/w,e[7]=g/w,e[2]=y/w,e[5]=m/w,e[8]=b/w}function _T(t){return t[0]*t[4]*t[8]+t[3]*t[7]*t[2]+t[6]*t[1]*t[5]-t[0]*t[7]*t[5]-t[3]*t[1]*t[8]-t[6]*t[4]*t[2]}function eee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:XV;if(t.length!==e.length)return!1;function r(a,i){return Math.abs(a-e[i])<=n}return t.every(r)}const xb=eee;function tee(t){for(let e=0;e<3;e++)t[e*3]=t[e*3+1]=t[e*3+2]=0,t[e*3+e]=1}function nee(t,e){for(let n=0;n<t;n++){for(let r=0;r<t;r++)e[n*t+r]=0;e[n*t+n]=1}return e}function CQe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:XV;return xb(t,jJ,e)}function TQe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:XV;return xb(t,jZe,e)}function ree(t,e){const n=t[0]*t[0],r=t[0]*t[1],a=t[0]*t[2],i=t[0]*t[3],o=t[1]*t[1],s=t[2]*t[2],l=t[3]*t[3],u=t[1]*t[2],c=t[1]*t[3],f=t[2]*t[3],d=o+s+l;let h=1/(n+d);const p=(n-d)*h;h*=2,e[0]=o*h+p,e[3]=(u+i)*h,e[6]=(c-a)*h,e[1]=(u-i)*h,e[4]=s*h+p,e[7]=(f+r)*h,e[2]=(c+a)*h,e[5]=(f-r)*h,e[8]=l*h+p}function nx(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 gO(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]=nx(t[0],n),e[1]=nx(t[1],n),e[2]=nx(t[2],n),e}function Cb(t,e,n,r){let a,i,o,s,l,u,c,f,d,h,p,v,g,y,m,b;const w=zr(e),C=zr(e),x=(T,M,E)=>{y=T[M],g=T[E],T[M]=y-v*(g+y*h),T[E]=g+v*(y-g*h)};for(nee(e,r),l=0;l<e;l++)w[l]=n[l]=t[l+l*e],C[l]=0;for(a=0;a<q6;a++){for(p=0,l=0;l<e-1;l++)for(s=l+1;s<e;s++)p+=Math.abs(t[l*e+s]);if(p===0)break;for(a<3?c=.2*p/(e*e):c=0,l=0;l<e-1;l++)for(s=l+1;s<e;s++)if(y=100*Math.abs(t[l*e+s]),a>3&&Math.abs(n[l])+y===Math.abs(n[l])&&Math.abs(n[s])+y===Math.abs(n[s]))t[l*e+s]=0;else if(Math.abs(t[l*e+s])>c){for(g=n[s]-n[l],Math.abs(g)+y===Math.abs(g)?d=t[l*e+s]/g:(f=.5*g/t[l*e+s],d=1/(Math.abs(f)+Math.sqrt(1+f*f)),f<0&&(d=-d)),m=1/Math.sqrt(1+d*d),v=d*m,h=v/(1+m),g=d*t[l*e+s],C[l]-=g,C[s]+=g,n[l]-=g,n[s]+=g,t[l*e+s]=0,i=0;i<=l-1;i++)x(t,i*e+l,i*e+s);for(i=l+1;i<=s-1;i++)x(t,l*e+i,i*e+s);for(i=s+1;i<e;i++)x(t,l*e+i,s*e+i);for(i=0;i<e;i++)x(r,i*e+l,i*e+s)}for(l=0;l<e;l++)w[l]+=C[l],n[l]=w[l],C[l]=0}if(a>=q6)return qh("vtkMath::Jacobi: Error extracting eigenfunctions"),0;for(i=0;i<e-1;i++){for(o=i,b=n[o],a=i+1;a<e;a++)(n[a]>=b||Math.abs(n[a]-b)<ZV)&&(o=a,b=n[o]);o!==i&&(n[o]=n[i],n[i]=b,Ry(r,e,i,o))}const _=(e>>1)+(e&1);for(u=0,a=0;a<e*e;a++)r[a]>=0&&u++;if(u<_)for(a=0;a<e;a++)r[a*e+i]*=-1;return 1}function aee(t,e){const n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];n[0]=t[0]+t[4]+t[8],n[5]=t[0]-t[4]-t[8],n[10]=-t[0]+t[4]-t[8],n[15]=-t[0]-t[4]+t[8],n[1]=n[4]=t[7]-t[5],n[2]=n[8]=t[2]-t[6],n[3]=n[12]=t[3]-t[1],n[6]=n[9]=t[3]+t[1],n[7]=n[13]=t[2]+t[6],n[11]=n[14]=t[7]+t[5];const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0],i=[...n];Cb(i,4,a,r),e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12]}function EQe(t,e,n){const r=t[0]*e[0],a=t[0]*e[1],i=t[0]*e[2],o=t[0]*e[3],s=t[1]*e[0],l=t[1]*e[1],u=t[1]*e[2],c=t[1]*e[3],f=t[2]*e[0],d=t[2]*e[1],h=t[2]*e[2],p=t[2]*e[3],v=t[3]*e[0],g=t[3]*e[1],y=t[3]*e[2],m=t[3]*e[3];n[0]=r-l-h-m,n[1]=a+s+p-y,n[2]=i-c+f+g,n[3]=o+u-d+v}function iee(t,e){for(let d=0;d<9;d++)e[d]=t[d];const n=zr(3),r=zr(3);let a;for(let d=0;d<3;d++){const h=Math.abs(e[d*3]),p=Math.abs(e[d*3+1]),v=Math.abs(e[d*3+2]);a=p>h?p:h,a=v>a?v:a,n[d]=1,a!==0&&(n[d]/=a)}const i=Math.abs(e[0])*n[0],o=Math.abs(e[3])*n[1],s=Math.abs(e[6])*n[2];r[0]=0,a=i,o>=a&&(a=o,r[0]=1),s>=a&&(r[0]=2),r[0]!==0&&(Ry(e,3,r[0],0),n[r[0]]=n[0]);const l=Math.abs(e[4])*n[1],u=Math.abs(e[7])*n[2];r[1]=1,a=l,u>=a&&(r[1]=2,Ry(e,3,1,2)),r[2]=2;let c=0;if(_T(e)<0){c=1;for(let d=0;d<9;d++)e[d]=-e[d]}const f=zr(4);if(aee(e,f),ree(f,e),c)for(let d=0;d<9;d++)e[d]=-e[d];r[1]!==1&&Ry(e,3,r[1],1),r[0]!==0&&Ry(e,3,r[0],0)}function oee(t,e,n){let r,a,i,o,s,l;const u=[...t];if(Cb(u,3,e,n),e[0]===e[1]&&e[0]===e[2]){tee(n);return}for(Wv(n,n),r=0;r<3;r++)if(e[(r+1)%3]===e[(r+2)%3]){for(l=Math.abs(n[r*3]),o=0,a=1;a<3;a++)l<(s=Math.abs(n[r*3+a]))&&(l=s,o=a);o!==r&&(s=e[o],e[o]=e[r],e[r]=s,fm(n,3,r,o)),n[o*3+o]<0&&(n[o*3]=-n[o*3],n[o*3+1]=-n[o*3+1],n[o*3+2]=-n[o*3+2]),a=(o+1)%3,i=(o+2)%3,n[a*3]=0,n[a*3+1]=0,n[a*3+2]=0,n[a*3+a]=1;const c=Xl([n[o*3],n[o*3+1],n[o*3+2]],[n[a*3],n[a*3+1],n[a*3+2]],[]);Xh(c);const f=Xl(c,[n[o*3],n[o*3+1],n[o*3+2]],[]);for(let d=0;d<3;d++)n[i*3+d]=c[d],n[a*3+d]=f[d];Wv(n,n);return}for(l=Math.abs(n[0]),o=0,r=1;r<3;r++)l<(s=Math.abs(n[r*3]))&&(l=s,o=r);if(o!==0){const c=e[o];e[o]=e[0],e[0]=c,fm(n,3,o,0)}if(Math.abs(n[4])<Math.abs(n[7])){const c=e[2];e[2]=e[1],e[1]=c,fm(n,3,1,2)}for(r=0;r<2;r++)n[r*3+r]<0&&(n[r*3]=-n[r*3],n[r*3+1]=-n[r*3+1],n[r*3+2]=-n[r*3+2]);_T(n)<0&&(n[6]=-n[6],n[7]=-n[7],n[8]=-n[8]),Wv(n,n)}function MQe(t,e,n,r){let a;const i=[...t],o=_T(i);if(o<0)for(a=0;a<9;a++)i[a]=-i[a];iee(i,e),Wv(i,i),vO(i,e,r),oee(r,n,r),vO(e,r,e),Wv(r,r),o<0&&(n[0]=-n[0],n[1]=-n[1],n[2]=-n[2])}function QV(t,e,n){let r,a,i,o,s=0,l,u,c;const f=zr(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 qh("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])<=ZV)return qh("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 JV(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 see(t,e,n){if(n===2){const a=zr(2),i=Zr(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=zr(n);return QV(t,r,n)===0?0:(JV(t,r,e,n),1)}function lee(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;const i=r||zr(n),o=a||zr(n);if(QV(t,i,n)===0)return null;for(let s=0;s<n;s++){for(let l=0;l<n;l++)o[l]=0;o[s]=1,JV(t,i,o,n);for(let l=0;l<n;l++)e[l*n+s]=o[l]}return e}function DQe(t,e){let n=+Number.MAX_VALUE,r=-Number.MAX_VALUE;for(let a=0;a<e;a++)for(let i=a;i<e;i++)Math.abs(t[a*e+i])>r&&(r=Math.abs(t[a*e+i]));for(let a=0;a<e;a++)Math.abs(t[a*e+a])<n&&(n=Math.abs(t[a*e+a]));return n===0?Number.MAX_VALUE:r/n}function kQe(t,e,n){return Cb(t,3,e,n)}function yO(t,e,n,r){if(t<n)return qh("Insufficient number of samples. Underdetermined."),0;let a,i,o;const s=zr(n*n),l=zr(n),u=zr(n*n);for(o=0;o<t;o++)for(a=0;a<n;a++)for(i=a;i<n;i++)s[a*n+i]+=e[o*n+a]*e[o*n+i];for(a=0;a<n;a++)for(i=0;i<a;i++)s[a*n+i]=s[i*n+a];for(Cb(s,n,l,u),a=0;a<n;a++)r[a]=u[a*n+n-1];return 1}function RQe(t,e,n,r,a,i){let o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!0;if(t<n||t<a)return qh("Insufficient number of samples. Underdetermined."),0;const s=zr(a);let l=1,u,c=0,f,d,h,p=0;if(o){for(d=0;d<a;d++)s[d]=1;for(f=0;f<t;f++)for(d=0;d<a;d++)Math.abs(r[f*a+d])>ZV&&(l=0,s[d]=0);if(l&&a===1)return qh("Detected homogeneous system (Y=0), calling SolveHomogeneousLeastSquares()"),yO(t,e,n,i);if(l)p=1;else for(d=0;d<a;d++)s[d]&&(p=1)}p&&(u=zr(n),c=yO(t,e,n,u));const v=zr(n*n),g=zr(n*n),y=zr(n*a);for(h=0;h<t;h++)for(f=0;f<n;f++){for(d=f;d<n;d++)v[f*n+d]+=e[h*n+f]*e[h*n+d];for(d=0;d<a;d++)y[f*a+d]+=e[h*n+f]*r[h*a+d]}for(f=0;f<n;f++)for(d=0;d<f;d++)v[f*n+d]=v[d*n+f];const m=lee(v,g,n);if(m)for(f=0;f<n;f++)for(d=0;d<a;d++)for(i[f*a+d]=0,h=0;h<n;h++)i[f*a+d]+=g[f*n+h]*y[h*a+d];if(p){for(d=0;d<a;d++)if(s[d])for(f=0;f<n;f++)i[f*a+d]=u[f*a]}return p?c&&m:m}function LQe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,.5,1];switch(t.length){case 3:return e[0]=parseInt(t[0],16)*17/255,e[1]=parseInt(t[1],16)*17/255,e[2]=parseInt(t[2],16)*17/255,e;case 4:return e[0]=parseInt(t[1],16)*17/255,e[1]=parseInt(t[2],16)*17/255,e[2]=parseInt(t[3],16)*17/255,e;case 6:return e[0]=parseInt(t.substr(0,2),16)/255,e[1]=parseInt(t.substr(2,2),16)/255,e[2]=parseInt(t.substr(4,2),16)/255,e;case 7:return e[0]=parseInt(t.substr(1,2),16)/255,e[1]=parseInt(t.substr(3,2),16)/255,e[2]=parseInt(t.substr(5,2),16)/255,e;case 9:return e[0]=parseInt(t.substr(1,2),16)/255,e[1]=parseInt(t.substr(3,2),16)/255,e[2]=parseInt(t.substr(5,2),16)/255,e[3]=parseInt(t.substr(7,2),16)/255,e;default:return e}}function Ay(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 eh(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 uee(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 cee(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 fee(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 dee(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 vh(t,e){const n=[0,0,0];dee(t,n),cee(n,e)}function v2(t,e){const n=[0,0,0];uee(t,n),fee(n,e)}function xT(t){return t[0]=1,t[1]=-1,t[2]=1,t[3]=-1,t[4]=1,t[5]=-1,t}function rx(t){return!(t[1]-t[0]<0)}function OQe(t,e,n){return n[0]=Math.min(t[0],e[0]),n[1]=Math.max(t[0],e[0]),n[2]=Math.min(t[1],e[1]),n[3]=Math.max(t[1],e[1]),n[4]=Math.min(t[2],e[2]),n[5]=Math.max(t[2],e[2]),n}function ax(t,e,n){return t<e?e:t>n?n:t}function mO(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0,0,0];return r[0]=ax(t[0],e[0],n[0]),r[1]=ax(t[1],e[1],n[1]),r[2]=ax(t[2],e[2],n[2]),r}function AQe(t,e){let n=0;return e[0]!==e[1]&&(t<e[0]?n=e[0]:t>e[1]?n=e[1]:n=t,n=(n-e[0])/(e[1]-e[0])),n}const NQe=_b("GetScalarTypeFittingRange"),VQe=_b("GetAdjustedScalarRange");function BQe(t,e){if(!t||!e)return 0;for(let n=0;n<6;n+=2)if(t[n]<e[n]||t[n]>e[n+1]||t[n+1]<e[n]||t[n+1]>e[n+1])return 0;return 1}function IQe(t,e,n){if(!t||!e)return 0;for(let r=0;r<6;r+=2)if(t[r]+n[r/2]<e[r]||t[r]-n[r/2]>e[r+1]||t[r+1]+n[r/2]<e[r]||t[r+1]-n[r/2]>e[r+1])return 0;return 1}function $Qe(t,e,n){if(!t||!e||!n)return 0;for(let r=0;r<3;r++)if(t[r]+n[r]<e[2*r]||t[r]-n[r]>e[2*r+1])return 0;return 1}function PQe(t,e,n,r){const a=zr(3),i=zr(3),o=zr(3),s=zr(3),l=zr(3),u=zr(3);for(let w=0;w<3;++w)a[w]=t[w]-e[w],i[w]=e[w]-n[w],o[w]=n[w]-t[w],s[w]=-a[w],l[w]=-i[w],u[w]=-o[w];const c=Tu(s),f=Tu(l),d=Tu(o),h=zr(3);Xl(a,i,h);const p=Tu(h),v=c*f*d/(2*p),g=2*p*p,y=f*f*Dn(a,u)/g,m=d*d*Dn(s,i)/g,b=c*c*Dn(o,l)/g;for(let w=0;w<3;++w)r[w]=y*t[w]+m*e[w]+b*n[w];return v}const FQe=1/0,zQe=-1/0,hee=t=>!Number.isFinite(t),{isFinite:UQe,isNaN:bO}=Number,g2=bO;function CT(){return[].concat([Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE])}function GQe(t){let e=-1,n=-1;for(let r=0;r<t.length;r++){const a=Math.abs(t[r]);a>e&&(n=r,e=a)}return n}function HQe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;const n=new Array(e),r=new Array(e);for(let i=0;i<e;++i)n[i]=i,r[i]=i;for(let i=e-1;i>0;i--){let o=-1/0,s=0,l=0;for(let u=0;u<=i;++u){const c=n[u];for(let f=0;f<=i;++f){const d=r[f],h=Math.abs(t[c+e*d]);h>o&&(o=h,s=u,l=f)}}[n[i],n[s]]=[n[s],n[i]],[r[i],r[l]]=[r[l],r[i]]}const a=new Array(e*e).fill(0);for(let i=0;i<e;++i){const o=n[i]+e*r[i];a[o]=t[o]<0?-1:1}return a}function pee(t){const e=Math.floor(t*255);return e>15?e.toString(16):`0${e.toString(16)}`}function WQe(t){return`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#"}${t.map(pee).join("")}`}function FS(t){return Math.round(t*255)}function jQe(t){return t.length===3?`rgb(${t.map(FS).join(", ")})`:`rgba(${FS(t[0]||0)}, ${FS(t[1]||0)}, ${FS(t[2]||0)}, ${t[3]||0})`}var Z3t={Pi:KZe,radiansFromDegrees:na,degreesFromRadians:Cg,round:Ly,floor:qJ,ceil:YZe,ceilLog2:eQe,min:qZe,max:XZe,arrayMin:ZZe,arrayMax:QZe,arrayRange:JZe,isPowerOfTwo:Oy,nearestPowerOfTwo:jo,factorial:tQe,binomial:nQe,beginCombination:rQe,nextCombination:aQe,randomSeed:iQe,getSeed:oQe,random:sQe,gaussian:lQe,add:p2,subtract:Fl,multiplyScalar:XJ,multiplyScalar2D:ZJ,multiplyAccumulate:hO,multiplyAccumulate2D:uQe,dot:Dn,outer:cQe,cross:Xl,norm:Tu,normalize:Xh,perpendiculars:fQe,projectVector:dQe,projectVector2D:hQe,distance2BetweenPoints:Os,angleBetweenVectors:pQe,gaussianAmplitude:vQe,gaussianWeight:gQe,dot2D:pO,outer2D:yQe,norm2D:QJ,normalize2D:JJ,determinant2x2:Zr,LUFactor3x3:mQe,LUSolve3x3:bQe,linearSolve3x3:SQe,multiply3x3_vect3:wQe,multiply3x3_mat3:vO,multiplyMatrix:_Qe,transpose3x3:Wv,invert3x3:xQe,identity3x3:tee,identity:nee,isIdentity:CQe,isIdentity3x3:TQe,determinant3x3:_T,quaternionToMatrix3x3:ree,areEquals:eee,areMatricesEqual:xb,roundNumber:nx,roundVector:gO,matrix3x3ToQuaternion:aee,multiplyQuaternion:EQe,orthogonalize3x3:iee,diagonalize3x3:oee,singularValueDecomposition3x3:MQe,solveLinearSystem:see,invertMatrix:lee,luFactorLinearSystem:QV,luSolveLinearSystem:JV,estimateMatrixCondition:DQe,jacobi:kQe,jacobiN:Cb,solveHomogeneousLeastSquares:yO,solveLeastSquares:RQe,hex2float:LQe,rgb2hsv:Ay,hsv2rgb:eh,lab2xyz:uee,xyz2lab:cee,xyz2rgb:fee,rgb2xyz:dee,rgb2lab:vh,lab2rgb:v2,uninitializeBounds:xT,areBoundsInitialized:rx,computeBoundsFromPoints:OQe,clampValue:ax,clampVector:mO,clampAndNormalizeValue:AQe,getScalarTypeFittingRange:NQe,getAdjustedScalarRange:VQe,extentIsWithinOtherExtent:BQe,boundsIsWithinOtherBounds:IQe,pointIsWithinBounds:$Qe,solve3PointCircle:PQe,inf:FQe,negInf:zQe,isInf:hee,isNan:bO,isNaN:bO,isFinite:UQe,createUninitializedBounds:CT,getMajorAxisIndex:GQe,getSparseOrthogonalMatrix:HQe,floatToHex2:pee,floatRGB2HexCode:WQe,float2CssRGBA:jQe};const SO=1e-6,vee="coincide",gee="disjoint";function KQe(t,e,n){return t[0]*(n[0]-e[0])+t[1]*(n[1]-e[1])+t[2]*(n[2]-e[2])}function yee(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 mee(t,e,n,r){const a=[];Fl(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 bee(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 See(t,e,n,r){const a=[];Fl(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 wee(t,e,n,r){const a={intersection:!1,betweenPoints:!1,t:Number.MAX_VALUE,x:[]},i=[],o=[];Fl(e,t,i),Fl(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*SO:c=s*SO,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 _ee(t,e,n,r){const a={intersection:!1,l0:[],l1:[],error:null},i=[];Xl(e,r,i);const o=i.map(f=>Math.abs(f));if(o[0]+o[1]+o[2]<SO){const f=[];return Fl(t,n,f),Dn(e,f)===0?a.error=vee:a.error=gee,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,p2(l,i,a.l1),a.intersection=!0,a}const YQe={evaluate:KQe,distanceToPlane:yee,projectPoint:mee,projectVector:bee,generalizedProjectPoint:See,intersectWithLine:wee,intersectWithPlane:_ee,DISJOINT:gee,COINCIDE:vee};function qQe(t,e){e.classHierarchy.push("vtkPlane"),t.distanceToPlane=n=>yee(n,e.origin,e.normal),t.projectPoint=(n,r)=>{mee(n,e.origin,e.normal,r)},t.projectVector=(n,r)=>bee(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)=>{See(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)=>wee(n,r,e.origin,e.normal),t.intersectWithPlane=(n,r)=>_ee(n,r,e.origin,e.normal)}const XQe={normal:[0,0,1],origin:[0,0,0]};function xee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,XQe,n),Q.obj(t,e),Q.setGetArray(t,e,["normal","origin"],3),qQe(t,e)}const ZQe=Q.newInstance(xee,"vtkPlane");var Tg={newInstance:ZQe,extend:xee,...YQe};const TT=[Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE];function Cee(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 zu(t){return(t==null?void 0:t.length)>=6&&t[0]<=t[1]&&t[2]<=t[3]&&t[4]<=t[5]}function eB(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 tB(t){return eB(t,TT)}function y2(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 nB(t,e){if(e.length===0)return t;if(Array.isArray(e[0]))for(let n=0;n<e.length;++n)y2(t,...e[n]);else for(let n=0;n<e.length;n+=3)y2(t,...e.slice(n,n+3));return t}function Tee(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 Eee(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 Mee(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 Dee(t,e){return t[0]-=e,t[1]+=e,t[2]-=e,t[3]+=e,t[4]-=e,t[5]+=e,t}function rB(t,e,n,r){return zu(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 aB(t){return[.5*(t[0]+t[1]),.5*(t[2]+t[3]),.5*(t[4]+t[5])]}function QQe(t,e,n,r){if(!zu(t))return!1;const a=aB(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],rB(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 dm(t,e){return t[e*2+1]-t[e*2]}function ET(t){return[dm(t,0),dm(t,1),dm(t,2)]}function kee(t){return t.slice(0,2)}function Ree(t){return t.slice(2,4)}function Lee(t){return t.slice(4,6)}function Oee(t){const e=ET(t);return e[0]>e[1]?e[0]>e[2]?e[0]:e[2]:e[1]>e[2]?e[1]:e[2]}function Aee(t){if(zu(t)){const e=ET(t);return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}return null}function iB(t){return[t[0],t[2],t[4]]}function oB(t){return[t[1],t[3],t[5]]}function zS(t,e){return t<=0&&e>=0||t>=0&&e<=0}function sB(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 Nee(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 Vee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=sB(t,[]);for(let a=0;a<r.length;++a)hr(r[a],r[a],e);return tB(n),nB(n,r)}function Bee(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 Iee(t,e,n,r){const a=[].concat(TT),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 $ee(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 Pee(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=Tg.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 Fee(t,e){if(!(zu(t)&&zu(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 m2(t,e){if(!(zu(t)&&zu(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 b2(t,e,n,r){return!(e<t[0]||e>t[1]||n<t[2]||n>t[3]||r<t[4]||r>t[5])}function JQe(t,e){return!(!m2(t,e)||!b2(t,...iB(e))||!b2(t,...oB(e)))}function zee(t,e,n){const r=[[0,1,2,3,4,5,6,7],[0,1,4,5,2,3,6,7],[0,2,4,6,1,3,5,7]],a=[0,0,0,0,0,0,0,0];let i=0;for(let f=0;f<2;f++)for(let d=2;d<4;d++)for(let h=4;h<6;h++){const p=[t[f],t[d],t[h]];a[i++]=Tg.evaluate(n,e,p)}let o=2;for(;o--&&!(zS(a[r[o][0]],a[r[o][4]])&&zS(a[r[o][1]],a[r[o][5]])&&zS(a[r[o][2]],a[r[o][6]])&&zS(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 eJe{constructor(e){this.bounds=e,this.bounds||(this.bounds=new Float64Array(TT))}getBounds(){return this.bounds}equals(e){return Cee(this.bounds,e)}isValid(){return zu(this.bounds)}setBounds(e){return eB(this.bounds,e)}reset(){return tB(this.bounds)}addPoint(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return y2(this.bounds,...n)}addPoints(e){return nB(this.bounds,e)}addBounds(e,n,r,a,i,o){return Tee(this.bounds,e,n,r,a,i,o)}setMinPoint(e,n,r){return Eee(this.bounds,e,n,r)}setMaxPoint(e,n,r){return Mee(this.bounds,e,n,r)}inflate(e){return Dee(this.bounds,e)}scale(e,n,r){return rB(this.bounds,e,n,r)}getCenter(){return aB(this.bounds)}getLength(e){return dm(this.bounds,e)}getLengths(){return ET(this.bounds)}getMaxLength(){return Oee(this.bounds)}getDiagonalLength(){return Aee(this.bounds)}getMinPoint(){return iB(this.bounds)}getMaxPoint(){return oB(this.bounds)}getXRange(){return kee(this.bounds)}getYRange(){return Ree(this.bounds)}getZRange(){return Lee(this.bounds)}getCorners(e){return sB(this.bounds,e)}computeCornerPoints(e,n){return Nee(this.bounds,e,n)}computeLocalBounds(e,n,r){return Iee(this.bounds,e,n,r)}transformBounds(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Vee(this.bounds,e,n)}computeScale3(e){return Bee(this.bounds,e)}cutWithPlane(e,n){return zee(this.bounds,e,n)}intersectBox(e,n,r,a){return $ee(this.bounds,e,n,r,a)}intersectPlane(e,n){return Pee(this.bounds,e,n)}intersect(e){return Fee(this.bounds,e)}intersects(e){return m2(this.bounds,e)}containsPoint(e,n,r){return b2(this.bounds,e,n,r)}contains(e){return m2(this.bounds,e)}}function tJe(t){const e=t&&t.bounds;return new eJe(e)}const nJe={equals:Cee,isValid:zu,setBounds:eB,reset:tB,addPoint:y2,addPoints:nB,addBounds:Tee,setMinPoint:Eee,setMaxPoint:Mee,inflate:Dee,scale:rB,scaleAboutCenter:QQe,getCenter:aB,getLength:dm,getLengths:ET,getMaxLength:Oee,getDiagonalLength:Aee,getMinPoint:iB,getMaxPoint:oB,getXRange:kee,getYRange:Ree,getZRange:Lee,getCorners:sB,computeCornerPoints:Nee,computeLocalBounds:Iee,transformBounds:Vee,computeScale3:Bee,cutWithPlane:zee,intersectBox:$ee,intersectPlane:Pee,intersect:Fee,intersects:m2,containsPoint:b2,contains:JQe,INIT_BOUNDS:TT};var Ur={newInstance:tJe,...nJe};const rJe={DISPLAY:0,WORLD:1};var Uee={CoordinateSystem:rJe};const{CoordinateSystem:wO}=Uee;function X6(t){return()=>Q.vtkErrorMacro(`vtkProp::${t} - NOT IMPLEMENTED`)}function aJe(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=X6("pick"),t.hasKey=X6("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(wO.WORLD),t.setCoordinateSystemToDisplay=()=>t.setCoordinateSystem(wO.DISPLAY)}const iJe={allocatedRenderTime:10,coordinateSystem:wO.WORLD,dragable:!0,estimatedRenderTime:0,paths:null,pickable:!0,renderTimeMultiplier:1,savedEstimatedRenderTime:0,textures:[],useBounds:!0,visibility:!0};function Gee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iJe,n),Q.obj(t,e),Q.get(t,e,["estimatedRenderTime","allocatedRenderTime"]),Q.setGet(t,e,["_parentProp","coordinateSystem","dragable","pickable","renderTimeMultiplier","useBounds","visibility"]),Q.moveToProtected(t,e,["parentProp"]),aJe(t,e)}const oJe=Q.newInstance(Gee,"vtkProp");var Tb={newInstance:oJe,extend:Gee,...Uee};function sJe(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=Yh();YQ(r,e.rotation);const a=new Float64Array(3),i=Dqe(a,r);return[Cg(i),a[0],a[1],a[2]]},t.rotateX=r=>{r!==0&&(kV(e.rotation,e.rotation,na(r)),t.modified())},t.rotateY=r=>{r!==0&&(RV(e.rotation,e.rotation,na(r)),t.modified())},t.rotateZ=r=>{r!==0&&(LV(e.rotation,e.rotation,na(r)),t.modified())},t.rotateWXYZ=(r,a,i,o)=>{if(r===0||a===0&&i===0&&o===0)return;const s=na(r),l=Yh();NV(l,[a,i,o],s);const u=new Float64Array(16);OV(u,l),Ha(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],Un(e.rotation),t.rotateZ(i),t.rotateX(r),t.rotateY(a),t.modified(),!0),t.setUserMatrix=r=>xb(e.userMatrix,r)?!1:(Qa(e.userMatrix,r),t.modified(),!0),t.getMatrix=()=>(t.computeMatrix(),e.matrix),t.computeMatrix=()=>{if(t.getMTime()>e.matrixMTime.getMTime()){Un(e.matrix),e.userMatrix&&Ha(e.matrix,e.matrix,e.userMatrix),la(e.matrix,e.matrix,e.origin),la(e.matrix,e.matrix,e.position),Ha(e.matrix,e.matrix,e.rotation),Kh(e.matrix,e.matrix,e.scale),la(e.matrix,e.matrix,[-e.origin[0],-e.origin[1],-e.origin[2]]),Gr(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=()=>Ur.getCenter(e.bounds),t.getLength=()=>Ur.getLength(e.bounds),t.getXRange=()=>Ur.getXRange(e.bounds),t.getYRange=()=>Ur.getYRange(e.bounds),t.getZRange=()=>Ur.getZRange(e.bounds),t.getUserMatrix=()=>e.userMatrix;function n(){t.computeMatrix()}t.onModified(n)}const lJe={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 Hee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,lJe,n),Tb.extend(t,e,n),e.matrixMTime={},Q.obj(e.matrixMTime),Q.get(t,e,["bounds","isIdentity"]),Q.getArray(t,e,["orientation"]),Q.setGetArray(t,e,["origin","position","scale"],3),e.matrix=Un(new Float64Array(16)),e.rotation=Un(new Float64Array(16)),e.userMatrix=Un(new Float64Array(16)),e.transform=null,sJe(t,e)}const uJe=Q.newInstance(Hee,"vtkProp3D");var cJe={newInstance:uJe,extend:Hee};const Wee={FLAT:0,GOURAUD:1,PHONG:2},ti={POINTS:0,WIREFRAME:1,SURFACE:2},fJe=Wee;var jee={Shading:Wee,Representation:ti,Interpolation:fJe};const{Representation:Ny,Interpolation:Vy}=jee;function Z6(t){return()=>Q.vtkErrorMacro(`vtkProperty::${t} - NOT IMPLEMENTED`)}function dJe(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=Z6("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=Z6("AddShaderVariable"),t.setInterpolationToFlat=()=>t.setInterpolation(Vy.FLAT),t.setInterpolationToGouraud=()=>t.setInterpolation(Vy.GOURAUD),t.setInterpolationToPhong=()=>t.setInterpolation(Vy.PHONG),t.getInterpolationAsString=()=>Q.enumToString(Vy,e.interpolation),t.setRepresentationToWireframe=()=>t.setRepresentation(Ny.WIREFRAME),t.setRepresentationToSurface=()=>t.setRepresentation(Ny.SURFACE),t.setRepresentationToPoints=()=>t.setRepresentation(Ny.POINTS),t.getRepresentationAsString=()=>Q.enumToString(Ny,e.representation)}const hJe={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:Vy.GOURAUD,representation:Ny.SURFACE,edgeVisibility:!1,backfaceCulling:!1,frontfaceCulling:!1,pointSize:1,lineWidth:1,lighting:!0,shading:!1,materialName:null};function Kee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hJe,n),Q.obj(t,e),Q.setGet(t,e,["lighting","interpolation","ambient","diffuse","metallic","roughness","normalStrength","emission","baseIOR","specular","specularPower","opacity","edgeVisibility","lineWidth","pointSize","backfaceCulling","frontfaceCulling","representation","diffuseTexture","metallicTexture","roughnessTexture","normalTexture","ambientOcclusionTexture","emissionTexture"]),Q.setGetArray(t,e,["ambientColor","specularColor","diffuseColor","edgeColor"],3),dJe(t,e)}const pJe=Q.newInstance(Kee,"vtkProperty");var Jg={newInstance:pJe,extend:Kee,...jee};const{vtkDebugMacro:vJe}=Q;function gJe(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=Jg.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()){vJe("Recomputing bounds..."),e.mapperBounds=r.concat();const a=[];Ur.getCorners(r,a),t.computeMatrix();const i=new Float64Array(16);Gr(i,e.matrix),a.forEach(o=>hr(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 yJe={mapper:null,property:null,backfaceProperty:null,forceOpaque:!1,forceTranslucent:!1,bounds:[1,-1,1,-1,1,-1]};function Yee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yJe,n),cJe.extend(t,e,n),e.boundsMTime={},Q.obj(e.boundsMTime),Q.set(t,e,["property"]),Q.setGet(t,e,["backfaceProperty","forceOpaque","forceTranslucent","mapper"]),gJe(t,e)}const mJe=Q.newInstance(Yee,"vtkActor");var Pa={newInstance:mJe,extend:Yee};const qee={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ma={VOID:"",CHAR:"Int8Array",SIGNED_CHAR:"Int8Array",UNSIGNED_CHAR:"Uint8Array",SHORT:"Int16Array",UNSIGNED_SHORT:"Uint16Array",INT:"Int32Array",UNSIGNED_INT:"Uint32Array",FLOAT:"Float32Array",DOUBLE:"Float64Array"},bJe=ma.FLOAT;var Xee={DefaultDataType:bJe,DataTypeByteSize:qee,VtkDataTypes:ma};const{vtkErrorMacro:SJe}=ru,{DefaultDataType:wJe}=Xee,_Je=1e-6;function _O(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 xJe(){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 Zee(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 _O(i,0,1)}return _O(t,e<0?0:e,n)}function Q6(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 lB(t){return Object.prototype.toString.call(t).slice(8,-1)}function CJe(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=Tu(r,e);i>n&&(n=i)}return n}const TJe={computeRange:Zee,createRangeHelper:xJe,fastComputeRange:_O,getDataType:lB,getMaxNorm:CJe};function EJe(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=Zg(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=Q6(e.ranges,e.numberOfComponents)),i=e.ranges[a],i?(e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple):(i=Zee(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=Q6(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]:_Je;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=()=>Jee({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=lB(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())&&SJe("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 MJe={name:"",numberOfComponents:1,dataType:wJe,rangeTuple:[0,0]};function Qee(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Object.assign(e,MJe,n),!e.empty&&!e.values&&!e.size)throw new TypeError("Cannot create vtkDataArray object without: size > 0, values");if(e.values?Array.isArray(e.values)&&(e.values=BV(e.dataType,e.values)):e.values=Zg(e.dataType,e.size),e.values&&(e.size=e.size??e.values.length,e.dataType=lB(e.values)),Ka(t,e),Sb(t,e,["name","numberOfComponents"]),e.size%e.numberOfComponents!==0)throw new RangeError("model.size is not a multiple of model.numberOfComponents");EJe(t,e)}const Jee=Or(Qee,"vtkDataArray");var Hn={newInstance:Jee,extend:Qee,...TJe,...Xee};function DJe(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],p=-(f*c[0]+d*c[1]+h*c[2]);a[0]=f*o[0]+d*o[4]+h*o[8]+p*o[12],a[1]=f*o[1]+d*o[5]+h*o[9]+p*o[13],a[2]=f*o[2]+d*o[6]+h*o[10]+p*o[14],a[3]=f*o[3]+d*o[7]+h*o[11]+p*o[15];return}}Q.vtkErrorMacro(`Clipping plane index ${r} is out of range.`)}}const kJe={clippingPlanes:[]};function RJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,kJe,n),Q.obj(t,e),Q.algo(t,e,1,0),e.clippingPlanes||(e.clippingPlanes=[]),DJe(t,e)}var ete={extend:RJe};function LJe(t,e){t.getBounds=()=>(Q.vtkErrorMacro("vtkAbstractMapper3D.getBounds - NOT IMPLEMENTED"),CT()),t.getCenter=()=>{var r;const n=t.getBounds();return e.center=Ur.isValid(n)?Ur.getCenter(n):null,(r=e.center)==null?void 0:r.slice()},t.getLength=()=>{const n=t.getBounds();return Ur.getDiagonalLength(n)}}const OJe=t=>({bounds:[...Ur.INIT_BOUNDS],center:[0,0,0],viewSpecificProperties:{},...t});function AJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,OJe(n)),ete.extend(t,e,n),Q.setGet(t,e,["viewSpecificProperties"]),LJe(t,e)}var NJe={extend:AJe};const{vtkErrorMacro:J6,vtkWarningMacro:VJe}=Q;function BJe(t,e){e.classHierarchy.push("vtkFieldData");const n=t.getState;e.arrays&&(e.arrays=e.arrays.map(r=>({data:Us(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 J6("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=Hn.newInstance({name:o.getName(),dataType:o.getDataType(),numberOfComponents:u,values:Q.newTypedArray(o.getDataType(),c),size:0}),l.insertTuple(f,o.getTuple(a)),t.addArray(l),r.getAttributes(o).forEach(d=>{t.setAttribute(l,d)})}}})},t.interpolateData=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.5;r.getArrays().forEach(l=>{const u=t.getFlag(l.getName());if(u!==!1&&!(e.doCopyAllOff&&u!==!0)&&l){let c=t.getArrayByName(l.getName());if(c)if(l.getNumberOfComponents()===c.getNumberOfComponents())if(a>-1&&a<l.getNumberOfTuples()){const f=o>-1?o:a;c.interpolateTuple(f,l,a,l,i,s),VJe("Unexpected case in interpolateData")}else c.insertTuples(l.getTuples());else J6("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=Hn.newInstance({name:l.getName(),dataType:l.getDataType(),numberOfComponents:f,values:Q.newTypedArray(l.getDataType(),d),size:0}),c.interpolateTuple(h,l,a,l,i,s),t.addArray(c),r.getAttributes(l).forEach(p=>{t.setAttribute(c,p)})}}})},t.copyFieldOn=r=>{e.copyFieldFlags[r]=!0},t.copyFieldOff=r=>{e.copyFieldFlags[r]=!1},t.copyAllOn=()=>{(!e.doCopyAllOn||e.doCopyAllOff)&&(e.doCopyAllOn=!0,e.doCopyAllOff=!1,t.modified())},t.copyAllOff=()=>{(e.doCopyAllOn||!e.doCopyAllOff)&&(e.doCopyAllOn=!1,e.doCopyAllOff=!0,t.modified())},t.clearFieldFlags=()=>{e.copyFieldFlags={}},t.deepCopy=r=>{e.arrays=r.getArrays().map(a=>{const i=a.newClone();return i.deepCopy(a),{data:i}})},t.copyFlags=r=>r.getCopyFieldFlags().map(a=>a),t.reset=()=>e.arrays.forEach(r=>r.data.reset()),t.getMTime=()=>e.arrays.reduce((r,a)=>a.data.getMTime()>r?a.data.getMTime():r,e.mtime),t.getNumberOfComponents=()=>e.arrays.reduce((r,a)=>r+a.data.getNumberOfComponents(),0),t.getNumberOfTuples=()=>e.arrays.length>0?e.arrays[0].getNumberOfTuples():0,t.getState=()=>{const r=n();return r&&(r.arrays=e.arrays.map(a=>({data:a.data.getState()}))),r}}const IJe={arrays:[],copyFieldFlags:[],doCopyAllOn:!0,doCopyAllOff:!1};function tte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,IJe,n),Q.obj(t,e),BJe(t,e)}const $Je=Q.newInstance(tte,"vtkFieldData");var PJe={newInstance:$Je,extend:tte};const FJe={SCALARS:0,VECTORS:1,NORMALS:2,TCOORDS:3,TENSORS:4,GLOBALIDS:5,PEDIGREEIDS:6,EDGEFLAG:7,NUM_ATTRIBUTES:8},zJe={MAX:0,EXACT:1,NOLIMIT:2},UJe={DUPLICATECELL:1,HIGHCONNECTIVITYCELL:2,LOWCONNECTIVITYCELL:4,REFINEDCELL:8,EXTERIORCELL:16,HIDDENCELL:32},GJe={DUPLICATEPOINT:1,HIDDENPOINT:2},HJe={COPYTUPLE:0,INTERPOLATE:1,PASSDATA:2,ALLCOPY:3},WJe="vtkGhostType",S2={DEFAULT:0,SINGLE:1,DOUBLE:2};var nte={AttributeCopyOperations:HJe,AttributeLimitTypes:zJe,AttributeTypes:FJe,CellGhostTypes:UJe,DesiredOutputPrecision:S2,PointGhostTypes:GJe,ghostArrayName:WJe};const{AttributeTypes:yc,AttributeCopyOperations:id}=nte,{vtkWarningMacro:US}=Q;function jJe(t,e){const n=["Scalars","Vectors","Normals","TCoords","Tensors","GlobalIds","PedigreeIds"];function r(o){let s=n.find(l=>yc[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 US(`Cannot set attribute ${l}. The attribute must be a vtkDataArray.`),-1;if(o&&!t.checkNumberOfComponents(o,l))return US(`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 US(`Cannot set attribute ${l}. Only vtkDataArray subclasses can be set as active attributes.`),-1;if(!t.checkNumberOfComponents(u,l))return US(`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[id.PASSDATA][yc[l]]=!1},t[`copy${o}On`]=()=>{const l=o.toUpperCase();e.copyAttributeFlags[id.PASSDATA][yc[l]]=!0}}),t.initializeAttributeCopyFlags=()=>{e.copyAttributeFlags=[],Object.keys(id).filter(o=>o!=="ALLCOPY").forEach(o=>{e.copyAttributeFlags[id[o]]=Object.keys(yc).filter(s=>s!=="NUM_ATTRIBUTES").reduce((s,l)=>(s[yc[l]]=!0,s),[])}),e.copyAttributeFlags[id.COPYTUPLE][yc.GLOBALIDS]=!1,e.copyAttributeFlags[id.INTERPOLATE][yc.GLOBALIDS]=!1,e.copyAttributeFlags[id.COPYTUPLE][yc.PEDIGREEIDS]=!1},t.initialize=Q.chain(t.initialize,t.initializeAttributeCopyFlags),e.dataArrays&&Object.keys(e.dataArrays).length&&Object.keys(e.dataArrays).forEach(o=>{!e.dataArrays[o].ref&&e.dataArrays[o].type==="vtkDataArray"&&t.addArray(Hn.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 KJe={activeScalars:-1,activeVectors:-1,activeTensors:-1,activeNormals:-1,activeTCoords:-1,activeGlobalIds:-1,activePedigreeIds:-1};function rte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,KJe,n),PJe.extend(t,e,n),Q.setGet(t,e,["activeScalars","activeNormals","activeTCoords","activeVectors","activeTensors","activeGlobalIds","activePedigreeIds"]),e.arrays||(e.arrays={}),jJe(t,e)}const YJe=Q.newInstance(rte,"vtkDataSetAttributes");var ez={newInstance:YJe,extend:rte,...nte};const qJe={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},uB={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 XJe={FieldDataTypes:qJe,FieldAssociations:uB};const xO=["pointData","cellData","fieldData"];function ZJe(t,e){e.classHierarchy.push("vtkDataSet"),xO.forEach(r=>{e[r]?e[r]=Us(e[r]):e[r]=ez.newInstance()});const n=t.shallowCopy;t.shallowCopy=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n(r,a),xO.forEach(i=>{e[i]=ez.newInstance(),e[i].shallowCopy(r.getReferenceByName(i))})}}const QJe={};function ate(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,QJe,n),Q.obj(t,e),Q.setGet(t,e,xO),ZJe(t,e)}const JJe=Q.newInstance(ate,"vtkDataSet");var hp={newInstance:JJe,extend:ate,...XJe};const Ms={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 ite={StructuredType:Ms};const{StructuredType:uu}=ite;function eet(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]?uu.EMPTY:e===3?uu.XYZ_GRID:e===2?t[0]===t[1]?uu.YZ_PLANE:t[2]===t[3]?uu.XZ_PLANE:uu.XY_PLANE:e===1?t[0]<t[1]?uu.X_LINE:t[2]<t[3]?uu.Y_LINE:uu.Z_LINE:uu.SINGLE_POINT}var tet={getDataDescriptionFromExtent:eet,...ite};const{vtkErrorMacro:od}=Q;function net(t,e){e.classHierarchy.push("vtkImageData"),t.setExtent=function(){if(e.deleted)return od("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=tet.getDataDescriptionFromExtent(e.extent),t.modified()),o},t.setDimensions=function(){let n,r,a;if(e.deleted){od("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{od("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 od("Requesting a point from an empty image."),null;const a=new Float64Array(3);switch(e.dataDescription){case Ms.EMPTY:return null;case Ms.SINGLE_POINT:break;case Ms.X_LINE:a[0]=n;break;case Ms.Y_LINE:a[1]=n;break;case Ms.Z_LINE:a[2]=n;break;case Ms.XY_PLANE:a[0]=n%r[0],a[1]=n/r[0];break;case Ms.YZ_PLANE:a[1]=n%r[1],a[2]=n/r[1];break;case Ms.XZ_PLANE:a[0]=n%r[0],a[2]=n/r[0];break;case Ms.XYZ_GRID:a[0]=n%r[0],a[1]=n/r[0]%r[1],a[2]=n/(r[0]*r[1]);break;default:od("Invalid dataDescription");break}const i=[0,0,0];return t.indexToWorld(a,i),i},t.getBounds=()=>t.extentToBounds(t.getSpatialExtent()),t.extentToBounds=n=>Ur.transformBounds(n,e.indexToWorld),t.getSpatialExtent=()=>Ur.inflate([...e.extent],.5),t.computeTransforms=()=>{GQ(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],Kh(e.indexToWorld,e.indexToWorld,e.spacing),$i(e.worldToIndex,e.indexToWorld)},t.indexToWorld=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return hr(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 hr(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 Ur.transformBounds(n,e.indexToWorld,r)},t.worldToIndexBounds=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Ur.transformBounds(n,e.worldToIndex,r)},t.onModified(t.computeTransforms),t.computeTransforms(),t.getCenter=()=>Ur.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];Ur.computeCornerPoints(a,i,o),gO(i,i),gO(o,o);const s=t.getDimensions();mO(i,[0,0,0],[s[0]-1,s[1]-1,s[2]-1],i),mO(o,[0,0,0],[s[0]-1,s[1]-1,s[2]-1],o);const l=s[0],u=s[0]*s[1],c=t.getPointData().getScalars().getData();let f=-1/0,d=1/0,h=0,p=0,v=0;for(let b=i[2];b<=o[2];b++)for(let w=i[1];w<=o[1];w++){let C=i[0]+w*l+b*u;for(let x=i[0];x<=o[0];x++){if(!r||r([x,w,b],a)){const _=c[C];_>f&&(f=_),_<d&&(d=_),h+=_*_,p+=_,v+=1}++C}}const g=v>0?p/v:0,y=v?Math.abs(h/v-g*g):0,m=Math.sqrt(y);return{minimum:d,maximum:f,average:g,variance:y,sigma:m,count:v}},t.computeIncrements=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const a=[];let i=r;for(let o=0;o<3;++o)a[o]=i,i*=n[o*2+1]-n[o*2]+1;return a},t.computeOffsetIndex=n=>{let[r,a,i]=n;const o=t.getExtent(),s=t.getPointData().getScalars().getNumberOfComponents(),l=t.computeIncrements(o,s);return Math.floor((Math.round(r)-o[0])*l[0]+(Math.round(a)-o[2])*l[1]+(Math.round(i)-o[4])*l[2])},t.getOffsetIndexFromWorld=n=>{const r=t.getExtent(),a=t.worldToIndex(n);for(let i=0;i<3;++i)if(a[i]<r[i*2]||a[i]>r[i*2+1])return od(`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 od(`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 ret={direction:null,indexToWorld:null,worldToIndex:null,spacing:[1,1,1],origin:[0,0,0],extent:[0,-1,0,-1,0,-1],dataDescription:Ms.EMPTY};function ote(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ret,n),hp.extend(t,e,n),e.direction?Array.isArray(e.direction)&&(e.direction=new Float64Array(e.direction.slice(0,9))):e.direction=fp(new Float64Array(9)),e.indexToWorld=new Float64Array(16),e.worldToIndex=new Float64Array(16),Q.get(t,e,["indexToWorld","worldToIndex"]),Q.setGetArray(t,e,["origin","spacing"],3),Q.setGetArray(t,e,["direction"],9),Q.getArray(t,e,["extent"],6),net(t,e)}const aet=Q.newInstance(ote,"vtkImageData");var ste={newInstance:aet,extend:ote};const iet={MAGNITUDE:0,COMPONENT:1,RGBCOLORS:2},CO={LUMINANCE:1,LUMINANCE_ALPHA:2,RGB:3,RGBA:4};var cB={VectorMode:iet,ScalarMappingTarget:CO};const oet={DEFAULT:0,MAP_SCALARS:1,DIRECT_SCALARS:2},set={DEFAULT:0,USE_POINT_DATA:1,USE_CELL_DATA:2,USE_POINT_FIELD_DATA:3,USE_CELL_FIELD_DATA:4,USE_FIELD_DATA:5},uet={BY_ID:0,BY_NAME:1};var MT={ColorMode:oet,GetArray:uet,ScalarMode:set};const{ScalarMappingTarget:tz,VectorMode:_l}=cB,{VtkDataTypes:sd}=Hn,{ColorMode:GS}=MT,{vtkErrorMacro:nz}=Q;function cet(t){return t}function rz(t){return Math.floor(t*255+.5)}function fet(t,e){e.classHierarchy.push("vtkScalarsToColors"),t.setVectorModeToMagnitude=()=>t.setVectorMode(_l.MAGNITUDE),t.setVectorModeToComponent=()=>t.setVectorMode(_l.COMPONENT),t.setVectorModeToRGBColors=()=>t.setVectorMode(_l.RGBCOLORS),t.build=()=>{},t.isOpaque=()=>!0,t.setAnnotations=(n,r)=>{if(!(n&&!r||!n&&r)){if(n&&r&&n.length!==r.length){nz("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===GS.DEFAULT&&n.getDataType()===sd.UNSIGNED_CHAR||r===GS.DIRECT_SCALARS&&n)o=t.convertToRGBA(n,i,n.getNumberOfTuples());else{const s={type:"vtkDataArray",name:"temp",numberOfComponents:4,dataType:sd.UNSIGNED_CHAR},l=Q.newTypedArray(s.dataType,4*n.getNumberOfTuples());s.values=l,s.size=l.length,o=Hn.newInstance(s);let u=a;u<0&&i>1?t.mapVectorsThroughTable(n,o,tz.RGBA,-1,-1):(u<0&&(u=0),u>=i&&(u=i-1),t.mapScalarsThroughTable(n,o,tz.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===_l.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===_l.MAGNITUDE&&(c===1||l===1)&&(s=_l.COMPONENT));let f=0;switch(u>0&&(f=u),s){case _l.COMPONENT:{t.mapScalarsThroughTable(n,r,a,f);break}case _l.RGBCOLORS:break;case _l.MAGNITUDE:default:{const d=Hn.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 p=i(s[h]);l[d*4]=p,l[d*4+1]=p,l[d*4+2]=p,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=rz(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()===sd.UNSIGNED_CHAR)return n;const o=Hn.newInstance({numberOfComponents:4,empty:!0,size:4*a,dataType:sd.UNSIGNED_CHAR});if(a<=0)return o;i=i>0?i:0,i=i<1?i:1;let s=cet;switch((n.getDataType()===sd.FLOAT||n.getDataType()===sd.DOUBLE)&&(s=rz),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 nz("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===GS.DEFAULT&&n.getDataType()===sd.UNSIGNED_CHAR||r===GS.DIRECT_SCALARS?i===3||i===1?e.alpha>=1:n.getRange(i-1)[0]===255:!0}}const det={alpha:1,vectorComponent:0,vectorSize:-1,vectorMode:_l.COMPONENT,mappingRange:null,annotationArray:null,annotatedValueMap:null,indexedLookup:!1};function lte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,det,n),Q.obj(t,e),e.mappingRange=[0,255],e.annotationArray=[],e.annotatedValueMap=[],Q.setGet(t,e,["vectorSize","vectorComponent","vectorMode","alpha","indexedLookup"]),Q.setArray(t,e,["mappingRange"],2),Q.getArray(t,e,["mappingRange"]),fet(t,e)}const het=Q.newInstance(lte,"vtkScalarsToColors");var DT={newInstance:het,extend:lte,...cB};const{vtkErrorMacro:az}=Q,iz=0,oz=1,IM=2;function pet(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+iz+1.5:i>r.range[1]?a=r.maxIndex+oz+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;g2(n)?i=Math.floor(a.maxIndex+1.5+IM):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+IM);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===CO.RGBA)for(let p=0;p<c;p++){const v=o(h[p*f+i],e.table,l);d[p*4]=v[0],d[p*4+1]=v[1],d[p*4+2]=v[2],d[p*4+3]=v[3]}}else if(a===CO.RGBA)for(let p=0;p<c;p++){const v=o(h[p*f+i],e.table,l);d[p*4]=v[0],d[p*4+1]=v[1],d[p*4+2]=v[2],d[p*4+3]=Math.floor(v[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,eh(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 az("Expected 4 components for RGBA colors"),!1;if(n.getDataType()!==ma.UNSIGNED_CHAR)return az("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+iz)*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+oz)*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+IM)*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 vet={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 ute(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,vet,n),DT.extend(t,e,n),e.table||(e.table=[]),e.buildTime={},Q.obj(e.buildTime),e.opaqueFlagBuildTime={},Q.obj(e.opaqueFlagBuildTime,{mtime:0}),e.insertTime={},Q.obj(e.insertTime,{mtime:0}),Q.get(t,e,["buildTime"]),Q.setGet(t,e,["numberOfColors","useAboveRangeColor","useBelowRangeColor"]),Q.setArray(t,e,["alphaRange","hueRange","saturationRange","valueRange"],2),Q.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),Q.getArray(t,e,["hueRange","saturationRange","valueRange","alphaRange","nanColor","belowRangeColor","aboveRangeColor"]),pet(t,e)}const get=Q.newInstance(ute,"vtkLookupTable");var By={newInstance:get,extend:ute};let cte=1,fB=0;const yet=["VTK_RESOLVE_OFF","VTK_RESOLVE_POLYGON_OFFSET"];function met(){return cte}function bet(t){cte=t}function wet(){return fB}function kT(){fB=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0}function _et(){kT(0)}function xet(){kT(0)}function Cet(){kT(1)}function Tet(){return yet[fB]}var TO={getResolveCoincidentTopologyAsString:Tet,getResolveCoincidentTopologyPolygonOffsetFaces:met,getResolveCoincidentTopology:wet,setResolveCoincidentTopology:kT,setResolveCoincidentTopologyPolygonOffsetFaces:bet,setResolveCoincidentTopologyToDefault:_et,setResolveCoincidentTopologyToOff:xet,setResolveCoincidentTopologyToPolygonOffset:Cet};function fte(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 dB=["Polygon","Line","Point"],Eet={Polygon:{factor:2,offset:0},Line:{factor:1,offset:-1},Point:{factor:0,offset:-2}},th={};fte(th,Eet,dB.map(t=>({key:t,method:`ResolveCoincidentTopology${t}OffsetParameters`})));function Met(t,e){e.resolveCoincidentTopology===void 0&&(e.resolveCoincidentTopology=!1),Q.setGet(t,e,["resolveCoincidentTopology"]),e.topologyOffset={Polygon:{factor:0,offset:0},Line:{factor:0,offset:0},Point:{factor:0,offset:0}},Object.keys(TO).forEach(n=>{t[n]=TO[n]}),Object.keys(th).forEach(n=>{t[n]=th[n]}),fte(t,e.topologyOffset,dB.map(n=>({key:n,method:`RelativeCoincidentTopology${n}OffsetParameters`}))),t.getCoincidentTopologyPolygonOffsetParameters=()=>{const n=th.getResolveCoincidentTopologyPolygonOffsetParameters(),r=t.getRelativeCoincidentTopologyPolygonOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyLineOffsetParameters=()=>{const n=th.getResolveCoincidentTopologyLineOffsetParameters(),r=t.getRelativeCoincidentTopologyLineOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyPointOffsetParameter=()=>{const n=th.getResolveCoincidentTopologyPointOffsetParameters(),r=t.getRelativeCoincidentTopologyPointOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}}}var dte={implementCoincidentTopologyMethods:Met,staticOffsetAPI:th,otherStaticMethods:TO,CATEGORIES:dB};const Ai={MIN_KNOWN_PASS:0,ACTOR_PASS:0,COMPOSITE_INDEX_PASS:1,ID_LOW24:2,ID_HIGH24:3,MAX_KNOWN_PASS:3};var hte={PassTypes:Ai};const{FieldAssociations:sz}=hp,{staticOffsetAPI:Det,otherStaticMethods:ket}=dte,{ColorMode:$M,ScalarMode:ld,GetArray:PM}=MT,{VectorMode:Ret}=cB,{VtkDataTypes:Let}=Hn;function K0(t){return()=>Q.vtkErrorMacro(`vtkMapper::${t} - NOT IMPLEMENTED`)}function Oet(t,e){e.classHierarchy.push("vtkMapper"),t.getBounds=()=>{const n=t.getInputData();return n?(e.static||t.update(),e.bounds=n.getBounds()):e.bounds=CT(),e.bounds},t.setForceCompileOnly=n=>{e.forceCompileOnly=n},t.setSelectionWebGLIdsToVTKIds=n=>{e.selectionWebGLIdsToVTKIds=n},t.createDefaultLookupTable=()=>{e.lookupTable=By.newInstance()},t.getColorModeAsString=()=>Q.enumToString($M,e.colorMode),t.setColorModeToDefault=()=>t.setColorMode(0),t.setColorModeToMapScalars=()=>t.setColorMode(1),t.setColorModeToDirectScalars=()=>t.setColorMode(2),t.getScalarModeAsString=()=>Q.enumToString(ld,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===ld.DEFAULT)s=n.getPointData().getScalars(),s||(s=n.getCellData().getScalars(),l=!0);else if(r===ld.USE_POINT_DATA)s=n.getPointData().getScalars();else if(r===ld.USE_CELL_DATA)s=n.getCellData().getScalars(),l=!0;else if(r===ld.USE_POINT_FIELD_DATA){const u=n.getPointData();a===PM.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===ld.USE_CELL_FIELD_DATA){const u=n.getCellData();l=!0,a===PM.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===ld.USE_FIELD_DATA){const u=n.getFieldData();a===PM.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 g2(n)||(o=.49,i=(n-r)*a,i>1e3?i=1e3:i<-1e3&&(i=-1e3)),{texCoordS:i,texCoordT:o}},t.createColorTextureCoordinates=(n,r,a,i,o,s,l,u,c)=>{const f=(s[1]-s[0])/u,d=[];d[0]=s[0]-f,d[1]=s[1]+f;const h=1/(d[1]-d[0]),p=r.getData(),v=n.getData();let g=0,y=0;if(o<0||o>=i)for(let m=0;m<a;++m){let b=0;for(let x=0;x<i;++x)b+=v[g]*v[g],g++;let w=Math.sqrt(b);c&&(w=By.applyLogScale(w,l,s));const C=t.scalarToTextureCoordinate(w,d[0],h);p[y]=C.texCoordS,p[y+1]=C.texCoordT,y+=2}else{g+=o;for(let m=0;m<a;++m){let b=v[g];c&&(b=By.applyLogScale(b,l,s));const w=t.scalarToTextureCoordinate(b,d[0],h);p[y]=w.texCoordS,p[y+1]=w.texCoordT,y+=2,g+=i}}},t.mapScalarsToTexture=(n,r)=>{const a=e.lookupTable.getRange(),i=e.lookupTable.usingLogScale();i&&By.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=ste.newInstance(),e.colorTextureMap.setExtent(0,s-1,0,1,0,0);const c=Hn.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=Hn.newInstance({numberOfComponents:2,values:new Float32Array(l*2)});let u=e.lookupTable.getVectorComponent();e.lookupTable.getVectorMode()===Ret.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===$M.DEFAULT&&a.getDataType()===Let.UNSIGNED_CHAR||e.colorMode===$M.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=K0("AcquireInvertibleLookupTable"),t.valueToColor=K0("ValueToColor"),t.colorToValue=K0("ColorToValue"),t.useInvertibleColorFor=K0("UseInvertibleColorFor"),t.clearInvertibleColor=K0("ClearInvertibleColor"),t.processSelectorPixelBuffers=(n,r)=>{if(!n||!e.selectionWebGLIdsToVTKIds||!e.populateSelectionSettings)return;const a=n.getRawPixelBuffer(Ai.ID_LOW24),i=n.getRawPixelBuffer(Ai.ID_HIGH24),o=n.getCurrentPass(),s=n.getFieldAssociation();let l=null;s===sz.FIELD_ASSOCIATION_POINTS?l=e.selectionWebGLIdsToVTKIds.points:s===sz.FIELD_ASSOCIATION_CELLS&&(l=e.selectionWebGLIdsToVTKIds.cells),l&&r.forEach(u=>{if(o===Ai.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(Ai.ID_LOW24);d[u]=f&255,d[u+1]=(f&65280)>>8,d[u+2]=(f&16711680)>>16}else if(o===Ai.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(Ai.ID_HIGH24);d[u]=(f&4278190080)>>24}})}}const Aet={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 pte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Aet,n),NJe.extend(t,e,n),Q.get(t,e,["colorCoordinates","colorMapColors","colorTextureMap","selectionWebGLIdsToVTKIds"]),Q.setGet(t,e,["colorByArrayName","arrayAccessMode","colorMode","fieldDataTupleId","interpolateScalarsBeforeMapping","lookupTable","populateSelectionSettings","renderTime","scalarMode","scalarVisibility","static","useLookupTableScalarRange","customShaderAttributes"]),Q.setGetArray(t,e,["scalarRange"],2),dte.implementCoincidentTopologyMethods(t,e),Oet(t,e)}const Net=Q.newInstance(pte,"vtkMapper");var za={newInstance:Net,extend:pte,...Det,...ket,...MT};function vte(t){let e=0;return t.filter((n,r)=>r===e?(e+=n+1,!0):!1)}function gte(t){let e=0;for(let n=0;n<t.length;)n+=t[n]+1,e++;return e}const Vet={extractCellSizes:vte,getNumberOfCells:gte};function Bet(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=gte(t.getData())),e.numberOfCells),t.getCellSizes=r=>(e.cellSizes!==void 0&&!r||(e.cellSizes=vte(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 Iet(t){return{empty:!0,numberOfComponents:1,dataType:ma.UNSIGNED_INT,...t}}function yte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Hn.extend(t,e,Iet(n)),Bet(t,e)}const $et=Q.newInstance(yte,"vtkCellArray");var w2={newInstance:$et,extend:yte,...Vet};const{vtkErrorMacro:Pet}=Q,Fet=[1,-1,1,-1,1,-1];function zet(t,e){e.classHierarchy.push("vtkPoints"),t.getNumberOfPoints=t.getNumberOfTuples,t.setNumberOfPoints=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;t.getNumberOfPoints()!==n&&(e.size=n*r,e.values=Q.newTypedArray(e.dataType,e.size),t.setNumberOfComponents(r),t.modified())},t.setPoint=function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;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 Pet(`getBounds called on an array with components of
  79. ${t.getNumberOfComponents()}`),Fet;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 Uet={empty:!0,numberOfComponents:3,dataType:ma.FLOAT,bounds:[1,-1,1,-1,1,-1]};function mte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Uet,n),Hn.extend(t,e,n),zet(t,e)}const Get=Q.newInstance(mte,"vtkPoints");var m1={newInstance:Get,extend:mte};function Het(t,e){e.classHierarchy.push("vtkCell"),t.initialize=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(r){e.pointsIds=r;let a=e.points.getData();a.length!==3*e.pointsIds.length&&(a=Q.newTypedArray(n.getDataType(),3*e.pointsIds.length));const i=n.getData();e.pointsIds.forEach((o,s)=>{let l=3*o,u=3*s;a[u]=i[l],a[++u]=i[++l],a[++u]=i[++l]}),e.points.setData(a)}else{e.points=n,e.pointsIds=new Array(n.getNumberOfPoints());for(let a=n.getNumberOfPoints()-1;a>=0;--a)e.pointsIds[a]=a}},t.getBounds=()=>{const n=e.points.getNumberOfPoints(),r=[];if(n){e.points.getPoint(0,r),e.bounds[0]=r[0],e.bounds[1]=r[0],e.bounds[2]=r[1],e.bounds[3]=r[1],e.bounds[4]=r[2],e.bounds[5]=r[2];for(let a=1;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 xT(e.bounds);return e.bounds},t.getLength2=()=>{t.getBounds();let n=0,r=0;for(let a=0;a<3;a++)r=e.bounds[2*a+1]-e.bounds[2*a],n+=r*r;return n},t.getParametricDistance=n=>{let r,a=0;for(let i=0;i<3;i++)n[i]<0?r=-n[i]:n[i]>1?r=n[i]-1:r=0,r>a&&(a=r);return a},t.getNumberOfPoints=()=>e.points.getNumberOfPoints(),t.deepCopy=n=>{n.initialize(e.points,e.pointsIds)},t.getCellDimension=()=>{},t.intersectWithLine=(n,r,a,i,o,s,l)=>{},t.evaluatePosition=(n,r,a,i,o,s)=>{Q.vtkErrorMacro("vtkCell.evaluatePosition is not implemented.")}}const Wet={bounds:[-1,-1,-1,-1,-1,-1],pointsIds:[]};function bte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Wet,n),Q.obj(t,e),e.points||(e.points=m1.newInstance()),Q.get(t,e,["points","pointsIds"]),Het(t,e)}const jet=Q.newInstance(bte,"vtkCell");var _2={newInstance:jet,extend:bte};function Ket(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 Yet(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++)_2.newInstance().getPointsIds().forEach(l=>{t.incrementLinkCount(l)});t.allocateLinks(r),e.maxId=r-1;for(let o=0;o<a;++o)_2.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=()=>{Ket(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 qet={array:null,maxId:0,extend:0};function Ste(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qet,n),Q.obj(t,e),Yet(t,e)}const Xet=Q.newInstance(Ste,"vtkCellLinks");var Zet={newInstance:Xet,extend:Ste};const Pr={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},EO=["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 Qet(t){return t<EO.length?EO[t]:"UnknownClass"}function Jet(t){return EO.findIndex(t)}function ett(t){return t<Pr.VTK_QUADRATIC_EDGE||t===Pr.VTK_CONVEX_POINT_SET||t===Pr.VTK_POLYHEDRON}function ttt(t){return t===Pr.VTK_TRIANGLE_STRIP||t===Pr.VTK_POLY_LINE||t===Pr.VTK_POLY_VERTEX}const ntt={getClassNameFromTypeId:Qet,getTypeIdFromClassName:Jet,isLinear:ett,hasSubCells:ttt};function rtt(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]=Pr.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 att={size:0,maxId:-1,extend:1e3};function wte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,att,n),Q.obj(t,e),Q.get(t,e,["size","maxId","extend"]),Q.getArray(t,e,["typeArray","locationArray"]),rtt(t,e)}const itt=Q.newInstance(wte,"vtkCellTypes");var ott={newInstance:itt,extend:wte,...ntt};const stt={NO_INTERSECTION:0,YES_INTERSECTION:1,ON_LINE:2};var _te={IntersectionState:stt};const{IntersectionState:ix}=_te;function Tv(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=Os(o,t),a}function xte(t,e,n,r,a,i){const o=[],s=[],l=[];a[0]=0,i[0]=0,Fl(e,t,o),Fl(r,n,s),Fl(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),see(u,c,2)===0){let f=Number.MAX_VALUE;const d=[t,e,n,r],h=[n,n,t,t],p=[r,r,e,e];i[0],i[0],a[0],a[0],a[0],a[0],i[0],i[0];let v;for(let g=0;g<4;g++)v=Tv(d[g],h[g],p[g]),v.distance<f&&(f=v.distance);return ix.ON_LINE}return a[0]=c[0],i[0]=c[1],a[0]>=0&&a[0]<=1&&i[0]>=0&&i[0]<=1?ix.YES_INTERSECTION:ix.NO_INTERSECTION}const ltt={distanceToLine:Tv,intersection:xte};function utt(t,e){e.classHierarchy.push("vtkLine");function n(r){return r>=0&&r<=1}t.getCellDimension=()=>1,t.intersectWithLine=(r,a,i,o,s)=>{const l={intersect:0,t:Number.MAX_VALUE,subId:0,betweenPoints:null};s[1]=0,s[2]=0;const u=[],c=[],f=[];e.points.getPoint(0,c),e.points.getPoint(1,f);const d=[],h=[],p=xte(r,a,c,f,d,h);if(l.t=d[0],l.betweenPoints=n(l.t),s[0]=h[0],p===ix.YES_INTERSECTION){for(let v=0;v<3;v++)o[v]=c[v]+s[0]*(f[v]-c[v]),u[v]=r[v]+l.t*(a[v]-r[v]);if(Os(o,u)<=i*i)return l.intersect=1,l}else{let v;if(l.t<0)return v=Tv(r,c,f,o),v.distance<=i*i&&(l.t=0,l.intersect=1,l.betweenPoints=!0),l;if(l.t>1)return v=Tv(a,c,f,o),v.distance<=i*i&&(l.t=1,l.intersect=1,l.betweenPoints=!0),l;if(s[0]<0)return s[0]=0,v=Tv(c,r,a,o),l.t=v.t,v.distance<=i*i&&(l.intersect=1),l;if(s[0]>1)return s[0]=1,v=Tv(f,r,a,o),l.t=v.t,v.distance<=i*i&&(l.intersect=1),l}return l},t.evaluateLocation=(r,a,i)=>{const o=[],s=[];e.points.getPoint(0,o),e.points.getPoint(1,s);for(let l=0;l<3;l++)a[l]=o[l]+r[0]*(s[l]-o[l]);i[0]=1-r[0],i[1]=r[0]},t.evaluateOrientation=(r,a,i)=>e.orientations?(Z_(a,e.orientations[0],e.orientations[1],r[0]),i[0]=1-r[0],i[1]=r[0],!0):!1}const ctt={orientations:null};function Cte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ctt,n),_2.extend(t,e,n),Q.setGet(t,e,["orientations"]),utt(t,e)}const ftt=Q.newInstance(Cte,"vtkLine");var Fo={newInstance:ftt,extend:Cte,...ltt,..._te};function dtt(t,e){e.classHierarchy.push("vtkPointSet"),e.points?e.points=Us(e.points):e.points=m1.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=m1.newInstance(),e.points.shallowCopy(r.getPoints())}}const htt={};function Tte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,htt,n),hp.extend(t,e,n),Q.setGet(t,e,["points"]),dtt(t,e)}const ptt=Q.newInstance(Tte,"vtkPointSet");var vtt={newInstance:ptt,extend:Tte};function hB(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 x2(t,e,n,r){hB(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 gtt(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=[];x2(t,e,n,f),x2(r,a,i,d);const h=-Dn(f,t),p=-Dn(d,r),v=[Dn(d,t)+p,Dn(d,e)+p,Dn(d,n)+p];if(v[0]*v[1]>o&&v[0]*v[2]>o)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};const g=[Dn(f,r)+h,Dn(f,a)+h,Dn(f,i)+h];if(g[0]*g[1]>o&&g[0]*g[2]>o)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(Math.abs(f[0]-d[0])<1e-9&&Math.abs(f[1]-d[1])<1e-9&&Math.abs(f[2]-d[2])<1e-9&&Math.abs(h-p)<1e-9)return s=!0,{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};const y=[t,e,n],m=[r,a,i],b=Dn(f,d),w=(h-p*b)/(b*b-1),C=(p-h*b)/(b*b-1),x=[w*f[0]+C*d[0],w*f[1]+C*d[1],w*f[2]+C*d[2]],_=Xl(f,d,[]);Xh(_);let T=0,M=0;const E=[],k=[];let R=50,L=50;for(let G=0;G<3;G++){const I=G,$=(G+1)%3,N=Tg.intersectWithLine(y[I],y[$],r,d);N.intersection&&N.t>0-o&&N.t<1+o&&(N.t<1+o&&N.t>1-o&&(R=T),E[T++]=Dn(N.x,_)-Dn(x,_));const P=Tg.intersectWithLine(m[I],m[$],t,f);P.intersection&&P.t>0-o&&P.t<1+o&&(P.t<1+o&&P.t>1-o&&(L=M),k[M++]=Dn(P.x,_)-Dn(x,_))}if(T>2){T--;const G=E[2];E[2]=E[R],E[R]=G}if(M>2){M--;const G=k[2];k[2]=k[L],k[L]=G}if(T!==2||M!==2)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(Number.isNaN(E[0])||Number.isNaN(E[1])||Number.isNaN(k[0])||Number.isNaN(k[1]))return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(E[0]>E[1]){const G=E[1];E[1]=E[0],E[0]=G}if(k[0]>k[1]){const G=k[1];k[1]=k[0],k[0]=G}let A,V;return E[1]<k[0]||k[1]<E[0]?{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c}:(E[0]<k[0]?E[1]<k[1]?(c[0]=2,c[1]=1,A=k[0],V=E[1]):(c[0]=2,c[1]=2,A=k[0],V=k[1]):E[1]<k[1]?(c[0]=1,c[1]=1,A=E[0],V=E[1]):(c[0]=1,c[1]=2,A=E[0],V=k[1]),hO(x,_,A,l),hO(x,_,V,u),{intersect:!0,coplanar:s,pt1:l,pt2:u,surfaceId:c})}const ytt={computeNormalDirection:hB,computeNormal:x2,intersectWithTriangle:gtt};function mtt(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=[],p=[];if(x2(c,f,d,h),h[0]!==0||h[1]!==0||h[2]!==0){const b=Tg.intersectWithLine(n,r,c,h);if(s.betweenPoints=b.betweenPoints,s.t=b.t,i[0]=b.x[0],i[1]=b.x[1],i[2]=b.x[2],!b.intersection)return o[0]=0,o[1]=0,s.intersect=0,s;const w=t.evaluatePosition(i,l,o,p);if(w.evaluation>=0)return w.dist2<=u?(s.intersect=1,s):(s.intersect=w.evaluation,s)}const v=Os(c,f),g=Os(f,d),y=Os(d,c);e.line||(e.line=Fo.newInstance()),v>g&&v>y?(e.line.getPoints().setPoint(0,c),e.line.getPoints().setPoint(1,f)):g>y&&g>v?(e.line.getPoints().setPoint(0,f),e.line.getPoints().setPoint(1,d)):(e.line.getPoints().setPoint(0,d),e.line.getPoints().setPoint(1,c));const m=e.line.intersectWithLine(n,r,a,i,o);if(s.betweenPoints=m.betweenPoints,s.t=m.t,m.intersect){const b=[],w=[],C=[];for(let x=0;x<3;x++)b[x]=c[x]-d[x],w[x]=f[x]-d[x],C[x]=i[x]-d[x];return o[0]=Dn(C,b)/y,o[1]=Dn(C,w)/g,s.intersect=1,s}return o[0]=0,o[1]=0,s.intersect=0,s},t.evaluatePosition=(n,r,a,i)=>{const o={subId:0,dist2:0,evaluation:-1};let s,l;const u=[],c=[],f=[],d=[];let h;const p=[],v=[],g=[];let y=0,m=0;const b=[];let w,C,x,_=[];const T=[],M=[],E=[];o.subId=0,a[2]=0,e.points.getPoint(1,u),e.points.getPoint(2,c),e.points.getPoint(0,f),hB(u,c,f,d),Tg.generalizedProjectPoint(n,u,d,E);let k=0;for(s=0;s<3;s++)d[s]<0?h=-d[s]:h=d[s],h>k&&(k=h,m=s);for(l=0,s=0;s<3;s++)s!==m&&(b[l++]=s);for(s=0;s<2;s++)p[s]=E[b[s]]-f[b[s]],v[s]=u[b[s]]-f[b[s]],g[s]=c[b[s]]-f[b[s]];if(y=Zr(v,g),y===0)return a[0]=0,a[1]=0,o.evaluation=-1,o;if(a[0]=Zr(p,g)/y,a[1]=Zr(v,p)/y,i[0]=1-(a[0]+a[1]),i[1]=a[0],i[2]=a[1],i[0]>=0&&i[0]<=1&&i[1]>=0&&i[1]<=1&&i[2]>=0&&i[2]<=1)r&&(o.dist2=Os(E,n),r[0]=E[0],r[1]=E[1],r[2]=E[2]),o.evaluation=1;else{let R;if(r){if(i[1]<0&&i[2]<0)for(w=Os(n,f),C=Fo.distanceToLine(n,u,f,R,T),x=Fo.distanceToLine(n,f,c,R,M),w<C?(o.dist2=w,_=f):(o.dist2=C,_=T),x<o.dist2&&(o.dist2=x,_=M),s=0;s<3;s++)r[s]=_[s];else if(i[2]<0&&i[0]<0)for(w=Os(n,u),C=Fo.distanceToLine(n,u,f,R,T),x=Fo.distanceToLine(n,u,c,R,M),w<C?(o.dist2=w,_=u):(o.dist2=C,_=T),x<o.dist2&&(o.dist2=x,_=M),s=0;s<3;s++)r[s]=_[s];else if(i[1]<0&&i[0]<0)for(w=Os(n,c),C=Fo.distanceToLine(n,c,f,R,T),x=Fo.distanceToLine(n,u,c,R,M),w<C?(o.dist2=w,_=c):(o.dist2=C,_=T),x<o.dist2&&(o.dist2=x,_=M),s=0;s<3;s++)r[s]=_[s];else if(i[0]<0){const L=Fo.distanceToLine(n,u,c,r);o.dist2=L.distance}else if(i[1]<0){const L=Fo.distanceToLine(n,c,f,r);o.dist2=L.distance}else if(i[2]<0){const L=Fo.distanceToLine(n,u,f,r);o.dist2=L.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 btt={};function Ete(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,btt,n),_2.extend(t,e,n),mtt(t,e)}const Stt=Q.newInstance(Ete,"vtkTriangle");var wtt={newInstance:Stt,extend:Ete,...ytt};const FM=["verts","lines","polys","strips"],{vtkWarningMacro:lz}=Q,_tt={[Pr.VTK_LINE]:Fo,[Pr.VTK_POLY_LINE]:Fo,[Pr.VTK_TRIANGLE]:wtt};function xtt(t,e){e.classHierarchy.push("vtkPolyData");function n(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,i=>i.toUpperCase()).replace(/\s+/g,"")}FM.forEach(a=>{t[`getNumberOf${n(a)}`]=()=>e[a].getNumberOfCells(),e[a]?e[a]=Us(e[a]):e[a]=w2.newInstance()}),t.getNumberOfCells=()=>FM.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),FM.forEach(o=>{e[o]=w2.newInstance(),e[o].shallowCopy(a.getReferenceByName(o))})},t.buildCells=()=>{const a=t.getNumberOfVerts(),i=t.getNumberOfLines(),o=t.getNumberOfPolys(),s=t.getNumberOfStrips(),l=a+i+o+s,u=new Uint8Array(l);let c=u;const f=new Uint32Array(l);let d=f;if(a){let h=0;e.verts.getCellSizes().forEach((p,v)=>{d[v]=h,c[v]=p>1?Pr.VTK_POLY_VERTEX:Pr.VTK_VERTEX,h+=p+1}),d=d.subarray(a),c=c.subarray(a)}if(i){let h=0;e.lines.getCellSizes().forEach((p,v)=>{d[v]=h,c[v]=p>2?Pr.VTK_POLY_LINE:Pr.VTK_LINE,p===1&&lz("Building VTK_LINE ",v," with only one point, but VTK_LINE needs at least two points. Check the input."),h+=p+1}),d=d.subarray(i),c=c.subarray(i)}if(o){let h=0;e.polys.getCellSizes().forEach((p,v)=>{switch(d[v]=h,p){case 3:c[v]=Pr.VTK_TRIANGLE;break;case 4:c[v]=Pr.VTK_QUAD;break;default:c[v]=Pr.VTK_POLYGON;break}p<3&&lz("Building VTK_TRIANGLE ",v," with less than three points, but VTK_TRIANGLE needs at least three points. Check the input."),h+=p+1}),d+=d.subarray(o),c+=c.subarray(o)}if(s){let h=0;c.fill(Pr.VTK_TRIANGLE_STRIP,0,s),e.strips.getCellSizes().forEach((p,v)=>{d[v]=h,h+=p+1})}e.cells=ott.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=Zet.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 Pr.VTK_VERTEX:case Pr.VTK_POLY_VERTEX:o=e.verts;break;case Pr.VTK_LINE:case Pr.VTK_POLY_LINE:o=e.lines;break;case Pr.VTK_TRIANGLE:case Pr.VTK_QUAD:case Pr.VTK_POLYGON:o=e.polys;break;case Pr.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||_tt[o.cellType].newInstance();return s.initialize(t.getPoints(),o.cellPointIds),s}}const Ctt={};function Mte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ctt,n),vtt.extend(t,e,n),Q.get(t,e,["cells","links"]),Q.setGet(t,e,["verts","lines","polys","strips"]),xtt(t,e)}const Ttt=Q.newInstance(Mte,"vtkPolyData");var Oa={newInstance:Ttt,extend:Mte};function Ett(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 Mtt=(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 p=[...f];u/=2,c/=2,f=new Uint8ClampedArray(u*c*l);const v=l*u;let g=0;for(let m=0;m<f.length;m+=l){m%v===0&&(g+=2*l*u);for(let b=0;b<l;b++){let w=p[g+b];w+=p[g+l+b],w+=p[g-2*v+b],w+=p[g-2*v+l+b],w/=4,f[m+b]=w}g+=2*l}let y=[...f];for(let m=0;m<f.length;m+=l)for(let b=0;b<l;b++){let w=-(o.length-1)/2,C=s,x=0;for(let _=0;_<o.length;_++){let T=m+b+w*l;const M=T%v-(m+b)%v;M>l&&(T+=v),M<-l&&(T-=v),y[T]?x+=y[T]*o[_]:C-=o[_],w+=1}f[m+b]=x/C}y=[...f];for(let m=0;m<f.length;m+=l)for(let b=0;b<l;b++){let w=-(o.length-1)/2,C=s,x=0;for(let _=0;_<o.length;_++){const T=m+b+w*v;y[T]?x+=y[T]*o[_]:C-=o[_],w+=1}f[m+b]=x/C}d.push(f)}return d},Dtt={image:null,canvas:null,jsImageData:null,imageLoaded:!1,repeat:!1,interpolate:!1,edgeClamp:!1,mipLevel:0,resizable:!1};function Dte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Dtt,n),Q.obj(t,e),Q.algo(t,e,6,0),Q.get(t,e,["canvas","image","jsImageData","imageLoaded","resizable"]),Q.setGet(t,e,["repeat","edgeClamp","interpolate","mipLevel"]),Ett(t,e)}const ktt=Q.newInstance(Dte,"vtkTexture"),Rtt={generateMipmaps:Mtt};var Eb={newInstance:ktt,extend:Dte,...Rtt};const Ltt=[[-1,0,0],[1,0,0],[0,-1,0],[0,1,0],[0,0,-1],[0,0,1]],uz=[[8,7,11,3],[9,1,10,5],[4,9,0,8],[2,11,6,10],[0,3,2,1],[4,5,6,7]],HS=[[0,1],[1,3],[2,3],[0,2],[4,5],[5,7],[6,7],[4,6],[0,4],[1,5],[3,7],[2,6]],cz=[0,1,0,1,0,1,0,1,2,2,2,2],Kr=[[1,2],[1,2],[0,2],[0,2],[0,1],[0,1]],Mn=new Float64Array(3),WS=new Float64Array(3),vr=new Float64Array(3),nh=new Float64Array(3),ud=new Float64Array(3),jS=new Float64Array(3),zM=new Float64Array(16);function UM(t,e){t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeSize,t.fillStyle=e.fontColor,t.font=`${e.fontStyle} ${e.fontSize}px ${e.fontFamily}`}function Ott(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;Mn[0]=c[r*3],Mn[1]=c[r*3+1],Mn[2]=c[r*3+2],hr(vr,Mn,a),vr[0]+=.1,hr(WS,vr,i),qc(ud,WS,Mn),vr[0]-=.1,vr[1]+=.1,hr(WS,vr,i),qc(jS,WS,Mn);for(let p=0;p<3;p++)ud[p]/=.5*.1*f[0],jS[p]/=.5*.1*f[1];let d=l.ptIdx,h=l.cellIdx;Mn[0]=c[r*3],Mn[1]=c[r*3+1],Mn[2]=c[r*3+2],o[0]<-.5?Ac(vr,ud,o[0]*s-u.width):o[0]>.5?Ac(vr,ud,o[0]*s):Ac(vr,ud,o[0]*s-u.width/2),ky(Mn,Mn,vr),Ac(vr,jS,o[1]*s-u.height/2),ky(Mn,Mn,vr),l.points[d*3]=Mn[0],l.points[d*3+1]=Mn[1],l.points[d*3+2]=Mn[2],l.tcoords[d*2]=u.tcoords[0],l.tcoords[d*2+1]=u.tcoords[1],d++,Ac(vr,ud,u.width),ky(Mn,Mn,vr),l.points[d*3]=Mn[0],l.points[d*3+1]=Mn[1],l.points[d*3+2]=Mn[2],l.tcoords[d*2]=u.tcoords[2],l.tcoords[d*2+1]=u.tcoords[3],d++,Ac(vr,jS,u.height),ky(Mn,Mn,vr),l.points[d*3]=Mn[0],l.points[d*3+1]=Mn[1],l.points[d*3+2]=Mn[2],l.tcoords[d*2]=u.tcoords[4],l.tcoords[d*2+1]=u.tcoords[5],d++,Ac(vr,ud,u.width),qc(Mn,Mn,vr),l.points[d*3]=Mn[0],l.points[d*3+1]=Mn[1],l.points[d*3+2]=Mn[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);Gr(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);$i(zM,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(),p=e.renderable.getTextValues();for(;c<h.length/3;){Mn[0]=h[c*3],Mn[1]=h[c*3+1],Mn[2]=h[c*3+2],hr(vr,Mn,n),Mn[0]=h[c*3+3],Mn[1]=h[c*3+4],Mn[2]=h[c*3+5],hr(nh,Mn,n),qc(vr,vr,nh);const g=[vr[0],vr[1]];JJ(g),t.createPolyDataForOneLabel(p[f],c,n,zM,g,e.renderable.getAxisTitlePixelOffset(),u),c+=2,f++;for(let y=0;y<e.renderable.getTickCounts()[d];y++)t.createPolyDataForOneLabel(p[f],c,n,zM,g,e.renderable.getTickLabelPixelOffset(),u),c++,f++;d++}const v=Hn.newInstance({numberOfComponents:2,values:l,name:"TextureCoordinates"});e.tmPolyData.getPointData().setTCoords(v),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 Att=Q.newInstance(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{renderable:null};Object.assign(e,{},n),Q.obj(t,e),e.tmPolyData=Oa.newInstance(),e.tmMapper=za.newInstance(),e.tmMapper.setInputData(e.tmPolyData),e.tmActor=Pa.newInstance({parentProp:t}),e.tmActor.setMapper(e.tmMapper),Q.setGet(t,e,["renderable"]),Q.get(t,e,["lastSize","lastAspectRatio","axisTextStyle","tickTextStyle","tmActor","ticks"]),e.forceUpdate=!1,e.lastRedrawTime={},Q.obj(e.lastRedrawTime,{mtime:0}),e.lastRebuildTime={},Q.obj(e.lastRebuildTime,{mtime:0}),e.lastSize=[-1,-1],e.lastTickBounds=[],Ott(t,e)},"vtkCubeAxesActorHelper");function Ntt(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();Gr(r,r);let a=!1;const i=Ur.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]&&(Mn[u]=e.dataBounds[s]-.1*i*Ltt[s][u],Mn[c]=.5*(e.dataBounds[c*2]+e.dataBounds[c*2+1]),Mn[f]=.5*(e.dataBounds[f*2]+e.dataBounds[f*2+1]),hr(vr,Mn,r),Mn[u]=e.dataBounds[s],hr(nh,Mn,r),qc(vr,nh,vr),lf(vr,vr),l=vr[2]>o,e.camera.getParallelProjection()||(lf(nh,nh),l=AV(nh,vr)>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[Kr[h][0]].length*2+i[Kr[h][1]].length*2,s+=i[Kr[h][0]].length+i[Kr[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 p=0;p<2;p++)for(let v=0;v<2;v++)u[f*3]=e.dataBounds[v],u[f*3+1]=e.dataBounds[2+p],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]=HS[h][0],c[d*3+2]=HS[h][1],d++);if(e.gridLines){for(let h=0;h<6;h++)if(r[h]){const p=Math.floor(h/2);let v=i[Kr[h][0]];for(let g=0;g<v.length;g++)u[f*3+p]=e.dataBounds[h],u[f*3+Kr[h][0]]=v[g],u[f*3+Kr[h][1]]=e.dataBounds[Kr[h][1]*2],f++,u[f*3+p]=e.dataBounds[h],u[f*3+Kr[h][0]]=v[g],u[f*3+Kr[h][1]]=e.dataBounds[Kr[h][1]*2+1],f++,c[d*3]=2,c[d*3+1]=f-2,c[d*3+2]=f-1,d++;v=i[Kr[h][1]];for(let g=0;g<v.length;g++)u[f*3+p]=e.dataBounds[h],u[f*3+Kr[h][1]]=v[g],u[f*3+Kr[h][0]]=e.dataBounds[Kr[h][0]*2],f++,u[f*3+p]=e.dataBounds[h],u[f*3+Kr[h][1]]=v[g],u[f*3+Kr[h][0]]=e.dataBounds[Kr[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[cz[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 p=0;p<4;p++){const v=uz[h][p];if(a[v]===1){const g=cz[v],y=HS[v][0]*3,m=HS[v][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 b=Math.floor(h/2);u[c*3+b]=e.dataBounds[h],u[c*3+Kr[h][0]]=.5*(e.dataBounds[Kr[h][0]*2]+e.dataBounds[Kr[h][0]*2+1]),u[c*3+Kr[h][1]]=.5*(e.dataBounds[Kr[h][1]*2]+e.dataBounds[Kr[h][1]*2+1]),c++,e.textValues[f]=e.axisLabels[g],f++;const w=(g+1)%3,C=(g+2)%3,x=i[g],_=o[g];e.tickCounts[d]=x.length;for(let T=0;T<x.length;T++)u[c*3+g]=x[T],u[c*3+w]=l[y+w],u[c*3+C]=l[y+C],c++,e.textValues[f]=_[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[uz[u][c]]++;const s=[],l=[];for(let u=0;u<3;u++){const c=Xg().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])){UM(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)}UM(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=jo(a),i=jo(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)=>{UM(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(),Ur.setBounds(e.bounds,e.gridActor.getBounds()),Ur.scaleAboutCenter(e.bounds,e.boundsScaleFactor,e.boundsScaleFactor,e.boundsScaleFactor),e.bounds);const n=Q.chain(t.setProperty,e.gridActor.setProperty);t.setProperty=r=>n(r)[0]}function Vtt(t){return{boundsScaleFactor:1.3,camera:null,dataBounds:[...Ur.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 kte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vtt(n)),Pa.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=Eb.newInstance(),e.tmTexture.setInterpolate(!1),t.getProperty().setDiffuse(0),t.getProperty().setAmbient(1),e.gridMapper=za.newInstance(),e.polyData=Oa.newInstance(),e.gridMapper.setInputData(e.polyData),e.gridActor=Pa.newInstance(),e.gridActor.setMapper(e.gridMapper),e.gridActor.setProperty(t.getProperty()),e.gridActor.setParentProp(t),e.textPolyData=Oa.newInstance(),Q.setGet(t,e,["axisTitlePixelOffset","boundsScaleFactor","faceVisibilityAngle","gridLines","tickLabelPixelOffset"]),Q.setGetArray(t,e,["dataBounds"],6),Q.setGetArray(t,e,["axisLabels"],3),Q.get(t,e,["axisTextStyle","tickTextStyle","camera","tmTexture","textValues","textPolyData","tickCounts","gridActor"]),Ntt(t,e)}const Btt=Q.newInstance(kte,"vtkCubeAxesActor");var Rte={newInstance:Btt,extend:kte,newCubeAxesActorHelper:Att};function Itt(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 $tt={};function Ptt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,$tt,n),sa.extend(t,e,n),e.CubeAxesActorHelper=Rte.newCubeAxesActorHelper(),Itt(t,e)}const Ftt=Or(Ptt,"vtkOpenGLCubeAxesActor");sl("vtkCubeAxesActor",Ftt);const hm={ARRAY_BUFFER:0,ELEMENT_ARRAY_BUFFER:1,TEXTURE_BUFFER:2};var Lte={ObjectType:hm};const{ObjectType:ox}=Lte,ztt={};function Utt(t,e){e.classHierarchy.push("vtkOpenGLBufferObject");function n(s){switch(s){case ox.ELEMENT_ARRAY_BUFFER:return e.context.ELEMENT_ARRAY_BUFFER;case ox.TEXTURE_BUFFER:if("TEXTURE_BUFFER"in e.context)return e.context.TEXTURE_BUFFER;case ox.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 Gtt={objectType:ox.ARRAY_BUFFER,context:null,allocatedGPUMemoryInBytes:0};function Ote(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Gtt,n),Q.obj(t,e),Q.get(t,e,["_openGLRenderWindow","allocatedGPUMemoryInBytes"]),Q.moveToProtected(t,e,["openGLRenderWindow"]),Utt(t,e)}const Htt=Q.newInstance(Ote);var Ate={newInstance:Htt,extend:Ote,...ztt,...Lte};const{vtkErrorMacro:fz}=Q;function Wtt(t,e){const n=new Float64Array(3);Cqe(n,e);const r=new Float64Array(16);return qQ(r,Yh(),t,n),r}function jtt(t,e){return t===null||e===null?!1:!(D6(t,[0,0,0])&&D6(e,[1,1,1]))}function Ktt(t,e){e.classHierarchy.push("vtkOpenGLCellArrayBufferObject"),t.setType(hm.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(N=>{N&&(e.customData.push({data:N.getData(),offset:4*e.blockSize,components:N.getNumberOfComponents(),name:N.getName()}),e.blockSize+=N.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=Ate.newInstance()),e.colorBO.setOpenGLRenderWindow(e._openGLRenderWindow)):e.colorBO=null,e.stride=4*e.blockSize;let h=0,p=0,v=0,g=0,y=0,m=0,b;const w={anythingToPoints(N,P,Y){for(let J=0;J<N;++J)b(P[Y+J])},linesToWireframe(N,P,Y){for(let J=0;J<N-1;++J)b(P[Y+J]),b(P[Y+J+1])},polysToWireframe(N,P,Y){if(N>2)for(let J=0;J<N;++J)b(P[Y+J]),b(P[Y+(J+1)%N])},stripsToWireframe(N,P,Y){if(N>2){for(let J=0;J<N-1;++J)b(P[Y+J]),b(P[Y+J+1]);for(let J=0;J<N-2;J++)b(P[Y+J]),b(P[Y+J+2])}},polysToSurface(N,P,Y){for(let J=0;J<N-2;J++)b(P[Y+0]),b(P[Y+J+1]),b(P[Y+J+2])},stripsToSurface(N,P,Y){for(let J=0;J<N-2;J++)b(P[Y+J]),b(P[Y+J+1+J%2]),b(P[Y+J+1+(J+1)%2])}},C={anythingToPoints(N,P){return N},linesToWireframe(N,P){return N>1?(N-1)*2:0},polysToWireframe(N,P){return N>2?N*2:0},stripsToWireframe(N,P){return N>2?N*4-6:0},polysToSurface(N,P){return N>2?(N-2)*3:0},stripsToSurface(N,P,Y){return N>2?(N-2)*3:0}};let x=null,_=null;a===ti.POINTS||r==="verts"?(x=w.anythingToPoints,_=C.anythingToPoints):a===ti.WIREFRAME||r==="lines"?(x=w[`${r}ToWireframe`],_=C[`${r}ToWireframe`]):(x=w[`${r}ToSurface`],_=C[`${r}ToSurface`]);const T=n.getData(),M=T.length;let E=0;for(let N=0;N<M;)E+=_(T[N],T),N+=T[N]+1;let k=null;const R=new Float32Array(E*e.blockSize);c&&(k=new Uint8Array(E*4));let L=0,A=0,V=0,G=0;for(let N=0;N<3;++N){const P=i.points.getRange(N),Y=P[1]-P[0];V+=Y*Y;const J=.5*(P[1]+P[0]);G+=J*J}if(V>0&&(Math.abs(G)/V>1e6||Math.abs(Math.log10(V))>3||V===0&&G>1e6)){const N=new Float64Array(3),P=new Float64Array(3);for(let Y=0;Y<3;++Y){const J=i.points.getRange(Y),re=J[1]-J[0];N[Y]=.5*(J[1]+J[0]),P[Y]=re>0?1/re:1}t.setCoordShiftAndScale(N,P)}else e.coordShiftAndScaleEnabled===!0&&t.setCoordShiftAndScale(null,null);if(o)if(!o.points&&!o.cells)o.points=new Int32Array(E),o.cells=new Int32Array(E);else{const N=new Int32Array(E+o.points.length);N.set(o.points),o.points=N;const P=new Int32Array(E+o.cells.length);P.set(o.cells),o.cells=P}let $=i.vertexOffset;b=function(P){if(o&&(o.points[$]=P,o.cells[$]=m+i.cellOffset),++$,h=P*3,e.coordShiftAndScaleEnabled?(R[L++]=(s[h++]-e.coordShift[0])*e.coordScale[0],R[L++]=(s[h++]-e.coordShift[1])*e.coordScale[1],R[L++]=(s[h++]-e.coordShift[2])*e.coordScale[2]):(R[L++]=s[h++],R[L++]=s[h++],R[L++]=s[h++]),l!==null&&(i.haveCellNormals?p=(m+i.cellOffset)*3:p=P*3,R[L++]=l[p++],R[L++]=l[p++],R[L++]=l[p++]),e.customData.forEach(Y=>{y=P*Y.components;for(let J=0;J<Y.components;++J)R[L++]=Y.data[y++]}),u!==null){v=P*d;for(let Y=0;Y<d;++Y)R[L++]=u[v++]}c!==null&&(i.haveCellScalars?g=(m+i.cellOffset)*f:g=P*f,k[A++]=c[g++],k[A++]=c[g++],k[A++]=c[g++],k[A++]=f===4?c[g++]:255)};for(let N=0;N<M;)x(T[N],T,N+1),N+=T[N]+1,m++;return e.elementCount=E,t.upload(R,hm.ARRAY_BUFFER),e.colorBO&&(e.colorBOStride=4,e.colorBO.upload(k,hm.ARRAY_BUFFER)),m},t.setCoordShiftAndScale=(n,r)=>{if(n!==null&&(n.constructor!==Float64Array||n.length!==3)){fz("Wrong type for coordShift, expected vec3 or null");return}if(r!==null&&(r.constructor!==Float64Array||r.length!==3)){fz("Wrong type for coordScale, expected vec3 or null");return}(e.coordShift===null||n===null||!k6(n,e.coordShift))&&(e.coordShift=n),(e.coordScale===null||r===null||!k6(r,e.coordScale))&&(e.coordScale=r),e.coordShiftAndScaleEnabled=jtt(e.coordShift,e.coordScale),e.coordShiftAndScaleEnabled?e.inverseShiftAndScaleMatrix=Wtt(e.coordShift,e.coordScale):e.inverseShiftAndScaleMatrix=null}}const Ytt={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 Nte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ytt,n),Ate.extend(t,e,n),Q.setGet(t,e,["colorBO","elementCount","stride","colorBOStride","vertexOffset","normalOffset","tCoordOffset","tCoordComponents","colorOffset","colorComponents","customData"]),Q.get(t,e,["coordShift","coordScale","coordShiftAndScaleEnabled","inverseShiftAndScaleMatrix"]),Ktt(t,e)}const qtt=Q.newInstance(Nte);var Xtt={newInstance:qtt,extend:Nte};const{vtkErrorMacro:Ztt}=Q;function Qtt(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 Ztt(`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 Jtt={shaderType:"Unknown",source:"",error:"",handle:0,dirty:!1,context:null};function Vte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Jtt,n),Q.obj(t,e),Q.setGet(t,e,["shaderType","source","error","handle","context"]),Qtt(t,e)}const ent=Q.newInstance(Vte,"vtkShader");var GM={newInstance:ent,extend:Vte};const{vtkErrorMacro:vl}=Q;function tnt(t,e,n,r){const a=typeof n=="string"?n:n.join(`
  80. `),i=r===!1?e:new RegExp(e,"g"),o=t.replace(i,a);return{replace:o!==a,result:o}}function nnt(t,e){e.classHierarchy.push("vtkShaderProgram"),t.compileShader=()=>e.vertexShader.compile()?e.fragmentShader.compile()?!t.attachShader(e.vertexShader)||!t.attachShader(e.fragmentShader)?(vl(e.error),0):t.link()?(t.setCompiled(!0),1):(vl(`Links failed: ${e.error}`),0):(vl(e.fragmentShader.getSource().split(`
  81. `).map((n,r)=>`${r}: ${n}`).join(`
  82. `)),vl(e.fragmentShader.getError()),0):(vl(e.vertexShader.getSource().split(`
  83. `).map((n,r)=>`${r}: ${n}`).join(`
  84. `)),vl(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 vl(`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):(vl("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 vl("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 rnt={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 Bte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rnt,n),e.attributesLocs={},e.uniformLocs={},e.vertexShader=GM.newInstance(),e.vertexShader.setShaderType("Vertex"),e.fragmentShader=GM.newInstance(),e.fragmentShader.setShaderType("Fragment"),e.geometryShader=GM.newInstance(),e.geometryShader.setShaderType("Geometry"),Q.obj(t,e),Q.get(t,e,["lastCameraMTime"]),Q.setGet(t,e,["error","handle","compiled","bound","md5Hash","vertexShader","fragmentShader","geometryShader","linked"]),nnt(t,e)}const ant=Q.newInstance(Bte,"vtkShaderProgram");var gt={newInstance:ant,extend:Bte,substitute:tnt};function int(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()!==hm.ARRAY_BUFFER||(e.handleProgram===0&&(e.handleProgram=n.getHandle()),t.isReady()||t.initialize(),!t.isReady()||e.handleProgram!==n.getHandle()))return!1;const d=e.context,h={};if(h.name=a,h.index=d.getAttribLocation(e.handleProgram,a),h.offset=i,h.stride=o,h.type=s,h.size=l,h.normalize=u,h.isMatrix=f,h.divisor=c,h.Index===-1)return!1;if(r.bind(),d.enableVertexAttribArray(h.index),d.vertexAttribPointer(h.index,h.size,h.type,h.normalize,h.stride,h.offset),c>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(h.index,1):d.vertexAttribDivisor(h.index,1)),h.buffer=r.getHandle(),!e.supported){let p=!1;for(let v=0;v<e.buffers.length;++v){const g=e.buffers[v];if(g.buffer===h.buffer){p=!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)}}p||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 p=1;p<l;p++)d.enableVertexAttribArray(h+p),d.vertexAttribPointer(h+p,l,s,u,o,i+o*p/l),c>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(h+p,1):d.vertexAttribDivisor(h+p,1));return!0},t.removeAttributeArray=n=>{if(!t.isReady()||e.handleProgram===0)return!1;if(!e.supported)for(let r=0;r<e.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 ont={forceEmulation:!1,handleVAO:0,handleProgram:0,supported:!0,buffers:null,context:null};function Ite(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ont,n),e.buffers=[],Q.obj(t,e),Q.get(t,e,["supported"]),Q.setGet(t,e,["forceEmulation"]),int(t,e)}const snt=Q.newInstance(Ite,"vtkOpenGLVertexArrayObject");var $te={newInstance:snt,extend:Ite};const Nc={Start:0,Points:0,Lines:1,Tris:2,TriStrips:3,TrisEdges:4,TriStripsEdges:5,End:6};function lnt(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===ti.POINTS||r===Nc.Points?e.context.POINTS:n===ti.WIREFRAME||r===Nc.Lines||r===Nc.TrisEdges||r===Nc.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===Nc.Points||r.getProperty().getRepresentation()===ti.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=gt.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform float pointSize;"]).result,i=gt.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=gt.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform vec2 viewportSize;","uniform float lineWidthStepSize;","uniform float halfLineWidth;"]).result,i=gt.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===Nc.Points?2:e.primitiveType===Nc.Lines?4:6,t.getAllocatedGPUMemoryInBytes=()=>t.getCABO().getAllocatedGPUMemoryInBytes()}const unt={context:null,program:null,shaderSourceTime:null,VAO:null,attributeUpdateTime:null,CABO:null,primitiveType:0,pointPicking:!1};function Pte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,unt,n),Q.obj(t,e),e.shaderSourceTime={},Q.obj(e.shaderSourceTime),e.attributeUpdateTime={},Q.obj(e.attributeUpdateTime),Q.setGet(t,e,["program","shaderSourceTime","VAO","attributeUpdateTime","CABO","primitiveType","pointPicking"]),e.program=gt.newInstance(),e.VAO=$te.newInstance(),e.CABO=Xtt.newInstance(),lnt(t,e)}const cnt=Q.newInstance(Pte);var e0={newInstance:cnt,extend:Pte,primTypes:Nc};const fnt={CLAMP_TO_EDGE:0,REPEAT:1,MIRRORED_REPEAT:2},MO={NEAREST:0,LINEAR:1,NEAREST_MIPMAP_NEAREST:2,NEAREST_MIPMAP_LINEAR:3,LINEAR_MIPMAP_NEAREST:4,LINEAR_MIPMAP_LINEAR:5};var Fte={Wrap:fnt,Filter:MO};const zte=new Float32Array(1),dnt=new Int32Array(zte.buffer);function hnt(t){zte[0]=t;const e=dnt[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 pnt(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 Is={fromHalf:pnt,toHalf:hnt};const{Wrap:wu,Filter:Xa}=Fte,{VtkDataTypes:Jn}=Hn,{vtkDebugMacro:HM,vtkErrorMacro:Np,vtkWarningMacro:dz}=ru,{toHalf:vnt}=Is;function gnt(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(Xa.LINEAR_MIPMAP_LINEAR):t.setMinificationFilter(Xa.LINEAR),t.setMagnificationFilter(Xa.LINEAR)):(t.setMinificationFilter(Xa.NEAREST),t.setMagnificationFilter(Xa.NEAREST)),e.renderable.getRepeat()&&(t.setWrapR(wu.REPEAT),t.setWrapS(wu.REPEAT),t.setWrapT(wu.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(Xa.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(Xa.LINEAR_MIPMAP_LINEAR));const f=e.renderable.getCanvas();t.create2DFromRaw(f.width,f.height,4,Jn.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(Xa.LINEAR_MIPMAP_LINEAR)),t.create2DFromRaw(f.width,f.height,4,Jn.UNSIGNED_CHAR,f.data,!0),t.activate(),t.sendParameters(),e.textureBuildTime.modified()}const c=e.renderable.getInputData(0);if(c&&c.getPointData().getScalars()){const f=c.getExtent(),d=c.getPointData().getScalars(),h=[];for(let p=0;p<e.renderable.getNumberOfInputPorts();++p){const v=e.renderable.getInputData(p),g=v?v.getPointData().getScalars().getData():null;g&&h.push(g)}e.renderable.getInterpolate()&&d.getNumberOfComponents()===4&&(e.generateMipmap=!0,t.setMinificationFilter(Xa.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:dz("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||HM(`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")&&dz("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||(HM("Unsupported internal texture type!"),HM(`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 Jn.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case(e.oglNorm16Ext&&!e.useHalfFloat&&Jn.SHORT):return e.context.SHORT;case(e.oglNorm16Ext&&!e.useHalfFloat&&Jn.UNSIGNED_SHORT):return e.context.UNSIGNED_SHORT;case(e.useHalfFloat&&Jn.SHORT):return e.context.HALF_FLOAT;case(e.useHalfFloat&&Jn.UNSIGNED_SHORT):return e.context.HALF_FLOAT;case Jn.FLOAT:case Jn.VOID:default:return e.context.FLOAT}switch(u){case Jn.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case Jn.FLOAT:case Jn.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 Xa.NEAREST:return e.context.NEAREST;case Xa.LINEAR:return e.context.LINEAR;case Xa.NEAREST_MIPMAP_NEAREST:return e.context.NEAREST_MIPMAP_NEAREST;case Xa.NEAREST_MIPMAP_LINEAR:return e.context.NEAREST_MIPMAP_LINEAR;case Xa.LINEAR_MIPMAP_NEAREST:return e.context.LINEAR_MIPMAP_NEAREST;case Xa.LINEAR_MIPMAP_LINEAR:return e.context.LINEAR_MIPMAP_LINEAR;default:return e.context.NEAREST}},t.getOpenGLWrapMode=u=>{switch(u){case wu.CLAMP_TO_EDGE:return e.context.CLAMP_TO_EDGE;case wu.REPEAT:return e.context.REPEAT;case wu.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!==Jn.FLOAT&&e.openGLDataType===e.context.FLOAT)for(let v=0;v<c.length;v++)if(c[v]){const g=c[v].length>h?c[v].subarray(0,h):c[v];d.push(new Float32Array(g))}else d.push(null);if(u!==Jn.UNSIGNED_CHAR&&e.openGLDataType===e.context.UNSIGNED_BYTE)for(let v=0;v<c.length;v++)if(c[v]){const g=c[v].length>h?c[v].subarray(0,h):c[v];d.push(new Uint8Array(g))}else d.push(null);let p=!1;if(e._openGLRenderWindow.getWebgl2())p=e.openGLDataType===e.context.HALF_FLOAT;else{const v=e.context.getExtension("OES_texture_half_float");p=v&&e.openGLDataType===v.HALF_FLOAT_OES}if(p)for(let v=0;v<c.length;v++)if(c[v]){const g=new Uint16Array(h),y=c[v];for(let m=0;m<h;m++)g[m]=vnt(y[m]);d.push(g)}else d.push(null);if(d.length===0)for(let v=0;v<c.length;v++)d.push(c[v]);return d}function r(u){if(e._openGLRenderWindow.getWebgl2())return u;const c=[],f=e.width,d=e.height,h=e.components;if(u&&(!Oy(f)||!Oy(d))){const p=e.context.getExtension("OES_texture_half_float"),v=jo(f),g=jo(d),y=v*g*e.components;for(let m=0;m<u.length;m++)if(u[m]!==null){let b=null;const w=d/g,C=f/v;let x=!1;e.openGLDataType===e.context.FLOAT?b=new Float32Array(y):p&&e.openGLDataType===p.HALF_FLOAT_OES?(b=new Uint16Array(y),x=!0):b=new Uint8Array(y);for(let _=0;_<g;_++){const T=_*v*h,M=_*w;let E=Math.floor(M),k=Math.ceil(M);k>=d&&(k=d-1);const R=M-E,L=1-R;E=E*f*h,k=k*f*h;for(let A=0;A<v;A++){const V=A*h,G=A*C;let I=Math.floor(G),$=Math.ceil(G);$>=f&&($=f-1);const N=G-I;I*=h,$*=h;for(let P=0;P<h;P++)x?b[T+V+P]=Is.toHalf(Is.fromHalf(u[m][E+I+P])*L*(1-N)+Is.fromHalf(u[m][E+$+P])*L*N+Is.fromHalf(u[m][k+I+P])*R*(1-N)+Is.fromHalf(u[m][k+$+P])*R*N):b[T+V+P]=u[m][E+I+P]*L*(1-N)+u[m][E+$+P]*L*N+u[m][k+I+P]*R*(1-N)+u[m][k+$+P]*R*N}}c.push(b),e.width=v,e.height=g}else c.push(null)}if(c.length===0)for(let p=0;p<u.length;p++)c.push(u[p]);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===Jn.UNSIGNED_SHORT||u===Jn.SHORT)):!1:!1}t.create2DFromRaw=function(u,c,f,d,h){let p=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 Np("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=f,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind();const g=n(d,[h]),y=r(g);return e.context.pixelStorei(e.context.UNPACK_FLIP_Y_WEBGL,p),e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(d)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),y[0]!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,y[0])):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,y[0]),e.generateMipmap&&e.context.generateMipmap(e.target),p&&e.context.pixelStorei(e.context.UNPACK_FLIP_Y_WEBGL,!1),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*f*e._openGLRenderWindow.getDefaultTextureByteSize(d,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.createCubeFromRaw=(u,c,f,d,h)=>{if(t.getOpenGLDataType(d),t.getInternalFormat(d,f),t.getFormat(d,f),!e.internalFormat||!e.format||!e.openGLDataType)return Np("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_CUBE_MAP,e.components=f,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),e.maxLevel=h.length/6-1,t.createTexture(),t.bind();const p=n(d,h),v=r(p),g=[];let y=e.width,m=e.height;for(let b=0;b<v.length;b++){b%6===0&&b!==0&&(y/=2,m/=2),g[b]=Zg(d,m*y*e.components);for(let w=0;w<m;++w){const C=w*y*e.components,x=(m-w-1)*y*e.components;g[b].set(v[b].slice(x,x+y*e.components),C)}}e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(d)&&e.context.texStorage2D(e.target,6,e.internalFormat,e.width,e.height);for(let b=0;b<6;b++){let w=0,C=e.width,x=e.height;for(;C>=1&&x>=1;){let _=null;w<=e.maxLevel&&(_=g[6*w+b]),a(d)?_!=null&&e.context.texSubImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+b,w,0,0,C,x,e.format,e.openGLDataType,_):e.context.texImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+b,w,e.internalFormat,C,x,0,e.format,e.openGLDataType,_),w++,C/=2,x/=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===Jn.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?(Np("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(Jn.UNSIGNED_CHAR),t.getInternalFormat(Jn.UNSIGNED_CHAR,4),t.getFormat(Jn.UNSIGNED_CHAR,4),!e.internalFormat||!e.format||!e.openGLDataType)return Np("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()&&(!Oy(u.width)||!Oy(u.height)),f=document.createElement("canvas");f.width=c?jo(u.width):u.width,f.height=c?jo(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(Jn.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(Jn.UNSIGNED_CHAR,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0};function i(u,c,f){const d=new Array(f),h=new Array(f);for(let p=0;p<f;++p)d[p]=u[p],h[p]=c[p]-u[p]||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 v=e.context.getExtension("OES_texture_half_float");h=v&&e.openGLDataType===v.HALF_FLOAT_OES}const p=h&&(o(c,f)||d);e.useHalfFloat=p}function l(u,c){const f=u.getNumberOfComponents(),d=u.getDataType(),h=u.getData(),p=new Array(f),v=new Array(f);for(let y=0;y<f;++y){const[m,b]=u.getRange(y);p[y]=m,v[y]=b}const g=i(p,v,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 p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;return t.create2DFilterableFromDataArray(u,c,Hn.newInstance({numberOfComponents:f,dataType:d,values:h}),p)},t.create2DFilterableFromDataArray=function(u,c,f){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{numComps:h,dataType:p,data:v}=l(f,d);t.create2DFromRaw(u,c,h,p,v)},t.create3DFromRaw=(u,c,f,d,h,p)=>{if(t.getOpenGLDataType(h),t.getInternalFormat(h,d),t.getFormat(h,d),!e.internalFormat||!e.format||!e.openGLDataType)return Np("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_3D,e.components=d,e.width=u,e.height=c,e.depth=f,e.numberOfDimensions=3,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind();const y=n(h,[p],!0),m=r(y);return e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(h)?(e.context.texStorage3D(e.target,1,e.internalFormat,e.width,e.height,e.depth),m[0]!=null&&e.context.texSubImage3D(e.target,0,0,0,0,e.width,e.height,e.depth,e.format,e.openGLDataType,m[0])):e.context.texImage3D(e.target,0,e.internalFormat,e.width,e.height,e.depth,0,e.format,e.openGLDataType,m[0]),e.generateMipmap&&e.context.generateMipmap(e.target),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*e.components*e._openGLRenderWindow.getDefaultTextureByteSize(h,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.create3DFilterableFromRaw=function(u,c,f,d,h,p){let v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;return t.create3DFilterableFromDataArray(u,c,f,Hn.newInstance({numberOfComponents:d,dataType:h,values:p}),v)},t.create3DFilterableFromDataArray=function(u,c,f,d){let h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;const{numComps:p,dataType:v,data:g,scaleOffsets:y}=l(d,h),m=u*c*f,b=[],w=[];for(let P=0;P<p;++P)b[P]=0,w[P]=1;e.volumeInfo={scale:w,offset:b,dataComputedScale:y.scale,dataComputedOffset:y.offset,width:u,height:c,depth:f};const C=structuredClone(y);if(e._openGLRenderWindow.getWebgl2()){if(e.oglNorm16Ext&&!e.useHalfFloat&&v===Jn.SHORT){for(let re=0;re<p;++re)e.volumeInfo.scale[re]=32767;return t.create3DFromRaw(u,c,f,p,v,g)}if(e.oglNorm16Ext&&!e.useHalfFloat&&v===Jn.UNSIGNED_SHORT){for(let re=0;re<p;++re)e.volumeInfo.scale[re]=65535;return t.create3DFromRaw(u,c,f,p,v,g)}if(v===Jn.FLOAT||e.useHalfFloat&&(v===Jn.SHORT||v===Jn.UNSIGNED_SHORT))return t.create3DFromRaw(u,c,f,p,v,g);if(v===Jn.UNSIGNED_CHAR){for(let re=0;re<p;++re)e.volumeInfo.scale[re]=255;return t.create3DFromRaw(u,c,f,p,v,g)}const P=new Float32Array(m*p);e.volumeInfo.offset=C.offset,e.volumeInfo.scale=C.scale;let Y=0;const J=C.scale.map(re=>1/re);for(let re=0;re<m;re++)for(let oe=0;oe<p;oe++)P[Y]=(g[Y]-C.offset[oe])*J[oe],Y++;return t.create3DFromRaw(u,c,f,p,Jn.FLOAT,P)}let x=(P,Y,J,re,oe)=>{P[Y]=J},_=Jn.UNSIGNED_CHAR;if(v===Jn.UNSIGNED_CHAR)for(let P=0;P<p;++P)C.offset[P]=0,C.scale[P]=255;else e.context.getExtension("OES_texture_float")&&e.context.getExtension("OES_texture_float_linear")?(_=Jn.FLOAT,x=(P,Y,J,re,oe)=>{P[Y]=(J-re)/oe}):(_=Jn.UNSIGNED_CHAR,x=(P,Y,J,re,oe)=>{P[Y]=255*(J-re)/oe});if(t.getOpenGLDataType(_),t.getInternalFormat(_,p),t.getFormat(_,p),!e.internalFormat||!e.format||!e.openGLDataType)return Np("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=p,e.depth=1,e.numberOfDimensions=2;let T=e.context.getParameter(e.context.MAX_TEXTURE_SIZE);T>4096&&(_===Jn.FLOAT||p>=3)&&(T=4096);let M=1,E=1;m>T*T&&(M=Math.ceil(Math.sqrt(m/(T*T))),E=M);let k=Math.sqrt(m)/M;k=jo(k);const R=Math.floor(k*M/u),L=Math.ceil(f/R),A=jo(c*L/E);e.width=k,e.height=A,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.volumeInfo.xreps=R,e.volumeInfo.yreps=L,e.volumeInfo.xstride=M,e.volumeInfo.ystride=E,e.volumeInfo.offset=C.offset,e.volumeInfo.scale=C.scale;let V;const G=k*A*p;_===Jn.FLOAT?V=new Float32Array(G):V=new Uint8Array(G);let I=0;const $=Math.floor(u/M),N=Math.floor(c/E);for(let P=0;P<L;P++){const Y=Math.min(R,f-P*R),J=p*(e.width-Y*Math.floor(u/M));for(let re=0;re<N;re++){for(let oe=0;oe<Y;oe++){const ue=p*((P*R+oe)*u*c+E*re*u);for(let le=0;le<$;le++)for(let fe=0;fe<p;fe++)x(V,I,g[ue+M*le*p+fe],C.offset[fe],C.scale[fe]),I++}I+=J}}return e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(_)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),V!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,V)):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,V),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 ynt={_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:wu.CLAMP_TO_EDGE,wrapT:wu.CLAMP_TO_EDGE,wrapR:wu.CLAMP_TO_EDGE,minificationFilter:Xa.NEAREST,magnificationFilter:Xa.NEAREST,minLOD:-1e3,maxLOD:1e3,baseLevel:0,maxLevel:1e3,generateMipmap:!1,useHalfFloat:!0,oglNorm16Ext:null,allocatedGPUMemoryInBytes:0};function Ute(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ynt,n),sa.extend(t,e,n),e.sendParametersTime={},Ka(e.sendParametersTime,{mtime:0}),e.textureBuildTime={},Ka(e.textureBuildTime,{mtime:0}),Sb(t,e,["format","openGLDataType"]),Va(t,e,["keyMatrixTime","minificationFilter","magnificationFilter","wrapS","wrapT","wrapR","generateMipmap","oglNorm16Ext"]),Yi(t,e,["width","height","volumeInfo","components","handle","target","allocatedGPUMemoryInBytes"]),wb(t,e,["openGLRenderWindow"]),gnt(t,e)}const Gte=Or(Ute,"vtkOpenGLTexture");var Oh={newInstance:Gte,extend:Ute,...Fte};sl("vtkTexture",Gte);var mnt=`//VTK::System::Dec
  85. /*=========================================================================
  86. Program: Visualization Toolkit
  87. Module: vtkPolyDataVS.glsl
  88. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  89. All rights reserved.
  90. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  91. This software is distributed WITHOUT ANY WARRANTY; without even
  92. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  93. PURPOSE. See the above copyright notice for more information.
  94. =========================================================================*/
  95. attribute vec4 vertexMC;
  96. // frag position in VC
  97. //VTK::PositionVC::Dec
  98. // optional normal declaration
  99. //VTK::Normal::Dec
  100. // extra lighting parameters
  101. //VTK::Light::Dec
  102. // Texture coordinates
  103. //VTK::TCoord::Dec
  104. // material property values
  105. //VTK::Color::Dec
  106. // clipping plane vars
  107. //VTK::Clip::Dec
  108. // camera and actor matrix values
  109. //VTK::Camera::Dec
  110. // Apple Bug
  111. //VTK::PrimID::Dec
  112. // picking support
  113. //VTK::Picking::Dec
  114. void main()
  115. {
  116. //VTK::Color::Impl
  117. //VTK::Normal::Impl
  118. //VTK::TCoord::Impl
  119. //VTK::Clip::Impl
  120. //VTK::PrimID::Impl
  121. //VTK::PositionVC::Impl
  122. //VTK::Light::Impl
  123. //VTK::Picking::Impl
  124. }
  125. `,bnt=`//VTK::System::Dec
  126. /*=========================================================================
  127. Program: Visualization Toolkit
  128. Module: vtkPolyDataFS.glsl
  129. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  130. All rights reserved.
  131. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  132. This software is distributed WITHOUT ANY WARRANTY; without even
  133. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  134. PURPOSE. See the above copyright notice for more information.
  135. =========================================================================*/
  136. // Template for the polydata mappers fragment shader
  137. uniform int PrimitiveIDOffset;
  138. // VC position of this fragment
  139. //VTK::PositionVC::Dec
  140. // optional color passed in from the vertex shader, vertexColor
  141. //VTK::Color::Dec
  142. // optional surface normal declaration
  143. //VTK::Normal::Dec
  144. // extra lighting parameters
  145. //VTK::Light::Dec
  146. // define vtkImageLabelOutlineOn
  147. //VTK::ImageLabelOutlineOn
  148. // Texture coordinates
  149. //VTK::TCoord::Dec
  150. // picking support
  151. //VTK::Picking::Dec
  152. // Depth Peeling Support
  153. //VTK::DepthPeeling::Dec
  154. // clipping plane vars
  155. //VTK::Clip::Dec
  156. // label outline
  157. //VTK::LabelOutline::Dec
  158. // the output of this shader
  159. //VTK::Output::Dec
  160. // Apple Bug
  161. //VTK::PrimID::Dec
  162. // handle coincident offsets
  163. //VTK::Coincident::Dec
  164. //VTK::ZBuffer::Dec
  165. //VTK::LabelOutlineHelperFunction
  166. void main()
  167. {
  168. // VC position of this fragment. This should not branch/return/discard.
  169. //VTK::PositionVC::Impl
  170. // Place any calls that require uniform flow (e.g. dFdx) here.
  171. //VTK::UniformFlow::Impl
  172. // Set gl_FragDepth here (gl_FragCoord.z by default)
  173. //VTK::Depth::Impl
  174. // Early depth peeling abort:
  175. //VTK::DepthPeeling::PreColor
  176. // Apple Bug
  177. //VTK::PrimID::Impl
  178. //VTK::Clip::Impl
  179. //VTK::Color::Impl
  180. // Generate the normal if we are not passed in one
  181. //VTK::Normal::Impl
  182. //VTK::TCoord::Impl
  183. //VTK::Light::Impl
  184. if (gl_FragData[0].a <= 0.0)
  185. {
  186. discard;
  187. }
  188. //VTK::DepthPeeling::Impl
  189. //VTK::Picking::Impl
  190. // handle coincident offsets
  191. //VTK::Coincident::Impl
  192. //VTK::ZBuffer::Impl
  193. //VTK::RenderPassFragmentShader::Impl
  194. }
  195. `;function Snt(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=gt.substitute(o,"//VTK::Coincident::Dec",["uniform float cfactor;","uniform float coffset;"]).result,e.context.getExtension("EXT_frag_depth")&&(i.factor!==0?(o=gt.substitute(o,"//VTK::UniformFlow::Impl",["float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));","//VTK::UniformFlow::Impl"],!1).result,o=gt.substitute(o,"//VTK::Depth::Impl","gl_FragDepthEXT = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;").result):o=gt.substitute(o,"//VTK::Depth::Impl","gl_FragDepthEXT = gl_FragCoord.z + 0.000016*coffset;").result),e._openGLRenderWindow.getWebgl2()&&(i.factor!==0?(o=gt.substitute(o,"//VTK::UniformFlow::Impl",["float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));","//VTK::UniformFlow::Impl"],!1).result,o=gt.substitute(o,"//VTK::Depth::Impl","gl_FragDepth = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;").result):o=gt.substitute(o,"//VTK::Depth::Impl","gl_FragDepth = gl_FragCoord.z + 0.000016*coffset;").result),n.Fragment=o}}}function wnt(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=gt.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 C2={implementReplaceShaderCoincidentOffset:Snt,implementBuildShadersWithReplacements:wnt};const{FieldAssociations:WM}=hp,{primTypes:xa}=e0,{Representation:Vp,Shading:hz}=Jg,{ScalarMode:KS}=za,{Filter:pz,Wrap:vz}=Oh,{vtkErrorMacro:cd}=ru,_nt={type:"StartEvent"},xnt={type:"EndEvent"},{CoordinateSystem:Cnt}=Tb;function Tnt(t){const e=t.getSelector();return e?e.getCurrentPass():Ai.MIN_KNOWN_PASS-1}function Ent(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=xa.Start;o<xa.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=mnt,r.Fragment=bnt,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=gt.substitute(o,"//VTK::Color::Dec",["attribute vec4 scalarColor;","varying vec4 vertexColorVSOutput;"]).result,o=gt.substitute(o,"//VTK::Color::Impl",["vertexColorVSOutput = scalarColor;"]).result,s=gt.substitute(s,"//VTK::Color::Dec",["in vec4 vertexColorVSOutput[];","out vec4 vertexColorGSOutput;"]).result,s=gt.substitute(s,"//VTK::Color::Impl",["vertexColorGSOutput = vertexColorVSOutput[i];"]).result),e.lastBoundBO.getCABO().getColorComponents()!==0&&!e.drawingEdges?l=gt.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=gt.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=gt.substitute(l,"//VTK::Color::Impl",f).result),l=gt.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=gt.substitute(o,"//VTK::Light::Impl",[" gl_FragData[0] = vec4(ambientColor * ambient + diffuseColor * diffuse, opacity);"," //VTK::Light::Impl"],!1).result;break;case 1:o=gt.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=gt.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,
  196. dot(reflect(lightDirectionVC${f},normalVCVSOutput),
  197. normalize(-vertexVC.xyz))),
  198. 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=gt.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=gt.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,
  199. dot(reflect(lightDirectionVC${f},
  200. normalVCVSOutput),
  201. normalize(-vertexVC.xyz))),
  202. 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=gt.substitute(o,"//VTK::Light::Impl",c,!1).result;break;default:cd("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=gt.substitute(s,"//VTK::Normal::Dec",["attribute vec3 normalMC;","uniform mat3 normalMatrix;","varying vec3 normalVCVSOutput;"]).result,s=gt.substitute(s,"//VTK::Normal::Impl",["normalVCVSOutput = normalMatrix * normalMC;"]).result,l=gt.substitute(l,"//VTK::Normal::Dec",["in vec3 normalVCVSOutput[];","out vec3 normalVCGSOutput;"]).result,l=gt.substitute(l,"//VTK::Normal::Impl",["normalVCGSOutput = normalVCVSOutput[i];"]).result,u=gt.substitute(u,"//VTK::Normal::Dec",["varying vec3 normalVCVSOutput;"]).result,u=gt.substitute(u,"//VTK::Normal::Impl",["vec3 normalVCVSOutput = normalize(normalVCVSOutput);"," if (gl_FrontFacing == false) { normalVCVSOutput = -normalVCVSOutput; }"]).result):e.haveCellNormals?(u=gt.substitute(u,"//VTK::Normal::Dec",["uniform mat3 normalMatrix;","uniform samplerBuffer textureN;"]).result,u=gt.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=gt.substitute(u,"//VTK::UniformFlow::Impl",[" vec3 fdx = dFdx(vertexVC.xyz);"," vec3 fdy = dFdy(vertexVC.xyz);"," //VTK::UniformFlow::Impl"]).result,u=gt.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=gt.substitute(u,"//VTK::Normal::Dec",["uniform int cameraParallel;"]).result,u=gt.substitute(u,"//VTK::UniformFlow::Impl",[" vec3 fdx = dFdx(vertexVC.xyz);"," vec3 fdy = dFdy(vertexVC.xyz);"," //VTK::UniformFlow::Impl"]).result,u=gt.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=gt.substitute(o,"//VTK::PositionVC::Dec",["varying vec4 vertexVCVSOutput;"]).result,o=gt.substitute(o,"//VTK::PositionVC::Impl",["vertexVCVSOutput = MCVCMatrix * vertexMC;"," gl_Position = MCPCMatrix * vertexMC;"]).result,o=gt.substitute(o,"//VTK::Camera::Dec",["uniform mat4 MCPCMatrix;","uniform mat4 MCVCMatrix;"]).result,s=gt.substitute(s,"//VTK::PositionVC::Dec",["in vec4 vertexVCVSOutput[];","out vec4 vertexVCGSOutput;"]).result,s=gt.substitute(s,"//VTK::PositionVC::Impl",["vertexVCGSOutput = vertexVCVSOutput[i];"]).result,l=gt.substitute(l,"//VTK::PositionVC::Dec",["varying vec4 vertexVCVSOutput;"]).result,l=gt.substitute(l,"//VTK::PositionVC::Impl",["vec4 vertexVC = vertexVCVSOutput;"]).result):(o=gt.substitute(o,"//VTK::Camera::Dec",["uniform mat4 MCPCMatrix;"]).result,o=gt.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=gt.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=gt.substitute(o,"//VTK::TCoord::Dec","attribute vec2 tcoordMC; varying vec2 tcoordVCVSOutput;").result,s=gt.substitute(s,"//VTK::TCoord::Dec",["in vec2 tcoordVCVSOutput[];","out vec2 tcoordVCGSOutput;"]).result,s=gt.substitute(s,"//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];").result,l=gt.substitute(l,"//VTK::TCoord::Dec",["varying vec2 tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,u&&u.length>=1)switch(c){case 1:l=gt.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"]).result;break;case 2:l=gt.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=gt.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=gt.substitute(o,"//VTK::TCoord::Dec","attribute vec3 tcoordMC; varying vec3 tcoordVCVSOutput;").result,s=gt.substitute(s,"//VTK::TCoord::Dec",["in vec3 tcoordVCVSOutput[];","out vec3 tcoordVCGSOutput;"]).result,s=gt.substitute(s,"//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];").result,l=gt.substitute(l,"//VTK::TCoord::Dec",["varying vec3 tcoordVCVSOutput;","uniform samplerCube texture1;"]).result,c){case 1:l=gt.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"]).result;break;case 2:l=gt.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=gt.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=gt.substitute(o,"//VTK::Clip::Dec",["uniform int numClipPlanes;",`uniform vec4 clipPlanes[${l}];`,`varying float clipDistancesVSOutput[${l}];`]).result,o=gt.substitute(o,"//VTK::Clip::Impl",[`for (int planeNum = 0; planeNum < ${l}; planeNum++)`," {"," if (planeNum >= numClipPlanes)"," {"," break;"," }"," clipDistancesVSOutput[planeNum] = dot(clipPlanes[planeNum], vertexMC);"," }"]).result,s=gt.substitute(s,"//VTK::Clip::Dec",["uniform int numClipPlanes;",`varying float clipDistancesVSOutput[${l}];`]).result,s=gt.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()===Vp.SURFACE){const l=e.lastBoundBO.getPrimitiveType();l===xa.Points||o.getRepresentation()===Vp.POINTS?i=e.renderable.getCoincidentTopologyPointOffsetParameter():l===xa.Lines||o.getRepresentation()===Vp.WIREFRAME?i=e.renderable.getCoincidentTopologyLineOffsetParameters():(l===xa.Tris||l===xa.TriStrips)&&(i=e.renderable.getCoincidentTopologyPolygonOffsetParameters()),(l===xa.TrisEdges||l===xa.TriStripsEdges)&&(i=e.renderable.getCoincidentTopologyPolygonOffsetParameters(),i.factor/=2,i.offset/=2)}const s=e._openGLRenderer.getSelector();return s&&s.getFieldAssociation()===WM.FIELD_ASSOCIATION_POINTS&&(i.offset-=2),i},t.replaceShaderPicking=(r,a,i)=>{let o=r.Fragment,s=r.Vertex;if(o=gt.substitute(o,"//VTK::Picking::Dec",["uniform int picking;","//VTK::Picking::Dec"]).result,!!e._openGLRenderer.getSelector()){switch((e.lastSelectionState===Ai.ID_LOW24||e.lastSelectionState===Ai.ID_HIGH24)&&(s=gt.substitute(s,"//VTK::Picking::Dec",[`flat out int vertexIDVSOutput;
  203. `,`uniform int VertexIDOffset;
  204. `]).result,s=gt.substitute(s,"//VTK::Picking::Impl",` vertexIDVSOutput = gl_VertexID + VertexIDOffset;
  205. `).result,o=gt.substitute(o,"//VTK::Picking::Dec",`flat in int vertexIDVSOutput;
  206. `).result,o=gt.substitute(o,"//VTK::Picking::Impl",[" int idx = vertexIDVSOutput;","//VTK::Picking::Impl"]).result),e.lastSelectionState){case Ai.ID_LOW24:o=gt.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 Ai.ID_HIGH24:o=gt.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = vec4(float(idx)/255.0, 0.0, 0.0, 1.0);").result;break;default:o=gt.substitute(o,"//VTK::Picking::Dec","uniform vec3 mapperIndex;").result,o=gt.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=gt.substitute(o,"//VTK::ZBuffer::Dec","uniform int depthRequest;").result,o=gt.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()===hz.FLAT,p=i.getProperty().getRepresentation(),v=r.getOpenGLMode(p,l);if((v===e.context.TRIANGLES||d&&!f||!h&&f||!h&&v===e.context.LINES)&&(c=!0),i.getProperty().getLighting()&&c){o=0;const b=a.getLightsByReference();for(let w=0;w<b.length;++w){const C=b[w];C.getSwitch()>0&&(s++,o===0&&(o=1)),o===1&&(s>1||C.getIntensity()!==1||!C.lightTypeIsHeadLight())&&(o=2),o<3&&C.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)||cd("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)||cd("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)||cd(`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)||cd("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)||cd("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?Qa(e.tmpMat4,i.getMatrix()):i.getMatrix();f&&(Gr(d,d),Ha(d,d,f),Gr(d,d));for(let h=0;h<l;h++){const p=[];e.renderable.getClippingPlaneInDataCoords(d,h,p);for(let v=0;v<4;v++)u.push(p[v])}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 v=h.getColorByReference(),g=h.getIntensity();e.lightColor[0]=v[0]*g,e.lightColor[1]=v[1]*g,e.lightColor[2]=v[2]*g;const y=h.getDirection(),m=a.getActiveCamera().getViewMatrix(),b=[...y];h.lightTypeIsSceneLight()&&(b[0]=m[0]*y[0]+m[1]*y[1]+m[2]*y[2],b[1]=m[4]*y[0]+m[5]*y[1]+m[6]*y[2],b[2]=m[8]*y[0]+m[9]*y[1]+m[10]*y[2],Xh(b)),e.lightDirection[0]=b[0],e.lightDirection[1]=b[1],e.lightDirection[2]=b[2],Xh(e.lightDirection),s.setUniform3fArray(`lightColor${l}`,e.lightColor),s.setUniform3fArray(`lightDirectionVC${l}`,e.lightDirection),l++}}if(o<3)return;const f=a.getActiveCamera().getViewMatrix();Gr(f,f),l=0;for(let d=0;d<u.length;++d){const h=u[d];if(h.getSwitch()>0){const v=h.getTransformedPosition(),g=new Float64Array(3);hr(g,v,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(),p=h?{mcwc:null,normalMatrix:null}:e.openGLActor.getKeyMatrices();if(i.getCoordinateSystem()===Cnt.DISPLAY){const v=e._openGLRenderer.getTiledSizeAndOrigin();Un(e.tmpMat4),e.tmpMat4[0]=2/v.usize,e.tmpMat4[12]=-1,e.tmpMat4[5]=2/v.vsize,e.tmpMat4[13]=-1,Ha(e.tmpMat4,e.tmpMat4,d),o.setUniformMatrix("MCPCMatrix",e.tmpMat4)}else o.setUniformMatrix("MCPCMatrix",n([s.wcpc,p.mcwc,d],lO,e.tmpMat4));o.isUniformUsed("MCVCMatrix")&&o.setUniformMatrix("MCVCMatrix",n([s.wcvc,p.mcwc,d],lO,e.tmpMat4)),o.isUniformUsed("normalMatrix")&&o.setUniformMatrix3x3("normalMatrix",n([s.normalMatrix,p.normalMatrix],QYe,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 p=s.getSpecularPower();o.setUniformf("opacityUniform",l),o.setUniform3fArray("ambientColorUniform",u),o.setUniform3fArray("diffuseColorUniform",c),o.setUniformf("ambient",f),o.setUniformf("diffuse",d);const v=e.lastBoundBO.getReferenceByName("lastLightComplexity");if(v<1)return;let g=s.getSpecularColorByReference();if(o.setUniform3fArray("specularColorUniform",g),o.setUniformf("specularPowerUniform",p),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),v<1)return;o.setUniformf("specularIntensityBF",h),o.setUniform3fArray("specularColorUniformBF",g),o.setUniformf("specularPowerUniformBF",p)}},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()===WM.FIELD_ASSOCIATION_POINTS&&(e.pointPicking=!0)},t.renderPieceStart=(r,a)=>{e.primitiveIDOffset=0,e.vertexIDOffset=0;const i=Tnt(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===Vp.SURFACE,s=e._openGLRenderer.getSelector(),l=s&&s.getFieldAssociation()===WM.FIELD_ASSOCIATION_POINTS&&(e.lastSelectionState===Ai.ID_LOW24||e.lastSelectionState===Ai.ID_HIGH24);for(let u=xa.Start;u<xa.End;u++)e.primitives[u].setPointPicking(l),e.primitives[u].getCABO().getElementCount()&&(e.drawingEdges=o&&(u===xa.TrisEdges||u===xa.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(_nt),e.renderable.getStatic()||e.renderable.update(),e.currentInput=e.renderable.getInputData(),t.invokeEvent(xnt),!e.currentInput){cd("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()){xT(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===KS.USE_CELL_DATA||s===KS.USE_CELL_FIELD_DATA||s===KS.USE_FIELD_DATA||!i.getPointData().getScalars())&&s!==KS.USE_POINT_FIELD_DATA&&o&&(e.haveCellScalars=!0);let l=a.getProperty().getInterpolation()!==hz.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=Oh.newInstance({resizable:!0}));const d=e.internalColorTexture;d.setMinificationFilter(pz.NEAREST),d.setMagnificationFilter(pz.NEAREST),d.setWrapS(vz.CLAMP_TO_EDGE),d.setWrapT(vz.CLAMP_TO_EDGE),d.setOpenGLRenderWindow(e._openGLRenderWindow);const h=e.renderable.getColorTextureMap(),p=h.getExtent(),v=h.getPointData().getScalars();d.create2DFromRaw(p[1]-p[0]+1,p[3]-p[2]+1,v.getNumberOfComponents(),v.getDataType(),v.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 p=[{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()}],v=a.getProperty().getEdgeVisibility()&&u===Vp.SURFACE;for(let g=xa.Start;g<xa.End;g++)g!==xa.TrisEdges&&g!==xa.TriStripsEdges?(h.cellOffset+=e.primitives[g].getCABO().createVBO(p[g].cells,p[g].inRep,u,h,e.selectionWebGLIdsToVTKIds),h.vertexOffset+=e.primitives[g].getCABO().getElementCount()):v?e.primitives[g].getCABO().createVBO(p[g].cells,p[g].inRep,Vp.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 Mnt={context:null,VBOBuildTime:0,VBOBuildString:null,primitives:null,primTypes:null,shaderRebuildString:null,tmpMat4:null,ambientColor:[],diffuseColor:[],specularColor:[],lightColor:[],lightDirection:[],lastHaveSeenDepthRequest:!1,haveSeenDepthRequest:!1,lastSelectionState:Ai.MIN_KNOWN_PASS-1,selectionStateChanged:null,selectionWebGLIdsToVTKIds:null,pointPicking:!1};function Hte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Mnt,n),sa.extend(t,e,n),C2.implementReplaceShaderCoincidentOffset(t,e,n),C2.implementBuildShadersWithReplacements(t,e,n),e.primitives=[],e.primTypes=xa,e.tmpMat3=fp(new Float64Array(9)),e.tmpMat4=Un(new Float64Array(16));for(let r=xa.Start;r<xa.End;r++)e.primitives[r]=e0.newInstance(),e.primitives[r].setPrimitiveType(r),e.primitives[r].set({lastLightComplexity:0,lastLightCount:0,lastSelectionPass:!1},!0);Va(t,e,["context"]),e.VBOBuildTime={},Ka(e.VBOBuildTime,{mtime:0}),e.selectionStateChanged={},Ka(e.selectionStateChanged,{mtime:0}),Ent(t,e)}const Wte=Or(Hte,"vtkOpenGLPolyDataMapper");var Q3t={newInstance:Wte,extend:Hte};sl("vtkMapper",Wte);const{ColorMode:Dnt,ScalarMode:fd,GetArray:jM}=MT;function knt(t,e){e.classHierarchy.push("vtkMapper2D"),t.createDefaultLookupTable=()=>{e.lookupTable=By.newInstance()},t.getColorModeAsString=()=>Q.enumToString(Dnt,e.colorMode),t.setColorModeToDefault=()=>t.setColorMode(0),t.setColorModeToMapScalars=()=>t.setColorMode(1),t.setColorModeToDirectScalars=()=>t.setColorMode(2),t.getScalarModeAsString=()=>Q.enumToString(fd,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===fd.DEFAULT)s=n.getPointData().getScalars(),s||(s=n.getCellData().getScalars(),l=!0);else if(r===fd.USE_POINT_DATA)s=n.getPointData().getScalars();else if(r===fd.USE_CELL_DATA)s=n.getCellData().getScalars(),l=!0;else if(r===fd.USE_POINT_FIELD_DATA){const u=n.getPointData();a===jM.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===fd.USE_CELL_FIELD_DATA){const u=n.getCellData();l=!0,a===jM.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===fd.USE_FIELD_DATA){const u=n.getFieldData();a===jM.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 Rnt={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 jte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Rnt,n),ete.extend(t,e,n),Q.get(t,e,["colorMapColors"]),Q.setGet(t,e,["arrayAccessMode","colorByArrayName","colorMode","lookupTable","renderTime","scalarMode","scalarVisibility","static","transformCoordinate","useLookupTableScalarRange","viewSpecificProperties","customShaderAttributes"]),Q.setGetArray(t,e,["scalarRange"],2),e.viewSpecificProperties||(e.viewSpecificProperties={}),knt(t,e)}const Lnt=Q.newInstance(jte,"vtkMapper2D");var Ont={newInstance:Lnt,extend:jte},Ant=`//VTK::System::Dec
  207. /*=========================================================================
  208. Program: Visualization Toolkit
  209. Module: vtkPolyData2DFS.glsl
  210. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  211. All rights reserved.
  212. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  213. This software is distributed WITHOUT ANY WARRANTY; without even
  214. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  215. PURPOSE. See the above copyright notice for more information.
  216. =========================================================================*/
  217. uniform int PrimitiveIDOffset;
  218. // Texture coordinates
  219. //VTK::TCoord::Dec
  220. // Scalar coloring
  221. //VTK::Color::Dec
  222. // Depth Peeling
  223. //VTK::DepthPeeling::Dec
  224. // picking support
  225. //VTK::Picking::Dec
  226. // the output of this shader
  227. //VTK::Output::Dec
  228. // Apple Bug
  229. //VTK::PrimID::Dec
  230. void main()
  231. {
  232. // Apple Bug
  233. //VTK::PrimID::Impl
  234. //VTK::Color::Impl
  235. //VTK::TCoord::Impl
  236. //VTK::DepthPeeling::Impl
  237. //VTK::Picking::Impl
  238. if (gl_FragData[0].a <= 0.0)
  239. {
  240. discard;
  241. }
  242. }
  243. `,Nnt=`//VTK::System::Dec
  244. /*=========================================================================
  245. Program: Visualization Toolkit
  246. Module: vtkPolyData2DVS.glsl
  247. Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  248. All rights reserved.
  249. See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  250. This software is distributed WITHOUT ANY WARRANTY; without even
  251. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  252. PURPOSE. See the above copyright notice for more information.
  253. =========================================================================*/
  254. // all variables that represent positions or directions have a suffix
  255. // indicating the coordinate system they are in. The possible values are
  256. // MC - Model Coordinates
  257. // WC - WC world coordinates
  258. // VC - View Coordinates
  259. // DC - Display Coordinates
  260. in vec4 vertexWC;
  261. // frag position in VC
  262. //VTK::PositionVC::Dec
  263. // material property values
  264. //VTK::Color::Dec
  265. // Texture coordinates
  266. //VTK::TCoord::Dec
  267. // Apple Bug
  268. //VTK::PrimID::Dec
  269. uniform mat4 WCVCMatrix; // World to view matrix
  270. void main()
  271. {
  272. // Apple Bug
  273. //VTK::PrimID::Impl
  274. gl_Position = WCVCMatrix*vertexWC;
  275. //VTK::TCoord::Impl
  276. //VTK::Color::Impl
  277. //VTK::PositionVC::Impl
  278. }
  279. `;const Kte={BACKGROUND:0,FOREGROUND:1};var Yte={DisplayLocation:Kte};const{primTypes:Rs}=e0,{ScalarMode:YS}=Ont,{vtkErrorMacro:qS}=ru,Vnt={type:"StartEvent"},Bnt={type:"EndEvent"};function Int(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=Nnt,r.Fragment=Ant,r.Geometry=""},t.render=()=>{const r=e._openGLRenderWindow.getContext();if(e.context!==r){e.context=r;for(let o=Rs.Start;o<Rs.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(Vnt),e.renderable.getStatic()||e.renderable.update(),e.currentInput=e.renderable.getInputData(),t.invokeEvent(Bnt),!e.currentInput){qS("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===YS.USE_CELL_DATA||s===YS.USE_CELL_FIELD_DATA||s===YS.USE_FIELD_DATA||!i.getPointData().getScalars())&&s!==YS.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 p=i.getPoints();if(c){const g=m1.newInstance(),y=p.getNumberOfPoints();g.setNumberOfPoints(y);const m=[];for(let b=0;b<y;++b){p.getPoint(b,m),c.setValue(m);const w=c.getComputedDoubleViewportValue(r);g.setPoint(b,w[0],w[1],0)}p=g}const v={points:p,tcoords:u,colors:o,cellOffset:0,haveCellScalars:e.haveCellSCalars,customAttributes:e.renderable.getCustomShaderAttributes().map(g=>i.getPointData().getArrayByName(g))};v.cellOffset+=e.primitives[Rs.Points].getCABO().createVBO(i.getVerts(),"verts",l,v),v.cellOffset+=e.primitives[Rs.Lines].getCABO().createVBO(i.getLines(),"lines",l,v),v.cellOffset+=e.primitives[Rs.Tris].getCABO().createVBO(i.getPolys(),"polys",l,v),v.cellOffset+=e.primitives[Rs.TriStrips].getCABO().createVBO(i.getStrips(),"strips",l,v),e.VBOBuildTime.modified(),e.VBOBuildString=h}},t.renderPieceDraw=(r,a)=>{const i=a.getProperty().getRepresentation();e.context.depthMask(!0);for(let s=Rs.Start;s<Rs.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=gt.substitute(l,"//VTK::Color::Dec",["uniform samplerBuffer texture1;"]).result,l=gt.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = texelFetchBuffer(texture1, gl_PrimitiveID + PrimitiveIDOffset);"]).result),e.lastBoundBO.getCABO().getColorComponents()!==0?(o=gt.substitute(o,"//VTK::Color::Dec",["in vec4 diffuseColor;","out vec4 fcolorVSOutput;"]).result,o=gt.substitute(o,"//VTK::Color::Impl",["fcolorVSOutput = diffuseColor;"]).result,s=gt.substitute(s,"//VTK::Color::Dec",[`in vec4 fcolorVSOutput[];
  280. `,"out vec4 fcolorGSOutput;"]).result,s=gt.substitute(s,"//VTK::Color::Impl",["fcolorGSOutput = fcolorVSOutput[i];"]).result,l=gt.substitute(l,"//VTK::Color::Dec",["in vec4 fcolorVSOutput;"]).result,l=gt.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = fcolorVSOutput;"]).result):(l=gt.substitute(l,"//VTK::Color::Dec",["uniform vec4 diffuseColor;"]).result,l=gt.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=gt.substitute(o,"//VTK::TCoord::Dec",["in float tcoordMC;","out float tcoordVCVSOutput;"]).result,o=gt.substitute(o,"//VTK::TCoord::Impl",["tcoordVCVSOutput = tcoordMC;"]).result,s=gt.substitute(s,"//VTK::TCoord::Dec",[`in float tcoordVCVSOutput[];
  281. `,"out float tcoordVCGSOutput;"]).result,s=gt.substitute(s,["//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];"]).result,l=gt.substitute(l,"//VTK::TCoord::Dec",["in float tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,l=gt.substitute(l,"//VTK::TCoord::Impl",["gl_FragData[0] = gl_FragData[0]*texture2D(texture1, vec2(tcoordVCVSOutput,0));"]).result):u===2&&(o=gt.substitute(o,"//VTK::TCoord::Dec",["in vec2 tcoordMC;","out vec2 tcoordVCVSOutput;"]).result,o=gt.substitute(o,"//VTK::TCoord::Impl",["tcoordVCVSOutput = tcoordMC;"]).result,s=gt.substitute(s,"//VTK::TCoord::Dec",[`in vec2 tcoordVCVSOutput[];
  282. `,"out vec2 tcoordVCGSOutput;"]).result,s=gt.substitute(s,"//VTK::TCoord::Impl",["tcoordVCGSOutput = tcoordVCVSOutput[i];"]).result,l=gt.substitute(l,"//VTK::TCoord::Dec",["in vec2 tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,l=gt.substitute(l,"//VTK::TCoord::Impl",["gl_FragData[0] = gl_FragData[0]*texture2D(texture1, tcoordVCVSOutput.st);"]).result),e.haveCellScalars&&(s=gt.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=gt.substitute(o,"//VTK::Picking::Dec",["uniform vec3 mapperIndex;","uniform int picking;"]).result,o=gt.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)||qS("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)||qS(`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)||qS("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],p=[0,0,1,1];if(p[0]=f[0]>=h[0]?f[0]:h[0],p[1]=f[1]>=h[1]?f[1]:h[1],p[2]=f[2]<=h[2]?f[2]:h[2],p[3]=f[3]<=h[3]?f[3]:h[3],p[0]>=p[2]||p[1]>=p[3])return;c[0]=Ly(c[0]*(p[2]-p[0])/(f[2]-f[0])),c[1]=Ly(c[1]*(p[3]-p[1])/(f[3]-f[1]));const v=e._openGLRenderer.getParent().getSize(),g=Ly(d[0]-(p[0]-f[0])*v[0]),y=Ly(d[1]-(p[1]-f[1])*v[1]),m=-g;let b=-g+c[0];const w=-y;let C=-y+c[1];m===b&&(b=m+1),w===C&&(C=w+1);const x=Un(new Float64Array(16));x[0]=2/(b-m),x[1*4+1]=2/(C-w),x[0*4+3]=-1*(b+m)/(b-m),x[1*4+3]=-1*(C+w)/(C-w),x[2*4+2]=0,x[2*4+3]=i.getProperty().getDisplayLocation()===Kte.FOREGROUND?-1:1,x[3*4+3]=1,Gr(x,x),o.setUniformMatrix("WCVCMatrix",n([x,l],lO,e.tmpMat4))},t.getAllocatedGPUMemoryInBytes=()=>{let r=0;return e.primitives.forEach(a=>{r+=a.getAllocatedGPUMemoryInBytes()}),r}}const $nt={context:null,VBOBuildTime:0,VBOBuildString:null,primitives:null,primTypes:null,shaderRebuildString:null};function Pnt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,$nt,n),sa.extend(t,e,n),C2.implementReplaceShaderCoincidentOffset(t,e,n),C2.implementBuildShadersWithReplacements(t,e,n),e.primitives=[],e.primTypes=Rs,e.tmpMat4=Un(new Float64Array(16));for(let r=Rs.Start;r<Rs.End;r++)e.primitives[r]=e0.newInstance(),e.primitives[r].setPrimitiveType(r),e.primitives[r].set({lastLightComplexity:0,lastLightCount:0,lastSelectionPass:!1},!0);Va(t,e,["context"]),e.VBOBuildTime={},Ka(e.VBOBuildTime,{mtime:0}),Int(t,e)}const Fnt=Or(Pnt,"vtkOpenGLPolyDataMapper2D");sl("vtkMapper2D",Fnt);const{VectorMode:znt}=DT;function KM(t,e){t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeSize,t.fillStyle=e.fontColor,t.font=`${e.fontStyle} ${e.fontSize}px ${e.fontFamily}`}function qte(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 Xte(t,e){return n=>{const r=n.getLastTickBounds(),a=Xg().domain([r[0],r[1]]),i=a.ticks(5),o=a.tickFormat(5);n.setTicks(i),n.setTickStrings(i.map(o))}}function Unt(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;KM(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,KM(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=jo(o),s=jo(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)=>{KM(e.tmContext,f.textStyle),e.tmContext.fillText(d,1,f.startingHeight+f.height-1)}),e.tmTexture.setCanvas(e.tmCanvas),e.tmTexture.modified(),e._tmAtlas=i,a},t.computeBarSize=a=>{e.vertical=e.boxSize[1]>e.boxSize[0];const i=2*a.tickHeight/e.lastSize[1],o=[1,1];if(e.vertical){const s=2*(a.tickWidth+e.tickLabelPixelOffset)/e.lastSize[0];if(e.topTitle){const l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[1];e.barSize[0]=e.boxSize[0]-s,e.barSize[1]=e.boxSize[1]-l}else{const l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[0];e.barSize[0]=e.boxSize[0]-l-s,e.barSize[1]=e.boxSize[1]}e.barPosition[0]=e.boxPosition[0]+s,e.barPosition[1]=e.boxPosition[1],o[1]=i}else{const s=(2*a.tickWidth-8)/e.lastSize[0],l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[1];e.barSize[0]=e.boxSize[0],e.barPosition[0]=e.boxPosition[0],e.barSize[1]=e.boxSize[1]-l,e.barPosition[1]=e.boxPosition[1],o[0]=s}return o},t.recomputeBarSegments=a=>{var d,h,p,v;const i=t.computeBarSize(a);e.barSegments=[];const o=[0,0],s=e.vertical?1:0,l=e.vertical?.01:.02;function u(g,y){e.barSegments.push({corners:[[...o],[o[0]+i[0],o[1]],[o[0]+i[0],o[1]+i[1]],[o[0],o[1]+i[1]]],scalars:y,title:g}),o[s]+=i[s]+l}e.renderable.getDrawNanAnnotation()&&e.renderable.getScalarsToColors().getNanColor()&&u("NaN",[NaN,NaN,NaN,NaN]),e.renderable.getDrawBelowRangeSwatch()&&((h=(d=e.renderable.getScalarsToColors()).getUseBelowRangeColor)!=null&&h.call(d))&&u("Below",[-.1,-.1,-.1,-.1]);const c=(v=(p=e.renderable.getScalarsToColors()).getUseAboveRangeColor)==null?void 0:v.call(p);o[s]+=l;const f=i[s];i[s]=c?1-2*l-i[s]-o[s]:1-l-o[s],u("ticks",e.vertical?[0,0,.995,.995]:[0,.995,.995,0]),e.renderable.getDrawAboveRangeSwatch()&&c&&(i[s]=f,o[s]+=l,u("Above",[1.1,1.1,1.1,1.1]))};const n=new Float64Array(3);t.createPolyDataForOneLabel=(a,i,o,s,l,u)=>{const c=e._tmAtlas.get(a);if(!c)return;let f=u.ptIdx,d=u.cellIdx;n[0]=(.5*i[0]+.5)*e.lastSize[0],n[1]=(.5*i[1]+.5)*e.lastSize[1],n[2]=i[2],n[0]+=l[0],n[1]+=l[1];const h=[],p=s==="vertical"?[1,0]:[0,1];s==="vertical"?(h[0]=c.width,h[1]=-c.height,o[0]==="middle"?n[1]-=c.width/2:o[0]==="right"&&(n[1]-=c.width),o[1]==="middle"?n[0]+=c.height/2:o[1]==="top"&&(n[0]+=c.height)):(h[0]=c.width,h[1]=c.height,o[0]==="middle"?n[0]-=c.width/2:o[0]==="right"&&(n[0]-=c.width),o[1]==="middle"?n[1]-=c.height/2:o[1]==="top"&&(n[1]-=c.height)),u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[0],u.tcoords[f*2+1]=c.tcoords[1],f++,n[p[0]]+=h[0],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[2],u.tcoords[f*2+1]=c.tcoords[3],f++,n[p[1]]+=h[1],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[4],u.tcoords[f*2+1]=c.tcoords[5],f++,n[p[0]]-=h[0],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[6],u.tcoords[f*2+1]=c.tcoords[7],f++,u.polys[d*4]=3,u.polys[d*4+1]=f-4,u.polys[d*4+2]=f-3,u.polys[d*4+3]=f-2,d++,u.polys[d*4]=3,u.polys[d*4+1]=f-4,u.polys[d*4+2]=f-2,u.polys[d*4+3]=f-1,u.ptIdx+=4,u.cellIdx+=2};const r=new Float64Array(3);t.updatePolyDataForLabels=()=>{const a=t.getTickStrings().length+e.barSegments.length,i=a*4,o=a*2,s=new Float64Array(i*3),l=new Uint16Array(o*4),u=new Float32Array(i*2),c={ptIdx:0,cellIdx:0,polys:l,points:s,tcoords:u},f=e.vertical?0:1,d=e.vertical?1:0;r[2]=-.99;const h=e.vertical?["right","middle"]:["middle","bottom"];let p=[0,1];const v=[0,0];e.vertical?(v[0]=-e.tickLabelPixelOffset,e.topTitle?(r[0]=e.boxPosition[0]+.5*e.boxSize[0],r[1]=e.barPosition[1]+e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","bottom"],"horizontal",[0,e.axisTitlePixelOffset],c)):(r[0]=e.barPosition[0]+e.barSize[0],r[1]=e.barPosition[1]+.5*e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","top"],"vertical",[e.axisTitlePixelOffset,0],c)),p=[-1,0]):(v[1]=e.tickLabelPixelOffset,r[0]=e.barPosition[0]+.5*e.barSize[0],r[1]=e.barPosition[1]+e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","bottom"],"horizontal",[0,e.axisTitlePixelOffset],c)),r[f]=e.barPosition[f]+(.5*p[f]+.5)*e.barSize[f],r[d]=e.barPosition[d]+e.barSize[d]*.5;let g=null;for(let x=0;x<e.barSegments.length;x++){const _=e.barSegments[x];_.title==="ticks"?g=_:(r[d]=e.barPosition[d]+.5*e.barSize[d]*(_.corners[2][d]+_.corners[0][d]),t.createPolyDataForOneLabel(_.title,r,h,"horizontal",v,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]),b=t.getTicks(),w=t.getTickStrings();for(let x=0;x<b.length;x++){const _=(b[x]-e.lastTickBounds[0])/(e.lastTickBounds[1]-e.lastTickBounds[0]);r[d]=y+m*_,t.createPolyDataForOneLabel(w[x],r,h,"horizontal",v,c)}const C=Hn.newInstance({numberOfComponents:2,values:u,name:"TextureCoordinates"});e.tmPolyData.getPointData().setTCoords(C),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 v,g;const a=e.renderable.getScalarsToColors();let i=0;e.renderable.getDrawNanAnnotation()&&a.getNanColor()&&(i+=1),e.renderable.getDrawBelowRangeSwatch()&&((v=a.getUseBelowRangeColor)!=null&&v.call(a))&&(i+=1),e.renderable.getDrawAboveRangeSwatch()&&((g=a.getUseAboveRangeColor)!=null&&g.call(a))&&(i+=1);const o=4*(1+i),s=o;let l=1;a.getVectorMode()===znt.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 b=0;b<4;b++){r[0]=e.barPosition[0]+m.corners[b][0]*e.barSize[0],r[1]=e.barPosition[1]+m.corners[b][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 w=0;w<l;w++)f[d*l+w]=e.lastTickBounds[0]+m.scalars[b]*(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 p=Hn.newInstance({numberOfComponents:l,values:f,name:"Scalars"});e.polyData.getPointData().setScalars(p),e.polyData.getPoints().setData(u,3),e.polyData.getPoints().modified(),e.polyData.getPolys().setData(c,1),e.polyData.getPolys().modified(),e.polyData.modified()}}const Gnt=Q.newInstance(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{renderable:null};Object.assign(e,{},n),Q.obj(t,e),Q.setGet(t,e,["axisTitlePixelOffset","tickLabelPixelOffset","renderable","topTitle","ticks","tickStrings"]),Q.get(t,e,["lastSize","lastAspectRatio","lastTickBounds","axisTextStyle","tickTextStyle","barActor","tmActor"]),Q.getArray(t,e,["boxPosition","boxSize"]),Q.setArray(t,e,["boxPosition","boxSize"],2),e.forceUpdate=!1,e.lastRebuildTime={},Q.obj(e.lastRebuildTime,{mtime:0}),e.lastSize=[-1,-1],e.tmCanvas=document.createElement("canvas"),e.tmContext=e.tmCanvas.getContext("2d"),e._tmAtlas=new Map,e.barMapper=za.newInstance(),e.barMapper.setInterpolateScalarsBeforeMapping(!0),e.barMapper.setUseLookupTableScalarRange(!0),e.polyData=Oa.newInstance(),e.barMapper.setInputData(e.polyData),e.barActor=Pa.newInstance(),e.barActor.setMapper(e.barMapper),e.tmPolyData=Oa.newInstance(),e.tmMapper=za.newInstance(),e.tmMapper.setInputData(e.tmPolyData),e.tmTexture=Eb.newInstance({resizable:!0}),e.tmTexture.setInterpolate(!1),e.tmActor=Pa.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=[],Unt(t,e)},"vtkScalarBarActorHelper");function Hnt(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(qte(t,e))},t.resetGenerateTicksToDefault=()=>{t.setGenerateTicks(Xte())}}function Wnt(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 Zte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Wnt(n)),e.autoLayout||(e.autoLayout=qte(t,e)),e.generateTicks||(e.generateTicks=Xte()),Pa.extend(t,e,n),t.getProperty().setDiffuse(0),t.getProperty().setAmbient(1),Q.setGet(t,e,["automated","autoLayout","axisTitlePixelOffset","axisLabel","scalarsToColors","tickLabelPixelOffset","generateTicks","drawNanAnnotation","drawBelowRangeSwatch","drawAboveRangeSwatch"]),Q.get(t,e,["axisTextStyle","tickTextStyle"]),Q.getArray(t,e,["barPosition","barSize","boxPosition","boxSize"]),Q.setArray(t,e,["barPosition","barSize","boxPosition","boxSize"],2),Hnt(t,e)}const jnt=Q.newInstance(Zte,"vtkScalarBarActor");var Mb={newInstance:jnt,extend:Zte,newScalarBarActorHelper:Gnt};function Knt(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 Ynt={};function qnt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ynt,n),sa.extend(t,e,n),e.scalarBarActorHelper=Mb.newScalarBarActorHelper(),Knt(t,e)}const Xnt=Or(qnt,"vtkOpenGLScalarBarActor");sl("vtkScalarBarActor",Xnt);const{vtkErrorMacro:gz}=ru;function Znt(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($i(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=Hn.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=Hn.newInstance({numberOfComponents:1,values:i});e.tris.getCABO().createVBO(o,"polys",ti.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
  283. attribute vec3 vertexMC;
  284. uniform mat4 IMCPCMatrix;
  285. varying vec3 TexCoords;
  286. void main () {
  287. gl_Position = vec4(vertexMC.xyz, 1.0);
  288. vec4 wpos = IMCPCMatrix * gl_Position;
  289. TexCoords = wpos.xyz/wpos.w;
  290. }`,`//VTK::System::Dec
  291. //VTK::Output::Dec
  292. varying vec3 TexCoords;
  293. uniform samplerCube sbtexture;
  294. uniform vec3 camPos;
  295. void main () {
  296. // skybox looks from inside out
  297. // which means we have to adjust
  298. // our tcoords. Otherwise text would
  299. // be flipped
  300. vec3 tc = normalize(TexCoords - camPos);
  301. if (abs(tc.z) < max(abs(tc.x),abs(tc.y)))
  302. {
  303. tc = vec3(1.0, 1.0, -1.0) * tc;
  304. }
  305. else
  306. {
  307. tc = vec3(-1.0, 1.0, 1.0) * tc;
  308. }
  309. gl_FragData[0] = textureCube(sbtexture, tc);
  310. }`,"")),e.lastFormat==="background"&&e.tris.setProgram(e._openGLRenderWindow.getShaderCache().readyShaderProgramArray(`//VTK::System::Dec
  311. attribute vec3 vertexMC;
  312. uniform mat4 IMCPCMatrix;
  313. varying vec2 TexCoords;
  314. void main () {
  315. gl_Position = vec4(vertexMC.xyz, 1.0);
  316. vec4 wpos = IMCPCMatrix * gl_Position;
  317. TexCoords = vec2(vertexMC.x, vertexMC.y)*0.5 + 0.5;
  318. }`,`//VTK::System::Dec
  319. //VTK::Output::Dec
  320. varying vec2 TexCoords;
  321. uniform sampler2D sbtexture;
  322. void main () {
  323. gl_FragData[0] = texture2D(sbtexture, TexCoords);
  324. }`,"")),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)||gz("Error setting vertexMC in shader VAO."));const n=e.renderable.getTextures();n.length||gz("vtkSkybox requires a texture map"),e.openGLTexture.getRenderable()!==n[0]&&(e.openGLTexture.releaseGraphicsResources(e._openGLRenderWindow),e.openGLTexture.setRenderable(n[0]))}}const Qnt={context:null};function Jnt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Qnt,n),sa.extend(t,e,n),e.openGLTexture=Oh.newInstance(),e.tris=e0.newInstance(),e.keyMatrixTime={},Ka(e.keyMatrixTime,{mtime:0}),e.keyMatrices={normalMatrix:fp(new Float64Array(9)),mcwc:Un(new Float64Array(16))},Va(t,e,["context"]),Yi(t,e,["activeTextures"]),Znt(t,e)}const ert=Or(Jnt);sl("vtkSkybox",ert);const{vtkDebugMacro:trt}=ru;function nrt(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():trt("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 rrt={};function art(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rrt,n),sa.extend(t,e,n),nrt(t,e)}const irt=Or(art,"vtkOpenGLPixelSpaceCallbackMapper");sl("vtkPixelSpaceCallbackMapper",irt);const Qte=Object.create(null);function tc(t,e){Qte[t]=e}function ort(t,e){e.classHierarchy.push("vtkWebGPUViewNodeFactory")}const srt={};function Jte(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,srt,n),e.overrides=Qte,UJ.extend(t,e,n),ort(t,e)}const lrt=Q.newInstance(Jte,"vtkWebGPUViewNodeFactory");var urt={newInstance:lrt,extend:Jte};function crt(t,e){e.classHierarchy.push("vtkWebGPUCamera"),t.getProjectionMatrix=(n,r,a,i)=>{if(Un(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),p=1/(d-f);n[0]=2*h,n[5]=2*p,n[10]=1/(a[1]-a[0]),n[12]=(c+u)*h,n[13]=(d+f)*p,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();Qa(e.keyMatrices.normalMatrix,i),e.keyMatrices.normalMatrix[3]=0,e.keyMatrices.normalMatrix[7]=0,e.keyMatrices.normalMatrix[11]=0,$i(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),Gr(e.keyMatrices.wcvc,i);const o=n.getStabilizedCenterByReference();la(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()),Ha(e.keyMatrices.scpc,e.keyMatrices.vcpc,e.keyMatrices.scvc),$i(e.keyMatrices.pcsc,e.keyMatrices.scpc),e.keyMatrixTime.modified()}return e.keyMatrices}}const frt={keyMatrixTime:null,keyMatrices:null};function drt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,frt,n),sa.extend(t,e,n),e.keyMatrixTime={},Q.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)},Q.setGet(t,e,["keyMatrixTime"]),crt(t,e)}const hrt=Q.newInstance(drt);tc("vtkCamera",hrt);function prt(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(`
  325. `)}}const vrt={device:null,handle:null,label:null};function ene(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,vrt,n),Q.obj(t,e),e.bindables=[],e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),Q.get(t,e,["bindGroupTime","handle","sizeInBytes","usage"]),Q.setGet(t,e,["label","device","arrayInformation"]),prt(t,e)}const grt=Q.newInstance(ene);var tne={newInstance:grt,extend:ene};function yrt(t,e){e.classHierarchy.push("vtkWebGPUShaderModule"),t.initialize=(n,r)=>{e.device=n,e.handle=e.device.getHandle().createShaderModule({code:r.getCode()})}}const mrt={device:null,handle:null};function nne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mrt,n),Q.obj(t,e),Q.get(t,e,["lastCameraMTime"]),Q.setGet(t,e,["device","handle"]),yrt(t,e)}const brt=Q.newInstance(nne,"vtkWebGPUShaderModule");var Srt={newInstance:brt,extend:nne};function wrt(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=Array.isArray(n)?n.join(`
  326. `):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 _rt(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=Srt.newInstance();return o.initialize(e.device,n),e._shaderModules.set(n,o),o}}const xrt={shaderModules:null,device:null,window:null};function rne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,xrt,n),e._shaderModules=new Map,Q.obj(t,e),Q.setGet(t,e,["device","window"]),_rt(t,e)}const Crt=Q.newInstance(rne,"vtkWebGPUShaderCache");var Ln={newInstance:Crt,extend:rne,substitute:wrt};function Trt(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 Ert={handle:null,layouts:null,renderEncoder:null,shaderDescriptions:null,vertexState:null,topology:null,pipelineDescription:null};function ane(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ert,n),Ka(t,e),e.layouts=[],e.shaderDescriptions=[],Yi(t,e,["handle","pipelineDescription"]),Va(t,e,["device","renderEncoder","topology","vertexState"]),Trt(t,e)}const Mrt=Or(ane,"vtkWebGPUPipeline");var Drt={newInstance:Mrt,extend:ane};function krt(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
  327. {`),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=Ln.substitute(e.code,"//VTK::IOStructs::Input",a).result),e.outputNames.length+e.builtinOutputNames.length){const o=[`struct ${e.type}Output
  328. {`];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=Ln.substitute(e.code,"//VTK::IOStructs::Output",[`-> ${e.type}Output`]).result}e.code=Ln.substitute(e.code,"//VTK::IOStructs::Dec",i).result}}const Rrt={type:null,hash:null,code:null,outputNames:null,outputTypes:null};function ine(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Rrt,n),e.outputNames=[],e.outputTypes=[],e.outputInterpolations=[],e.builtinOutputNames=[],e.builtinOutputTypes=[],e.builtinInputNames=[],e.builtinInputTypes=[],Q.obj(t,e),Q.setGet(t,e,["type","hash","code"]),Q.getArray(t,e,["outputTypes","outputNames","outputInterpolations"]),krt(t,e)}const Lrt=Q.newInstance(ine,"vtkWebGPUShaderDescription");var yz={newInstance:Lrt,extend:ine};const mz={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 Ort(t){return!t||t.length<6?0:t in mz?mz[t]:(Gn(`unknown format ${t}`),null)}function Art(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 Gn(`unknown format ${t}`),0;const a=5-r/2;return e*a}function Nrt(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 Vrt(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{Gn(`unknown format ${t}`);return}const n=t.split("x")[0],r=Number(n[n.length-1]);if(Number.isNaN(r)){Gn(`unknown format ${t}`);return}return e+=8*(5-r/2),e+="Array",e}function Brt(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{Gn(`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 Irt(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 $rt(t){if(t){if(t.includes("f32"))return"Float32Array";if(t.includes("i32"))return"Int32Array";if(t.includes("u32"))return"Uint32Array";Gn(`unknown format ${t}`)}}var Ga={getDetailsFromTextureFormat:Ort,getByteStrideFromBufferFormat:Art,getNumberOfComponentsFromBufferFormat:Nrt,getNativeTypeFromBufferFormat:Vrt,getShaderTypeFromBufferFormat:Brt,getByteStrideFromShaderFormat:Irt,getNativeTypeFromShaderFormat:$rt};function Prt(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 Frt(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(Prt(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=Ga.getShaderTypeFromBufferFormat(o.format);r>0&&(n+=`,
  329. `),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 zrt={inputs:null,bindingDescriptions:!1,attributeDescriptions:null,indexBuffer:null};function one(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,zrt,n),Ka(t,e),e.bindingDescriptions=[],e.attributeDescriptions=[],e.inputs=[],Va(t,e,["created","device","handle","indexBuffer"]),Frt(t,e)}const Urt=Or(one,"vtkWebGPUVertexInput");var Grt={newInstance:Urt,extend:one};const Hrt=`
  330. //VTK::Renderer::Dec
  331. //VTK::Color::Dec
  332. //VTK::Normal::Dec
  333. //VTK::TCoord::Dec
  334. //VTK::Select::Dec
  335. //VTK::Mapper::Dec
  336. //VTK::IOStructs::Dec
  337. @vertex
  338. fn main(
  339. //VTK::IOStructs::Input
  340. )
  341. //VTK::IOStructs::Output
  342. {
  343. var output : vertexOutput;
  344. // var vertex: vec4<f32> = vertexBC;
  345. //VTK::Color::Impl
  346. //VTK::Normal::Impl
  347. //VTK::TCoord::Impl
  348. //VTK::Select::Impl
  349. //VTK::Position::Impl
  350. return output;
  351. }
  352. `,Wrt=`
  353. //VTK::Renderer::Dec
  354. //VTK::Color::Dec
  355. //VTK::Normal::Dec
  356. //VTK::TCoord::Dec
  357. //VTK::Select::Dec
  358. //VTK::RenderEncoder::Dec
  359. //VTK::Mapper::Dec
  360. //VTK::IOStructs::Dec
  361. @fragment
  362. fn main(
  363. //VTK::IOStructs::Input
  364. )
  365. //VTK::IOStructs::Output
  366. {
  367. var output : fragmentOutput;
  368. //VTK::Color::Impl
  369. //VTK::Normal::Impl
  370. //VTK::Light::Impl
  371. //VTK::TCoord::Impl
  372. //VTK::Select::Impl
  373. // var computedColor:vec4<f32> = vec4<f32>(1.0,0.5,0.5,1.0);
  374. //VTK::RenderEncoder::Impl
  375. return output;
  376. }
  377. `;function jrt(t,e){e.classHierarchy.push("vtkWebGPUSimpleMapper"),t.generateShaderDescriptions=(n,r,a)=>{const i=yz.newInstance({type:"vertex",hash:n,code:e.vertexShaderTemplate}),o=yz.newInstance({type:"fragment",hash:n,code:e.fragmentShaderTemplate}),s=r.getShaderDescriptions();s.push(i),s.push(o);const l=e.vertexShaderTemplate+e.fragmentShaderTemplate,u=new RegExp("//VTK::[^:]*::","g"),f=l.match(u).filter((d,h,p)=>p.indexOf(d)===h).map(d=>`replaceShader${d.substring(7,d.length-2)}`);for(let d=0;d<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=Ln.substitute(s,"//VTK::Renderer::Dec",[i]).result,o.setCode(s);const l=r.getShaderDescription("fragment");s=l.getCode(),s=Ln.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=Ln.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=Ln.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=Ln.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=Drt.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 Krt={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 sne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Krt,n),sa.extend(t,e,n),e.textureViews=[],e.vertexInput=Grt.newInstance(),e.bindGroup=tne.newInstance({label:"mapperBG"}),e.additionalBindables=[],e.fragmentShaderTemplate=e.fragmentShaderTemplate||Wrt,e.vertexShaderTemplate=e.vertexShaderTemplate||Hrt,e.shaderReplacements=new Map,Q.get(t,e,["pipeline","vertexInput"]),Q.setGet(t,e,["additionalBindables","device","fragmentShaderTemplate","interpolate","numberOfInstances","numberOfVertices","pipelineHash","shaderReplacements","SSBO","textureViews","topology","UBO","vertexShaderTemplate","WebGPURenderer"]),jrt(t,e)}const Yrt=Q.newInstance(sne,"vtkWebGPUSimpleMapper");var pB={newInstance:Yrt,extend:sne};function qrt(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=Ln.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 Xrt={};function lne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Xrt,n),pB.extend(t,e,n),qrt(t,e)}const Zrt=Q.newInstance(lne,"vtkWebGPUFullScreenQuad");var Eg={newInstance:Zrt,extend:lne};const Qrt={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},Jrt={Start:0,Points:0,Lines:1,Triangles:2,TriangleStrips:3,TriangleEdges:4,TriangleStripEdges:5,End:6};var Db={BufferUsage:Qrt,PrimitiveTypes:Jrt};const YM=["getMappedRange","mapAsync","unmap"];function eat(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 tat(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=>{eat(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<YM.length;n++)t[YM[n]]=function(){return e.handle[YM[n]](...arguments)}}const nat={device:null,handle:null,sizeInBytes:0,strideInBytes:0,arrayInformation:null,usage:null,label:null,sourceTime:null};function une(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nat,n),Q.obj(t,e),Q.get(t,e,["handle","sizeInBytes","usage"]),Q.setGet(t,e,["strideInBytes","device","arrayInformation","label","sourceTime"]),tat(t,e)}const rat=Q.newInstance(une);var Mg={newInstance:rat,extend:une,...Db};const{Representation:bz}=Jg,{PrimitiveTypes:Fc}=Db;class aat{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 iat(t){switch(t){case Fc.Points:return"points";case Fc.Lines:return"lines";case Fc.Triangles:case Fc.TriangleEdges:return"polys";case Fc.TriangleStripEdges:case Fc.TriangleStrips:return"strips";default:return""}}function XS(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 oat(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=XS(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=XS(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=XS(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=XS(n,a,e),n.ibo[n.iboId++]=i}function sat(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 yu;const Sz=new Uint32Array(1),No=new Uint32Array(2),mc=new Uint32Array(3),qM={anythingToPoints(t,e,n,r,a){for(let i=0;i<t;++i)Sz[0]=e[n+i],yu(Sz,r,a)},linesToWireframe(t,e,n,r,a){for(let i=0;i<t-1;++i)No[0]=e[n+i],No[1]=e[n+i+1],yu(No,r,a)},polysToWireframe(t,e,n,r,a){if(t>2)for(let i=0;i<t;++i)No[0]=e[n+i],No[1]=e[n+(i+1)%t],yu(No,r,a)},stripsToWireframe(t,e,n,r,a){if(t>2){for(let i=0;i<t-1;++i)No[0]=e[n+i],No[1]=e[n+i+1],yu(No,r,a);for(let i=0;i<t-2;i++)No[0]=e[n+i],No[1]=e[n+i+2],yu(No,r,a)}},polysToSurface(t,e,n,r,a){for(let i=0;i<t-2;i++)mc[0]=e[n],mc[1]=e[n+i+1],mc[2]=e[n+i+2],yu(mc,r,a)},stripsToSurface(t,e,n,r,a){for(let i=0;i<t-2;i++)mc[0]=e[n+i],mc[1]=e[n+i+1+i%2],mc[2]=e[n+i+1+(i+1)%2],yu(mc,r,a)}};function lat(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=iat(a),c=n.numberOfPoints,f={provokedPointIds:new Uint8Array(c),extraPoints:0,iboSize:0,flatId:0,iboId:0,cellProvokedMap:new aat};let d=null;i===bz.POINTS||a===Fc.Points?d=qM.anythingToPoints:i===bz.WIREFRAME||a===Fc.Lines?d=qM[`${u}ToWireframe`]:d=qM[`${u}ToSurface`],yu=sat;let h=o||0;for(let p=0;p<l;)f.cellProvokedMap.clear(),d(s[p],s,p+1,h,f),p+=s[p]+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),yu=oat,h=o||0;for(let p=0;p<l;)f.cellProvokedMap.clear(),d(s[p],s,p+1,h,f),p+=s[p]+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 uat={flatIdToPointId:null,flatIdToCellId:null,flatSize:0,indexCount:0};function cne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uat,n),Mg.extend(t,e,n),Q.setGet(t,e,["flatIdToPointId","flatIdToCellId","flatSize","indexCount"]),lat(t,e)}const cat=Q.newInstance(cne);var fat={newInstance:cat,extend:cne,...Db};const{BufferUsage:bc}=Db,{vtkErrorMacro:dat}=ru,{VtkDataTypes:dd}=Hn,hat={};function pat(t){let e;switch(t.getDataType()){case dd.UNSIGNED_CHAR:e="uint8";break;case dd.FLOAT:e="float32";break;case dd.UNSIGNED_INT:e="uint32";break;case dd.INT:e="sint32";break;case dd.DOUBLE:e="float32";break;case dd.UNSIGNED_SHORT:e="uint16";break;case dd.SHORT:e="sin16";break;default:e="float32";break}switch(t.getNumberOfComponents()){case 2:e+="x2";break;case 3:e.includes("32")||dat(`unsupported x3 type for ${e}`),e+="x3";break;case 4:e+="x4";break}return e}function wz(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=Zg(r,o*d);let p=t.getFlatIdToPointId();a.cellData&&(p=t.getFlatIdToCellId()),n===1?c=function(g){h[f++]=l[0]*e[g]+s[0]}:n===2?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1]}:n===3&&!u?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2]}:n===3&&u?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2],h[f++]=l[3]*1+s[3]}:n===4&&(c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2],h[f++]=l[3]*e[g+3]+s[3]});for(let v=0;v<o;v++){const g=n*p[v];c(g)}return i.nativeArray=h,i}function vat(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 Xl(a,i,o),Xh(o),o}function gat(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=vat(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 yat(t,e){e.classHierarchy.push("vtkWebGPUBufferManager");function n(r){r.dataArray&&!r.nativeArray&&(r.nativeArray=r.dataArray.getData());let a,i;if(r.usage===bc.Index&&(a=fat.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=Mg.newInstance({label:r.label}),a.setDevice(e.device)),r.usage===bc.UniformArray&&(i=GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST,a.createAndWrite(r.nativeArray,i)),r.usage===bc.Storage&&(i=GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST,a.createAndWrite(r.nativeArray,i)),r.usage===bc.Texture&&(i=GPUBufferUsage.COPY_SRC,a.createAndWrite(r.nativeArray,i)),r.usage===bc.PointArray){i=GPUBufferUsage.VERTEX;const o=Ga.getNativeTypeFromBufferFormat(r.format),s=wz(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(Ga.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format,interpolation:r.cellData?"flat":"perspective"}])}if(r.usage===bc.NormalsFromPoints){i=GPUBufferUsage.VERTEX;const o=Ga.getNativeTypeFromBufferFormat(r.format),s=gat(r.cells,r.dataArray),l=wz(r.indexBuffer,s,4,o,{cellData:!0});a.createAndWrite(l.nativeArray,i),a.setStrideInBytes(Ga.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format,interpolation:"flat"}])}return r.usage===bc.RawVertex&&(i=GPUBufferUsage.VERTEX,a.createAndWrite(r.nativeArray,i),a.setStrideInBytes(Ga.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=pat(r),o={hash:`${r.getMTime()}I${a.getMTime()}${i}`,usage:bc.PointArray,format:i,dataArray:r,indexBuffer:a};return t.getBuffer(o)},t.getFullScreenQuadBuffer=()=>{if(e.fullScreenQuadBuffer)return e.fullScreenQuadBuffer;e.fullScreenQuadBuffer=Mg.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 mat={device:null,fullScreenQuadBuffer:null};function fne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mat,n),Ka(t,e),Va(t,e,["device"]),yat(t,e)}const bat=Or(fne);var zf={newInstance:bat,extend:fne,...hat,...Db};const{BufferUsage:Sat}=zf,{vtkErrorMacro:Bp}=Q;function wat(t,e){e.classHierarchy.push("vtkWebGPUStorageBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){Bp(`entry named ${n} already exists`);return}e._bufferEntryNames.set(n,e.bufferEntries.length);const a=Ga.getByteStrideFromShaderFormat(r);e.bufferEntries.push({name:n,type:r,sizeInBytes:a,offset:e.sizeInBytes,nativeType:Ga.getNativeTypeFromShaderFormat(r)}),e.sizeInBytes+=a},t.send=n=>{if(!e._buffer){const r={nativeArray:e.Float32Array,usage:Sat.Storage,label:e.label};e._buffer=n.getBufferManager().getBuffer(r),e.bindGroupTime.modified(),e._sendTime.modified();return}n.getHandle().queue.writeBuffer(e._buffer.getHandle(),0,e.arrayBuffer,0,e.sizeInBytes*e.numberOfInstances),e._sendTime.modified()},t.createView=n=>{n in e||(e.arrayBuffer||(e.arrayBuffer=new ArrayBuffer(e.sizeInBytes*e.numberOfInstances)),e[n]=Q.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r,a)=>{const i=e._bufferEntryNames.get(n);if(i===void 0){Bp(`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){Bp(`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){Bp(`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){Bp(`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){Bp(`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
  378. {`];for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];a.push(` ${o.name}: ${o.type},`)}return a.push(`
  379. };
  380. struct ${e.label}Struct
  381. {
  382. values: array<${e.label}StructEntry>,
  383. };
  384. @binding(${n}) @group(${r}) var<storage, read> ${e.label}: ${e.label}Struct;
  385. `),a.join(`
  386. `)},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 _at={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,numberOfInstances:1};function dne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,_at,n),Q.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e._sendTime={},Q.obj(e._sendTime,{mtime:0}),e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"read-only-storage"}},Q.get(t,e,["bindGroupTime"]),Q.setGet(t,e,["device","bindGroupLayoutEntry","label","numberOfInstances","sizeInBytes"]),wat(t,e)}const xat=Q.newInstance(dne,"vtkWebGPUStorageBuffer");var DO={newInstance:xat,extend:dne};const{BufferUsage:Cat}=zf,{vtkErrorMacro:XM}=Q;function Tat(t,e){e.classHierarchy.push("vtkWebGPUUniformBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){XM(`entry named ${n} already exists`);return}e.sortDirty=!0,e._bufferEntryNames.set(n,e.bufferEntries.length),e.bufferEntries.push({name:n,type:r,sizeInBytes:Ga.getByteStrideFromShaderFormat(r),offset:-1,nativeType:Ga.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:Cat.UniformArray,label:e.label};e.UBO=n.getBufferManager().getBuffer(r),e.bindGroupTime.modified(),e.sendDirty=!1}e.sendDirty&&(n.getHandle().queue.writeBuffer(e.UBO.getHandle(),0,e.arrayBuffer,0,e.sizeInBytes),e.sendDirty=!1),e.sendTime.modified()},t.createView=n=>{n in e||(e.arrayBuffer||(e.arrayBuffer=new ArrayBuffer(e.sizeInBytes)),e[n]=Q.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r)=>{t.sortBufferEntries();const a=e._bufferEntryNames.get(n);if(a===void 0){XM(`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){XM(`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
  387. {`];for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];a.push(` ${o.name}: ${o.type},`)}return a.push(`};
  388. @binding(${n}) @group(${r}) var<uniform> ${e.label}: ${e.label}Struct;`),a.join(`
  389. `)}}const Eat={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,bindGroupLayoutEntry:null,bindGroupEntry:null};function hne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Eat,n),Q.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"uniform"}},e.sendTime={},Q.obj(e.sendTime,{mtime:0}),e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),e.sendDirty=!0,e.sortDirty=!0,Q.get(t,e,["binding","bindGroupTime"]),Q.setGet(t,e,["bindGroupLayoutEntry","device","label","sizeInBytes"]),Tat(t,e)}const Mat=Q.newInstance(hne,"vtkWebGPUUniformBuffer");var Ah={newInstance:Mat,extend:hne};const{vtkDebugMacro:Dat}=ru,_z=`
  390. //VTK::Renderer::Dec
  391. //VTK::Mapper::Dec
  392. //VTK::TCoord::Dec
  393. //VTK::RenderEncoder::Dec
  394. //VTK::IOStructs::Dec
  395. @fragment
  396. fn main(
  397. //VTK::IOStructs::Input
  398. )
  399. //VTK::IOStructs::Output
  400. {
  401. var output: fragmentOutput;
  402. var computedColor: vec4<f32> = mapperUBO.BackgroundColor;
  403. //VTK::RenderEncoder::Impl
  404. return output;
  405. }
  406. `,kat=`
  407. fn vecToRectCoord(dir: vec3<f32>) -> vec2<f32> {
  408. var tau: f32 = 6.28318530718;
  409. var pi: f32 = 3.14159265359;
  410. var out: vec2<f32> = vec2<f32>(0.0);
  411. out.x = atan2(dir.z, dir.x) / tau;
  412. out.x += 0.5;
  413. var phix: f32 = length(vec2(dir.x, dir.z));
  414. out.y = atan2(dir.y, phix) / pi + 0.5;
  415. return out;
  416. }
  417. //VTK::Renderer::Dec
  418. //VTK::Mapper::Dec
  419. //VTK::TCoord::Dec
  420. //VTK::RenderEncoder::Dec
  421. //VTK::IOStructs::Dec
  422. @fragment
  423. fn main(
  424. //VTK::IOStructs::Input
  425. )
  426. //VTK::IOStructs::Output
  427. {
  428. var output: fragmentOutput;
  429. var tcoord: vec4<f32> = vec4<f32>(input.vertexVC.xy, -1, 1);
  430. var V: vec4<f32> = normalize(mapperUBO.FSQMatrix * tcoord); // vec2<f32>((input.tcoordVS.x - 0.5) * 2, -(input.tcoordVS.y - 0.5) * 2);
  431. // textureSampleLevel gets rid of some ugly artifacts
  432. var background = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, vecToRectCoord(V.xyz), 0.0);
  433. var computedColor: vec4<f32> = vec4<f32>(background.rgb, 1);
  434. //VTK::RenderEncoder::Impl
  435. return output;
  436. }
  437. `,ZS=new Float64Array(16),xz=new Float64Array(16);function Rat(t){return t.getPositional()?t.getConeAngle()>=90?0:2:1}function Lat(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=[];Ac(o,a,.5*(n[0]+n[1])),ky(i,r,o),cO(o,i,e.stabilizedCenter),nJ(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||(Dat("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();hr(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]=Rat(n[c]),l[f+1]=Math.cos(na(n[c].getConeAngle())),l[f+2]=Math.cos(na(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=Eg.newInstance(),e.clearFSQ.setDevice(n),e.clearFSQ.setPipelineHash("clearfsq"),e.clearFSQ.setFragmentShaderTemplate(_z);const o=Ah.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(kat);const o=Ah.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=Eg.newInstance(),e.clearFSQ.setDevice(n),e.clearFSQ.setPipelineHash("clearfsq"),e.clearFSQ.setFragmentShaderTemplate(_z);const o=Ah.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),Gr(xz,r.normalMatrix),sO(ZS,r.scvc,r.pcsc),sO(ZS,xz,ZS),e.clearFSQ.getUBO().setArray("FSQMatrix",ZS),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 Oat={bindGroup:null,selector:null,renderEncoder:null,recenterThreshold:20,suppressClear:!1,stabilizedCenter:[0,0,0]};function Aat(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Oat,n),sa.extend(t,e,n),e.UBO=Ah.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=DO.newInstance({label:"rendererLightSSBO"}),e.lightTimeString="",e.bindGroup=tne.newInstance({label:"rendererBG"}),e.bindGroup.setBindables([e.UBO,e.SSBO]),e.tmpMat4=Un(new Float64Array(16)),e.stabilizedTime={},Ka(e.stabilizedTime,{mtime:0}),Yi(t,e,["bindGroup","stabilizedTime"]),Qg(t,e,["stabilizedCenter"]),Va(t,e,["renderEncoder","selector","suppressClear","UBO"]),Lat(t,e)}const Nat=Or(Aat,"vtkWebGPURenderer");tc("vtkRenderer",Nat);const{CoordinateSystem:Cz}=Tb;function Vat(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()===Cz.WORLD&&(e.bufferShift[0]-=a[0],e.bufferShift[1]-=a[1],e.bufferShift[2]-=a[2]),Gr(e.keyMatrices.bcwc,r),e.renderable.getIsIdentity()?Un(e.keyMatrices.normalMatrix):(Qa(e.keyMatrices.normalMatrix,e.keyMatrices.bcwc),e.keyMatrices.normalMatrix[3]=0,e.keyMatrices.normalMatrix[7]=0,e.keyMatrices.normalMatrix[11]=0,$i(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),Gr(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix)),la(e.keyMatrices.bcwc,e.keyMatrices.bcwc,[-e.bufferShift[0],-e.bufferShift[1],-e.bufferShift[2]]),e.renderable.getCoordinateSystem()===Cz.WORLD?la(e.keyMatrices.bcsc,e.keyMatrices.bcwc,[-a[0],-a[1],-a[2]]):Qa(e.keyMatrices.bcsc,e.keyMatrices.bcwc),e.keyMatricesTime.modified()}return e.keyMatrices}}const Bat={keyMatricesTime:null,keyMatrices:null,propID:void 0,bufferShift:void 0};function Iat(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Bat,n),sa.extend(t,e,n),e.keyMatricesTime={},Q.obj(e.keyMatricesTime,{mtime:0}),e.keyMatrices={normalMatrix:new Float64Array(16),bcwc:new Float64Array(16),bcsc:new Float64Array(16)},Q.get(t,e,["propID","keyMatricesTime"]),e.bufferShift=[0,0,0,0],Vat(t,e)}const $at=Q.newInstance(Iat);tc("vtkActor",$at);const{CoordinateSystem:Tz}=Tb;function Pat(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()===Tz.WORLD&&(e.bufferShift[0]-=r[0],e.bufferShift[1]-=r[1],e.bufferShift[2]-=r[2]),Un(e.keyMatrices.bcwc),Un(e.keyMatrices.normalMatrix),la(e.keyMatrices.bcwc,e.keyMatrices.bcwc,[-e.bufferShift[0],-e.bufferShift[1],-e.bufferShift[2]]),e.renderable.getCoordinateSystem()===Tz.WORLD?la(e.keyMatrices.bcsc,e.keyMatrices.bcwc,[-r[0],-r[1],-r[2]]):Qa(e.keyMatrices.bcsc,e.keyMatrices.bcwc),e.keyMatricesTime.modified()}return e.keyMatrices}}const Fat={keyMatricesTime:null,keyMatrices:null,propID:void 0,bufferShift:void 0};function zat(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Fat,n),sa.extend(t,e,n),e.keyMatricesTime={},Q.obj(e.keyMatricesTime,{mtime:0}),e.keyMatrices={normalMatrix:new Float64Array(16),bcwc:new Float64Array(16),bcsc:new Float64Array(16)},Q.get(t,e,["propID","keyMatricesTime"]),e.bufferShift=[0,0,0,0],Pat(t,e)}const Uat=Q.newInstance(zat);tc("vtkActor2D",Uat);function Gat(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 Hat={};function Wat(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Hat,n),sa.extend(t,e,n),e.CubeAxesActorHelper=Rte.newCubeAxesActorHelper(),Gat(t,e)}const jat=Or(Wat,"vtkWebGPUCubeAxesActor");tc("vtkCubeAxesActor",jat);const{DisplayLocation:kO}=Yte;function Kat(t,e){e.classHierarchy.push("vtkProperty2D"),t.setDisplayLocationToBackground=()=>t.setDisplayLocation(kO.BACKGROUND),t.setDisplayLocationToForeground=()=>t.setDisplayLocation(kO.FOREGROUND),t.setRepresentationToWireframe=()=>t.setRepresentation(ti.WIREFRAME),t.setRepresentationToSurface=()=>t.setRepresentation(ti.SURFACE),t.setRepresentationToPoints=()=>t.setRepresentation(ti.POINTS),t.getRepresentationAsString=()=>Q.enumToString(ti,e.representation)}const Yat={color:[1,1,1],opacity:1,pointSize:1,lineWidth:1,representation:ti.SURFACE,displayLocation:kO.FOREGROUND};function pne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Yat,n),Q.obj(t,e),Q.setGet(t,e,["opacity","lineWidth","pointSize","displayLocation","representation"]),Q.setGetArray(t,e,["color"],3),Kat(t,e)}const qat=Q.newInstance(pne,"vtkProperty2D");var Xat={newInstance:qat,extend:pne,...Yte};const{BufferUsage:Ba,PrimitiveTypes:Ci}=zf,{Representation:QS}=Jg,{ScalarMode:JS}=za,{CoordinateSystem:Zat}=Tb,{DisplayLocation:Qat}=Xat,Jat=`
  438. //VTK::Renderer::Dec
  439. //VTK::Color::Dec
  440. //VTK::Normal::Dec
  441. //VTK::TCoord::Dec
  442. //VTK::Select::Dec
  443. //VTK::Mapper::Dec
  444. //VTK::IOStructs::Dec
  445. @vertex
  446. fn main(
  447. //VTK::IOStructs::Input
  448. )
  449. //VTK::IOStructs::Output
  450. {
  451. var output : vertexOutput;
  452. var vertex: vec4<f32> = vertexBC;
  453. //VTK::Color::Impl
  454. //VTK::Normal::Impl
  455. //VTK::TCoord::Impl
  456. //VTK::Select::Impl
  457. //VTK::Position::Impl
  458. return output;
  459. }
  460. `,eit=`
  461. struct PBRData {
  462. diffuse: vec3<f32>,
  463. specular: vec3<f32>,
  464. }
  465. // Dot product with the max already in it
  466. fn mdot(a: vec3<f32>, b: vec3<f32>) -> f32 {
  467. return max(0.0, dot(a, b));
  468. }
  469. // Dot product with a max in it that does not allow for negative values
  470. // Physically based rendering is accurate as long as normals are accurate,
  471. // however this is pretty often not the case. In order to prevent negative
  472. // values from ruining light calculations and creating zones of zero light,
  473. // this remapping is used, which smoothly clamps the dot product between
  474. // zero and one while still maintaining a good amount of accuracy.
  475. fn cdot(a: vec3<f32>, b: vec3<f32>) -> f32 {
  476. var d: f32 = max(0.0, dot(a, b));
  477. d = pow((d + 1.0) / 2.0, 2.6);
  478. return d;
  479. }
  480. // Lambertian diffuse model
  481. fn lambertDiffuse(base: vec3<f32>, N: vec3<f32>, L: vec3<f32>) -> vec3<f32> {
  482. var pi: f32 = 3.14159265359;
  483. var NdotL: f32 = mdot(N, L);
  484. NdotL = pow(NdotL, 1.5);
  485. return (base/pi)*NdotL;
  486. }
  487. // Yasuhiro Fujii improvement on the Oren-Nayar model
  488. // https://mimosa-pudica.net/improved-oren-nayar.html
  489. // p is surface color, o is roughness
  490. fn fujiiOrenNayar(p: vec3<f32>, o: f32, N: vec3<f32>, L: vec3<f32>, V: vec3<f32>) -> vec3<f32> {
  491. var invpi: f32 = 0.31830988618; // 1/pi
  492. var o2 = o*o;
  493. var NdotL: f32 = mdot(N, L);
  494. NdotL = pow(NdotL, 1.5); // Less physically accurate, but hides the "seams" between lights better
  495. var NdotV: f32 = mdot(N, V);
  496. var LdotV: f32 = mdot(L, V);
  497. var s: f32 = LdotV - NdotL*NdotV;
  498. var t: f32 = mix(1.0, max(NdotL, NdotV), step(0.0, s)); // Mix with step is the equivalent of an if statement
  499. var A: vec3<f32> = 0.5*(o2 / (o2 + 0.33)) + 0.17*p*(o2 / (o2 + 0.13));
  500. A = invpi*(1 - A);
  501. var B: f32 = 0.45*(o2 / (o2 + 0.09));
  502. B = invpi*B;
  503. return p*NdotL*(A + B*(s/t));
  504. }
  505. // Fresnel portion of BRDF (IOR only, simplified)
  506. fn schlickFresnelIOR(V: vec3<f32>, N: vec3<f32>, ior: f32, k: f32) -> f32 {
  507. var NdotV: f32 = mdot(V, N);
  508. 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
  509. return F0 + (1.0 - F0) * pow((1.0-NdotV), 5.0);
  510. }
  511. // Fresnel portion of BRDF (Color ior, better)
  512. fn schlickFresnelRGB(V: vec3<f32>, N: vec3<f32>, F0: vec3<f32>) -> vec3<f32> {
  513. var NdotV: f32 = mdot(V, N);
  514. return F0 + (1.0 - F0) * pow((1-NdotV), 5.0);
  515. }
  516. // Normal portion of BRDF
  517. // https://learnopengl.com/PBR/Theory
  518. // Trowbridge-Reitz GGX functions: normal, halfway, roughness^2
  519. fn trGGX(N: vec3<f32>, H: vec3<f32>, a: f32) -> f32 {
  520. var pi: f32 = 3.14159265359;
  521. var a2: f32 = a*a;
  522. var NdotH = mdot(N, H);
  523. var NdotH2 = NdotH*NdotH;
  524. var denom: f32 = NdotH2 * (a2 - 1.0) + 1.0;
  525. return a2 / max((pi*denom*denom), 0.000001);
  526. }
  527. // A VERY bad approximation of anisotropy. Real anisotropic calculations require tangent and bitangent
  528. fn anisotrophicTrGGX(N: vec3<f32>, H: vec3<f32>, O: vec3<f32>, s: f32, a: f32) -> f32 {
  529. var Op: vec3<f32> = (rendererUBO.WCVCNormals * vec4<f32>(normalize(O) * s, 0.)).xyz;
  530. var ggx1: f32 = trGGX(N + Op*s, H, a);
  531. var ggx2: f32 = trGGX(N - Op*s, H, a);
  532. return (0.5 * ggx1 + 0.5 * ggx2);
  533. }
  534. // Geometry portion of BRDF
  535. fn schlickGGX(N: vec3<f32>, X: vec3<f32>, k: f32) -> f32 {
  536. var NdotX = cdot(N, X);
  537. return NdotX / max(0.000001, (NdotX*(1.0-k) + k));
  538. }
  539. fn smithSurfaceRoughness(N: vec3<f32>, V: vec3<f32>, L: vec3<f32>, k: f32) -> f32 {
  540. var ggx1: f32 = min(1.0, schlickGGX(N, V, k));
  541. var ggx2: f32 = min(1.0, schlickGGX(N, L, k));
  542. return ggx1*ggx2;
  543. }
  544. // BRDF Combination
  545. fn cookTorrance(D: f32, F: f32, G: f32, N: vec3<f32>, V: vec3<f32>, L: vec3<f32>) -> f32 {
  546. var num: f32 = D*F*G;
  547. var denom: f32 = 4*cdot(V, N)*cdot(L, N);
  548. return num / max(denom, 0.000001);
  549. }
  550. // Different lighting calculations for different light sources
  551. fn calcDirectionalLight(N: vec3<f32>, V: vec3<f32>, ior: f32, roughness: f32, metallic: f32, direction: vec3<f32>, color: vec3<f32>, base: vec3<f32>) -> PBRData {
  552. var L: vec3<f32> = normalize(direction); // Light Vector
  553. var H: vec3<f32> = normalize(L + V); // Halfway Vector
  554. var alpha = roughness*roughness;
  555. var k: f32 = alpha*alpha / 2;
  556. var D: f32 = trGGX(N, H, alpha); // Distribution
  557. // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
  558. var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
  559. var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L); // Fresnel term is replaced with 1 because it is added later
  560. var incoming: vec3<f32> = color;
  561. var angle: f32 = mdot(L, N);
  562. angle = pow(angle, 1.5);
  563. var specular: vec3<f32> = brdf*incoming*angle;
  564. // 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
  565. // control property for the diffuse vs specular roughness
  566. var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
  567. // Stores the specular and diffuse separately to allow for finer post processing
  568. var out = PBRData(diffuse, specular);
  569. return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
  570. }
  571. // TODO: find some way to reduce the number of arguments going in here
  572. 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 {
  573. var L: vec3<f32> = normalize(position - fragPos); // Light Vector
  574. var H: vec3<f32> = normalize(L + V); // Halfway Vector
  575. var dist = distance(position, fragPos);
  576. var alpha = roughness*roughness;
  577. var k: f32 = alpha*alpha / 2.0; // could also be pow(alpha + 1.0, 2) / 8
  578. var D: f32 = trGGX(N, H, alpha); // Distribution
  579. // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
  580. var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
  581. var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L);
  582. var incoming: vec3<f32> = color * (1.0 / (dist*dist));
  583. var angle: f32 = mdot(L, N);
  584. angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" bewteen light sources
  585. var specular: vec3<f32> = brdf*incoming*angle;
  586. var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
  587. // Stores the specular and diffuse separately to allow for finer post processing
  588. // Could also be done (propably more properly) with a struct
  589. var out = PBRData(diffuse, specular);
  590. return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
  591. }
  592. // For a reason unknown to me, spheres dont seem to behave propperly with head-on spot lights
  593. 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 {
  594. var L: vec3<f32> = normalize(position - fragPos);
  595. var H: vec3<f32> = normalize(L + V); // Halfway Vector
  596. var dist = distance(position, fragPos);
  597. var alpha = roughness*roughness;
  598. var k: f32 = alpha*alpha / 2.0; // could also be pow(alpha + 1.0, 2) / 8
  599. var D: f32 = trGGX(N, H, alpha); // Distribution
  600. // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
  601. var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
  602. var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L);
  603. // Cones.x is the inner phi and cones.y is the outer phi
  604. var theta: f32 = mdot(normalize(direction), L);
  605. var epsilon: f32 = cones.x - cones.y;
  606. var intensity: f32 = (theta - cones.y) / epsilon;
  607. intensity = clamp(intensity, 0.0, 1.0);
  608. intensity /= dist*dist;
  609. var incoming: vec3<f32> = color * intensity;
  610. var angle: f32 = mdot(L, N);
  611. angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" bewteen light sources
  612. var specular: vec3<f32> = brdf*incoming*angle;
  613. var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
  614. // Stores the specular and diffuse separately to allow for finer post processing
  615. // Could also be done (propably more properly) with a struct
  616. var out = PBRData(diffuse, specular);
  617. return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
  618. }
  619. // Environment mapping stuff
  620. // Takes in a vector and converts it to an equivalent coordinate in a rectilinear texture. Should be replaced with cubemaps at some point
  621. fn vecToRectCoord(dir: vec3<f32>) -> vec2<f32> {
  622. var tau: f32 = 6.28318530718;
  623. var pi: f32 = 3.14159265359;
  624. var out: vec2<f32> = vec2<f32>(0.0);
  625. out.x = atan2(dir.z, dir.x) / tau;
  626. out.x += 0.5;
  627. var phix: f32 = length(vec2(dir.x, dir.z));
  628. out.y = atan2(dir.y, phix) / pi + 0.5;
  629. return out;
  630. }
  631. //VTK::Renderer::Dec
  632. //VTK::Color::Dec
  633. //VTK::TCoord::Dec
  634. // optional surface normal declaration
  635. //VTK::Normal::Dec
  636. //VTK::Select::Dec
  637. //VTK::RenderEncoder::Dec
  638. //VTK::Mapper::Dec
  639. //VTK::IOStructs::Dec
  640. @fragment
  641. fn main(
  642. //VTK::IOStructs::Input
  643. )
  644. //VTK::IOStructs::Output
  645. {
  646. var output : fragmentOutput;
  647. // Temporary ambient, diffuse, and opacity
  648. var ambientColor: vec4<f32> = mapperUBO.AmbientColor;
  649. var diffuseColor: vec4<f32> = mapperUBO.DiffuseColor;
  650. var opacity: f32 = mapperUBO.Opacity;
  651. // This should be declared somewhere else
  652. var _diffuseMap: vec4<f32> = vec4<f32>(1.0);
  653. var _roughnessMap: vec4<f32> = vec4<f32>(1.0);
  654. var _metallicMap: vec4<f32> = vec4<f32>(1.0);
  655. 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
  656. var _ambientOcclusionMap: vec4<f32> = vec4<f32>(1.);
  657. var _emissionMap: vec4<f32> = vec4<f32>(0.);
  658. //VTK::Color::Impl
  659. //VTK::TCoord::Impl
  660. //VTK::Normal::Impl
  661. var computedColor: vec4<f32> = vec4<f32>(diffuseColor.rgb, 1.0);
  662. //VTK::Light::Impl
  663. //VTK::Select::Impl
  664. if (computedColor.a == 0.0) { discard; };
  665. //VTK::Position::Impl
  666. //VTK::RenderEncoder::Impl
  667. return output;
  668. }
  669. `;function Ez(t){return t.indexOf("edge")>=0}function tit(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!==Zat.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()===Qat.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===Ci.Verts?!1:e.primitiveType===Ci.Triangles||e.primitiveType===Ci.TriangleStrips?r===QS.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=Ln.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=Ln.substitute(o,"//VTK::Position::Impl",["pCoord = vec4<f32>(pCoord.xyz/pCoord.w, 1.0);","pCoord.z = mapperUBO.ZValue;","//VTK::Position::Impl"]).result)):(o=Ln.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=Ln.substitute(o,"//VTK::Position::Impl",[" pCoord.z = mapperUBO.ZValue;","//VTK::Position::Impl"]).result)),t.haveWideLines()&&(i.addBuiltinInput("u32","@builtin(instance_index) instanceIndex"),o=Ln.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=Ln.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=Ln.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=Ln.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=Ln.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&&!Ez(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=Ln.substitute(l,"//VTK::Light::Impl",c).result,s.setCode(l)}else l=Ln.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(Ez(n)){const u=r.getShaderDescription("fragment");let c=u.getCode();c=Ln.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=Ln.substitute(s,"//VTK::Color::Impl",[" output.color = colorVI;"]).result,o.setCode(s);const l=r.getShaderDescription("fragment");s=l.getCode(),s=Ln.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,p,v,g,y,m,b,w,C,x,_,T,M,E,k,R,L,A,V,G;if(!a.hasAttribute("tcoord"))return;const i=r.getShaderDescription("vertex"),o=a.getBuffer("tcoord"),s=Ga.getNumberOfComponentsFromBufferFormat(o.getArrayInformation()[0].format);let l=i.getCode();i.addOutput(`vec${s}<f32>`,"tcoordVS"),l=Ln.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=I=>I?I.getDimensionality()===s:!1,d=[];((v=(p=(h=c.getProperty()).getDiffuseTexture)==null?void 0:p.call(h))!=null&&v.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);"),(w=(b=(m=c.getProperty()).getRoughnessTexture)==null?void 0:b.call(m))!=null&&w.getImageLoaded()&&f(c.getProperty().getRoughnessTexture())&&d.push("_roughnessMap = textureSample(RoughnessTexture, RoughnessTextureSampler, input.tcoordVS);"),(_=(x=(C=c.getProperty()).getMetallicTexture)==null?void 0:x.call(C))!=null&&_.getImageLoaded()&&f(c.getProperty().getMetallicTexture())&&d.push("_metallicMap = textureSample(MetallicTexture, MetallicTextureSampler, input.tcoordVS);"),(E=(M=(T=c.getProperty()).getNormalTexture)==null?void 0:M.call(T))!=null&&E.getImageLoaded()&&f(c.getProperty().getNormalTexture())&&d.push("_normalMap = textureSample(NormalTexture, NormalTextureSampler, input.tcoordVS);"),(L=(R=(k=c.getProperty()).getAmbientOcclusionTexture)==null?void 0:R.call(k))!=null&&L.getImageLoaded()&&f(c.getProperty().getAmbientOcclusionTexture())&&d.push("_ambientOcclusionMap = textureSample(AmbientOcclusionTexture, AmbientOcclusionTextureSampler, input.tcoordVS);"),(G=(V=(A=c.getProperty()).getEmissionTexture)==null?void 0:V.call(A))!=null&&G.getImageLoaded()&&f(c.getProperty().getEmissionTexture())&&d.push("_emissionMap = textureSample(EmissionTexture, EmissionTextureSampler, input.tcoordVS);"),l=Ln.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=Ln.substitute(o,"//VTK::Select::Impl",[" var compositeID: u32 = 0u;"]).result,i.setCode(o)}},e.shaderReplacements.set("replaceShaderSelect",t.replaceShaderSelect),t.getUsage=(n,r)=>n===QS.POINTS||r===Ci.Points?Ba.Verts:r===Ci.Lines?Ba.Lines:n===QS.WIREFRAME?r===Ci.Triangles?Ba.LinesFromTriangles:Ba.LinesFromStrips:r===Ci.Triangles?Ba.Triangles:r===Ci.TriangleStrips?Ba.Strips:r===Ci.TriangleEdges?Ba.LinesFromTriangles:Ba.LinesFromStrips,t.getHashFromUsage=n=>`pt${n}`,t.getTopologyFromUsage=n=>{switch(n){case Ba.Triangles:return"triangle-list";case Ba.Verts:return"point-list";case Ba.Lines:default:return"line-list"}},t.buildVertexInput=()=>{var v,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===Ci.TriangleEdges&&(l=!0,o=QS.WIREFRAME);const u=e.vertexInput,c=n.getPoints();let f;if(r){const y={hash:`R${o}P${a}${r.getMTime()}`,usage:Ba.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:Ba.PointArray,format:"float32x4",dataArray:c,indexBuffer:f,shift:y,packExtra:!0},b=s.getBufferManager().getBuffer(m);u.addBuffer(b,["vertexBC"])}else u.removeBufferIfPresent("vertexBC");const d=t.getUsage(o,a);if(e._usesCellNormals=!1,!e.is2D&&(d===Ba.Triangles||d===Ba.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=Ba.PointArray;const b=s.getBufferManager().getBuffer(m);u.addBuffer(b,["normalMC"])}else if(a===Ci.Triangles){e._usesCellNormals=!0,m.hash=`PFN${c.getMTime()}I${f.getMTime()}snorm8x4`,m.dataArray=c,m.cells=r,m.usage=Ba.NormalsFromPoints;const b=s.getBufferManager().getBuffer(m);u.addBuffer(b,["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 b=!1;(m===JS.USE_CELL_DATA||m===JS.USE_CELL_FIELD_DATA||m===JS.USE_FIELD_DATA||!n.getPointData().getScalars())&&m!==JS.USE_POINT_FIELD_DATA&&y&&(b=!0);const w={usage:Ba.PointArray,format:"unorm8x4",hash:`${b}${y.getMTime()}I${f.getMTime()}unorm8x4`,dataArray:y,indexBuffer:f,cellData:b,cellOffset:0},C=s.getBufferManager().getBuffer(w);u.addBuffer(C,["colorVI"]),h=!0}}h||u.removeBufferIfPresent("colorVI");let p=null;if((g=(v=e.renderable).getInterpolateScalarsBeforeMapping)!=null&&g.call(v)&&e.renderable.getColorCoordinates()?p=e.renderable.getColorCoordinates():p=n.getPointData().getTCoords(),p&&!l){const y=s.getBufferManager().getBufferForPointArray(p,u.getIndexBuffer());u.addBuffer(y,["tcoord"])}else u.removeBufferIfPresent("tcoord")},t.updateTextures=()=>{var l,u,c,f,d,h,p,v,g,y,m,b,w,C,x;const n=[],r=[],a=(u=(l=e.renderable).getColorTextureMap)==null?void 0:u.call(l);a&&(e.colorTexture||(e.colorTexture=Eb.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 _=["Diffuse",i.getProperty().getDiffuseTexture()];s.push(_)}if(i.getTextures()[0]){const _=["Diffuse",i.getTextures()[0]];s.push(_)}if(e.colorTexture){const _=["Diffuse",e.colorTexture];s.push(_)}if((h=(d=i.getProperty()).getRoughnessTexture)!=null&&h.call(d)){const _=["Roughness",i.getProperty().getRoughnessTexture()];s.push(_)}if((v=(p=i.getProperty()).getMetallicTexture)!=null&&v.call(p)){const _=["Metallic",i.getProperty().getMetallicTexture()];s.push(_)}if((y=(g=i.getProperty()).getNormalTexture)!=null&&y.call(g)){const _=["Normal",i.getProperty().getNormalTexture()];s.push(_)}if((b=(m=i.getProperty()).getAmbientOcclusionTexture)!=null&&b.call(m)){const _=["AmbientOcclusion",i.getProperty().getAmbientOcclusionTexture()];s.push(_)}if((C=(w=i.getProperty()).getEmissionTexture)!=null&&C.call(w)){const _=["Emission",i.getProperty().getEmissionTexture()];s.push(_)}if((x=o.getEnvironmentTexture)!=null&&x.call(o)){const _=["Environment",o.getEnvironmentTexture()];s.push(_)}for(let _=0;_<s.length;_++)(s[_][1].getInputData()||s[_][1].getJsImageData()||s[_][1].getCanvas())&&r.push(s[_]),s[_][1].getImage()&&s[_][1].getImageLoaded()&&r.push(s[_]);for(let _=0;_<r.length;_++){const T=r[_][1],M=r[_][0],E=e.device.getTextureManager().getTextureForVTKTexture(T);if(E.getReady()){let k=!1;for(let R=0;R<e.textures.length;R++)e.textures[R]===E&&(k=!0,n[R]=!0);if(!k){n[e.textures.length]=!0;const R=E.createView(`${M}Texture`);e.textures.push(E),e.textureViews.push(R);const L=T.getInterpolate()?"linear":"nearest";let A=null;!A&&T.getEdgeClamp()&&T.getRepeat()&&(A="mirror-repeat"),!A&&T.getEdgeClamp()&&(A="clamp-to-edge"),!A&&T.getRepeat()&&(A="repeat"),M!=="Environment"?R.addSampler(e.device,{addressModeU:A,addressModeV:A,addressModeW:A,minFilter:L,magFilter:L}):R.addSampler(e.device,{addressModeU:"repeat",addressModeV:"clamp-to-edge",addressModeW:"repeat",minFilter:L,magFilter:L,mipmapFilter:"linear"})}}}for(let _=e.textures.length-1;_>=0;_--)n[_]||(e.textures.splice(_,1),e.textureViews.splice(_,1))},t.computePipelineHash=()=>{let n=`pd${e.useRendererMatrix?"r":""}${e.forceZValue?"z":""}`;if(e.primitiveType===Ci.TriangleEdges||e.primitiveType===Ci.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=Ga.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!==Ci.TriangleEdges&&e.primitiveType!==Ci.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 nit={is2D:!1,cellArray:null,currentInput:null,cellOffset:0,primitiveType:0,colorTexture:null,renderEncoder:null,textures:null};function vne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nit,n),pB.extend(t,e,n),e.fragmentShaderTemplate=eit,e.vertexShaderTemplate=Jat,e._tmpMat3=fp(new Float64Array(9)),e._tmpMat4=Un(new Float64Array(16)),e.UBO=Ah.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"),Va(t,e,["cellArray","currentInput","cellOffset","is2D","primitiveType","renderEncoder"]),e.textures=[],tit(t,e)}const rit=Or(vne,"vtkWebGPUCellArrayMapper");var gne={newInstance:rit,extend:vne};const{PrimitiveTypes:ew}=zf;function ait(t,e){e.classHierarchy.push("vtkWebGPUPolyDataMapper"),t.createCellArrayMapper=()=>gne.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=ew.Points;o<=ew.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=ew.TriangleEdges;o<=ew.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 iit={primitives:null};function yne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iit,n),sa.extend(t,e,n),e.primitives=[],ait(t,e)}const mne=Or(yne,"vtkWebGPUPolyDataMapper");var J3t={newInstance:mne,extend:yne};tc("vtkMapper",mne);const{PrimitiveTypes:Mz}=zf;function oit(t,e){e.classHierarchy.push("vtkWebGPUPolyDataMapper2D"),t.createCellArrayMapper=()=>gne.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=Mz.Points;o<=Mz.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 sit(t){return{primitives:[],...t}}function lit(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,sit(n)),sa.extend(t,e,n),e.primitives=[],oit(t,e)}const uit=Or(lit,"vtkWebGPUPolyDataMapper2D");tc("vtkMapper2D",uit);function cit(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 fit={};function dit(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,fit,n),sa.extend(t,e,n),e.scalarBarActorHelper=Mb.newScalarBarActorHelper(),cit(t,e)}const hit=Or(dit,"vtkWebGPUScalarBarActor");tc("vtkScalarBarActor",hit);function pit(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 vit={device:null,handle:null,label:null,options:null};function bne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,vit,n),Q.obj(t,e),e.options={},e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,sampler:{}},e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),Q.get(t,e,["bindGroupTime","handle","options"]),Q.setGet(t,e,["bindGroupLayoutEntry","device","label"]),pit(t,e)}const git=Q.newInstance(bne);var vB={newInstance:git,extend:bne};function yit(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=Ga.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=Ga.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=vB.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 mit={texture:null,handle:null,sampler:null,label:null};function Sne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mit,n),Q.obj(t,e),e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d"}},e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),Q.get(t,e,["bindGroupTime","texture"]),Q.setGet(t,e,["bindGroupLayoutEntry","label","sampler"]),yit(t,e)}const bit=Q.newInstance(Sne);var wne={newInstance:bit,extend:Sne};const{BufferUsage:Dz}=zf;function Sit(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=Ga.getDetailsFromTextureFormat(e.format);let i=e.width*a.stride;const o=(l,u,c)=>{const f=l.length/(u*c)*l.BYTES_PER_ELEMENT,d=a.elementSize===2&&a.sampleType==="float";if(d||f%256){const h=l,p=f/h.BYTES_PER_ELEMENT,v=a.elementSize,g=256*Math.floor((p*v+255)/256),y=g/v,m=Q.newTypedArray(d?"Uint16Array":h.constructor.name,y*u*c);for(let b=0;b<u*c;b++)if(d)for(let w=0;w<p;w++)m[b*y+w]=Is.toHalf(h[b*p+w]);else m.set(h.subarray(b*p,(b+1)*p),b*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=Eb.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:Dz.Texture},p=e.device.getBufferManager().getBuffer(h);s.copyBufferToTexture({buffer:p.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:Dz.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=Ga.getDetailsFromTextureFormat(e.format);return n.elementSize===2&&n.sampleType==="float"?1:255},t.getNumberOfComponents=()=>Ga.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=wne.newInstance({label:n});return a.create(t,r),a}}const wit={device:null,handle:null,buffer:null,ready:!1,label:null};function _ne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,wit,n),Q.obj(t,e),Q.get(t,e,["handle","ready","width","height","depth","format","usage"]),Q.setGet(t,e,["device","label"]),Sit(t,e)}const _it=Q.newInstance(_ne);var zl={newInstance:_it,extend:_ne};function xit(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 Cit={};function Tit(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Cit,n),sa.extend(t,e,n),xit(t,e)}const Eit=Q.newInstance(Tit,"vtkWebGPUPixelSpaceCallbackMapper");tc("vtkPixelSpaceCallbackMapper",Eit);const{vtkDebugMacro:tw}=Q;function Mit(t,e){e.classHierarchy.push("vtkCamera");const n=new Float64Array(3),r=new Float64Array([0,0,-1]),a=new Float64Array([0,1,0]),i=Un(new Float64Array(16)),o=Un(new Float64Array(16)),s=new Float64Array(3),l=new Float64Array(3),u=new Float64Array(3),c=Un(new Float64Array(16)),f=Un(new Float64Array(16)),d=new Float64Array(3),h=new Float64Array(3);function p(){e.viewPlaneNormal[0]=-e.directionOfProjection[0],e.viewPlaneNormal[1]=-e.directionOfProjection[1],e.viewPlaneNormal[2]=-e.directionOfProjection[2]}t.orthogonalizeViewUp=()=>{const v=t.getViewMatrix();e.viewUp[0]=v[4],e.viewUp[1]=v[5],e.viewUp[2]=v[6],t.modified()},t.setPosition=(v,g,y)=>{v===e.position[0]&&g===e.position[1]&&y===e.position[2]||(e.position[0]=v,e.position[1]=g,e.position[2]=y,t.computeDistance(),t.modified())},t.setFocalPoint=(v,g,y)=>{v===e.focalPoint[0]&&g===e.focalPoint[1]&&y===e.focalPoint[2]||(e.focalPoint[0]=v,e.focalPoint[1]=g,e.focalPoint[2]=y,t.computeDistance(),t.modified())},t.setDistance=v=>{if(e.distance===v)return;e.distance=v,e.distance<1e-20&&(e.distance=1e-20,tw("Distance is set to minimum."));const g=e.directionOfProjection;e.focalPoint[0]=e.position[0]+g[0]*e.distance,e.focalPoint[1]=e.position[1]+g[1]*e.distance,e.focalPoint[2]=e.position[2]+g[2]*e.distance,t.modified()},t.computeDistance=()=>{const v=e.focalPoint[0]-e.position[0],g=e.focalPoint[1]-e.position[1],y=e.focalPoint[2]-e.position[2];if(e.distance=Math.sqrt(v*v+g*g+y*y),e.distance<1e-20){e.distance=1e-20,tw("Distance is set to minimum.");const m=e.directionOfProjection;e.focalPoint[0]=e.position[0]+m[0]*e.distance,e.focalPoint[1]=e.position[1]+m[1]*e.distance,e.focalPoint[2]=e.position[2]+m[2]*e.distance}e.directionOfProjection[0]=v/e.distance,e.directionOfProjection[1]=g/e.distance,e.directionOfProjection[2]=y/e.distance,p()},t.dolly=v=>{if(v<=0)return;const g=e.distance/v;t.setPosition(e.focalPoint[0]-g*e.directionOfProjection[0],e.focalPoint[1]-g*e.directionOfProjection[1],e.focalPoint[2]-g*e.directionOfProjection[2])},t.roll=v=>{const g=e.position,y=e.focalPoint,m=e.viewUp,b=new Float64Array([m[0],m[1],m[2],0]);Un(c);const w=new Float64Array([y[0]-g[0],y[1]-g[1],y[2]-g[2]]);Es(c,c,na(v),w),$S(b,b,c),e.viewUp[0]=b[0],e.viewUp[1]=b[1],e.viewUp[2]=b[2],t.modified()},t.azimuth=v=>{const g=e.focalPoint;Un(f),la(f,f,g),Es(f,f,na(v),e.viewUp),la(f,f,[-g[0],-g[1],-g[2]]),hr(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.yaw=v=>{const g=e.position;Un(f),la(f,f,g),Es(f,f,na(v),e.viewUp),la(f,f,[-g[0],-g[1],-g[2]]),hr(h,e.focalPoint,f),t.setFocalPoint(h[0],h[1],h[2])},t.elevation=v=>{const g=e.focalPoint,y=t.getViewMatrix(),m=[-y[0],-y[1],-y[2]];Un(f),la(f,f,g),Es(f,f,na(v),m),la(f,f,[-g[0],-g[1],-g[2]]),hr(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.pitch=v=>{const g=e.position,y=t.getViewMatrix(),m=[y[0],y[1],y[2]];Un(f),la(f,f,g),Es(f,f,na(v),m),la(f,f,[-g[0],-g[1],-g[2]]),hr(h,e.focalPoint,f),t.setFocalPoint(...h)},t.zoom=v=>{v<=0||(e.parallelProjection?e.parallelScale/=v:e.viewAngle/=v,t.modified())},t.translate=(v,g,y)=>{const m=[v,g,y];p2(e.position,m,e.position),p2(e.focalPoint,m,e.focalPoint),t.computeDistance(),t.modified()},t.applyTransform=v=>{const g=[...e.viewUp,1],y=[],m=[],b=[];g[0]+=e.position[0],g[1]+=e.position[1],g[2]+=e.position[2],$S(y,[...e.position,1],v),$S(m,[...e.focalPoint,1],v),$S(b,g,v),b[0]-=y[0],b[1]-=y[1],b[2]-=y[2],t.setPosition(...y.slice(0,3)),t.setFocalPoint(...m.slice(0,3)),t.setViewUp(...b.slice(0,3))},t.getThickness=()=>e.clippingRange[1]-e.clippingRange[0],t.setThickness=v=>{let g=v;g<1e-20&&(g=1e-20,tw("Thickness is set to minimum.")),t.setClippingRange(e.clippingRange[0],e.clippingRange[0]+g)},t.setThicknessFromFocalPoint=v=>{let g=v;g<1e-20&&(g=1e-20,tw("Thickness is set to minimum.")),t.setClippingRange(e.distance-g/2,e.distance+g/2)},t.setRoll=v=>{},t.getRoll=()=>{},t.setObliqueAngles=(v,g)=>{},t.getOrientation=()=>{},t.getOrientationWXYZ=()=>{},t.getFrustumPlanes=v=>{},t.getCameraLightTransformMatrix=v=>(Qa(v,e.cameraLightTransform),v),t.computeCameraLightTransform=()=>{Qa(i,t.getViewMatrix()),$i(i,i),HQ(o,[e.distance,e.distance,e.distance]),Ha(i,i,o),Un(e.cameraLightTransform),la(e.cameraLightTransform,i,[0,0,-1])},t.deepCopy=v=>{},t.physicalOrientationToWorldDirection=v=>{const g=L6(v[0],v[1],v[2],v[3]),y=Yh(),m=L6(0,0,1,0);return kqe(y,g),R6(m,g,m),R6(m,m,y),[m[0],m[1],m[2]]},t.getPhysicalToWorldMatrix=v=>{t.getWorldToPhysicalMatrix(v),$i(v,v)},t.getWorldToPhysicalMatrix=v=>{Un(v);const g=[3];Xl(e.physicalViewNorth,e.physicalViewUp,g),v[0]=g[0],v[1]=g[1],v[2]=g[2],v[4]=e.physicalViewUp[0],v[5]=e.physicalViewUp[1],v[6]=e.physicalViewUp[2],v[8]=-e.physicalViewNorth[0],v[9]=-e.physicalViewNorth[1],v[10]=-e.physicalViewNorth[2],Gr(v,v),Dl(s,1/e.physicalScale,1/e.physicalScale,1/e.physicalScale),Kh(v,v,s),la(v,v,e.physicalTranslation)},t.computeViewParametersFromViewMatrix=v=>{$i(i,v),hr(s,n,i),t.computeDistance();const g=e.distance;t.setPosition(s[0],s[1],s[2]),hr(l,r,i),qc(l,l,s),lf(l,l),t.setDirectionOfProjection(l[0],l[1],l[2]),hr(u,a,i),qc(u,u,s),lf(u,u),t.setViewUp(u[0],u[1],u[2]),t.setDistance(g)},t.computeViewParametersFromPhysicalMatrix=v=>{t.getWorldToPhysicalMatrix(i),Ha(i,v,i),t.computeViewParametersFromViewMatrix(i)},t.setViewMatrix=v=>{e.viewMatrix=v,e.viewMatrix&&(Qa(i,e.viewMatrix),t.computeViewParametersFromViewMatrix(i),Gr(e.viewMatrix,e.viewMatrix))},t.getViewMatrix=()=>{if(e.viewMatrix)return e.viewMatrix;JQ(i,e.position,e.focalPoint,e.viewUp),Gr(i,i);const v=new Float64Array(16);return Qa(v,i),v},t.setProjectionMatrix=v=>{e.projectionMatrix=v},t.getProjectionMatrix=(v,g,y)=>{const m=new Float64Array(16);if(Un(m),e.projectionMatrix){const C=1/e.physicalScale;return Dl(s,C,C,C),Qa(m,e.projectionMatrix),Kh(m,m,s),Gr(m,m),m}Un(i);const b=e.clippingRange[1]-e.clippingRange[0],w=[e.clippingRange[0]+(g+1)*b/2,e.clippingRange[0]+(y+1)*b/2];if(e.parallelProjection){const C=e.parallelScale*v,x=e.parallelScale,_=(e.windowCenter[0]-1)*C,T=(e.windowCenter[0]+1)*C,M=(e.windowCenter[1]-1)*x,E=(e.windowCenter[1]+1)*x;QQ(i,_,T,M,E,w[0],w[1]),Gr(i,i)}else{if(e.useOffAxisProjection)throw new Error("Off-Axis projection is not supported at this time");{const C=Math.tan(na(e.viewAngle)/2);let x,_;e.useHorizontalViewAngle===!0?(x=e.clippingRange[0]*C,_=e.clippingRange[0]*C/v):(x=e.clippingRange[0]*C*v,_=e.clippingRange[0]*C);const T=(e.windowCenter[0]-1)*x,M=(e.windowCenter[0]+1)*x,E=(e.windowCenter[1]-1)*_,k=(e.windowCenter[1]+1)*_,R=w[0],L=w[1];i[0]=2*R/(M-T),i[5]=2*R/(k-E),i[2]=(T+M)/(M-T),i[6]=(E+k)/(k-E),i[10]=-(R+L)/(L-R),i[14]=-1,i[11]=-2*R*L/(L-R),i[15]=0}}return Qa(m,i),m},t.getCompositeProjectionMatrix=(v,g,y)=>{const m=t.getViewMatrix(),b=t.getProjectionMatrix(v,g,y);return Ha(b,m,b),b},t.setDirectionOfProjection=(v,g,y)=>{if(e.directionOfProjection[0]===v&&e.directionOfProjection[1]===g&&e.directionOfProjection[2]===y)return;e.directionOfProjection[0]=v,e.directionOfProjection[1]=g,e.directionOfProjection[2]=y;const m=e.directionOfProjection;e.focalPoint[0]=e.position[0]+m[0]*e.distance,e.focalPoint[1]=e.position[1]+m[1]*e.distance,e.focalPoint[2]=e.position[2]+m[2]*e.distance,p()},t.setDeviceAngles=(v,g,y,m)=>{const b=[3];Xl(e.physicalViewNorth,e.physicalViewUp,b);const w=Un(new Float64Array(16));Es(w,w,na(v),e.physicalViewUp),Es(w,w,na(g),b),Es(w,w,na(y),e.physicalViewNorth),Es(w,w,na(-m),e.physicalViewUp);const C=new Float64Array([-e.physicalViewUp[0],-e.physicalViewUp[1],-e.physicalViewUp[2]]),x=new Float64Array(e.physicalViewNorth);hr(C,C,w),hr(x,x,w),t.setDirectionOfProjection(C[0],C[1],C[2]),t.setViewUp(x[0],x[1],x[2]),t.modified()},t.setOrientationWXYZ=(v,g,y,m)=>{const b=Un(new Float64Array(16));if(v!==0&&(g!==0||y!==0||m!==0)){const x=na(v),_=Yh();NV(_,[g,y,m],x),OV(b,_)}const w=new Float64Array(3);hr(w,[0,0,-1],b);const C=new Float64Array(3);hr(C,[0,1,0],b),t.setDirectionOfProjection(...w),t.setViewUp(...C),t.modified()},t.computeClippingRange=v=>{let g=null,y=null;g=e.viewPlaneNormal,y=e.position;const m=-g[0],b=-g[1],w=-g[2],C=-(m*y[0]+b*y[1]+w*y[2]),x=[m*v[0]+b*v[2]+w*v[4]+C,1e-18];for(let _=0;_<2;_++)for(let T=0;T<2;T++)for(let M=0;M<2;M++){const E=m*v[M]+b*v[2+T]+w*v[4+_]+C;x[0]=E<x[0]?E:x[0],x[1]=E>x[1]?E:x[1]}return x}}const Dit={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:DV(),physicalTranslation:[0,0,0],physicalScale:1,physicalViewUp:[0,1,0],physicalViewNorth:[0,0,-1]};function xne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Dit,n),Q.obj(t,e),Q.get(t,e,["distance"]),Q.setGet(t,e,["parallelProjection","useHorizontalViewAngle","viewAngle","parallelScale","useOffAxisProjection","freezeFocalPoint","physicalScale"]),Q.getArray(t,e,["directionOfProjection","viewPlaneNormal","position","focalPoint"]),Q.setGetArray(t,e,["clippingRange","windowCenter"],2),Q.setGetArray(t,e,["viewUp","screenBottomLeft","screenBottomRight","screenTopRight","physicalTranslation","physicalViewUp","physicalViewNorth"],3),Mit(t,e)}const kit=Q.newInstance(xne,"vtkCamera");var Rit={newInstance:kit,extend:xne};const Lit=["HeadLight","CameraLight","SceneLight"];function Oit(t,e){e.classHierarchy.push("vtkLight");const n=new Float64Array(3);t.getTransformedPosition=()=>(e.transformMatrix?hr(n,e.position,e.transformMatrix):Dl(n,e.position[0],e.position[1],e.position[2]),n),t.getTransformedFocalPoint=()=>(e.transformMatrix?hr(n,e.focalPoint,e.transformMatrix):Dl(n,e.focalPoint[0],e.focalPoint[1],e.focalPoint[2]),n),t.getDirection=()=>(e.directionMTime<e.mtime&&(cO(e.direction,e.focalPoint,e.position),Xh(e.direction),e.directionMTime=e.mtime),e.direction),t.setDirection=r=>{const a=new Float64Array(3);cO(a,e.position,r),e.focalPoint=a},t.setDirectionAngle=(r,a)=>{const i=na(r),o=na(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 Ait={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 Cne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ait,n),Q.obj(t,e),Q.setGet(t,e,["intensity","switch","positional","exponent","coneAngle","coneFalloff","transformMatrix","lightType","shadowAttenuation","attenuationValues"]),Q.setGetArray(t,e,["color","position","focalPoint","attenuationValues"],3),Oit(t,e)}const Nit=Q.newInstance(Cne,"vtkLight");var Vit={newInstance:Nit,extend:Cne,LIGHT_TYPES:Lit};const{vtkErrorMacro:sx}=Q;function Bit(t){return()=>sx(`vtkViewport::${t} - NOT IMPLEMENTED`)}function Iit(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=()=>sx("call displayToView on your view instead"),t.viewToDisplay=()=>sx("callviewtodisplay on your view instead"),t.getSize=()=>sx("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=Bit("PickPropFrom")}const $it={background:[0,0,0],background2:[.2,.2,.2],gradientBackground:!1,viewport:[0,0,1,1],aspect:[1,1],pixelAspect:[1,1],props:[],actors2D:[]};function Tne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,$it,n),Q.obj(t,e),Q.event(t,e,"event"),Q.setGetArray(t,e,["viewport"],4),Q.setGetArray(t,e,["background","background2"],3),Iit(t,e)}const Pit=Q.newInstance(Tne,"vtkViewport");var Fit={newInstance:Pit,extend:Tne};const{vtkDebugMacro:Y0,vtkErrorMacro:Vc,vtkWarningMacro:zit}=ru;function kz(t){return()=>Vc(`vtkRenderer::${t} - NOT IMPLEMENTED`)}function Uit(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||(Y0("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(DV())):Vc("light has unknown light type",o.get()))})},t.updateLightGeometry=()=>e.lightFollowCamera?t.updateLightsGeometryToFollowCamera():!0,t.allocateTime=kz("allocateTime"),t.updateGeometry=kz("updateGeometry"),t.getVTKWindow=()=>e._renderWindow,t.setLayer=i=>{Y0(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=Rit.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=Vit.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 Vc("ViewToWorld: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();$i(l,l),Gr(l,l);const u=new Float64Array([i,o,s]);return hr(u,u,l),u},t.projectionToView=(i,o,s,l)=>{if(e.activeCamera===null)return Vc("ProjectionToView: no active camera, cannot compute projection to view, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);$i(u,u),Gr(u,u);const c=new Float64Array([i,o,s]);return hr(c,c,u),c},t.worldToView=(i,o,s)=>{if(e.activeCamera===null)return Vc("WorldToView: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();Gr(l,l);const u=new Float64Array([i,o,s]);return hr(u,u,l),u},t.viewToProjection=(i,o,s,l)=>{if(e.activeCamera===null)return Vc("ViewToProjection: no active camera, cannot compute view to projection, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);Gr(u,u);const c=new Float64Array([i,o,s]);return hr(c,c,u),c},t.computeVisiblePropBounds=()=>{e.allBounds[0]=Ur.INIT_BOUNDS[0],e.allBounds[1]=Ur.INIT_BOUNDS[1],e.allBounds[2]=Ur.INIT_BOUNDS[2],e.allBounds[3]=Ur.INIT_BOUNDS[3],e.allBounds[4]=Ur.INIT_BOUNDS[4],e.allBounds[5]=Ur.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&&rx(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&&(xT(e.allBounds),Y0("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(!rx(o))return Y0("Cannot reset camera!"),!1;let l=null;if(t.getActiveCamera())l=e.activeCamera.getViewPlaneNormal();else return Vc("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=na(e.activeCamera.getViewAngle()),p=d,v=d/Math.sin(h*.5),g=e.activeCamera.getViewUp();return Math.abs(Dn(g,l))>.999&&(zit("Resetting view-up since view plane normal is parallel"),e.activeCamera.setViewUp(-g[2],g[0],g[1])),e.activeCamera.setFocalPoint(s[0],s[1],s[2]),e.activeCamera.setPosition(s[0]+v*l[0],s[1]+v*l[1],s[2]+v*l[2]),t.resetCameraClippingRange(o),e.activeCamera.setParallelScale(p),e.activeCamera.setPhysicalScale(d),e.activeCamera.setPhysicalTranslation(-s[0],-s[1],-s[2]),t.invokeEvent(a),!0},t.resetCameraClippingRange=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:null)||t.computeVisiblePropBounds();if(!rx(o))return Y0("Cannot reset camera clipping range!"),!1;if(t.getActiveCameraAndResetIfCreated(),!e.activeCamera)return Vc("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=na(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 Git={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:CT(),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 Ene(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(Object.assign(e,Git,n),Fit.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),Yi(t,e,["_renderWindow","allocatedRenderTime","timeFactor","lastRenderTimeInSeconds","numberOfPropsRendered","lastRenderingUsedDepthPeeling","selector"]),Va(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"]),Qg(t,e,["actors","volumes","lights"]),PV(t,e,["background"],4,1),wb(t,e,["renderWindow"]),Uit(t,e)}const Hit=Or(Ene,"vtkRenderer");var gB={newInstance:Hit,extend:Ene};const Wit="WebGL",T2=Object.create(null);function yB(t,e){T2[t]=e}function jit(){return Object.keys(T2)}function Mne(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return T2[t]&&T2[t](e)}function Kit(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 Mne(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(`
  670. `),n},t.captureImages=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q.setImmediate(t.render),e._views.map(a=>a.captureNextImage?a.captureNextImage(n,r):void 0).filter(a=>!!a)}}const Yit={defaultViewAPI:Wit,renderers:[],views:[],interactor:null,neverRendered:!0,numberOfLayers:1};function Dne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Yit,n),Q.obj(t,e),Q.setGet(t,e,["interactor","numberOfLayers","_views","defaultViewAPI"]),Q.get(t,e,["neverRendered"]),Q.getArray(t,e,["renderers"]),Q.moveToProtected(t,e,["views"]),Q.event(t,e,"completion"),Kit(t,e)}const qit=Q.newInstance(Dne,"vtkRenderWindow");var kne={newInstance:qit,extend:Dne,registerViewConstructor:yB,listViewAPIs:jit,newAPISpecificView:Mne};const RO={Unknown:0,LeftController:1,RightController:2},Iy={Unknown:0,Trigger:1,TrackPad:2,Grip:3,Thumbstick:4,A:5,B:6,ApplicationMenu:7},Xit={Unknown:0,TouchpadX:1,TouchpadY:2,ThumbstickX:3,ThumbstickY:4};var Rne={Device:RO,Input:Iy,Axis:Xit};const{Device:nw,Input:Pd}=Rne,{vtkWarningMacro:rw,vtkErrorMacro:aw,normalizeWheel:Zit,vtkOnceErrorMacro:Qit}=Q,Ip={ctrlKey:!1,altKey:!1,shiftKey:!1},ZM={"xr-standard":[Pd.Trigger,Pd.Grip,Pd.TrackPad,Pd.Thumbstick,Pd.A,Pd.B]},mB=["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 q0(t){t.cancelable&&t.preventDefault()}function iw(t){const e=Object.create(null);return t.forEach(n=>{let{pointerId:r,position:a}=n;e[r]=a}),e}function Jit(t,e){e.classHierarchy.push("vtkRenderWindowInteractor");const n={...t},r=new Set,a=new Map;let i=1;t.start=()=>{!e.initialized&&(t.initialize(),!e.initialized)||t.startEventLoop()},t.setRenderWindow=v=>{aw("you want to call setView(view) instead of setRenderWindow on a vtk.js interactor")},t.setInteractorStyle=v=>{e.interactorStyle!==v&&(e.interactorStyle!=null&&e.interactorStyle.setInteractor(null),e.interactorStyle=v,e.interactorStyle!=null&&e.interactorStyle.getInteractor()!==t&&e.interactorStyle.setInteractor(t))},t.initialize=()=>{e.initialized=!0,t.enable(),t.render()},t.enable=()=>t.setEnabled(!0),t.disable=()=>t.setEnabled(!1),t.startEventLoop=()=>rw("empty event loop");function o(v,g){e._forcedRenderer||(e.currentRenderer=t.findPokedRenderer(v,g))}t.getCurrentRenderer=()=>(e.currentRenderer||o(0,0),e.currentRenderer);function s(v){const g=e._view.getCanvas(),y=g.getBoundingClientRect(),m=g.width/y.width,b=g.height/y.height,w={x:m*(v.clientX-y.left),y:b*(y.height-v.clientY+y.top),z:0};return(a.size<=1||!e.currentRenderer)&&o(w.x,w.y),w}const l=e._getScreenEventPositionFor||s;function u(v){return{controlKey:v.ctrlKey,altKey:v.altKey,shiftKey:v.shiftKey}}function c(v){const g=u(v);return{key:v.key,keyCode:v.charCode,...g}}function f(v){return v.pointerType||""}const d=()=>{if(e.container===null)return;const{container:v}=e;v.addEventListener("contextmenu",q0),v.addEventListener("wheel",t.handleWheel),v.addEventListener("DOMMouseScroll",t.handleWheel),v.addEventListener("pointerenter",t.handlePointerEnter),v.addEventListener("pointerleave",t.handlePointerLeave),v.addEventListener("pointermove",t.handlePointerMove,{passive:!1}),v.addEventListener("pointerdown",t.handlePointerDown,{passive:!1}),v.addEventListener("pointerup",t.handlePointerUp),v.addEventListener("pointercancel",t.handlePointerCancel),document.addEventListener("keypress",t.handleKeyPress),document.addEventListener("keydown",t.handleKeyDown),document.addEventListener("keyup",t.handleKeyUp),document.addEventListener("pointerlockchange",t.handlePointerLockChange),v.style.touchAction="none",v.style.userSelect="none",v.style.webkitTapHighlightColor="rgba(0,0,0,0)"};t.bindEvents=v=>{if(v===null)return;n.setContainer(v)&&d()};const h=()=>{clearTimeout(e.moveTimeoutID),clearTimeout(e.wheelTimeoutID),e.moveTimeoutID=0,e.wheelTimeoutID=0,i=1;const{container:v}=e;v&&(v.removeEventListener("contextmenu",q0),v.removeEventListener("wheel",t.handleWheel),v.removeEventListener("DOMMouseScroll",t.handleWheel),v.removeEventListener("pointerenter",t.handlePointerEnter),v.removeEventListener("pointerleave",t.handlePointerLeave),v.removeEventListener("pointermove",t.handlePointerMove,{passive:!1}),v.removeEventListener("pointerdown",t.handlePointerDown,{passive:!1}),v.removeEventListener("pointerup",t.handlePointerUp),v.removeEventListener("pointercancel",t.handlePointerCancel)),document.removeEventListener("keypress",t.handleKeyPress),document.removeEventListener("keydown",t.handleKeyDown),document.removeEventListener("keyup",t.handleKeyUp),document.removeEventListener("pointerlockchange",t.handlePointerLockChange),a.clear()};t.unbindEvents=()=>{h(),n.setContainer(null)},t.handleKeyPress=v=>{const g=c(v);t.keyPressEvent(g)},t.handleKeyDown=v=>{const g=c(v);t.keyDownEvent(g)},t.handleKeyUp=v=>{const g=c(v);t.keyUpEvent(g)},t.handlePointerEnter=v=>{const g={...u(v),position:l(v),deviceType:f(v)};t.pointerEnterEvent(g),g.deviceType==="mouse"&&t.mouseEnterEvent(g)},t.handlePointerLeave=v=>{const g={...u(v),position:l(v),deviceType:f(v)};t.pointerLeaveEvent(g),g.deviceType==="mouse"&&t.mouseLeaveEvent(g)},t.handlePointerDown=v=>{if(!(v.button>2||t.isPointerLocked()))switch(e.preventDefaultOnPointerDown&&q0(v),v.target.hasPointerCapture(v.pointerId)&&v.target.releasePointerCapture(v.pointerId),e.container.setPointerCapture(v.pointerId),a.has(v.pointerId)&&rw("[RenderWindowInteractor] duplicate pointerId detected"),a.set(v.pointerId,{pointerId:v.pointerId,position:l(v)}),v.pointerType){case"pen":case"touch":t.handleTouchStart(v);break;case"mouse":default:t.handleMouseDown(v);break}},t.handlePointerUp=v=>{if(a.has(v.pointerId))switch(e.preventDefaultOnPointerUp&&q0(v),a.delete(v.pointerId),e.container.releasePointerCapture(v.pointerId),v.pointerType){case"pen":case"touch":t.handleTouchEnd(v);break;case"mouse":default:t.handleMouseUp(v);break}},t.handlePointerCancel=v=>{if(a.has(v.pointerId))switch(a.delete(v.pointerId),v.pointerType){case"pen":case"touch":t.handleTouchEnd(v);break;case"mouse":default:t.handleMouseUp(v);break}},t.handlePointerMove=v=>{if(a.has(v.pointerId)){const g=a.get(v.pointerId);g.position=l(v)}switch(v.pointerType){case"pen":case"touch":t.handleTouchMove(v);break;case"mouse":default:t.handleMouseMove(v);break}},t.handleMouseDown=v=>{const g={...u(v),position:l(v),deviceType:f(v)};switch(v.button){case 0:t.leftButtonPressEvent(g);break;case 1:t.middleButtonPressEvent(g);break;case 2:t.rightButtonPressEvent(g);break;default:aw(`Unknown mouse button pressed: ${v.button}`);break}},t.requestPointerLock=()=>{e.container&&e.container.requestPointerLock()},t.exitPointerLock=()=>{var v;return(v=document.exitPointerLock)==null?void 0:v.call(document)},t.isPointerLocked=()=>!!e.container&&document.pointerLockElement===e.container,t.handlePointerLockChange=()=>{t.isPointerLocked()?t.startPointerLockEvent():t.endPointerLockEvent()};function p(){e._view&&e.enabled&&e.enableRender&&(e.inRender=!0,e._view.traverseAllPasses(),e.inRender=!1),t.invokeRenderEvent()}t.requestAnimation=v=>{if(v===void 0){aw("undefined requester, can not start animating");return}if(r.has(v)){rw("requester is already registered for animating");return}r.add(v),!e.animationRequest&&r.size===1&&!e.xrAnimation&&(e._animationStartTime=Date.now(),e._animationFrameCount=0,e.animationRequest=requestAnimationFrame(t.handleAnimation),t.startAnimationEvent())},t.extendAnimation=v=>{const g=Date.now()+v;e._animationExtendedEnd=Math.max(e._animationExtendedEnd,g),!e.animationRequest&&r.size===0&&!e.xrAnimation&&(e._animationStartTime=Date.now(),e._animationFrameCount=0,e.animationRequest=requestAnimationFrame(t.handleAnimation),t.startAnimationEvent())},t.isAnimating=()=>e.xrAnimation||e.animationRequest!==null,t.cancelAnimation=function(v){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r.has(v)){if(!g){const y=v&&v.getClassName?v.getClassName():v;rw(`${y} did not request an animation`)}return}r.delete(v),e.animationRequest&&r.size===0&&Date.now()>e._animationExtendedEnd&&(cancelAnimationFrame(e.animationRequest),e.animationRequest=null,t.endAnimationEvent(),t.render())},t.switchToXRAnimation=()=>{e.animationRequest&&(cancelAnimationFrame(e.animationRequest),e.animationRequest=null),e.xrAnimation=!0},t.returnFromXRAnimation=()=>{e.xrAnimation=!1,r.size!==0&&(e.recentAnimationFrameRate=10,e.animationRequest=requestAnimationFrame(t.handleAnimation))},t.updateXRGamepads=(v,g,y)=>{v.inputSources.forEach(m=>{const b=m.gripSpace==null?null:g.getPose(m.gripSpace,y),w=m.gamepad,C=m.handedness;if(w){w.index in e.lastGamepadValues||(e.lastGamepadValues[w.index]={left:{buttons:{}},right:{buttons:{}},none:{buttons:{}}});for(let x=0;x<w.buttons.length;++x)x in e.lastGamepadValues[w.index][C].buttons||(e.lastGamepadValues[w.index][C].buttons[x]=!1),e.lastGamepadValues[w.index][C].buttons[x]!==w.buttons[x].pressed&&b!=null&&(t.button3DEvent({gamepad:w,position:b.transform.position,orientation:b.transform.orientation,pressed:w.buttons[x].pressed,device:m.handedness==="left"?nw.LeftController:nw.RightController,input:ZM[w.mapping]&&ZM[w.mapping][x]?ZM[w.mapping][x]:Pd.Trigger}),e.lastGamepadValues[w.index][C].buttons[x]=w.buttons[x].pressed),e.lastGamepadValues[w.index][C].buttons[x]&&b!=null&&t.move3DEvent({gamepad:w,position:b.transform.position,orientation:b.transform.orientation,device:m.handedness==="left"?nw.LeftController:nw.RightController})}})},t.handleMouseMove=v=>{const g={...u(v),position:l(v),deviceType:f(v)};e.moveTimeoutID===0?t.startMouseMoveEvent(g):(t.mouseMoveEvent(g),clearTimeout(e.moveTimeoutID)),e.moveTimeoutID=setTimeout(()=>{t.endMouseMoveEvent(),e.moveTimeoutID=0},200)},t.handleAnimation=()=>{const v=Date.now();e._animationFrameCount++,v-e._animationStartTime>1e3&&e._animationFrameCount>1&&(e.recentAnimationFrameRate=1e3*(e._animationFrameCount-1)/(v-e._animationStartTime),e.lastFrameTime=1/e.recentAnimationFrameRate,t.animationFrameRateUpdateEvent(),e._animationStartTime=v,e._animationFrameCount=1),t.animationEvent(),p(),r.size>0||Date.now()<e._animationExtendedEnd?e.animationRequest=requestAnimationFrame(t.handleAnimation):(cancelAnimationFrame(e.animationRequest),e.animationRequest=null,t.endAnimationEvent(),t.render())},t.handleWheel=v=>{q0(v);const g={...Zit(v),...u(v),position:l(v),deviceType:f(v)};e.wheelTimeoutID===0&&(Math.abs(g.spinY)>=.3?i=Math.abs(g.spinY):i=1),g.spinY/=i,e.wheelTimeoutID===0?(t.startMouseWheelEvent(g),t.mouseWheelEvent(g)):(t.mouseWheelEvent(g),clearTimeout(e.wheelTimeoutID)),e.mouseScrollDebounceByPass?(t.extendAnimation(600),t.endMouseWheelEvent(),e.wheelTimeoutID=0):e.wheelTimeoutID=setTimeout(()=>{t.extendAnimation(600),t.endMouseWheelEvent(),e.wheelTimeoutID=0},200)},t.handleMouseUp=v=>{const g={...u(v),position:l(v),deviceType:f(v)};switch(v.button){case 0:t.leftButtonReleaseEvent(g);break;case 1:t.middleButtonReleaseEvent(g);break;case 2:t.rightButtonReleaseEvent(g);break;default:aw(`Unknown mouse button released: ${v.button}`);break}},t.handleTouchStart=v=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=iw(a);if(g.length===2){const m={...u(Ip),position:g[0].position,deviceType:f(v)};t.leftButtonReleaseEvent(m)}t.recognizeGesture("TouchStart",y)}else if(g.length===1){const y={...u(Ip),position:l(v),deviceType:f(v)};t.leftButtonPressEvent(y)}},t.handleTouchMove=v=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=iw(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(Ip),position:g[0].position,deviceType:f(v)};t.mouseMoveEvent(y)}},t.handleTouchEnd=v=>{const g=[...a.values()];if(e.recognizeGestures)if(g.length===0){const y={...u(Ip),position:l(v),deviceType:f(v)};t.leftButtonReleaseEvent(y)}else if(g.length===1){const y=iw(a);t.recognizeGesture("TouchEnd",y);const m={...u(Ip),position:g[0].position,deviceType:f(v)};t.leftButtonPressEvent(m)}else{const y=iw(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(Ip),position:g[0].position,deviceType:f(v)};t.leftButtonReleaseEvent(y)}},t.setView=v=>{e._view!==v&&(e._view=v,e._view.getRenderable().setInteractor(t),t.modified())},t.getFirstRenderer=()=>{var v,g,y;return(y=(g=(v=e._view)==null?void 0:v.getRenderable())==null?void 0:g.getRenderersByReference())==null?void 0:y[0]},t.findPokedRenderer=function(){var x,_;let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e._view)return null;const y=(_=(x=e._view)==null?void 0:x.getRenderable())==null?void 0:_.getRenderers();if(!y||y.length===0)return null;y.sort((T,M)=>T.getLayer()-M.getLayer());let m=null,b=null,w=null,C=y.length;for(;C--;){const T=y[C];if(e._view.isInViewport(v,g,T)&&T.getInteractive()){w=T;break}m===null&&T.getInteractive()&&(m=T),b===null&&e._view.isInViewport(v,g,T)&&(b=T)}return w===null&&(w=m),w===null&&(w=b),w==null&&(w=y[0]),w},t.render=()=>{!t.isAnimating()&&!e.inRender&&p()},mB.forEach(v=>{const g=v.charAt(0).toLowerCase()+v.slice(1);t[`${g}Event`]=y=>{if(!e.enabled)return;if(!t.getCurrentRenderer()){Qit(`
  671. Can not forward events without a current renderer on the interactor.
  672. `);return}const b={type:v,pokedRenderer:e.currentRenderer,firstRenderer:t.getFirstRenderer(),...y};t[`invoke${v}`](b)}}),t.recognizeGesture=(v,g)=>{if(Object.keys(g).length>2)return;if(e.startingEventPositions||(e.startingEventPositions={}),v==="TouchStart"){Object.keys(g).forEach(E=>{e.startingEventPositions[E]=g[E]}),e.currentGesture="Start";return}if(v==="TouchEnd"){e.currentGesture==="Pinch"&&(t.render(),t.endPinchEvent()),e.currentGesture==="Rotate"&&(t.render(),t.endRotateEvent()),e.currentGesture==="Pan"&&(t.render(),t.endPanEvent()),e.currentGesture="Start",e.startingEventPositions={};return}let y=0;const m=[],b=[];Object.keys(g).forEach(E=>{m[y]=g[E],b[y]=e.startingEventPositions[E],y++});const w=Math.sqrt((b[0].x-b[1].x)*(b[0].x-b[1].x)+(b[0].y-b[1].y)*(b[0].y-b[1].y)),C=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 x=Cg(Math.atan2(b[1].y-b[0].y,b[1].x-b[0].x)),_=Cg(Math.atan2(m[1].y-m[0].y,m[1].x-m[0].x)),T=_-x;_=_+180>=360?_-180:_+180,x=x+180>=360?x-180:x+180,Math.abs(_-x)<Math.abs(T)&&(T=_-x);const M=[];if(M[0]=(m[0].x-b[0].x+m[1].x-b[1].x)/2,M[1]=(m[0].y-b[0].y+m[1].y-b[1].y)/2,v==="TouchMove")if(e.currentGesture==="Start"){let E=.01*Math.sqrt(e.container.clientWidth*e.container.clientWidth+e.container.clientHeight*e.container.clientHeight);E<15&&(E=15);const k=Math.abs(C-w),R=C*3.1415926*Math.abs(T)/360,L=Math.sqrt(M[0]*M[0]+M[1]*M[1]);if(k>E&&k>R&&k>L){e.currentGesture="Pinch";const A={scale:1,touches:g};t.startPinchEvent(A)}else if(R>E&&R>L){e.currentGesture="Rotate";const A={rotation:0,touches:g};t.startRotateEvent(A)}else if(L>E){e.currentGesture="Pan";const A={translation:[0,0],touches:g};t.startPanEvent(A)}}else{if(e.currentGesture==="Rotate"){const E={rotation:T,touches:g};t.rotateEvent(E)}if(e.currentGesture==="Pinch"){const E={scale:C/w,touches:g};t.pinchEvent(E)}if(e.currentGesture==="Pan"){const E={translation:M,touches:g};t.panEvent(E)}}},t.handleVisibilityChange=()=>{e._animationStartTime=Date.now(),e._animationFrameCount=0},t.setCurrentRenderer=v=>{e._forcedRenderer=!!v,e.currentRenderer=v},t.setContainer=v=>{h();const g=n.setContainer(v??null);return g&&d(),g},t.delete=()=>{for(;r.size;)t.cancelAnimation(r.values().next().value);typeof document.hidden<"u"&&document.removeEventListener("visibilitychange",t.handleVisibilityChange),e.container&&t.setContainer(null),n.delete()},typeof document.hidden<"u"&&document.addEventListener("visibilitychange",t.handleVisibilityChange,!1)}const eot={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 Lne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,eot,n),Q.obj(t,e),e._animationExtendedEnd=0,Q.event(t,e,"RenderEvent"),mB.forEach(r=>Q.event(t,e,r)),Q.get(t,e,["initialized","interactorStyle","lastFrameTime","recentAnimationFrameRate","_view"]),Q.setGet(t,e,["container","lightFollowCamera","enabled","enableRender","recognizeGestures","desiredUpdateRate","stillUpdateRate","picker","preventDefaultOnPointerDown","preventDefaultOnPointerUp","mouseScrollDebounceByPass"]),Q.moveToProtected(t,e,["view"]),Jit(t,e)}const tot=Q.newInstance(Lne,"vtkRenderWindowInteractor");var bB={newInstance:tot,extend:Lne,handledEvents:mB,...Rne};const{vtkErrorMacro:not,VOID:rot}=Q;function aot(t,e,n,r){return t.getRenderWindow().getViews()[0].worldToDisplay(e,n,r,t)}function iot(t,e,n,r){return t.getRenderWindow().getViews()[0].displayToWorld(e,n,r,t)}const oot={computeWorldToDisplay:aot,computeDisplayToWorld:iot};function sot(t,e){e.classHierarchy.push("vtkInteractorObserver");const n={...t};function r(){for(;e.subscribedEvents.length;)e.subscribedEvents.pop().unsubscribe()}function a(){bB.handledEvents.forEach(i=>{t[`handle${i}`]&&e.subscribedEvents.push(e._interactor[`on${i}`](o=>e.processEvents?t[`handle${i}`](o):rot,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():not(`
  673. The interactor must be set before subscribing to events
  674. `)),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 lot={enabled:!0,priority:0,processEvents:!0,subscribedEvents:[]};function One(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,lot,n),Q.obj(t,e),Q.event(t,e,"InteractionEvent"),Q.event(t,e,"StartInteractionEvent"),Q.event(t,e,"EndInteractionEvent"),Q.get(t,e,["_interactor","enabled"]),Q.setGet(t,e,["priority","processEvents"]),Q.moveToProtected(t,e,["interactor"]),sot(t,e)}const uot=Q.newInstance(One,"vtkInteractorObserver");var cot={newInstance:uot,extend:One,...oot};const fot={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 SB={States:fot};const{States:Tl}=SB,QM={Rotate:Tl.IS_ROTATE,Pan:Tl.IS_PAN,Spin:Tl.IS_SPIN,Dolly:Tl.IS_DOLLY,CameraPose:Tl.IS_CAMERA_POSE,WindowLevel:Tl.IS_WINDOW_LEVEL,Slice:Tl.IS_SLICE};function dot(t,e){e.classHierarchy.push("vtkInteractorStyle"),Object.keys(QM).forEach(n=>{Q.event(t,e,`Start${n}Event`),t[`start${n}`]=()=>{e.state===Tl.IS_NONE&&(e.state=QM[n],e._interactor.requestAnimation(t),t.invokeStartInteractionEvent({type:"StartInteractionEvent"}),t[`invokeStart${n}Event`]({type:`Start${n}Event`}))},Q.event(t,e,`End${n}Event`),t[`end${n}`]=()=>{e.state===QM[n]&&(e.state=Tl.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 hot={state:Tl.IS_NONE,handleObservers:1,autoAdjustCameraClippingRange:1};function Ane(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hot,n),cot.extend(t,e,n),dot(t,e)}const pot=Q.newInstance(Ane,"vtkInteractorStyle");var vot={newInstance:pot,extend:Ane,...SB};const{States:gl}=SB;function got(t,e){e.classHierarchy.push("vtkInteractorStyleTrackballCamera"),t.handleMouseMove=n=>{const r=n.position,a=n.pokedRenderer;switch(e.state){case gl.IS_ROTATE:t.handleMouseRotate(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case gl.IS_PAN:t.handleMousePan(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case gl.IS_DOLLY:t.handleMouseDolly(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case gl.IS_SPIN:t.handleMouseSpin(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break}e.previousPosition=r},t.handleButton3D=n=>{if(n&&n.pressed&&n.device===RO.RightController&&(n.input===Iy.Trigger||n.input===Iy.TrackPad)){t.startCameraPose();return}n&&!n.pressed&&n.device===RO.RightController&&(n.input===Iy.Trigger||n.input===Iy.TrackPad)&&e.state===gl.IS_CAMERA_POSE&&t.endCameraPose()},t.handleMove3D=n=>{switch(e.state){case gl.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 gl.IS_DOLLY:t.endDolly();break;case gl.IS_PAN:t.endPan();break;case gl.IS_SPIN:t.endSpin();break;case gl.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=Cg(Math.atan2(e.previousPosition.y-o[1],e.previousPosition.x-o[0])),l=Cg(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 yot={motionFactor:10,zoomFactor:10};function Nne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yot,n),vot.extend(t,e,n),Q.setGet(t,e,["motionFactor","zoomFactor"]),got(t,e)}const mot=Q.newInstance(Nne,"vtkInteractorStyleTrackballCamera");var Vne={newInstance:mot,extend:Nne};function bot(t){return t}function wB(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=>wB(e.trim())):t===""||Number.isNaN(Number(t))?t:Number(t)}function Sot(){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?wB:bot;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 Bne={toNativeType:wB,extractURLParameters:Sot};function wot(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){Gn("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){Gn("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){Gn("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){Gn("you must set the OpenGLRenderWindow before calling setColorBuffer");return}let i=a.COLOR_ATTACHMENT0;if(r>0)if(e._openGLRenderWindow.getWebgl2())i+=r;else{Gn("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){Gn("you must set the OpenGLRenderWindow before calling removeColorBuffer");return}let a=r.COLOR_ATTACHMENT0;if(n>0)if(e._openGLRenderWindow.getWebgl2())a+=n;else{Gn("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){Gn("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 Gn("Attaching depth buffer textures to fbo requires WebGL 2")},t.removeDepthBuffer=()=>{if(!e.context){Gn("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 Gn("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){Gn("you must set the OpenGLRenderWindow before calling populateFrameBuffer");return}t.bind();const n=e.context,r=Oh.newInstance();r.setOpenGLRenderWindow(e._openGLRenderWindow),r.setMinificationFilter(MO.LINEAR),r.setMagnificationFilter(MO.LINEAR),r.create2DFromRaw(e.glFramebuffer.width,e.glFramebuffer.height,4,ma.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 _ot={glFramebuffer:null,colorBuffers:null,depthTexture:null,previousDrawBinding:0,previousReadBinding:0,previousDrawBuffer:0,previousReadBuffer:0,previousActiveFramebuffer:null};function Ine(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,_ot,n),Ka(t,e),e.colorBuffers&&Gn("you cannot initialize colorBuffers through the constructor. You should call setColorBuffer() instead."),e.colorBuffers=[],Qg(t,e,["colorBuffers"]),wot(t,e)}const xot=Or(Ine,"vtkFramebuffer");var _B={newInstance:xot,extend:Ine};function Cot(t,e){e.classHierarchy.push("vtkRenderPass"),t.getOperation=()=>e.currentOperation,t.setCurrentOperation=n=>{e.currentOperation=n,e.currentTraverseOperation=`traverse${Q.capitalize(e.currentOperation)}`},t.getTraverseOperation=()=>e.currentTraverseOperation,t.traverse=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e.deleted||(e._currentParent=r,e.preDelegateOperations.forEach(a=>{t.setCurrentOperation(a),n.traverse(t)}),e.delegates.forEach(a=>{a.traverse(n,t)}),e.postDelegateOperations.forEach(a=>{t.setCurrentOperation(a),n.traverse(t)}))}}const Tot={delegates:[],currentOperation:null,preDelegateOperations:[],postDelegateOperations:[],currentParent:null};function $ne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Tot,n),Q.obj(t,e),Q.get(t,e,["currentOperation"]),Q.setGet(t,e,["delegates","_currentParent","preDelegateOperations","postDelegateOperations"]),Q.moveToProtected(t,e,["currentParent"]),Cot(t,e)}const Eot=Q.newInstance($ne,"vtkRenderPass");var nc={newInstance:Eot,extend:$ne};const{Representation:Mot}=Jg,{vtkErrorMacro:Rz}=Q;function Dot(t){const e=gt.substitute(t.Fragment,"//VTK::RenderPassFragmentShader::Impl",`
  675. float weight = gl_FragData[0].a * pow(max(1.1 - gl_FragCoord.z, 0.0), 2.0);
  676. gl_FragData[0] = vec4(gl_FragData[0].rgb*weight, gl_FragData[0].a);
  677. gl_FragData[1].r = weight;
  678. `,!1);t.Fragment=e.result}const kot=`//VTK::System::Dec
  679. in vec2 tcoord;
  680. uniform sampler2D translucentRTexture;
  681. uniform sampler2D translucentRGBATexture;
  682. // the output of this shader
  683. //VTK::Output::Dec
  684. void main()
  685. {
  686. vec4 t1Color = texture(translucentRGBATexture, tcoord);
  687. float t2Color = texture(translucentRTexture, tcoord).r;
  688. gl_FragData[0] = vec4(t1Color.rgb/max(t2Color,0.01), 1.0 - t1Color.a);
  689. }
  690. `;function Rot(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=Hn.newInstance({numberOfComponents:3,values:n});i.setName("points");const o=Hn.newInstance({numberOfComponents:2,values:r});o.setName("tcoords");const s=Hn.newInstance({numberOfComponents:1,values:a});e.tris.getCABO().createVBO(s,"polys",Mot.SURFACE,{points:i,tcoords:o,cellOffset:0}),e.VBOBuildTime.modified()},t.createFramebuffer=n=>{const r=n.getSize(),a=n.getContext();e.framebuffer=_B.newInstance(),e.framebuffer.setOpenGLRenderWindow(n),e.framebuffer.create(...r),e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.bind(),e.translucentRGBATexture=Oh.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=Oh.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=Oh.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(`
  691. `),kot,"")},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)||Rz("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)||Rz("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=$te.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?Dot: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 Lot={framebuffer:null,copyShader:null,tris:null};function Pne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Lot,n),nc.extend(t,e,n),e.VBOBuildTime={},Q.obj(e.VBOBuildTime,{mtime:0}),e.tris=e0.newInstance(),Q.get(t,e,["framebuffer"]),Rot(t,e)}const Oot=Q.newInstance(Pne,"vtkOpenGLOrderIndependentTranslucentPass");var Aot={newInstance:Oot,extend:Pne};function Not(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=_B.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=Aot.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 Vot={opaqueActorCount:0,translucentActorCount:0,volumeCount:0,overlayActorCount:0,framebuffer:null,depthRequested:!1};function Fne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vot,n),nc.extend(t,e,n),Q.get(t,e,["framebuffer","opaqueActorCount","translucentActorCount","volumeCount"]),Not(t,e)}const Bot=Q.newInstance(Fne,"vtkForwardPass");var Iot={newInstance:Bot,extend:Fne};const{FieldAssociations:$ot}=hp;function Pot(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 Fot={fieldAssociation:$ot.FIELD_ASSOCIATION_CELLS,captureZValues:!1};function zne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Fot,n),Q.obj(t,e),Q.setGet(t,e,["fieldAssociation","captureZValues"]),Pot(t,e)}const zot=Q.newInstance(zne,"vtkHardwareSelector");var Une={newInstance:zot,extend:zne};const Uot={GLOBALIDS:0,PEDIGREEIDS:1,VALUES:2,INDICES:3,FRUSTUM:4,LOCATIONS:5,THRESHOLDS:6,BLOCKS:7,QUERY:8},Got={CELL:0,POINT:1,FIELD:2,VERTEX:3,EDGE:4,ROW:5};var Hot={SelectionContent:Uot,SelectionField:Got};function Wot(t,e){e.classHierarchy.push("vtkSelectionNode"),t.getBounds=()=>e.points.getBounds()}const jot={contentType:-1,fieldType:-1,properties:null,selectionList:[]};function Gne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,jot,n),Q.obj(t,e),e.properties={},Q.setGet(t,e,["contentType","fieldType","properties","selectionList"]),Wot(t,e)}const Kot=Q.newInstance(Gne,"vtkSelectionNode");var RT={newInstance:Kot,extend:Gne,...Hot};const{PassTypes:ya}=hte,{SelectionContent:Yot,SelectionField:Lz}=RT,{FieldAssociations:pm}=hp,{vtkErrorMacro:Hne}=Q,jc=1;function Wne(t){return`${t.propID} ${t.compositeID}`}function jne(t,e,n,r){if(!n)return 0;const a=(e*(r[2]-r[0]+1)+t)*4;return n[a+3]}function xu(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 Kne(t,e){let n=e;return n<<=24,n|=t,n}function dv(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=xu(l[0],l[1],t.pixBuffer[ya.ACTOR_PASS],t.area);if(u<=0||u-jc>=t.props.length)return null;const c={};c.valid=!0,c.propID=u-jc,c.prop=t.props[c.propID];let f=xu(l[0],l[1],t.pixBuffer[ya.COMPOSITE_INDEX_PASS],t.area);if((f<0||f>16777215)&&(f=0),c.compositeID=f-jc,t.captureZValues){const p=(l[1]*(t.area[2]-t.area[0]+1)+l[0])*4;c.zValue=(256*t.zBuffer[p]+t.zBuffer[p+1])/65535,c.displayPosition=e}if(t.pixBuffer[ya.ID_LOW24]&&jne(l[0],l[1],t.pixBuffer[ya.ID_LOW24],t.area)===0)return c;const d=xu(l[0],l[1],t.pixBuffer[ya.ID_LOW24],t.area),h=xu(l[0],l[1],t.pixBuffer[ya.ID_HIGH24],t.area);return c.attributeID=Kne(d,h),c}const i=[e[0],e[1]],o=[0,0];let s=dv(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=dv(t,o,0,r),s&&s.valid)||(o[0]=i[0]+l,s=dv(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=dv(t,o,0,r),s&&s.valid)||(o[1]=i[1]+l,s=dv(t,o,0,r),s&&s.valid))return s}return r[0]=e[0],r[1]=e[1],null}function Yne(t,e,n,r,a){const i=[];let o=0;return e.forEach((s,l)=>{const u=RT.newInstance();switch(u.setContentType(Yot.INDICES),t){case pm.FIELD_ASSOCIATION_CELLS:u.setFieldType(Lz.CELL);break;case pm.FIELD_ASSOCIATION_POINTS:u.setFieldType(Lz.POINT);break;default:Hne("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 qot(t,e,n,r,a){const i=Math.floor(e),o=Math.floor(n),s=Math.floor(r),l=Math.floor(a),u=new Map,c=[0,0];for(let f=o;f<=l;f++)for(let d=i;d<=s;d++){const p=dv(t,[d,f],0,c);if(p&&p.valid){const v=Wne(p);if(!u.has(v))u.set(v,{info:p,pixelCount:1,attributeIDs:[p.attributeID]});else{const g=u.get(v);g.pixelCount++,t.captureZValues&&p.zValue<g.info.zValue&&(g.info=p),g.attributeIDs.indexOf(p.attributeID)===-1&&g.attributeIDs.push(p.attributeID)}}}return Yne(t.fieldAssociation,u,t.captureZValues,t.renderer,t.openGLRenderWindow)}function Xot(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=_B.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===pm.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 qot(l,...c)},l},t.captureBuffers=()=>{if(!e._renderer||!e._openGLRenderWindow)return Hne("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=ya.MIN_KNOWN_PASS;e.currentPass<=ya.MAX_KNOWN_PASS;e.currentPass++)t.passRequired(e.currentPass)&&(t.preCapturePass(e.currentPass),e.captureZValues&&e.currentPass===ya.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===ya.ID_HIGH24){if(e.fieldAssociation===pm.FIELD_ASSOCIATION_POINTS)return e.maximumPointId>16777215;if(e.fieldAssociation===pm.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===ya.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=xu(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===ya.ACTOR_PASS&&(t.setPropColorValueFromInt(e.props.length+jc),e.props.push(r))},t.renderCompositeIndex=r=>{e.currentPass===ya.COMPOSITE_INDEX_PASS&&t.setPropColorValueFromInt(r+jc)},t.renderAttributeId=r=>{r<0||(e.maxAttributeId=r>e.maxAttributeId?r:e.maxAttributeId)},t.passTypeToString=r=>Q.enumToString(ya,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=xu(c[0],c[1],e.pixBuffer[ya.ACTOR_PASS],e.area);if(f<=0||f-jc>=e.props.length)return null;const d={};d.valid=!0,d.propID=f-jc,d.prop=e.props[d.propID];let h=xu(c[0],c[1],e.pixBuffer[ya.COMPOSITE_INDEX_PASS],e.area);if((h<0||h>16777215)&&(h=0),d.compositeID=h-jc,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[ya.ID_LOW24]&&jne(c[0],c[1],e.pixBuffer[ya.ID_LOW24],e.area)===0)return d;const p=xu(c[0],c[1],e.pixBuffer[ya.ID_LOW24],e.area),v=xu(c[0],c[1],e.pixBuffer[ya.ID_HIGH24],e.area);return d.attributeID=Kne(p,v),d}const s=[r[0],r[1]],l=[0,0];let u=t.getPixelInformation(r,0,i);if(u&&u.valid)return u;for(let c=1;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 p=s;p<=u;p++){const v=[p,h],g=t.getPixelInformation(v,0,d);if(g&&g.valid){const y=Wne(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 Yne(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 Zot={area:void 0,currentPass:-1,propColorValue:null,props:null,maximumPointId:0,maximumCellId:0,idOffset:1};function qne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Zot,n),Une.extend(t,e,n),e.propColorValue=[0,0,0],e.props=[],e.area||(e.area=[0,0,0,0]),Q.setGetArray(t,e,["area"],4),Q.setGet(t,e,["_renderer","currentPass","_openGLRenderWindow","maximumPointId","maximumCellId"]),Q.setGetArray(t,e,["propColorValue"],3),Q.moveToProtected(t,e,["renderer","openGLRenderWindow"]),Q.event(t,e,"event"),Xot(t,e)}const Qot=Q.newInstance(qne,"vtkOpenGLHardwareSelector");var Xne={newInstance:Qot,extend:qne,...hte},Zne={exports:{}};(function(t,e){(function(n){t.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function a(y,m){var b=y[0],w=y[1],C=y[2],x=y[3];b+=(w&C|~w&x)+m[0]-680876936|0,b=(b<<7|b>>>25)+w|0,x+=(b&w|~b&C)+m[1]-389564586|0,x=(x<<12|x>>>20)+b|0,C+=(x&b|~x&w)+m[2]+606105819|0,C=(C<<17|C>>>15)+x|0,w+=(C&x|~C&b)+m[3]-1044525330|0,w=(w<<22|w>>>10)+C|0,b+=(w&C|~w&x)+m[4]-176418897|0,b=(b<<7|b>>>25)+w|0,x+=(b&w|~b&C)+m[5]+1200080426|0,x=(x<<12|x>>>20)+b|0,C+=(x&b|~x&w)+m[6]-1473231341|0,C=(C<<17|C>>>15)+x|0,w+=(C&x|~C&b)+m[7]-45705983|0,w=(w<<22|w>>>10)+C|0,b+=(w&C|~w&x)+m[8]+1770035416|0,b=(b<<7|b>>>25)+w|0,x+=(b&w|~b&C)+m[9]-1958414417|0,x=(x<<12|x>>>20)+b|0,C+=(x&b|~x&w)+m[10]-42063|0,C=(C<<17|C>>>15)+x|0,w+=(C&x|~C&b)+m[11]-1990404162|0,w=(w<<22|w>>>10)+C|0,b+=(w&C|~w&x)+m[12]+1804603682|0,b=(b<<7|b>>>25)+w|0,x+=(b&w|~b&C)+m[13]-40341101|0,x=(x<<12|x>>>20)+b|0,C+=(x&b|~x&w)+m[14]-1502002290|0,C=(C<<17|C>>>15)+x|0,w+=(C&x|~C&b)+m[15]+1236535329|0,w=(w<<22|w>>>10)+C|0,b+=(w&x|C&~x)+m[1]-165796510|0,b=(b<<5|b>>>27)+w|0,x+=(b&C|w&~C)+m[6]-1069501632|0,x=(x<<9|x>>>23)+b|0,C+=(x&w|b&~w)+m[11]+643717713|0,C=(C<<14|C>>>18)+x|0,w+=(C&b|x&~b)+m[0]-373897302|0,w=(w<<20|w>>>12)+C|0,b+=(w&x|C&~x)+m[5]-701558691|0,b=(b<<5|b>>>27)+w|0,x+=(b&C|w&~C)+m[10]+38016083|0,x=(x<<9|x>>>23)+b|0,C+=(x&w|b&~w)+m[15]-660478335|0,C=(C<<14|C>>>18)+x|0,w+=(C&b|x&~b)+m[4]-405537848|0,w=(w<<20|w>>>12)+C|0,b+=(w&x|C&~x)+m[9]+568446438|0,b=(b<<5|b>>>27)+w|0,x+=(b&C|w&~C)+m[14]-1019803690|0,x=(x<<9|x>>>23)+b|0,C+=(x&w|b&~w)+m[3]-187363961|0,C=(C<<14|C>>>18)+x|0,w+=(C&b|x&~b)+m[8]+1163531501|0,w=(w<<20|w>>>12)+C|0,b+=(w&x|C&~x)+m[13]-1444681467|0,b=(b<<5|b>>>27)+w|0,x+=(b&C|w&~C)+m[2]-51403784|0,x=(x<<9|x>>>23)+b|0,C+=(x&w|b&~w)+m[7]+1735328473|0,C=(C<<14|C>>>18)+x|0,w+=(C&b|x&~b)+m[12]-1926607734|0,w=(w<<20|w>>>12)+C|0,b+=(w^C^x)+m[5]-378558|0,b=(b<<4|b>>>28)+w|0,x+=(b^w^C)+m[8]-2022574463|0,x=(x<<11|x>>>21)+b|0,C+=(x^b^w)+m[11]+1839030562|0,C=(C<<16|C>>>16)+x|0,w+=(C^x^b)+m[14]-35309556|0,w=(w<<23|w>>>9)+C|0,b+=(w^C^x)+m[1]-1530992060|0,b=(b<<4|b>>>28)+w|0,x+=(b^w^C)+m[4]+1272893353|0,x=(x<<11|x>>>21)+b|0,C+=(x^b^w)+m[7]-155497632|0,C=(C<<16|C>>>16)+x|0,w+=(C^x^b)+m[10]-1094730640|0,w=(w<<23|w>>>9)+C|0,b+=(w^C^x)+m[13]+681279174|0,b=(b<<4|b>>>28)+w|0,x+=(b^w^C)+m[0]-358537222|0,x=(x<<11|x>>>21)+b|0,C+=(x^b^w)+m[3]-722521979|0,C=(C<<16|C>>>16)+x|0,w+=(C^x^b)+m[6]+76029189|0,w=(w<<23|w>>>9)+C|0,b+=(w^C^x)+m[9]-640364487|0,b=(b<<4|b>>>28)+w|0,x+=(b^w^C)+m[12]-421815835|0,x=(x<<11|x>>>21)+b|0,C+=(x^b^w)+m[15]+530742520|0,C=(C<<16|C>>>16)+x|0,w+=(C^x^b)+m[2]-995338651|0,w=(w<<23|w>>>9)+C|0,b+=(C^(w|~x))+m[0]-198630844|0,b=(b<<6|b>>>26)+w|0,x+=(w^(b|~C))+m[7]+1126891415|0,x=(x<<10|x>>>22)+b|0,C+=(b^(x|~w))+m[14]-1416354905|0,C=(C<<15|C>>>17)+x|0,w+=(x^(C|~b))+m[5]-57434055|0,w=(w<<21|w>>>11)+C|0,b+=(C^(w|~x))+m[12]+1700485571|0,b=(b<<6|b>>>26)+w|0,x+=(w^(b|~C))+m[3]-1894986606|0,x=(x<<10|x>>>22)+b|0,C+=(b^(x|~w))+m[10]-1051523|0,C=(C<<15|C>>>17)+x|0,w+=(x^(C|~b))+m[1]-2054922799|0,w=(w<<21|w>>>11)+C|0,b+=(C^(w|~x))+m[8]+1873313359|0,b=(b<<6|b>>>26)+w|0,x+=(w^(b|~C))+m[15]-30611744|0,x=(x<<10|x>>>22)+b|0,C+=(b^(x|~w))+m[6]-1560198380|0,C=(C<<15|C>>>17)+x|0,w+=(x^(C|~b))+m[13]+1309151649|0,w=(w<<21|w>>>11)+C|0,b+=(C^(w|~x))+m[4]-145523070|0,b=(b<<6|b>>>26)+w|0,x+=(w^(b|~C))+m[11]-1120210379|0,x=(x<<10|x>>>22)+b|0,C+=(b^(x|~w))+m[2]+718787259|0,C=(C<<15|C>>>17)+x|0,w+=(x^(C|~b))+m[9]-343485551|0,w=(w<<21|w>>>11)+C|0,y[0]=b+y[0]|0,y[1]=w+y[1]|0,y[2]=C+y[2]|0,y[3]=x+y[3]|0}function i(y){var m=[],b;for(b=0;b<64;b+=4)m[b>>2]=y.charCodeAt(b)+(y.charCodeAt(b+1)<<8)+(y.charCodeAt(b+2)<<16)+(y.charCodeAt(b+3)<<24);return m}function o(y){var m=[],b;for(b=0;b<64;b+=4)m[b>>2]=y[b]+(y[b+1]<<8)+(y[b+2]<<16)+(y[b+3]<<24);return m}function s(y){var m=y.length,b=[1732584193,-271733879,-1732584194,271733878],w,C,x,_,T,M;for(w=64;w<=m;w+=64)a(b,i(y.substring(w-64,w)));for(y=y.substring(w-64),C=y.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<C;w+=1)x[w>>2]|=y.charCodeAt(w)<<(w%4<<3);if(x[w>>2]|=128<<(w%4<<3),w>55)for(a(b,x),w=0;w<16;w+=1)x[w]=0;return _=m*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(_[2],16),M=parseInt(_[1],16)||0,x[14]=T,x[15]=M,a(b,x),b}function l(y){var m=y.length,b=[1732584193,-271733879,-1732584194,271733878],w,C,x,_,T,M;for(w=64;w<=m;w+=64)a(b,o(y.subarray(w-64,w)));for(y=w-64<m?y.subarray(w-64):new Uint8Array(0),C=y.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w<C;w+=1)x[w>>2]|=y[w]<<(w%4<<3);if(x[w>>2]|=128<<(w%4<<3),w>55)for(a(b,x),w=0;w<16;w+=1)x[w]=0;return _=m*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(_[2],16),M=parseInt(_[1],16)||0,x[14]=T,x[15]=M,a(b,x),b}function u(y){var m="",b;for(b=0;b<4;b+=1)m+=r[y>>b*8+4&15]+r[y>>b*8&15];return m}function c(y){var m;for(m=0;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,b){return m=m|0||0,m<0?Math.max(m+b,0):Math.min(m,b)}ArrayBuffer.prototype.slice=function(m,b){var w=this.byteLength,C=y(m,w),x=w,_,T,M,E;return b!==n&&(x=y(b,w)),C>x?new ArrayBuffer(0):(_=x-C,T=new ArrayBuffer(_),M=new Uint8Array(T),E=new Uint8Array(this,C,_),M.set(E),T)}}();function f(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function d(y,m){var b=y.length,w=new ArrayBuffer(b),C=new Uint8Array(w),x;for(x=0;x<b;x+=1)C[x]=y.charCodeAt(x);return m?C:w}function h(y){return String.fromCharCode.apply(null,new Uint8Array(y))}function p(y,m,b){var w=new Uint8Array(y.byteLength+m.byteLength);return w.set(new Uint8Array(y)),w.set(new Uint8Array(m),y.byteLength),b?w:w.buffer}function v(y){var m=[],b=y.length,w;for(w=0;w<b-1;w+=2)m.push(parseInt(y.substr(w,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,b;for(b=64;b<=m;b+=64)a(this._hash,i(this._buff.substring(b-64,b)));return this._buff=this._buff.substring(b-64),this},g.prototype.end=function(y){var m=this._buff,b=m.length,w,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x;for(w=0;w<b;w+=1)C[w>>2]|=m.charCodeAt(w)<<(w%4<<3);return this._finish(C,b),x=c(this._hash),y&&(x=v(x)),this.reset(),x},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(y,m){var b=m,w,C,x;if(y[b>>2]|=128<<(b%4<<3),b>55)for(a(this._hash,y),b=0;b<16;b+=1)y[b]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(w[2],16),x=parseInt(w[1],16)||0,y[14]=C,y[15]=x,a(this._hash,y)},g.hash=function(y,m){return g.hashBinary(f(y),m)},g.hashBinary=function(y,m){var b=s(y),w=c(b);return m?v(w):w},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(y){var m=p(this._buff.buffer,y,!0),b=m.length,w;for(this._length+=y.byteLength,w=64;w<=b;w+=64)a(this._hash,o(m.subarray(w-64,w)));return this._buff=w-64<b?new Uint8Array(m.buffer.slice(w-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(y){var m=this._buff,b=m.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C,x;for(C=0;C<b;C+=1)w[C>>2]|=m[C]<<(C%4<<3);return this._finish(w,b),x=c(this._hash),y&&(x=v(x)),this.reset(),x},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var y=g.prototype.getState.call(this);return y.buff=h(y.buff),y},g.ArrayBuffer.prototype.setState=function(y){return y.buff=d(y.buff,!0),g.prototype.setState.call(this,y)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(y,m){var b=l(new Uint8Array(y)),w=c(b);return m?v(w):w},g})})(Zne);var Jot=Zne.exports;const est=wi(Jot),tst=["lastShaderProgramBound","context","_openGLRenderWindow"];function nst(t,e){e.classHierarchy.push("vtkShaderCache"),t.replaceShaderValues=(n,r,a)=>{let i=r;a.length>0&&(i=gt.substitute(i,"VSOut","GSOut").result);const o=e._openGLRenderWindow.getWebgl2();let s=`
  692. `,l=`#version 100
  693. `;o?l=`#version 300 es
  694. #define attribute in
  695. #define textureCube texture
  696. #define texture2D texture
  697. #define textureCubeLod textureLod
  698. #define texture2DLod textureLod
  699. `:(e.context.getExtension("OES_standard_derivatives"),e.context.getExtension("EXT_frag_depth")&&(s=`#extension GL_EXT_frag_depth : enable
  700. `),e.context.getExtension("EXT_shader_texture_lod")&&(s+=`#extension GL_EXT_shader_texture_lod : enable
  701. #define textureCubeLod textureCubeLodEXT
  702. #define texture2DLod texture2DLodEXT`)),i=gt.substitute(i,"//VTK::System::Dec",[`${l}
  703. `,o?"":`#extension GL_OES_standard_derivatives : enable
  704. `,s,"#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","precision highp int;","#else","precision mediump float;","precision mediump int;","#endif"]).result;let u=gt.substitute(n,"//VTK::System::Dec",[`${l}
  705. `,"#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","precision highp int;","#else","precision mediump float;","precision mediump int;","#endif"]).result;if(o){u=gt.substitute(u,"varying","out").result,i=gt.substitute(i,"varying","in").result;let f="",d=0;for(;i.includes(`gl_FragData[${d}]`);)i=gt.substitute(i,`gl_FragData\\[${d}\\]`,`fragOutput${d}`).result,f+=`layout(location = ${d}) out vec4 fragOutput${d};
  706. `,d++;i=gt.substitute(i,"//VTK::Output::Dec",f).result}const c=gt.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=est.hash(i);if(!(o in e.shaderPrograms)){const s=gt.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 rst={lastShaderProgramBound:null,shaderPrograms:null,context:null};function Qne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rst,n),e.shaderPrograms={},Q.obj(t,e),Q.setGet(t,e,tst),Q.moveToProtected(t,e,["openGLRenderWindow"]),nst(t,e)}const ast=Q.newInstance(Qne,"vtkShaderCache");var ist={newInstance:ast,extend:Qne};const{vtkErrorMacro:ost}=Q;function sst(t,e){e.classHierarchy.push("vtkOpenGLTextureUnitManager"),t.deleteTable=()=>{for(let n=0;n<e.numberOfTextureUnits;++n)e.textureUnits[n]===!0&&ost("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 lst={context:null,numberOfTextureUnits:0,textureUnits:0};function Jne(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,lst,n),Q.obj(t,e),e.textureUnits=[],Q.get(t,e,["numberOfTextureUnits"]),Q.setGet(t,e,["context"]),sst(t,e)}const ust=Q.newInstance(Jne,"vtkOpenGLTextureUnitManager");var cst={newInstance:ust,extend:Jne};function fst(t,e){e.classHierarchy.push("vtkRenderWindowViewNode"),t.getViewNodeFactory=()=>null,t.getAspectRatio=()=>e.size[0]/e.size[1],t.getAspectRatioForRenderer=n=>{const r=n.getViewportByReference();return e.size[0]*(r[2]-r[0])/((r[3]-r[1])*e.size[1])},t.isInViewport=(n,r,a)=>{const i=a.getViewportByReference(),o=t.getFramebufferSize();return i[0]*o[0]<=n&&i[2]*o[0]>=n&&i[1]*o[1]<=r&&i[3]*o[1]>=r},t.getViewportSize=n=>{const r=n.getViewportByReference(),a=t.getFramebufferSize();return[(r[2]-r[0])*a[0],(r[3]-r[1])*a[1]]},t.getViewportCenter=n=>{const r=t.getViewportSize(n);return[r[0]*.5,r[1]*.5]},t.displayToNormalizedDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n/i[0],r/i[1],a]},t.normalizedDisplayToDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n*i[0],r*i[1],a]},t.worldToView=(n,r,a,i)=>i.worldToView(n,r,a),t.viewToWorld=(n,r,a,i)=>i.viewToWorld(n,r,a),t.worldToDisplay=(n,r,a,i)=>{const o=i.worldToView(n,r,a),s=t.getViewportSize(i),l=i.viewToProjection(o[0],o[1],o[2],s[0]/s[1]),u=i.projectionToNormalizedDisplay(l[0],l[1],l[2]);return t.normalizedDisplayToDisplay(u[0],u[1],u[2])},t.displayToWorld=(n,r,a,i)=>{const o=t.displayToNormalizedDisplay(n,r,a),s=i.normalizedDisplayToProjection(o[0],o[1],o[2]),l=t.getViewportSize(i),u=i.projectionToView(s[0],s[1],s[2],l[0]/l[1]);return i.viewToWorld(u[0],u[1],u[2])},t.normalizedDisplayToViewport=(n,r,a,i)=>{let o=i.getViewportByReference();o=t.normalizedDisplayToDisplay(o[0],o[1],0);const s=t.normalizedDisplayToDisplay(n,r,a);return[s[0]-o[0]-.5,s[1]-o[1]-.5,a]},t.viewportToNormalizedViewport=(n,r,a,i)=>{const o=t.getViewportSize(i);return o&&o[0]!==0&&o[1]!==0?[n/(o[0]-1),r/(o[1]-1),a]:[n,r,a]},t.normalizedViewportToViewport=(n,r,a,i)=>{const o=t.getViewportSize(i);return[n*(o[0]-1),r*(o[1]-1),a]},t.displayToLocalDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n,i[1]-r-1,a]},t.viewportToNormalizedDisplay=(n,r,a,i)=>{let o=i.getViewportByReference();o=t.normalizedDisplayToDisplay(o[0],o[1],0);const s=n+o[0]+.5,l=r+o[1]+.5;return t.displayToNormalizedDisplay(s,l,a)},t.getComputedDevicePixelRatio=()=>e.size[0]/t.getContainerSize()[0],t.getContainerSize=()=>{Q.vtkErrorMacro("not implemented")},t.getPixelData=(n,r,a,i)=>{Q.vtkErrorMacro("not implemented")},t.createSelector=()=>{Q.vtkErrorMacro("not implemented")}}const dst={size:void 0,selector:void 0};function ere(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,dst,n),e.size||(e.size=[300,300]),Q.getArray(t,e,["size"],2),Q.get(t,e,["selector"]),sa.extend(t,e,n),fst(t,e)}const hst=Q.newInstance(ere,"vtkRenderWindowViewNode");var tre={newInstance:hst,extend:ere};const pst="__getUnderlyingContext";function vst(){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===pst)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:Oz,vtkErrorMacro:Az}=Q,gst={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function Ti(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 E2=0;const nre=[];function yst(){E2++,nre.forEach(t=>t(E2))}function mst(){E2--,nre.forEach(t=>t(E2))}function Nz(t){t.preventDefault()}function bst(t,e){e.classHierarchy.push("vtkOpenGLRenderWindow");const n=vst();t.getViewNodeFactory=()=>e.myFactory,e.canvas.addEventListener("webglcontextlost",Nz,!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=cst.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&&Az("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,Oz("using webgl2"))),c||(Oz("using webgl1"),c=e.canvas.getContext("webgl",u)||e.canvas.getContext("experimental-webgl",u)),new Proxy(c,n)},t.restoreContext=()=>{const u=nc.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){Az("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 ma.CHAR:case ma.SIGNED_CHAR:case ma.UNSIGNED_CHAR:return 1;case c:case f:case ma.UNSIGNED_SHORT:case ma.SHORT:case ma.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 ma.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&&ma.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&&ma.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 ma.UNSIGNED_SHORT:case ma.SHORT:case ma.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 w=m.getContainer().getElementsByTagName("canvas");for(let C=0;C<w.length;C++){const x=w[C],_=x.getBoundingClientRect(),T=_.x-d.x,M=_.y-d.y;f.drawImage(x,T,M)}}})});const v=c.toDataURL(u);c.remove(),t.invokeImageReady(v)}t.captureNextImage=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",{resetCamera:c=!1,size:f=null,scale:d=1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.deleted)return null;e.imageFormat=u;const h=e.notifyStartCaptureImage;return e.notifyStartCaptureImage=!0,e._screenshot={size:f||d!==1?f||e.size.map(p=>p*d):null},new Promise((p,v)=>{const g=t.onImageReady(y=>{if(e._screenshot.size===null)e.notifyStartCaptureImage=h,g.unsubscribe(),e._screenshot.placeHolder&&(e.size=e._screenshot.originalSize,t.modified(),e._screenshot.cameras&&e._screenshot.cameras.forEach(m=>{let{restoreParamsFn:b,arg:w}=m;return b(w)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),p(y);else{const m=document.createElement("img");if(m.style=gst,m.src=y,e._screenshot.placeHolder=e.el.appendChild(m),e.canvas.style.display="none",e._screenshot.originalSize=e.size,e.size=e._screenshot.size,e._screenshot.size=null,t.modified(),c){const b=c!==!0;e._screenshot.cameras=e.renderable.getRenderers().map(w=>{const C=w.getActiveCamera(),x=C.get("focalPoint","position","parallelScale");return{resetCameraArgs:b?{renderer:w}:void 0,resetCameraFn:b?c:w.resetCamera,restoreParamsFn:C.set,arg:JSON.parse(JSON.stringify(x))}}),e._screenshot.cameras.forEach(w=>{let{resetCameraFn:C,resetCameraArgs:x}=w;return C(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"),p=u.getExtension("EXT_texture_filter_anisotropic")||u.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),v=[["Max Vertex Attributes","MAX_VERTEX_ATTRIBS",u.getParameter(u.MAX_VERTEX_ATTRIBS)],["Max Varying Vectors","MAX_VARYING_VECTORS",u.getParameter(u.MAX_VARYING_VECTORS)],["Max Vertex Uniform Vectors","MAX_VERTEX_UNIFORM_VECTORS",u.getParameter(u.MAX_VERTEX_UNIFORM_VECTORS)],["Max Fragment Uniform Vectors","MAX_FRAGMENT_UNIFORM_VECTORS",u.getParameter(u.MAX_FRAGMENT_UNIFORM_VECTORS)],["Max Fragment Texture Image Units","MAX_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_TEXTURE_IMAGE_UNITS)],["Max Vertex Texture Image Units","MAX_VERTEX_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_VERTEX_TEXTURE_IMAGE_UNITS)],["Max Combined Texture Image Units","MAX_COMBINED_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_COMBINED_TEXTURE_IMAGE_UNITS)],["Max 2D Texture Size","MAX_TEXTURE_SIZE",u.getParameter(u.MAX_TEXTURE_SIZE)],["Max Cube Texture Size","MAX_CUBE_MAP_TEXTURE_SIZE",u.getParameter(u.MAX_CUBE_MAP_TEXTURE_SIZE)],["Max Texture Anisotropy","MAX_TEXTURE_MAX_ANISOTROPY_EXT",p&&u.getParameter(p.MAX_TEXTURE_MAX_ANISOTROPY_EXT)],["Point Size Range","ALIASED_POINT_SIZE_RANGE",u.getParameter(u.ALIASED_POINT_SIZE_RANGE).join(" - ")],["Line Width Range","ALIASED_LINE_WIDTH_RANGE",u.getParameter(u.ALIASED_LINE_WIDTH_RANGE).join(" - ")],["Max Viewport Dimensions","MAX_VIEWPORT_DIMS",u.getParameter(u.MAX_VIEWPORT_DIMS).join(" - ")],["Max Renderbuffer Size","MAX_RENDERBUFFER_SIZE",u.getParameter(u.MAX_RENDERBUFFER_SIZE)],["Framebuffer Red Bits","RED_BITS",u.getParameter(u.RED_BITS)],["Framebuffer Green Bits","GREEN_BITS",u.getParameter(u.GREEN_BITS)],["Framebuffer Blue Bits","BLUE_BITS",u.getParameter(u.BLUE_BITS)],["Framebuffer Alpha Bits","ALPHA_BITS",u.getParameter(u.ALPHA_BITS)],["Framebuffer Depth Bits","DEPTH_BITS",u.getParameter(u.DEPTH_BITS)],["Framebuffer Stencil Bits","STENCIL_BITS",u.getParameter(u.STENCIL_BITS)],["Framebuffer Subpixel Bits","SUBPIXEL_BITS",u.getParameter(u.SUBPIXEL_BITS)],["MSAA Samples","SAMPLES",u.getParameter(u.SAMPLES)],["MSAA Sample Buffers","SAMPLE_BUFFERS",u.getParameter(u.SAMPLE_BUFFERS)],["Supported Formats for UByte Render Targets ","UNSIGNED_BYTE RENDER TARGET FORMATS",[c&&Ti(u,u.RGBA,u.UNSIGNED_BYTE)?"RGBA":"",c&&Ti(u,u.RGB,u.UNSIGNED_BYTE)?"RGB":"",c&&Ti(u,u.LUMINANCE,u.UNSIGNED_BYTE)?"LUMINANCE":"",c&&Ti(u,u.ALPHA,u.UNSIGNED_BYTE)?"ALPHA":"",c&&Ti(u,u.LUMINANCE_ALPHA,u.UNSIGNED_BYTE)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Half Float Render Targets","HALF FLOAT RENDER TARGET FORMATS",[f&&Ti(u,u.RGBA,f.HALF_FLOAT_OES)?"RGBA":"",f&&Ti(u,u.RGB,f.HALF_FLOAT_OES)?"RGB":"",f&&Ti(u,u.LUMINANCE,f.HALF_FLOAT_OES)?"LUMINANCE":"",f&&Ti(u,u.ALPHA,f.HALF_FLOAT_OES)?"ALPHA":"",f&&Ti(u,u.LUMINANCE_ALPHA,f.HALF_FLOAT_OES)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Full Float Render Targets","FLOAT RENDER TARGET FORMATS",[c&&Ti(u,u.RGBA,u.FLOAT)?"RGBA":"",c&&Ti(u,u.RGB,u.FLOAT)?"RGB":"",c&&Ti(u,u.LUMINANCE,u.FLOAT)?"LUMINANCE":"",c&&Ti(u,u.ALPHA,u.FLOAT)?"ALPHA":"",c&&Ti(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(;v.length;){const[y,m,b]=v.pop();m&&(g[m]={label:y,value:b})}return e._glInformation=g,g},t.traverseAllPasses=()=>{if(e.renderPasses)for(let u=0;u<e.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=Xne.newInstance();return u.setOpenGLRenderWindow(t),u};function s(){e.canvas.removeEventListener("webglcontextlost",Nz),e.canvas.removeEventListener("webglcontextrestored",t.restoreContext)}t.delete=Q.chain(s,t.delete,t.setViewStream,mst),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 Sst={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 wst(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Sst,n),tre.extend(t,e,n),e.canvas=document.createElement("canvas"),e.canvas.style.width="100%",yst(),e.selector||(e.selector=Xne.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=cZe.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",rre),e.shaderCache=ist.newInstance(),e.shaderCache.setOpenGLRenderWindow(t),e.renderPasses[0]=Iot.newInstance(),Q.event(t,e,"imageReady"),Q.get(t,e,["shaderCache","textureUnitManager","webgl2","useBackgroundImage","activeFramebuffer"]),Q.setGet(t,e,["initialized","context","canvas","renderPasses","notifyStartCaptureImage","defaultToWebgl2","cursor","useOffScreen"]),Q.setGetArray(t,e,["size"],2),Q.event(t,e,"windowResizeEvent"),bst(t,e)}const rre=Q.newInstance(wst,"vtkOpenGLRenderWindow");yB("WebGL",rre);const JM=["setBindGroup","setIndexBuffer","setVertexBuffer","draw","drawIndexed"];function _st(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
  707. ${i}
  708. versus pipeline
  709. ${o}
  710. `),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<JM.length;n++)t[JM[n]]=function(){return e.handle[JM[n]](...arguments)}}const xst={description:null,handle:null,boundPipeline:null,pipelineHash:null,pipelineSettings:null,replaceShaderCodeFunction:null,depthTextureView:null,label:null};function are(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,xst,n),Ka(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=Ln.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=[],Yi(t,e,["boundPipeline","colorTextureViews"]),Va(t,e,["depthTextureView","description","handle","label","pipelineHash","pipelineSettings","replaceShaderCodeFunction"]),_st(t,e)}const Cst=Or(are,"vtkWebGPURenderEncoder");var Eu={newInstance:Cst,extend:are};function Tst(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=zl.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=zl.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=Eu.newInstance({label:"OpaquePass"}),e.renderEncoder.setPipelineHash("op")}}const Est={renderEncoder:null,colorTexture:null,depthTexture:null};function ire(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Est,n),nc.extend(t,e,n),Q.get(t,e,["colorTexture","depthTexture"]),Tst(t,e)}const Mst=Q.newInstance(ire,"vtkWebGPUOpaquePass");var Dst={newInstance:Mst,extend:ire};const kst=`
  711. //VTK::Mapper::Dec
  712. //VTK::TCoord::Dec
  713. //VTK::RenderEncoder::Dec
  714. //VTK::IOStructs::Dec
  715. @fragment
  716. fn main(
  717. //VTK::IOStructs::Input
  718. )
  719. //VTK::IOStructs::Output
  720. {
  721. var output: fragmentOutput;
  722. var tcoord: vec2<i32> = vec2<i32>(i32(input.fragPos.x), i32(input.fragPos.y));
  723. var reveal: f32 = textureLoad(oitpAccumTexture, tcoord, 0).r;
  724. if (reveal == 1.0) { discard; }
  725. var tcolor: vec4<f32> = textureLoad(oitpColorTexture, tcoord, 0);
  726. var total: f32 = max(tcolor.a, 0.01);
  727. var computedColor: vec4<f32> = vec4<f32>(tcolor.r/total, tcolor.g/total, tcolor.b/total, 1.0 - reveal);
  728. //VTK::RenderEncoder::Impl
  729. return output;
  730. }
  731. `;function Rst(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=zl.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=zl.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=Eg.newInstance(),e.fullScreenQuad.setDevice(r.getDevice()),e.fullScreenQuad.setPipelineHash("oitpfsq"),e.fullScreenQuad.setTextureViews(e.translucentRenderEncoder.getColorTextureViews()),e.fullScreenQuad.setFragmentShaderTemplate(kst)}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=Eu.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=Ln.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=Eu.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=Ln.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 Lst={colorTextureView:null,depthTextureView:null};function ore(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Lst,n),nc.extend(t,e,n),Q.setGet(t,e,["colorTextureView","depthTextureView"]),Rst(t,e)}const Ost=Q.newInstance(ore,"vtkWebGPUOrderIndependentTranslucentPass");var Ast={newInstance:Ost,extend:ore};const $p={COMPOSITE_BLEND:0,MAXIMUM_INTENSITY_BLEND:1,MINIMUM_INTENSITY_BLEND:2,AVERAGE_INTENSITY_BLEND:3,ADDITIVE_INTENSITY_BLEND:4,RADON_TRANSFORM_BLEND:5},Nst=`
  732. //VTK::Renderer::Dec
  733. //VTK::Mapper::Dec
  734. //VTK::TCoord::Dec
  735. //VTK::Volume::TraverseDec
  736. //VTK::RenderEncoder::Dec
  737. //VTK::IOStructs::Dec
  738. fn getTextureValue(vTex: texture_3d<f32>, tpos: vec4<f32>) -> f32
  739. {
  740. // todo multicomponent support
  741. return textureSampleLevel(vTex, clampSampler, tpos.xyz, 0.0).r;
  742. }
  743. fn getGradient(vTex: texture_3d<f32>, tpos: vec4<f32>, vNum: i32, scalar: f32) -> vec4<f32>
  744. {
  745. var result: vec4<f32>;
  746. var tstep: vec4<f32> = volumeSSBO.values[vNum].tstep;
  747. result.x = getTextureValue(vTex, tpos + vec4<f32>(tstep.x, 0.0, 0.0, 1.0)) - scalar;
  748. result.y = getTextureValue(vTex, tpos + vec4<f32>(0.0, tstep.y, 0.0, 1.0)) - scalar;
  749. result.z = getTextureValue(vTex, tpos + vec4<f32>(0.0, 0.0, tstep.z, 1.0)) - scalar;
  750. result.w = 0.0;
  751. // divide by spacing as that is our delta
  752. result = result / volumeSSBO.values[vNum].spacing;
  753. // now we have a gradient in unit tcoords
  754. var grad: f32 = length(result.xyz);
  755. if (grad > 0.0)
  756. {
  757. // rotate to View Coords, needed for lighting and shading
  758. var nMat: mat4x4<f32> = rendererUBO.SCVCMatrix * volumeSSBO.values[vNum].planeNormals;
  759. result = nMat * result;
  760. result = result / length(result);
  761. }
  762. // store gradient magnitude in .w
  763. result.w = grad;
  764. return result;
  765. }
  766. fn processVolume(vTex: texture_3d<f32>, vNum: i32, cNum: i32, posSC: vec4<f32>, tfunRows: f32) -> vec4<f32>
  767. {
  768. var outColor: vec4<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);
  769. // convert to tcoords and reject if outside the volume
  770. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*posSC;
  771. if (tpos.x < 0.0 || tpos.y < 0.0 || tpos.z < 0.0 ||
  772. tpos.x > 1.0 || tpos.y > 1.0 || tpos.z > 1.0) { return outColor; }
  773. var scalar: f32 = getTextureValue(vTex, tpos);
  774. var coord: vec2<f32> =
  775. vec2<f32>(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift,
  776. (0.5 + 2.0 * f32(vNum)) / tfunRows);
  777. var color: vec4<f32> = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0);
  778. var gofactor: f32 = 1.0;
  779. var normal: vec4<f32> = vec4<f32>(0.0,0.0,0.0,0.0);
  780. if (componentSSBO.values[cNum].gomin < 1.0 || volumeSSBO.values[vNum].shade[0] > 0.0)
  781. {
  782. normal = getGradient(vTex, tpos, vNum, scalar);
  783. if (componentSSBO.values[cNum].gomin < 1.0)
  784. {
  785. gofactor = clamp(normal.a*componentSSBO.values[cNum].goScale + componentSSBO.values[cNum].goShift,
  786. componentSSBO.values[cNum].gomin, componentSSBO.values[cNum].gomax);
  787. }
  788. }
  789. coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift);
  790. var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r;
  791. if (volumeSSBO.values[vNum].shade[0] > 0.0)
  792. {
  793. color = color*abs(normal.z);
  794. }
  795. outColor = vec4<f32>(color.rgb, gofactor * opacity);
  796. return outColor;
  797. }
  798. // adjust the start and end point of a raycast such that it intersects the unit cube.
  799. // This function is used to take a raycast starting point and step vector
  800. // and numSteps and return the startijng and ending steps for intersecting the
  801. // unit cube. Recall for a 3D texture, the unit cube is the range of texture coordsinates
  802. // that have valid values. So this funtion can be used to take a ray in texture coordinates
  803. // and bound it to intersecting the texture.
  804. //
  805. fn adjustBounds(tpos: vec4<f32>, tstep: vec4<f32>, numSteps: f32) -> vec2<f32>
  806. {
  807. var result: vec2<f32> = vec2<f32>(0.0, numSteps);
  808. var tpos2: vec4<f32> = tpos + tstep*numSteps;
  809. // move tpos to the start of the volume
  810. var adjust: f32 =
  811. min(
  812. max(tpos.x/tstep.x, (tpos.x - 1.0)/tstep.x),
  813. min(
  814. max((tpos.y - 1.0)/tstep.y, tpos.y/tstep.y),
  815. max((tpos.z - 1.0)/tstep.z, tpos.z/tstep.z)));
  816. if (adjust < 0.0)
  817. {
  818. result.x = result.x - adjust;
  819. }
  820. // adjust length to the end
  821. adjust =
  822. max(
  823. min(tpos2.x/tstep.x, (tpos2.x - 1.0)/tstep.x),
  824. max(
  825. min((tpos2.y - 1.0)/tstep.y, tpos2.y/tstep.y),
  826. min((tpos2.z - 1.0)/tstep.z, tpos2.z/tstep.z)));
  827. if (adjust > 0.0)
  828. {
  829. result.y = result.y - adjust;
  830. }
  831. return result;
  832. }
  833. fn getSimpleColor(scalar: f32, vNum: i32, cNum: i32) -> vec4<f32>
  834. {
  835. // how many rows (tfuns) do we have in our tfunTexture
  836. var tfunRows: f32 = f32(textureDimensions(tfunTexture).y);
  837. var coord: vec2<f32> =
  838. vec2<f32>(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift,
  839. (0.5 + 2.0 * f32(vNum)) / tfunRows);
  840. var color: vec4<f32> = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0);
  841. coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift);
  842. var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r;
  843. return vec4<f32>(color.rgb, opacity);
  844. }
  845. fn traverseMax(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  846. {
  847. // convert to tcoords and reject if outside the volume
  848. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  849. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  850. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  851. var tstep: vec4<f32> = tpos2 - tpos;
  852. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  853. // did we hit anything
  854. if (rayBounds.x >= rayBounds.y)
  855. {
  856. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  857. return;
  858. }
  859. tpos = tpos + tstep*rayBounds.x;
  860. var curDist: f32 = rayBounds.x;
  861. var maxVal: f32 = -1.0e37;
  862. loop
  863. {
  864. var scalar: f32 = getTextureValue(vTex, tpos);
  865. if (scalar > maxVal)
  866. {
  867. maxVal = scalar;
  868. }
  869. // increment position
  870. curDist = curDist + 1.0;
  871. tpos = tpos + tstep;
  872. // check if we have reached a terminating condition
  873. if (curDist > rayBounds.y) { break; }
  874. }
  875. // process to get the color and opacity
  876. traverseVals[vNum] = getSimpleColor(maxVal, vNum, cNum);
  877. }
  878. fn traverseMin(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  879. {
  880. // convert to tcoords and reject if outside the volume
  881. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  882. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  883. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  884. var tstep: vec4<f32> = tpos2 - tpos;
  885. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  886. // did we hit anything
  887. if (rayBounds.x >= rayBounds.y)
  888. {
  889. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  890. return;
  891. }
  892. tpos = tpos + tstep*rayBounds.x;
  893. var curDist: f32 = rayBounds.x;
  894. var minVal: f32 = 1.0e37;
  895. loop
  896. {
  897. var scalar: f32 = getTextureValue(vTex, tpos);
  898. if (scalar < minVal)
  899. {
  900. minVal = scalar;
  901. }
  902. // increment position
  903. curDist = curDist + 1.0;
  904. tpos = tpos + tstep;
  905. // check if we have reached a terminating condition
  906. if (curDist > rayBounds.y) { break; }
  907. }
  908. // process to get the color and opacity
  909. traverseVals[vNum] = getSimpleColor(minVal, vNum, cNum);
  910. }
  911. fn traverseAverage(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  912. {
  913. // convert to tcoords and reject if outside the volume
  914. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  915. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  916. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  917. var tstep: vec4<f32> = tpos2 - tpos;
  918. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  919. // did we hit anything
  920. if (rayBounds.x >= rayBounds.y)
  921. {
  922. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  923. return;
  924. }
  925. let ipRange: vec4<f32> = volumeSSBO.values[vNum].ipScalarRange;
  926. tpos = tpos + tstep*rayBounds.x;
  927. var curDist: f32 = rayBounds.x;
  928. var avgVal: f32 = 0.0;
  929. var sampleCount: f32 = 0.0;
  930. loop
  931. {
  932. var sample: f32 = getTextureValue(vTex, tpos);
  933. // right now leave filtering off until WebGL changes get merged
  934. // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y)
  935. // {
  936. avgVal = avgVal + sample;
  937. sampleCount = sampleCount + 1.0;
  938. // }
  939. // increment position
  940. curDist = curDist + 1.0;
  941. tpos = tpos + tstep;
  942. // check if we have reached a terminating condition
  943. if (curDist > rayBounds.y) { break; }
  944. }
  945. if (sampleCount <= 0.0)
  946. {
  947. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  948. }
  949. // process to get the color and opacity
  950. traverseVals[vNum] = getSimpleColor(avgVal/sampleCount, vNum, cNum);
  951. }
  952. fn traverseAdditive(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
  953. {
  954. // convert to tcoords and reject if outside the volume
  955. var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
  956. var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
  957. var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
  958. var tstep: vec4<f32> = tpos2 - tpos;
  959. var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
  960. // did we hit anything
  961. if (rayBounds.x >= rayBounds.y)
  962. {
  963. traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
  964. return;
  965. }
  966. let ipRange: vec4<f32> = volumeSSBO.values[vNum].ipScalarRange;
  967. tpos = tpos + tstep*rayBounds.x;
  968. var curDist: f32 = rayBounds.x;
  969. var sumVal: f32 = 0.0;
  970. loop
  971. {
  972. var sample: f32 = getTextureValue(vTex, tpos);
  973. // right now leave filtering off until WebGL changes get merged
  974. // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y)
  975. // {
  976. sumVal = sumVal + sample;
  977. // }
  978. // increment position
  979. curDist = curDist + 1.0;
  980. tpos = tpos + tstep;
  981. // check if we have reached a terminating condition
  982. if (curDist > rayBounds.y) { break; }
  983. }
  984. // process to get the color and opacity
  985. traverseVals[vNum] = getSimpleColor(sumVal, vNum, cNum);
  986. }
  987. fn composite(rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>) -> vec4<f32>
  988. {
  989. // initial ray position is at the beginning
  990. var rayPosSC: vec4<f32> = minPosSC;
  991. // how many rows (tfuns) do we have in our tfunTexture
  992. var tfunRows: f32 = f32(textureDimensions(tfunTexture).y);
  993. var curDist: f32 = 0.0;
  994. var computedColor: vec4<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);
  995. var sampleColor: vec4<f32>;
  996. //VTK::Volume::TraverseCalls
  997. loop
  998. {
  999. // for each volume, sample and accumulate color
  1000. //VTK::Volume::CompositeCalls
  1001. // increment position
  1002. curDist = curDist + mapperUBO.SampleDistance;
  1003. rayPosSC = rayPosSC + rayStepSC;
  1004. // check if we have reached a terminating condition
  1005. if (curDist > rayLengthSC) { break; }
  1006. if (computedColor.a > 0.98) { break; }
  1007. }
  1008. return computedColor;
  1009. }
  1010. @fragment
  1011. fn main(
  1012. //VTK::IOStructs::Input
  1013. )
  1014. //VTK::IOStructs::Output
  1015. {
  1016. var output: fragmentOutput;
  1017. var rayMax: f32 = textureSampleLevel(maxTexture, clampSampler, input.tcoordVS, 0.0).r;
  1018. var rayMin: f32 = textureSampleLevel(minTexture, clampSampler, input.tcoordVS, 0.0).r;
  1019. // discard empty rays
  1020. if (rayMax <= rayMin) { discard; }
  1021. else
  1022. {
  1023. // compute start and end ray positions in view coordinates
  1024. 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);
  1025. minPosSC = minPosSC * (1.0 / minPosSC.w);
  1026. 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);
  1027. maxPosSC = maxPosSC * (1.0 / maxPosSC.w);
  1028. var rayLengthSC: f32 = distance(minPosSC.xyz, maxPosSC.xyz);
  1029. var rayStepSC: vec4<f32> = (maxPosSC - minPosSC)*(mapperUBO.SampleDistance/rayLengthSC);
  1030. rayStepSC.w = 0.0;
  1031. var computedColor: vec4<f32>;
  1032. //VTK::Volume::Loop
  1033. //VTK::RenderEncoder::Impl
  1034. }
  1035. return output;
  1036. }
  1037. `,Ei=new Float64Array(16),Sc=new Float64Array(16);function Vst(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=Ln.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()===$p.COMPOSITE_BLEND?(u.push(` sampleColor = processVolume(volTexture${d}, ${d}, ${e.rowStarts[d]}, rayPosSC, tfunRows);`),u.push(` computedColor = vec4<f32>(
  1038. sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb,
  1039. (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`)):(c.push(` sampleColor = traverseVals[${d}];`),c.push(` computedColor = vec4<f32>(
  1040. sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb,
  1041. (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`));l=Ln.substitute(l,"//VTK::Volume::CompositeCalls",u).result,l=Ln.substitute(l,"//VTK::Volume::TraverseCalls",c).result,l=Ln.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===$p.COMPOSITE_BLEND?f=!0:h===$p.MAXIMUM_INTENSITY_BLEND?l=Ln.substitute(l,"//VTK::Volume::Loop",[` traverseMax(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===$p.MINIMUM_INTENSITY_BLEND?l=Ln.substitute(l,"//VTK::Volume::Loop",[` traverseMin(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===$p.AVERAGE_INTENSITY_BLEND?l=Ln.substitute(l,"//VTK::Volume::Loop",[` traverseAverage(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===$p.ADDITIVE_INTENSITY_BLEND&&(l=Ln.substitute(l,"//VTK::Volume::Loop",[` traverseAdditive(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result)}f&&(l=Ln.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(),p=h.getMapper(),v=h.getProperty(),g=p.getInputData(),m=(g.getPointData()&&g.getPointData().getScalars()).getNumberOfComponents(),w=v.getIndependentComponents()?m:1;e.numRows+=w}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(),p=h.getMapper(),v=h.getProperty(),g=p.getInputData(),m=(g.getPointData()&&g.getPointData().getScalars()).getNumberOfComponents(),w=v.getIndependentComponents()?m:1;for(let C=0;C<w;++C){const x=v.getRGBTransferFunction(C),_=x.getRange();x.getTable(_[0],_[1],c,u,1);let T=l*c*4;for(let R=0;R<c;++R){o[T+R*4]=255*u[R*3],o[T+R*4+1]=255*u[R*3+1],o[T+R*4+2]=255*u[R*3+2],o[T+R*4+3]=255;for(let L=0;L<4;L++)o[T+(c+R)*4+L]=o[T+R*4+L]}const M=v.getScalarOpacity(C),E=e.sampleDist/v.getScalarOpacityUnitDistance(C),k=M.getRange();M.getTable(k[0],k[1],c,u,1),T=l*c;for(let R=0;R<c;++R)s[T+R]=1-(1-u[R])**E,s[T+R+c]=s[T+R];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 x=0;x<e.volumes.length;x++){const _=e.volumes[x].getRenderable(),T=_.getMapper(),M=T.getInputData();i=Math.max(i,_.getMTime(),M.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 x=0;x<e.volumes.length;x++){const T=e.volumes[x].getRenderable(),M=T.getMapper(),E=M.getInputData();Un(Ei),la(Ei,Ei,o);const k=T.getMatrix();Gr(Sc,k),$i(Sc,Sc),Ha(Ei,Sc,Ei);const R=E.getWorldToIndex();Ha(Ei,R,Ei);const L=E.getDimensions();Un(Sc),Kh(Sc,Sc,[1/L[0],1/L[1],1/L[2]]),Ha(Ei,Sc,Ei);for(let I=0;I<16;I++)s[x*16+I]=Ei[I];$i(Ei,Ei);for(let I=0;I<4;I++)l[x*16+I*4]=Ei[I*4],l[x*16+I*4+1]=Ei[I*4+1],l[x*16+I*4+2]=Ei[I*4+2],l[x*16+I*4+3]=0;u[x*4]=1/L[0],u[x*4+1]=1/L[1],u[x*4+2]=1/L[2],u[x*4+3]=1,c[x*4]=T.getProperty().getShade()?1:0;const A=E.getSpacing();f[x*4]=A[0],f[x*4+1]=A[1],f[x*4+2]=A[2],f[x*4+3]=1;const V=e.textureViews[x+4].getTexture().getScale(),G=M.getIpScalarRange();d[x*4]=G[0]/V,d[x*4+1]=G[1]/V,d[x*4+2]=M.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),p=new Float64Array(e.numRows),v=new Float64Array(e.numRows),g=new Float64Array(e.numRows),y=new Float64Array(e.numRows),m=new Float64Array(e.numRows),b=new Float64Array(e.numRows),w=new Float64Array(e.numRows);let C=0;for(let x=0;x<e.volumes.length;x++){const T=e.volumes[x].getRenderable(),M=T.getMapper(),E=T.getProperty(),k=M.getInputData(),L=(k.getPointData()&&k.getPointData().getScalars()).getNumberOfComponents(),A=E.getIndependentComponents(),V=e.textureViews[x+4].getTexture().getFormat(),G=Ga.getDetailsFromTextureFormat(V),I=G.elementSize===2&&G.sampleType==="float",$={scale:[255],offset:[0]};I&&($.scale[0]=1);for(let N=0;N<L;N++){const P=A?N:0,Y=$.scale[N],re=E.getScalarOpacity(P).getRange(),oe=Y/(re[1]-re[0]),ue=($.offset[N]-re[0])/(re[1]-re[0]);g[C]=ue,v[C]=oe;const fe=E.getRGBTransferFunction(P).getRange();if(p[C]=($.offset[N]-fe[0])/(fe[1]-fe[0]),h[C]=Y/(fe[1]-fe[0]),E.getUseGradientOpacity(P)){const _e=E.getGradientOpacityMinimumOpacity(P),ve=E.getGradientOpacityMaximumOpacity(P);y[C]=_e,m[C]=ve;const he=[E.getGradientOpacityMinimumValue(P),E.getGradientOpacityMaximumValue(P)];w[C]=Y*(ve-_e)/(he[1]-he[0]),b[C]=-he[0]*(ve-_e)/(he[1]-he[0])+_e}else y[C]=1,m[C]=1,w[C]=0,b[C]=1;C++}}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",p),e.componentSSBO.setAllInstancesFromArray("oScale",v),e.componentSSBO.setAllInstancesFromArray("oShift",g),e.componentSSBO.setAllInstancesFromArray("goScale",w),e.componentSSBO.setAllInstancesFromArray("goShift",b),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=vB.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 Bst={volumes:null,rowLength:1024,lastVolumeLength:0};function sre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Bst,n),Eg.extend(t,e,n),e.fragmentShaderTemplate=Nst,e.UBO=Ah.newInstance({label:"mapperUBO"}),e.UBO.addEntry("SampleDistance","f32"),e.SSBO=DO.newInstance({label:"volumeSSBO"}),e.componentSSBO=DO.newInstance({label:"componentSSBO"}),e.lutBuildTime={},Q.obj(e.lutBuildTime,{mtime:0}),Vst(t,e)}const Ist=Q.newInstance(sre,"vtkWebGPUVolumePassFSQ");var $st={newInstance:Ist,extend:sre};const{Representation:Pst}=Jg,{BufferUsage:Vz,PrimitiveTypes:Fst}=zf,eD=[[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]],zst=`
  1042. //VTK::Renderer::Dec
  1043. //VTK::Select::Dec
  1044. //VTK::VolumePass::Dec
  1045. //VTK::TCoord::Dec
  1046. //VTK::RenderEncoder::Dec
  1047. //VTK::Mapper::Dec
  1048. //VTK::IOStructs::Dec
  1049. @fragment
  1050. fn main(
  1051. //VTK::IOStructs::Input
  1052. )
  1053. //VTK::IOStructs::Output
  1054. {
  1055. var output : fragmentOutput;
  1056. //VTK::Select::Impl
  1057. //VTK::TCoord::Impl
  1058. //VTK::VolumePass::Impl
  1059. // use the maximum (closest) of the current value and the zbuffer
  1060. // the blend func will then take the min to find the farthest stop value
  1061. var stopval: f32 = max(input.fragPos.z, textureLoad(opaquePassDepthTexture, vec2<i32>(i32(input.fragPos.x), i32(input.fragPos.y)), 0));
  1062. //VTK::RenderEncoder::Impl
  1063. return output;
  1064. }
  1065. `,Ust=`
  1066. //VTK::Renderer::Dec
  1067. //VTK::Mapper::Dec
  1068. //VTK::TCoord::Dec
  1069. //VTK::RenderEncoder::Dec
  1070. //VTK::IOStructs::Dec
  1071. @fragment
  1072. fn main(
  1073. //VTK::IOStructs::Input
  1074. )
  1075. //VTK::IOStructs::Output
  1076. {
  1077. var output: fragmentOutput;
  1078. var computedColor: vec4<f32> = textureSample(volumePassColorTexture,
  1079. volumePassColorTextureSampler, mapperUBO.tscale*input.tcoordVS);
  1080. //VTK::RenderEncoder::Impl
  1081. return output;
  1082. }
  1083. `;function Gst(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=$st.newInstance(),e.fullScreenQuad.setDevice(n.getDevice()),e.fullScreenQuad.setTextureViews([...e._depthRangeEncoder.getColorTextureViews()])),e._volumeCopyQuad||(e._volumeCopyQuad=Eg.newInstance(),e._volumeCopyQuad.setPipelineHash("volpassfsq"),e._volumeCopyQuad.setDevice(n.getDevice()),e._volumeCopyQuad.setFragmentShaderTemplate(Ust),e._copyUBO=Ah.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]=Os(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=Q.chain(()=>{e._animationRateSubscription&&(e._animationRateSubscription.unsubscribe(),e._animationRateSubscription=null)},t.delete),t.computeTiming=n=>{const r=n.getRenderable().getInteractor();if(e._lastScale==null){const a=e.volumes[0].getRenderable().getMapper();e._lastScale=a.getInitialInteractionScale()||1}e._useSmallViewport=!1,r.isAnimating()&&e._lastScale>1.5&&(e._useSmallViewport=!0),e._colorTexture.resize(n.getCanvas().width,n.getCanvas().height),e._animationRateSubscription||(e._animationRateSubscription=r.onAnimationFrameRateUpdate(()=>{const a=e.volumes[0].getRenderable().getMapper();if(a.getAutoAdjustSampleDistances()){const i=r.getRecentAnimationFrameRate(),o=e._lastScale*r.getDesiredUpdateRate()/i;e._lastScale=o,e._lastScale>400&&(e._lastScale=400)}else e._lastScale=a.getImageSampleDistance()*a.getImageSampleDistance();e._lastScale<1.5&&(e._lastScale=1.5)}))},t.rayCastPass=(n,r,a)=>{const i=e._firstGroup?e._clearEncoder:e._mergeEncoder;i.attachTextureViews(),i.begin(n.getCommandEncoder());let o=e._colorTextureView.getTexture().getWidth(),s=e._colorTextureView.getTexture().getHeight();if(e._useSmallViewport){const l=n.getCanvas(),u=1/Math.sqrt(e._lastScale);e._smallViewportWidth=Math.ceil(u*l.width),e._smallViewportHeight=Math.ceil(u*l.height),o=e._smallViewportWidth,s=e._smallViewportHeight}i.getHandle().setViewport(0,0,o,s,0,1),i.getHandle().setScissorRect(0,0,o,s),e.fullScreenQuad.setWebGPURenderer(r),e.fullScreenQuad.setVolumes(a),e.fullScreenQuad.prepareAndDraw(i),i.end()},t.renderDepthBounds=(n,r)=>{t.updateDepthPolyData(n);const a=e._boundsPoly,i=a.getPoints(),o=a.getPolys();let s={hash:`vp${o.getMTime()}`,usage:Vz.Index,cells:o,numberOfPoints:i.getNumberOfPoints(),primitiveType:Fst.Triangles,representation:Pst.SURFACE};const l=r.getDevice().getBufferManager().getBuffer(s);e._mapper.getVertexInput().setIndexBuffer(l),s={usage:Vz.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+eD[h][0],u[f++]=d+eD[h][1],u[f++]=d+eD[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=Eu.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=Ln.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=zl.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=zl.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=zl.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=Eu.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=Eu.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=Eu.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=Ln.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 Hst={colorTextureView:null,depthTextureView:null,volumes:null};function lre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Hst,n),nc.extend(t,e,n),e._mapper=pB.newInstance(),e._mapper.setFragmentShaderTemplate(zst),e._mapper.getShaderReplacements().set("replaceShaderVolumePass",(r,a,i)=>{a.getShaderDescription("fragment").addBuiltinInput("vec4<f32>","@builtin(position) fragPos")}),e._boundsPoly=Oa.newInstance(),e._lastMTimes=[],Q.setGet(t,e,["colorTextureView","depthTextureView"]),Gst(t,e)}const Wst=Q.newInstance(lre,"vtkWebGPUVolumePass");var jst={newInstance:Wst,extend:lre};const Kst=`
  1084. //VTK::Mapper::Dec
  1085. //VTK::TCoord::Dec
  1086. //VTK::RenderEncoder::Dec
  1087. //VTK::IOStructs::Dec
  1088. @fragment
  1089. fn main(
  1090. //VTK::IOStructs::Input
  1091. )
  1092. //VTK::IOStructs::Output
  1093. {
  1094. var output: fragmentOutput;
  1095. var computedColor: vec4<f32> = clamp(textureSampleLevel(opaquePassColorTexture, finalPassSampler, input.tcoordVS, 0.0),vec4<f32>(0.0),vec4<f32>(1.0));
  1096. //VTK::RenderEncoder::Impl
  1097. return output;
  1098. }
  1099. `;function Yst(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=Dst.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=Ast.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=jst.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=Eu.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=vB.newInstance({label:"finalPassSampler"}),e._fsqSampler.create(n.getDevice(),{minFilter:"linear",magFilter:"linear"}),e._fullScreenQuad=Eg.newInstance(),e._fullScreenQuad.setDevice(n.getDevice()),e._fullScreenQuad.setPipelineHash("fpfsq"),e._fullScreenQuad.setTextureViews([e.opaquePass.getColorTextureView()]),e._fullScreenQuad.setAdditionalBindables([e._fsqSampler]),e._fullScreenQuad.setFragmentShaderTemplate(Kst),e._finalBlitOutputTextureView=wne.newInstance(),e._finalBlitEncoder.setColorTextureView(0,e._finalBlitOutputTextureView)},t.incrementOpaqueActorCount=()=>e.opaqueActorCount++,t.incrementTranslucentActorCount=()=>e.translucentActorCount++,t.addVolume=n=>{e.volumes.push(n)}}const qst={opaqueActorCount:0,translucentActorCount:0,volumes:null,opaqueRenderEncoder:null,translucentPass:null,volumePass:null};function ure(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qst,n),nc.extend(t,e,n),Q.setGet(t,e,["opaquePass","translucentPass","volumePass"]),Yst(t,e)}const Xst=Q.newInstance(ure,"vtkForwardPass");var Zst={newInstance:Xst,extend:ure};const{VtkDataTypes:hd}=Hn;function Qst(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 hd.UNSIGNED_CHAR:a.format+="8unorm";break;case hd.FLOAT:case hd.UNSIGNED_INT:case hd.INT:case hd.DOUBLE:case hd.UNSIGNED_SHORT:case hd.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=zl.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 Jst={handle:null,device:null};function cre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Jst,n),Q.obj(t,e),Q.setGet(t,e,["device"]),Qst(t,e)}const elt=Q.newInstance(cre);var tlt={newInstance:elt,extend:cre};class nlt 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 rlt(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 alt={handle:null,pipelines:null,shaderCache:null,bindGroupLayouts:null,bufferManager:null,textureManager:null};function fre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,alt,n),Ka(t,e),Va(t,e,["handle"]),Yi(t,e,["bufferManager","shaderCache","textureManager"]),e.objectCache=new nlt,e.shaderCache=Ln.newInstance(),e.shaderCache.setDevice(t),e.bindGroupLayouts=[],e.bufferManager=zf.newInstance(),e.bufferManager.setDevice(t),e.textureManager=tlt.newInstance(),e.textureManager.setDevice(t),e.pipelines={},rlt(t,e)}const ilt=Or(fre,"vtkWebGPUDevice");var olt={newInstance:ilt,extend:fre};function slt(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=zl.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=zl.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=Eu.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=Ln.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 llt={selectionRenderEncoder:null,colorTexture:null,depthTexture:null};function dre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,llt,n),nc.extend(t,e,n),Q.get(t,e,["colorTexture","depthTexture"]),slt(t,e)}const ult=Q.newInstance(dre,"vtkWebGPUHardwareSelectionPass");var clt={newInstance:ult,extend:dre};const{SelectionContent:flt,SelectionField:Bz}=RT,{FieldAssociations:Iz}=hp,{vtkErrorMacro:hre}=Q;function dlt(t){return`${t.propID} ${t.compositeID}`}function $z(t,e,n,r){const a=((n.height-e-1)*n.colorBufferWidth+t)*4+r;return n.colorValues[a]}function hv(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=$z(e[0],e[1],t,0);if(l<=0)return null;const u={};u.propID=l;let c=$z(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=hv(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=hv(t,o,0,r),s)||(o[0]=i[0]+l,s=hv(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=hv(t,o,0,r),s)||(o[1]=i[1]+l,s=hv(t,o,0,r),s))return s}return r[0]=e[0],r[1]=e[1],null}function hlt(t,e,n){const r=[];let a=0;return e.forEach((i,o)=>{const s=RT.newInstance();switch(s.setContentType(flt.INDICES),t){case Iz.FIELD_ASSOCIATION_CELLS:s.setFieldType(Bz.CELL);break;case Iz.FIELD_ASSOCIATION_POINTS:s.setFieldType(Bz.POINT);break;default:hre("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 plt(t,e,n,r,a){const i=Math.floor(e),o=Math.floor(n),s=Math.floor(r),l=Math.floor(a),u=new Map,c=[0,0];for(let f=o;f<=l;f++)for(let d=i;d<=s;d++){const p=hv(t,[d,f],0,c);if(p){const v=dlt(p);if(!u.has(v))u.set(v,{info:p,pixelCount:1,attributeIDs:[p.attributeID]});else{const g=u.get(v);g.pixelCount++,t.captureZValues&&p.zValue<g.info.zValue&&(g.info=p),g.attributeIDs.indexOf(p.attributeID)===-1&&g.attributeIDs.push(p.attributeID)}}}return hlt(t.fieldAssociation,u,t)}function vlt(t,e){e.classHierarchy.push("vtkWebGPUHardwareSelector"),t.endSelection=()=>{e.WebGPURenderer.setSelector(null)},t.getSourceDataAsync=async n=>{if(!n||!e._WebGPURenderWindow)return hre("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=Mg.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=Mg.newInstance({label:"hardwareSelectDepthBuffer"}),f.setDevice(i),l.zbufferSizeInBytes=l.height*l.zbufferBufferWidth*4,f.create(l.zbufferSizeInBytes,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST),c.copyTextureToBuffer({texture:s.getHandle(),aspect:"depth-only"},{buffer:f.getHandle(),bytesPerRow:4*l.zbufferBufferWidth,rowsPerImage:l.height},{width:l.width,height:l.height,depthOrArrayLayers:1})),i.submitCommandEncoder(c);const d=u.mapAsync(GPUMapMode.READ);if(e.captureZValues){const h=f.mapAsync(GPUMapMode.READ);await Promise.all([d,h]),l.depthValues=new Float32Array(f.getMappedRange().slice()),f.unmap()}else await d;return l.colorValues=new Uint32Array(u.getMappedRange().slice()),u.unmap(),l.generateSelection=(h,p,v,g)=>plt(l,h,p,v,g),l}}const glt={};function pre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,glt,n),Une.extend(t,e,n),e._selectionPass=clt.newInstance(),Q.setGet(t,e,["_WebGPURenderWindow"]),Q.moveToProtected(t,e,["WebGPURenderWindow"]),vlt(t,e)}const ylt=Q.newInstance(pre,"vtkWebGPUHardwareSelector");var vre={newInstance:ylt,extend:pre};const{vtkErrorMacro:Pz}=Q,mlt={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function blt(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){Pz("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&&Pz("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=olt.newInstance(),e.device.initialize(await e.adapter.requestDevice()),e.deleted){e.device=null;return}e.context=e.canvas.getContext("webgpu")}},t.releaseGraphicsResources=()=>{const o=nc.newInstance();o.setCurrentOperation("Release"),o.traverse(t,null),e.adapter=null,e.device=null,e.context=null,e.initialized=!1,e.initializing=!1},t.setBackgroundImage=o=>{e.bgImage.src=o.src},t.setUseBackgroundImage=o=>{e.useBackgroundImage=o,e.useBackgroundImage&&!e.el.contains(e.bgImage)?e.el.appendChild(e.bgImage):!e.useBackgroundImage&&e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)};async function a(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.imageFormat;const s=document.createElement("canvas"),l=s.getContext("2d");s.width=e.canvas.width,s.height=e.canvas.height;const u=await t.getPixelsAsync(),c=new ImageData(u.colorValues,u.width,u.height);l.putImageData(c,0,0);const f=e.canvas.getBoundingClientRect();e.renderable.getRenderers().forEach(v=>{v.getViewProps().forEach(y=>{if(y.getContainer){const b=y.getContainer().getElementsByTagName("canvas");for(let w=0;w<b.length;w++){const C=b[w],x=C.getBoundingClientRect(),_=x.x-f.x,T=x.y-f.y;l.drawImage(C,_,T)}}})});const p=s.toDataURL(o);s.remove(),t.invokeImageReady(p)}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(p=>{if(e._screenshot.size===null)e.notifyStartCaptureImage=c,h.unsubscribe(),e._screenshot.placeHolder&&(e.size=e._screenshot.originalSize,t.modified(),e._screenshot.cameras&&e._screenshot.cameras.forEach(v=>{let{restoreParamsFn:g,arg:y}=v;return g(y)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),f(p);else{const v=document.createElement("img");if(v.style=mlt,v.src=p,e._screenshot.placeHolder=e.el.appendChild(v),e.canvas.style.display="none",e._screenshot.originalSize=e.size,e.size=e._screenshot.size,e._screenshot.size=null,t.modified(),s){const g=s!==!0;e._screenshot.cameras=e.renderable.getRenderers().map(y=>{const m=y.getActiveCamera(),b=m.get("focalPoint","position","parallelScale");return{resetCameraArgs:g?{renderer:y}:void 0,resetCameraFn:g?s:y.resetCamera,restoreParamsFn:m.set,arg:JSON.parse(JSON.stringify(b))}}),e._screenshot.cameras.forEach(y=>{let{resetCameraFn:m,resetCameraArgs:b}=y;return m(b)})}t.traverseAllPasses()}})})},t.traverseAllPasses=()=>{if(!e.deleted)if(e.initialized){if(e.renderPasses)for(let o=0;o<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=Mg.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 p=0;p<l.width;p++){const v=(h*l.width+p)*4,g=(h*l.colorBufferWidth+p)*4;d[v]=255*Is.fromHalf(l.colorValues[g]),d[v+1]=255*Is.fromHalf(l.colorValues[g+1]),d[v+2]=255*Is.fromHalf(l.colorValues[g+2]),d[v+3]=255*Is.fromHalf(l.colorValues[g+3])}return l.colorValues=d,l},t.createSelector=()=>{const o=vre.newInstance();return o.setWebGPURenderWindow(t),o};const i=t.setSize;t.setSize=(o,s)=>{const l=i(o,s);return l&&t.invokeWindowResizeEvent({width:o,height:s}),l},t.delete=Q.chain(t.delete,t.setViewStream)}const Slt={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 wlt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Slt,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",tre.extend(t,e,n),e.myFactory=urt.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",gre),e.renderPasses[0]=Zst.newInstance(),e.selector||(e.selector=vre.newInstance(),e.selector.setWebGPURenderWindow(t)),Q.event(t,e,"imageReady"),Q.event(t,e,"initialized"),Q.get(t,e,["commandEncoder","device","presentationFormat","useBackgroundImage","xrSupported"]),Q.setGet(t,e,["initialized","context","canvas","device","renderPasses","notifyStartCaptureImage","cursor","useOffScreen"]),Q.setGetArray(t,e,["size"],2),Q.event(t,e,"windowResizeEvent"),blt(t,e)}const gre=Q.newInstance(wlt,"vtkWebGPURenderWindow");yB("WebGPU",gre);const _lt=Bne.extractURLParameters(),xlt={margin:"0",padding:"0",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"},Clt={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 Fz(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function Tlt(t,e){e.classHierarchy.push("vtkFullScreenRenderWindow");const n=document.querySelector("body");e.rootContainer||(e.rootContainer=n),e.container||(e.container=document.createElement("div"),Fz(e.container,e.containerStyle||xlt),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=kne.newInstance(),e.renderer=gB.newInstance(),e.renderWindow.addRenderer(e.renderer),e.apiSpecificRenderWindow=e.renderWindow.newAPISpecificView(_lt.viewAPI??e.defaultViewAPI),e.apiSpecificRenderWindow.setContainer(e.container),e.renderWindow.addView(e.apiSpecificRenderWindow),e.interactor=bB.newInstance(),e.interactor.setInteractorStyle(Vne.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"),Fz(e.controlContainer,e.controlPanelStyle||Clt),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=Q.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 Elt={background:[.32,.34,.43],containerStyle:null,controlPanelStyle:null,listenWindowResize:!0,resizeCallback:null,controllerVisibility:!0};function yre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Elt,n),Q.obj(t,e),Q.get(t,e,["renderWindow","renderer","apiSpecificRenderWindow","interactor","rootContainer","container","controlContainer"]),Tlt(t,e)}const Mlt=Q.newInstance(yre);var eNt={newInstance:Mlt,extend:yre};const Dlt=Bne.extractURLParameters();function klt(t,e){const n=t.invokeResize;delete t.invokeResize,e.renderWindow=kne.newInstance(),e.renderer=gB.newInstance(),e.renderWindow.addRenderer(e.renderer),e._apiSpecificRenderWindow=e.renderWindow.newAPISpecificView(Dlt.viewAPI??e.defaultViewAPI),e.renderWindow.addView(e._apiSpecificRenderWindow),e.interactor=bB.newInstance(),e.interactor.setInteractorStyle(Vne.newInstance()),e.interactor.setView(e._apiSpecificRenderWindow),e.interactor.initialize(),t.setBackground=e.renderer.setBackground,t.setBackground(...e.background),t.resize=()=>{if(e.container){const r=e.container.getBoundingClientRect(),a=window.devicePixelRatio||1;e._apiSpecificRenderWindow.setSize(Math.floor(r.width*a),Math.floor(r.height*a)),n(),e.renderWindow.render()}},t.setContainer=r=>{e.container&&e.interactor.unbindEvents(e.container),e.container=r,e._apiSpecificRenderWindow.setContainer(e.container),e.container&&e.interactor.bindEvents(e.container)},t.delete=Q.chain(t.setContainer,e._apiSpecificRenderWindow.delete,t.delete),e.listenWindowResize&&window.addEventListener("resize",t.resize),t.resize()}const Rlt={background:[.32,.34,.43],listenWindowResize:!0,container:null};function mre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Rlt,n),Q.obj(t,e),Q.get(t,e,["renderWindow","renderer","_apiSpecificRenderWindow","interactor","container"]),Q.moveToProtected(t,e,["_apiSpecificRenderWindow"]),Q.event(t,e,"resize"),klt(t,e)}const Llt=Q.newInstance(mre);var LT={newInstance:Llt,extend:mre};const Olt={RGB:0,HSV:1,LAB:2,DIVERGING:3},Alt={LINEAR:0,LOG10:1};var bre={ColorSpace:Olt,Scale:Alt};const{ColorSpace:Cs,Scale:Sre}=bre,{ScalarMappingTarget:ow}=DT,{vtkDebugMacro:Nlt,vtkErrorMacro:cu,vtkWarningMacro:Vlt}=Q;function zz(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 Blt(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 Uz(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 Ilt(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 Gz(t,e,n,r){const a=[],i=[];vh(e,a),vh(n,i);const o=[],s=[];zz(a,o),zz(i,s);let l=t;if(o[1]>.05&&s[1]>.05&&Ilt(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]=Uz(s,o[0]):s[1]<.05&&o[1]>.05&&(s[2]=Uz(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=[];Blt(u,c),v2(c,r)}function $lt(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 cu("Midpoint outside range [0.0, 1.0]"),-1;if(s<0||s>1)return cu("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 eh([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=[];eh(c,d),eh(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(g2(o)||g2(s)){for(let M=0;M<a;M++)i[M*3+0]=e.nanColor[0],i[M*3+1]=e.nanColor[1],i[M*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,p=0,v=0;const g=[0,0,0],y=[0,0,0];let m=0,b=0;const w=[];let C=e.scale===Sre.LOG10;C&&(C=e.mappingRange[0]>0);let x=0,_=0,T=0;C&&(x=Math.log10(o),_=Math.log10(s));for(let M=0;M<a;M++){const E=3*M;if(a>1?C?(T=x+M/(a-1)*(_-x),h=10**T):h=o+M/(a-1)*(s-o):C?(T=.5*(x+_),h=10**T):h=.5*(o+s),e.discretize){const k=e.mappingRange;if(h>=k[0]&&h<=k[1]){const R=e.numberOfValues,L=k[1]-k[0];if(R<=1)h=k[0]+L/2;else{const A=(h-k[0])/L,V=qJ(R*A);h=k[0]+V/(R-1)*L}}}for(;l<u&&h>e.nodes[l].x;)l++,l<u&&(p=e.nodes[l-1].x,v=e.nodes[l].x,C&&(p=Math.log10(p),v=Math.log10(v)),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,b=e.nodes[l-1].sharpness,m<1e-5&&(m=1e-5),m>.99999&&(m=.99999));if(h>e.mappingRange[1])i[E]=0,i[E+1]=0,i[E+2]=0,e.clamping&&(t.getUseAboveRangeColor()?(i[E]=e.aboveRangeColor[0],i[E+1]=e.aboveRangeColor[1],i[E+2]=e.aboveRangeColor[2]):(i[E]=c,i[E+1]=f,i[E+2]=d));else if(h<e.mappingRange[0]||hee(h)&&h<0)i[E]=0,i[E+1]=0,i[E+2]=0,e.clamping&&(t.getUseBelowRangeColor()?(i[E]=e.belowRangeColor[0],i[E+1]=e.belowRangeColor[1],i[E+2]=e.belowRangeColor[2]):u>0&&(i[E]=e.nodes[0].r,i[E+1]=e.nodes[0].g,i[E+2]=e.nodes[0].b));else if(l===0&&(Math.abs(h-o)<1e-6||e.discretize))u>0?(i[E]=e.nodes[0].r,i[E+1]=e.nodes[0].g,i[E+2]=e.nodes[0].b):(i[E]=0,i[E+1]=0,i[E+2]=0);else{let k=0;if(C?k=(T-p)/(v-p):k=(h-p)/(v-p),k<m?k=.5*k/m:k=.5+.5*(k-m)/(1-m),b>.99)if(k<.5){i[E]=g[0],i[E+1]=g[1],i[E+2]=g[2];continue}else{i[E]=y[0],i[E+1]=y[1],i[E+2]=y[2];continue}if(b<.01){if(e.colorSpace===Cs.RGB)i[E]=(1-k)*g[0]+k*y[0],i[E+1]=(1-k)*g[1]+k*y[1],i[E+2]=(1-k)*g[2]+k*y[2];else if(e.colorSpace===Cs.HSV){const P=[],Y=[];Ay(g,P),Ay(y,Y),e.hSVWrap&&(P[0]-Y[0]>.5||Y[0]-P[0]>.5)&&(P[0]>Y[0]?P[0]-=1:Y[0]-=1);const J=[];J[0]=(1-k)*P[0]+k*Y[0],J[0]<0&&(J[0]+=1),J[1]=(1-k)*P[1]+k*Y[1],J[2]=(1-k)*P[2]+k*Y[2],eh(J,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else if(e.colorSpace===Cs.LAB){const P=[],Y=[];vh(g,P),vh(y,Y);const J=[];J[0]=(1-k)*P[0]+k*Y[0],J[1]=(1-k)*P[1]+k*Y[1],J[2]=(1-k)*P[2]+k*Y[2],v2(J,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else e.colorSpace===Cs.DIVERGING?(Gz(k,g,y,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]):cu("ColorSpace set to invalid value.",e.colorSpace);continue}k<.5?k=.5*(k*2)**(1+10*b):k>.5&&(k=1-.5*((1-k)*2)**(1+10*b));const R=k*k,L=R*k,A=2*L-3*R+1,V=-2*L+3*R,G=L-2*R+k,I=L-R;let $,N;if(e.colorSpace===Cs.RGB)for(let P=0;P<3;P++)$=y[P]-g[P],N=(1-b)*$,i[E+P]=A*g[P]+V*y[P]+G*N+I*N;else if(e.colorSpace===Cs.HSV){const P=[],Y=[];Ay(g,P),Ay(y,Y),e.hSVWrap&&(P[0]-Y[0]>.5||Y[0]-P[0]>.5)&&(P[0]>Y[0]?P[0]-=1:Y[0]-=1);const J=[];for(let re=0;re<3;re++)$=Y[re]-P[re],N=(1-b)*$,J[re]=A*P[re]+V*Y[re]+G*N+I*N,re===0&&J[re]<0&&(J[re]+=1);eh(J,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else if(e.colorSpace===Cs.LAB){const P=[],Y=[];vh(g,P),vh(y,Y);const J=[];for(let re=0;re<3;re++)$=Y[re]-P[re],N=(1-b)*$,J[re]=A*P[re]+V*Y[re]+G*N+I*N;v2(J,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]}else e.colorSpace===Cs.DIVERGING?(Gz(k,g,y,w),i[E]=w[0],i[E+1]=w[1],i[E+2]=w[2]):cu("ColorSpace set to invalid value.");for(let P=0;P<3;P++)i[E+P]=i[E+P]<0?0:i[E+P],i[E+P]=i[E+P]>1?1:i[E+P]}}},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 cu("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?(cu("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 cu("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]){cu("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){Nlt("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){Vlt("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===ow.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===ow.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===ow.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===ow.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=Cs[n.ColorSpace.toUpperCase()],e.colorSpace===void 0&&(cu(`ColorSpace ${n.ColorSpace} not supported, using RGB instead`),e.colorSpace=Cs.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 Plt={clamping:!0,colorSpace:Cs.RGB,hSVWrap:!0,scale:Sre.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 wre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Plt,n),DT.extend(t,e,n),e.table=[],e.nodes=[],e.nanColor=[.5,0,0,1],e.belowRangeColor=[0,0,0,1],e.aboveRangeColor=[1,1,1,1],e.buildTime={},Q.obj(e.buildTime),Q.get(t,e,["buildTime","mappingRange"]),Q.setGet(t,e,["useAboveRangeColor","useBelowRangeColor","colorSpace","discretize","numberOfValues"]),Q.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),Q.getArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"]),$lt(t,e)}const Flt=Q.newInstance(wre,"vtkColorTransferFunction");var xB={newInstance:Flt,extend:wre,...bre};function zlt(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=Oa.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,p=e.phiResolution+(e.endPhi>=180?-1:0),v=e.phiResolution*s+2,g=e.phiResolution*2*e.thetaResolution;let y=0,m=Q.newTypedArray(i,v*3),b=new Float32Array(v*3),w=0,C=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,b[y*3+0]=0,b[y*3+1]=0,b[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,b[y*3+0]=0,b[y*3+1]=0,b[y*3+2]=-1,y++,o++);const x=e.phiResolution-o,_=(f-c)/(e.phiResolution-1);for(let E=0;E<s;E++){const k=l+E*d;for(let R=h;R<p;R++){const L=c+R*_,A=e.radius*Math.sin(L);b[y*3+0]=A*Math.cos(k),b[y*3+1]=A*Math.sin(k),b[y*3+2]=e.radius*Math.cos(L),m[y*3+0]=b[y*3+0]+e.center[0],m[y*3+1]=b[y*3+1]+e.center[1],m[y*3+2]=b[y*3+2]+e.center[2];let V=Math.sqrt(b[y*3+0]*b[y*3+0]+b[y*3+1]*b[y*3+1]+b[y*3+2]*b[y*3+2]);V=V===0?1:V,b[y*3+0]/=V,b[y*3+1]/=V,b[y*3+2]/=V,y++}}const T=x*s;if(Math.abs(l-u)<2*Math.PI&&--s,e.startPhi<=0)for(let E=0;E<s;E++)C[w++]=3,C[w++]=x*E+o,C[w++]=x*(E+1)%T+o,C[w++]=0;if(e.endPhi>=180){const E=x-1+o;for(let k=0;k<s;k++)C[w++]=3,C[w++]=x*k+E,C[w++]=o-1,C[w++]=x*(k+1)%T+E}for(let E=0;E<s;E++)for(let k=0;k<x-1;k++){const R=x*E+k+o,L=R+1,A=(x*(E+1)+k)%T+o+1;e.latLongTessellation?(C[w++]=4,C[w++]=R,C[w++]=L,C[w++]=A,C[w++]=A-1):(C[w++]=3,C[w++]=R,C[w++]=L,C[w++]=A,C[w++]=3,C[w++]=R,C[w++]=A,C[w++]=A-1)}m=m.subarray(0,y*3),a.getPoints().setData(m,3),b=b.subarray(0,y*3);const M=Hn.newInstance({name:"Normals",values:b,numberOfComponents:3});a.getPointData().setNormals(M),C=C.subarray(0,w),a.getPolys().setData(C,1),r[0]=a}}const Ult={radius:.5,latLongTessellation:!1,thetaResolution:8,startTheta:0,endTheta:360,phiResolution:8,startPhi:0,endPhi:180,center:[0,0,0],pointType:"Float64Array"};function _re(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ult,n),Q.obj(t,e),Q.setGet(t,e,["radius","latLongTessellation","thetaResolution","startTheta","endTheta","phiResolution","startPhi","endPhi"]),Q.setGetArray(t,e,["center"],3),Q.algo(t,e,0,1),zlt(t,e)}const Glt=Q.newInstance(_re,"vtkSphereSource");var Hlt={newInstance:Glt,extend:_re};const{vtkWarningMacro:Wlt}=Q;function jlt(t,e){e.classHierarchy.push("vtkLineSource"),t.requestData=(n,r)=>{if(e.deleted)return;const a=r[0],i=a?a.getPoints().getDataType():e.pointType,o=Oa.newInstance(),s=[];if(Fl(e.point2,e.point1,s),Tu(s)<=0){Wlt("Zero-length line definition");return}const l=e.resolution,u=l+1,c=Q.newTypedArray(i,u*3);o.getPoints().setData(c,3);const f=new Uint32Array(u+1);o.getLines().setData(f,1);let d=0,h=0;for(let p=0;p<l+1;p++)h=p/l,c[d*3]=e.point1[0]+h*s[0],c[d*3+1]=e.point1[1]+h*s[1],c[d*3+2]=e.point1[2]+h*s[2],d++;d=0,f[0]=u;for(let p=0;p<u;p++)f[p+1]=p;r[0]=o}}const Klt={resolution:10,point1:[-1,0,0],point2:[1,0,0],pointType:"Float64Array"};function xre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Klt,n),Q.obj(t,e),Q.setGet(t,e,["resolution"]),Q.setGetArray(t,e,["point1","point2"],3),Q.algo(t,e,0,1),jlt(t,e)}const Ylt=Q.newInstance(xre,"vtkLineSource");var Hz={newInstance:Ylt,extend:xre};function qlt(t,e){e.classHierarchy.push("vtkSphereMapper")}const Xlt={scaleArray:null,radius:.05,scaleFactor:1};function Zlt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Xlt,n),za.extend(t,e,n),Q.setGet(t,e,["radius","scaleArray","scaleFactor"]),qlt(t,e)}Q.newInstance(Zlt,"vtkSphereMapper");const Qlt=t=>t,Wz=1e-6;class Cre{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.matrix=Un(new Float64Array(16)),this.tmp=new Float64Array(3),this.angleConv=e?EYe:Qlt}rotateFromDirections(e,n){const r=new Float64Array(3),a=new Float64Array(3),i=new Float64Array(16);Dl(r,e[0],e[1],e[2]),Dl(a,n[0],n[1],n[2]),lf(r,r),lf(a,a);const o=AV(r,a);return o>=1?this:(Gv(this.tmp,r,a),uO(this.tmp)<Wz&&(Gv(this.tmp,[1,0,0],e),uO(this.tmp)<Wz&&Gv(this.tmp,[0,1,0],e)),WQ(i,Math.acos(o),this.tmp),Ha(this.matrix,this.matrix,i),this)}rotate(e,n){return Dl(this.tmp,...n),lf(this.tmp,this.tmp),Es(this.matrix,this.matrix,this.angleConv(e),this.tmp),this}rotateX(e){return kV(this.matrix,this.matrix,this.angleConv(e)),this}rotateY(e){return RV(this.matrix,this.matrix,this.angleConv(e)),this}rotateZ(e){return LV(this.matrix,this.matrix,this.angleConv(e)),this}translate(e,n,r){return Dl(this.tmp,e,n,r),la(this.matrix,this.matrix,this.tmp),this}scale(e,n,r){return Dl(this.tmp,e,n,r),Kh(this.matrix,this.matrix,this.tmp),this}multiply(e){return Ha(this.matrix,this.matrix,e),this}multiply3x3(e){return Ha(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 $i(this.matrix,this.matrix),this}identity(){return Un(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(xb(jJ,this.matrix))return this;const a=r===-1?e.length:n+r*3;for(let i=n;i<a;i+=3)Dl(this.tmp,e[i],e[i+1],e[i+2]),hr(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&&Qa(this.matrix,e),this}}function Jlt(){return new Cre(!0)}function eut(){return new Cre(!1)}var oo={buildFromDegree:Jlt,buildFromRadian:eut};const tut={TRIANGLE:"triangle",STAR:"star",ARROW_4:"arrow4points",ARROW_6:"arrow6points"};var nut={ShapeType:tut};const{ShapeType:sw}=nut;function rut(t,e){const n=Oa.newInstance(),r=Q.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 aut(t,e){const n=Oa.newInstance(),r=Q.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 iut(t,e){const n=Oa.newInstance(),r=Q.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 out(t,e){const n=Oa.newInstance(),r=Q.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 sut(t,e){const n={[sw.TRIANGLE]:out,[sw.STAR]:rut,[sw.ARROW_4]:iut,[sw.ARROW_6]:aut};t.requestData=(r,a)=>{a[0]=n[e.shape](t,e),oo.buildFromRadian().translate(...e.center).rotateFromDirections([1,0,0],e.direction).apply(a[0].getPoints().getData())}}function lut(t){return{base:0,center:[0,0,0],height:1,direction:[1,0,0],pointType:"Float64Array",thickness:0,width:1,...t}}function Tre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,lut(n)),Q.obj(t,e),Q.setGet(t,e,["height","width","thickness","base"]),Q.setGetArray(t,e,["center","direction"],3),Q.algo(t,e,0,1),sut(t,e)}const uut=Q.newInstance(Tre,"vtkArrow2DSource");var tNt={newInstance:uut,extend:Tre};const{vtkErrorMacro:cut}=Q;function fut(t,e){let n=0;return t.map((r,a)=>a===n?(n+=r+1,r):r+e)}function lw(t,e,n,r){t.set(fut(e,n),r)}function dut(t,e){e.classHierarchy.push("vtkAppendPolyData"),t.requestData=(n,r)=>{const a=t.getNumberOfInputPorts();if(!a){cut("No input specified.");return}if(a===1){r[0]=n[0];return}const i=Oa.newInstance();let o=0,s=0,l=1,u=1,c=0,f=0,d=0,h=0,p=!0,v=!0,g=!0;for(let k=0;k<a;k++){const R=n[k];if(!R)continue;const L=R.getPoints().getNumberOfPoints();o+=L,c+=R.getVerts().getNumberOfValues(),f+=R.getLines().getNumberOfValues(),d+=R.getStrips().getNumberOfValues(),h+=R.getPolys().getNumberOfValues(),L&&(u&&(u=0,s=R.getPoints().getDataType()),l=R.getPoints().getDataType(),s=s>l?s:l);const A=R.getPointData();A?(p=p&&A.getNormals()!==null,v=v&&A.getTCoords()!==null,g=g&&A.getScalars()!==null):(p=!1,v=!1,g=!1)}e.outputPointsPrecision===S2.SINGLE?s=ma.FLOAT:e.outputPointsPrecision===S2.DOUBLE&&(s=ma.DOUBLE);const y=m1.newInstance({dataType:s});y.setNumberOfPoints(o);const m=y.getData(),b=new Uint32Array(c),w=new Uint32Array(f),C=new Uint32Array(d),x=new Uint32Array(h);let _=null,T=null,M=null;const E=n[a-1];if(p){const k=E.getPointData().getNormals();_=Hn.newInstance({numberOfComponents:3,numberOfTuples:o,size:3*o,dataType:k.getDataType(),name:k.getName()})}if(v){const k=E.getPointData().getTCoords();T=Hn.newInstance({numberOfComponents:2,numberOfTuples:o,size:2*o,dataType:k.getDataType(),name:k.getName()})}if(g){const k=E.getPointData().getScalars();M=Hn.newInstance({numberOfComponents:k.getNumberOfComponents(),numberOfTuples:o,size:o*k.getNumberOfComponents(),dataType:k.getDataType(),name:k.getName()})}o=0,c=0,f=0,d=0,h=0;for(let k=0;k<a;k++){const R=n[k];m.set(R.getPoints().getData(),o*3),lw(b,R.getVerts().getData(),o,c),c+=R.getVerts().getNumberOfValues(),lw(w,R.getLines().getData(),o,f),f+=R.getLines().getNumberOfValues(),lw(C,R.getStrips().getData(),o,d),d+=R.getStrips().getNumberOfValues(),lw(x,R.getPolys().getData(),o,h),h+=R.getPolys().getNumberOfValues();const L=R.getPointData();if(p){const A=L.getNormals();_.getData().set(A.getData(),o*3)}if(v){const A=L.getTCoords();T.getData().set(A.getData(),o*2)}if(g){const A=L.getScalars();M.getData().set(A.getData(),o*M.getNumberOfComponents())}o+=R.getPoints().getNumberOfPoints()}i.setPoints(y),i.getVerts().setData(b),i.getLines().setData(w),i.getStrips().setData(C),i.getPolys().setData(x),_&&i.getPointData().setNormals(_),T&&i.getPointData().setTCoords(T),M&&i.getPointData().setScalars(M),r[0]=i}}const hut={outputPointsPrecision:S2.DEFAULT};function Ere(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hut,n),Q.setGet(t,e,["outputPointsPrecision"]),Q.obj(t,e),Q.algo(t,e,1,1),dut(t,e)}const put=Q.newInstance(Ere,"vtkAppendPolyData");var Mre={newInstance:put,extend:Ere};function vut(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=Q.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 p=0;p<e.resolution;p++)c++,f[c*3+0]=s,f[c*3+1]=e.radius*Math.cos(p*o),f[c*3+2]=e.radius*Math.sin(p*o),e.capping&&(h[e.resolution-d+++1]=c);for(let p=0;p<e.resolution;p++)h[d++]=3,h[d++]=0,h[d++]=p+1,h[d++]=p+2>e.resolution?1:p+2;oo.buildFromRadian().translate(...e.center).rotateFromDirections([1,0,0],e.direction).apply(f),i=Oa.newInstance(),i.getPoints().setData(f,3),i.getPolys().setData(h,1),a[0]=i}t.requestData=n}const gut={height:1,radius:.5,resolution:6,center:[0,0,0],direction:[1,0,0],capping:!0,pointType:"Float64Array"};function Dre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,gut,n),Q.obj(t,e),Q.setGet(t,e,["height","radius","resolution","capping"]),Q.setGetArray(t,e,["center","direction"],3),Q.algo(t,e,0,1),vut(t,e)}const yut=Q.newInstance(Dre,"vtkConeSource");var LO={newInstance:yut,extend:Dre};function mut(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=Q.newTypedArray(e.pointType,s*3);let c=0;const f=new Uint32Array(l),d=new Float32Array(s*3),h=Hn.newInstance({numberOfComponents:3,values:d,name:"Normals"}),p=new Float32Array(s*2),v=Hn.newInstance({numberOfComponents:2,values:p,name:"TCoords"}),g=[0,0,0],y=[0,0,0],m=[0,0,0],b=[0,0,0],w=[0,0],C=[0,0],x=e.otherRadius==null?e.radius:e.otherRadius;for(let _=0;_<e.resolution;_++){g[0]=Math.cos(_*o+e.initAngle),y[0]=g[0],m[0]=e.radius*g[0]+e.center[0],b[0]=m[0],w[0]=Math.abs(2*_/e.resolution-1),C[0]=w[0],m[1]=.5*e.height+e.center[1],b[1]=-.5*e.height+e.center[1],w[1]=0,C[1]=1,g[2]=-Math.sin(_*o+e.initAngle),y[2]=g[2],m[2]=x*g[2]+e.center[2],b[2]=m[2];const T=2*_;for(let M=0;M<3;M++)d[T*3+M]=g[M],d[(T+1)*3+M]=y[M],u[T*3+M]=m[M],u[(T+1)*3+M]=b[M],M<2&&(p[T*2+M]=w[M],p[(T+1)*2+M]=C[M])}for(let _=0;_<e.resolution;_++){f[c++]=4,f[c++]=2*_,f[c++]=2*_+1;const T=(2*_+3)%(2*e.resolution);f[c++]=T,f[c++]=T-1}if(e.capping){for(let _=0;_<e.resolution;_++){m[0]=e.radius*Math.cos(_*o+e.initAngle),b[0]=m[0],w[0]=m[0],C[0]=m[0],m[0]+=e.center[0],b[0]+=e.center[0],g[1]=1,y[1]=-1,m[1]=.5*e.height+e.center[1],b[1]=-.5*e.height+e.center[1],m[2]=-x*Math.sin(_*o+e.initAngle),b[2]=m[2],w[1]=m[2],C[1]=m[2],m[2]+=e.center[2],b[2]+=e.center[2];const T=2*e.resolution+_,M=3*e.resolution+e.resolution-_-1;for(let E=0;E<3;E++)d[3*T+E]=g[E],d[3*M+E]=y[E],u[3*T+E]=m[E],u[3*M+E]=b[E],E<2&&(p[2*T+E]=w[E],p[2*M+E]=C[E])}f[c++]=e.resolution;for(let _=0;_<e.resolution;_++)f[c++]=2*e.resolution+_;f[c++]=e.resolution;for(let _=0;_<e.resolution;_++)f[c++]=3*e.resolution+_}oo.buildFromRadian().translate(...e.center).rotateFromDirections([0,1,0],e.direction).translate(...e.center.map(_=>_*-1)).apply(u),i=Oa.newInstance(),i.getPoints().setData(u,3),i.getPolys().setData(f,1),i.getPointData().setNormals(h),i.getPointData().setTCoords(v),a[0]=i}t.requestData=n}const but={height:1,initAngle:0,radius:1,resolution:6,center:[0,0,0],direction:[0,1,0],capping:!0,pointType:"Float64Array"};function kre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,but,n),Q.obj(t,e),Q.setGet(t,e,["height","initAngle","otherRadius","radius","resolution","capping"]),Q.setGetArray(t,e,["center","direction"],3),Q.algo(t,e,0,1),mut(t,e)}const Sut=Q.newInstance(kre,"vtkCylinderSource");var wut={newInstance:Sut,extend:kre};function _ut(t,e){e.classHierarchy.push("vtkArrowSource");function n(r,a){if(e.deleted)return;const i=wut.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();oo.buildFromDegree().rotateZ(-90).apply(s).apply(l);const u=LO.newInstance();u.setResolution(e.tipResolution),u.setHeight(e.tipLength),u.setRadius(e.tipRadius);const c=u.getOutputData(),f=c.getPoints().getData();oo.buildFromRadian().translate(1-e.tipLength*.5,0,0).apply(f);const d=Mre.newInstance();d.setInputData(o),d.addInputData(c);const h=d.getOutputData(),p=h.getPoints().getData();oo.buildFromRadian().translate(-.5+e.tipLength*.5,0,0).apply(p),e.invert?(oo.buildFromRadian().rotateFromDirections([1,0,0],e.direction).scale(-1,-1,-1).apply(p),a[0]=h):(oo.buildFromRadian().rotateFromDirections([1,0,0],e.direction).scale(1,1,1).apply(p),a[0]=d.getOutputData())}t.requestData=n}const xut={tipResolution:6,tipRadius:.1,tipLength:.35,shaftResolution:6,shaftRadius:.03,invert:!1,direction:[1,0,0],pointType:"Float64Array"};function Rre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,xut,n),Q.obj(t,e),Q.setGet(t,e,["tipResolution","tipRadius","tipLength","shaftResolution","shaftRadius","invert"]),Q.setGetArray(t,e,["direction"],3),Q.algo(t,e,0,1),_ut(t,e)}const Cut=Q.newInstance(Rre,"vtkArrowSource");var tD={newInstance:Cut,extend:Rre};function nD(t){const e=t.getPoints().getBounds(),n=[-(e[0]+e[1])*.5,-(e[2]+e[3])*.5,-(e[4]+e[5])*.5];oo.buildFromDegree().translate(...n).apply(t.getPoints().getData())}function rD(t,e){const n=t.getPoints().getBounds(),r=[0,0,0];r[e]=-n[e*2],oo.buildFromDegree().translate(...r).apply(t.getPoints().getData())}function aD(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(Hn.newInstance({name:"color",numberOfComponents:3,values:i}))}function Tut(t,e){e.classHierarchy.push("vtkAxesActor");const n=za.newInstance();t.setMapper(n),t.update=()=>{const l=tD.newInstance({direction:[1,0,0],...e.config}).getOutputData();e.config.recenter?nD(l):rD(l,0),aD(l,...e.xAxisColor);const u=tD.newInstance({direction:[0,1,0],...e.config}).getOutputData();e.config.recenter?nD(u):rD(u,1),aD(u,...e.yAxisColor);const c=tD.newInstance({direction:[0,0,1],...e.config}).getOutputData();e.config.recenter?nD(c):rD(c,2),aD(c,...e.zAxisColor);const f=Mre.newInstance();f.setInputData(l),f.addInputData(u),f.addInputData(c),n.setInputConnection(f.getOutputPort())},t.update();const r=Q.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 Eut={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 Mut(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Eut,n),Pa.extend(t,e,n),Q.setGet(t,e,["config"]),Q.setGetArray(t,e,["xAxisColor","yAxisColor","zAxisColor"],3,255),Tut(t,e)}Q.newInstance(Mut,"vtkAxesActor");const Dut=[2,0,1,2,2,3,2,4,5,2,6,7,2,0,2,2,1,3,2,4,6,2,5,7,2,0,4,2,1,5,2,2,6,2,3,7],kut=[4,0,1,3,2,4,4,6,7,5,4,8,10,11,9,4,12,13,15,14,4,16,18,19,17,4,20,21,23,22];function Rut(t,e){e.classHierarchy.push("vtkCubeSource");function n(r,a){if(e.deleted)return;const i=Oa.newInstance();a[0]=i;const o=24,s=Q.newTypedArray(e.pointType,o*3);i.getPoints().setData(s,3);const l=Q.newTypedArray(e.pointType,o*3),u=Hn.newInstance({name:"Normals",values:l,numberOfComponents:3});i.getPointData().setNormals(u);let c=2;e.generate3DTextureCoordinates===!0&&(c=3);const f=Q.newTypedArray(e.pointType,o*c),d=Hn.newInstance({name:"TextureCoordinates",values:f,numberOfComponents:c});i.getPointData().setTCoords(d);const h=[0,0,0],p=[0,0,0],v=[0,0];let g=0;h[0]=-e.xLength/2,p[0]=-1,p[1]=0,p[2]=0;for(let y=0;y<2;y++){h[1]=-e.yLength/2;for(let m=0;m<2;m++){v[1]=h[1]+.5,h[2]=-e.zLength/2;for(let b=0;b<2;b++)v[0]=(h[2]+.5)*(1-2*y),s[g*3]=h[0],s[g*3+1]=h[1],s[g*3+2]=h[2],l[g*3]=p[0],l[g*3+1]=p[1],l[g*3+2]=p[2],c===2?(f[g*c]=v[0],f[g*c+1]=v[1]):(f[g*c]=2*y-1,f[g*c+1]=2*m-1,f[g*c+2]=2*b-1),g++,h[2]+=e.zLength;h[1]+=e.yLength}h[0]+=e.xLength,p[0]+=2}h[1]=-e.yLength/2,p[1]=-1,p[0]=0,p[2]=0;for(let y=0;y<2;y++){h[0]=-e.xLength/2;for(let m=0;m<2;m++){v[0]=(h[0]+.5)*(2*y-1),h[2]=-e.zLength/2;for(let b=0;b<2;b++)v[1]=(h[2]+.5)*-1,s[g*3]=h[0],s[g*3+1]=h[1],s[g*3+2]=h[2],l[g*3]=p[0],l[g*3+1]=p[1],l[g*3+2]=p[2],c===2?(f[g*c]=v[0],f[g*c+1]=v[1]):(f[g*c]=2*m-1,f[g*c+1]=2*y-1,f[g*c+2]=2*b-1),g++,h[2]+=e.zLength;h[0]+=e.xLength}h[1]+=e.yLength,p[1]+=2}h[2]=-e.zLength/2,p[2]=-1,p[0]=0,p[1]=0;for(let y=0;y<2;y++){h[1]=-e.yLength/2;for(let m=0;m<2;m++){v[1]=h[1]+.5,h[0]=-e.xLength/2;for(let b=0;b<2;b++)v[0]=(h[0]+.5)*(2*y-1),s[g*3]=h[0],s[g*3+1]=h[1],s[g*3+2]=h[2],l[g*3]=p[0],l[g*3+1]=p[1],l[g*3+2]=p[2],c===2?(f[g*c]=v[0],f[g*c+1]=v[1]):(f[g*c]=2*b-1,f[g*c+1]=2*m-1,f[g*c+2]=2*y-1),g++,h[0]+=e.xLength;h[1]+=e.yLength}h[2]+=e.zLength,p[2]+=2}if(e.rotations&&oo.buildFromDegree().rotateX(e.rotations[0]).rotateY(e.rotations[1]).rotateZ(e.rotations[2]).apply(s).apply(l),e.center&&oo.buildFromRadian().translate(...e.center).apply(s),e.matrix){oo.buildFromRadian().setMatrix(e.matrix).apply(s);const y=[e.matrix[0],e.matrix[1],e.matrix[2],0,e.matrix[4],e.matrix[5],e.matrix[6],0,e.matrix[8],e.matrix[9],e.matrix[10],0,0,0,0,1];oo.buildFromRadian().setMatrix(y).apply(l)}e.generateFaces?i.getPolys().deepCopy(e._polys):i.getPolys().initialize(),e.generateLines?(i.getLines().deepCopy(e._lineCells),i.getPointData().setNormals(null)):i.getLines().initialize(),i.modified()}t.setBounds=function(){let r=[];if(Array.isArray(arguments.length<=0?void 0:arguments[0]))r=arguments.length<=0?void 0:arguments[0];else for(let a=0;a<arguments.length;a++)r.push(a<0||arguments.length<=a?void 0:arguments[a]);r.length===6&&(t.setXLength(r[1]-r[0]),t.setYLength(r[3]-r[2]),t.setZLength(r[5]-r[4]),t.setCenter([(r[0]+r[1])/2,(r[2]+r[3])/2,(r[4]+r[5])/2]))},t.requestData=n}const Lut={xLength:1,yLength:1,zLength:1,pointType:"Float64Array",generate3DTextureCoordinates:!1,generateFaces:!0,generateLines:!1};function Lre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Lut,n),Q.obj(t,e),Q.setGet(t,e,["xLength","yLength","zLength","generate3DTextureCoordinates","generateFaces","generateLines"]),Q.setGetArray(t,e,["center","rotations"],3),Q.setGetArray(t,e,["matrix"],16),e._polys=w2.newInstance({values:Uint16Array.from(kut)}),e._lineCells=w2.newInstance({values:Uint16Array.from(Dut)}),Q.moveToProtected(t,e,["polys","lineCells"]),Q.algo(t,e,0,1),Rut(t,e)}const Out=Q.newInstance(Lre,"vtkCubeSource");var Aut={newInstance:Out,extend:Lre};function Ore(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0,0];const[n,r,a,i]=e,s=t.getContext("2d").getImageData(n,r,a||t.width,i||t.height),l=ste.newInstance({type:"vtkImageData"});l.setOrigin(0,0,0),l.setSpacing(1,1,1),l.setExtent(0,(a||t.width)-1,0,(i||t.height)-1,0,0);const u=Hn.newInstance({numberOfComponents:4,values:new Uint8Array(s.data.buffer)});return u.setName("scalars"),l.getPointData().setScalars(u),l}function Nut(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{flipX:!1,flipY:!1,rotate:0};const n=document.createElement("canvas");n.width=t.width,n.height=t.height;const r=n.getContext("2d"),{flipX:a,flipY:i,rotate:o}=e;return r.translate(n.width/2,n.height/2),r.scale(a?-1:1,i?-1:1),r.rotate(o*Math.PI/180),r.drawImage(t,-t.width/2,-t.height/2),Ore(n)}var Vut={canvasToImageData:Ore,imageToImageData:Nut};const But={xPlus:0,xMinus:1,yPlus:2,yMinus:3,zPlus:4,zMinus:5};function Iut(t,e){e.classHierarchy.push("vtkAnnotatedCubeActor"),e.xPlusFaceProperty={...e.xPlusFaceProperty},e.xMinusFaceProperty={...e.xMinusFaceProperty},e.yPlusFaceProperty={...e.yPlusFaceProperty},e.yMinusFaceProperty={...e.yMinusFaceProperty},e.zPlusFaceProperty={...e.zPlusFaceProperty},e.zMinusFaceProperty={...e.zMinusFaceProperty};let n=null;const r=document.createElement("canvas"),a=za.newInstance(),i=Eb.newInstance();i.setInterpolate(!0);function o(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;u&&Object.assign(e[`${l}FaceProperty`],u);const c={...e.defaultStyle,...e[`${l}FaceProperty`]};r.width=c.resolution,r.height=c.resolution;const f=r.getContext("2d");f.fillStyle=c.faceColor,f.fillRect(0,0,r.width,r.height),c.edgeThickness>0&&(f.strokeStyle=c.edgeColor,f.lineWidth=c.edgeThickness*r.width,f.strokeRect(0,0,r.width,r.height)),f.save(),f.translate(0,r.height),f.scale(1,-1),f.translate(r.width/2,r.height/2),f.rotate(-Math.PI*(c.faceRotation/180));const d=c.fontSizeScale(c.resolution);f.fillStyle=c.fontColor,f.textAlign="center",f.textBaseline="middle",f.font=`${c.fontStyle} ${d}px "${c.fontFamily}"`,f.fillText(c.text,0,0),f.restore();const h=Vut.canvasToImageData(r);i.setInputData(h,But[l]),t.modified()}function s(){n=Aut.newInstance({generate3DTextureCoordinates:!0}),a.setInputConnection(n.getOutputPort()),o("xPlus"),o("xMinus"),o("yPlus"),o("yMinus"),o("zPlus"),o("zMinus")}t.setDefaultStyle=l=>{e.defaultStyle={...e.defaultStyle,...l},s()},t.setXPlusFaceProperty=l=>o("xPlus",l),t.setXMinusFaceProperty=l=>o("xMinus",l),t.setYPlusFaceProperty=l=>o("yPlus",l),t.setYMinusFaceProperty=l=>o("yMinus",l),t.setZPlusFaceProperty=l=>o("zPlus",l),t.setZMinusFaceProperty=l=>o("zMinus",l),s(),a.setInputConnection(n.getOutputPort()),t.setMapper(a),t.addTexture(i)}const $ut={defaultStyle:{text:"",faceColor:"white",faceRotation:0,fontFamily:"Arial",fontColor:"black",fontStyle:"normal",fontSizeScale:t=>t/1.8,edgeThickness:.1,edgeColor:"black",resolution:200}};function Put(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,$ut,n),Pa.extend(t,e,n),Q.get(t,e,["defaultStyle","xPlusFaceProperty","xMinusFaceProperty","yPlusFaceProperty","yMinusFaceProperty","zPlusFaceProperty","zMinusFaceProperty"]),Iut(t,e)}Q.newInstance(Put,"vtkAnnotatedCubeActor");const Fut={TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT",BOTTOM_LEFT:"BOTTOM_LEFT",BOTTOM_RIGHT:"BOTTOM_RIGHT"};var Are={Corners:Fut};const{vtkErrorMacro:iD}=Q,{Corners:uw}=Are;function zut(t,e){e.classHierarchy.push("vtkOrientationMarkerWidget");const n={...t},r=[],a=gB.newInstance(),i=new ResizeObserver(d=>{t.updateViewport()});let o=null,s=null,l=null,u=null,c=null;function f(){e._interactor.isAnimating()||t.updateMarkerOrientation()}e._onParentRendererChanged=()=>t.updateViewport(),t.computeViewport=()=>{const d=e.parentRenderer||e._interactor.getCurrentRenderer(),[h,p,v,g]=d.getViewport(),y=e._interactor.getView(),m=y.getSize(),[b,w]=y.getViewportSize(d),C=Math.min(b,w);let x=e.viewportSize*C;x=Math.max(Math.min(e.minPixelSize,C),Math.min(e.maxPixelSize,x));const _=x/m[0],T=x/m[1];switch(e.viewportCorner){case uw.TOP_LEFT:return[h,g-T,h+_,g];case uw.TOP_RIGHT:return[v-_,g-T,v,g];case uw.BOTTOM_LEFT:return[h,p,h+_,p+T];case uw.BOTTOM_RIGHT:return[v-_,p,v,p+T];default:return iD("Invalid widget corner"),null}},t.updateViewport=()=>{e.enabled&&(a.setViewport(...t.computeViewport()),e._interactor.render())},t.updateMarkerOrientation=()=>{const h=(e.parentRenderer||e._interactor.getCurrentRenderer()).getActiveCamera();if(!h)return;const p=h.getReferenceByName("position"),v=h.getReferenceByName("focalPoint"),g=h.getReferenceByName("viewUp");if(r[0]!==p[0]||r[1]!==p[1]||r[2]!==p[2]||r[3]!==v[0]||r[4]!==v[1]||r[5]!==v[2]||r[6]!==g[0]||r[7]!==g[1]||r[8]!==g[2]){r[0]=p[0],r[1]=p[1],r[2]=p[2],r[3]=v[0],r[4]=v[1],r[5]=v[2],r[6]=g[0],r[7]=g[1],r[8]=g[2];const y=a.getActiveCamera();y.setPosition(p[0],p[1],p[2]),y.setFocalPoint(v[0],v[1],v[2]),y.setViewUp(g[0],g[1],g[2]),a.resetCamera()}},t.setEnabled=d=>{var h,p;if(d){if(e.enabled)return;if(!e.actor){iD("Must set actor before enabling orientation marker.");return}if(!e._interactor){iD("Must set interactor before enabling orientation marker.");return}const v=e.parentRenderer||e._interactor.getCurrentRenderer(),g=v.getRenderWindow();g.addRenderer(a),g.getNumberOfLayers()<2&&g.setNumberOfLayers(2),a.setLayer(g.getNumberOfLayers()-1),a.setInteractive(!1),a.addViewProp(e.actor),e.actor.setVisibility(!0),o=v.onEvent(y=>{y.type==="ActiveCameraEvent"&&(s&&s.unsubscribe(),s=y.camera.onModified(f))}),s=v.getActiveCamera().onModified(f),l=e._interactor.onAnimation(t.updateMarkerOrientation),u=e._interactor.onEndAnimation(t.updateMarkerOrientation),i.observe(e._interactor.getView().getCanvas()),t.updateViewport(),t.updateMarkerOrientation(),e.enabled=!0}else{if(!e.enabled)return;e.enabled=!1,i.disconnect(),o.unsubscribe(),o=null,s.unsubscribe(),s=null,l.unsubscribe(),l=null,u.unsubscribe(),u=null,e.actor.setVisibility(!1),a.removeViewProp(e.actor);const v=(p=(h=e._interactor)==null?void 0:h.findPokedRenderer())==null?void 0:p.getRenderWindow();v&&v.removeRenderer(a)}t.modified()},t.setViewportCorner=d=>{d!==e.viewportCorner&&(e.viewportCorner=d,t.updateViewport())},t.setViewportSize=d=>{const h=Math.min(1,Math.max(0,d));h!==e.viewportSize&&(e.viewportSize=h,t.updateViewport())},t.setActor=d=>{const h=e.enabled;t.setEnabled(!1),e.actor=d,t.setEnabled(h)},t.getRenderer=()=>a,t.delete=()=>{n.delete(),c&&(c.unsubscribe(),c=null),o&&(o.unsubscribe(),o=null),s&&(s.unsubscribe(),s=null),l&&(l.unsubscribe(),l=null),u&&(u.unsubscribe(),u=null),i.disconnect()},c=t.onModified(t.updateViewport)}const Uut={viewportCorner:Are.Corners.BOTTOM_LEFT,viewportSize:.2,minPixelSize:50,maxPixelSize:200,parentRenderer:null};function Gut(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Uut,n),Q.obj(t,e),Q.get(t,e,["enabled","viewportCorner","viewportSize"]),Q.setGet(t,e,["_interactor","minPixelSize","maxPixelSize","parentRenderer"]),Q.get(t,e,["actor"]),Q.moveToProtected(t,e,["interactor"]),zut(t,e)}Q.newInstance(Gut,"vtkOrientationMarkerWidget");class Hut{constructor(){this.isJg=!1,this.isSelectNode=!1,this.isSelectPipe=!1,this.selectObj=null,this.epageX=null,this.epageY=null,this.selectJgPointId=0,this.validNodes=[],this.pipes=[],this.renderWindowWith=null,this.renderer=null,this.renderWindow=null,this.lastActor=null,this.nodeActors=[],this.pipeActors=[],this.interactor=null,this.apiSpecificRenderWindow=null,this.hardwareSelector=null,this.polyData=Oa.newInstance(),this.mapper=za.newInstance(),this.actor=Pa.newInstance(),this.actor.getProperty().setRepresentation(ti.SURFACE),this.actor.getProperty().setColor(Fd),this.mapper.setInputData(this.polyData),this.actor.setMapper(this.mapper),this.actor2=Pa.newInstance(),this.actor2.getProperty().setRepresentation(ti.POINTS),this.actor2.getProperty().setColor(Fd),this.actor2.getProperty().setPointSize(2),this.actor2.setMapper(this.mapper),this.jgActor=Pa.newInstance(),this.jgMapper=za.newInstance(),this.jgActor.getProperty().setRepresentation(ti.SURFACE),this.scalarBarActor=Mb.newInstance(),this.scalarBarActor.setGenerateTicks(this.generateTicks(5)),this.scalarBarActor.setDrawAboveRangeSwatch(!0),this.scalarBarActor.setDrawNanAnnotation(!1),this.scalarBarActor.setBoxPosition([1,0]);const e=xB.newInstance();e.addRGBPoint(0,0,0,1),e.addRGBPoint(1,0,1,.5),e.addRGBPoint(2,0,1,0),e.addRGBPoint(3,1,.5,0),e.addRGBPoint(4,1,0,0),this.jgMapper.setLookupTable(e);const n=this.jgMapper.getLookupTable();this.scalarBarActor.setScalarsToColors(n),this.jgActor.setMapper(this.jgMapper),this.ways=[],this.wayActors=[]}waysInit(e){this.renderWindowWith.resize(),this.ways=e,this.ways.forEach(n=>{let r=[],a=[];for(let i=0;i<n.nrows.length-1;i++)r.push(n.nrows[i]);for(let i=1;i<n.nrows.length;i++)a.push(n.nrows[i]);for(let i=0;i<a.length;i++){const o=Hz.newInstance();let s=r[i],l=a[i],u=[parseFloat(s.x),parseFloat(s.y),parseFloat(s.z)],c=[parseFloat(l.x),parseFloat(l.y),parseFloat(l.z)];o.setPoint1(u),o.setPoint2(c),o.setResolution(12);const f=Pa.newInstance(),d=za.newInstance();f.setMapper(d),f.getProperty().setLineWidth(3),n.safety=="safety"?f.getProperty().setColor(Ev):n.safety=="danger"&&f.getProperty().setColor(jz);const h={base:0,center:c,height:9,radius:5,resolution:8,direction:[c[0]-u[0],c[1]-u[1],c[2]-u[2]]},p=LO.newInstance(h),v=za.newInstance();v.setInputConnection(p.getOutputPort());const g=Pa.newInstance();g.setMapper(v),n.safety=="safety"?g.getProperty().setColor(Ev):n.safety=="danger"&&g.getProperty().setColor(jz),this.wayActors.push(g),d.setInputConnection(o.getOutputPort()),this.wayActors.push(f)}}),this.wayActors.forEach(n=>{this.renderer.addActor(n)}),xr.renderWindow.render()}initMode(e){this.renderWindowWith=LT.newInstance(),this.renderWindowWith.setContainer(e),this.renderer=this.renderWindowWith.getRenderer(),this.renderer.setBackground(0,0,0,0),this.renderWindow=this.renderWindowWith.getRenderWindow(),this.lastActor=null,this.nodeActors=[],this.pipeActors=[],this.interactor=this.renderer.getRenderWindow().getInteractor(),this.apiSpecificRenderWindow=this.interactor.getView(),this.hardwareSelector=this.apiSpecificRenderWindow.getSelector(),this.hardwareSelector.setCaptureZValues(!0),this.hardwareSelector.setFieldAssociation(uB.FIELD_ASSOCIATION_CELLS),document.addEventListener("contextmenu",cw,function(n){n.preventDefault()})}generateTicks(e){return n=>{const r=n.getLastTickBounds(),a=Xg().domain([0,1]).range([r[0],r[1]]),o=a.ticks(e).map(u=>a(u));ST({minus:"-"});const s=a.tickFormat(o[0],o[o.length-1],e),l=o.map(s).map(u=>Number(parseFloat(u).toPrecision(12)).toPrecision());n.setTicks(o),n.setTickStrings(l)}}addArrow(e){this.clearArrow(),this.arrowActors=[],e.forEach(n=>{n.points.forEach(r=>{const a={base:0,center:[r.x,r.y,r.z],height:7,radius:8,resolution:3,direction:[n.vector[0],n.vector[1],n.vector[2]]},i=LO.newInstance(a),o=za.newInstance();o.setInputConnection(i.getOutputPort());const s=Pa.newInstance();s.setMapper(o),this.arrowActors.push(s)})})}clearArrow(){this.arrowActors&&this.arrowActors.forEach(e=>{this.renderer.removeActor(e)})}modelInit(e,n){this.renderWindowWith.resize(),this.validNodes=e,this.pipes=n,this.modelCreate()}modelCreate(){console.log("modelInit..");const e=this.polyData.getPoints(),n=this.polyData.getLines();this.validNodes.forEach(o=>{e.insertNextPoint(parseFloat(o.x),parseFloat(o.y),parseFloat(o.z))}),this.pipes.forEach(o=>{let s=this.indexIdByPipeNodeId(o.snId),l=this.indexIdByPipeNodeId(o.enId);n.insertNextCell([s,l])});const r=Hlt.newInstance({center:[0,0,0],radius:4}),a=za.newInstance();a.setInputConnection(r.getOutputPort()),this.validNodes.forEach(o=>{const s=Pa.newInstance();s.setMapper(a),s.setPosition(parseFloat(o.x),parseFloat(o.y),parseFloat(o.z)),s.getProperty().setColor(Fd);const l={};l.node=o,l.actor=s,this.nodeActors.push(l)}),this.pipes.forEach(o=>{const s=Hz.newInstance();let l=this.pointByPipeNodeId(o.snId),u=this.pointByPipeNodeId(o.enId);s.setPoint1(l),s.setPoint2(u),s.setResolution(12);const c=Pa.newInstance(),f=za.newInstance();c.setMapper(f),c.getProperty().setLineWidth(3),c.getProperty().setColor(Fd),f.setInputConnection(s.getOutputPort());const d={};d.pipe=o,d.actor=c,this.pipeActors.push(d)}),this.modelShow(),this.renderer.resetCamera();const i=this.renderer.getActiveCamera();console.log("透视或平行相机",i.getParallelProjection()),console.log("水平视角使用",i.getUseHorizontalViewAngle()),console.log("平行位置投影比例",i.getParallelScale()),console.log("窗口中心位置",i.getWindowCenter()),console.log("相机视角",i.getViewAngle()),i.setViewAngle(15),console.log("摄像头位置",i.getPosition()),i.setPosition(495544.15625,540355425e-2,9989.55990464236),console.log("相机焦点",i.getFocalPoint()),i.setFocalPoint(495544.15625,540355425e-2,467.62999725341797),console.log("相机方向",i.getViewUp()),console.log("近远平面",i.getClippingRange()),this.renderWindow.render()}modelClearShow(){this.renderer.removeActor(this.actor),this.renderer.removeActor(this.actor2),this.nodeActors.forEach(e=>{this.renderer.removeActor(e.actor)}),this.pipeActors.forEach(e=>{this.renderer.removeActor(e.actor)})}wayClearShow(){this.wayActors.forEach(e=>{this.renderer.removeActor(e)})}modelShow(){this.modelClearShow(),this.isSelectNode||this.renderer.addActor(this.actor2),this.isSelectPipe||this.renderer.addActor(this.actor),this.isSelectNode&&this.nodeActors.forEach(e=>{this.renderer.addActor(e.actor)}),this.isSelectPipe&&this.pipeActors.forEach(e=>{this.renderer.addActor(e.actor)}),this.renderer.addActor(this.axesActor)}selectNodes(){this.isSelectNode=!0,this.isSelectPipe=!1,this.modelShow(),document.addEventListener("mousemove",cw),this.renderWindow.render()}selectPipes(){this.isSelectNode=!1,this.isSelectPipe=!0,document.addEventListener("mousemove",cw),this.modelShow(),this.renderWindow.render()}selectNoting(){this.isSelectNode=!1,this.isSelectPipe=!1,this.modelShow(),this.renderWindow.render()}indexIdByPipeNodeId(e){for(let n=0;n<this.validNodes.length;n++)if(this.validNodes[n].id==e)return n;return 0}pointByPipeNodeId(e){for(let n=0;n<this.validNodes.length;n++){const r=this.validNodes[n];if(r.id==e)return[parseFloat(r.x),parseFloat(r.y),parseFloat(r.z)]}return 0}clearModeAddJg(){this.renderer.addActor(this.jgActor),this.renderer.addActor(this.scalarBarActor),this.wayClearShow(),this.modelClearShow(),this.isJg=!0,document.removeEventListener("mousemove",cw)}clearJgAddMode(){this.renderer.removeActor(this.scalarBarActor),this.renderer.removeActor(this.jgActor),this.clearArrow(),this.modelShow(),this.wayClearShow(),this.isJg=!1}clearAll(){this.renderer.removeActor(this.jgActor),this.renderer.removeActor(this.scalarBarActor),this.clearArrow(),this.modelClearShow(),this.wayClearShow(),this.renderWindow.render()}selectByNodeId(e){console.log("selectByNodeId",e),this.isSelectNode&&(this.lastActor!=null&&this.lastActor.getProperty().setColor(Fd),this.nodeActors.forEach(n=>{if(e==n.node.id){n.actor.getProperty().setColor(Ev),this.renderWindow.render(),this.lastActor=n.actor,this.selectObj=n.node;return}}))}selectByPipeId(e){console.log("selectByPipeId",e),this.isSelectPipe&&(this.lastActor!=null&&this.lastActor.getProperty().setColor(Fd),this.pipeActors.forEach(n=>{if(e==n.pipe.id){n.actor.getProperty().setColor(Ev),this.renderWindow.render(),this.lastActor=n.actor,this.selectObj=n.node;return}}))}}function Wut(t){if(xr.interactor.isAnimating())return;const[e,n]=jut(t);xr.hardwareSelector.getSourceDataAsync(xr.renderer,e,n,e,n).then(r=>{r&&Kut(r.generateSelection(e,n,e,n))})}function jut(t){var e=t.pageX,n=t.pageY;xr.epageX=e,xr.epageY=n;const{clientX:r,clientY:a}=t,[i,o]=xr.apiSpecificRenderWindow.getSize(),s=Math.round(i*r/window.innerWidth),l=Math.round(o*(1-a/window.innerHeight));return[s,l]}function Kut(t){if(!t||t.length===0){xr.lastActor==null;return}const{worldPosition:e,compositeID:n,prop:r,propID:a,attributeID:i}=t[0].getProperties();if(xr.lastActor!=null&&(xr.lastActor.getProperty().setColor(Fd),xr.renderWindow.render()),xr.nodeActors.forEach(o=>{r==o.actor&&(xr.selectObj=o.node,r.getProperty().setColor(Ev),xr.lastActor=r)}),xr.pipeActors.forEach(o=>{r==o.actor&&(xr.selectObj=o.pipe,r.getProperty().setColor(Ev),xr.lastActor=r)}),xr.isJg){if(xr.hardwareSelector.getFieldAssociation()!==uB.FIELD_ASSOCIATION_POINTS){const o=r.getMapper().getInputData();o.getCells()||o.buildCells();const s=o.getCellPoints(i);if(s){const l=s.cellPointIds;Array.from(l).map(c=>o.getPoints().getPoint(c));const u=o.getPointData().getScalars().getData();console.log(u[l[0]]),xr.selectJgPointId=l[0]}}}else xr.renderWindow.render()}const cw=UV(Wut,20),Fd=[1,.2,1],Ev=[.1,.8,.1],jz=[1,0,0],xr=new Hut;const kb=t=>(LC("data-v-2d1cfaa9"),t=t(),OC(),t),Yut={class:"my-header"},qut=["id"],Xut={class:"mgstamkuang"},Zut=kb(()=>U("span",null,"节点编号:",-1)),Qut=kb(()=>U("span",null,"名称:",-1)),Jut=kb(()=>U("span",null,"X:",-1)),ect=kb(()=>U("span",null,"y:",-1)),tct=kb(()=>U("span",null,"Z:",-1)),nct={class:"dialog-footer footer_div l_btn"},rct={class:"footerbtn flex1"},act={class:"borderimg"},ict={class:"footerbtn flex1"},oct={class:"borderimg"},sct={__name:"SetNode",emits:["Dtext"],setup(t,{expose:e,emit:n}){let r=W(!1),a=W("节点信息"),i=W({id:"",name:"",x:"",y:"",z:""}),o=W();e({dialoglog:r,jgSelect:f});let s=W(null),l=W(null);const u=()=>{n("Dtext",l.value),o.value=sessionStorage.getItem("state"),o.value=="1"?xr.clearModeAddJg():xr.selectNoting(),clearInterval(s.value)},c=()=>{o.value=sessionStorage.getItem("state"),console.log(o.value),o.value=="1"?xr.clearModeAddJg():xr.selectNoting(),clearInterval(s.value)};fr(()=>{clearInterval(s.value)}),Pt(()=>{}),Zu(()=>{clearInterval(s.value)});function f(){s.value=setInterval(()=>{l.value=xr.selectObj,l.value==null||(i.value=l.value)},200)}return(d,h)=>{const p=Xe("el-image");return z(),ne("div",null,[H(S(Ta),{width:"300px",modelValue:S(r),"onUpdate:modelValue":h[2]||(h[2]=v=>Ot(r)?r.value=v:r=v),modal:!1,"close-on-click-modal":!1,"append-to-body":!0,draggable:"",fullscreen:!1,"modal-append-to-body":!1,"modal-class":"summary-dlg",onClose:c,class:"right log_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:X(({titleId:v,titleClass:g})=>[U("div",Yut,[H(p,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:v,class:j(g)},Ke(S(a)),11,qut)])]),default:X(()=>[U("div",Xut,[U("ul",null,[U("li",null,[Zut,lt(Ke(S(i).id),1)]),U("li",null,[Qut,lt(Ke(S(i).name),1)]),U("li",null,[Jut,lt(Ke(S(i).x),1)]),U("li",null,[ect,lt(Ke(S(i).y),1)]),U("li",null,[tct,lt(Ke(S(i).z),1)])])]),U("div",nct,[U("div",rct,[U("div",act,[H(S(Lt),{onClick:h[0]||(h[0]=v=>{c(),Ot(r)?r.value=!1:r=!1})},{default:X(()=>[lt("取消")]),_:1})])]),U("div",ict,[U("div",oct,[H(S(Lt),{onClick:h[1]||(h[1]=v=>{u(),Ot(r)?r.value=!1:r=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])}}},lct=yb(sct,[["__scopeId","data-v-2d1cfaa9"]]);const uct=t=>(LC("data-v-a3a92972"),t=t(),OC(),t),cct={class:"bou tablebk"},fct={class:"common-layout",style:{margin:"0"}},dct={class:"demo-collapse"},hct={class:"l_Dialog"},pct={class:"classtab"},vct={class:"asides_content"},gct={class:"jc_content tablecolor jc_content"},yct={class:"font12 my_content1"},mct={class:"btncolor tablefocus bmar"},bct={class:"dialog-footer footer_div l_btn"},Sct={class:"footerbtn flex1"},wct={class:"borderimg"},_ct={class:"footerbtn flex1"},xct={class:"borderimg"},Cct={class:"footerbtn flex1"},Tct={class:"borderimg"},Ect={class:"xian tablefocus",style:{"margin-top":"20px"}},Mct={class:"header_l header_z headerimg"},Dct=uct(()=>U("h4",{class:"tianjia"},"预设路径节点",-1)),kct={class:"dialog-footer footer_div l_btn"},Rct={class:"footerbtn flex1"},Lct={class:"borderimg"},Oct={class:"footerbtn flex1"},Act={class:"borderimg"},Nct={class:"footerbtn flex1"},Vct={class:"borderimg"},Bct={class:"footerbtn flex1"},Ict={class:"borderimg"},$ct={class:"my-header"},Pct=["id"],Fct={class:"dialog-footer footer_div l_btn"},zct={class:"footerbtn flex1"},Uct={class:"borderimg"},Gct={class:"footerbtn flex1"},Hct={class:"borderimg"},Wct={class:"my-header"},jct=["id"],Kct={class:"demo-input-suffix firsttitle magintop"},Yct={class:"btn2"},qct={class:"btn2",style:{"padding-left":"10px"}},Xct={class:"dialog-footer footer_div l_btn"},Zct={class:"footerbtn flex1"},Qct={class:"borderimg"},Jct={class:"footerbtn flex1"},eft={class:"borderimg"},tft={class:"my-header"},nft=["id"],rft={class:"delecttitle"},aft={class:"spanclad"},ift={class:"dialog-footer footer_div l_btn"},oft={class:"footerbtn flex1"},sft={class:"borderimg"},lft={class:"footerbtn flex1"},uft={class:"borderimg"},cft={__name:"Menupath",setup(t,{expose:e}){let n=W(!1);W();let r=W(),a=W(""),i=W(""),o=W(),s=W(),l=W(!1),u=W(!0),c=W(!1),f=W(!1),d=W(!1),h=W(!1),p=W(),v=W();W("Fire");const g=W(100);let y=W(""),m=W();W("first");let b=W(["1","2"]),w=W(145),C=W([]),x=W({}),_=W(),T=W(),M=W({wid:"",code:"",name:"",density:"",diffcoe:"",speheat:""}),E=W([]);W({selectstr:"",site:""}),W("");const k=({row:he,rowIndex:q})=>q%2!=0?"evenRow":"oddRow",R=he=>{u.value=!0,x.value=he},L=he=>{m.value=he,he=="1"?JSON.stringify(x.value)=="{}"?sn.error("你还没有选中修改的项目"):(d.value=!0,T.value=x.value.name):JSON.stringify(v.value)=="{}"?sn.error("你还没有选中修改的项目"):(d.value=!0,T.value=v.value.nname)},A=()=>{m.value=="1"?V():G()},V=()=>{const he={transCode:"D10032",wid:M.value.wid};Tr(he).then(q=>{h.value=!1,N()}).catch(q=>{sn.error(q.returnMsg)})},G=()=>{const he={transCode:"D10035",wnid:v.value.wnid};Tr(he).then(q=>{$()}).catch(q=>{sn.error(q.returnMsg)})},I=(he,q)=>{M.value=q,console.log(M.value.wid),h.value=!0,$()},$=()=>{const he={transCode:"D10033",wid:M.value.wid};Tr(he).then(q=>{E.value=q.rows,v.value={}}).catch(q=>{})};Pt(()=>{N()});const N=()=>{Tr({transCode:"D10030"}).then(q=>{C.value=q.rows,x.value={}}).catch(q=>{sn.error(q.returnMsg)})},P=()=>{y.value="添加",u.value=!1,f.value=!0,M.value.wid="",M.value.code="",M.value.name="",x.value={}},Y=()=>{const he={transCode:"D10031",wid:M.value.wid,code:M.value.code,name:M.value.name};Tr(he).then(q=>{C.value=q.rows,u.value=!1,N()}).catch(q=>{sn.error(q.returnMsg)})},J=()=>{y.value="修改",JSON.stringify(x.value)=="{}"?sn.error("你还没有选中修改的项目"):(f.value=!0,M.value.wid=x.value.wid,M.value.code=x.value.code,M.value.name=x.value.name)},re=()=>{r.value.dialoglog=!0,xr.clearJgAddMode(),xr.selectNodes(),r.value.jgSelect()},oe=()=>{s.value.dialogVisiblenode=!0,s.value.pipelinedata()},ue=he=>{p.value=he.id,a.value=he.name},le=he=>{console.log(he),console.log(223333),a.value=he.name,p.value=he.id},fe=()=>{i.value="添加",p.value=null,a.value=null,_.value="",v.value={}},se=he=>{const q={transCode:"D10034",wid:M.value.wid,wnid:_.value,nid:p.value,seq:o.value};console.log(o.value),console.log(q),Tr(q).then(ce=>{$(),c.value=!1}).catch(ce=>{sn.error(ce.returnMsg)})},_e=()=>{JSON.stringify(v.value)=="{}"?sn.error("你还没有选中修改的项目"):(n.value=!0,a.value=v.value.nname,p.value=v.value.nid,_.value=v.value.wnid,M.value.wid=v.value.wid,o.value=v.value.seq)},ve=he=>{v.value=he,console.log(v.value),c.value=!0};return e({sendialogVisible:l}),(he,q)=>{const ce=Xe("el-icon"),Se=Xe("el-table-column"),Ae=Xe("el-table"),Te=Xe("el-image"),Oe=Xe("el-collapse-item"),He=Xe("el-collapse"),$e=Xe("el-input"),Ne=Xe("el-form-item"),Le=Xe("el-form"),ie=Xe("el-aside");return z(),ne(bt,null,[U("div",cct,[U("div",fct,[Ft(H(ie,{width:"357px",class:"L_aside L_aside1 asideg asidegbg leftbgimg1"},{default:X(()=>[U("div",dct,[H(He,{modelValue:S(b),"onUpdate:modelValue":q[10]||(q[10]=Re=>Ot(b)?b.value=Re:b=Re),accordion:""},{default:X(()=>[H(Oe,{name:"1",class:"imgneon"},{title:X(()=>[H(ce,{class:"iconimg Frame3",fit:"contain"}),lt(" 路径预设"),H(ce,{class:"header-icon"})]),default:X(()=>[U("div",hct,[U("div",pct,[U("div",vct,[U("div",gct,[U("div",yct,[U("div",mct,[H(Ae,{data:S(C),style:{width:"480px"},"max-height":S(w),"highlight-current-row":S(u),"row-class-name":k,onRowClick:q[0]||(q[0]=Re=>R(Re)),"header-cell-style":{background:"rgba(13, 22, 57, 0) "}},{default:X(()=>[H(Se,{prop:"name",label:"路径名称"}),H(Se,{label:"操作",width:"70px"},{default:X(Re=>[H(S(Lt),{size:"small",type:"success",onClick:We=>I(Re.$index,Re.row)},{default:X(()=>[lt("查看")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),U("div",bct,[U("div",Sct,[U("div",wct,[H(S(Lt),{onClick:q[1]||(q[1]=Re=>{P()})},{default:X(()=>[lt("添加")]),_:1})])]),U("div",_ct,[U("div",xct,[H(S(Lt),{onClick:q[2]||(q[2]=Re=>L("1"))},{default:X(()=>[lt(" 删除 ")]),_:1})])]),U("div",Cct,[U("div",Tct,[H(S(Lt),{onClick:q[3]||(q[3]=Re=>J())},{default:X(()=>[lt(" 修改 ")]),_:1})])])])])])])]),Ft(U("div",Ect,[U("div",Mct,[H(Te,{src:S(Ea),fit:"contain"},null,8,["src"]),Dct,U("div",{class:"closeimg",onClick:q[4]||(q[4]=Re=>Ot(h)?h.value=!1:h=!1)})]),H(Ae,{data:S(E),style:{width:"100%"},"max-height":S(w),"row-class-name":k,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "},onRowClick:q[5]||(q[5]=Re=>ve(Re)),"highlight-current-row":S(c)},{default:X(()=>[H(Se,{prop:"nid",label:"节点编号"}),H(Se,{prop:"nname",label:"节点名称"}),H(Se,{prop:"seq",label:"排序"})]),_:1},8,["data","max-height","header-cell-style","highlight-current-row"]),U("div",kct,[U("div",Rct,[U("div",Lct,[H(S(Lt),{onClick:q[6]||(q[6]=Re=>{fe(),Ot(n)?n.value=!0:n=!0})},{default:X(()=>[lt("添加")]),_:1})])]),U("div",Oct,[U("div",Act,[H(S(Lt),{onClick:q[7]||(q[7]=Re=>_e())},{default:X(()=>[lt(" 修改 ")]),_:1})])]),U("div",Nct,[U("div",Vct,[H(S(Lt),{onClick:q[8]||(q[8]=Re=>L("2"))},{default:X(()=>[lt(" 删除 ")]),_:1})])]),U("div",Bct,[U("div",Ict,[H(S(Lt),{onClick:q[9]||(q[9]=Re=>Ot(h)?h.value=!1:h=!1)},{default:X(()=>[lt(" 关闭 ")]),_:1})])])])],512),[[pn,S(h)]])]),_:1})]),_:1},8,["modelValue"]),H(S(Ta),{"append-to-body":!0,"align-center":"","z-index":1e3,modelValue:S(f),"onUpdate:modelValue":q[15]||(q[15]=Re=>Ot(f)?f.value=Re:f=Re),width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:X(({titleId:Re,titleClass:We})=>[U("div",$ct,[H(Te,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Re,class:j(We)},Ke(S(y)),11,Pct)])]),default:X(()=>[H(Le,{class:"demo-form-inline",inline:!0,model:S(M)},{default:X(()=>[H(Ne,{label:"编号","label-width":g.value},{default:X(()=>[H($e,{modelValue:S(M).code,"onUpdate:modelValue":q[11]||(q[11]=Re=>S(M).code=Re),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Ne,{label:"名称","label-width":g.value},{default:X(()=>[H($e,{modelValue:S(M).name,"onUpdate:modelValue":q[12]||(q[12]=Re=>S(M).name=Re),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),U("div",Fct,[U("div",zct,[U("div",Uct,[H(S(Lt),{onClick:q[13]||(q[13]=Re=>Ot(f)?f.value=!1:f=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",Gct,[U("div",Hct,[H(S(Lt),{onClick:q[14]||(q[14]=Re=>{Y(),Ot(f)?f.value=!1:f=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{"append-to-body":!0,"align-center":"",modal:!1,"lock-scroll":!1,"close-on-click-modal":!1,"modal-class":"summary-dlg",draggable:"",fullscreen:!1,"modal-append-to-body":!1,"z-index":1e3,modelValue:S(n),"onUpdate:modelValue":q[22]||(q[22]=Re=>Ot(n)?n.value=Re:n=Re),width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:X(({titleId:Re,titleClass:We})=>[U("div",Wct,[H(Te,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Re,class:j(We)},Ke(S(i)),11,jct)])]),default:X(()=>[U("div",Kct,[H(Ne,{label:"节点选择","label-width":g.value},{default:X(()=>[H($e,{modelValue:S(a),"onUpdate:modelValue":q[16]||(q[16]=Re=>Ot(a)?a.value=Re:a=Re),disabled:"",class:"w-50 m-2",placeholder:"节点选择"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",Yct,[H(S(Lt),{type:"primary",onClick:q[17]||(q[17]=Re=>{oe()})},{default:X(()=>[lt("选择节点")]),_:1})]),U("div",qct,[H(S(Lt),{type:"primary",onClick:q[18]||(q[18]=Re=>re())},{default:X(()=>[lt("3D节点选择")]),_:1})])]),H(Ne,{label:"排序","label-width":g.value},{default:X(()=>[H($e,{modelValue:S(o),"onUpdate:modelValue":q[19]||(q[19]=Re=>Ot(o)?o.value=Re:o=Re),oninput:"value=value.replace(/[^0-9]/g,'')",maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U("div",Xct,[U("div",Zct,[U("div",Qct,[H(S(Lt),{onClick:q[20]||(q[20]=Re=>Ot(n)?n.value=!1:n=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",Jct,[U("div",eft,[H(S(Lt),{onClick:q[21]||(q[21]=Re=>{se(),Ot(n)?n.value=!1:n=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Ta),{modelValue:S(d),"onUpdate:modelValue":q[25]||(q[25]=Re=>Ot(d)?d.value=Re:d=Re),"align-center":"","append-to-body":!0,width:"400",class:"dialog_class bgcolor tianjia"},{header:X(({titleId:Re,titleClass:We})=>[U("div",tft,[H(Te,{src:S(Ea),fit:"contain"},null,8,["src"]),U("h4",{id:Re,class:j(We)},"删除框",10,nft)])]),default:X(()=>[U("h4",rft,[lt(" 是否确认删除名称 "),U("span",aft,Ke(S(T)),1)]),U("div",ift,[U("div",oft,[U("div",sft,[H(S(Lt),{onClick:q[23]||(q[23]=Re=>Ot(d)?d.value=!1:d=!1)},{default:X(()=>[lt("取消")]),_:1})])]),U("div",lft,[U("div",uft,[H(S(Lt),{onClick:q[24]||(q[24]=Re=>{A(),Ot(d)?d.value=!1:d=!1})},{default:X(()=>[lt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])]),_:1},512),[[pn,S(l)]])])]),H(kQ,{ref_key:"NodeSelectref",ref:s,onQueding:le},null,512),H(lct,{ref_key:"dialogtrue",ref:r,onDtext:ue},null,512)],64)}}},fft=yb(cft,[["__scopeId","data-v-a3a92972"]]);const dft={class:"appmian"},hft={class:"rightflex"},pft={class:"hie"},vft={__name:"configurator",setup(t,{expose:e}){W(""),Pt(()=>{}),hve();let n=W(),r=W(),a=W(),i=W(),o=W(),s=W();return e({showmenum:()=>{n.value.dialogVisible=!0,r.value.sendialogVisible=!0,s.value.dialogVisible=!0,a.value.sendialogVisible=!0,i.value.sendialogVisible=!0,o.value.sendialogVisible=!0},menumfalse:()=>{n.value.dialogVisible=!1,r.value.sendialogVisible=!1,s.value.dialogVisible=!1,a.value.sendialogVisible=!1,i.value.sendialogVisible=!1,o.value.sendialogVisible=!1}}),(c,f)=>(z(),ne("div",dft,[H(h9e,{ref_key:"menumine",ref:n},null,512),H(c7e,{ref_key:"menusen",ref:r},null,512),H(q7e,{ref_key:"Menudisasterref",ref:s},null,512),U("div",hft,[U("div",pft,[H(Gje,{ref_key:"menucheck",ref:a},null,512),H(_Ke,{ref_key:"menuphysics",ref:i},null,512),H(fft,{ref_key:"menupath",ref:o},null,512)])])]))}},gft=yb(vft,[["__scopeId","data-v-466c31d4"]]);function yft(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 mft=`.RenderWindowWithControlBar-module_rootContainer__1xqVd {
  1100. position: relative;
  1101. }
  1102. .RenderWindowWithControlBar-module_renderWindow__2mz6Z {
  1103. position: absolute;
  1104. top: 0;
  1105. left: 0;
  1106. right: 0;
  1107. bottom: 0;
  1108. }
  1109. .RenderWindowWithControlBar-module_control__38_dI {
  1110. z-index: 1;
  1111. position: absolute;
  1112. }
  1113. `,fw={rootContainer:"RenderWindowWithControlBar-module_rootContainer__1xqVd",renderWindow:"RenderWindowWithControlBar-module_renderWindow__2mz6Z",control:"RenderWindowWithControlBar-module_control__38_dI"};yft(mft);const bft={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 Sft(t,e,n){const r=bft[e](n);Object.keys(r).forEach(a=>{t.style[a]=r[a]})}function wft(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`,Sft(e.controlContainer,e.controlPosition,e.controlSize)}e.renderWindowContainer=document.createElement("div"),e.renderWindowContainer.classList.add(fw.renderWindow),n.setContainer(e.renderWindowContainer),e.controlContainer=document.createElement("div"),e.controlContainer.classList.add(fw.control),t.setContainer=i=>{e.rootContainer&&(e.rootContainer.removeChild(e.container),e.rootContainer.removeChild(e.controlContainer),e.rootContainer.classList.remove(fw.rootContainer)),e.rootContainer=i,e.rootContainer&&(e.rootContainer.appendChild(e.container),e.rootContainer.appendChild(e.controlContainer),e.rootContainer.classList.add(fw.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 _ft={rootContainer:null,controlPosition:"left",controlSize:10};function xft(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,_ft,n),LT.extend(t,e),Q.get(t,e,["rootContainer","controlContainer","renderWindowContainer"]),wft(t,e)}Q.newInstance(xft,"vtkRenderWindowWithControlBar");const CB={};function Nre(t){return!!CB[t]}function Cft(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return CB[t](e)}function Vre(t,e){CB[t]=e}var Bre={get:Cft,has:Nre,registerType:Vre};const Tft={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 oD(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 Eft={DATASET:{init(t,e){const n=t.split(" ")[1];switch(n){case"UNSTRUCTURED_GRID":e.dataset=Oa.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=oD(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=oD(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 Tft[a](e.POINT_DATA),s=Hn.newInstance({name:r,size:e.POINT_DATA});return e.scalars.set(r,o),e.arrayHandler=oD(o,s.setData,i),!0},parse(t,e){return t.split(" ")[0]==="LOOKUP_TABLE"?!0:e.arrayHandler(t)}}};function Mft(t,e){const n=t.split(" ");return Eft[n[0]]}function Dft(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=Mft(o),!n)return;n=n.init(o,e)?n:null;return}n&&!n.parse(o,e)&&(n=null)}}),e}var kft={parseLegacyASCII:Dft};function Ire(){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 Rft=Ire();function Lft(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 sD={ENDIANNESS:Rft,getEndianness:Ire,swapBytes:Lft};const{vtkErrorMacro:$re,vtkDebugMacro:Oft}=Q,TB=()=>($re("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 Dg=0;function OT(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 Aft(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise((n,r)=>{const a=OT("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 Nft(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r&&r.compression?TB():n.ref&&!n.ref.pending?new Promise((a,i)=>{const o=[e,n.ref.basepath,n.ref.id].join("/"),s=OT("GET",o,r);s.onreadystatechange=l=>{s.readyState===1&&(n.ref.pending=!0,++Dg===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):(sD.ENDIANNESS!==n.ref.encode&&sD.ENDIANNESS&&(Oft(`Swap bytes of ${n.name}`),sD.swapBytes(n.buffer,qee[n.dataType])),n.values=Q.newTypedArray(n.dataType,n.buffer)),n.values.length!==n.size&&$re(`Error in FetchArray: ${n.name}, does not have the proper array size. Got ${n.values.length}, instead of ${n.size}`),delete n.ref,--Dg===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 Vft(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?TB():new Promise((r,a)=>{const i=OT("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++Dg===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--Dg===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 Bft(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?TB():new Promise((r,a)=>{const i=OT("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++Dg===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--Dg===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 Ift(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 $ft={fetchArray:Nft,fetchJSON:Vft,fetchText:Bft,fetchBinary:Aft,fetchImage:Ift};Nre("http")||Vre("http",t=>$ft);function Pft(t,e){e.classHierarchy.push("vtkUnstructuredDataReader"),e.dataAccessHelper||(e.dataAccessHelper=Bre.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=kft.parseLegacyASCII(e.parseData),e.output[0]=e.dataModel.dataset,e.output[1]=e.dataModel.scalars}},t.requestData=(r,a)=>{t.parseAsText(e.parseData)}}const Fft={};function Pre(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Fft,n),Q.obj(t,e),Q.get(t,e,["url","baseURL"]),Q.setGet(t,e,["dataAccessHelper"]),Q.algo(t,e,0,1),Pft(t,e),e.compression||(e.compression=null),e.progressCallback||(e.progressCallback=null)}const zft=Q.newInstance(Pre,"vtkUnstructuredDataReader");var Uft={newInstance:zft,extend:Pre};/*! *****************************************************************************
  1114. Copyright (c) Microsoft Corporation.
  1115. Permission to use, copy, modify, and/or distribute this software for any
  1116. purpose with or without fee is hereby granted.
  1117. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  1118. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  1119. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  1120. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  1121. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  1122. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1123. PERFORMANCE OF THIS SOFTWARE.
  1124. ***************************************************************************** */var OO=function(t,e){return OO=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])},OO(t,e)};function Ve(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");OO(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Gft=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Hft=function(){function t(){this.browser=new Gft,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}(),zd=new Hft;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(zd.wxa=!0,zd.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?zd.worker=!0:typeof navigator>"u"?(zd.node=!0,zd.svgSupported=!0):Wft(navigator.userAgent,zd);function Wft(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 Vn=zd;var EB=12,Fre="sans-serif",Ef=EB+"px "+Fre,jft=20,Kft=100,Yft="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function qft(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)-jft)/Kft;e[r]=a}return e}var Xft=qft(Yft),Js={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=Js.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Ef),t.measureText(n);n=n||"",r=r||Ef;var i=/(\d+)px/.exec(r),o=i&&+i[1]||EB,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=Xft[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 zre(t){for(var e in Js)t[e]&&(Js[e]=t[e])}var Ure=fs(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Gre=fs(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),t0=Object.prototype.toString,AT=Array.prototype,Zft=AT.forEach,Qft=AT.filter,MB=AT.slice,Jft=AT.map,Kz=(function(){}).constructor,dw=Kz?Kz.prototype:null,DB="__proto__",edt=2311;function kB(){return edt++}function NT(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Kt(t){if(t==null||typeof t!="object")return t;var e=t,n=t0.call(t);if(n==="[object Array]"){if(!jv(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=Kt(t[r])}}else if(Gre[n]){if(!jv(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(!Ure[n]&&!jv(t)&&!kg(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==DB&&(e[o]=Kt(t[o]))}return e}function un(t,e,n){if(!Wt(e)||!Wt(t))return n?Kt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==DB){var a=t[r],i=e[r];Wt(i)&&Wt(a)&&!at(i)&&!at(a)&&!kg(i)&&!kg(a)&&!AO(i)&&!AO(a)&&!jv(i)&&!jv(a)?un(a,i,n):(n||!(r in t))&&(t[r]=Kt(e[r]))}return t}function VT(t,e){for(var n=t[0],r=1,a=t.length;r<a;r++)n=un(n,t[r],e);return n}function Qe(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==DB&&(t[n]=e[n]);return t}function Ht(t,e,n){for(var r=Tn(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 tdt=Js.createCanvas;function vn(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 RB(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 ea(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 Ht(t,e,n)}function ii(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function Z(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Zft)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 ut(t,e,n){if(!t)return[];if(!e)return BT(t);if(t.map&&t.map===Jft)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 fs(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 nr(t,e,n){if(!t)return[];if(!e)return BT(t);if(t.filter&&t.filter===Qft)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 Hre(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 Tn(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 ndt(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(MB.call(arguments)))}}var Dt=dw&&zt(dw.bind)?dw.call.bind(dw.bind):ndt;function nn(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(MB.call(arguments)))}}function at(t){return Array.isArray?Array.isArray(t):t0.call(t)==="[object Array]"}function zt(t){return typeof t=="function"}function Mt(t){return typeof t=="string"}function M2(t){return t0.call(t)==="[object String]"}function Bn(t){return typeof t=="number"}function Wt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function AO(t){return!!Ure[t0.call(t)]}function vo(t){return!!Gre[t0.call(t)]}function kg(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Rb(t){return t.colorStops!=null}function Wre(t){return t.image!=null}function jre(t){return t0.call(t)==="[object RegExp]"}function Rg(t){return t!==t}function Ma(){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 fn(t,e){return t??e}function Ys(t,e,n){return t??e??n}function BT(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return MB.apply(t,e)}function IT(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 bi(t,e){if(!t)throw new Error(e)}function Qo(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Kre="__ec_primitive__";function b1(t){t[Kre]=!0}function jv(t){return t[Kre]}var rdt=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 Tn(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),Yre=typeof Map=="function";function adt(){return Yre?new Map:new rdt}var qre=function(){function t(e){var n=at(e);this.data=adt();var r=this;e instanceof t?e.each(a):e&&Z(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 Yre?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function It(t){return new qre(t)}function S1(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 Lb(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Qe(n,e),n}function LB(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Rt(t,e){return t.hasOwnProperty(e)}function Qr(){}var vm=180/Math.PI;const idt=Object.freeze(Object.defineProperty({__proto__:null,HashMap:qre,RADIAN_TO_DEGREE:vm,assert:bi,bind:Dt,clone:Kt,concatArray:S1,createCanvas:tdt,createHashMap:It,createObject:Lb,curry:nn,defaults:Ht,disableUserSelect:LB,each:Z,eqNaN:Rg,extend:Qe,filter:nr,find:Hre,guid:kB,hasOwn:Rt,indexOf:vn,inherits:RB,isArray:at,isArrayLike:ii,isBuiltInObject:AO,isDom:kg,isFunction:zt,isGradientObject:Rb,isImagePatternObject:Wre,isNumber:Bn,isObject:Wt,isPrimitive:jv,isRegExp:jre,isString:Mt,isStringSafe:M2,isTypedArray:vo,keys:Tn,logError:NT,map:ut,merge:un,mergeAll:VT,mixin:ea,noop:Qr,normalizeCssArray:IT,reduce:fs,retrieve:Ma,retrieve2:fn,retrieve3:Ys,setAsPrimitive:b1,slice:BT,trim:Qo},Symbol.toStringTag,{value:"Module"}));function Uf(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function di(t,e){return t[0]=e[0],t[1]=e[1],t}function Ul(t){return[t[0],t[1]]}function Xre(t,e,n){return t[0]=e,t[1]=n,t}function NO(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function D2(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Xc(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function w1(t){return Math.sqrt(OB(t))}var odt=w1;function OB(t){return t[0]*t[0]+t[1]*t[1]}var sdt=OB;function ldt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function udt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function cdt(t,e){return t[0]*e[0]+t[1]*e[1]}function gm(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function pp(t,e){var n=w1(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function k2(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Mu=k2;function Zre(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var uf=Zre;function fdt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ym(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 Wa(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 Du(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ku(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const ddt=Object.freeze(Object.defineProperty({__proto__:null,add:NO,applyTransform:Wa,clone:Ul,copy:di,create:Uf,dist:Mu,distSquare:uf,distance:k2,distanceSquare:Zre,div:udt,dot:cdt,len:w1,lenSquare:OB,length:odt,lengthSquare:sdt,lerp:ym,max:ku,min:Du,mul:ldt,negate:fdt,normalize:pp,scale:gm,scaleAndAdd:D2,set:Xre,sub:Xc},Symbol.toStringTag,{value:"Module"}));var Pp=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),hdt=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 Pp(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 Pp(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 Pp(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Pp(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Pp(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Pp(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const pdt=hdt;var vdt=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 hs=vdt;var gdt=Math.log(2);function VO(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)/gdt);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 p=1<<d;p&a||(f+=(h%2?-1:1)*t[n][d]*VO(t,e-1,c,u,a|p,i),h++)}return i[o]=f,f}function Yz(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=VO(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)*VO(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 qz="___zrEVENTSAVED",lD=[];function ydt(t,e,n,r,a){return BO(lD,e,r,a,!0)&&BO(t,n,lD[0],lD[1])}function BO(t,e,n,r,a){if(e.getBoundingClientRect&&Vn.domSupported&&!Qre(e)){var i=e[qz]||(e[qz]={}),o=mdt(e,i),s=bdt(o,i,a);if(s)return s(t,n,r),!0}return!1}function mdt(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 bdt(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?Yz(s,o):Yz(o,s))}function Qre(t){return t.nodeName.toUpperCase()==="CANVAS"}var Sdt=/([&<>"'])/g,wdt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ni(t){return t==null?"":(t+"").replace(Sdt,function(e,n){return wdt[n]})}var _dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,uD=[],xdt=Vn.browser.firefox&&+Vn.browser.version.split(".")[0]<39;function IO(t,e,n,r){return n=n||{},r?Xz(t,e,n):xdt&&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):Xz(t,e,n),n}function Xz(t,e,n){if(Vn.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(Qre(t)){var i=t.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(BO(uD,t,r,a)){n.zrX=uD[0],n.zrY=uD[1];return}}n.zrX=n.zrY=0}function AB(t){return t||window.event}function zo(t,e,n){if(e=AB(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&&IO(t,o,e,n)}else{IO(t,e,e,n);var i=Cdt(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_dt.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Cdt(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 $O(t,e,n,r){t.addEventListener(e,n,r)}function Tdt(t,e,n,r){t.removeEventListener(e,n,r)}var Uu=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Zz(t){return t.which===2||t.which===3}var Edt=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=IO(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 cD)if(cD.hasOwnProperty(n)){var r=cD[n](this._track,e);if(r)return r}},t}();function Qz(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Mdt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var cD={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=Qz(r)/Qz(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Mdt(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Do(){return[1,0,0,1,0,0]}function Ob(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function $T(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 Gl(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 el(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 Gf(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 PT(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 vp(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 Jre(t){var e=Do();return $T(e,t),e}const Ddt=Object.freeze(Object.defineProperty({__proto__:null,clone:Jre,copy:$T,create:Do,identity:Ob,invert:vp,mul:Gl,rotate:Gf,scale:PT,translate:el},Symbol.toStringTag,{value:"Module"}));var kdt=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 cn=kdt;var hw=Math.min,pw=Math.max,pd=new cn,vd=new cn,gd=new cn,yd=new cn,X0=new cn,Z0=new cn,Rdt=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=hw(e.x,this.x),r=hw(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=pw(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=pw(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=Do();return el(i,i,[-n.x,-n.y]),PT(i,i,[r,a]),el(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,p=0,v=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-c),m=Math.abs(f-o),b=Math.min(v,g),w=Math.min(y,m);i<l||u<a?b>p&&(p=b,v<g?cn.set(Z0,-v,0):cn.set(Z0,g,0)):b<h&&(h=b,v<g?cn.set(X0,v,0):cn.set(X0,-g,0)),s<c||f<o?w>p&&(p=w,y<m?cn.set(Z0,0,-y):cn.set(Z0,0,m)):b<h&&(h=b,y<m?cn.set(X0,0,y):cn.set(X0,0,-m))}return n&&cn.copy(n,d?X0:Z0),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}pd.x=gd.x=n.x,pd.y=yd.y=n.y,vd.x=yd.x=n.x+n.width,vd.y=gd.y=n.y+n.height,pd.transform(r),yd.transform(r),vd.transform(r),gd.transform(r),e.x=hw(pd.x,vd.x,gd.x,yd.x),e.y=hw(pd.y,vd.y,gd.y,yd.y);var l=pw(pd.x,vd.x,gd.x,yd.x),u=pw(pd.y,vd.y,gd.y,yd.y);e.width=l-e.x,e.height=u-e.y},t}();const dn=Rdt;var eae="silent";function Ldt(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:Odt}}function Odt(){Uu(this.event)}var Adt=function(t){Ve(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}(hs),Q0=function(){function t(e,n){this.x=e,this.y=n}return t}(),Ndt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fD=new dn(0,0,0,0),tae=function(t){Ve(e,t);function e(n,r,a,i,o){var s=t.call(this)||this;return s._hovered=new Q0(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Adt,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new pdt(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Z(Ndt,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=nae(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 Q0(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 Q0(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=Ldt(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 Q0(n,r);if(Jz(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new dn(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)&&(fD.copy(d.getBoundingRect()),d.transform&&fD.applyTransform(d.transform),fD.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<v;y+=p){var m=n+g*Math.cos(y),b=r+g*Math.sin(y);if(Jz(s,o,m,b,a),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new Edt);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 Q0;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(hs);Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){tae.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=nae(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||Mu(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function Vdt(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?eae:!0}return!1}function Jz(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=Vdt(o,n,r))&&(!e.topTarget&&(e.topTarget=o),s!==eae)){e.target=o;break}}}function nae(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const Bdt=tae;var rae=32,J0=7;function Idt(t){for(var e=0;t>=rae;)e|=t&1,t>>=1;return t+e}function e8(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++;$dt(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function $dt(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function t8(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 dD(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 hD(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 Pdt(t,e){var n=J0,r,a,i=0;t.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&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 p=r[h],v=a[h],g=r[h+1],y=a[h+1];a[h]=v+y,h===i-3&&(r[h+1]=r[h+2],a[h+1]=a[h+2]),i--;var m=hD(t[g],t,p,v,0,e);p+=m,v-=m,v!==0&&(y=dD(t[p+v-1],t,g,y,y-1,e),y!==0&&(v<=y?f(p,v,g,y):d(p,v,g,y)))}function f(h,p,v,g){var y=0;for(y=0;y<p;y++)o[y]=t[h+y];var m=0,b=v,w=h;if(t[w++]=t[b++],--g===0){for(y=0;y<p;y++)t[w+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)t[w+y]=t[b+y];t[w+g]=o[m];return}for(var C=n,x,_,T;;){x=0,_=0,T=!1;do if(e(t[b],o[m])<0){if(t[w++]=t[b++],_++,x=0,--g===0){T=!0;break}}else if(t[w++]=o[m++],x++,_=0,--p===1){T=!0;break}while((x|_)<C);if(T)break;do{if(x=hD(t[b],o,m,p,0,e),x!==0){for(y=0;y<x;y++)t[w+y]=o[m+y];if(w+=x,m+=x,p-=x,p<=1){T=!0;break}}if(t[w++]=t[b++],--g===0){T=!0;break}if(_=dD(o[m],t,b,g,0,e),_!==0){for(y=0;y<_;y++)t[w+y]=t[b+y];if(w+=_,b+=_,g-=_,g===0){T=!0;break}}if(t[w++]=o[m++],--p===1){T=!0;break}C--}while(x>=J0||_>=J0);if(T)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),p===1){for(y=0;y<g;y++)t[w+y]=t[b+y];t[w+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)t[w+y]=o[m+y]}}function d(h,p,v,g){var y=0;for(y=0;y<g;y++)o[y]=t[v+y];var m=h+p-1,b=g-1,w=v+g-1,C=0,x=0;if(t[w--]=t[m--],--p===0){for(C=w-(g-1),y=0;y<g;y++)t[C+y]=o[y];return}if(g===1){for(w-=p,m-=p,x=w+1,C=m+1,y=p-1;y>=0;y--)t[x+y]=t[C+y];t[w]=o[b];return}for(var _=n;;){var T=0,M=0,E=!1;do if(e(o[b],t[m])<0){if(t[w--]=t[m--],T++,M=0,--p===0){E=!0;break}}else if(t[w--]=o[b--],M++,T=0,--g===1){E=!0;break}while((T|M)<_);if(E)break;do{if(T=p-hD(o[b],t,h,p,p-1,e),T!==0){for(w-=T,m-=T,p-=T,x=w+1,C=m+1,y=T-1;y>=0;y--)t[x+y]=t[C+y];if(p===0){E=!0;break}}if(t[w--]=o[b--],--g===1){E=!0;break}if(M=g-dD(t[m],o,0,g,g-1,e),M!==0){for(w-=M,b-=M,g-=M,x=w+1,C=b+1,y=0;y<M;y++)t[x+y]=o[C+y];if(g<=1){E=!0;break}}if(t[w--]=t[m--],--p===0){E=!0;break}_--}while(T>=J0||M>=J0);if(E)break;_<0&&(_=0),_+=2}if(n=_,n<1&&(n=1),g===1){for(w-=p,m-=p,x=w+1,C=m+1,y=p-1;y>=0;y--)t[x+y]=t[C+y];t[w]=o[b]}else{if(g===0)throw new Error;for(C=w-(g-1),y=0;y<g;y++)t[C+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function lx(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var i=0;if(a<rae){i=e8(t,n,r,e),t8(t,n,r,n+i,e);return}var o=Pdt(t,e),s=Idt(a);do{if(i=e8(t,n,r,e),i<s){var l=a;l>s&&(l=s),t8(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 So=1,$y=2,pv=4,n8=!1;function pD(){n8||(n8=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function r8(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Fdt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=r8}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,lx(r,r8)},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|=So),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)&&(pD(),c.z=0),isNaN(c.z2)&&(pD(),c.z2=0),isNaN(c.zlevel)&&(pD(),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=vn(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 zdt=Fdt;var aae;aae=Vn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const PO=aae;var ux={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-ux.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?ux.bounceIn(t*2)*.5:ux.bounceOut(t*2-1)*.5+.5}};const iae=ux;var vw=Math.pow,cf=Math.sqrt,R2=1e-8,oae=1e-4,a8=cf(3),gw=1/3,Ll=Uf(),Ko=Uf(),Kv=Uf();function Zc(t){return t>-R2&&t<R2}function sae(t){return t>R2||t<-R2}function Ca(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 i8(t,e,n,r,a){var i=1-a;return 3*(((e-t)*i+2*(n-e)*a)*i+(r-n)*a*a)}function L2(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(Zc(c)&&Zc(f))if(Zc(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var v=f*f-4*c*d;if(Zc(v)){var g=f/c,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(v>0){var m=cf(v),b=c*s+1.5*o*(-f+m),w=c*s+1.5*o*(-f-m);b<0?b=-vw(-b,gw):b=vw(b,gw),w<0?w=-vw(-w,gw):w=vw(w,gw);var p=(-s-(b+w))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*f)/(2*cf(c*c*c)),x=Math.acos(C)/3,_=cf(c),T=Math.cos(x),p=(-s-2*_*T)/(3*o),y=(-s+_*(T+a8*Math.sin(x)))/(3*o),M=(-s+_*(T-a8*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),M>=0&&M<=1&&(i[h++]=M)}}return h}function lae(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(Zc(o)){if(sae(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Zc(c))a[0]=-i/(2*o);else if(c>0){var f=cf(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 Mf(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 uae(t,e,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,y;Ll[0]=l,Ll[1]=u;for(var m=0;m<1;m+=.05)Ko[0]=Ca(t,n,a,o,m),Ko[1]=Ca(e,r,i,s,m),g=uf(Ll,Ko),g<h&&(f=m,h=g);h=1/0;for(var b=0;b<32&&!(d<oae);b++)p=f-d,v=f+d,Ko[0]=Ca(t,n,a,o,p),Ko[1]=Ca(e,r,i,s,p),g=uf(Ko,Ll),p>=0&&g<h?(f=p,h=g):(Kv[0]=Ca(t,n,a,o,v),Kv[1]=Ca(e,r,i,s,v),y=uf(Kv,Ll),v<=1&&y<h?(f=v,h=y):d*=.5);return c&&(c[0]=Ca(t,n,a,o,f),c[1]=Ca(e,r,i,s,f)),cf(h)}function Udt(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 p=h*d,v=Ca(t,n,a,o,p),g=Ca(e,r,i,s,p),y=v-u,m=g-c;f+=Math.sqrt(y*y+m*m),u=v,c=g}return f}function Fa(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function FO(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Gdt(t,e,n,r,a){var i=t-2*e+n,o=2*(e-t),s=t-r,l=0;if(Zc(i)){if(sae(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Zc(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=cf(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 cae(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function _1(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 fae(t,e,n,r,a,i,o,s,l){var u,c=.005,f=1/0;Ll[0]=o,Ll[1]=s;for(var d=0;d<1;d+=.05){Ko[0]=Fa(t,n,a,d),Ko[1]=Fa(e,r,i,d);var h=uf(Ll,Ko);h<f&&(u=d,f=h)}f=1/0;for(var p=0;p<32&&!(c<oae);p++){var v=u-c,g=u+c;Ko[0]=Fa(t,n,a,v),Ko[1]=Fa(e,r,i,v);var h=uf(Ko,Ll);if(v>=0&&h<f)u=v,f=h;else{Kv[0]=Fa(t,n,a,g),Kv[1]=Fa(e,r,i,g);var y=uf(Kv,Ll);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Fa(t,n,a,u),l[1]=Fa(e,r,i,u)),cf(f)}function Hdt(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=Fa(t,n,a,d),p=Fa(e,r,i,d),v=h-s,g=p-l;u+=Math.sqrt(v*v+g*g),s=h,l=p}return u}var Wdt=/cubic-bezier\(([0-9,\.e ]+)\)/;function NB(t){var e=t&&Wdt.exec(t);if(e){var n=e[1].split(","),r=+Qo(n[0]),a=+Qo(n[1]),i=+Qo(n[2]),o=+Qo(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:L2(0,r,i,1,l,s)&&Ca(0,a,o,1,s[0])}}}var jdt=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||Qr,this.ondestroy=e.ondestroy||Qr,this.onrestart=e.onrestart||Qr,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=zt(e)?e:iae[e]||NB(e)},t}();const Kdt=jdt;var dae=function(){function t(e){this.value=e}return t}(),Ydt=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new dae(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}(),qdt=function(){function t(e){this._list=new Ydt,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 dae(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 Ab=qdt;var o8={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 qs(t){return t=Math.round(t),t<0?0:t>255?255:t}function Xdt(t){return t=Math.round(t),t<0?0:t>360?360:t}function x1(t){return t<0?0:t>1?1:t}function vD(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?qs(parseFloat(e)/100*255):qs(parseInt(e,10))}function Nh(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?x1(parseFloat(e)/100):x1(parseFloat(e))}function gD(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 Qc(t,e,n){return t+(e-t)*n}function Po(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function zO(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var hae=new Ab(20),yw=null;function Fp(t,e){yw&&zO(yw,e),yw=hae.put(t,yw||e.slice())}function Pi(t,e){if(t){e=e||[];var n=hae.get(t);if(n)return zO(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in o8)return zO(e,o8[r]),Fp(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)){Po(e,0,0,0,1);return}return Po(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),Fp(t,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Po(e,0,0,0,1);return}return Po(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Fp(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?Po(e,+u[0],+u[1],+u[2],1):Po(e,0,0,0,1);c=Nh(u.pop());case"rgb":if(u.length>=3)return Po(e,vD(u[0]),vD(u[1]),vD(u[2]),u.length===3?c:Nh(u[3])),Fp(t,e),e;Po(e,0,0,0,1);return;case"hsla":if(u.length!==4){Po(e,0,0,0,1);return}return u[3]=Nh(u[3]),UO(u,e),Fp(t,e),e;case"hsl":if(u.length!==3){Po(e,0,0,0,1);return}return UO(u,e),Fp(t,e),e;default:return}}Po(e,0,0,0,1)}}function UO(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Nh(t[1]),a=Nh(t[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Po(e,qs(gD(o,i,n+1/3)*255),qs(gD(o,i,n)*255),qs(gD(o,i,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Zdt(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 O2(t,e){var n=Pi(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 Xs(n,n.length===4?"rgba":"rgb")}}function Qdt(t){var e=Pi(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function mm(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]=qs(Qc(o[0],s[0],l)),n[1]=qs(Qc(o[1],s[1],l)),n[2]=qs(Qc(o[2],s[2],l)),n[3]=x1(Qc(o[3],s[3],l)),n}}var Jdt=mm;function VB(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=Pi(e[a]),s=Pi(e[i]),l=r-a,u=Xs([qs(Qc(o[0],s[0],l)),qs(Qc(o[1],s[1],l)),qs(Qc(o[2],s[2],l)),x1(Qc(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var eht=VB;function Yv(t,e,n,r){var a=Pi(t);if(t)return a=Zdt(a),e!=null&&(a[0]=Xdt(e)),n!=null&&(a[1]=Nh(n)),r!=null&&(a[2]=Nh(r)),Xs(UO(a),"rgba")}function C1(t,e){var n=Pi(t);if(n&&e!=null)return n[3]=x1(e),Xs(n,"rgba")}function Xs(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 T1(t,e){var n=Pi(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function tht(){return Xs([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const nht=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:mm,fastMapToColor:Jdt,lerp:VB,lift:O2,lum:T1,mapToColor:eht,modifyAlpha:C1,modifyHSL:Yv,parse:Pi,random:tht,stringify:Xs,toHex:Qdt},Symbol.toStringTag,{value:"Module"}));var A2=Math.round;function E1(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=Pi(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var s8=1e-4;function Jc(t){return t<s8&&t>-s8}function mw(t){return A2(t*1e3)/1e3}function GO(t){return A2(t*1e4)/1e4}function rht(t){return"matrix("+mw(t[0])+","+mw(t[1])+","+mw(t[2])+","+mw(t[3])+","+GO(t[4])+","+GO(t[5])+")"}var aht={left:"start",right:"end",center:"middle",middle:"middle"};function iht(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function oht(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function sht(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 pae(t){return t&&!!t.image}function lht(t){return t&&!!t.svgElement}function BB(t){return pae(t)||lht(t)}function vae(t){return t.type==="linear"}function gae(t){return t.type==="radial"}function yae(t){return t&&(t.type==="linear"||t.type==="radial")}function FT(t){return"url(#"+t+")"}function mae(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 bae(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*vm,a=fn(t.scaleX,1),i=fn(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("+A2(o*vm)+"deg, "+A2(s*vm)+"deg)"),l.join(" ")}var uht=function(){return Vn.hasGlobalWindow&&zt(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}}(),HO=Array.prototype.slice;function mu(t,e,n){return(e-t)*n+t}function yD(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=mu(e[i],n[i],r);return t}function cht(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]=mu(e[o][s],n[o][s],r)}return t}function bw(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+n[i]*r;return t}function l8(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 fht(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 dht(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]:HO.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 bm(t){if(ii(t)){var e=t.length;if(ii(t[0])){for(var n=[],r=0;r<e;r++)n.push(HO.call(t[r]));return n}return HO.call(t)}return t}function cx(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 hht(t){return ii(t&&t[0])?2:1}var Sw=0,fx=1,Sae=2,Py=3,WO=4,jO=5,u8=6;function c8(t){return t===WO||t===jO}function ww(t){return t===fx||t===Sae}var ey=[0,0,0,0],pht=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=u8,l=n;if(ii(n)){var u=hht(n);s=u,(u===1&&!Bn(n[0])||u===2&&!Bn(n[0][0]))&&(o=!0)}else if(Bn(n)&&!Rg(n))s=Sw;else if(Mt(n))if(!isNaN(+n))s=Sw;else{var c=Pi(n);c&&(l=c,s=Py)}else if(Rb(n)){var f=Qe({},l);f.colorStops=ut(n.colorStops,function(h){return{offset:h.offset,color:Pi(h.color)}}),vae(n)?s=WO:gae(n)&&(s=jO),l=f}i===0?this.valType=s:(s!==this.valType||s===u8)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=zt(r)?r:iae[r]||NB(r)),a.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=ww(a),u=c8(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?dht(d,h,a):u&&fht(d.colorStops,h.colorStops))}if(!s&&a!==jO&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var p=r[0].value,c=0;c<i;c++)a===Sw?r[c].additiveValue=r[c].value-p:a===Py?r[c].additiveValue=bw([],r[c].value,p,-1):ww(a)&&(r[c].additiveValue=a===fx?bw([],r[c].value,p,-1):l8([],r[c].value,p,-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===Py,c,f=this._lastFr,d=Math.min,h,p;if(s===1)h=p=o[0];else{if(n<0)c=0;else if(n<this._lastFrP){var v=d(f+1,s-1);for(c=v;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)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=n;var g=p.percent-h.percent,y=g===0?1:d((n-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=r?this._additiveValue:u?ey:e[l];if((ww(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(ww(i))i===fx?yD(m,h[a],p[a],y):cht(m,h[a],p[a],y);else if(c8(i)){var b=h[a],w=p[a],C=i===WO;e[l]={type:C?"linear":"radial",x:mu(b.x,w.x,y),y:mu(b.y,w.y,y),colorStops:ut(b.colorStops,function(_,T){var M=w.colorStops[T];return{offset:mu(_.offset,M.offset,y),color:cx(yD([],_.color,M.color,y))}}),global:w.global},C?(e[l].x2=mu(b.x2,w.x2,y),e[l].y2=mu(b.y2,w.y2,y)):e[l].r=mu(b.r,w.r,y)}else if(u)yD(m,h[a],p[a],y),r||(e[l]=cx(m));else{var x=mu(h[a],p[a],y);r?this._additiveValue=x:e[l]=x}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===Sw?e[r]=e[r]+a:n===Py?(Pi(e[r],ey),bw(ey,ey,a,1),e[r]=cx(ey)):n===fx?bw(e[r],e[r],a,1):n===Sae&&l8(e[r],e[r],a,1)},t}(),vht=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){NT("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,Tn(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 pht(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===Py&&u&&(u=cx(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,bm(u),a),this._trackKeys.push(s)}l.addKeyframe(e,bm(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 Kdt({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var p=n._additiveAnimators;if(p){for(var v=!1,g=0;g<p.length;g++)if(p[g]._clip){v=!0;break}v||(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 ut(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]=bm(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||Tn(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 IB=vht;function Mv(){return new Date().getTime()}var ght=function(t){Ve(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=Mv()-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&&(PO(r),!n._paused&&n.update())}PO(r)},e.prototype.start=function(){this._running||(this._time=Mv(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Mv(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Mv()-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 IB(n,r.loop);return this.addAnimator(a),a},e}(hs);const yht=ght;var mht=300,mD=Vn.domSupported,bD=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=ut(t,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:r}}(),f8={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},d8=!1;function KO(t){var e=t.pointerType;return e==="pen"||e==="touch"}function bht(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 SD(t){t&&(t.zrByTouch=!0)}function Sht(t,e){return zo(t.dom,new wht(t,e),!0)}function wae(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 wht=function(){function t(e,n){this.stopPropagation=Qr,this.stopImmediatePropagation=Qr,this.preventDefault=Qr,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Ds={mousedown:function(t){t=zo(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=zo(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=zo(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=zo(this.dom,t);var e=t.toElement||t.relatedTarget;wae(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){d8=!0,t=zo(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){d8||(t=zo(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=zo(this.dom,t),SD(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ds.mousemove.call(this,t),Ds.mousedown.call(this,t)},touchmove:function(t){t=zo(this.dom,t),SD(t),this.handler.processGesture(t,"change"),Ds.mousemove.call(this,t)},touchend:function(t){t=zo(this.dom,t),SD(t),this.handler.processGesture(t,"end"),Ds.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<mht&&Ds.click.call(this,t)},pointerdown:function(t){Ds.mousedown.call(this,t)},pointermove:function(t){KO(t)||Ds.mousemove.call(this,t)},pointerup:function(t){Ds.mouseup.call(this,t)},pointerout:function(t){KO(t)||Ds.mouseout.call(this,t)}};Z(["click","dblclick","contextmenu"],function(t){Ds[t]=function(e){e=zo(this.dom,e),this.trigger(t,e)}});var YO={pointermove:function(t){KO(t)||YO.mousemove.call(this,t)},pointerup:function(t){YO.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 _ht(t,e){var n=e.domHandlers;Vn.pointerEventsSupported?Z(bD.pointer,function(r){dx(e,r,function(a){n[r].call(t,a)})}):(Vn.touchEventsSupported&&Z(bD.touch,function(r){dx(e,r,function(a){n[r].call(t,a),bht(e)})}),Z(bD.mouse,function(r){dx(e,r,function(a){a=AB(a),e.touching||n[r].call(t,a)})}))}function xht(t,e){Vn.pointerEventsSupported?Z(f8.pointer,n):Vn.touchEventsSupported||Z(f8.mouse,n);function n(r){function a(i){i=AB(i),wae(t,i.target)||(i=Sht(t,i),e.domHandlers[r].call(t,i))}dx(e,r,a,{capture:!0})}}function dx(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,$O(t.domTarget,e,n,r)}function wD(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Tdt(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var h8=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),Cht=function(t){Ve(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 h8(n,Ds),mD&&(a._globalHandlerScope=new h8(document,YO)),_ht(a,a._localHandlerScope),a}return e.prototype.dispose=function(){wD(this._localHandlerScope),mD&&wD(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,mD&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?xht(this,r):wD(r)}},e}(hs);const Tht=Cht;var _ae=1;Vn.hasGlobalWindow&&(_ae=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var N2=_ae,qO=.4,XO="#333",ZO="#ccc",Eht="#eee",p8=Ob,v8=5e-5;function md(t){return t>v8||t<-v8}var bd=[],zp=[],_D=Do(),xD=Math.abs,Mht=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 md(this.rotation)||md(this.x)||md(this.y)||md(this.scaleX-1)||md(this.scaleY-1)||md(this.skewX)||md(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(p8(r),this.invTransform=null);return}r=r||Do(),n?this.getLocalTransform(r):p8(r),e&&(n?Gl(r,e,r):$T(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(bd);var r=bd[0]<0?-1:1,a=bd[1]<0?-1:1,i=((bd[0]-r)*n+r)/bd[0]||0,o=((bd[1]-a)*n+a)/bd[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Do(),vp(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&&(Gl(zp,e.invTransform,n),n=zp);var r=this.originX,a=this.originY;(r||a)&&(_D[4]=r,_D[5]=a,Gl(zp,n,_D),zp[4]-=r,zp[5]-=a,n=zp),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&&Wa(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&Wa(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&xD(e[0]-1)>1e-10&&xD(e[3]-1)>1e-10?Math.sqrt(xD(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){xae(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,v=a+l;n[4]=-p*i-d*v*o,n[5]=-v*o-h*p*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,u&&Gf(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}(),Zl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function xae(t,e){for(var n=0;n<Zl.length;n++){var r=Zl[n];t[r]=e[r]}}const Ru=Mht;var g8={};function Mo(t,e){e=e||Ef;var n=g8[e];n||(n=g8[e]=new Ab(500));var r=n.get(t);return r==null&&(r=Js.measureText(t,e).width,n.put(t,r)),r}function y8(t,e,n,r){var a=Mo(t,e),i=zT(e),o=Fy(0,a,n),s=vv(0,i,r),l=new dn(o,s,a,i);return l}function Nb(t,e,n,r){var a=((t||"")+"").split(`
  1125. `),i=a.length;if(i===1)return y8(a[0],e,n,r);for(var o=new dn(0,0,0,0),s=0;s<a.length;s++){var l=y8(a[s],e,n,r);s===0?o.copy(l):o.union(l)}return o}function Fy(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function vv(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function zT(t){return Mo("国",t)}function tl(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function V2(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+=tl(r[0],n.width),u+=tl(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 CD="__zr_normal__",TD=Zl.concat(["ignore"]),Dht=fs(Zl,function(t,e){return t[e]=!0,t},{ignore:!1}),Up={},kht=new dn(0,0,0,0),$B=function(){function t(e){this.id=kB(),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=kht;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Up,r,c):V2(Up,r,c),i.x=Up.x,i.y=Up.y,o=Up.align,s=Up.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=tl(f[0],c.width),h=tl(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var v=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,b=void 0;v&&this.canBeInsideText()?(y=r.insideFill,m=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),b=!0)):(y=r.outsideFill,m=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=b,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=So,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()?ZO:XO},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Pi(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,Xs(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||{},Qe(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(Wt(e))for(var r=e,a=Tn(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!==CD)){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,TD)},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(CD,!1,e)},t.prototype.useState=function(e,n,r,a){var i=e===CD,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(vn(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){NT("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&=~So),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),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(e,n,d),g&&g.useStates(e,n,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~So)}},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=vn(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=vn(a,e),o=vn(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];Qe(n,i),i.textConfig&&(r=r||{},Qe(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=Qe({},a?this.textConfig:r.textConfig),Qe(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<TD.length;c++){var f=TD[c],d=i&&Dht[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],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(n||r)[p]: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 Ru,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Qe(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|=So;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 IB(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=vn(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){ED(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){ED(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var i=ED(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=So;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}();ea($B,hs);ea($B,Ru);function ED(t,e,n,r,a){n=n||{};var i=[];Cae(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(p,v){n.during(v)});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 MD(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Rht(t){return ii(t[0])}function Lht(t,e,n){if(ii(e[n]))if(ii(t[n])||(t[n]=[]),vo(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),MD(t[n],e[n],r))}else{var a=e[n],i=t[n],o=a.length;if(Rht(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?MD(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else MD(i,a,o);i.length=a.length}else t[n]=e[n]}function Oht(t,e){return t===e||ii(t)&&ii(e)&&Aht(t,e)}function Aht(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 Cae(t,e,n,r,a,i,o,s){for(var l=Tn(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!Wt(i),p=t.animators,v=[],g=0;g<l.length;g++){var y=l[g],m=r[y];if(m!=null&&n[y]!=null&&(h||i[y]))if(Wt(m)&&!ii(m)&&!Rb(m)){if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}Cae(t,y,n[y],m,a,i&&i[y],o,s)}else v.push(y);else s||(n[y]=m,t.updateDuringAnimation(e),v.push(y))}var b=v.length;if(!f&&b)for(var w=0;w<p.length;w++){var C=p[w];if(C.targetName===e){var x=C.stopTracks(v);if(x){var _=vn(p,C);p.splice(_,1)}}}if(a.force||(v=nr(v,function(k){return!Oht(r[k],n[k])}),b=v.length),b>0||a.force&&!o.length){var T=void 0,M=void 0,E=void 0;if(s){M={},d&&(T={});for(var w=0;w<b;w++){var y=v[w];M[y]=n[y],d?T[y]=r[y]:n[y]=r[y]}}else if(d){E={};for(var w=0;w<b;w++){var y=v[w];E[y]=bm(n[y]),Lht(n,r,y)}}var C=new IB(n,!1,!1,f?nr(p,function(R){return R.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),d&&T&&C.whenWithKeys(0,T,v),E&&C.whenWithKeys(0,E,v),C.whenWithKeys(u??500,s?M:r,v).delay(c||0),t.addAnimator(C,e),o.push(C)}}const Tae=$B;var Eae=function(t){Ve(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=vn(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=vn(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 dn(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?(dn.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},e}(Tae);Eae.prototype.type="group";const Xt=Eae;/*!
  1126. * ZRender, a high performance 2d drawing library.
  1127. *
  1128. * Copyright (c) 2013, Baidu Inc.
  1129. * All rights reserved.
  1130. *
  1131. * LICENSE
  1132. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  1133. */var hx={},gh={};function Nht(t){delete gh[t]}function Vht(t){if(!t)return!1;if(typeof t=="string")return T1(t,1)<qO;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=T1(e[a].color,1);return n/=r,n<qO}return!1}var Bht=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 zdt,o=r.renderer||"canvas";hx[o]||(o=Tn(hx)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new hx[o](n,i,r,e),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Vn.node&&!Vn.worker&&!l?new Tht(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Vn.touchEventsSupported:!!c,d=44,h;f&&(h=fn(r.pointerSize,d)),this.handler=new Bdt(i,s,u,s.root,h),this.animation=new yht({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=Vht(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=Mv();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=Mv();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 Xt&&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,Nht(this.id)},t}();function QO(t,e){var n=new Bht(kB(),t,e);return gh[n.id]=n,n}function Iht(t){t.dispose()}function $ht(){for(var t in gh)gh.hasOwnProperty(t)&&gh[t].dispose();gh={}}function Pht(t){return gh[t]}function Mae(t,e){hx[t]=e}var Fht="5.4.4";const zht=Object.freeze(Object.defineProperty({__proto__:null,dispose:Iht,disposeAll:$ht,getInstance:Pht,init:QO,registerPainter:Mae,version:Fht},Symbol.toStringTag,{value:"Module"}));var m8=1e-4,Dae=20;function Uht(t){return t.replace(/^\s+|\s+$/g,"")}function tr(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 wt(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 Mt(t)?Uht(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Yr(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),Dae),t=(+t).toFixed(e),n?t:+t}function Co(t){return t.sort(function(e,n){return e-n}),t}function Gs(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 kae(t)}function kae(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 PB(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 Ght(t,e,n){if(!t[e])return 0;var r=Rae(t,n);return r[e]||0}function Rae(t,e){var n=fs(t,function(h,p){return h+(isNaN(p)?0:p)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=ut(t,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=ut(a,function(h){return Math.floor(h)}),s=fs(o,function(h,p){return h+p},0),l=ut(a,function(h,p){return h-o[p]});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 ut(o,function(h){return h/r})}function Hht(t,e){var n=Math.max(Gs(t),Gs(e)),r=t+e;return n>Dae?r:Yr(r,n)}var JO=9007199254740991;function FB(t){var e=Math.PI*2;return(t%e+e)%e}function M1(t){return t>-m8&&t<m8}var Wht=/^(?:(\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 ko(t){if(t instanceof Date)return t;if(Mt(t)){var e=Wht.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 Lae(t){return Math.pow(10,UT(t))}function UT(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 zB(t,e){var n=UT(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 px(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 eA(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 Ql(t){var e=parseFloat(t);return e==t&&(e!==0||!Mt(t)||t.indexOf("x")<=0)?e:NaN}function UB(t){return!isNaN(Ql(t))}function Oae(){return Math.round(Math.random()*9)}function Aae(t,e){return e===0?t:Aae(e,t%e)}function b8(t,e){return t==null?e:e==null?t:t*e/Aae(t,e)}function Zn(t){throw new Error(t)}function S8(t,e,n){return(e-t)*n+t}var Nae="series\0",Vae="\0_ec_\0";function ur(t){return t instanceof Array?t:t==null?[]:[t]}function Zh(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 w8=["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 n0(t){return Wt(t)&&!at(t)&&!(t instanceof Date)?t.value:t}function jht(t){return Wt(t)&&!(t instanceof Array)}function Bae(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=It();Z(e,function(l,u){if(!Wt(l)){e[u]=null;return}});var s=Kht(t,o,n);return(r||a)&&Yht(s,t,o,e),r&&qht(s,e),r||a?Xht(s,e,a):i&&Zht(s,e),Qht(s),s}function Kht(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"||D1(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function Yht(t,e,n,r){Z(r,function(a,i){if(!(!a||a.id==null)){var o=Sm(a.id),s=n.get(o);if(s!=null){var l=t[s];bi(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],r[i]=null}}})}function qht(t,e){Z(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)&&!D1(n)&&!D1(i)&&Iae("name",i,n)){t[a].newOption=n,e[r]=null;return}}})}function Xht(t,e,n){Z(e,function(r){if(r){for(var a,i=0;(a=t[i])&&(a.newOption||D1(a.existing)||a.existing&&r.id!=null&&!Iae("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function Zht(t,e){Z(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function Qht(t){var e=It();Z(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),Z(t,function(n){var r=n.newOption;bi(!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={})}),Z(t,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(Wt(i)){if(o.name=i.name!=null?Sm(i.name):a?a.name:Nae+r,a)o.id=Sm(a.id);else if(i.id!=null)o.id=Sm(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 Iae(t,e,n){var r=Sa(e[t],null),a=Sa(n[t],null);return r!=null&&a!=null&&r===a}function Sm(t){return Sa(t,"")}function Sa(t,e){return t==null?e:Mt(t)?t:Bn(t)||M2(t)?t+"":e}function GB(t){var e=t.name;return!!(e&&e.indexOf(Nae))}function D1(t){return t&&t.id!=null&&Sm(t.id).indexOf(Vae)===0}function Jht(t){return Vae+t}function ept(t,e,n){Z(t,function(r){var a=r.newOption;Wt(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=tpt(e,a,r.existing,n))})}function tpt(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function npt(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=Sa(o[u].seriesId,null);if(f==null)return;for(var d=ur(o[u].dataIndex),h=l&&l[f],p=0,v=d.length;p<v;p++){var g=d[p];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 Qh(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return at(e.dataIndex)?ut(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return at(e.name)?ut(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function In(){var t="__ec_inner_"+rpt++;return function(e){return e[t]||(e[t]={})}}var rpt=Oae();function wm(t,e,n){var r=HB(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=Vb(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 HB(t,e){var n;if(Mt(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=It(),i={},o=!1;return Z(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&&vn(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 ca={useDefault:!0,enableAll:!1,enableNone:!1},apt={useDefault:!1,enableAll:!0,enableNone:!0};function Vb(t,e,n,r){r=r||ca;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?(bi(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(bi(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 $ae(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ipt(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function opt(t){return t==="auto"?Vn.domSupported?"html":"richText":t||"html"}function tA(t,e){var n=It(),r=[];return Z(t,function(a){var i=e(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function Pae(t,e,n,r,a){var i=e==null||e==="auto";if(r==null)return r;if(Bn(r)){var o=S8(n||0,r,a);return Yr(o,i?Math.max(Gs(n||0),Gs(r)):e)}else{if(Mt(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,p=u[f],o=S8(h,p,a);s[f]=Yr(o,i?Math.max(Gs(h),Gs(p)):e)}}return s}}var spt=".",Sd="___EC__COMPONENT__CONTAINER___",Fae="___EC__EXTENDED_CLASS___";function Vl(t){var e={main:"",sub:""};if(t){var n=t.split(spt);e.main=n[0]||"",e.sub=n[1]||""}return e}function lpt(t){bi(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function upt(t){return!!(t&&t[Fae])}function WB(t,e){t.$constructor=t,t.extend=function(n){var r=this,a;return cpt(r)?a=function(i){Ve(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},RB(a,this)),Qe(a.prototype,n),a[Fae]=!0,a.extend=this.extend,a.superCall=hpt,a.superApply=ppt,a.superClass=r,a}}function cpt(t){return zt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function zae(t,e){t.extend=e.extend}var fpt=Math.round(Math.random()*10);function dpt(t){var e=["__\0is_clz",fpt++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function hpt(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 ppt(t,e,n){return this.superClass.prototype[e].apply(t,n)}function GT(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){lpt(a),r.prototype.type=a;var i=Vl(a);if(!i.sub)e[i.main]=r;else if(i.sub!==Sd){var o=n(i);o[i.sub]=r}}return r},t.getClass=function(r,a,i){var o=e[r];if(o&&o[Sd]&&(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=Vl(r),i=[],o=e[a.main];return o&&o[Sd]?Z(o,function(s,l){l!==Sd&&i.push(s)}):i.push(o),i},t.hasClass=function(r){var a=Vl(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return Z(e,function(a,i){r.push(i)}),r},t.hasSubTypes=function(r){var a=Vl(r),i=e[a.main];return i&&i[Sd]};function n(r){var a=e[r.main];return(!a||!a[Sd])&&(a=e[r.main]={},a[Sd]=!0),a}}function Jh(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&&vn(a,l)>=0||i&&vn(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var vpt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gpt=Jh(vpt),ypt=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return gpt(this,e,n)},t}(),nA=new Ab(50);function mpt(t){if(typeof t=="string"){var e=nA.get(t);return e&&e.image}else return t}function jB(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var i=nA.get(t),o={hostEl:n,cb:r,cbPayload:a};return i?(e=i.image,!HT(e)&&i.pending.push(o)):(e=Js.loadImage(t,_8,_8),e.__zrImageSrc=t,nA.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function _8(){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 HT(t){return t&&t.width&&t.height}var DD=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Uae(t,e,n,r,a){if(!e)return"";var i=(t+"").split(`
  1134. `);a=Gae(e,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=Hae(i[o],a);return i.join(`
  1135. `)}function Gae(t,e,n,r){r=r||{};var a=Qe({},r);a.font=e,n=fn(n,"..."),a.maxIterations=fn(r.maxIterations,2);var i=a.minChar=fn(r.minChar,0);a.cnCharWidth=Mo("国",e);var o=a.ascCharWidth=Mo("a",e);a.placeholder=fn(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<i&&s>=o;l++)s-=o;var u=Mo(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 Hae(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var i=Mo(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?bpt(t,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(t.length*a/i):0;t=t.substr(0,s),i=Mo(t,r)}return t===""&&(t=e.placeholder),t}function bpt(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 Spt(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,i=n==="truncate",o=zT(a),s=fn(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,f;c!=null&&(n==="break"||n==="breakAll")?f=t?Wae(t,e.font,c,n==="breakAll",0).lines:[]:f=t?t.split(`
  1136. `):[];var d=f.length*s,h=fn(e.height,d);if(d>h&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(t&&i&&c!=null)for(var v=Gae(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<f.length;g++)f[g]=Hae(f[g],v);for(var y=h,m=0,g=0;g<f.length;g++)m=Math.max(Mo(f[g],a),m);c==null&&(c=m);var b=m;return r&&(y+=r[0]+r[2],b+=r[1]+r[3],c+=r[1]+r[3]),l&&(b=c),{lines:f,height:h,outerWidth:b,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:d,width:c}}var wpt=function(){function t(){}return t}(),x8=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),_pt=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 xpt(t,e){var n=new _pt;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=DD.lastIndex=0,l;(l=DD.exec(t))!=null;){var u=l.index;u>s&&kD(n,t.substring(s,u),e,o),kD(n,l[2],e,o,l[1]),s=DD.lastIndex}s<t.length&&kD(n,t.substring(s,t.length),e,o);var c=[],f=0,d=0,h=e.padding,p=i==="truncate",v=e.lineOverflow==="truncate";function g($,N,P){$.width=N,$.lineHeight=P,f+=P,d=Math.max(d,N)}e:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],b=0,w=0,C=0;C<m.tokens.length;C++){var x=m.tokens[C],_=x.styleName&&e.rich[x.styleName]||{},T=x.textPadding=_.padding,M=T?T[1]+T[3]:0,E=x.font=_.font||e.font;x.contentHeight=zT(E);var k=fn(_.height,x.contentHeight);if(x.innerHeight=k,T&&(k+=T[0]+T[2]),x.height=k,x.lineHeight=Ys(_.lineHeight,e.lineHeight,k),x.align=_&&_.align||e.align,x.verticalAlign=_&&_.verticalAlign||"middle",v&&a!=null&&f+x.lineHeight>a){C>0?(m.tokens=m.tokens.slice(0,C),g(m,w,b),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var R=_.width,L=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")x.percentWidth=R,c.push(x),x.contentWidth=Mo(x.text,E);else{if(L){var A=_.backgroundColor,V=A&&A.image;V&&(V=mpt(V),HT(V)&&(x.width=Math.max(x.width,V.width*k/V.height)))}var G=p&&r!=null?r-w:null;G!=null&&G<x.width?!L||G<M?(x.text="",x.width=x.contentWidth=0):(x.text=Uae(x.text,G-M,E,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=Mo(x.text,E)):x.contentWidth=Mo(x.text,E)}x.width+=M,w+=x.width,_&&(b=Math.max(b,x.lineHeight))}g(m,w,b)}n.outerWidth=n.width=fn(r,d),n.outerHeight=n.height=fn(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 x=c[y],I=x.percentWidth;x.width=parseInt(I,10)/100*n.width}return n}function kD(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 p=tl(o.width,r.width)+h;s.length>0&&p+r.accumWidth>r.width&&(c=e.split(`
  1137. `),u=!0),r.accumWidth=p}else{var v=Wae(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=e.split(`
  1138. `);for(var g=0;g<c.length;g++){var y=c[g],m=new wpt;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=f?f[g]:Mo(y,l),!g&&!u){var b=(s[s.length-1]||(s[0]=new x8)).tokens,w=b.length;w===1&&b[0].isLineHolder?b[0]=m:(y||!w||i)&&b.push(m)}else s.push(new x8([m]))}}function Cpt(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Tpt=fs(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ept(t){return Cpt(t)?!!Tpt[t]:!0}function Wae(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===`
  1139. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Mo(d,e),p=r?!1:!Ept(d);if(i.length?c+h>n:a+c+h>n){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):p?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var rA="__zr_style_"+Math.round(Math.random()*10),Vh={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},WT={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Vh[rA]=!0;var C8=["z","z2","invisible"],Mpt=["invisible"],Dpt=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=Tn(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&&kpt(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 dn(0,0,0,0)),r?dn.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 dn(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:Qe(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=$y,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&$y)},e.prototype.styleUpdated=function(){this.__dirty&=~$y},e.prototype.createStyle=function(n){return Lb(Vh,n)},e.prototype.useStyle=function(n){n[rA]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[rA]},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,C8)},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=Tn(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 p=Tn(u),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?Mpt:C8,d=0;d<v.length;d++){var h=v[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 Qe(n,r),n},e.prototype.getAnimationStyleProps=function(){return WT},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=So|$y}(),e}(Tae),RD=new dn(0,0,0,0),LD=new dn(0,0,0,0);function kpt(t,e,n){return RD.copy(t.getBoundingRect()),t.transform&&RD.applyTransform(t.transform),LD.width=e,LD.height=n,!RD.intersect(LD)}const ds=Dpt;var ao=Math.min,io=Math.max,OD=Math.sin,AD=Math.cos,wd=Math.PI*2,_w=Uf(),xw=Uf(),Cw=Uf();function jT(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=ao(a,r[0]),i=io(i,r[0]),o=ao(o,r[1]),s=io(s,r[1]);e[0]=a,e[1]=o,n[0]=i,n[1]=s}}function T8(t,e,n,r,a,i){a[0]=ao(t,n),a[1]=ao(e,r),i[0]=io(t,n),i[1]=io(e,r)}var E8=[],M8=[];function Rpt(t,e,n,r,a,i,o,s,l,u){var c=lae,f=Ca,d=c(t,n,a,o,E8);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var p=f(t,n,a,o,E8[h]);l[0]=ao(p,l[0]),u[0]=io(p,u[0])}d=c(e,r,i,s,M8);for(var h=0;h<d;h++){var v=f(e,r,i,s,M8[h]);l[1]=ao(v,l[1]),u[1]=io(v,u[1])}l[0]=ao(t,l[0]),u[0]=io(t,u[0]),l[0]=ao(o,l[0]),u[0]=io(o,u[0]),l[1]=ao(e,l[1]),u[1]=io(e,u[1]),l[1]=ao(s,l[1]),u[1]=io(s,u[1])}function Lpt(t,e,n,r,a,i,o,s){var l=cae,u=Fa,c=io(ao(l(t,n,a),1),0),f=io(ao(l(e,r,i),1),0),d=u(t,n,a,c),h=u(e,r,i,f);o[0]=ao(t,a,d),o[1]=ao(e,i,h),s[0]=io(t,a,d),s[1]=io(e,i,h)}function Opt(t,e,n,r,a,i,o,s,l){var u=Du,c=ku,f=Math.abs(a-i);if(f%wd<1e-4&&f>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(_w[0]=AD(a)*n+t,_w[1]=OD(a)*r+e,xw[0]=AD(i)*n+t,xw[1]=OD(i)*r+e,u(s,_w,xw),c(l,_w,xw),a=a%wd,a<0&&(a=a+wd),i=i%wd,i<0&&(i=i+wd),a>i&&!o?i+=wd:a<i&&o&&(a+=wd),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(Cw[0]=AD(h)*n+t,Cw[1]=OD(h)*r+e,u(s,Cw,s),c(l,Cw,l))}var pr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_d=[],xd=[],yl=[],wc=[],ml=[],bl=[],ND=Math.min,VD=Math.max,Cd=Math.cos,Td=Math.sin,fu=Math.abs,aA=Math.PI,Bc=aA*2,BD=typeof Float32Array<"u",ty=[];function ID(t){var e=Math.round(t/aA*1e8)/1e8;return e%2*aA}function jae(t,e){var n=ID(t[0]);n<0&&(n+=Bc);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=Bc?a=n+Bc:e&&n-a>=Bc?a=n-Bc:!e&&n>a?a=n+(Bc-ID(n-a)):e&&n<a&&(a=n-(Bc-ID(a-n))),t[0]=n,t[1]=a}var Apt=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=fu(r/N2/e)||0,this._uy=fu(r/N2/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(pr.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=fu(e-this._xi),a=fu(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(pr.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(pr.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(pr.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(),ty[0]=a,ty[1]=i,jae(ty,o),a=ty[0],i=ty[1];var s=i-a;return this.addData(pr.A,e,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,a,i,o),this._xi=Cd(i)*r+e,this._yi=Td(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(pr.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(pr.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)&&BD&&(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();BD&&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,BD&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){yl[0]=yl[1]=ml[0]=ml[1]=Number.MAX_VALUE,wc[0]=wc[1]=bl[0]=bl[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 pr.M:n=a=e[o++],r=i=e[o++],ml[0]=a,ml[1]=i,bl[0]=a,bl[1]=i;break;case pr.L:T8(n,r,e[o],e[o+1],ml,bl),n=e[o++],r=e[o++];break;case pr.C:Rpt(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ml,bl),n=e[o++],r=e[o++];break;case pr.Q:Lpt(n,r,e[o++],e[o++],e[o],e[o+1],ml,bl),n=e[o++],r=e[o++];break;case pr.A:var u=e[o++],c=e[o++],f=e[o++],d=e[o++],h=e[o++],p=e[o++]+h;o+=1;var v=!e[o++];l&&(a=Cd(h)*f+u,i=Td(h)*d+c),Opt(u,c,f,d,h,p,v,ml,bl),n=Cd(p)*f+u,r=Td(p)*d+c;break;case pr.R:a=n=e[o++],i=r=e[o++];var g=e[o++],y=e[o++];T8(a,i,a+g,i+y,ml,bl);break;case pr.Z:n=a,r=i;break}Du(yl,yl,ml),ku(wc,wc,bl)}return o===0&&(yl[0]=yl[1]=wc[0]=wc[1]=0),new dn(yl[0],yl[1],wc[0]-yl[0],wc[1]-yl[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++],p=d===1;p&&(i=e[d],o=e[d+1],s=i,l=o);var v=-1;switch(h){case pr.M:i=s=e[d++],o=l=e[d++];break;case pr.L:{var g=e[d++],y=e[d++],m=g-i,b=y-o;(fu(m)>r||fu(b)>a||d===n-1)&&(v=Math.sqrt(m*m+b*b),i=g,o=y);break}case pr.C:{var w=e[d++],C=e[d++],g=e[d++],y=e[d++],x=e[d++],_=e[d++];v=Udt(i,o,w,C,g,y,x,_,10),i=x,o=_;break}case pr.Q:{var w=e[d++],C=e[d++],g=e[d++],y=e[d++];v=Hdt(i,o,w,C,g,y,10),i=g,o=y;break}case pr.A:var T=e[d++],M=e[d++],E=e[d++],k=e[d++],R=e[d++],L=e[d++],A=L+R;d+=1,e[d++],p&&(s=Cd(R)*E+T,l=Td(R)*k+M),v=VD(E,k)*ND(Bc,Math.abs(L)),i=Cd(A)*E+T,o=Td(A)*k+M;break;case pr.R:{s=i=e[d++],l=o=e[d++];var V=e[d++],G=e[d++];v=V*2+G*2;break}case pr.Z:{var m=s-i,b=l-o;v=Math.sqrt(m*m+b*b),i=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,p,v,g=0,y=0,m,b=0,w,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,m=n*v,!m)))e:for(var x=0;x<o;){var _=r[x++],T=x===1;switch(T&&(u=r[x],c=r[x+1],s=u,l=c),_!==pr.L&&b>0&&(e.lineTo(w,C),b=0),_){case pr.M:s=u=r[x++],l=c=r[x++],e.moveTo(u,c);break;case pr.L:{f=r[x++],d=r[x++];var M=fu(f-u),E=fu(d-c);if(M>a||E>i){if(h){var k=p[y++];if(g+k>m){var R=(m-g)/k;e.lineTo(u*(1-R)+f*R,c*(1-R)+d*R);break e}g+=k}e.lineTo(f,d),u=f,c=d,b=0}else{var L=M*M+E*E;L>b&&(w=f,C=d,b=L)}break}case pr.C:{var A=r[x++],V=r[x++],G=r[x++],I=r[x++],$=r[x++],N=r[x++];if(h){var k=p[y++];if(g+k>m){var R=(m-g)/k;Mf(u,A,G,$,R,_d),Mf(c,V,I,N,R,xd),e.bezierCurveTo(_d[1],xd[1],_d[2],xd[2],_d[3],xd[3]);break e}g+=k}e.bezierCurveTo(A,V,G,I,$,N),u=$,c=N;break}case pr.Q:{var A=r[x++],V=r[x++],G=r[x++],I=r[x++];if(h){var k=p[y++];if(g+k>m){var R=(m-g)/k;_1(u,A,G,R,_d),_1(c,V,I,R,xd),e.quadraticCurveTo(_d[1],xd[1],_d[2],xd[2]);break e}g+=k}e.quadraticCurveTo(A,V,G,I),u=G,c=I;break}case pr.A:var P=r[x++],Y=r[x++],J=r[x++],re=r[x++],oe=r[x++],ue=r[x++],le=r[x++],fe=!r[x++],se=J>re?J:re,_e=fu(J-re)>.001,ve=oe+ue,he=!1;if(h){var k=p[y++];g+k>m&&(ve=oe+ue*(m-g)/k,he=!0),g+=k}if(_e&&e.ellipse?e.ellipse(P,Y,J,re,le,oe,ve,fe):e.arc(P,Y,se,oe,ve,fe),he)break e;T&&(s=Cd(oe)*J+P,l=Td(oe)*re+Y),u=Cd(ve)*J+P,c=Td(ve)*re+Y;break;case pr.R:s=u=r[x],l=c=r[x+1],f=r[x++],d=r[x++];var q=r[x++],ce=r[x++];if(h){var k=p[y++];if(g+k>m){var Se=m-g;e.moveTo(f,d),e.lineTo(f+ND(Se,q),d),Se-=q,Se>0&&e.lineTo(f+q,d+ND(Se,ce)),Se-=ce,Se>0&&e.lineTo(f+VD(q-Se,0),d+ce),Se-=q,Se>0&&e.lineTo(f,d+VD(ce-Se,0));break e}g+=k}e.rect(f,d,q,ce);break;case pr.Z:if(h){var k=p[y++];if(g+k>m){var R=(m-g)/k;e.lineTo(u*(1-R)+s*R,c*(1-R)+l*R);break e}g+=k}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=pr,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const Jl=Apt;function zc(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 Npt(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=uae(t,e,n,r,a,i,o,s,u,c,null);return d<=f/2}function Kae(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=fae(t,e,n,r,a,i,s,l,null);return c<=u/2}var D8=Math.PI*2;function Hs(t){return t%=D8,t<0&&(t+=D8),t}var ny=Math.PI*2;function Vpt(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)%ny<1e-4)return!0;if(i){var f=r;r=Hs(a),a=Hs(f)}else r=Hs(r),a=Hs(a);r>a&&(a+=ny);var d=Math.atan2(l,s);return d<0&&(d+=ny),d>=r&&d<=a||d+ny>=r&&d+ny<=a}function bu(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 _c=Jl.CMD,Ed=Math.PI*2,Bpt=1e-4;function Ipt(t,e){return Math.abs(t-e)<Bpt}var Ri=[-1,-1,-1],Ho=[-1,-1];function $pt(){var t=Ho[0];Ho[0]=Ho[1],Ho[1]=t}function Ppt(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=L2(e,r,i,s,u,Ri);if(c===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,v=0;v<c;v++){var g=Ri[v],y=g===0||g===1?.5:1,m=Ca(t,n,a,o,g);m<l||(d<0&&(d=lae(e,r,i,s,Ho),Ho[1]<Ho[0]&&d>1&&$pt(),h=Ca(e,r,i,s,Ho[0]),d>1&&(p=Ca(e,r,i,s,Ho[1]))),d===2?g<Ho[0]?f+=h<e?y:-y:g<Ho[1]?f+=p<h?y:-y:f+=s<p?y:-y:g<Ho[0]?f+=h<e?y:-y:f+=s<h?y:-y)}return f}function Fpt(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=Gdt(e,r,i,s,Ri);if(l===0)return 0;var u=cae(e,r,i);if(u>=0&&u<=1){for(var c=0,f=Fa(e,r,i,u),d=0;d<l;d++){var h=Ri[d]===0||Ri[d]===1?.5:1,p=Fa(t,n,a,Ri[d]);p<o||(Ri[d]<u?c+=f<e?h:-h:c+=i<f?h:-h)}return c}else{var h=Ri[0]===0||Ri[0]===1?.5:1,p=Fa(t,n,a,Ri[0]);return p<o?0:i<e?h:-h}}function zpt(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);Ri[0]=-l,Ri[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=Ed-1e-4){r=0,a=Ed;var c=i?1:-1;return o>=Ri[0]+t&&o<=Ri[1]+t?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=Ed,a+=Ed);for(var d=0,h=0;h<2;h++){var p=Ri[h];if(p+t>o){var v=Math.atan2(s,p),c=i?1:-1;v<0&&(v=Ed+v),(v>=r&&v<=a||v+Ed>=r&&v+Ed<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Yae(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,p=0;p<o;){var v=i[p++],g=p===1;switch(v===_c.M&&p>1&&(n||(s+=bu(l,u,c,f,r,a))),g&&(l=i[p],u=i[p+1],c=l,f=u),v){case _c.M:c=i[p++],f=i[p++],l=c,u=f;break;case _c.L:if(n){if(zc(l,u,i[p],i[p+1],e,r,a))return!0}else s+=bu(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case _c.C:if(n){if(Npt(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=Ppt(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case _c.Q:if(n){if(Kae(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=Fpt(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case _c.A:var y=i[p++],m=i[p++],b=i[p++],w=i[p++],C=i[p++],x=i[p++];p+=1;var _=!!(1-i[p++]);d=Math.cos(C)*b+y,h=Math.sin(C)*w+m,g?(c=d,f=h):s+=bu(l,u,d,h,r,a);var T=(r-y)*w/b+y;if(n){if(Vpt(y,m,w,C,C+x,_,e,T,a))return!0}else s+=zpt(y,m,w,C,C+x,_,T,a);l=Math.cos(C+x)*b+y,u=Math.sin(C+x)*w+m;break;case _c.R:c=l=i[p++],f=u=i[p++];var M=i[p++],E=i[p++];if(d=c+M,h=f+E,n){if(zc(c,f,d,f,e,r,a)||zc(d,f,d,h,e,r,a)||zc(d,h,c,h,e,r,a)||zc(c,h,c,f,e,r,a))return!0}else s+=bu(d,f,d,h,r,a),s+=bu(c,h,c,f,r,a);break;case _c.Z:if(n){if(zc(l,u,c,f,e,r,a))return!0}else s+=bu(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!Ipt(u,f)&&(s+=bu(l,u,c,f,r,a)||0),s!==0}function Upt(t,e,n){return Yae(t,0,!1,e,n)}function Gpt(t,e,n,r){return Yae(t,e,!0,n,r)}var B2=Ht({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Vh),Hpt={style:Ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},WT.style)},$D=Zl.concat(["invisible","culling","z","z2","zlevel","parent"]),Wpt=function(t){Ve(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<$D.length;++s)a[$D[s]]=this[$D[s]];a.__dirty|=So}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=Tn(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?Qe(this.style,s):this.useStyle(s):o==="shape"?Qe(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(Mt(n)){var r=T1(n,0);return r>.5?XO:r>.2?Eht:ZO}else if(n)return ZO}return XO},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Mt(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=T1(n,0)<qO;if(i===o)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~pv},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 Jl(!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&pv)&&(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)),Gpt(s,l/u,n,r)))return!0}if(this.hasFill())return Upt(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=pv,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:Qe(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&pv)},e.prototype.createStyle=function(n){return Lb(B2,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Qe({},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=Qe({},a.shape),Qe(u,r.shape)):(u=Qe({},i?this.shape:a.shape),Qe(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=Qe({},this.shape);for(var c={},f=Tn(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 Hpt},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(i){Ve(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 Kt(n.style)},o.prototype.getDefaultShape=function(){return Kt(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=So|$y|pv}(),e}(ds);const wn=Wpt;var jpt=Ht({strokeFirst:!0,font:Ef,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},B2),qae=function(t){Ve(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 Lb(jpt,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=Nb(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}(ds);qae.prototype.type="tspan";const k1=qae;var Kpt=Ht({x:0,y:0},Vh),Ypt={style:Ht({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},WT.style)};function qpt(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Xae=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return Lb(Kpt,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=qpt(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 Ypt},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new dn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ds);Xae.prototype.type="image";const Ya=Xae;function Xpt(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 Dv=Math.round;function Zae(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&&(Dv(r*2)===Dv(a*2)&&(t.x1=t.x2=yh(r,s,!0)),Dv(i*2)===Dv(o*2)&&(t.y1=t.y2=yh(i,s,!0))),t}}function Qae(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=yh(r,s,!0),t.y=yh(a,s,!0),t.width=Math.max(yh(r+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(yh(a+o,s,!1)-t.y,o===0?0:1)),t}}function yh(t,e,n){if(!e)return t;var r=Dv(t*2);return(r+Dv(e))%2===0?r/2:(r+(n?1:-1))/2}var Zpt=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Qpt={},Jae=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Zpt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=Qae(Qpt,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?Xpt(n,r):n.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(wn);Jae.prototype.type="rect";const An=Jae;var k8={fill:"#000"},R8=2,Jpt={style:Ht({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},WT.style)},eie=function(t){Ve(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=k8,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,nvt(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 dn(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||k8},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Qe(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=Tn(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Qe(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return Jpt},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||Ef,a=n.padding,i=I8(n),o=Spt(i,n),s=PD(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,p=this._defaultStyle,v=n.x||0,g=n.y||0,y=n.align||p.align||"left",m=n.verticalAlign||p.verticalAlign||"top",b=v,w=vv(g,o.contentHeight,m);if(s||a){var C=Fy(v,c,y),x=vv(g,u,m);s&&this._renderBackground(n,n,C,x,c,u)}w+=h/2,a&&(b=B8(v,y,a),m==="top"?w+=a[0]:m==="bottom"&&(w-=a[2]));for(var _=0,T=!1,M=V8("fill"in n?n.fill:(T=!0,p.fill)),E=N8("stroke"in n?n.stroke:!l&&(!p.autoStroke||T)?(_=R8,p.stroke):null),k=n.textShadowBlur>0,R=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),L=o.calculatedLineHeight,A=0;A<d.length;A++){var V=this._getOrCreateChild(k1),G=V.createStyle();V.useStyle(G),G.text=d[A],G.x=b,G.y=w,y&&(G.textAlign=y),G.textBaseline="middle",G.opacity=n.opacity,G.strokeFirst=!0,k&&(G.shadowBlur=n.textShadowBlur||0,G.shadowColor=n.textShadowColor||"transparent",G.shadowOffsetX=n.textShadowOffsetX||0,G.shadowOffsetY=n.textShadowOffsetY||0),G.stroke=E,G.fill=M,E&&(G.lineWidth=n.lineWidth||_,G.lineDash=n.lineDash,G.lineDashOffset=n.lineDashOffset||0),G.font=r,O8(G,n),w+=h,R&&V.setBoundingRect(new dn(Fy(G.x,n.width,G.textAlign),vv(G.y,L,G.textBaseline),f,L))}},e.prototype._updateRichTexts=function(){var n=this.style,r=I8(n),a=xpt(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,p=Fy(u,o,d),v=vv(c,s,h),g=p,y=v;l&&(g+=l[3],y+=l[0]);var m=g+i;PD(n)&&this._renderBackground(n,n,p,v,o,s);for(var b=!!n.backgroundColor,w=0;w<a.lines.length;w++){for(var C=a.lines[w],x=C.tokens,_=x.length,T=C.lineHeight,M=C.width,E=0,k=g,R=m,L=_-1,A=void 0;E<_&&(A=x[E],!A.align||A.align==="left");)this._placeToken(A,n,T,y,k,"left",b),M-=A.width,k+=A.width,E++;for(;L>=0&&(A=x[L],A.align==="right");)this._placeToken(A,n,T,y,R,"right",b),M-=A.width,R-=A.width,L--;for(k+=(i-(k-g)-(m-R)-M)/2;E<=L;)A=x[E],this._placeToken(A,n,T,y,k+A.width/2,"center",b),k+=A.width,E++;y+=T}},e.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&PD(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,p=n.textPadding;p&&(o=B8(o,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var v=this._getOrCreateChild(k1),g=v.createStyle();v.useStyle(g);var y=this._defaultStyle,m=!1,b=0,w=V8("fill"in u?u.fill:"fill"in r?r.fill:(m=!0,y.fill)),C=N8("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||m)?(b=R8,y.stroke):null),x=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,x&&(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||Ef,g.opacity=Ys(u.opacity,r.opacity,1),O8(g,u),C&&(g.lineWidth=Ys(u.lineWidth,r.lineWidth,b),g.lineDash=fn(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=C),w&&(g.fill=w);var _=n.contentWidth,T=n.contentHeight;v.setBoundingRect(new dn(Fy(g.x,_,g.textAlign),vv(g.y,T,g.textBaseline),_,T))},e.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,p=this,v,g;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(An),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,v.dirtyShape()}if(d){var m=v.style;m.fill=l||null,m.fillOpacity=fn(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Ya),g.onload=function(){p.dirtyStyle()};var b=g.style;b.image=l.image,b.x=a,b.y=i,b.width=o,b.height=s}if(u&&c){var m=v.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=fn(n.strokeOpacity,1),m.lineDash=n.borderDash,m.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var w=(v||g).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=Ys(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return nie(n)&&(r=[n.fontStyle,n.fontWeight,tie(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Qo(r)||n.textFont||n.font},e}(ds),evt={left:!0,right:1,center:1},tvt={top:1,bottom:1,middle:1},L8=["fontStyle","fontWeight","fontSize","fontFamily"];function tie(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?EB+"px":t+"px"}function O8(t,e){for(var n=0;n<L8.length;n++){var r=L8[n],a=e[r];a!=null&&(t[r]=a)}}function nie(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function nvt(t){return A8(t),Z(t.rich,A8),t}function A8(t){if(t){t.font=eie.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||evt[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||tvt[n]?n:"top";var r=t.padding;r&&(t.padding=IT(t.padding))}}function N8(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function V8(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function B8(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function I8(t){var e=t.text;return e!=null&&(e+=""),e}function PD(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const On=eie;var rn=In(),iA=function(t,e,n,r){if(r){var a=rn(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,r.type==="group"&&r.traverse(function(i){var o=rn(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e})}},$8=1,P8={},rie=In(),KB=In(),YB=0,Bb=1,KT=2,Hi=["emphasis","blur","select"],R1=["normal","emphasis","blur","select"],r0=10,rvt=9,Bh="highlight",vx="downplay",_m="select",gx="unselect",xm="toggleSelect";function Gp(t){return t!=null&&t!=="none"}var F8=new Ab(100);function z8(t){if(Mt(t)){var e=F8.get(t);return e||(e=O2(t,-.1),F8.put(t,e)),e}else if(Rb(t)){var n=Qe({},t);return n.colorStops=ut(t.colorStops,function(r){return{offset:r.offset,color:O2(r.color,-.1)}}),n}return t}function YT(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function aie(t){YT(t,"emphasis",KT)}function iie(t){t.hoverState===KT&&YT(t,"normal",YB)}function qB(t){YT(t,"blur",Bb)}function oie(t){t.hoverState===Bb&&YT(t,"normal",YB)}function avt(t){t.selected=!0}function ivt(t){t.selected=!1}function U8(t,e,n){e(t,n)}function rc(t,e,n){U8(t,e,n),t.isGroup&&t.traverse(function(r){U8(r,e,n)})}function I2(t,e){switch(e){case"emphasis":t.hoverState=KT;break;case"normal":t.hoverState=YB;break;case"blur":t.hoverState=Bb;break;case"select":t.selected=!0}}function ovt(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 svt(t,e,n,r){var a=n&&vn(n,"select")>=0,i=!1;if(t instanceof wn){var o=rie(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Gp(s)||Gp(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Qe({},r),u=Qe({},u),u.fill=s):!Gp(u.fill)&&Gp(s)?(i=!0,r=Qe({},r),u=Qe({},u),u.fill=z8(s)):!Gp(u.stroke)&&Gp(l)&&(i||(r=Qe({},r),u=Qe({},u)),u.stroke=z8(l)),r.style=u}}if(r&&r.z2==null){i||(r=Qe({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??r0)}return r}function lvt(t,e,n){if(n&&n.z2==null){n=Qe({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??rvt)}return n}function uvt(t,e,n){var r=vn(t.currentStates,e)>=0,a=t.style.opacity,i=r?null:ovt(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Qe({},n),o=Qe({opacity:r?a:i.opacity*.1},o),n.style=o),n}function FD(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return svt(this,t,e,n);if(t==="blur")return uvt(this,t,n);if(t==="select")return lvt(this,t,n)}return n}function ep(t){t.stateProxy=FD;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=FD),n&&(n.stateProxy=FD)}function G8(t,e){!cie(t,e)&&!t.__highByOuter&&rc(t,aie)}function H8(t,e){!cie(t,e)&&!t.__highByOuter&&rc(t,iie)}function Gu(t,e){t.__highByOuter|=1<<(e||0),rc(t,aie)}function Hu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&rc(t,iie)}function sie(t){rc(t,qB)}function XB(t){rc(t,oie)}function lie(t){rc(t,avt)}function uie(t){rc(t,ivt)}function cie(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function fie(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,i){var o=KB(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){oie(u)}),s&&n.push(i)),o.isBlured=!1}),Z(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function oA(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&&XB(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"||qB(g)}),ii(e))i(u.getData(),e);else if(Wt(e))for(var p=Tn(e),v=0;v<p.length;v++)i(u.getData(p[v]),e[p[v]]);l.push(u),KB(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 sA(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){KB(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){qB(i)})}}}function cvt(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=Qh(a,e);i=(at(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=rn(o);oA(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&oA(r,c,f,n)}}}function ZB(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(rn(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function fvt(t,e,n){var r=rn(t),a=ZB(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&sA(r.componentMainType,r.componentIndex,n),Z(i,function(s){return G8(s,e)})):(oA(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&sA(r.componentMainType,r.componentIndex,n),G8(t,e))}function dvt(t,e,n){fie(n);var r=rn(t),a=ZB(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?Z(a,function(i){return H8(i,e)}):H8(t,e)}function hvt(t,e,n){if(uA(e)){var r=e.dataType,a=t.getData(r),i=Qh(a,e);at(i)||(i=[i]),t[e.type===xm?"toggleSelect":e.type===_m?"select":"unselect"](i,r)}}function W8(t){var e=t.getAllData();Z(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?lie(i):uie(i)})})}function pvt(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();Z(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 ff(t,e,n){mh(t,!0),rc(t,ep),lA(t,e,n)}function vvt(t){mh(t,!1)}function Xr(t,e,n,r){r?vvt(t):ff(t,e,n)}function lA(t,e,n){var r=rn(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var j8=["emphasis","blur","select"],gvt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oi(t,e,n,r){n=n||"itemStyle";for(var a=0;a<j8.length;a++){var i=j8[a],o=e.getModel([i,n]),s=t.ensureState(i);s.style=r?r(o):o[gvt[n]]()}}function mh(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 L1(t){return!!(t&&t.__highDownDispatcher)}function yvt(t,e,n){var r=rn(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function mvt(t){var e=P8[t];return e==null&&$8<=32&&(e=P8[t]=$8++),e}function uA(t){var e=t.type;return e===_m||e===gx||e===xm}function K8(t){var e=t.type;return e===Bh||e===vx}function bvt(t){var e=rie(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 Hp=Jl.CMD,Svt=[[],[],[]],Y8=Math.sqrt,wvt=Math.atan2;function die(t,e){if(e){var n=t.data,r=t.len(),a,i,o,s,l,u,c=Hp.M,f=Hp.C,d=Hp.L,h=Hp.R,p=Hp.A,v=Hp.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 v:i=2;break;case p:var g=e[4],y=e[5],m=Y8(e[0]*e[0]+e[1]*e[1]),b=Y8(e[2]*e[2]+e[3]*e[3]),w=wvt(-e[1]/b,e[0]/m);n[o]*=m,n[o++]+=g,n[o]*=b,n[o++]+=y,n[o++]*=m,n[o++]*=b,n[o++]+=w,n[o++]+=w,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],Wa(u,u,e),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],Wa(u,u,e),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var C=Svt[l];C[0]=n[o++],C[1]=n[o++],Wa(C,C,e),n[s++]=C[0],n[s++]=C[1]}}t.increaseVersion()}}var zD=Math.sqrt,Tw=Math.sin,Ew=Math.cos,ry=Math.PI;function q8(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function cA(t,e){return(t[0]*e[0]+t[1]*e[1])/(q8(t)*q8(e))}function X8(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(cA(t,e))}function Z8(t,e,n,r,a,i,o,s,l,u,c){var f=l*(ry/180),d=Ew(f)*(t-n)/2+Tw(f)*(e-r)/2,h=-1*Tw(f)*(t-n)/2+Ew(f)*(e-r)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=zD(p),s*=zD(p));var v=(a===i?-1:1)*zD((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,y=v*-s*d/o,m=(t+n)/2+Ew(f)*g-Tw(f)*y,b=(e+r)/2+Tw(f)*g+Ew(f)*y,w=X8([1,0],[(d-g)/o,(h-y)/s]),C=[(d-g)/o,(h-y)/s],x=[(-1*d-g)/o,(-1*h-y)/s],_=X8(C,x);if(cA(C,x)<=-1&&(_=ry),cA(C,x)>=1&&(_=0),_<0){var T=Math.round(_/ry*1e6)/1e6;_=ry*2+T%2*ry}c.addData(u,m,b,o,s,w,_,f,i)}var _vt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xvt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cvt(t){var e=new Jl;if(!t)return e;var n=0,r=0,a=n,i=r,o,s=Jl.CMD,l=t.match(_vt);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(xvt)||[],p=h.length,v=0;v<p;v++)h[v]=parseFloat(h[v]);for(var g=0;g<p;){var y=void 0,m=void 0,b=void 0,w=void 0,C=void 0,x=void 0,_=void 0,T=n,M=r,E=void 0,k=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,E=e.len(),k=e.data,o===s.C&&(y+=n-k[E-4],m+=r-k[E-3]),d=s.C,T=h[g++],M=h[g++],n=h[g++],r=h[g++],e.addData(d,y,m,T,M,n,r);break;case"s":y=n,m=r,E=e.len(),k=e.data,o===s.C&&(y+=n-k[E-4],m+=r-k[E-3]),d=s.C,T=n+h[g++],M=r+h[g++],n+=h[g++],r+=h[g++],e.addData(d,y,m,T,M,n,r);break;case"Q":T=h[g++],M=h[g++],n=h[g++],r=h[g++],d=s.Q,e.addData(d,T,M,n,r);break;case"q":T=h[g++]+n,M=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,T,M,n,r);break;case"T":y=n,m=r,E=e.len(),k=e.data,o===s.Q&&(y+=n-k[E-4],m+=r-k[E-3]),n=h[g++],r=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"t":y=n,m=r,E=e.len(),k=e.data,o===s.Q&&(y+=n-k[E-4],m+=r-k[E-3]),n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"A":b=h[g++],w=h[g++],C=h[g++],x=h[g++],_=h[g++],T=n,M=r,n=h[g++],r=h[g++],d=s.A,Z8(T,M,n,r,x,_,b,w,C,d,e);break;case"a":b=h[g++],w=h[g++],C=h[g++],x=h[g++],_=h[g++],T=n,M=r,n+=h[g++],r+=h[g++],d=s.A,Z8(T,M,n,r,x,_,b,w,C,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),n=a,r=i),o=d}return e.toStatic(),e}var hie=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(wn);function pie(t){return t.setData!=null}function vie(t,e){var n=Cvt(t),r=Qe({},e);return r.buildPath=function(a){if(pie(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){die(n,a),this.dirtyShape()},r}function gie(t,e){return new hie(vie(t,e))}function Tvt(t,e){var n=vie(t,e),r=function(a){Ve(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(hie);return r}function Evt(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 wn(e);return o.createPathProxy(),o.buildPath=function(s){if(pie(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function QB(t,e){e=e||{};var n=new wn;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?die(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 Mvt=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),yie=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Mvt},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}(wn);yie.prototype.type="circle";const nl=yie;var Dvt=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),mie=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Dvt},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}(wn);mie.prototype.type="ellipse";const qT=mie;var bie=Math.PI,UD=bie*2,Md=Math.sin,Wp=Math.cos,kvt=Math.acos,ci=Math.atan2,Q8=Math.abs,Cm=Math.sqrt,zy=Math.max,Sl=Math.min,Ts=1e-4;function Rvt(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<Ts))return d=(c*(e-i)-f*(t-a))/d,[t+d*l,e+d*u]}function Mw(t,e,n,r,a,i,o){var s=t-n,l=e-r,u=(o?i:-i)/Cm(s*s+l*l),c=u*l,f=-u*s,d=t+c,h=e+f,p=n+c,v=r+f,g=(d+p)/2,y=(h+v)/2,m=p-d,b=v-h,w=m*m+b*b,C=a-i,x=d*v-p*h,_=(b<0?-1:1)*Cm(zy(0,C*C*w-x*x)),T=(x*b-m*_)/w,M=(-x*m-b*_)/w,E=(x*b+m*_)/w,k=(-x*m+b*_)/w,R=T-g,L=M-y,A=E-g,V=k-y;return R*R+L*L>A*A+V*V&&(T=E,M=k),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(a/C-1),y1:M*(a/C-1)}}function Lvt(t){var e;if(at(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 Ovt(t,e){var n,r=zy(e.r,0),a=zy(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=Q8(u-l),p=h>UD&&h%UD;if(p>Ts&&(h=p),!(r>Ts))t.moveTo(c,f);else if(h>UD-Ts)t.moveTo(c+r*Wp(l),f+r*Md(l)),t.arc(c,f,r,l,u,!d),a>Ts&&(t.moveTo(c+a*Wp(u),f+a*Md(u)),t.arc(c,f,a,u,l,d));else{var v=void 0,g=void 0,y=void 0,m=void 0,b=void 0,w=void 0,C=void 0,x=void 0,_=void 0,T=void 0,M=void 0,E=void 0,k=void 0,R=void 0,L=void 0,A=void 0,V=r*Wp(l),G=r*Md(l),I=a*Wp(u),$=a*Md(u),N=h>Ts;if(N){var P=e.cornerRadius;P&&(n=Lvt(P),v=n[0],g=n[1],y=n[2],m=n[3]);var Y=Q8(r-a)/2;if(b=Sl(Y,y),w=Sl(Y,m),C=Sl(Y,v),x=Sl(Y,g),M=_=zy(b,w),E=T=zy(C,x),(_>Ts||T>Ts)&&(k=r*Wp(u),R=r*Md(u),L=a*Wp(l),A=a*Md(l),h<bie)){var J=Rvt(V,G,L,A,k,R,I,$);if(J){var re=V-J[0],oe=G-J[1],ue=k-J[0],le=R-J[1],fe=1/Md(kvt((re*ue+oe*le)/(Cm(re*re+oe*oe)*Cm(ue*ue+le*le)))/2),se=Cm(J[0]*J[0]+J[1]*J[1]);M=Sl(_,(r-se)/(fe+1)),E=Sl(T,(a-se)/(fe-1))}}}if(!N)t.moveTo(c+V,f+G);else if(M>Ts){var _e=Sl(y,M),ve=Sl(m,M),he=Mw(L,A,V,G,r,_e,d),q=Mw(k,R,I,$,r,ve,d);t.moveTo(c+he.cx+he.x0,f+he.cy+he.y0),M<_&&_e===ve?t.arc(c+he.cx,f+he.cy,M,ci(he.y0,he.x0),ci(q.y0,q.x0),!d):(_e>0&&t.arc(c+he.cx,f+he.cy,_e,ci(he.y0,he.x0),ci(he.y1,he.x1),!d),t.arc(c,f,r,ci(he.cy+he.y1,he.cx+he.x1),ci(q.cy+q.y1,q.cx+q.x1),!d),ve>0&&t.arc(c+q.cx,f+q.cy,ve,ci(q.y1,q.x1),ci(q.y0,q.x0),!d))}else t.moveTo(c+V,f+G),t.arc(c,f,r,l,u,!d);if(!(a>Ts)||!N)t.lineTo(c+I,f+$);else if(E>Ts){var _e=Sl(v,E),ve=Sl(g,E),he=Mw(I,$,k,R,a,-ve,d),q=Mw(V,G,L,A,a,-_e,d);t.lineTo(c+he.cx+he.x0,f+he.cy+he.y0),E<T&&_e===ve?t.arc(c+he.cx,f+he.cy,E,ci(he.y0,he.x0),ci(q.y0,q.x0),!d):(ve>0&&t.arc(c+he.cx,f+he.cy,ve,ci(he.y0,he.x0),ci(he.y1,he.x1),!d),t.arc(c,f,a,ci(he.cy+he.y1,he.cx+he.x1),ci(q.cy+q.y1,q.cx+q.x1),d),_e>0&&t.arc(c+q.cx,f+q.cy,_e,ci(q.y1,q.x1),ci(q.y0,q.x0),!d))}else t.lineTo(c+I,f+$),t.arc(c,f,a,u,l,d)}t.closePath()}}}var Avt=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}(),Sie=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Avt},e.prototype.buildPath=function(n,r){Ovt(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(wn);Sie.prototype.type="sector";const Wi=Sie;var Nvt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),wie=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Nvt},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}(wn);wie.prototype.type="ring";const Ib=wie;function Vvt(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++)Du(c,c,t[d]),ku(f,f,t[d]);Du(c,c,r[0]),ku(f,f,r[1])}for(var d=0,h=t.length;d<h;d++){var p=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(Ul(t[d]));continue}else l=t[d-1],u=t[d+1];Xc(i,u,l),gm(i,i,e);var v=k2(p,l),g=k2(p,u),y=v+g;y!==0&&(v/=y,g/=y),gm(o,i,-v),gm(s,i,g);var m=NO([],p,o),b=NO([],p,s);r&&(ku(m,m,c),Du(m,m,f),ku(b,b,c),Du(b,b,f)),a.push(m),a.push(b)}return n&&a.push(a.shift()),a}function _ie(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var i=Vvt(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 Bvt=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),xie=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Bvt},e.prototype.buildPath=function(n,r){_ie(n,r,!0)},e}(wn);xie.prototype.type="polygon";const ji=xie;var Ivt=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Cie=function(t){Ve(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 Ivt},e.prototype.buildPath=function(n,r){_ie(n,r,!1)},e}(wn);Cie.prototype.type="polyline";const qi=Cie;var $vt={},Pvt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Tie=function(t){Ve(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 Pvt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=Zae($vt,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}(wn);Tie.prototype.type="line";const Da=Tie;var eo=[],Fvt=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 J8(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?i8:Ca)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?i8:Ca)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?FO:Fa)(t.x1,t.cpx1,t.x2,e),(n?FO:Fa)(t.y1,t.cpy1,t.y2,e)]}var Eie=function(t){Ve(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 Fvt},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&&(_1(a,l,o,d,eo),l=eo[1],o=eo[2],_1(i,u,s,d,eo),u=eo[1],s=eo[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(Mf(a,l,c,o,d,eo),l=eo[1],c=eo[2],o=eo[3],Mf(i,u,f,s,d,eo),u=eo[1],f=eo[2],s=eo[3]),n.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(n){return J8(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=J8(this.shape,n,!0);return pp(r,r)},e}(wn);Eie.prototype.type="bezier-curve";const $b=Eie;var zvt=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}(),Mie=function(t){Ve(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 zvt},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}(wn);Mie.prototype.type="arc";const XT=Mie;var Uvt=function(t){Ve(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),wn.prototype.getBoundingRect.call(this)},e}(wn);const ZT=Uvt;var Gvt=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}();const Die=Gvt;var Hvt=function(t){Ve(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}(Die);const a0=Hvt;var Wvt=function(t){Ve(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}(Die);const JB=Wvt;var Dd=[0,0],kd=[0,0],Dw=new cn,kw=new cn,jvt=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new cn;for(var r=0;r<2;r++)this._axes[r]=new cn;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);cn.sub(a[0],r[1],r[0]),cn.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 Dw.set(1/0,1/0),kw.set(0,0),!this._intersectCheckOneSide(this,e,Dw,kw,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,Dw,kw,a,-1)&&(r=!1,a)||a||cn.copy(n,r?Dw:kw),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,Dd),this._getProjMinMaxOnAxis(l,n._corners,kd),Dd[1]<kd[0]||Dd[0]>kd[1]){if(s=!1,i)return s;var c=Math.abs(kd[0]-Dd[1]),f=Math.abs(Dd[0]-kd[1]);Math.min(c,f)>a.len()&&(c<f?cn.scale(a,u,-c*o):cn.scale(a,u,f*o))}else if(r){var c=Math.abs(kd[0]-Dd[1]),f=Math.abs(Dd[0]-kd[1]);Math.min(c,f)<r.len()&&(c<f?cn.scale(r,u,c*o):cn.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 $2=jvt;var Kvt=[],Yvt=function(t){Ve(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 dn(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(Kvt)),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}(ds);const kie=Yvt;var Rie=In();function i0(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=fn(r.duration,200),c=fn(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)),zt(f)&&(f=f(n,a)),zt(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function eI(t,e,n,r,a,i,o){var s=!1,l;zt(a)?(o=i,i=a,a=null):Wt(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=i0(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,p={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!s&&e.attr(n),o&&o(1),i&&i()}function zn(t,e,n,r,a,i){eI("update",t,e,n,r,a,i)}function Mr(t,e,n,r,a,i){eI("enter",t,e,n,r,a,i)}function qv(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 Df(t,e,n,r,a,i){qv(t)||eI("leave",t,e,n,r,a,i)}function eU(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),Df(t,{style:{opacity:0}},e,n,r)}function O1(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||eU(a,e,n,r)}):eU(t,e,n,r)}function rl(t){Rie(t).oldStyle=t.style}function qvt(t){return Rie(t).oldStyle}var P2=Math.max,F2=Math.min,fA={};function Lie(t){return wn.extend(t)}var Xvt=Tvt;function Oie(t,e){return Xvt(t,e)}function ps(t,e){fA[t]=e}function QT(t){if(fA.hasOwnProperty(t))return fA[t]}function Pb(t,e,n,r){var a=gie(t,e);return n&&(r==="center"&&(n=Aie(n,a.getBoundingRect())),nI(a,n)),a}function tI(t,e,n){var r=new Ya({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(Aie(e,i))}}});return r}function Aie(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 wo=Evt;function nI(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Lg(t,e){return Zae(t,t,{lineWidth:e}),t}function Zvt(t){return Qae(t.shape,t.shape,t.style),t}var yx=yh;function df(t,e){for(var n=Ob([]);t&&t!==e;)Gl(n,t.getLocalTransform(),n),t=t.parent;return n}function Zs(t,e,n){return e&&!ii(e)&&(e=Ru.getLocalTransform(e)),n&&(e=vp([],e)),Wa([],t,e)}function JT(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=Zs(i,e,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function tU(t){return!t.isGroup}function Qvt(t){return t.shape!=null}function Fb(t,e,n){if(!t||!e)return;function r(o){var s={};return o.traverse(function(l){tU(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Qvt(o)&&(s.shape=Qe({},o.shape)),s}var i=r(t);e.traverse(function(o){if(tU(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),zn(o,l,n,rn(o).dataIndex)}}})}function rI(t,e){return ut(t,function(n){var r=n[0];r=P2(r,e.x),r=F2(r,e.x+e.width);var a=n[1];return a=P2(a,e.y),a=F2(a,e.y+e.height),[r,a]})}function Nie(t,e){var n=P2(t.x,e.x),r=F2(t.x+t.width,e.x+e.width),a=P2(t.y,e.y),i=F2(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 o0(t,e,n){var r=Qe({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),Ht(a,n),new Ya(r)):Pb(t.replace("path://",""),r,n,"center")}function Uy(t,e,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Vie(t,e,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Vie(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=GD(c,f,l,u);if(Jvt(d))return!1;var h=t-a,p=e-i,v=GD(h,p,l,u)/d;if(v<0||v>1)return!1;var g=GD(h,p,c,f)/d;return!(g<0||g>1)}function GD(t,e,n,r){return t*r-n*e}function Jvt(t){return t<=1e-6&&t>=-1e-6}function s0(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=Mt(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&&Z(Tn(l),function(c){Rt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=rn(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Ht({content:r,formatterParams:s},a)}}function nU(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Hf(t,e){if(t)if(at(t))for(var n=0;n<t.length;n++)nU(t[n],e);else nU(t,e)}ps("circle",nl);ps("ellipse",qT);ps("sector",Wi);ps("ring",Ib);ps("polygon",ji);ps("polyline",qi);ps("rect",An);ps("line",Da);ps("bezierCurve",$b);ps("arc",XT);const zb=Object.freeze(Object.defineProperty({__proto__:null,Arc:XT,BezierCurve:$b,BoundingRect:dn,Circle:nl,CompoundPath:ZT,Ellipse:qT,Group:Xt,Image:Ya,IncrementalDisplayable:kie,Line:Da,LinearGradient:a0,OrientedBoundingRect:$2,Path:wn,Point:cn,Polygon:ji,Polyline:qi,RadialGradient:JB,Rect:An,Ring:Ib,Sector:Wi,Text:On,applyTransform:Zs,clipPointsByRect:rI,clipRectByRect:Nie,createIcon:o0,extendPath:Oie,extendShape:Lie,getShapeClass:QT,getTransform:df,groupTransition:Fb,initProps:Mr,isElementRemoved:qv,lineLineIntersect:Vie,linePolygonIntersect:Uy,makeImage:tI,makePath:Pb,mergePath:wo,registerShape:ps,removeElement:Df,removeElementWithFadeOut:O1,resizePath:nI,setTooltipConfig:s0,subPixelOptimize:yx,subPixelOptimizeLine:Lg,subPixelOptimizeRect:Zvt,transformDirection:JT,traverseElements:Hf,updateProps:zn},Symbol.toStringTag,{value:"Module"}));var eE={};function Bie(t,e){for(var n=0;n<Hi.length;n++){var r=Hi[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 dA(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=zt(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var l={normal:s},u=0;u<Hi.length;u++){var c=Hi[u],f=e[c];l[c]=fn(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function si(t,e,n,r){n=n||eE;for(var a=t instanceof On,i=!1,o=0;o<R1.length;o++){var s=e[R1[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new On,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=dA(n,e),c=e.normal,f=!!c.getShallow("show"),d=gr(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||t.setTextConfig(z2(c,n,!1));for(var o=0;o<Hi.length;o++){var h=Hi[o],s=e[h];if(s){var p=l.ensureState(h),v=!!fn(s.getShallow("show"),f);if(v!==f&&(p.ignore=!v),p.style=gr(s,r&&r[h],n,!0,!a),p.style.text=u[h],!a){var g=t.ensureState(h);g.textConfig=z2(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&&(l0(l).setLabelText=function(y){var m=dA(n,e,y);Bie(l,m)})}else l&&(l.ignore=!0);t.dirty()}function Aa(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Hi.length;r++){var a=Hi[r];n[a]=t.getModel([a,e])}return n}function gr(t,e,n,r,a){var i={};return egt(i,t,n,r,a),e&&Qe(i,e),i}function z2(t,e,n){e=e||{};var r={},a,i=t.getShallow("rotate"),o=fn(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 egt(t,e,n,r,a){n=n||eE;var i=e.ecModel,o=i&&i.option.textStyle,s=tgt(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);oU(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),oU(t,e,o,n,r,a,!0,!1)}function tgt(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||eE).rich;if(n){e=e||{};for(var r=Tn(n),a=0;a<r.length;a++){var i=r[a];e[i]=1}}t=t.parentModel}return e}var rU=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],aU=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],iU=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function oU(t,e,n,r,a,i,o,s){n=!a&&n||eE;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=fn(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=fn(e.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(t.lineWidth=d);var h=fn(e.getShallow("textBorderType"),n.textBorderType);h!=null&&(t.lineDash=h);var p=fn(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!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 v=0;v<rU.length;v++){var g=rU[v],y=fn(e.getShallow(g),n[g]);y!=null&&(t[g]=y)}for(var v=0;v<aU.length;v++){var g=aU[v],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 v=0;v<iU.length;v++){var g=iU[v],y=e.getShallow(g);y!=null&&(t[g]=y)}var b=e.getShallow("borderType");b!=null&&(t.borderDash=b),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function Iie(t,e){var n=e&&e.getModel("textStyle");return Qo([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 l0=In();function $ie(t,e,n,r){if(t){var a=l0(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 Pie(t,e,n,r,a){var i=l0(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=fn(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=Pae(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=dA({labelDataIndex:e,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);Bie(t,d)}t.percent=0,(i.prevValue==null?Mr:zn)(t,{percent:1},r,e,null,u)}var ngt=["textStyle","color"],HD=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],WD=new On,rgt=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(ngt):null)},t.prototype.getFont=function(){return Iie({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<HD.length;r++)n[HD[r]]=this.getShallow(HD[r]);return WD.useStyle(n),WD.update(),WD.getBoundingRect()},t}();const agt=rgt;var Fie=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],igt=Jh(Fie),ogt=function(){function t(){}return t.prototype.getLineStyle=function(e){return igt(this,e)},t}(),zie=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],sgt=Jh(zie),lgt=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return sgt(this,e,n)},t}(),gp=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){un(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(Kt(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(!Vn.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}();WB(gp);dpt(gp);ea(gp,ogt);ea(gp,lgt);ea(gp,ypt);ea(gp,agt);const lr=gp;var ugt=Math.round(Math.random()*10);function u0(t){return[t||"",ugt++].join("_")}function cgt(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=Vl(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var i=Vl(n).main;t.hasSubTypes(n)&&e[i]&&(a=e[i](r))}return a}}function fgt(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(Z(i,function(m){d[m]=!0});f.length;){var h=f.pop(),p=c[h],v=!!d[h];v&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),Z(p.successor,v?y:g)}Z(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 Z(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),Z(f,function(d){vn(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);vn(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 Z(i,function(l){vn(o,l)>=0&&s.push(l)}),s}}function Wf(t,e){return un(un({},t,!0),e,!0)}const dgt={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:". "}}}},hgt={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 U2="ZH",aI="EN",A1=aI,mx={},iI={},Uie=Vn.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(U2)>-1?U2:A1}():A1;function oI(t,e){t=t.toUpperCase(),iI[t]=new lr(e),mx[t]=e}function pgt(t){if(Mt(t)){var e=mx[t.toUpperCase()]||{};return t===U2||t===aI?Kt(e):un(Kt(e),Kt(mx[A1]),!1)}else return un(Kt(t),Kt(mx[A1]),!1)}function hA(t){return iI[t]}function vgt(){return iI[A1]}oI(aI,dgt);oI(U2,hgt);var sI=1e3,lI=sI*60,Tm=lI*60,Xo=Tm*24,sU=Xo*365,Gy={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}"},Rw="{yyyy}-{MM}-{dd}",lU={year:"{yyyy}",month:"{yyyy}-{MM}",day:Rw,hour:Rw+" "+Gy.hour,minute:Rw+" "+Gy.minute,second:Rw+" "+Gy.second,millisecond:Gy.none},jD=["year","month","day","hour","minute","second","millisecond"],Gie=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Li(t,e){return t+="","0000".substr(0,e-t.length)+t}function Xv(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 ggt(t){return t===Xv(t)}function ygt(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ub(t,e,n,r){var a=ko(t),i=a[uI(n)](),o=a[Zv(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[tE(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[N1(n)](),f=(c-1)%12+1,d=a[nE(n)](),h=a[rE(n)](),p=a[aE(n)](),v=r instanceof lr?r:hA(r||Uie)||vgt(),g=v.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),b=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Li(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Li(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Li(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Li(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Li(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Li(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Li(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Li(p,3)).replace(/{S}/g,p+"")}function mgt(t,e,n,r,a){var i=null;if(Mt(n))i=n;else if(zt(n))i=n(t.value,e,{level:t.level});else{var o=Qe({},Gy);if(t.level>0)for(var s=0;s<jD.length;++s)o[jD[s]]="{primary|"+o[jD[s]]+"}";var l=n?n.inherit===!1?n:Ht(n,o):o,u=Hie(t.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=Gie.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(at(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 Ub(new Date(t.value),i,a,r)}function Hie(t,e){var n=ko(t),r=n[Zv(e)]()+1,a=n[tE(e)](),i=n[N1(e)](),o=n[nE(e)](),s=n[rE(e)](),l=n[aE(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,p=h&&r===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function uU(t,e,n){var r=Bn(t)?ko(t):t;switch(e=e||Hie(t,n),e){case"year":return r[uI(n)]();case"half-year":return r[Zv(n)]()>=6?1:0;case"quarter":return Math.floor((r[Zv(n)]()+1)/4);case"month":return r[Zv(n)]();case"day":return r[tE(n)]();case"half-day":return r[N1(n)]()/24;case"hour":return r[N1(n)]();case"minute":return r[nE(n)]();case"second":return r[rE(n)]();case"millisecond":return r[aE(n)]()}}function uI(t){return t?"getUTCFullYear":"getFullYear"}function Zv(t){return t?"getUTCMonth":"getMonth"}function tE(t){return t?"getUTCDate":"getDate"}function N1(t){return t?"getUTCHours":"getHours"}function nE(t){return t?"getUTCMinutes":"getMinutes"}function rE(t){return t?"getUTCSeconds":"getSeconds"}function aE(t){return t?"getUTCMilliseconds":"getMilliseconds"}function bgt(t){return t?"setUTCFullYear":"setFullYear"}function Wie(t){return t?"setUTCMonth":"setMonth"}function jie(t){return t?"setUTCDate":"setDate"}function Kie(t){return t?"setUTCHours":"setHours"}function Yie(t){return t?"setUTCMinutes":"setMinutes"}function qie(t){return t?"setUTCSeconds":"setSeconds"}function Xie(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Sgt(t,e,n,r,a,i,o,s){var l=new On({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function cI(t){if(!UB(t))return Mt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function fI(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 yp=IT;function pA(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Qo(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?ko(t):t;if(isNaN(+l)){if(s)return"-"}else return Ub(l,r,n)}if(e==="ordinal")return M2(t)?a(t):Bn(t)&&i(t)?t+"":"-";var u=Ql(t);return i(u)?cI(u):M2(t)?a(t):typeof t=="boolean"?t+"":"-"}var cU=["a","b","c","d","e","f","g"],KD=function(t,e){return"{"+t+(e??"")+"}"};function dI(t,e,n){at(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=cU[i];t=t.replace(KD(o),KD(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(KD(cU[l],s),n?Ni(u):u)}return t}function wgt(t,e,n){return Z(e,function(r,a){t=t.replace("{"+a+"}",n?Ni(r):r)}),t}function Zie(t,e){var n=Mt(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:'+Ni(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ni(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 _gt(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
  1140. yyyy`);var r=ko(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",Li(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Li(i%100+"",2)).replace("dd",Li(s,2)).replace("d",s).replace("hh",Li(l,2)).replace("h",l).replace("mm",Li(u,2)).replace("m",u).replace("ss",Li(c,2)).replace("s",c).replace("SSS",Li(f,3)),t}function xgt(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function tp(t,e){return e=e||"transparent",Mt(t)?t:Wt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function G2(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var bx=Z,Qie=["left","right","top","bottom","width","height"],bh=[["width","left","right"],["height","top","bottom"]];function hI(t,e,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(t==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=i+v,h>r||l.newline?(i=0,h=v,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>a||l.newline?(i+=s+n,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=h+n:o=p+n)})}var Ih=hI;nn(hI,"vertical");nn(hI,"horizontal");function Cgt(t,e,n){var r=e.width,a=e.height,i=wt(t.left,r),o=wt(t.top,a),s=wt(t.right,r),l=wt(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=yp(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function ga(t,e,n){n=yp(n||0);var r=e.width,a=e.height,i=wt(t.left,r),o=wt(t.top,a),s=wt(t.right,r),l=wt(t.bottom,a),u=wt(t.width,r),c=wt(t.height,a),f=n[2]+n[0],d=n[1]+n[3],h=t.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),t.left||t.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var p=new dn(i+n[3],o+n[0],u,c);return p.margin=n,p}function iE(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 dn(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=ga(Ht({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 Tgt(t,e){return t[bh[e][0]]!=null||t[bh[e][1]]!=null&&t[bh[e][2]]!=null}function V1(t){var e=t.layoutMode||t.constructor.layoutMode;return Wt(e)?e:e?{type:e}:null}function kf(t,e,n){var r=n&&n.ignoreSize;!at(r)&&(r=[r,r]);var a=o(bh[0],0),i=o(bh[1],1);u(bh[0],t,a),u(bh[1],t,i);function o(c,f){var d={},h=0,p={},v=0,g=2;if(bx(c,function(b){p[b]=t[b]}),bx(c,function(b){s(e,b)&&(d[b]=p[b]=e[b]),l(d,b)&&h++,l(p,b)&&v++}),r[f])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var y=0;y<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){bx(c,function(h){f[h]=d[h]})}}function c0(t){return Jie({},t)}function Jie(t,e){return e&&t&&bx(Qie,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var Egt=In(),f0=function(t){Ve(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.uid=u0("ec_cpt_model"),i}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=V1(this),i=a?c0(n):{},o=r.getTheme();un(n,o.get(this.mainType)),un(n,this.getDefaultOption()),a&&kf(n,i,a)},e.prototype.mergeOption=function(n,r){un(this.option,n,!0);var a=V1(this);a&&kf(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!upt(n))return n.defaultOption;var r=Egt(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=un(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return Vb(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}(lr);zae(f0,lr);GT(f0);cgt(f0);fgt(f0,Mgt);function Mgt(t){var e=[];return Z(f0.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=ut(e,function(n){return Vl(n).main}),t!=="dataset"&&vn(e,"dataset")<=0&&e.unshift("dataset"),e}const kn=f0;var eoe="";typeof navigator<"u"&&(eoe=navigator.platform||"");var jp="rgba(0, 0, 0, 0.2)";const Dgt={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:jp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:jp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:jp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:jp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:jp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:jp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:eoe.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 toe=It(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),vs="original",Si="arrayRows",gs="objectRows",au="keyedColumns",hf="typedArray",noe="unknown",Hl="column",d0="row",Za={Must:1,Might:2,Not:3},roe=In();function kgt(t){roe(t).datasetMap=It()}function aoe(t,e,n){var r={},a=vI(e);if(!a||!t)return r;var i=[],o=[],s=e.ecModel,l=roe(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),Z(t,function(v,g){var y=Wt(v)?v:t[g]={name:v};y.type==="ordinal"&&c==null&&(c=g,f=p(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});Z(t,function(v,g){var y=v.name,m=p(v);if(c==null){var b=d.valueWayDim;h(r[y],b,m),h(o,b,m),d.valueWayDim+=m}else if(c===g)h(r[y],0,m),h(i,0,m);else{var b=d.categoryWayDim;h(r[y],b,m),h(o,b,m),d.categoryWayDim+=m}});function h(v,g,y){for(var m=0;m<y;m++)v.push(g+m)}function p(v){var g=v.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function pI(t,e,n){var r={},a=vI(t);if(!a)return r;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===gs||i===au)&&Z(o,function(c,f){(Wt(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,p=Math.min(5,n);h<p;h++){var v=ooe(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);d.push(v);var g=v===Za.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Za.Not)&&(c.n=h),y(c)&&d[c.n]!==Za.Not)return c;g||(v===Za.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 vI(t){var e=t.get("data",!0);if(!e)return Vb(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ca).models[0]}function Rgt(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Vb(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ca).models}function ioe(t,e){return ooe(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ooe(t,e,n,r,a,i){var o,s=5;if(vo(t))return Za.Not;var l,u;if(r){var c=r[i];Wt(c)?(l=c.name,u=c.type):Mt(c)&&(l=c)}if(u!=null)return u==="ordinal"?Za.Must:Za.Not;if(e===Si){var f=t;if(n===d0){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=w(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var p=f[a+h];if(p&&(o=w(p[i]))!=null)return o}}else if(e===gs){var v=t;if(!l)return Za.Not;for(var h=0;h<v.length&&h<s;h++){var g=v[h];if(g&&(o=w(g[l]))!=null)return o}}else if(e===au){var y=t;if(!l)return Za.Not;var d=y[l];if(!d||vo(d))return Za.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(e===vs)for(var m=t,h=0;h<m.length&&h<s;h++){var g=m[h],b=n0(g);if(!at(b))return Za.Not;if((o=w(b[i]))!=null)return o}function w(C){var x=Mt(C);if(C!=null&&isFinite(C)&&C!=="")return x?Za.Might:Za.Not;if(x&&C!=="-")return Za.Must}return Za.Not}var vA=It();function Lgt(t,e){bi(vA.get(t)==null&&e),vA.set(t,e)}function Ogt(t,e,n){var r=vA.get(e);if(!r)return n;var a=r(t);return a?n.concat(a):n}var fU=In(),Agt=In(),gI=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=ur(this.get("color",!0)),i=this.get("colorLayer",!0);return soe(this,fU,a,i,e,n,r)},t.prototype.clearColorPalette=function(){Vgt(this,fU)},t}();function gA(t,e,n,r){var a=ur(t.get(["aria","decal","decals"]));return soe(t,Agt,a,null,e,n,r)}function Ngt(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 soe(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:Ngt(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 Vgt(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Lw,ay,dU,hU="\0_ec_inner",Bgt=1,loe=function(t){Ve(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 lr(i),this._locale=new lr(o),this._optionManager=s},e.prototype.setOption=function(n,r,a){var i=gU(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(n,r){return this._resetOption(n,gU(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"?dU(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&&Z(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=It(),u=r&&r.replaceMergeMainTypeMap;kgt(this),Z(n,function(f,d){f!=null&&(kn.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Kt(f):un(a[d],f,!0))}),u&&u.each(function(f,d){kn.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),kn.topologicalTravel(s,kn.getAllClassMainTypes(),c,this);function c(f){var d=Ogt(this,f,ur(n[f])),h=i.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=Bae(h,d,p);ept(v,f,kn),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,b;Z(v,function(w,C){var x=w.existing,_=w.newOption;if(!_)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",M=kn.getClass(f,w.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(b)return;b=!0}if(x&&x.constructor===M)x.name=w.keyInfo.name,x.mergeOption(_,this),x.optionUpdated(_,!1);else{var E=Qe({componentIndex:C},w.keyInfo);x=new M(_,this,this,E),Qe(x,E),w.brandNew&&(x.__requireNewView=!0),x.init(_,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,m),f==="series"&&Lw(this)}this._seriesIndices||Lw(this)},e.prototype.getOption=function(){var n=Kt(this.option);return Z(n,function(r,a){if(kn.hasClass(a)){for(var i=ur(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!D1(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[hU],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=[],Z(ur(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=pU("id",i,s):o!=null?l=pU("name",o,s):l=nr(s,function(u){return!!u}),vU(l,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):nr(this._componentsMap.get(a),function(u){return!!u});return l(vU(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?nr(u,n.filter):u}},e.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(zt(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var p=f[h];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=Mt(n)?i.get(n):Wt(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=Sa(n,null);return nr(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 nr(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return nr(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){ay(this),Z(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},e.prototype.eachRawSeries=function(n,r){Z(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){ay(this),Z(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 Z(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return ay(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){ay(this);var a=[];Z(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=It(a)},e.prototype.restoreData=function(n){Lw(this);var r=this._componentsMap,a=[];r.each(function(i,o){kn.hasClass(o)&&a.push(o)}),kn.topologicalTravel(a,kn.getAllClassMainTypes(),function(i){Z(r.get(i),function(o){o&&(i!=="series"||!Igt(o,n))&&o.restoreData()})})},e.internalField=function(){Lw=function(n){var r=n._seriesIndices=[];Z(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=It(r)},ay=function(n){},dU=function(n,r){n.option={},n.option[hU]=Bgt,n._componentsMap=It({series:[]}),n._componentsCount=It();var a=r.aria;Wt(a)&&a.enabled==null&&(a.enabled=!0),$gt(r,n._theme.option),un(r,Dgt,!1),n._mergeOption(r,null)}}(),e}(lr);function Igt(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 $gt(t,e){var n=t.color&&!t.colorLayer;Z(e,function(r,a){a==="colorLayer"&&n||kn.hasClass(a)||(typeof r=="object"?t[a]=t[a]?un(t[a],r,!1):Kt(r):t[a]==null&&(t[a]=r))})}function pU(t,e,n){if(at(e)){var r=It();return Z(e,function(i){if(i!=null){var o=Sa(i,null);o!=null&&r.set(i,!0)}}),nr(n,function(i){return i&&r.get(i[t])})}else{var a=Sa(e,null);return nr(n,function(i){return i&&a!=null&&i[t]===a})}}function vU(t,e){return e.hasOwnProperty("subType")?nr(t,function(n){return n&&n.subType===e.subType}):t}function gU(t){var e=It();return t&&Z(ur(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}ea(loe,gI);const uoe=loe;var Pgt=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fgt=function(){function t(e){Z(Pgt,function(n){this[n]=Dt(e[n],e)},this)}return t}();const coe=Fgt;var YD={},zgt=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];Z(YD,function(a,i){var o=a.create(e,n);r=r.concat(o||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){Z(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){YD[e]=n},t.get=function(e){return YD[e]},t}();const h0=zgt;var Ugt=/^(min|max)?(.+)$/,Ggt=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(Z(ur(e.series),function(o){o&&o.data&&vo(o.data)&&b1(o.data)}),Z(ur(e.dataset),function(o){o&&o.source&&vo(o.source)&&b1(o.source)})),e=Kt(e);var a=this._optionBackup,i=Hgt(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=[],Kt(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=Kt(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++)Wgt(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Kgt(o,this._currentMediaIndices)&&(s=ut(o,function(c){return Kt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},t}();function Hgt(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&&at(u)&&Z(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),Z(l,function(h){return d(h)}),Z(r,function(h){return d(h.option)});function d(h){Z(e,function(p){p(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function Wgt(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return Z(t,function(i,o){var s=o.match(Ugt);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();jgt(r[u],i,l)||(a=!1)}}),a}function jgt(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function Kgt(t,e){return t.join(",")===e.join(",")}const Ygt=Ggt;var ws=Z,B1=Wt,yU=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qD(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=yU.length;n<r;n++){var a=yU[n],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?un(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?un(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function hi(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,Ht(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 Hy(t){hi(t,"itemStyle"),hi(t,"lineStyle"),hi(t,"areaStyle"),hi(t,"label"),hi(t,"labelLine"),hi(t,"upperLabel"),hi(t,"edgeLabel")}function ua(t,e){var n=B1(t)&&t[e],r=B1(n)&&n.textStyle;if(r)for(var a=0,i=w8.length;a<i;a++){var o=w8[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Uo(t){t&&(Hy(t),ua(t,"label"),t.emphasis&&ua(t.emphasis,"label"))}function qgt(t){if(B1(t)){qD(t),Hy(t),ua(t,"label"),ua(t,"upperLabel"),ua(t,"edgeLabel"),t.emphasis&&(ua(t.emphasis,"label"),ua(t.emphasis,"upperLabel"),ua(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(qD(e),Uo(e));var n=t.markLine;n&&(qD(n),Uo(n));var r=t.markArea;r&&Uo(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!vo(i))for(var o=0;o<i.length;o++)Uo(i[o]);Z(t.categories,function(u){Hy(u)})}if(a&&!vo(a))for(var o=0;o<a.length;o++)Uo(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Uo(s[o]);if(n=t.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)at(l[o])?(Uo(l[o][0]),Uo(l[o][1])):Uo(l[o]);t.type==="gauge"?(ua(t,"axisLabel"),ua(t,"title"),ua(t,"detail")):t.type==="treemap"?(hi(t.breadcrumb,"itemStyle"),Z(t.levels,function(u){Hy(u)})):t.type==="tree"&&Hy(t.leaves)}}function du(t){return at(t)?t:t?[t]:[]}function mU(t){return(at(t)?t[0]:t)||{}}function Xgt(t,e){ws(du(t.series),function(r){B1(r)&&qgt(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ws(n,function(r){ws(du(t[r]),function(a){a&&(ua(a,"axisLabel"),ua(a.axisPointer,"label"))})}),ws(du(t.parallel),function(r){var a=r&&r.parallelAxisDefault;ua(a,"axisLabel"),ua(a&&a.axisPointer,"label")}),ws(du(t.calendar),function(r){hi(r,"itemStyle"),ua(r,"dayLabel"),ua(r,"monthLabel"),ua(r,"yearLabel")}),ws(du(t.radar),function(r){ua(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)}),ws(du(t.geo),function(r){B1(r)&&(Uo(r),ws(du(r.regions),function(a){Uo(a)}))}),ws(du(t.timeline),function(r){Uo(r),hi(r,"label"),hi(r,"itemStyle"),hi(r,"controlStyle",!0);var a=r.data;at(a)&&Z(a,function(i){Wt(i)&&(hi(i,"label"),hi(i,"itemStyle"))})}),ws(du(t.toolbox),function(r){hi(r,"iconStyle"),ws(r.feature,function(a){hi(a,"iconStyle")})}),ua(mU(t.axisPointer),"label"),ua(mU(t.tooltip).axisPointer,"label")}function Zgt(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 Qgt(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 bU(t){t&&Z(Jgt,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var Jgt=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],e0t=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],XD=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function iy(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<XD.length;n++){var r=XD[n][1],a=XD[n][0];e[r]!=null&&(e[a]=e[r])}}function SU(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function wU(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function t0t(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function foe(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&foe(t[n].children,e)}function doe(t,e){Xgt(t,e),t.series=ur(t.series),Z(t.series,function(n){if(Wt(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),SU(n.label);var a=n.data;if(a&&!vo(a))for(var i=0;i<a.length;i++)SU(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=Zgt(n,"pointer.color");o!=null&&Qgt(n,"itemStyle.color",o)}else if(r==="bar"){iy(n),iy(n.backgroundStyle),iy(n.emphasis);var a=n.data;if(a&&!vo(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(iy(a[i]),iy(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)),wU(n),foe(n.data,wU)}else r==="graph"||r==="sankey"?t0t(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Ht(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),bU(n)}}),t.dataRange&&(t.visualMap=t.dataRange),Z(e0t,function(n){var r=t[n];r&&(at(r)||(r=[r]),Z(r,function(a){bU(a)}))})}function n0t(t){var e=It();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(r0t)}function r0t(t){Z(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,p;s?p=o.getRawIndex(f):h=o.get(e.stackedByDimension,f);for(var v=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=Hht(d,m),v=m;break}}}return r[0]=d,r[1]=v,r})})}var oE=function(){function t(e){this.data=e.data||(e.sourceFormat===au?{}:[]),this.sourceFormat=e.sourceFormat||noe,this.seriesLayoutBy=e.seriesLayoutBy||Hl,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&&ioe(this,r)===Za.Must&&(a.type="ordinal")}}return t}();function yI(t){return t instanceof oE}function yA(t,e,n){n=n||hoe(t);var r=e.seriesLayoutBy,a=i0t(t,n,r,e.sourceHeader,e.dimensions),i=new oE({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Kt(e)});return i}function mI(t){return new oE({data:t,sourceFormat:vo(t)?hf:vs})}function a0t(t){return new oE({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Kt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function hoe(t){var e=noe;if(vo(t))e=hf;else if(at(t)){t.length===0&&(e=Si);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if(at(a)){e=Si;break}else if(Wt(a)){e=gs;break}}}}else if(Wt(t)){for(var i in t)if(Rt(t,i)&&ii(t[i])){e=au;break}}return e}function i0t(t,e,n,r,a){var i,o;if(!t)return{dimensionsDefine:_U(a),startIndex:o,dimensionsDetectedCount:i};if(e===Si){var s=t;r==="auto"||r==null?xU(function(u){u!=null&&u!=="-"&&(Mt(u)?o==null&&(o=1):o=0)},n,s,10):o=Bn(r)?r:r?1:0,!a&&o===1&&(a=[],xU(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===d0?s.length:s[0]?s[0].length:null}else if(e===gs)a||(a=o0t(t));else if(e===au)a||(a=[],Z(t,function(u,c){a.push(c)}));else if(e===vs){var l=n0(t[0]);i=at(l)&&l.length||1}return{startIndex:o,dimensionsDefine:_U(a),dimensionsDetectedCount:i}}function o0t(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return Tn(n)}function _U(t){if(t){var e=It();return ut(t,function(n,r){n=Wt(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 xU(t,e,n,r){if(e===d0)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 poe(t){var e=t.sourceFormat;return e===gs||e===au}var Rd,Ld,Od,CU,TU,voe=function(){function t(e,n){var r=yI(e)?e:mI(e);this._source=r;var a=this._data=r.data;r.sourceFormat===hf&&(this._offset=0,this._dimSize=n,this._data=a),TU(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;TU=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=CU[bI(u,c)];if(Qe(o,h),u===hf)o.getItem=n,o.count=a,o.fillStorage=r;else{var p=goe(u,c);o.getItem=Dt(p,null,s,f,d);var v=yoe(u,c);o.count=Dt(v,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],p=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],g=s-o,y=l[d],m=0;m<g;m++){var b=c[m*f+d];y[o+m]=b,b<p&&(p=b),b>v&&(v=b)}h[0]=p,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};CU=(e={},e[Si+"_"+Hl]={pure:!0,appendData:i},e[Si+"_"+d0]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[gs]={pure:!0,appendData:i},e[au]={pure:!0,appendData:function(o){var s=this._data;Z(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[vs]={appendData:i},e[hf]={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}(),EU=function(t,e,n,r){return t[r]},s0t=(Rd={},Rd[Si+"_"+Hl]=function(t,e,n,r){return t[r+e]},Rd[Si+"_"+d0]=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},Rd[gs]=EU,Rd[au]=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},Rd[vs]=EU,Rd);function goe(t,e){var n=s0t[bI(t,e)];return n}var MU=function(t,e,n){return t.length},l0t=(Ld={},Ld[Si+"_"+Hl]=function(t,e,n){return Math.max(0,t.length-e)},Ld[Si+"_"+d0]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Ld[gs]=MU,Ld[au]=function(t,e,n){var r=n[0].name,a=t[r];return a?a.length:0},Ld[vs]=MU,Ld);function yoe(t,e){var n=l0t[bI(t,e)];return n}var ZD=function(t,e,n){return t[e]},u0t=(Od={},Od[Si]=ZD,Od[gs]=function(t,e,n){return t[n]},Od[au]=ZD,Od[vs]=function(t,e,n){var r=n0(t);return r instanceof Array?r[e]:r},Od[hf]=ZD,Od);function moe(t){var e=u0t[t];return e}function bI(t,e){return t===Si?t+"_"+e:t}function Og(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 moe(i)(r,o,s)}else{var l=r;return i===vs&&(l=n0(r)),l}}}}var c0t=/\{@(.+?)\}/g,SI=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&&at(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(zt(i))return l.status=n,l.dimensionIndex=a,i(l);if(Mt(i)){var c=dI(i,l);return c.replace(c0t,function(f,d){var h=d.length,p=d;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var v=Og(s,e,p);if(o&&at(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,n){return Og(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function DU(t){var e,n;return Wt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Em(t){return new f0t(t)}var f0t=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<p)){var v=this._progress;if(at(v))for(var g=0;g<v.length;g++)this._doProgress(v[g],h,p,l,u);else this._doProgress(v,h,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;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){kU.reset(n,r,a,i),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:kU.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),at(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}(),kU=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 pf(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!Bn(t)&&t!=null&&t!=="-"&&(t=+ko(t)),t==null||t===""?NaN:+t)}var d0t=It({number:function(t){return parseFloat(t)},time:function(t){return+ko(t)},trim:function(t){return Mt(t)?Qo(t):t}});function boe(t){return d0t.get(t)}var Soe={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}},h0t=function(){function t(e,n){if(!Bn(n)){var r="";Zn(r)}this._opFn=Soe[e],this._rvalFloat=Ql(n)}return t.prototype.evaluate=function(e){return Bn(e)?this._opFn(e,this._rvalFloat):this._opFn(Ql(e),this._rvalFloat)},t}(),woe=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=Bn(e)?e:Ql(e),a=Bn(n)?n:Ql(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Mt(e),l=Mt(n);s&&(r=l?e:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t}(),p0t=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=Ql(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=Ql(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function v0t(t,e){return t==="eq"||t==="ne"?new p0t(t==="eq",e):Rt(Soe,t)?new h0t(t,e):null}var g0t=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 pf(e,n)},t}();function y0t(t,e){var n=new g0t,r=t.data,a=n.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==Hl&&Zn(o);var s=[],l={},u=t.dimensionsDefine;if(u)Z(u,function(v,g){var y=v.name,m={index:g,name:y,displayName:v.displayName};if(s.push(m),y!=null){var b="";Rt(l,y)&&Zn(b),l[y]=m}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=goe(a,Hl);e.__isBuiltIn&&(n.getRawDataItem=function(v){return f(r,i,s,v)},n.getRawData=Dt(m0t,null,t)),n.cloneRawData=Dt(b0t,null,t);var d=yoe(a,Hl);n.count=Dt(d,null,r,i,s);var h=moe(a);n.retrieveValue=function(v,g){var y=f(r,i,s,v);return p(y,g)};var p=n.retrieveValueFromItem=function(v,g){if(v!=null){var y=s[g];if(y)return h(v,g,y.name)}};return n.getDimensionInfo=Dt(S0t,null,s,l),n.cloneAllDimensionInfo=Dt(w0t,null,s),n}function m0t(t){var e=t.sourceFormat;if(!wI(e)){var n="";Zn(n)}return t.data}function b0t(t){var e=t.sourceFormat,n=t.data;if(!wI(e)){var r="";Zn(r)}if(e===Si){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(e===gs){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Qe({},n[i]));return a}}function S0t(t,e,n){if(n!=null){if(Bn(n)||!isNaN(n)&&!Rt(e,n))return t[n];if(Rt(e,n))return e[n]}}function w0t(t){return Kt(t)}var _oe=It();function _0t(t){t=Kt(t);var e=t.type,n="";e||Zn(n);var r=e.split(":");r.length!==2&&Zn(n);var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,_oe.set(e,t)}function x0t(t,e,n){var r=ur(t),a=r.length,i="";a||Zn(i);for(var o=0,s=a;o<s;o++){var l=r[o];e=C0t(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function C0t(t,e,n,r){var a="";e.length||Zn(a),Wt(t)||Zn(a);var i=t.type,o=_oe.get(i);o||Zn(a);var s=ut(e,function(u){return y0t(u,o)}),l=ur(o.transform({upstream:s[0],upstreamList:s,config:Kt(t.config)}));return ut(l,function(u,c){var f="";Wt(u)||Zn(f),u.data||Zn(f);var d=hoe(u.data);wI(d)||Zn(f);var h,p=e[0];if(p&&c===0&&!u.dimensions){var v=p.startIndex;v&&(u.data=p.data.slice(0,v).concat(u.data)),h={seriesLayoutBy:Hl,sourceHeader:v,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:Hl,sourceHeader:0,dimensions:u.dimensions};return yA(u.data,h,null)})}function wI(t){return t===Si||t===gs}var sE="undefined",T0t=typeof Uint32Array===sE?Array:Uint32Array,E0t=typeof Uint16Array===sE?Array:Uint16Array,xoe=typeof Int32Array===sE?Array:Int32Array,RU=typeof Float64Array===sE?Array:Float64Array,Coe={float:RU,int:xoe,ordinal:Array,number:Array,time:RU},QD;function oy(t){return t>65535?T0t:E0t}function Kp(){return[1/0,-1/0]}function M0t(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function LU(t,e,n,r,a){var i=Coe[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 D0t=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=It()}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=QD[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],poe(a),this._dimensions=ut(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 Coe[n||"float"](this._rawCount),this._rawExtent[i]=Kp(),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]=Kp());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];LU(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,p=0;p<i;p++){var c=a[p],v=QD.arrayRows.call(this,e[h]||f,c.property,h,p);r[p][d]=v;var g=o[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ut(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Kp()),LU(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 p=0;p<s;p++){var v=i[p],g=this._dimValueGetter(d,u[p],h,p);v[h]=g;var y=l[p];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],p=Math.abs(h);p<=r&&((p<s||p===s&&h>=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i<a;i++)e[i]=n[i]}else e=new r(n.buffer,0,a)}else{var r=oy(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=oy(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,p=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var v=f[c][p];h=n(v,d)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][p];s[g]=d,h=n.apply(null,s)}h&&(o[u++]=p)}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=Tn(e),i=a.length;if(!i)return this;var o=n.count(),s=oy(n._rawCount),l=new s(o),u=0,c=a[0],f=e[c][0],d=e[c][1],h=n._chunks,p=!1;if(!n._indices){var v=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++]=v),v++}p=!0}else if(i===2){for(var g=h[a[0]],b=h[a[1]],w=e[a[1]][0],C=e[a[1]][1],y=0;y<r;y++){var m=g[y],x=b[y];(m>=f&&m<=d||isNaN(m))&&(x>=w&&x<=C||isNaN(x))&&(l[u++]=v),v++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var _=n.getRawIndex(y),m=h[a[0]][_];(m>=f&&m<=d||isNaN(m))&&(l[u++]=_)}else for(var y=0;y<o;y++){for(var T=!0,_=n.getRawIndex(y),M=0;M<i;M++){var E=a[M],m=h[E][_];(m<e[E][0]||m>e[E][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]]=Kp();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 p=r&&r.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var v=n[c],g=p[c],y=u[v],m=a[v];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(oy(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+v)/2,m=0,b=v;b<g;b++){var w=this.getRawIndex(b),C=i[w];isNaN(C)||(m+=C)}m/=g-v;var x=p,_=Math.min(p+l,o),T=p-1,M=i[u];c=-1,d=x;for(var E=-1,k=0,b=x;b<_;b++){var w=this.getRawIndex(b),C=i[w];if(isNaN(C)){k++,E<0&&(E=w);continue}f=Math.abs((T-y)*(C-M)-(T-b)*(m-M)),f>c&&(c=f,d=w)}k>0&&k<_-x&&(h[s++]=Math.min(E,d),d=Math.max(E,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]=Kp(),d=new(oy(this._rawCount))(Math.ceil(c/l)),h=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var v=0;v<l;v++){var g=this.getRawIndex(p+v);s[v]=u[g]}var y=r(s),m=this.getRawIndex(Math.min(p+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=Kp();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&&fs(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?M0t(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=Kt(this._extent),e._rawExtent=Kt(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 pf(n[i],this._dimensions[i])}QD={arrayRows:e,objectRows:function(n,r,a,i){return pf(n[r],this._dimensions[i])},keyedColumns:e,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return pf(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),t}();const mA=D0t;var Toe=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(Ow(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=vo(s)?hf:vs,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=fn(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=fn(f.sourceHeader,d.sourceHeader),v=fn(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;a=g?[yA(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var y=e;if(r){var m=this._applyTransform(n);a=m.sourceList,i=m.upstreamSignList}else{var b=y.get("source",!0);a=[yA(b,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&AU(i)}var o,s=[],l=[];return Z(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&AU(f),s.push(c),l.push(u._getVersionSign())}),r?o=x0t(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[a0t(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];Ow(this._sourceHost)&&l?s=l._innerGetDataStore(e,n,r):(s=new mA,s.initData(new voe(n,e.length),e)),o[r]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ow(e)){var n=vI(e);return n?[n.getSourceManager()]:[]}else return ut(Rgt(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(Ow(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 OU(t){var e=t.option.transform;e&&b1(t.option.transform)}function Ow(t){return t.mainType==="series"}function AU(t){throw new Error(t)}var Eoe="line-height:1";function Moe(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:"+Ni(r+"")+"px;color:"+Ni(n)+";font-weight:"+Ni(a+""),valueStyle:"font-size:"+Ni(o+"")+"px;color:"+Ni(i)+";font-weight:"+Ni(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var k0t=[0,10,20,30],R0t=["",`
  1141. `,`
  1142. `,`
  1143. `];function Na(t,e){return e.type=t,e}function bA(t){return t.type==="section"}function Doe(t){return bA(t)?L0t:O0t}function koe(t){if(bA(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Z(t.blocks,function(a){var i=koe(a);i>=e&&(e=i+ +(r&&(!i||bA(a)&&!a.noHeader)))}),e}return 0}function L0t(t,e,n,r){var a=e.noHeader,i=A0t(koe(e)),o=[],s=e.blocks||[];bi(!s||at(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Rt(u,l)){var c=new woe(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}Z(s,function(p,v){var g=e.valueFormatter,y=Doe(p)(g?Qe(Qe({},t),{valueFormatter:g}):t,p,v>0?i.html:0,r);y!=null&&o.push(y)});var f=t.renderMode==="richText"?o.join(i.richText):SA(o.join(""),a?n:i.html);if(a)return f;var d=pA(e.header,"ordinal",t.useUTC),h=Moe(r,t.renderMode).nameStyle;return t.renderMode==="richText"?Roe(t,d,h)+i.richText+f:SA('<div style="'+h+";"+Eoe+';">'+Ni(d)+"</div>"+f,n)}function O0t(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(w){return w=at(w)?w:[w],ut(w,function(C,x){return pA(C,at(h)?h[x]:h,u)})};if(!(i&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),d=i?"":pA(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),v=!s||!i,g=!s&&i,y=Moe(r,a),m=y.nameStyle,b=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":Roe(t,d,m))+(o?"":B0t(t,p,v,g,b)):SA((s?"":f)+(i?"":N0t(d,!s,m))+(o?"":V0t(p,v,g,b)),n)}}function NU(t,e,n,r,a,i){if(t){var o=Doe(t),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function A0t(t){return{html:k0t[t],richText:R0t[t]}}function SA(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+Eoe+';">'+t+n+"</div>"}function N0t(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Ni(t)+"</span>"}function V0t(t,e,n,r){var a=n?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=at(t)?t:[t],'<span style="'+i+";"+r+'">'+ut(t,function(o){return Ni(o)}).join("&nbsp;&nbsp;")+"</span>"}function Roe(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function B0t(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(at(e)?e.join(" "):e,i)}function Loe(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return tp(r)}function Ooe(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var JD=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Oae()}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=Zie({color:n,type:e,renderMode:r,markerId:a});return Mt(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};at(n)?Z(n,function(i){return Qe(r,i)}):Qe(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t}();function Aoe(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=at(s),u=Loe(e,n),c,f,d,h;if(o>1||l&&!o){var p=I0t(s,e,n,i,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=a.getDimensionInfo(i[0]);h=c=Og(a,n,i[0]),f=v.type}else h=c=l?s[0]:s;var g=GB(e),y=g&&e.name||"",m=a.getName(n),b=r?y:m;return Na("section",{header:y,noHeader:r||!g,sortParam:h,blocks:[Na("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Qo(b),value:c,valueType:f})].concat(d||[])})}function I0t(t,e,n,r,a){var i=e.getData(),o=fs(t,function(f,d,h){var p=i.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?Z(r,function(f){c(Og(i,n,f),f)}):Z(t,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Na("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 xc=In();function Aw(t,e){return t.getName(e)||t.getId(e)}var Sx="__universalTransitionEnabled",lE=function(t){Ve(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=Em({count:P0t,reset:F0t}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=xc(this).sourceManager=new Toe(this);i.prepareSource();var o=this.getInitialData(n,a);BU(o,this),this.dataTask.context.data=o,xc(this).dataBeforeProcessed=o,VU(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=V1(this),i=a?c0(n):{},o=this.subType;kn.hasClass(o)&&(o+="Series"),un(n,r.getTheme().get(this.subType)),un(n,this.getDefaultOption()),Zh(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&kf(n,i,a)},e.prototype.mergeOption=function(n,r){n=un(this.option,n,!0),this.fillDataTextStyle(n.data);var a=V1(this);a&&kf(this.option,n,a);var i=xc(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);BU(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xc(this).dataBeforeProcessed=o,VU(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!vo(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&Zh(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=wA(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return xc(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=wA(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}xc(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return It(n)},e.prototype.getSourceManager=function(){return xc(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return xc(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 Aoe({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Vn.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=gI.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=Aw(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=Tn(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[Aw(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Sx])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"){Wt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=Aw(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=Aw(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 kn.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}(kn);ea(lE,SI);ea(lE,gI);zae(lE,kn);function VU(t){var e=t.name;GB(t)||(t.name=$0t(t)||e)}function $0t(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return Z(n,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function P0t(t){return t.model.getRawData().count()}function F0t(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),z0t}function z0t(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function BU(t,e){Z(S1(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,nn(U0t,e))})}function U0t(t,e){var n=wA(t);return n&&n.setOutputEnd((e||this).count()),e}function wA(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 wr=lE;var _I=function(){function t(){this.group=new Xt,this.uid=u0("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}();WB(_I);GT(_I);const Lr=_I;function p0(){var t=In();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 Noe=In(),G0t=p0(),xI=function(){function t(){this.group=new Xt,this.uid=u0("viewChart"),this.renderTask=Em({plan:H0t,reset:W0t}),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&&$U(i,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&$U(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){Hf(this.group,e)},t.markUpdateMethod=function(e,n){Noe(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function IU(t,e,n){t&&L1(t)&&(e==="emphasis"?Gu:Hu)(t,n)}function $U(t,e,n){var r=Qh(t,e),a=e&&e.highlightKey!=null?mvt(e.highlightKey):null;r!=null?Z(ur(r),function(i){IU(t.getItemGraphicEl(i),n,a)}):t.eachItemGraphicEl(function(i){IU(i,n,a)})}WB(xI);GT(xI);function H0t(t){return G0t(t.model)}function W0t(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&Noe(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,n,r,a),j0t[l]}var j0t={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 cr=xI;var H2="\0__throttleOriginMethod",PU="\0__throttleRate",FU="\0__throttleType";function uE(t,e,n){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var d=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];r=new Date().getTime(),l=this,u=h;var v=c||e,g=c||n;c=null,s=r-(g?a:i)-v,clearTimeout(o),g?o=setTimeout(f,v):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 v0(t,e,n,r){var a=t[e];if(a){var i=a[H2]||a,o=a[FU],s=a[PU];if(s!==n||o!==r){if(n==null||!r)return t[e]=i;a=t[e]=uE(i,n,r==="debounce"),a[H2]=i,a[FU]=r,a[PU]=n}return a}}function I1(t,e){var n=t[e];n&&n[H2]&&(n.clear&&n.clear(),t[e]=n[H2])}var zU=In(),UU={itemStyle:Jh(zie,!0),lineStyle:Jh(Fie,!0)},K0t={lineStyle:"stroke",itemStyle:"fill"};function Voe(t,e){var n=t.visualStyleMapper||UU[e];return n||(console.warn("Unknown style type '"+e+"'."),UU.itemStyle)}function Boe(t,e){var n=t.visualDrawType||K0t[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Y0t={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),i=Voe(t,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Boe(t,r),u=o[l],c=zt(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"||zt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||zt(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=t.getDataParams(p),g=Qe({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},sy=new lr,q0t={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=Voe(t,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){sy.option=l[r];var u=a(sy),c=o.ensureUniqueItemVisual(s,"style");Qe(c,u),sy.option.decal&&(o.setItemVisual(s,"decal",sy.option.decal),sy.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},X0t={performRawSeries:!0,overallReset:function(t){var e=It();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)),zU(n).scope=i}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=zU(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Boe(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();d[l]=n.getColorFromPalette(h,o,p)}})}})}},Nw=Math.PI;function Z0t(t,e){e=e||{},Ht(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 Xt,r=new An({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new On({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 An({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 XT({shape:{startAngle:-Nw/2,endAngle:-Nw/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:Nw*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Nw*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 Q0t=function(){function t(e,n,r,a){this._stageTaskMap=It(),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=It();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;Z(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";bi(!(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;Z(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var v=o.getPerformArgs(d,a.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(i=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=It(),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)||Em({plan:ryt,reset:ayt,count:oyt}));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||Em({reset:J0t});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=It(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,h="";bi(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(f=!1,Z(r.getSeries(),p));function p(v){var g=v.uid,y=l.set(g,s&&s.get(g)||(d=!0,Em({reset:eyt,onDirty:nyt})));y.context={model:v,overallProgress:f},y.agent=o,y.__block=f,i._pipe(v,y)}d&&o.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return zt(e)&&(e={overallReset:e,seriesType:syt(e)}),e.uid=u0("stageHandler"),n&&(e.visualType=n),e},t}();function J0t(t){t.overallReset(t.ecModel,t.api,t.payload)}function eyt(t){return t.overallProgress&&tyt}function tyt(){this.agent.dirty(),this.getDownstream().dirty()}function nyt(){this.agent&&this.agent.dirty()}function ryt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function ayt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ur(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ut(e,function(n,r){return Ioe(r)}):iyt}var iyt=Ioe(0);function Ioe(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 oyt(t){return t.data.count()}function syt(t){W2=null;try{t($1,$oe)}catch{}return W2}var $1={},$oe={},W2;Poe($1,uoe);Poe($oe,coe);$1.eachSeriesByType=$1.eachRawSeriesByType=function(t){W2=t};$1.eachComponent=function(t){t.mainType==="series"&&t.subType&&(W2=t.subType)};function Poe(t,e){for(var n in e.prototype)t[n]=Qr}const Foe=Q0t;var GU=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lyt={color:GU,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],GU]};var ki="#B9B8CE",HU="#100C2A",Vw=function(){return{axisLine:{lineStyle:{color:ki}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},WU=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],zoe={darkMode:!0,color:WU,backgroundColor:HU,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ki}},textStyle:{color:ki},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ki}},dataZoom:{borderColor:"#71708A",textStyle:{color:ki},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:ki}},timeline:{lineStyle:{color:ki},label:{color:ki},controlStyle:{color:ki,borderColor:ki}},calendar:{itemStyle:{color:HU},dayLabel:{color:ki},monthLabel:{color:ki},yearLabel:{color:ki}},timeAxis:Vw(),logAxis:Vw(),valueAxis:Vw(),categoryAxis:Vw(),line:{symbol:"circle"},graph:{color:WU},gauge:{title:{color:ki},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ki},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};zoe.categoryAxis.splitLine.show=!1;const uyt=zoe;var cyt=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(Mt(e)){var i=Vl(e);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};Z(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 p=u.slice(0,h);p!=="data"&&(n.mainType=p,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,n.otherQuery,a,i));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),_A=["symbol","symbolSize","symbolRotate","symbolOffset"],jU=_A.concat(["symbolKeepAspect"]),fyt={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<_A.length;o++){var s=_A[o],l=t.get(s);zt(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Qe({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var u=Tn(a);function c(f,d){for(var h=t.getRawValue(d),p=t.getDataParams(d),v=0;v<u.length;v++){var g=u[v];f.setItemVisual(d,g,a[g](h,p))}}return{dataEach:i?c:null}}},dyt={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<jU.length;s++){var l=jU[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function CI(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 Gb(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 Uoe(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 Goe(t,e){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}Z([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(a,i,o){a=Qe({},a),o.dispatchAction(Qe(a,{type:r[1],seriesIndex:n(i,a)}))})})}function Yp(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=Qh(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:at(d)?f.getName(d[0]):f.getName(d),selected:Mt(l)?l:Qe({},l)})}})}function hyt(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Yp("map","selectchanged",e,a,r),Yp("pie","selectchanged",e,a,r)):r.fromAction==="select"?(Yp("map","selected",e,a,r),Yp("pie","selected",e,a,r)):r.fromAction==="unselect"&&(Yp("map","unselected",e,a,r),Yp("pie","unselected",e,a,r))})}function Sh(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var pyt=Math.round(Math.random()*9),vyt=typeof Object.defineProperty=="function",gyt=function(){function t(){this._id="__ec_inner_"+pyt++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return vyt?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 yyt=gyt;var myt=wn.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()}}),byt=wn.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()}}),Syt=wn.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,p=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-p,n,r),t.bezierCurveTo(n,r-p,n-c+f*h,l+s+d*h,n-c,l+s),t.closePath()}}),wyt=wn.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()}}),_yt={line:Da,rect:An,roundRect:An,square:An,circle:nl,diamond:byt,pin:Syt,arrow:wyt,triangle:myt},xyt={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}},j2={};Z(_yt,function(t,e){j2[e]=new t});var Cyt=wn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=V2(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=j2[r];a||(r="rect",a=j2[r]),xyt[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function Tyt(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 oa(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=tI(t.slice(8),new dn(e,n,r,a),o?"center":"cover"):t.indexOf("path://")===0?l=Pb(t.slice(7),{},new dn(e,n,r,a),o?"center":"cover"):l=new Cyt({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=Tyt,i&&l.setColor(i),l}function g0(t){return at(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function mp(t,e){if(t!=null)return at(t)||(t=[t,t]),[wt(t[0],e[0])||0,wt(fn(t[1],t[0]),e[1])||0]}function wh(t){return isFinite(t)}function Eyt(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=wh(r)?r:0,a=wh(a)?a:1,i=wh(i)?i:0,o=wh(o)?o:0;var s=t.createLinearGradient(r,i,a,o);return s}function Myt(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=wh(o)?o:.5,s=wh(s)?s:.5,l=l>=0&&wh(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function xA(t,e,n){for(var r=e.type==="radial"?Myt(t,e,n):Eyt(t,e,n),a=e.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function Dyt(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 Bw(t){return parseInt(t,10)}function kv(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]||Bw(s[r])||Bw(t.style[r]))-(Bw(s[i])||0)-(Bw(s[o])||0)|0}function kyt(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Bn(t)?[t]:at(t)?t:null}function TI(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&kyt(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=ut(n,function(i){return i/a}),r/=a)}return[n,r]}var Ryt=new Jl(!0);function K2(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function KU(t){return typeof t=="string"&&t!=="none"}function Y2(t){var e=t.fill;return e!=null&&e!=="none"}function YU(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 qU(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 CA(t,e,n){var r=jB(e.image,e.__image,n);if(HT(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)*vm),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function Lyt(t,e,n,r){var a,i=K2(n),o=Y2(n),s=n.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||Ryt,f=e.__dirty;if(!r){var d=n.fill,h=n.stroke,p=o&&!!d.colorStops,v=i&&!!h.colorStops,g=o&&!!d.image,y=i&&!!h.image,m=void 0,b=void 0,w=void 0,C=void 0,x=void 0;(p||v)&&(x=e.getBoundingRect()),p&&(m=f?xA(t,d,x):e.__canvasFillGradient,e.__canvasFillGradient=m),v&&(b=f?xA(t,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),g&&(w=f||!e.__canvasFillPattern?CA(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(C=f||!e.__canvasStrokePattern?CA(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),p?t.fillStyle=m:g&&(w?t.fillStyle=w:o=!1),v?t.strokeStyle=b:y&&(C?t.strokeStyle=C:i=!1)}var _=e.getGlobalScale();c.setScale(_[0],_[1],e.segmentIgnoreThreshold);var T,M;t.setLineDash&&n.lineDash&&(a=TI(e),T=a[0],M=a[1]);var E=!0;(u||f&pv)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),E=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=M),r||(n.strokeFirst?(i&&qU(t,n),o&&YU(t,n)):(o&&YU(t,n),i&&qU(t,n))),T&&t.setLineDash([])}function Oyt(t,e,n){var r=e.__image=jB(n.image,e.__image,e,e.onload);if(!(!r||!HT(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 Ayt(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||Ef,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=TI(e),i=r[0],o=r[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),n.strokeFirst?(K2(n)&&t.strokeText(a,n.x,n.y),Y2(n)&&t.fillText(a,n.x,n.y)):(Y2(n)&&t.fillText(a,n.x,n.y),K2(n)&&t.strokeText(a,n.x,n.y)),i&&t.setLineDash([])}}var XU=["shadowBlur","shadowOffsetX","shadowOffsetY"],ZU=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Hoe(t,e,n,r,a){var i=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){so(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Vh.opacity:o}(r||e.blend!==n.blend)&&(i||(so(t,a),i=!0),t.globalCompositeOperation=e.blend||Vh.blend);for(var s=0;s<XU.length;s++){var l=XU[s];(r||e[l]!==n[l])&&(i||(so(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(i||(so(t,a),i=!0),t.shadowColor=e.shadowColor||Vh.shadowColor),i}function QU(t,e,n,r,a){var i=P1(e,a.inHover),o=r?null:n&&P1(n,a.inHover)||{};if(i===o)return!1;var s=Hoe(t,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(so(t,a),s=!0),KU(i.fill)&&(t.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(so(t,a),s=!0),KU(i.stroke)&&(t.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(so(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||(so(t,a),s=!0),t.lineWidth=u)}for(var c=0;c<ZU.length;c++){var f=ZU[c],d=f[0];(r||i[d]!==o[d])&&(s||(so(t,a),s=!0),t[d]=i[d]||f[1])}return s}function Nyt(t,e,n,r,a){return Hoe(t,P1(e,a.inHover),n&&P1(n,a.inHover),r,a)}function Woe(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 Vyt(t,e,n){for(var r=!1,a=0;a<t.length;a++){var i=t[a];r=r||i.isZeroArea(),Woe(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}n.allClipped=r}function Byt(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 JU=1,eG=2,tG=3,nG=4;function Iyt(t){var e=Y2(t),n=K2(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 so(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function P1(t,e){return e&&t.__hoverStyle||t.style}function EI(t,e){_h(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function _h(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~So,e.__isRendered=!1;return}var i=e.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||Dyt(i,o))&&(o&&o.length&&(so(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(so(t,n),t.save(),Vyt(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 wn&&e.autoBatch&&Iyt(e.style);s||Byt(a,u.transform)?(so(t,n),Woe(t,e)):c||so(t,n);var f=P1(e,n.inHover);e instanceof wn?(n.lastDrawType!==JU&&(l=!0,n.lastDrawType=JU),QU(t,e,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&t.beginPath(),Lyt(t,e,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof k1?(n.lastDrawType!==tG&&(l=!0,n.lastDrawType=tG),QU(t,e,u,l,n),Ayt(t,e,f)):e instanceof Ya?(n.lastDrawType!==eG&&(l=!0,n.lastDrawType=eG),Nyt(t,e,u,l,n),Oyt(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==nG&&(l=!0,n.lastDrawType=nG),$yt(t,e,n)),c&&r&&so(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function $yt(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(),_h(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(),_h(t,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var ek=new yyt,rG=new Ab(100),aG=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ag(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&ek.delete(t);var i=ek.get(t);if(i)return i;var o=Ht(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,ek.set(t,s),t.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<aG.length;++d){var h=o[aG[d]];if(h!=null&&!at(h)&&!Mt(h)&&!Bn(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var p;if(f){p=c.join(",")+(a?"-svg":"");var v=rG.get(p);v&&(a?u.svgElement=v:u.image=v)}var g=Koe(o.dashArrayX),y=Pyt(o.dashArrayY),m=joe(o.symbol),b=Fyt(g),w=Yoe(y),C=!a&&Js.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},_=M(),T;C&&(C.width=_.width*n,C.height=_.height*n,T=C.getContext("2d")),E(),f&&rG.put(p,C||x),u.image=C,u.svgElement=x,u.svgWidth=_.width,u.svgHeight=_.height;function M(){for(var k=1,R=0,L=b.length;R<L;++R)k=b8(k,b[R]);for(var A=1,R=0,L=m.length;R<L;++R)A=b8(A,m[R].length);k*=A;var V=w*b.length*m.length;return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(V,o.maxTileHeight))}}function E(){T&&(T.clearRect(0,0,C.width,C.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,C.width,C.height)));for(var k=0,R=0;R<y.length;++R)k+=y[R];if(k<=0)return;for(var L=-w,A=0,V=0,G=0;L<_.height;){if(A%2===0){for(var I=V/2%m.length,$=0,N=0,P=0;$<_.width*2;){for(var Y=0,R=0;R<g[G].length;++R)Y+=g[G][R];if(Y<=0)break;if(N%2===0){var J=(1-o.symbolSize)*.5,re=$+g[G][N]*J,oe=L+y[A]*J,ue=g[G][N]*o.symbolSize,le=y[A]*o.symbolSize,fe=P/2%m[I].length;se(re,oe,ue,le,m[I][fe])}$+=g[G][N],++P,++N,N===g[G].length&&(N=0)}++G,G===g.length&&(G=0)}L+=y[A],++V,++A,A===y.length&&(A=0)}function se(_e,ve,he,q,ce){var Se=a?1:n,Ae=oa(ce,_e*Se,ve*Se,he*Se,q*Se,o.color,o.symbolKeepAspect);if(a){var Te=r.painter.renderOneToVNode(Ae);Te&&x.children.push(Te)}else EI(T,Ae)}}}}function joe(t){if(!t||t.length===0)return[["rect"]];if(Mt(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Mt(t[n])){e=!1;break}if(e)return joe([t]);for(var r=[],n=0;n<t.length;++n)Mt(t[n])?r.push([t[n]]):r.push(t[n]);return r}function Koe(t){if(!t||t.length===0)return[[0,0]];if(Bn(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Bn(t[r])){n=!1;break}if(n)return Koe([t]);for(var a=[],r=0;r<t.length;++r)if(Bn(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=ut(t[r],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function Pyt(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Bn(t)){var e=Math.ceil(t);return[e,e]}var n=ut(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function Fyt(t){return ut(t,function(e){return Yoe(e)})}function Yoe(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function zyt(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=Ag(s,e)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=Ag(a,e)}}})}var Uyt=new hs;const ks=Uyt;var qoe={};function Gyt(t,e){qoe[t]=e}function Xoe(t){return qoe[t]}var Hyt="5.4.3",Wyt={zrender:"5.4.4"},jyt=1,Kyt=800,Yyt=900,qyt=1e3,Xyt=2e3,Zyt=5e3,Zoe=1e3,Qyt=1100,MI=2e3,Qoe=3e3,Jyt=4e3,cE=4500,emt=4600,tmt=5e3,nmt=6e3,Joe=7e3,ese={PROCESSOR:{FILTER:qyt,SERIES_FILTER:Kyt,STATISTIC:Zyt},VISUAL:{LAYOUT:Zoe,PROGRESSIVE_LAYOUT:Qyt,GLOBAL:MI,CHART:Qoe,POST_CHART_LAYOUT:emt,COMPONENT:Jyt,BRUSH:tmt,CHART_ITEM:cE,ARIA:nmt,DECAL:Joe}},fi="__flagInMainProcess",to="__pendingUpdate",tk="__needsUpdateStatus",iG=/^[a-zA-Z0-9_]+$/,nk="__connectUpdateStatus",oG=0,rmt=1,amt=2;function tse(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return rse(this,t,e)}}function nse(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return rse(this,t,e)}}function rse(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),hs.prototype[e].apply(t,n)}var ase=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(hs),ise=ase.prototype;ise.on=nse("on");ise.off=nse("off");var qp,rk,Iw,Cc,ak,ik,ok,ly,uy,sG,lG,sk,uG,$w,cG,ose,Vo,fG,q2=function(t){Ve(e,t);function e(n,r,a){var i=t.call(this,new cyt)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Mt(r)&&(r=sse[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=QO(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:fn(a.useDirtyRect,l),useCoarsePointer:fn(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=uE(Dt(u.flush,u),17),r=Kt(r),r&&doe(r,!0),i._theme=r,i._locale=pgt(a.locale||Uie),i._coordSysMgr=new h0;var c=i._api=cG(i);function f(d,h){return d.__prio-h.__prio}return lx(Z2,f),lx(TA,f),i._scheduler=new Foe(i,c,TA,Z2),i._messageCenter=new ase,i._initEvents(),i.resize=Dt(i.resize,i),u.animation.on("frame",i._onframe,i),sG(u,i),lG(u,i),b1(i),i}return e.prototype._onframe=function(){if(!this._disposed){fG(this);var n=this._scheduler;if(this[to]){var r=this[to].silent;this[fi]=!0;try{qp(this),Cc.update.call(this,null,this[to].updateParams)}catch(l){throw this[fi]=!1,this[to]=null,l}this._zr.flush(),this[fi]=!1,this[to]=null,ly.call(this,r),uy.call(this,r)}else if(n.unfinished){var a=jyt,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),ik(this,i),n.performVisualTasks(i),$w(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[fi]){if(this._disposed){this.id;return}var i,o,s;if(Wt(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[fi]=!0,!this._model||r){var l=new Ygt(this._api),u=this._theme,c=this._model=new uoe;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},EA);var f={seriesTransition:s,optionChanged:!0};if(a)this[to]={silent:i,updateParams:f},this[fi]=!1,this.getZr().wakeUp();else{try{qp(this),Cc.update.call(this,null,f)}catch(d){throw this[to]=null,this[fi]=!1,d}this._ssr||this._zr.flush(),this[to]=null,this[fi]=!1,ly.call(this,i),uy.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||Vn.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(Vn.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Z(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;Z(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 Z(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(Q2[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();Z($h,function(b,w){if(b.group===a){var C=r?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Kt(n)),x=b.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),d.push({dom:C,left:x.left,top:x.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Js.createCanvas(),y=QO(g,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:v}),r){var m="";return Z(d,function(b){var w=b.left-l,C=b.top-u;m+='<g transform="translate('+w+","+C+')">'+b.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 An({shape:{x:0,y:0,width:p,height:v},style:{fill:n.connectedBackgroundColor}})),Z(d,function(b){var w=new Ya({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});y.add(w)}),y.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return ak(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return ak(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=wm(a,n);return Z(o,function(s,l){l.indexOf("Models")>=0&&Z(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=wm(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?CI(s,l,r):Gb(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;Z(imt,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Sh(s,function(p){var v=rn(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=Qe({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),Z(Mm,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),Z(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),hyt(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&&$ae(this.getDom(),kI,"");var r=this,a=r._api,i=r._model;Z(r._componentsViews,function(o){o.dispose(i,a)}),Z(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 $h[r.id]},e.prototype.resize=function(n){if(!this[fi]){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[to]&&(i==null&&(i=this[to].silent),a=!0,this[to]=null),this[fi]=!0;try{a&&qp(this),Cc.update.call(this,{type:"resize",animation:Qe({duration:0},n&&n.animation)})}catch(o){throw this[fi]=!1,o}this[fi]=!1,ly.call(this,i),uy.call(this,i)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Wt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!MA[n]){var a=MA[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=Qe({},n);return r.type=Mm[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Wt(r)||(r={silent:!!r}),!!X2[n.type]&&this._model){if(this[fi]){this._pendingActions.push(n);return}var a=r.silent;ok.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Vn.browser.weChat&&this._throttledZrFlush(),ly.call(this,a),uy.call(this,a)}},e.prototype.updateLabelLayout=function(){ks.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(){qp=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),rk(f,!0),rk(f,!1),d.plan()},rk=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,b=0;b<v.length;b++)v[b].__alive=!1;d?h.eachComponent(function(x,_){x!=="series"&&w(_)}):h.eachSeries(w);function w(x){var _=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,M=!_&&g[T];if(!M){var E=Vl(x.type),k=d?Lr.getClass(E.main,E.sub):cr.getClass(E.sub);M=new k,M.init(h,m),g[T]=M,v.push(M),y.add(M.group)}x.__viewId=M.__id=T,M.__alive=!0,M.__model=x,M.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!d&&p.prepareView(M,x,h,m)}for(var b=0;b<v.length;){var C=v[b];C.__alive?b++:(!d&&C.renderTask.dispose(),y.remove(C.group),C.dispose(h,m),v.splice(b,1),g[C.__id]===C&&delete g[C.__id],C.__id=C.group.__ecComponentInfo=null)}},Iw=function(f,d,h,p,v){var g=f._model;if(g.setUpdatePayload(h),!p){Z([].concat(f._componentsViews).concat(f._chartsViews),C);return}var y={};y[p+"Id"]=h[p+"Id"],y[p+"Index"]=h[p+"Index"],y[p+"Name"]=h[p+"Name"];var m={mainType:p,query:y};v&&(m.subType=v);var b=h.excludeSeriesId,w;b!=null&&(w=It(),Z(ur(b),function(x){var _=Sa(x,null);_!=null&&w.set(_,!0)})),g&&g.eachComponent(m,function(x){var _=w&&w.get(x.id)!=null;if(!_)if(K8(h))if(x instanceof wr)h.type===Bh&&!h.notBlur&&!x.get(["emphasis","disabled"])&&cvt(x,h,f._api);else{var T=ZB(x.mainType,x.componentIndex,h.name,f._api),M=T.focusSelf,E=T.dispatchers;h.type===Bh&&M&&!h.notBlur&&sA(x.mainType,x.componentIndex,f._api),E&&Z(E,function(k){h.type===Bh?Gu(k):Hu(k)})}else uA(h)&&x instanceof wr&&(hvt(x,h,f._api),W8(x),Vo(f))},f),g&&g.eachComponent(m,function(x){var _=w&&w.get(x.id)!=null;_||C(f[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function C(x){x&&x.__alive&&x[d]&&x[d](x.__model,g,f._api,h)}},Cc={prepareAndUpdate:function(f){qp(this),Cc.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,p=this._api,v=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,p),y.performDataProcessorTasks(h,f),ik(this,h),g.update(h,p),n(h),y.performVisualTasks(h,f),sk(this,h,p,f,d);var m=h.get("backgroundColor")||"transparent",b=h.get("darkMode");v.setBackgroundColor(m),b!=null&&b!=="auto"&&v.setDarkMode(b),ks.trigger("afterupdate",h,p)}},updateTransform:function(f){var d=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(f);var v=[];h.eachComponent(function(y,m){if(y!=="series"){var b=d.getViewOfComponentModel(m);if(b&&b.__alive)if(b.updateTransform){var w=b.updateTransform(m,h,p,f);w&&w.update&&v.push(b)}else v.push(b)}});var g=It();h.eachSeries(function(y){var m=d._chartsMap[y.__viewId];if(m.updateTransform){var b=m.updateTransform(y,h,p,f);b&&b.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),$w(this,h,p,f,{},g),ks.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),cr.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),sk(this,d,this._api,f,{}),ks.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(p){p.getData().clearAllVisual()}),cr.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,v){if(p!=="series"){var g=d.getViewOfComponentModel(v);g&&g.__alive&&g.updateVisual(v,h,d._api,f)}}),h.eachSeries(function(p){var v=d._chartsMap[p.__viewId];v.updateVisual(p,h,d._api,f)}),ks.trigger("afterupdate",h,this._api))},updateLayout:function(f){Cc.update.call(this,f)}},ak=function(f,d,h,p){if(f._disposed){f.id;return}for(var v=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=wm(v,h),b=0;b<g.length;b++){var w=g[b];if(w[d]&&(y=w[d](v,m,p))!=null)return y}},ik=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(v){p.updateStreamModes(v,h[v.__viewId])})},ok=function(f,d){var h=this,p=this.getModel(),v=f.type,g=f.escapeConnect,y=X2[v],m=y.actionInfo,b=(m.update||"update").split(":"),w=b.pop(),C=b[0]!=null&&Vl(b[0]);this[fi]=!0;var x=[f],_=!1;f.batch&&(_=!0,x=ut(f.batch,function(A){return A=Ht(Qe({},A),f),A.batch=null,A}));var T=[],M,E=uA(f),k=K8(f);if(k&&fie(this._api),Z(x,function(A){if(M=y.action(A,h._model,h._api),M=M||Qe({},A),M.type=m.event||M.type,T.push(M),k){var V=HB(f),G=V.queryOptionMap,I=V.mainTypeSpecified,$=I?G.keys()[0]:"series";Iw(h,w,A,$),Vo(h)}else E?(Iw(h,w,A,"series"),Vo(h)):C&&Iw(h,w,A,C.main,C.sub)}),w!=="none"&&!k&&!E&&!C)try{this[to]?(qp(this),Cc.update.call(this,f),this[to]=null):Cc[w].call(this,f)}catch(A){throw this[fi]=!1,A}if(_?M={type:m.event||v,escapeConnect:g,batch:T}:M=T[0],this[fi]=!1,!d){var R=this._messageCenter;if(R.trigger(M.type,M),E){var L={type:"selectchanged",escapeConnect:g,selected:pvt(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};R.trigger(L.type,L)}}},ly=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();ok.call(this,h,f)}},uy=function(f){!f&&this.trigger("updated")},sG=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[to]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},lG=function(f,d){f.on("mouseover",function(h){var p=h.target,v=Sh(p,L1);v&&(fvt(v,h,d._api),Vo(d))}).on("mouseout",function(h){var p=h.target,v=Sh(p,L1);v&&(dvt(v,h,d._api),Vo(d))}).on("click",function(h){var p=h.target,v=Sh(p,function(m){return rn(m).dataIndex!=null},!0);if(v){var g=v.selected?"unselect":"select",y=rn(v);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=[],p=!1;if(f.eachComponent(function(m,b){var w=b.get("zlevel")||0,C=b.get("z")||0,x=b.getZLevelKey();p=p||!!x,(m==="series"?h:d).push({zlevel:w,z:C,idx:b.componentIndex,type:m,key:x})}),p){var v=d.concat(h),g,y;lx(v,function(m,b){return m.zlevel===b.zlevel?m.z-b.z:m.zlevel-b.zlevel}),Z(v,function(m){var b=f.getComponent(m.type,m.idx),w=m.zlevel,C=m.key;g!=null&&(w=Math.max(g,w)),C?(w===g&&C!==y&&w++,y=C):y&&(w===g&&w++,y=""),g=w,b.setZLevel(w)})}}sk=function(f,d,h,p,v){r(d),uG(f,d,h,p,v),Z(f._chartsViews,function(g){g.__alive=!1}),$w(f,d,h,p,v),Z(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},uG=function(f,d,h,p,v,g){Z(g||f._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,d,h,p),s(m,y),c(m,y)})},$w=function(f,d,h,p,v,g){var y=f._scheduler;v=Qe(v||{},{updatedSeries:d.getSeries()}),ks.trigger("series:beforeupdate",d,h,v);var m=!1;d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];w.__alive=!0;var C=w.renderTask;y.updatePayload(C,p),u(b,w),g&&g.get(b.uid)&&C.dirty(),C.perform(y.getPerformArgs(C))&&(m=!0),w.group.silent=!!b.get("silent"),o(b,w),W8(b)}),y.unfinished=m||y.unfinished,ks.trigger("series:layoutlabels",d,h,v),ks.trigger("series:transition",d,h,v),d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];s(b,w),c(b,w)}),i(f,d),ks.trigger("series:afterupdate",d,h,v)},Vo=function(f){f[tk]=!0,f.getZr().wakeUp()},fG=function(f){f[tk]&&(f.getZr().storage.traverse(function(d){qv(d)||a(d)}),f[tk]=!1)};function a(f){for(var d=[],h=f.currentStates,p=0;p<h.length;p++){var v=h[p];v==="emphasis"||v==="blur"||v==="select"||d.push(v)}f.selected&&f.states.select&&d.push("select"),f.hoverState===KT&&f.states.emphasis?d.push("emphasis"):f.hoverState===Bb&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,p=h.storage,v=0;p.traverse(function(g){g.isGroup||v++}),v>d.get("hoverLayerThreshold")&&!Vn.node&&!Vn.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),b=0;b<m.length;b++)p=Math.max(l(m[b],d,h,p),p);else f.z=d,f.zlevel=h,p=Math.max(f.z2,p);if(v&&(v.z=d,v.zlevel=h,isFinite(p)&&(v.z2=p+2)),g){var w=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(p)&&(g.z2=p+(w&&w.showAbove?1:-1))}return p}function u(f,d){d.eachRendered(function(h){if(!qv(h)){var p=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),v=h.get("duration"),g=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qv(y))return;if(y instanceof wn&&bvt(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var b=y.getTextContent(),w=y.getTextGuideLine();b&&(b.stateTransition=g),w&&(w.stateTransition=g)}y.__dirty&&a(y)}})}cG=function(f){return new(function(d){Ve(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){Gu(p,v),Vo(f)},h.prototype.leaveEmphasis=function(p,v){Hu(p,v),Vo(f)},h.prototype.enterBlur=function(p){sie(p),Vo(f)},h.prototype.leaveBlur=function(p){XB(p),Vo(f)},h.prototype.enterSelect=function(p){lie(p),Vo(f)},h.prototype.leaveSelect=function(p){uie(p),Vo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(coe))(f)},ose=function(f){function d(h,p){for(var v=0;v<h.length;v++){var g=h[v];g[nk]=p}}Z(Mm,function(h,p){f._messageCenter.on(p,function(v){if(Q2[f.group]&&f[nk]!==oG){if(v&&v.escapeConnect)return;var g=f.makeActionFromEvent(v),y=[];Z($h,function(m){m!==f&&m.group===f.group&&y.push(m)}),d(y,oG),Z(y,function(m){m[nk]!==rmt&&m.dispatchAction(g)}),d(y,amt)}})})}}(),e}(hs),DI=q2.prototype;DI.on=tse("on");DI.off=tse("off");DI.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 imt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var X2={},Mm={},TA=[],EA=[],Z2=[],sse={},MA={},$h={},Q2={},omt=+new Date-0,smt=+new Date-0,kI="_echarts_instance_";function lmt(t,e,n){var r=!(n&&n.ssr);if(r){var a=RI(t);if(a)return a}var i=new q2(t,e,n);return i.id="ec_"+omt++,$h[i.id]=i,r&&$ae(t,kI,i.id),ose(i),ks.trigger("afterinit",i),i}function umt(t){if(at(t)){var e=t;t=null,Z(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+smt++,Z(e,function(n){n.group=t})}return Q2[t]=!0,t}function lse(t){Q2[t]=!1}var cmt=lse;function fmt(t){Mt(t)?t=$h[t]:t instanceof q2||(t=RI(t)),t instanceof q2&&!t.isDisposed()&&t.dispose()}function RI(t){return $h[ipt(t,kI)]}function dmt(t){return $h[t]}function LI(t,e){sse[t]=e}function OI(t){vn(EA,t)<0&&EA.push(t)}function AI(t,e){NI(TA,t,e,Xyt)}function use(t){fE("afterinit",t)}function cse(t){fE("afterupdate",t)}function fE(t,e){ks.on(t,e)}function ll(t,e,n){zt(e)&&(n=e,e="");var r=Wt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!Mm[e]&&(bi(iG.test(r)&&iG.test(e)),X2[r]||(X2[r]={action:n,actionInfo:t}),Mm[e]=r)}function fse(t,e){h0.register(t,e)}function hmt(t){var e=h0.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function dse(t,e){NI(Z2,t,e,Zoe,"layout")}function jf(t,e){NI(Z2,t,e,Qoe,"visual")}var dG=[];function NI(t,e,n,r,a){if((zt(e)||Wt(e))&&(n=e,e=r),!(vn(dG,n)>=0)){dG.push(n);var i=Foe.wrapStageHandler(n,a);i.__prio=e,i.__raw=n,t.push(i)}}function VI(t,e){MA[t]=e}function pmt(t){zre({createCanvas:t})}function hse(t,e,n){var r=Xoe("registerMap");r&&r(t,e,n)}function vmt(t){var e=Xoe("getMap");return e&&e(t)}var pse=_0t;jf(MI,Y0t);jf(cE,q0t);jf(cE,X0t);jf(MI,fyt);jf(cE,dyt);jf(Joe,zyt);OI(doe);AI(Yyt,n0t);VI("default",Z0t);ll({type:Bh,event:Bh,update:Bh},Qr);ll({type:vx,event:vx,update:vx},Qr);ll({type:_m,event:_m,update:_m},Qr);ll({type:gx,event:gx,update:gx},Qr);ll({type:xm,event:xm,update:xm},Qr);LI("light",lyt);LI("dark",uyt);var gmt={},hG=[],ymt={registerPreprocessor:OI,registerProcessor:AI,registerPostInit:use,registerPostUpdate:cse,registerUpdateLifecycle:fE,registerAction:ll,registerCoordinateSystem:fse,registerLayout:dse,registerVisual:jf,registerTransform:pse,registerLoading:VI,registerMap:hse,registerImpl:Gyt,PRIORITY:ese,ComponentModel:kn,ComponentView:Lr,SeriesModel:wr,ChartView:cr,registerComponentModel:function(t){kn.registerClass(t)},registerComponentView:function(t){Lr.registerClass(t)},registerSeriesModel:function(t){wr.registerClass(t)},registerChartView:function(t){cr.registerClass(t)},registerSubTypeDefaulter:function(t,e){kn.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mae(t,e)}};function mn(t){if(at(t)){Z(t,function(e){mn(e)});return}vn(hG,t)>=0||(hG.push(t),zt(t)&&(t={install:t}),t.install(ymt))}function cy(t){return t==null?0:t.length||1}function pG(t){return t}var mmt=function(){function t(e,n,r,a,i,o){this._old=e,this._new=n,this._oldKeyGetter=r||pG,this._newKeyGetter=a||pG,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=cy(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=cy(u),d=cy(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=cy(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=cy(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},t}();const Wu=mmt;var bmt=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 Smt(t,e){var n={},r=n.encode={},a=It(),i=[],o=[],s={};Z(t.dimensions,function(d){var h=t.getDimensionInfo(d),p=h.coordDim;if(p){var v=h.coordDimIndex;lk(r,p)[v]=d,h.isExtraCoord||(a.set(p,1),wmt(h.type)&&(i[0]=d),lk(s,p)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}toe.each(function(g,y){var m=lk(r,y),b=h.otherDims[y];b!=null&&b!==!1&&(m[b]=h.name)})});var l=[],u={};a.each(function(d,h){var p=r[h];u[h]=p[0],l=l.concat(p)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=ut(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 bmt(s,e),n}function lk(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function J2(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function wmt(t){return!(t==="ordinal"||t==="time")}var _mt=function(){function t(e){this.otherDims={},e!=null&&Qe(this,e)}return t}();const _x=_mt;var xmt=In(),Cmt={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},vse=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=mse(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return fn(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=poe(this.source),r=!bse(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+=Cmt[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:p}},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 gse(t){return t instanceof vse}function yse(t){for(var e=It(),n=0;n<(t||[]).length;n++){var r=t[n],a=Wt(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function mse(t){var e=xmt(t);return e.dimNameMap||(e.dimNameMap=yse(t.dimensionsDefine))}function bse(t){return t>30}var fy=Wt,Tc=ut,Tmt=typeof Int32Array>"u"?Array:Int32Array,Emt="e\0\0",vG=-1,Mmt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Dmt=["_approximateExtent"],gG,Pw,dy,hy,uk,Fw,ck,kmt=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;gse(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=Mt(f)?new _x({name:f}):f instanceof _x?f:new _x(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.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 v=this._dimIdxToName=It();Z(o,function(g){v.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(Bn(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 mA&&(i=e),!i){var o=this.dimensions,s=yI(e)||ii(e)?new voe(e,o.length):e;i=new mA;var l=Tc(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=Smt(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&&ck(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!==hf&&!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===vs;if(l&&!a.pure)for(var u=[],c=e;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&jht(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=Sa(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Sa(h,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<n;c++)ck(this,c);gG(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){fy(e)?Qe(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=dy(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 Pw(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 at(e)?a.getValues(Tc(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)?vG:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){zt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Tc(hy(e),this._getStoreDimIndex,this);this._store.each(i,a?Dt(n,a):n)},t.prototype.filterSelf=function(e,n,r){zt(e)&&(r=n,n=e,e=[]);var a=r||this,i=Tc(hy(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Dt(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=Tn(e);return Z(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){zt(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=Tc(hy(e),this._getStoreDimIndex,this),s=Fw(this);return s._store=this._store.map(o,i?Dt(n,i):n),s},t.prototype.modify=function(e,n,r,a){var i=r||a||this,o=Tc(hy(e),this._getStoreDimIndex,this);this._store.modify(o,i?Dt(n,i):n)},t.prototype.downSample=function(e,n,r,a){var i=Fw(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),i},t.prototype.lttbDownSample=function(e,n){var r=Fw(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 lr(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new Wu(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Pw(e,r)},function(r){return Pw(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||{},fy(e)?Qe(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),at(i)?i=i.slice():fy(i)&&(i=Qe({},i)),a[n]=i),i},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,fy(n)?Qe(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){fy(e)?Qe(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?Qe(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;iA(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){Z(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:Tc(this.dimensions,this._getDimInfo,this),this.hostModel)),uk(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];zt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(BT(arguments)))})},t.internalField=function(){gG=function(e){var n=e._invertedIndicesMap;Z(n,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=n[a]=new Tmt(o.categories.length);for(var l=0;l<r.length;l++)r[l]=vG;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},dy=function(e,n,r){return Sa(e._getCategory(n,r),null)},Pw=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=dy(e,e._idDimIdx,n)),r==null&&(r=Emt+n),r},hy=function(e){return at(e)||(e=e!=null?[e]:[]),e},Fw=function(e){var n=new t(e._schema?e._schema:Tc(e.dimensions,e._getDimInfo,e),e.hostModel);return uk(n,e),n},uk=function(e,n){Z(Mmt.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,Z(Dmt,function(r){e[r]=Kt(n[r])}),e._calculationInfo=Qe({},n._calculationInfo)},ck=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=dy(e,i,n)),l==null&&o!=null&&(a[n]=l=dy(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 gi=kmt;function Rmt(t,e){return y0(t,e).dimensions}function y0(t,e){yI(t)||(t=mI(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=It(),i=[],o=Omt(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&bse(o),l=r===t.dimensionsDefine,u=l?mse(t):yse(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=It(c),d=new xoe(o),h=0;h<d.length;h++)d[h]=-1;function p(M){var E=d[M];if(E<0){var k=r[M],R=Wt(k)?k:{name:k},L=new _x,A=R.name;A!=null&&u.get(A)!=null&&(L.name=L.displayName=A),R.type!=null&&(L.type=R.type),R.displayName!=null&&(L.displayName=R.displayName);var V=i.length;return d[M]=V,L.storeDimIndex=M,i.push(L),L}return i[E]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(M,E){var k=ur(M).slice();if(k.length===1&&!Mt(k[0])&&k[0]<0){f.set(E,!1);return}var R=f.set(E,[]);Z(k,function(L,A){var V=Mt(L)?u.get(L):L;V!=null&&V<o&&(R[A]=V,g(p(V),E,A))})});var v=0;Z(n,function(M){var E,k,R,L;if(Mt(M))E=M,L={};else{L=M,E=L.name;var A=L.ordinalMeta;L.ordinalMeta=null,L=Qe({},L),L.ordinalMeta=A,k=L.dimsDef,R=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var V=f.get(E);if(V!==!1){if(V=ur(V),!V.length)for(var G=0;G<(k&&k.length||1);G++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&V.push(v++)}Z(V,function(I,$){var N=p(I);if(l&&L.type!=null&&(N.type=L.type),g(Ht(N,L),E,$),N.name==null&&k){var P=k[$];!Wt(P)&&(P={name:P}),N.name=N.displayName=P.name,N.defaultTooltip=P.defaultTooltip}R&&Ht(N.otherDims,R)})}});function g(M,E,k){toe.get(E)!=null?M.otherDims[E]=k:(M.coordDim=E,M.coordDimIndex=k,a.set(E,!0))}var y=e.generateCoord,m=e.generateCoordCount,b=m!=null;m=y?m||1:0;var w=y||"value";function C(M){M.name==null&&(M.name=M.coordDim)}if(s)Z(i,function(M){C(M)}),i.sort(function(M,E){return M.storeDimIndex-E.storeDimIndex});else for(var x=0;x<o;x++){var _=p(x),T=_.coordDim;T==null&&(_.coordDim=Amt(w,a,b),_.coordDimIndex=0,(!y||m<=0)&&(_.isExtraCoord=!0),m--),C(_),_.type==null&&(ioe(t,x)===Za.Must||_.isExtraCoord&&(_.otherDims.itemName!=null||_.otherDims.seriesName!=null))&&(_.type="ordinal")}return Lmt(i),new vse({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Lmt(t){for(var e=It(),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 Omt(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Z(e,function(i){var o;Wt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Amt(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 Nmt=function(){function t(e){this.coordSysDims=[],this.axisMap=It(),this.categoryAxisMap=It(),this.coordSysName=e}return t}();function Vmt(t){var e=t.get("coordinateSystem"),n=new Nmt(e),r=Bmt[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var Bmt={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",ca).models[0],i=t.getReferringComponents("yAxis",ca).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),Xp(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Xp(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",ca).models[0];e.coordSysDims=["single"],n.set("single",a),Xp(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",ca).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),Xp(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Xp(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();Z(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),Xp(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Xp(t){return t.get("type")==="category"}function Sse(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;Imt(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d;if(Z(i,function(m,b){Mt(m)&&(i[b]=m={name:m}),l&&!m.isExtraCoord&&(!r&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(c=m))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;Z(i,function(m){m.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function Imt(t){return!gse(t.schema)}function ju(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function BI(t,e){return ju(t,e)?t.getCalculationInfo("stackResultDimension"):e}function $mt(t,e){var n=t.get("coordinateSystem"),r=h0.get(n),a;return e&&e.coordSysDims&&(a=ut(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=J2(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function Pmt(t,e,n){var r,a;return n&&Z(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 iu(t,e,n){n=n||{};var r=e.getSourceManager(),a,i=!1;t?(i=!0,a=mI(t)):(a=r.getSource(),i=a.sourceFormat===vs);var o=Vmt(e),s=$mt(e,o),l=n.useEncodeDefaulter,u=zt(l)?l:l?nn(aoe,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=y0(a,c),d=Pmt(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),p=Sse(e,{schema:f,store:h}),v=new gi(f,e);v.setCalculationInfo(p);var g=d!=null&&Fmt(a)?function(y,m,b,w){return w===d?b:this.defaultDimValueGetter(y,m,b,w)}:null;return v.hasItemOption=!1,v.initData(i?a:h,null,g),v}function Fmt(t){if(t.sourceFormat===vs){var e=zmt(t.data||[]);return!at(n0(e))}}function zmt(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var wse=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}();GT(wse);const ac=wse;var Umt=0,Gmt=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Umt}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&ut(r,Hmt);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(!Mt(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=It(this.categories))},t}();function Hmt(t){return Wt(t)&&t.value!=null?t.value:t+""}const DA=Gmt;function kA(t){return t.type==="interval"||t.type==="log"}function Wmt(t,e,n,r){var a={},i=t[1]-t[0],o=a.interval=zB(i/e,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=_se(o),l=a.niceTickExtent=[Yr(Math.ceil(t[0]/o)*o,s),Yr(Math.floor(t[1]/o)*o,s)];return jmt(l,t),a}function fk(t){var e=Math.pow(10,UT(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Yr(n*e)}function _se(t){return Gs(t)+2}function yG(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function jmt(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),yG(t,0,e),yG(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function dE(t,e){return t>=e[0]&&t<=e[1]}function hE(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function pE(t,e){return t*(e[1]-e[0])+e[0]}var xse=function(t){Ve(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new DA({})),at(a)&&(a=new DA({categories:ut(a,function(i){return Wt(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:Mt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),dE(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),hE(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(pE(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}(ac);ac.registerClass(xse);const II=xse;var Ad=Yr,Cse=function(t){Ve(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 dE(n,this._extent)},e.prototype.normalize=function(n){return hE(n,this._extent)},e.prototype.scale=function(n){return pE(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=_se(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:Ad(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Ad(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:Ad(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=Ad(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=Gs(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Ad(n.value,a,!0);return cI(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=Wmt(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]=Ad(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=Ad(Math.ceil(r[1]/o)*o))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(ac);ac.registerClass(Cse);const Rf=Cse;var Tse=typeof Float32Array<"u",Kmt=Tse?Float32Array:Array;function Bl(t){return at(t)?Tse?new Float32Array(t):t:new Kmt(t)}var RA="__ec_stack_";function $I(t){return t.get("stack")||RA+t.seriesIndex}function PI(t){return t.dim+t.index}function Ymt(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(Ht({bandWidth:a,axisKey:r,stackId:RA+i},t));for(var o=Dse(e),s=[],i=0;i<t.count;i++){var l=o[r][RA+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Ese(t,e){var n=[];return e.eachSeriesByType(t,function(r){Lse(r)&&n.push(r)}),n}function qmt(t){var e={};Z(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)),p=f.getStore(),v=0,g=p.count();v<g;++v){var y=p.get(h,v);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 Mse(t){var e=qmt(t),n=[];return Z(t,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=wt(r.get("barWidth"),s),v=wt(r.get("barMaxWidth"),s),g=wt(r.get("barMinWidth")||(Ose(r)?.5:1),s),y=r.get("barGap"),m=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:PI(i),stackId:$I(r)})}),Dse(n)}function Dse(t){var e={};Z(t,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var n={};return Z(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Tn(i).length;s=Math.max(35-l*4,15)+"%"}var u=wt(s,o),c=wt(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),Z(i,function(y){var m=y.maxWidth,b=y.minWidth;if(y.width){var w=y.width;m&&(w=Math.min(w,m)),b&&(w=Math.max(w,b)),y.width=w,f-=w+c*w,d--}else{var w=h;m&&m<w&&(w=Math.min(m,f)),b&&b>w&&(w=b),w!==h&&(y.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;Z(i,function(y,m){y.width||(y.width=h),v=y,p+=y.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;Z(i,function(y,m){n[a][m]=n[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),n}function Xmt(t,e,n){if(t&&e){var r=t[PI(e)];return r!=null&&n!=null?r[$I(n)]:r}}function kse(t,e){var n=Ese(t,e),r=Mse(n);Z(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=$I(a),u=r[PI(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function Rse(t){return{seriesType:t,plan:p0(),reset:function(e){if(Lse(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=ju(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=Zmt(a,i),p=Ose(e),v=e.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),y=n.getLayout("size"),m=n.getLayout("offset");return{progress:function(b,w){for(var C=b.count,x=p&&Bl(C*3),_=p&&l&&Bl(C*3),T=p&&Bl(C),M=r.master.getRect(),E=d?M.width:M.height,k,R=w.getStore(),L=0;(k=b.next())!=null;){var A=R.get(f?g:o,k),V=R.get(s,k),G=h,I=void 0;f&&(I=+A-R.get(o,k));var $=void 0,N=void 0,P=void 0,Y=void 0;if(d){var J=r.dataToPoint([A,V]);if(f){var re=r.dataToPoint([I,V]);G=re[0]}$=G,N=J[1]+m,P=J[0]-G,Y=y,Math.abs(P)<v&&(P=(P<0?-1:1)*v)}else{var J=r.dataToPoint([V,A]);if(f){var re=r.dataToPoint([V,I]);G=re[1]}$=J[0]+m,N=G,P=y,Y=J[1]-G,Math.abs(Y)<v&&(Y=(Y<=0?-1:1)*v)}p?(x[L]=$,x[L+1]=N,x[L+2]=d?P:Y,_&&(_[L]=d?M.x:$,_[L+1]=d?N:M.y,_[L+2]=E),T[k]=k):w.setItemLayout(k,{x:$,y:N,width:P,height:Y}),L+=3}p&&w.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:_,valueAxisHorizontal:d})}}}}}}function Lse(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function Ose(t){return t.pipelineContext&&t.pipelineContext.large}function Zmt(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var Qmt=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},Ase=function(t){Ve(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 Ub(n.value,lU[ygt(Xv(this._minLevelUnit))]||lU.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return mgt(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=i1t(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]-=Xo,r[1]+=Xo),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]-Xo}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=zw.length,l=Math.min(Qmt(zw,this._approxInterval,0,s),s-1);this._interval=zw[l][1],this._minLevelUnit=zw[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return Bn(n)?n:+ko(n)},e.prototype.contain=function(n){return dE(this.parse(n),this._extent)},e.prototype.normalize=function(n){return hE(this.parse(n),this._extent)},e.prototype.scale=function(n){return pE(n,this._extent)},e.type="time",e}(Rf),zw=[["second",sI],["minute",lI],["hour",Tm],["quarter-day",Tm*6],["half-day",Tm*12],["day",Xo*1.2],["half-week",Xo*3.5],["week",Xo*7],["month",Xo*31],["quarter",Xo*95],["half-year",sU/2],["year",sU]];function Jmt(t,e,n,r){var a=ko(e),i=ko(n),o=function(p){return uU(a,p,r)===uU(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function e1t(t,e){return t/=Xo,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function t1t(t){var e=30*Xo;return t/=e,t>6?6:t>3?3:t>2?2:1}function n1t(t){return t/=Tm,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function mG(t,e){return t/=e?lI:sI,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function r1t(t){return zB(t,!0)}function a1t(t,e,n){var r=new Date(t);switch(Xv(e)){case"year":case"month":r[Wie(n)](0);case"day":r[jie(n)](1);case"hour":r[Kie(n)](0);case"minute":r[Yie(n)](0);case"second":r[qie(n)](0),r[Xie(n)](0)}return r.getTime()}function i1t(t,e,n,r){var a=1e4,i=Gie,o=0;function s(E,k,R,L,A,V,G){for(var I=new Date(k),$=k,N=I[L]();$<R&&$<=r[1];)G.push({value:$}),N+=E,I[A](N),$=I.getTime();G.push({value:$,notAdd:!0})}function l(E,k,R){var L=[],A=!k.length;if(!Jmt(Xv(E),r[0],r[1],n)){A&&(k=[{value:a1t(new Date(r[0]),E,n)},{value:r[1]}]);for(var V=0;V<k.length-1;V++){var G=k[V].value,I=k[V+1].value;if(G!==I){var $=void 0,N=void 0,P=void 0,Y=!1;switch(E){case"year":$=Math.max(1,Math.round(e/Xo/365)),N=uI(n),P=bgt(n);break;case"half-year":case"quarter":case"month":$=t1t(e),N=Zv(n),P=Wie(n);break;case"week":case"half-week":case"day":$=e1t(e),N=tE(n),P=jie(n),Y=!0;break;case"half-day":case"quarter-day":case"hour":$=n1t(e),N=N1(n),P=Kie(n);break;case"minute":$=mG(e,!0),N=nE(n),P=Yie(n);break;case"second":$=mG(e,!1),N=rE(n),P=qie(n);break;case"millisecond":$=r1t(e),N=aE(n),P=Xie(n);break}s($,G,I,N,P,Y,L),E==="year"&&R.length>1&&V===0&&R.unshift({value:R[0].value-$})}}for(var V=0;V<L.length;V++)R.push(L[V]);return L}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var p=Xv(i[h]);if(ggt(i[h])){l(i[h],u[u.length-1]||[],c);var v=i[h+1]?Xv(i[h+1]):null;if(p!==v){if(c.length){d=f,c.sort(function(E,k){return E.value-k.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 b=(r[1]-r[0])/e;if(f>b*1.5&&d>b/1.5||(u.push(g),f>b||t===i[h]))break}c=[]}}}for(var w=nr(ut(u,function(E){return nr(E,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(E){return E.length>0}),C=[],x=w.length-1,h=0;h<w.length;++h)for(var _=w[h],T=0;T<_.length;++T)C.push({value:_[T].value,level:x-h});C.sort(function(E,k){return E.value-k.value});for(var M=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&M.push(C[h]);return M}ac.registerClass(Ase);const Nse=Ase;var bG=ac.prototype,Dm=Rf.prototype,o1t=Yr,s1t=Math.floor,l1t=Math.ceil,Uw=Math.pow,_s=Math.log,FI=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Rf,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=Dm.getTicks.call(this,n);return ut(o,function(s){var l=s.value,u=Yr(Uw(this.base,l));return u=l===a[0]&&this._fixMin?Gw(u,i[0]):u,u=l===a[1]&&this._fixMax?Gw(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(n,r){var a=_s(this.base);n=_s(Math.max(0,n))/a,r=_s(Math.max(0,r))/a,Dm.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=bG.getExtent.call(this);r[0]=Uw(n,r[0]),r[1]=Uw(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=Gw(r[0],i[0])),this._fixMax&&(r[1]=Gw(r[1],i[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=_s(n[0])/_s(r),n[1]=_s(n[1])/_s(r),bG.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=Lae(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Yr(l1t(r[0]/i)*i),Yr(s1t(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){Dm.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=_s(n)/_s(this.base),dE(n,this._extent)},e.prototype.normalize=function(n){return n=_s(n)/_s(this.base),hE(n,this._extent)},e.prototype.scale=function(n){return n=pE(n,this._extent),Uw(this.base,n)},e.type="log",e}(ac),Vse=FI.prototype;Vse.getMinorTicks=Dm.getMinorTicks;Vse.getLabel=Dm.getLabel;function Gw(t,e){return o1t(t,Gs(e))}ac.registerClass(FI);const u1t=FI;var c1t=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);zt(i)?this._modelMinNum=Hw(e,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=Hw(e,i));var o=this._modelMaxRaw=n.get("max",!0);if(zt(o)?this._modelMaxNum=Hw(e,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=Hw(e,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=at(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[tl(l[0],1),tl(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=Rg(s)||Rg(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[d1t[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=f1t[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),f1t={min:"_determinedMin",max:"_determinedMax"},d1t={min:"_dataMin",max:"_dataMax"};function Bse(t,e,n){var r=t.rawExtentInfo;return r||(r=new c1t(t,e,n),t.rawExtentInfo=r,r)}function Hw(t,e){return e==null?null:Rg(e)?NaN:t.parse(e)}function Ise(t,e){var n=t.type,r=Bse(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=Ese("bar",o),l=!1;if(Z(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=Mse(s),c=h1t(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function h1t(t,e,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=Xmt(r,n.axis);if(o===void 0)return{min:t,max:e};var s=1/0;Z(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;Z(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 np(t,e){var n=e,r=Ise(t,n),a=r.extent,i=n.get("splitNumber");t instanceof u1t&&(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 Hb(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new II({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Nse({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ac.getClass(e)||Rf)}}function p1t(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Wb(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):Mt(e)?function(r){return function(a){var i=t.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):zt(e)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(zI(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function zI(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function v1t(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof II?a=n.count():(r=n.getTicks(),a=r.length);var o=t.getLabelModel(),s=Wb(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),p=g1t(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function g1t(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 dn(t.x,t.y,i,o);return s}function UI(t){var e=t.get("interval");return e??"auto"}function $se(t){return t.type==="category"&&UI(t.getLabelModel())===0}function eC(t,e){var n={};return Z(t.mapDimensionsAll(e),function(r){n[BI(t,r)]=!0}),Tn(n)}function y1t(t,e,n){e&&Z(eC(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 m0=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function m1t(t){return iu(null,t)}var b1t={isDimensionStacked:ju,enableDataStack:Sse,getStackedDimension:BI};function S1t(t,e){var n=e;e instanceof lr||(n=new lr(e));var r=Hb(n);return r.setExtent(t[0],t[1]),np(r,n),r}function w1t(t){ea(t,m0)}function _1t(t,e){return e=e||{},gr(t,null,null,e.state!=="normal")}const x1t=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Rmt,createList:m1t,createScale:S1t,createSymbol:oa,createTextStyle:_1t,dataStack:b1t,enableHoverEmphasis:ff,getECData:rn,getLayoutRect:ga,mixinAxisModelCommonMethods:w1t},Symbol.toStringTag,{value:"Module"}));var C1t=1e-8;function SG(t,e){return Math.abs(t-e)<C1t}function rh(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+=bu(a[0],a[1],o[0],o[1],e,n),a=o}var s=t[0];return(!SG(a[0],s[0])||!SG(a[1],s[1]))&&(r+=bu(a[0],a[1],s[0],s[1],e,n)),r!==0}var T1t=[];function dk(t,e){for(var n=0;n<t.length;n++)Wa(t[n],t[n],e)}function wG(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])&&(Du(e,e,i),ku(n,n,i))}}function E1t(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 Pse=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}(),_G=function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t}(),xG=function(){function t(e){this.type="linestring",this.points=e}return t}(),Fse=function(t){Ve(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 E1t(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 Z(o,function(s){s.type==="polygon"?wG(s.exterior,a,i,n):Z(s.points,function(l){wG(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 dn(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(rh(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(rh(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 dn(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(dk(d.exterior,u),Z(d.interiors,function(h){dk(h,u)})):Z(d.points,function(h){dk(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}(Pse),M1t=function(t){Ve(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=Ob(T1t),o=n;o&&!o.isGeoSVGGraphicRoot;)Gl(i,o.getLocalTransform(),i),o=o.parent;return vp(i,i),Wa(a,a,i),a},e}(Pse);function D1t(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return Z(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=zse(s,o,n);break;case"Polygon":hk(s,o,n);break;case"MultiLineString":hk(s,o,n);break;case"MultiPolygon":Z(s,function(l,u){return hk(l,o[u],n)})}}),e.UTF8Encoding=!1,e}function hk(t,e,n){for(var r=0;r<t.length;r++)t[r]=zse(t[r],e[r],n)}function zse(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 LA(t,e){return t=D1t(t),ut(nr(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 _G(o[0],o.slice(1)));break;case"MultiPolygon":Z(a.coordinates,function(l){l[0]&&i.push(new _G(l[0],l.slice(1)))});break;case"LineString":i.push(new xG([a.coordinates]));break;case"MultiLineString":i.push(new xG(a.coordinates))}var s=new Fse(r[e||"name"],i,r.cp);return s.properties=r,s})}const k1t=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:JO,asc:Co,getPercentWithPrecision:Ght,getPixelPrecision:PB,getPrecision:Gs,getPrecisionSafe:kae,isNumeric:UB,isRadianAroundZero:M1,linearMap:tr,nice:zB,numericToNumber:Ql,parseDate:ko,quantile:px,quantity:Lae,quantityExponent:UT,reformIntervals:eA,remRadian:FB,round:Yr},Symbol.toStringTag,{value:"Module"})),R1t=Object.freeze(Object.defineProperty({__proto__:null,format:Ub,parse:ko},Symbol.toStringTag,{value:"Module"})),L1t=Object.freeze(Object.defineProperty({__proto__:null,Arc:XT,BezierCurve:$b,BoundingRect:dn,Circle:nl,CompoundPath:ZT,Ellipse:qT,Group:Xt,Image:Ya,IncrementalDisplayable:kie,Line:Da,LinearGradient:a0,Polygon:ji,Polyline:qi,RadialGradient:JB,Rect:An,Ring:Ib,Sector:Wi,Text:On,clipPointsByRect:rI,clipRectByRect:Nie,createIcon:o0,extendPath:Oie,extendShape:Lie,getShapeClass:QT,getTransform:df,initProps:Mr,makeImage:tI,makePath:Pb,mergePath:wo,registerShape:ps,resizePath:nI,updateProps:zn},Symbol.toStringTag,{value:"Module"})),O1t=Object.freeze(Object.defineProperty({__proto__:null,addCommas:cI,capitalFirst:xgt,encodeHTML:Ni,formatTime:_gt,formatTpl:dI,getTextRect:Sgt,getTooltipMarker:Zie,normalizeCssArray:yp,toCamelCase:fI,truncateText:Uae},Symbol.toStringTag,{value:"Module"})),A1t=Object.freeze(Object.defineProperty({__proto__:null,bind:Dt,clone:Kt,curry:nn,defaults:Ht,each:Z,extend:Qe,filter:nr,indexOf:vn,inherits:RB,isArray:at,isFunction:zt,isObject:Wt,isString:Mt,map:ut,merge:un,reduce:fs},Symbol.toStringTag,{value:"Module"}));var F1=In();function N1t(t){return t.type==="category"?B1t(t):$1t(t)}function V1t(t,e){return t.type==="category"?I1t(t,e):{ticks:ut(t.scale.getTicks(),function(n){return n.value})}}function B1t(t){var e=t.getLabelModel(),n=Use(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Use(t,e){var n=Gse(t,"labels"),r=UI(e),a=Hse(n,r);if(a)return a;var i,o;return zt(r)?i=Kse(t,r):(o=r==="auto"?P1t(t):r,i=jse(t,o)),Wse(n,r,{labels:i,labelCategoryInterval:o})}function I1t(t,e){var n=Gse(t,"ticks"),r=UI(e),a=Hse(n,r);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),zt(r))i=Kse(t,r,!0);else if(r==="auto"){var s=Use(t,t.getLabelModel());o=s.labelCategoryInterval,i=ut(s.labels,function(l){return l.tickValue})}else o=r,i=jse(t,o,!0);return Wse(n,r,{ticks:i,tickCategoryInterval:o})}function $1t(t){var e=t.scale.getTicks(),n=Wb(t);return{labels:ut(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function Gse(t,e){return F1(t)[e]||(F1(t)[e]=[])}function Hse(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Wse(t,e,n){return t.push({key:e,value:n}),n}function P1t(t){var e=F1(t).autoInterval;return e??(F1(t).autoInterval=t.calculateCategoryInterval())}function F1t(t){var e=z1t(t),n=Wb(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 p=0,v=0,g=Nb(n({value:l}),e.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var y=d/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),w=F1(t.model),C=t.getExtent(),x=w.lastAutoInterval,_=w.lastTickCount;return x!=null&&_!=null&&Math.abs(x-b)<=1&&Math.abs(_-o)<=1&&x>b&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?b=x:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=C[0],w.axisExtent1=C[1]),b}function z1t(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 jse(t,e,n){var r=Wb(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=$se(t),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&v(i[0]);for(var p=u;p<=i[1];p+=l)v(p);h&&p-l!==i[1]&&v(i[1]);function v(g){var y={value:g};s.push(n?g:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function Kse(t,e,n){var r=t.scale,a=Wb(t),i=[];return Z(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 CG=[0,1],U1t=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 PB(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(),TG(r,a.count())),tr(e,CG,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),TG(r,a.count()));var i=tr(e,r,CG,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=V1t(this,n),a=r.ticks,i=ut(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return G1t(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=ut(r,function(i){return ut(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return N1t(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 F1t(this)},t}();function TG(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function G1t(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;Z(e,function(h){h.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var f=i[0]>i[1];d(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&d(i[0],e[0].coord)&&e.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&d(o.coord,i[1])&&e.push({coord:i[1]});function d(h,p){return h=Yr(h),p=Yr(p),f?h>p:h<p}}const ys=U1t;function H1t(t){var e=kn.extend(t);return kn.registerClass(e),e}function W1t(t){var e=Lr.extend(t);return Lr.registerClass(e),e}function j1t(t){var e=wr.extend(t);return wr.registerClass(e),e}function K1t(t){var e=cr.extend(t);return cr.registerClass(e),e}var py=Math.PI*2,Nd=Jl.CMD,Y1t=["top","right","bottom","left"];function q1t(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 X1t(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)%py<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Hs(a),a=Hs(d)}else r=Hs(r),a=Hs(a);r>a&&(a+=py);var h=Math.atan2(s,o);if(h<0&&(h+=py),h>=r&&h<=a||h+py>=r&&h+py<=a)return l[0]=c,l[1]=f,u-n;var p=n*Math.cos(r)+t,v=n*Math.sin(r)+e,g=n*Math.cos(a)+t,y=n*Math.sin(a)+e,m=(p-o)*(p-o)+(v-s)*(v-s),b=(g-o)*(g-o)+(y-s)*(y-s);return m<b?(l[0]=p,l[1]=v,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(b))}function tC(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,p=h/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var v=o[0]=t+p*c,g=o[1]=e+p*f;return Math.sqrt((v-a)*(v-a)+(g-i)*(g-i))}function Yse(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 Ls=[];function Z1t(t,e,n){var r=Yse(e.x,e.y,e.width,e.height,t.x,t.y,Ls);return n.set(Ls[0],Ls[1]),r}function Q1t(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 p=c[h++];h===1&&(r=c[h],a=c[h+1],i=r,o=a);var v=u;switch(p){case Nd.M:i=c[h++],o=c[h++],r=i,a=o;break;case Nd.L:v=tC(r,a,c[h],c[h+1],f,d,Ls,!0),r=c[h++],a=c[h++];break;case Nd.C:v=uae(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Ls),r=c[h++],a=c[h++];break;case Nd.Q:v=fae(r,a,c[h++],c[h++],c[h],c[h+1],f,d,Ls),r=c[h++],a=c[h++];break;case Nd.A:var g=c[h++],y=c[h++],m=c[h++],b=c[h++],w=c[h++],C=c[h++];h+=1;var x=!!(1-c[h++]);s=Math.cos(w)*m+g,l=Math.sin(w)*b+y,h<=1&&(i=s,o=l);var _=(f-g)*b/m+g;v=X1t(g,y,b,w,w+C,x,_,d,Ls),r=Math.cos(w+C)*m+g,a=Math.sin(w+C)*b+y;break;case Nd.R:i=r=c[h++],o=a=c[h++];var T=c[h++],M=c[h++];v=Yse(i,o,T,M,f,d,Ls);break;case Nd.Z:v=tC(r,a,i,o,f,d,Ls,!0),r=i,a=o;break}v<u&&(u=v,n.set(Ls[0],Ls[1]))}return u}var Ws=new cn,br=new cn,ra=new cn,Il=new cn,Ol=new cn;function EG(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||Y1t,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=t.getComputedTransform(),f=c&&vp([],c),d=e.get("length2")||0;u&&ra.copy(u);for(var h=0;h<o.length;h++){var p=o[h];q1t(p,0,s,Ws,Il),cn.scaleAndAdd(br,Ws,Il,d),br.transform(f);var v=t.getBoundingRect(),g=u?u.distance(br):t instanceof wn?Q1t(br,t.path,ra):Z1t(br,v,ra);g<l&&(l=g,br.transform(c),ra.transform(c),ra.toArray(i[0]),br.toArray(i[1]),Ws.toArray(i[2]))}qse(i,e.get("minTurnAngle")),n.setShape({points:i})}}}var nC=[],Oi=new cn;function qse(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ws.fromArray(t[0]),br.fromArray(t[1]),ra.fromArray(t[2]),cn.sub(Il,Ws,br),cn.sub(Ol,ra,br);var n=Il.len(),r=Ol.len();if(!(n<.001||r<.001)){Il.scale(1/n),Ol.scale(1/r);var a=Il.dot(Ol),i=Math.cos(e);if(i<a){var o=tC(br.x,br.y,ra.x,ra.y,Ws.x,Ws.y,nC,!1);Oi.fromArray(nC),Oi.scaleAndAdd(Ol,o/Math.tan(Math.PI-e));var s=ra.x!==br.x?(Oi.x-br.x)/(ra.x-br.x):(Oi.y-br.y)/(ra.y-br.y);if(isNaN(s))return;s<0?cn.copy(Oi,br):s>1&&cn.copy(Oi,ra),Oi.toArray(t[1])}}}}function J1t(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Ws.fromArray(t[0]),br.fromArray(t[1]),ra.fromArray(t[2]),cn.sub(Il,br,Ws),cn.sub(Ol,ra,br);var r=Il.len(),a=Ol.len();if(!(r<.001||a<.001)){Il.scale(1/r),Ol.scale(1/a);var i=Il.dot(e),o=Math.cos(n);if(i<o){var s=tC(br.x,br.y,ra.x,ra.y,Ws.x,Ws.y,nC,!1);Oi.fromArray(nC);var l=Math.PI/2,u=Math.acos(Ol.dot(e)),c=l+u-n;if(c>=l)cn.copy(Oi,ra);else{Oi.scaleAndAdd(Ol,s/Math.tan(Math.PI/2-c));var f=ra.x!==br.x?(Oi.x-br.x)/(ra.x-br.x):(Oi.y-br.y)/(ra.y-br.y);if(isNaN(f))return;f<0?cn.copy(Oi,br):f>1&&cn.copy(Oi,ra)}Oi.toArray(t[1])}}}}function MG(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 ebt(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=Mu(r[0],r[1]),i=Mu(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=ym([],r[1],r[0],o/a),l=ym([],r[1],r[2],o/i),u=ym([],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 GI(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<R1.length;l++){var u=R1[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:fn(a.states[u]&&a.states[u].ignore,s);if(h||!fn(d,o)){var p=f?r:r&&r.states[u];p&&(p.ignore=!0);continue}r||(r=new qi,t.setTextGuideLine(r),!f&&(s||!o)&&MG(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),MG(r,!1,u,c)}}if(r){Ht(r.style,n),r.style.fill=null;var v=i.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=v||!1,r.buildPath=ebt}}function HI(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Hi.length;r++){var a=Hi[r];n[a]=t.getModel([a,e])}return n}function Xse(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 $2(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 Zse(t,e,n,r,a,i){var o=t.length;if(o<2)return;t.sort(function(T,M){return T.rect[e]-M.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 p=Math.max(-l,0);c+=p,s=h[e]+h[n]}c>0&&i&&C(-c/o,0,o);var v=t[0],g=t[o-1],y,m;b(),y<0&&x(-y,.8),m<0&&x(m,.8),b(),w(y,m,1),w(m,y,-1),b(),y<0&&_(-y),m<0&&_(m);function b(){y=v.rect[e]-r,m=a-g.rect[e]-g.rect[n]}function w(T,M,E){if(T<0){var k=Math.min(M,-T);if(k>0){C(k*E,0,o);var R=k+T;R<0&&x(-R*E,1)}else x(-T*E,1)}}function C(T,M,E){T!==0&&(u=!0);for(var k=M;k<E;k++){var R=t[k],L=R.rect;L[e]+=T,R.label[e]+=T}}function x(T,M){for(var E=[],k=0,R=1;R<o;R++){var L=t[R-1].rect,A=Math.max(t[R].rect[e]-L[e]-L[n],0);E.push(A),k+=A}if(k){var V=Math.min(Math.abs(T)/k,M);if(T>0)for(var R=0;R<o-1;R++){var G=E[R]*V;C(G,0,R+1)}else for(var R=o-1;R>0;R--){var G=E[R-1]*V;C(-G,R,o)}}}function _(T){var M=T<0?-1:1;T=Math.abs(T);for(var E=Math.ceil(T/(o-1)),k=0;k<o-1;k++)if(M>0?C(E,0,k+1):C(-E,o-k-1,o),T-=E,T<=0)return}return u}function tbt(t,e,n,r){return Zse(t,"x","width",e,n,r)}function Qse(t,e,n,r){return Zse(t,"y","height",e,n,r)}function Jse(t){var e=[];t.sort(function(v,g){return g.priority-v.priority});var n=new dn(0,0,0,0);function r(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var a=0;a<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 p=e[h];if(n.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new $2(p.localRect,p.transform)),f||(f=new $2(s,l)),f.intersect(p.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 nbt(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function rbt(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:nbt(r&&r.shape.points)}}var DG=["align","verticalAlign","width","height","fontSize"],Mi=new Ru,pk=In(),abt=In();function Ww(t,e,n){for(var r=0;r<n.length;r++){var a=n[r];e[a]!=null&&(t[a]=e[a])}}var jw=["x","y","rotation"],ibt=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();dn.applyTransform(c,c,u),u?Mi.setLocalTransform(u):(Mi.x=Mi.y=Mi.rotation=Mi.originX=Mi.originY=0,Mi.scaleX=Mi.scaleY=1),Mi.rotation=Hs(Mi.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();dn.applyTransform(d,d,h)}var p=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:p,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:p&&p.ignore,x:Mi.x,y:Mi.y,scaleX:Mi.scaleX,scaleY:Mi.scaleY,rotation:Mi.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");(zt(a)||Tn(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=rn(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(b,w){return function(){EG(b,w)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;zt(o.layoutOption)?c=o.layoutOption(rbt(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=wt(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=wt(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 p=pk(s);p.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<DG.length;v++){var g=DG[v];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=Xse(this._labelList),i=nr(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=nr(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});tbt(i,0,n),Qse(o,0,r);var s=nr(a,function(l){return l.layoutOption.hideOverlap});Jse(s)},t.prototype.processLabelsOverall=function(){var e=this;Z(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=pk(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,r),i&&e._animateLabels(o,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),a=rn(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");GI(e,HI(s),l),EG(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&&!qv(e))){var i=pk(r),o=i.oldLayout,s=rn(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&&(vn(d,"select")>=0&&r.attr(i.oldLayoutSelect),vn(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),zn(r,u,n,l)}else if(r.attr(u),!l0(r).valueAnimation){var f=fn(r.style.opacity,1);r.style.opacity=0,Mr(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};Ww(h,u,jw),Ww(h,r.states.select,jw)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};Ww(p,u,jw),Ww(p,r.states.emphasis,jw)}Pie(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=abt(a),o=i.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),zn(a,{shape:v},n)):(a.setShape(v),a.style.strokePercent=0,Mr(a,{style:{strokePercent:1}},n)),i.oldLayout=v}},t}();const obt=ibt;var vk=In();function sbt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var a=vk(n).labelManager;a||(a=vk(n).labelManager=new obt),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var a=vk(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var gk=Math.sin,yk=Math.cos,ele=Math.PI,Vd=Math.PI*2,lbt=180/ele,ubt=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=Jc(f-Vd)||(c?u>=Vd:-u>=Vd),h=u>0?u%Vd:u%Vd+Vd,p=!1;d?p=!0:Jc(f)?p=!1:p=h>=ele==!!c;var v=e+r*yk(o),g=n+a*gk(o);this._start&&this._add("M",v,g);var y=Math.round(i*lbt);if(d){var m=1/this._p,b=(c?1:-1)*(Vd-m);this._add("A",r,a,y,1,+c,e+r*yk(o+b),n+a*gk(o+b)),m>.01&&this._add("A",r,a,y,0,+c,v,g)}else{var w=e+r*yk(s),C=n+a*gk(s);this._add("A",r,a,y,+p,+c,w,C)}},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 tle=ubt;var km="none",cbt=Math.round;function fbt(t){var e=t.fill;return e!=null&&e!==km}function dbt(t){var e=t.stroke;return e!=null&&e!==km}var OA=["lineCap","miterLimit","lineJoin"],hbt=ut(OA,function(t){return"stroke-"+t.toLowerCase()});function pbt(t,e,n,r){var a=e.opacity==null?1:e.opacity;if(n instanceof Ya){t("opacity",a);return}if(fbt(e)){var i=E1(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",km);if(dbt(e)){var s=E1(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=TI(n),h=d[0],p=d[1];h&&(p=cbt(p||0),t("stroke-dasharray",h.join(",")),(p||r)&&t("stroke-dashoffset",p))}else r&&t("stroke-dasharray",km);for(var v=0;v<OA.length;v++){var g=OA[v];if(r||e[g]!==B2[g]){var y=e[g]||B2[g];y&&t(hbt[v],y)}}}else r&&t("stroke",km)}var nle="http://www.w3.org/2000/svg",rle="http://www.w3.org/1999/xlink",vbt="http://www.w3.org/2000/xmlns/",gbt="http://www.w3.org/XML/1998/namespace";function ale(t){return document.createElementNS(nle,t)}function ka(t,e,n,r,a){return{tag:t,attrs:n||{},children:r,text:a,key:e}}function ybt(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 mbt(t){return"</"+t+">"}function WI(t,e){e=e||{};var n=e.newline?`
  1144. `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return ybt(o,s)+(o!=="style"?Ni(l):l||"")+(i?""+n+ut(i,function(u){return r(u)}).join(n)+n:"")+mbt(o)}return r(t)}function bbt(t,e,n){n=n||{};var r=n.newline?`
  1145. `:"",a=" {"+r,i=r+"}",o=ut(Tn(t),function(l){return l+a+ut(Tn(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+i}).join(r),s=ut(Tn(e),function(l){return"@keyframes "+l+a+ut(Tn(e[l]),function(u){return u+a+ut(Tn(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 AA(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function kG(t,e,n,r){return ka("svg","root",{width:t,height:e,xmlns:nle,"xmlns:xlink":rle,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var RG={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"},Ud="transform-origin";function Sbt(t,e,n){var r=Qe({},t.shape);Qe(r,e),t.buildPath(n,r);var a=new tle;return a.reset(mae(t)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function wbt(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[Ud]=n+"px "+r+"px")}var _bt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ile(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function xbt(t,e,n){var r=t.shape.paths,a={},i,o;if(Z(r,function(l){var u=AA(n.zrId);u.animation=!0,vE(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Tn(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];a[v]=a[v]||{d:""},a[v].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=ile(a,n);return i.replace(o,s)}}function LG(t){return Mt(t)?RG[t]?"cubic-bezier("+RG[t]+")":NB(t)?t:"":""}function vE(t,e,n,r){var a=t.animators,i=a.length,o=[];if(t instanceof ZT){var s=xbt(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=LG(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 p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(m){var b=m[1],w=b.length,C={},x={},_={},T="animation-timing-function";function M(se,_e,ve){for(var he=se.getTracks(),q=se.getMaxTime(),ce=0;ce<he.length;ce++){var Se=he[ce];if(Se.needsAnimate()){var Ae=Se.keyframes,Te=Se.propName;if(ve&&(Te=ve(Te)),Te)for(var Oe=0;Oe<Ae.length;Oe++){var He=Ae[Oe],$e=Math.round(He.time/q*100)+"%",Ne=LG(He.easing),Le=He.rawValue;(Mt(Le)||Bn(Le))&&(_e[$e]=_e[$e]||{},_e[$e][Te]=He.rawValue,Ne&&(_e[$e][T]=Ne))}}}}for(var E=0;E<w;E++){var k=b[E],R=k.targetName;R?R==="shape"&&M(k,x):!r&&M(k,C)}for(var L in C){var A={};xae(A,t),Qe(A,C[L]);var V=bae(A),G=C[L][T];_[L]=V?{transform:V}:{},wbt(_[L],A),G&&(_[L][T]=G)}var I,$=!0;for(var L in x){_[L]=_[L]||{};var N=!I,G=x[L][T];N&&(I=new Jl);var P=I.len();I.reset(),_[L].d=Sbt(t,x[L],I);var Y=I.len();if(!N&&P!==Y){$=!1;break}G&&(_[L][T]=G)}if(!$)for(var L in _)delete _[L].d;if(!r)for(var E=0;E<w;E++){var k=b[E],R=k.targetName;R==="style"&&M(k,_,function(he){return _bt[he]})}for(var J=Tn(_),re=!0,oe,E=1;E<J.length;E++){var ue=J[E-1],le=J[E];if(_[ue][Ud]!==_[le][Ud]){re=!1;break}oe=_[ue][Ud]}if(re&&oe){for(var L in _)_[L][Ud]&&delete _[L][Ud];e[Ud]=oe}if(nr(J,function(se){return Tn(_[se]).length>0}).length){var fe=ile(_,n);return fe+" "+m[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var z1=Math.round;function ole(t){return t&&Mt(t.src)}function sle(t){return t&&zt(t.toDataURL)}function jI(t,e,n,r){pbt(function(a,i){var o=a==="fill"||a==="stroke";o&&yae(i)?ule(e,t,a,r):o&&BB(i)?cle(n,t,a,r):t[a]=i},e,n,!1),Rbt(n,t,r)}function OG(t){return Jc(t[0]-1)&&Jc(t[1])&&Jc(t[2])&&Jc(t[3]-1)}function Cbt(t){return Jc(t[4])&&Jc(t[5])}function KI(t,e,n){if(e&&!(Cbt(e)&&OG(e))){var r=n?10:1e4;t.transform=OG(e)?"translate("+z1(e[4]*r)/r+" "+z1(e[5]*r)/r+")":rht(e)}}function AG(t,e,n){for(var r=t.points,a=[],i=0;i<r.length;i++)a.push(z1(r[i][0]*n)/n),a.push(z1(r[i][1]*n)/n);e.points=a.join(" ")}function NG(t){return!t.smooth}function Tbt(t){var e=ut(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]]=z1(s*a)/a)}}}var Ebt={circle:[Tbt(["cx","cy","r"])],polyline:[AG,NG],polygon:[AG,NG]};function Mbt(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function lle(t,e){var n=t.style,r=t.shape,a=Ebt[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&mae(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&Mbt(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(),p=t,v=p.__svgPathBuilder;(p.__svgPathVersion!==h||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new tle),v.reset(u),d.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),i.d=v.getStr()}return KI(i,t.transform),jI(i,n,t,e),e.animation&&vE(t,i,e),ka(s,t.id+"",i)}function Dbt(t,e){var n=t.style,r=n.image;if(r&&!Mt(r)&&(ole(r)?r=r.src:sle(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),KI(l,t.transform),jI(l,n,t,e),e.animation&&vE(t,l,e),ka("image",t.id+"",l)}}function kbt(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||Ef,i=n.x||0,o=iht(n.y||0,zT(a),n.textBaseline),s=aht[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nie(n)){var u="",c=n.fontStyle,f=tie(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||Fre,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),KI(l,t.transform),jI(l,n,t,e),e.animation&&vE(t,l,e),ka("text",t.id+"",l,void 0,r)}}function VG(t,e){if(t instanceof wn)return lle(t,e);if(t instanceof Ya)return Dbt(t,e);if(t instanceof k1)return kbt(t,e)}function Rbt(t,e,n){var r=t.style;if(oht(r)){var a=sht(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=E1(r.shadowColor),p=h.opacity,v=h.color,g=d/2/l,y=d/2/u,m=g+" "+y;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=ka("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ka("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:m,"flood-color":v,"flood-opacity":p})]),i[a]=o}e.filter=FT(o)}}function ule(t,e,n,r){var a=t[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(vae(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(gae(a))i="radialGradient",o.cx=fn(a.x,.5),o.cy=fn(a.y,.5),o.r=fn(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=GO(s[u].offset)*100+"%",d=s[u].color,h=E1(d),p=h.color,v=h.opacity,g={offset:f};g["stop-color"]=p,v<1&&(g["stop-opacity"]=v),l.push(ka("stop",u+"",g))}var y=ka(i,"",o,l),m=WI(y),b=r.gradientCache,w=b[m];w||(w=r.zrId+"-g"+r.gradientIdx++,b[m]=w,o.id=w,r.defs[w]=ka(i,w,o,l)),e[n]=FT(w)}function cle(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(pae(a)){var d=a.imageWidth,h=a.imageHeight,p=void 0,v=a.image;if(Mt(v)?p=v:ole(v)?p=v.src:sle(v)&&(p=v.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";bi(d,g),bi(h,g)}else if(d==null||h==null){var y=function(E,k){if(E){var R=E.elm,L=d||k.width,A=h||k.height;E.tag==="pattern"&&(u?(A=1,L/=i.width):c&&(L=1,A/=i.height)),E.attrs.width=L,E.attrs.height=A,R&&(R.setAttribute("width",L),R.setAttribute("height",A))}},m=jB(p,null,t,function(E){l||y(x,E),y(f,E)});m&&m.width&&m.height&&(d=d||m.width,h=h||m.height)}f=ka("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=Kt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/i.width):c?(b=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var C=bae(a);C&&(o.patternTransform=C);var x=ka("pattern","",o,[f]),_=WI(x),T=r.patternCache,M=T[_];M||(M=r.zrId+"-p"+r.patternIdx++,T[_]=M,o.id=M,x=r.defs[M]=ka("pattern",M,o,[f])),e[n]=FT(M)}}function Lbt(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]=ka("clipPath",i,o,[lle(t,n)])}e["clip-path"]=FT(i)}function BG(t){return document.createTextNode(t)}function ah(t,e,n){t.insertBefore(e,n)}function IG(t,e){t.removeChild(e)}function $G(t,e){t.appendChild(e)}function fle(t){return t.parentNode}function dle(t){return t.nextSibling}function mk(t,e){t.textContent=e}var PG=58,Obt=120,Abt=ka("","");function NA(t){return t===void 0}function El(t){return t!==void 0}function Nbt(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 Wy(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function U1(t){var e,n=t.children,r=t.tag;if(El(r)){var a=t.elm=ale(r);if(YI(Abt,t),at(n))for(e=0;e<n.length;++e){var i=n[e];i!=null&&$G(a,U1(i))}else El(t.text)&&!Wt(t.text)&&$G(a,BG(t.text))}else t.elm=BG(t.text);return t.elm}function hle(t,e,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&ah(t,U1(i),e)}}function rC(t,e,n,r){for(;n<=r;++n){var a=e[n];if(a!=null)if(El(a.tag)){var i=fle(a.elm);IG(i,a.elm)}else IG(t,a.elm)}}function YI(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)!==Obt?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(vbt,n,o):n.charCodeAt(3)===PG?r.setAttributeNS(gbt,n,o):n.charCodeAt(5)===PG?r.setAttributeNS(rle,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function Vbt(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,p;r<=i&&a<=l;)o==null?o=e[++r]:s==null?s=e[--i]:u==null?u=n[++a]:c==null?c=n[--l]:Wy(o,u)?(gv(o,u),o=e[++r],u=n[++a]):Wy(s,c)?(gv(s,c),s=e[--i],c=n[--l]):Wy(o,c)?(gv(o,c),ah(t,o.elm,dle(s.elm)),o=e[++r],c=n[--l]):Wy(s,u)?(gv(s,u),ah(t,s.elm,o.elm),s=e[--i],u=n[++a]):(NA(f)&&(f=Nbt(e,r,i)),d=f[u.key],NA(d)?ah(t,U1(u),o.elm):(h=e[d],h.tag!==u.tag?ah(t,U1(u),o.elm):(gv(h,u),e[d]=void 0,ah(t,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(p=n[l+1]==null?null:n[l+1].elm,hle(t,p,n,a,l)):rC(t,e,r,i))}function gv(t,e){var n=e.elm=t.elm,r=t.children,a=e.children;t!==e&&(YI(t,e),NA(e.text)?El(r)&&El(a)?r!==a&&Vbt(n,r,a):El(a)?(El(t.text)&&mk(n,""),hle(n,null,a,0,a.length-1)):El(r)?rC(n,r,0,r.length-1):El(t.text)&&mk(n,""):t.text!==e.text&&(El(r)&&rC(n,r,0,r.length-1),mk(n,e.text)))}function Bbt(t,e){if(Wy(t,e))gv(t,e);else{var n=t.elm,r=fle(n);U1(e),r!==null&&(ah(r,e.elm,dle(n)),rC(r,[t],0,0))}return e}var Ibt=0,$bt=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=FG(),this.configLayer=FG(),this.storage=n,this._opts=r=Qe({},r),this.root=e,this._id="zr"+Ibt++,this._oldVNode=kG(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=ale("svg");YI(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",Bbt(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return VG(e,AA(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=AA(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=Pbt(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=ka("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=ut(Tn(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(ka("defs","defs",{},u)),e.animation){var c=bbt(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=ka("style","stl",{},[],c);o.push(f)}}return kG(r,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},WI(this.renderToVNode({animation:fn(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:fn(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,p=l&&l.length||0,v=void 0;for(v=Math.max(h-1,p-1);v>=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=i[o-1];for(var y=v+1;y<h;y++){var m={};Lbt(d[y],m,n);var b=ka("g","clip-g-"+u++,m,[]);(s?s.children:r).push(b),i[o++]=b,s=b}l=d;var w=VG(f,n);w&&(s?s.children:r).push(w)}}},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=kv(a,0,r),n=kv(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(BB(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=uht(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function FG(t){return function(){}}function Pbt(t,e,n,r){var a;if(n&&n!=="none")if(a=ka("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),yae(n))ule({fill:n},a.attrs,"fill",r);else if(BB(n))cle({style:{fill:n},dirty:Qr,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",r);else{var i=E1(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const Fbt=$bt;function zbt(t){t.registerPainter("svg",Fbt)}function zG(t,e,n){var r=Js.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 Ubt=function(t){Ve(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||N2,typeof n=="string"?o=zG(n,r,a):Wt(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(LB(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=zG("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 dn(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var b=new dn(0,0,0,0);b.copy(m),o.push(b)}else{for(var w=!1,C=1/0,x=0,_=0;_<o.length;++_){var T=o[_];if(T.intersect(m)){var M=new dn(0,0,0,0);M.copy(T),M.union(m),o[_]=M,w=!0;break}else if(l){u.copy(m),u.union(T);var E=m.width*m.height,k=T.width*T.height,R=u.width*u.height,L=R-E-k;L<C&&(C=L,x=_)}}if(l&&(o[x].union(m),w=!0),!w){var b=new dn(0,0,0,0);b.copy(m),o.push(b)}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),p=d.__isRendered&&(d.__dirty&So||!h)?d.getPrevPaintRect():null;p&&c(p);var v=h&&(d.__dirty&So||!d.__isRendered)?d.getPaintRect():null;v&&c(v)}}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 p=d.getPrevPaintRect();p&&c(p)}}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 p(v,g,y,m){if(o.clearRect(v,g,y,m),r&&r!=="transparent"){var b=void 0;if(Rb(r)){var w=r.global||r.__width===y&&r.__height===m;b=w&&r.__canvasGradient||xA(o,r,{x:0,y:0,width:y,height:m}),r.__canvasGradient=b,r.__width=y,r.__height=m}else Wre(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,b=CA(o,r,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=b||r,o.fillRect(v,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,v,g,y,m),o.restore())}!a||u?p(0,0,s,l):a.length&&Z(a,function(v){p(v.x*f,v.y*f,v.width*f,v.height*f)})},e}(hs);const bk=Ubt;var UG=1e5,Bd=314159,Kw=.01,Gbt=.001;function Hbt(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Wbt(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 jbt=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=Qe({},r||{}),this.dpr=r.devicePixelRatio||N2,this._singleCanvas=i,this.root=e;var o=e.style;o&&(LB(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 bk(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Bd]=h,h.zlevel=Bd,s.push(Bd),this._domRoot=e}else{this._width=kv(e,0,r),this._height=kv(e,1,r);var u=this._domRoot=Wbt(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(UG)),i||(i=r.ctx,i.save()),_h(i,s,a,o===n-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(UG)},t.prototype.paintOne=function(e,n){EI(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;PO(function(){l._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Bd).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(v){var g=i[v],y=g.ctx,m=o&&g.createRepaintRects(e,n,h._width,h._height),b=r?g.__startIndex:g.__drawIndex,w=!r&&g.incremental&&Date.now,C=w&&Date.now(),x=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(b===g.__startIndex){var _=e[b];(!_.incremental||!_.notClear||r)&&g.clear(!1,x,m)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=g.__startIndex);var T,M=function(L){var A={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=b;T<g.__endIndex;T++){var V=e[T];if(V.__inHover&&(f=!0),a._doPaintEl(V,g,o,L,A,T===g.__endIndex-1),w){var G=Date.now()-C;if(G>15)break}}A.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var E=h.dpr,k=0;k<m.length;++k){var R=m[k];y.save(),y.beginPath(),y.rect(R.x*E,R.y*E,R.width*E,R.height*E),y.clip(),M(R),y.restore()}else y.save(),M(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)d(p);return Vn.wxa&&Z(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.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))&&(_h(s,e,i,o),e.setPrevPaintRect(l))}else _h(s,e,i,o)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Bd);var r=this._layers[e];return r||(r=new bk("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?un(r,this._layerConfig[e],!0):this._layerConfig[e-Kw]&&un(r,this._layerConfig[e-Kw],!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]&&Hbt(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+Gbt,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Kw:0),this._needsManuallyCompositing),c.__builtin__||NT("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&So&&!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,Z(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?un(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+Kw){var o=this._layers[i];un(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(vn(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=kv(i,0,a),n=kv(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(Bd).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[Bd].dom;var n=new bk("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];_h(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 Kbt=jbt;function Ybt(t){t.registerPainter("canvas",Kbt)}var qbt=function(t){Ve(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 iu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new Xt,a=oa("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=oa(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}(wr);const Xbt=qbt;function Ng(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=Og(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(Og(t,e,n[o]));return i.join(" ")}}function ple(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!at(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 Zbt=function(t){Ve(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=oa(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Qbt,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(){Gu(this.childAt(0))},e.prototype.downplay=function(){Hu(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):zn(d,h,s,r),rl(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,Mr(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,p,v,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,v=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||n.hasItemOption){var m=i&&i.itemModel?i.itemModel:n.getItemModel(r),b=m.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),p=b.get("disabled"),v=Aa(m),g=b.getShallow("scale"),y=m.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=mp(n.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var x=n.getItemVisual(r,"style"),_=x.fill;if(s instanceof Ya){var T=s.style;s.useStyle(Qe({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(Qe({},x)):s.useStyle(x),s.style.decal=null,s.setColor(_,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=n.getItemVisual(r,"liftZ"),E=this._z2;M!=null?E==null&&(this._z2=s.z2,s.z2+=M):E!=null&&(s.z2=E,this._z2=null);var k=o&&o.useNameLabel;si(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:R,inheritColor:_,defaultOpacity:x.opacity});function R(V){return k?n.getName(V):Ng(n,V)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var A=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*A,L.scaleY=this._sizeY*A,this.setSymbolScale(1),Xr(this,d,h,p)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=rn(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Df(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Df(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return g0(n.getItemVisual(r,"symbolSize"))},e}(Xt);function Qbt(t,e){this.parent.drift(t,e)}const jb=Zbt;function Sk(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 GG(t){return t!=null&&!Wt(t)&&(t={isIgnore:t}),t||{}}function HG(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:Aa(e),cursorStyle:e.get("cursor")}}var Jbt=function(){function t(e){this.group=new Xt,this._SymbolCtor=e||jb}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=GG(n);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=HG(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(Sk(e,d,f,n)){var h=new o(e,f,l,u);h.setPosition(d),e.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),p=c(f);if(!Sk(e,p,f,n)){r.remove(h);return}var v=e.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)r.remove(h),h=new o(e,f,l,u),h.setPosition(p);else{h.updateData(e,f,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):zn(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=HG(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=GG(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(Sk(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){Hf(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 Kb=Jbt;function vle(t,e,n){var r=t.getBaseAxis(),a=t.getOtherAxis(r),i=eSt(a,n),o=r.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ut(t.dimensions,function(p){return e.mapDimension(p)}),d=!1,h=e.getCalculationInfo("stackResultDimension");return ju(e,f[0])&&(d=!0,f[0]=h),ju(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 eSt(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:Bn(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function gle(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 tSt(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 nSt(t,e,n,r,a,i,o,s){for(var l=tSt(t,e),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=vle(a,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],C=!0,x=void 0,_=void 0;switch(w.cmd){case"=":x=w.idx*2,_=w.idx1*2;var T=y[x],M=y[x+1],E=m[_],k=m[_+1];(isNaN(T)||isNaN(M))&&(T=E,M=k),u.push(T,M),c.push(E,k),f.push(n[x],n[x+1]),d.push(r[_],r[_+1]),v.push(e.getRawIndex(w.idx1));break;case"+":var R=w.idx,L=g.dataDimsForPoint,A=a.dataToPoint([e.get(L[0],R),e.get(L[1],R)]);_=R*2,u.push(A[0],A[1]),c.push(m[_],m[_+1]);var V=gle(g,a,e,R);f.push(V[0],V[1]),d.push(r[_],r[_+1]),v.push(e.getRawIndex(R));break;case"-":C=!1}C&&(h.push(w),p.push(p.length))}p.sort(function(ue,le){return v[ue]-v[le]});for(var G=u.length,I=Bl(G),$=Bl(G),N=Bl(G),P=Bl(G),Y=[],b=0;b<p.length;b++){var J=p[b],re=b*2,oe=J*2;I[re]=u[oe],I[re+1]=u[oe+1],$[re]=c[oe],$[re+1]=c[oe+1],N[re]=f[oe],N[re+1]=f[oe+1],P[re]=d[oe],P[re+1]=d[oe+1],Y[b]=h[J]}return{current:I,next:$,stackedOnCurrent:N,stackedOnNext:P,status:Y}}var Ec=Math.min,Mc=Math.max;function Ph(t,e){return isNaN(t)||isNaN(e)}function VA(t,e,n,r,a,i,o,s,l){for(var u,c,f,d,h,p,v=n,g=0;g<r;g++){var y=e[v*2],m=e[v*2+1];if(v>=a||v<0)break;if(Ph(y,m)){if(l){v+=i;continue}break}if(v===n)t[i>0?"moveTo":"lineTo"](y,m),f=y,d=m;else{var b=y-u,w=m-c;if(b*b+w*w<.5){v+=i;continue}if(o>0){for(var C=v+i,x=e[C*2],_=e[C*2+1];x===y&&_===m&&g<r;)g++,C+=i,v+=i,x=e[C*2],_=e[C*2+1],y=e[v*2],m=e[v*2+1],b=y-u,w=m-c;var T=g+1;if(l)for(;Ph(x,_)&&T<r;)T++,C+=i,x=e[C*2],_=e[C*2+1];var M=.5,E=0,k=0,R=void 0,L=void 0;if(T>=r||Ph(x,_))h=y,p=m;else{E=x-u,k=_-c;var A=y-u,V=x-y,G=m-c,I=_-m,$=void 0,N=void 0;if(s==="x"){$=Math.abs(A),N=Math.abs(V);var P=E>0?1:-1;h=y-P*$*o,p=m,R=y+P*N*o,L=m}else if(s==="y"){$=Math.abs(G),N=Math.abs(I);var Y=k>0?1:-1;h=y,p=m-Y*$*o,R=y,L=m+Y*N*o}else $=Math.sqrt(A*A+G*G),N=Math.sqrt(V*V+I*I),M=N/(N+$),h=y-E*o*(1-M),p=m-k*o*(1-M),R=y+E*o*M,L=m+k*o*M,R=Ec(R,Mc(x,y)),L=Ec(L,Mc(_,m)),R=Mc(R,Ec(x,y)),L=Mc(L,Ec(_,m)),E=R-y,k=L-m,h=y-E*$/N,p=m-k*$/N,h=Ec(h,Mc(u,y)),p=Ec(p,Mc(c,m)),h=Mc(h,Ec(u,y)),p=Mc(p,Ec(c,m)),E=y-h,k=m-p,R=y+E*N/$,L=m+k*N/$}t.bezierCurveTo(f,d,h,p,y,m),f=R,d=L}else t.lineTo(y,m)}u=y,c=m,v+=i}return g}var yle=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),rSt=function(t){Ve(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 yle},e.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Ph(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ph(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=VA(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=Jl.CMD,s,l,u=r==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,p=void 0,v=void 0,g=void 0,y=void 0,m=void 0,b=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],p=i[f++],b=u?(n-s)/(h-s):(n-l)/(p-l),b<=1&&b>=0){var w=u?(p-l)*b+l:(h-s)*b+s;return u?[n,w]:[w,n]}s=h,l=p;break;case o.C:h=i[f++],p=i[f++],v=i[f++],g=i[f++],y=i[f++],m=i[f++];var C=u?L2(s,h,v,y,n,c):L2(l,p,g,m,n,c);if(C>0)for(var x=0;x<C;x++){var _=c[x];if(_<=1&&_>=0){var w=u?Ca(l,p,g,m,_):Ca(s,h,v,y,_);return u?[n,w]:[w,n]}}s=y,l=m;break}}},e}(wn),aSt=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(yle),mle=function(t){Ve(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 aSt},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&&Ph(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ph(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=VA(n,a,o,s,s,1,r.smooth,l,r.connectNulls);VA(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},e}(wn);function ble(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 An({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var v=zt(a)?function(g){a(g,f)}:null;Mr(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,v)}return f}function Sle(t,e,n){var r=t.getArea(),a=Yr(r.r0,1),i=Yr(r.r,1),o=new Wi({shape:{cx:Yr(t.cx,1),cy:Yr(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,Mr(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function gE(t,e,n,r,a){if(t){if(t.type==="polar")return Sle(t,e,n);if(t.type==="cartesian2d")return ble(t,e,n,r,a)}else return null;return null}function bp(t,e){return t.type===e}function WG(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function jG(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 KG(t,e){var n=jG(t),r=n[0],a=n[1],i=jG(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 YG(t){return Bn(t)?t:t?.5:0}function iSt(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),a=Bl(r*2),i=0;i<r;i++){var o=gle(n,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Dc(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 oSt(t,e){var n=[],r=t.length,a,i;function o(c,f,d){var h=c.coord,p=(d-h)/(f.coord-h),v=VB(p,[c.color,f.color]);return{coord:d,color:v}}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 sSt(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=ut(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=oSt(u,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,y=g-v;if(y<.001)return"transparent";Z(d,function(b){b.offset=(b.coord-v)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var m=new a0(0,0,0,0,d,!0);return m[a]=v,m[a+"2"]=g,m}}}function lSt(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&uSt(i,e))){var o=e.mapDimension(i.dim),s={};return Z(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function uSt(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(jb.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function cSt(t,e){return isNaN(t)||isNaN(e)}function fSt(t){for(var e=t.length/2;e>0&&cSt(t[e*2-2],t[e*2-1]);e--);return e-1}function qG(t,e){return[t[e*2],t[e*2+1]]}function dSt(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 wle(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Hi.length;e++)if(t.get([Hi[e],"endLabel","show"]))return!0;return!1}function wk(t,e,n,r){if(bp(e,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=wle(r)?function(h,p){t._endLabelOnDuring(h,p,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=ble(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 Sle(e,n,r)}function hSt(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 pSt=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new Xt,r=new Kb;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},e.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,y=this._lineGroup,m=!r.ssr&&n.isAnimationEnabled(),b=!c.isEmpty(),w=c.get("origin"),C=vle(o,l,w),x=b&&iSt(o,l,C),_=n.get("showSymbol"),T=n.get("connectNulls"),M=_&&!d&&lSt(n,l,o),E=this._data;E&&E.eachItemGraphicEl(function(le,fe){le.__temp&&(s.remove(le),E.setItemGraphicEl(fe,null))}),_||p.remove(),s.add(y);var k=d?!1:n.get("step"),R;o&&o.getArea&&n.get("clip",!0)&&(R=o.getArea(),R.width!=null?(R.x-=.1,R.y-=.1,R.width+=.2,R.height+=.2):R.r0&&(R.r0-=.5,R.r+=.5)),this._clipShapeForSymbol=R;var L=sSt(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&h.type===o.type&&k===this._step))_&&p.updateData(l,{isIgnore:M,clipShape:R,disableAnimation:!0,getSymbolPoint:function(le){return[f[le*2],f[le*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,R),k&&(f=Dc(f,o,k,T),x&&(x=Dc(x,o,k,T))),v=this._newPolyline(f),b?g=this._newPolygon(f,x):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,tp(L)),y.setClipPath(wk(this,o,!0,n));else{b&&!g?g=this._newPolygon(f,x):g&&!b&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,tp(L));var A=y.getClipPath();if(A){var V=wk(this,o,!1,n);Mr(A,{shape:V.shape},n)}else y.setClipPath(wk(this,o,!0,n));_&&p.updateData(l,{isIgnore:M,clipShape:R,disableAnimation:!0,getSymbolPoint:function(le){return[f[le*2],f[le*2+1]]}}),(!WG(this._stackedOnPoints,x)||!WG(this._points,f))&&(m?this._doUpdateAnimation(l,x,o,a,k,w,T):(k&&(f=Dc(f,o,k,T),x&&(x=Dc(x,o,k,T))),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:x})))}var G=n.getModel("emphasis"),I=G.get("focus"),$=G.get("blurScope"),N=G.get("disabled");if(v.useStyle(Ht(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),oi(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var P=v.getState("emphasis").style;P.lineWidth=+v.style.lineWidth+1}rn(v).seriesIndex=n.seriesIndex,Xr(v,I,$,N);var Y=YG(n.get("smooth")),J=n.get("smoothMonotone");if(v.setShape({smooth:Y,smoothMonotone:J,connectNulls:T}),g){var re=l.getCalculationInfo("stackedOnSeries"),oe=0;g.useStyle(Ht(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),re&&(oe=YG(re.get("smooth"))),g.setShape({smooth:Y,stackedOnSmooth:oe,smoothMonotone:J,connectNulls:T}),oi(g,n,"areaStyle"),rn(g).seriesIndex=n.seriesIndex,Xr(g,I,$,N)}var ue=function(le){i._changePolyState(le)};l.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=ue)}),this._polyline.onHoverStateChange=ue,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=k,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,v),g&&this.packEventData(n,g))},e.prototype.packEventData=function(n,r){rn(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=Qh(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 jb(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else cr.prototype.highlight.call(this,n,r,a,i)},e.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=Qh(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 cr.prototype.downplay.call(this,n,r,a,i)},e.prototype._changePolyState=function(n){var r=this._polygon;I2(this._polyline,n),r&&I2(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new rSt({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 mle({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");zt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=zt(f)?f(null):f;n.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],y=void 0,m=void 0,b=void 0;if(a)if(o){var w=a,C=r.pointToCoord(g);i?(y=w.startAngle,m=w.endAngle,b=-C[1]/180*Math.PI):(y=w.r0,m=w.r,b=C[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,b=h.x):(y=x.y+x.height,m=x.y,b=h.y)}var _=m===y?0:(b-y)/(m-y);l&&(_=1-_);var T=zt(f)?f(p):c*_+d,M=v.getSymbolPath(),E=M.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(wle(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 On({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=fSt(l);c>=0&&(si(s,Aa(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?ple(o,h):Ng(o,f)},enableTextSetter:!0},hSt(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,b=r.shape,w=m?y?b.x:b.y+b.height:y?b.x+b.width:b.y,C=(y?v:0)*(m?-1:1),x=(y?0:-v)*(m?-1:1),_=y?"x":"y",T=dSt(f,w,_),M=T.range,E=M[1]-M[0],k=void 0;if(E>=1){if(E>1&&!h){var R=qG(f,M[0]);u.attr({x:R[0]+C,y:R[1]+x}),o&&(k=d.getRawValue(M[0]))}else{var R=c.getPointOn(w,_);R&&u.attr({x:R[0]+C,y:R[1]+x});var L=d.getRawValue(M[0]),A=d.getRawValue(M[1]);o&&(k=Pae(a,p,L,A,T.t))}i.lastFrameIndex=M[0]}else{var V=n===1||i.lastFrameIndex>0?M[0]:0,R=qG(f,V);o&&(k=d.getRawValue(V)),u.attr({x:R[0]+C,y:R[1]+x})}if(o){var G=l0(u);typeof G.setLabelText=="function"&&G.setLabelText(k)}}},e.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=nSt(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=Dc(d.current,a,o,l),p=Dc(d.stackedOnCurrent,a,o,l),v=Dc(d.next,a,o,l),g=Dc(d.stackedOnNext,a,o,l)),KG(h,v)>3e3||c&&KG(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:v}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),zn(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),zn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],b=d.status,w=0;w<b.length;w++){var C=b[w].cmd;if(C==="="){var x=n.getItemGraphicEl(b[w].idx1);x&&m.push({el:x,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var _=u.shape.__points,T=0;T<m.length;T++){var M=m[T].el,E=m[T].ptIdx*2;M.x=_[E],M.y=_[E+1],M.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}(cr);const vSt=pSt;function Yb(t,e){return{seriesType:t,plan:p0(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=e||i.large;if(a){var s=ut(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");ju(r,s[0])&&(s[0]=u),ju(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,p){for(var v=h.end-h.start,g=o&&Bl(v*l),y=[],m=[],b=h.start,w=0;b<h.end;b++){var C=void 0;if(l===1){var x=c.get(f,b);C=a.dataToPoint(x,null,m)}else y[0]=c.get(f,b),y[1]=c.get(d,b),C=a.dataToPoint(y,null,m);o?(g[w++]=C[0],g[w++]=C[1]):p.setItemLayout(b,C.slice())}o&&p.setLayout("points",g)}}}}}}var gSt={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]}},ySt=function(t){return Math.round(t.length/2)};function _le(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 p=void 0;Mt(i)?p=gSt[i]:zt(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,ySt))}}}}}function mSt(t){t.registerChartView(vSt),t.registerSeriesModel(Xbt),t.registerLayout(Yb("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,_le("line"))}var xle=function(t){Ve(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 iu(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)Z(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var p=d.getTicksCoords(),v=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,b=1,w=0;w<p.length;w++){var C=p[w].coord,x=w===p.length-1?p[w-1].tickValue+b:p[w].tickValue;if(x===v){m=C;break}else if(x<v)y=C;else if(y!=null&&x>v){m=(C+y)/2;break}w===1&&(b=x-p[0].tickValue)}m==null&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[h]=d.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(wr);wr.registerClass(xle);const aC=xle;var bSt=function(t){Ve(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 iu(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=Wf(aC.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}(aC);const SSt=bSt;var wSt=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}(),_St=function(t){Ve(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new wSt},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,p=d?f-c<h:c-f<h;p||(c=f-(d?h:-h));var v=Math.cos(c),g=Math.sin(c),y=Math.cos(f),m=Math.sin(f);p?(n.moveTo(v*o+a,g*o+i),n.arc(v*u+a,g*u+i,l,-Math.PI+c,c,!d)):n.moveTo(v*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}(wn);const iC=_St;function xSt(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return V2(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,p=(d+h)/2,v=u.startAngle,g=u.endAngle,y=(v+g)/2,m=n?Math.abs(d-h)/2:0,b=Math.cos,w=Math.sin,C=c+d*b(v),x=f+d*w(v),_="left",T="top";switch(s){case"startArc":C=c+(h-l)*b(y),x=f+(h-l)*w(y),_="center",T="top";break;case"insideStartArc":C=c+(h+l)*b(y),x=f+(h+l)*w(y),_="center",T="bottom";break;case"startAngle":C=c+p*b(v)+Yw(v,l+m,!1),x=f+p*w(v)+qw(v,l+m,!1),_="right",T="middle";break;case"insideStartAngle":C=c+p*b(v)+Yw(v,-l+m,!1),x=f+p*w(v)+qw(v,-l+m,!1),_="left",T="middle";break;case"middle":C=c+p*b(y),x=f+p*w(y),_="center",T="middle";break;case"endArc":C=c+(d+l)*b(y),x=f+(d+l)*w(y),_="center",T="bottom";break;case"insideEndArc":C=c+(d-l)*b(y),x=f+(d-l)*w(y),_="center",T="top";break;case"endAngle":C=c+p*b(g)+Yw(g,l+m,!0),x=f+p*w(g)+qw(g,l+m,!0),_="left",T="middle";break;case"insideEndAngle":C=c+p*b(g)+Yw(g,-l+m,!0),x=f+p*w(g)+qw(g,-l+m,!0),_="right",T="middle";break;default:return V2(r,a,i)}return r=r||{},r.x=C,r.y=x,r.align=_,r.verticalAlign=T,r}}function CSt(t,e,n,r){if(Bn(r)){t.setTextConfig({rotation:r});return}else if(at(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 Yw(t,e,n){return e*Math.sin(t)*(n?-1:1)}function qw(t,e,n){return e*Math.cos(t)*(n?1:-1)}function xh(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;at(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ut(r,function(i){return tl(i,a)})}}var _k=Math.max,xk=Math.min;function TSt(t,e){var n=t.getArea&&t.getArea();if(bp(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 ESt=function(t){Ve(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){Hf(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=MSt(n,u);h&&this._enableRealtimeSort(h,s,a);var p=n.get("clip",!0)||h,v=TSt(u,s);o.removeClipPath();var g=n.get("roundCap",!0),y=n.get("showBackground",!0),m=n.getModel("backgroundStyle"),b=m.get("borderRadius")||0,w=[],C=this._backgroundEls,x=i&&i.isInitSort,_=i&&i.type==="changeAxisOrder";function T(k){var R=Xw[u.type](s,k),L=NSt(u,f,R);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",b):L.setShape("cornerRadius",b),w[k]=L,L}s.diff(l).add(function(k){var R=s.getItemModel(k),L=Xw[u.type](s,k,R);if(y&&T(k),!(!s.hasValue(k)||!eH[u.type](L))){var A=!1;p&&(A=XG[u.type](v,L));var V=ZG[u.type](n,s,k,L,f,d,c.model,!1,g);h&&(V.forceLabelAnimation=!0),tH(V,s,k,R,L,n,f,u.type==="polar"),x?V.attr({shape:L}):h?QG(h,d,V,L,k,f,!1,!1):Mr(V,{shape:L},n,k),s.setItemGraphicEl(k,V),o.add(V),V.ignore=A}}).update(function(k,R){var L=s.getItemModel(k),A=Xw[u.type](s,k,L);if(y){var V=void 0;C.length===0?V=T(R):(V=C[R],V.useStyle(m.getItemStyle()),u.type==="cartesian2d"?V.setShape("r",b):V.setShape("cornerRadius",b),w[k]=V);var G=Xw[u.type](s,k),I=Tle(f,G,u);zn(V,{shape:I},d,k)}var $=l.getItemGraphicEl(R);if(!s.hasValue(k)||!eH[u.type](A)){o.remove($);return}var N=!1;if(p&&(N=XG[u.type](v,A),N&&o.remove($)),$?rl($):$=ZG[u.type](n,s,k,A,f,d,c.model,!!$,g),h&&($.forceLabelAnimation=!0),_){var P=$.getTextContent();if(P){var Y=l0(P);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else tH($,s,k,L,A,n,f,u.type==="polar");x?$.attr({shape:A}):h?QG(h,d,$,A,k,f,!0,_):zn($,{shape:A},n,k,null),s.setItemGraphicEl(k,$),$.ignore=N,o.add($)}).remove(function(k){var R=l.getItemGraphicEl(k);R&&O1(R,n,k)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Xt);M.removeAll();for(var E=0;E<w.length;++E)M.add(w[E]);o.add(M),this._backgroundEls=w,this._data=s},e.prototype._renderLarge=function(n,r,a){this._clear(),rH(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),rH(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&gE(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:ut(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){O1(i,n,rn(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}(cr),XG={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=_k(e.x,t.x),s=xk(e.x+e.width,a),l=_k(e.y,t.y),u=xk(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=xk(e.r,t.r),i=_k(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}},ZG={cartesian2d:function(t,e,n,r,a,i,o,s,l){var u=new An({shape:Qe({},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?iC:Wi,c=new u({shape:r,z2:1});c.name="item";var f=Cle(a);if(c.calculateTextPosition=xSt(f,{isRoundCap:u===iC}),i){var d=c.shape,h=a?"r":"endAngle",p={};d[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?zn:Mr)(c,{shape:p},i)}return c}};function MSt(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 QG(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?zn:Mr)(n,{shape:l},e,a,null);var c=e?t.baseAxis.model:null;(o?zn:Mr)(n,{shape:u},c,a)}function JG(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var DSt=["x","y","width","height"],kSt=["cx","cy","r","startAngle","endAngle"],eH={cartesian2d:function(t){return!JG(t,DSt)},polar:function(t){return!JG(t,kSt)}},Xw={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?LSt(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 RSt(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Cle(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 tH(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=xh(r.getModel("itemStyle"),c,!0);Qe(c,f),t.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=Aa(r);si(t,p,{labelFetcher:i,labelDataIndex:n,defaultText:Ng(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var g=r.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,CSt(t,g==="outside"?h:g,Cle(o),r.get(["label","rotate"]))}$ie(v,p,i.getRawValue(n),function(m){return ple(e,m)});var y=r.getModel(["emphasis"]);Xr(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),oi(t,r),RSt(a)&&(t.style.fill="none",t.style.stroke="none",Z(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function LSt(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 OSt=function(){function t(){}return t}(),nH=function(t){Ve(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new OSt},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}(wn);function rH(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 nH({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 nH({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")),rn(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",aH),f.on("mousemove",aH)),n&&n.push(f)}var aH=uE(function(t){var e=this,n=ASt(e,t.offsetX,t.offsetY);rn(e).dataIndex=n>=0?n:null},30,!1);function ASt(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 Tle(t,e,n){if(bp(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 NSt(t,e,n){var r=t.type==="polar"?Wi:An;return new r({shape:Tle(e,n,t),silent:!0,z2:0})}const VSt=ESt;function BSt(t){t.registerChartView(VSt),t.registerSeriesModel(SSt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,nn(kse,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Rse("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,_le("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 Zw=Math.PI*2,iH=Math.PI/180;function Ele(t,e){return ga(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Mle(t,e){var n=Ele(t,e),r=t.get("center"),a=t.get("radius");at(a)||(a=[0,a]);var i=wt(n.width,e.getWidth()),o=wt(n.height,e.getHeight()),s=Math.min(i,o),l=wt(a[0],s/2),u=wt(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 at(r)||(r=[r,r]),c=wt(r[0],i)+n.x,f=wt(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function ISt(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Ele(r,n),s=Mle(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*iH,h=r.get("minAngle")*iH,p=0;a.each(i,function(E){!isNaN(E)&&p++});var v=a.getSum(i),g=Math.PI/(v||p)*2,y=r.get("clockwise"),m=r.get("roseType"),b=r.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var C=Zw,x=0,_=d,T=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(E,k){var R;if(isNaN(E)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?R=v===0&&b?g:E*g:R=Zw/p,R<h?(R=h,C-=h):x+=E;var L=_+T*R;a.setItemLayout(k,{angle:R,startAngle:_,endAngle:L,clockwise:y,cx:l,cy:u,r0:f,r:m?tr(E,w,[f,c]):c}),_=L}),C<Zw&&p)if(C<=.001){var M=Zw/p;a.each(i,function(E,k){if(!isNaN(E)){var R=a.getItemLayout(k);R.angle=M,R.startAngle=d+T*k*M,R.endAngle=d+T*(k+1)*M}})}else g=C/x,_=d,a.each(i,function(E,k){if(!isNaN(E)){var R=a.getItemLayout(k),L=R.angle===h?h:E*g;R.startAngle=_,R.endAngle=_+T*L,_+=T*L}})})}function qb(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 $St=Math.PI/180;function oH(t,e,n,r,a,i,o,s,l,u){if(t.length<2)return;function c(v){for(var g=v.rB,y=g*g,m=0;m<v.list.length;m++){var b=v.list[m],w=Math.abs(b.label.y-n),C=r+b.len,x=C*C,_=Math.sqrt((1-Math.abs(w*w/y))*x),T=e+(_+b.len2)*a,M=T-b.label.x,E=b.targetTextWidth-M*a;Dle(b,E,!0),b.label.x=T}}function f(v){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<v.length;m++)if(v[m].labelAlignTo==="none"){var b=v[m],w=b.label.y>n?y:g,C=Math.abs(b.label.y-n);if(C>=w.maxY){var x=b.label.x-e-b.len2*a,_=r+b.len,T=Math.abs(x)<_?Math.sqrt(C*C/(1-x*x/_/_)):_;w.rB=T,w.maxY=C}w.list.push(b)}c(g),c(y)}for(var d=t.length,h=0;h<d;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}Qse(t,l,l+o)&&f(t)}function PSt(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;Ck(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 p=t[d];if(!Ck(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,v=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<e?g=v[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<e?g=c-o-p.bleedMargin:g=o+a-f-p.bleedMargin:h.x<e?g=h.x-o-p.bleedMargin:g=o+a-h.x-p.bleedMargin,p.targetTextWidth=g,Dle(p,g)}}oH(u,e,n,r,1,a,i,o,s,f),oH(l,e,n,r,-1,a,i,o,s,c);for(var d=0;d<t.length;d++){var p=t[d];if(!Ck(p)&&p.linePoints){var h=p.label,v=p.linePoints,y=p.labelAlignTo==="edge",m=h.style.padding,b=m?m[1]+m[3]:0,w=h.style.backgroundColor?0:b,C=p.rect.width+w,x=v[1][0]-v[2][0];y?h.x<e?v[2][0]=o+p.edgeDistance+C+p.labelDistance:v[2][0]=o+a-p.edgeDistance-C-p.labelDistance:(h.x<e?v[2][0]=h.x+p.labelDistance:v[2][0]=h.x-p.labelDistance,v[1][0]=v[2][0]+x),v[1][1]=v[2][1]=h.y}}}function Dle(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,p=e<c?h:n?h>t.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var v=r.getBoundingRect();i.width=v.width;var g=(r.style.margin||0)+2.1;i.height=v.height+g,i.y-=(i.height-f)/2}}}function Ck(t){return t.position==="center"}function FSt(t){var e=t.getData(),n=[],r,a,i=!1,o=(t.get("minShowLabelAngle")||0)*$St,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var _ in x.states)if(x.states[_].ignore===!1)return!0;return!1}e.each(function(x){var _=e.getItemGraphicEl(x),T=_.shape,M=_.getTextContent(),E=_.getTextGuideLine(),k=e.getItemModel(x),R=k.getModel("label"),L=R.get("position")||k.get(["emphasis","label","position"]),A=R.get("distanceToLabelLine"),V=R.get("alignTo"),G=wt(R.get("edgeDistance"),u),I=R.get("bleedMargin"),$=k.getModel("labelLine"),N=$.get("length");N=wt(N,u);var P=$.get("length2");if(P=wt(P,u),Math.abs(T.endAngle-T.startAngle)<o){Z(M.states,h),M.ignore=!0,E&&(Z(E.states,h),E.ignore=!0);return}if(p(M)){var Y=(T.startAngle+T.endAngle)/2,J=Math.cos(Y),re=Math.sin(Y),oe,ue,le,fe;r=T.cx,a=T.cy;var se=L==="inside"||L==="inner";if(L==="center")oe=T.cx,ue=T.cy,fe="center";else{var _e=(se?(T.r+T.r0)/2*J:T.r*J)+r,ve=(se?(T.r+T.r0)/2*re:T.r*re)+a;if(oe=_e+J*3,ue=ve+re*3,!se){var he=_e+J*(N+l-T.r),q=ve+re*(N+l-T.r),ce=he+(J<0?-1:1)*P,Se=q;V==="edge"?oe=J<0?c+G:c+u-G:oe=ce+(J<0?-A:A),ue=Se,le=[[_e,ve],[he,q],[ce,Se]]}fe=se?"center":V==="edge"?J>0?"right":"left":J>0?"left":"right"}var Ae=Math.PI,Te=0,Oe=R.get("rotate");if(Bn(Oe))Te=Oe*(Ae/180);else if(L==="center")Te=0;else if(Oe==="radial"||Oe===!0){var He=J<0?-Y+Ae:-Y;Te=He}else if(Oe==="tangential"&&L!=="outside"&&L!=="outer"){var $e=Math.atan2(J,re);$e<0&&($e=Ae*2+$e);var Ne=re>0;Ne&&($e=Ae+$e),Te=$e-Ae}if(i=!!Te,M.x=oe,M.y=ue,M.rotation=Te,M.setStyle({verticalAlign:"middle"}),se){M.setStyle({align:fe});var Re=M.states.select;Re&&(Re.x+=M.x,Re.y+=M.y)}else{var Le=M.getBoundingRect().clone();Le.applyTransform(M.getComputedTransform());var ie=(M.style.margin||0)+2.1;Le.y-=ie/2,Le.height+=ie,n.push({label:M,labelLine:E,position:L,len:N,len2:P,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new cn(J,re),linePoints:le,textAlign:fe,labelDistance:A,labelAlignTo:V,edgeDistance:G,bleedMargin:I,rect:Le,unconstrainedWidth:Le.width,labelStyleWidth:M.style.width})}_.setTextConfig({inside:se})}}),!i&&t.get("avoidLabelOverlap")&&PSt(n,r,a,l,u,d,c,f);for(var v=0;v<n.length;v++){var g=n[v],y=g.label,m=g.labelLine,b=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),b&&(Z(y.states,h),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(m){var C=g.linePoints;b||!C?(Z(m.states,h),m.ignore=!0):(qse(C,g.minTurnAngle),J1t(C,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:C}),y.__hostTarget.textGuideLineConfig={anchor:new cn(C[0][0],C[0][1])})}}}var zSt=function(t){Ve(e,t);function e(n,r,a){var i=t.call(this)||this;i.z2=2;var o=new On;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=Qe(xh(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?(Mr(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,Mr(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Mr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,zn(o,{shape:{endAngle:c.endAngle}},s,r))}else rl(o),zn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),oi(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(h)*p,g=Math.sin(h)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=Qe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},xh(u.getModel("itemStyle"),c)),Qe(o.ensureState("select"),{x:v,y:g,shape:xh(l.getModel(["select","itemStyle"]),c)}),Qe(o.ensureState("blur"),{shape:xh(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),b=o.getTextContent();m&&Qe(m.ensureState("select"),{x:v,y:g}),Qe(b.ensureState("select"),{x:v,y:g}),Xr(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;si(i,Aa(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 qi,this.setTextGuideLine(h)),GI(this,HI(o),{stroke:u,opacity:Ys(s.get(["lineStyle","opacity"]),c,1)})}},e}(Wi),USt=function(t){Ve(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 Wi({shape:Mle(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var p=new zSt(o,h,u);o.setItemGraphicEl(h,p),l.add(p)}).update(function(h,p){var v=s.getItemGraphicEl(p);v.updateData(o,h,u),v.off("click"),l.add(v),o.setItemGraphicEl(h,v)}).remove(function(h){var p=s.getItemGraphicEl(h);O1(p,n,h)}).execute(),FSt(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}(cr);const GSt=USt;function b0(t,e,n){e=at(e)&&{coordDimensions:e}||Qe({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=y0(r,e).dimensions,i=new gi(a,t);return i.initData(r,n),i}var HSt=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 Xb=HSt;var WSt=In(),jSt=function(t){Ve(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 Xb(Dt(this.getData,this),Dt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return b0(this,{coordDimensions:["value"],encodeDefaulter:nn(pI,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=WSt(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Rae(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){Zh(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}(wr);const KSt=jSt;function YSt(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!(Bn(o)&&!isNaN(o)&&o<0)})}}}function qSt(t){t.registerChartView(GSt),t.registerSeriesModel(KSt),Goe("pie",t.registerAction),t.registerLayout(nn(ISt,"pie")),t.registerProcessor(qb("pie")),t.registerProcessor(YSt("pie"))}var XSt=function(t){Ve(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 iu(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}(wr);const ZSt=XSt;var kle=4,QSt=function(){function t(){}return t}(),JSt=function(t){Ve(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 QSt},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]<kle,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++],p=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(p,u),f=Math.max(p,f)}n=this._rect=new dn(l-o/2,u-s/2,c-l+o,f-u+s)}return n},e}(wn),ewt=function(){function t(){this.group=new Xt}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 JSt({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=oa(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<kle;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=rn(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 twt=ewt;var nwt=function(t){Ve(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=Yb("").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 twt:new Kb,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}(cr);const rwt=nwt;var awt=function(t){Ve(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}(kn);const iwt=awt;var BA=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ca).models[0]},e.type="cartesian2dAxis",e}(kn);ea(BA,m0);var Rle={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)"]}}},owt=un({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Rle),qI=un({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}}},Rle),swt=un({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},qI),lwt=Ht({logBase:10},qI);const Lle={category:owt,value:qI,time:swt,log:lwt};var uwt={value:1,category:1,time:1,log:1};function Vg(t,e,n,r){Z(uwt,function(a,i){var o=un(un({},Lle[i],!0),r,!0),s=function(l){Ve(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=V1(this),h=d?c0(c):{},p=f.getTheme();un(c,p.get(i+"Axis")),un(c,this.getDefaultOption()),c.type=sH(c),d&&kf(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=DA.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",sH)}function sH(t){return t.type||(t.data?"category":"value")}var cwt=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 ut(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),nr(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 fwt=cwt;var IA=["x","y"];function lH(t){return t.type==="interval"||t.type==="time"}var dwt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=IA,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!lH(n)||!lH(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=vp([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new dn(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 Wa(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 Wa(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 dn(a,i,o,s)},e}(fwt),hwt=function(t){Ve(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}(ys);const pwt=hwt;function $A(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}i.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ma(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 uH(t){return t.get("coordinateSystem")==="cartesian2d"}function cH(t){var e={xAxisModel:null,yAxisModel:null};return Z(e,function(n,r){var a=r.replace(/Model$/,""),i=t.getReferringComponents(a,ca).models[0];e[r]=i}),e}var Tk=Math.log;function Ole(t,e,n){var r=Rf.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=Ise(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=Tk(t.base);u=[Tk(u[0])/d,Tk(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=r.getExtent.call(t);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=r.getInterval.call(t),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=fk(p),g=u[0]+p*o;else if(f)for(v=u[1]-p*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)p=fk(p),v=u[1]-p*o;else{var y=t.getTicks().length-1;y>o&&(p=fk(p));var m=p*o;g=Math.ceil(u[1]/p)*p,v=Yr(g-m),v<0&&u[0]>=0?(v=0,g=Yr(m)):g>0&&u[1]<=0&&(g=0,v=-Yr(m))}var b=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;r.setExtent.call(t,v+p*b,g+p*w),r.setInterval.call(t,p),(b||w)&&r.setNiceExtent.call(t,v+p,g-p)}var vwt=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IA,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=Tn(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;kA(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(np(v,p),kA(v)&&(s=h))}c.length&&(s||(s=c.pop(),np(s.scale,s.model)),Z(c,function(g){Ole(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};Z(r.x,function(o){fH(r,"y",o,i)}),Z(r.y,function(o){fH(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=ga(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(Z(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=v1t(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()),Z(this._coordsList,function(u){u.calcAffineTransform()});function l(){Z(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]),gwt(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]}Wt(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",ca).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",ca).models[0],i=e.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,vn(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,Z(s.x,function(c,f){Z(s.y,function(d,h){var p="x"+f+"y"+h,v=new dwt(p);v.master=a,v.model=e,a._coordsMap[p]=v,a._coordsList.push(v),v.addAxis(c),v.addAxis(d)})});function u(c){return function(f,d){if(Ek(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 p=new pwt(c,Hb(f),[0,0],f.get("type"),h),v=p.type==="category";p.onBand=v&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=d,i._axesList.push(p),s[c][d]=p,l[c]++}}}},t.prototype._updateScale=function(e,n){Z(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(uH(a)){var i=cH(a),o=i.xAxisModel,s=i.yAxisModel;if(!Ek(o,n)||!Ek(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){Z(eC(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return Z(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);vn(n,i)<0&&n.push(i),vn(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(uH(a)){var i=cH(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},t.dimensions=IA,t}();function Ek(t,e){return t.getCoordSysModel()===e}function fH(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)dH(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&dH(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function dH(t){return t&&t.type!=="category"&&t.type!=="time"&&p1t(t)}function gwt(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 ywt=vwt;var ef=Math.PI,Fh=function(){function t(e,n){this.group=new Xt,this.opt=n,this.axisModel=e,Ht(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Xt({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!hH[e]},t.prototype.add=function(e){hH[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=FB(n-e),i,o;return M1(a)?(o=r>0?"top":"bottom",i="center"):M1(a-ef)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<ef?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}(),hH={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&&(Wa(s,s,o),Wa(l,l,o));var c=Qe({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Da({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Lg(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"]);Mt(d)&&(d=[d,d]),(Mt(h)||Bn(h))&&(h=[h,h]);var p=mp(e.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];Z([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(d[m]!=="none"&&d[m]!=null){var b=oa(d[m],-v/2,-g/2,v,g,c.stroke,!0),w=y.r+y.offset,C=u?l:s;b.attr({rotation:y.rotate,x:C[0]+w*Math.cos(t.rotation),y:C[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),n.add(b)}})}}},axisTickLabel:function(t,e,n,r){var a=Swt(n,r,e,t),i=_wt(n,r,e,t);if(bwt(e,i,a),wwt(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Xse(ut(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Jse(o)}},axisName:function(t,e,n,r){var a=Ma(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,vH(i)?t.labelOffset+o*l:0],d,h=e.get("nameRotate");h!=null&&(h=h*ef/180);var p;vH(i)?d=Fh.innerTextLayout(t.rotation,h??t.rotation,o):(d=mwt(t.rotation,i,h||0,u),p=t.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Ma(t.nameTruncateMaxWidth,g.maxWidth,p),b=new On({x:f[0],y:f[1],rotation:d.rotation,silent:Fh.isLabelSilent(e),style:gr(s,{text:a,font:v,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(s0({el:b,componentModel:e,itemName:a}),b.__fullText=a,b.anid="name",e.get("triggerEvent")){var w=Fh.makeAxisEventDataBase(e);w.targetType="axisName",w.name=a,rn(b).eventData=w}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function mwt(t,e,n,r){var a=FB(n-t),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return M1(a-ef/2)?(o=l?"bottom":"top",i="center"):M1(a-ef*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<ef*1.5&&a>ef/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function bwt(t,e,n){if(!$se(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?(Bo(i),Bo(u)):pH(i,o)&&(r?(Bo(o),Bo(c)):(Bo(i),Bo(u))),a===!1?(Bo(s),Bo(f)):pH(l,s)&&(a?(Bo(l),Bo(d)):(Bo(s),Bo(f)))}}function Bo(t){t&&(t.ignore=!0)}function pH(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=Ob([]);return Gf(a,a,-t.rotation),n.applyTransform(Gl([],a,t.getLocalTransform())),r.applyTransform(Gl([],a,e.getLocalTransform())),n.intersect(r)}}function vH(t){return t==="middle"||t==="center"}function Ale(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&&(Wa(o,o,e),Wa(s,s,e));var c=new Da({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Lg(c.shape,c.style.lineWidth),c.anid=a+"_"+t[l].tickValue,i.push(c)}return i}function Swt(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=Ale(u,e.transform,l,Ht(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function wwt(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=Ht(s.getLineStyle(),Ht(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=Ale(o[c],e.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)t.add(f[d])}}function _wt(t,e,n,r){var a=n.axis,i=Ma(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Ma(r.labelRotate,o.get("rotate"))||0)*ef/180,c=Fh.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Fh.isLabelSilent(n),p=n.get("triggerEvent");return Z(l,function(v,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,m=v.formattedLabel,b=v.rawLabel,w=o;if(f&&f[y]){var C=f[y];Wt(C)&&C.textStyle&&(w=new lr(C.textStyle,o,n.ecModel))}var x=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=a.dataToCoord(y),T=new On({x:_,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(v.level||0),style:gr(w,{text:m,align:w.getShallow("align",!0)||c.textAlign,verticalAlign:w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,fill:zt(x)?x(a.type==="category"?b:a.type==="value"?y+"":y,g):x})});if(T.anid="label_"+y,p){var M=Fh.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=b,M.tickIndex=g,a.type==="category"&&(M.dataIndex=y),rn(T).eventData=M}e.add(T),T.updateTransform(),d.push(T),t.add(T),T.decomposeTransform()}),d}}const Ku=Fh;function xwt(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Cwt(n,t,e),n.seriesInvolved&&Ewt(n,t),n}function Cwt(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];Z(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=G1(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(Z(s.getAxes(),nn(v,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&Z(p.baseAxes,nn(v,h?"cross":!0,d)),h&&Z(p.otherAxes,nn(v,"cross",!1))}function v(g,y,m){var b=m.model.getModel("axisPointer",a),w=b.get("show");if(!(!w||w==="auto"&&!g&&!PA(b))){y==null&&(y=b.get("triggerTooltip")),b=g?Twt(m,f,a,e,g,y):b;var C=b.get("snap"),x=b.get("triggerEmphasis"),_=G1(m.model),T=y||C||m.type==="category",M=t.axesInfo[_]={key:_,axis:m,coordSys:s,axisPointerModel:b,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:C,useHandle:PA(b),seriesModels:[],linkGroup:null};u[_]=M,t.seriesInvolved=t.seriesInvolved||T;var E=Mwt(i,m);if(E!=null){var k=o[E]||(o[E]={axesInfo:{}});k.axesInfo[_]=M,k.mapper=i[E].mapper,M.linkGroup=k}}}})}function Twt(t,e,n,r,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Z(s,function(d){l[d]=Kt(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&&Ht(u,f.textStyle)}}return t.model.getModel("axisPointer",new lr(l,n,r))}function Ewt(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||Z(t.coordSysAxesInfo[G1(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 Mwt(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(Mk(i[r+"AxisId"],n.id)||Mk(i[r+"AxisIndex"],n.componentIndex)||Mk(i[r+"AxisName"],n.name))return a}}function Mk(t,e){return t==="all"||at(t)&&vn(t,e)>=0||t===e}function Dwt(t){var e=XI(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=PA(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 XI(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[G1(t)]}function kwt(t){var e=XI(t);return e&&e.axisPointerModel}function PA(t){return!!t.get(["handle","show"])}function G1(t){return t.type+"||"+t.id}var gH={},Rwt=function(t){Ve(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&&Dwt(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=kwt(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){gH[n]=r},e.getAxisPointerClass=function(n){return n&&gH[n]},e.type="axis",e}(Lr);const Sp=Rwt;var FA=In();function Nle(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=FA(t).splitAreaColors,d=It(),h=0;if(f)for(var p=0;p<u.length;p++){var v=f.get(u[p].tickValue);if(v!=null){h=(v+(c-1)*p)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=at(s)?s:[s];for(var p=1;p<u.length;p++){var m=a.toGlobalCoord(u[p].coord),b=void 0,w=void 0,C=void 0,x=void 0;a.isHorizontal()?(b=g,w=l.y,C=m-b,x=l.height,g=b+C):(b=l.x,w=g,C=l.width,x=m-w,g=w+x);var _=u[p-1].tickValue;_!=null&&d.set(_,h),e.add(new An({anid:_!=null?"area_"+_:null,shape:{x:b,y:w,width:C,height:x},style:Ht({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}FA(t).splitAreaColors=d}}}function Vle(t){FA(t).splitAreaColors=null}var Lwt=["axisLine","axisTickLabel","axisName"],Owt=["splitArea","splitLine","minorSplitLine"],Ble=function(t){Ve(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 Xt,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=$A(s,n),u=new Ku(n,Qe({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(kA(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));Z(Lwt,u.add,u),this._axisGroup.add(u.getGroup()),Z(Owt,function(f){n.get([f,"show"])&&Awt[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Fb(o,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)}},e.prototype.remove=function(){Vle(this)},e.type="cartesianAxis",e}(Sp),Awt={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=at(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],p=o.getLineStyle(),v=0;v<f.length;v++){var g=a.toGlobalCoord(f[v].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[v].tickValue,b=new Da({anid:m!=null?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Ht({stroke:s[y]},p),silent:!0});Lg(b.shape,p.lineWidth),e.add(b)}}},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 p=0;p<u[h].length;p++){var v=a.toGlobalCoord(u[h][p].coord);l?(c[0]=v,c[1]=s.y,f[0]=v,f[1]=s.y+s.height):(c[0]=s.x,c[1]=v,f[0]=s.x+s.width,f[1]=v);var g=new Da({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Lg(g.shape,d.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){Nle(t,e,n,r)}},Ile=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(Ble),Nwt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Ile.type,n}return e.type="yAxis",e}(Ble),Vwt=function(t){Ve(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 An({shape:n.coordinateSystem.getRect(),style:Ht({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Lr),yH={offset:0};function $le(t){t.registerComponentView(Vwt),t.registerComponentModel(iwt),t.registerCoordinateSystem("cartesian2d",ywt),Vg(t,"x",BA,yH),Vg(t,"y",BA,yH),t.registerComponentView(Ile),t.registerComponentView(Nwt),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Bwt(t){mn($le),t.registerSeriesModel(ZSt),t.registerChartView(rwt),t.registerLayout(Yb("scatter"))}function Iwt(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();Z(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]=mH(c)?c:bH(a)})}),n.each(function(o){var s=Hre(r[o],function(l){return mH(l)})||bH(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function mH(t){return!isNaN(t[0])&&!isNaN(t[1])}function bH(t){return[t.cx,t.cy]}function $wt(t){var e=t.polar;if(e){at(e)||(e=[e]);var n=[];Z(e,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],at(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}Z(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var Pwt=function(t){Ve(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 p=d.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var v=g0(d.getItemVisual(h,"symbolSize")),g=oa(p,-1,-1,2,2),y=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:y*Math.PI/180||0}),g}}function c(d,h,p,v,g,y){p.removeAll();for(var m=0;m<h.length-1;m++){var b=u(v,g);b&&(b.__dimIdx=m,d[m]?(b.setPosition(d[m]),zb[y?"initProps":"updateProps"](b,{x:h[m][0],y:h[m][1]},n,g)):b.setPosition(h[m]),p.add(b))}}function f(d){return ut(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var p=new ji,v=new qi,g={shape:{points:h}};p.shape.points=f(h),v.shape.points=f(h),Mr(p,g,n,d),Mr(v,g,n,d);var y=new Xt,m=new Xt;y.add(v),y.add(p),y.add(m),c(v.shape.points,h,m,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,h){var p=l.getItemGraphicEl(h),v=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(d)}};m.shape.points&&(c(v.shape.points,m.shape.points,y,s,d,!1),rl(g),rl(v),zn(v,m,n),zn(g,m,n),s.setItemGraphicEl(d,p))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var p=s.getItemModel(h),v=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m=s.getItemVisual(h,"style"),b=m.fill;o.add(d),v.useStyle(Ht(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),oi(v,p,"lineStyle"),oi(g,p,"areaStyle");var w=p.getModel("areaStyle"),C=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=C,Z(["emphasis","select","blur"],function(T){var M=p.getModel([T,"areaStyle"]),E=M.isEmpty()&&M.parentModel.isEmpty();g.ensureState(T).ignore=E&&C}),g.useStyle(Ht(w.getAreaStyle(),{fill:b,opacity:.7,decal:m.decal}));var x=p.getModel("emphasis"),_=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Ya){var M=T.style;T.useStyle(Qe({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},m))}else T.useStyle(m),T.setColor(b),T.style.strokeNoScale=!0;var E=T.ensureState("emphasis");E.style=Kt(_);var k=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(k==null||isNaN(k))&&(k=""),si(T,Aa(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:k,inheritColor:b,defaultOpacity:m.opacity})}),Xr(d,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(cr);const Fwt=Pwt;var zwt=function(t){Ve(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 Xb(Dt(this.getData,this),Dt(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return b0(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=Loe(this,n);return Na("section",{header:u,sortBlocks:!0,blocks:ut(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return Na("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(ut(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}(wr);const Uwt=zwt;var vy=Lle.value;function Qw(t,e){return Ht({show:e},t)}var Gwt=function(t){Ve(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=ut(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=Ht({color:p.color},l));var g=un(Kt(p),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(Mt(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else zt(c)&&(g.name=c(g.name,g));var m=new lr(g,null,this.ecModel);return ea(m,m0.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:un({lineStyle:{color:"#bbb"}},vy.axisLine),axisLabel:Qw(vy.axisLabel,!1),axisTick:Qw(vy.axisTick,!1),splitLine:Qw(vy.splitLine,!0),splitArea:Qw(vy.splitArea,!0),indicator:[]},e}(kn);const Hwt=Gwt;var Wwt=["axisLine","axisTickLabel","axisName"],jwt=function(t){Ve(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=ut(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Ku(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});Z(i,function(o){Z(Wwt,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=at(d)?d:[d],v=at(h)?h:[h],g=[],y=[];function m(V,G,I){var $=I%G.length;return V[$]=V[$]||[],$}if(i==="circle")for(var b=a[0].getTicksCoords(),w=r.cx,C=r.cy,x=0;x<b.length;x++){if(c){var _=m(g,p,x);g[_].push(new nl({shape:{cx:w,cy:C,r:b[x].coord}}))}if(f&&x<b.length-1){var _=m(y,v,x);y[_].push(new Ib({shape:{cx:w,cy:C,r0:b[x].coord,r:b[x+1].coord}}))}}else for(var T,M=ut(a,function(V,G){var I=V.getTicksCoords();return T=T==null?I.length-1:Math.min(I.length-1,T),ut(I,function($){return r.coordToPoint($.coord,G)})}),E=[],x=0;x<=T;x++){for(var k=[],R=0;R<a.length;R++)k.push(M[R][x]);if(k[0]&&k.push(k[0].slice()),c){var _=m(g,p,x);g[_].push(new qi({shape:{points:k}}))}if(f&&E){var _=m(y,v,x-1);y[_].push(new ji({shape:{points:k.concat(E)}}))}E=k.slice().reverse()}var L=l.getLineStyle(),A=u.getAreaStyle();Z(y,function(V,G){this.group.add(wo(V,{style:Ht({stroke:"none",fill:v[G%v.length]},A),silent:!0}))},this),Z(g,function(V,G){this.group.add(wo(V,{style:Ht({fill:"none",stroke:p[G%p.length]},L),silent:!0}))},this)},e.type="radar",e}(Lr);const Kwt=jwt;var Ywt=function(t){Ve(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}(ys);const qwt=Ywt;var Xwt=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=ut(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new qwt(o,new Rf);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=wt(r[0],a),this.cy=wt(r[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Mt(s)||Bn(s))&&(s=[0,s]),this.r0=wt(s[0],o),this.r=wt(s[1],o),Z(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;Z(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();Z(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Rf;o.setExtent(0,i),o.setInterval(1),Z(r,function(s,l){Ole(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 Zwt=Xwt;function Qwt(t){t.registerCoordinateSystem("radar",Zwt),t.registerComponentModel(Hwt),t.registerComponentView(Kwt),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 Jwt(t){mn(Qwt),t.registerChartView(Fwt),t.registerSeriesModel(Uwt),t.registerLayout(Iwt),t.registerProcessor(qb("radar")),t.registerPreprocessor($wt)}var SH="\0_ec_interaction_mutex";function e_t(t,e,n){var r=ZI(t);r[e]=n}function t_t(t,e,n){var r=ZI(t),a=r[e];a===n&&(r[e]=null)}function wH(t,e){return!!ZI(t)[e]}function ZI(t){return t[SH]||(t[SH]={})}ll({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Qr);var n_t=function(t){Ve(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var a=Dt(r._mousedownHandler,r),i=Dt(r._mousemoveHandler,r),o=Dt(r._mouseupHandler,r),s=Dt(r._mousewheelHandler,r),l=Dt(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Ht(Kt(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(!Zz(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||!xx("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||wH(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&&Uu(n.event),Ple(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){Zz(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=xx("zoomOnMouseWheel",n,this._opt),a=xx("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;Dk(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);Dk(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!wH(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;Dk(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(hs);function Dk(t,e,n,r,a){t.pointerChecker&&t.pointerChecker(r,a.originX,a.originY)&&(Uu(r.event),Ple(t,e,n,r,a))}function Ple(t,e,n,r,a){a.isAvailableBehavior=Dt(xx,null,n,r),t.trigger(e,a)}function xx(t,e,n){var r=n[t];return!t||r&&(!Mt(r)||e.event[r+"Key"])}const Zb=n_t;function QI(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function JI(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 r_t={axisPointer:1,tooltip:1,brush:1};function yE(t,e,n){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!r_t.hasOwnProperty(r.mainType)&&a&&a.model!==n}function Fle(t){if(Mt(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 kk,oC={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"},_H=Tn(oC),sC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xH=Tn(sC),a_t=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=Fle(e);this._defsUsePending=[];var a=new Xt;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),yo(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;s_t(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=mE(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=Ule(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new Xt,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 An({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=kk[s];if(c&&Rt(kk,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=CH[s];if(h&&Rt(CH,s)){var p=h.call(this,e),v=e.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},t.prototype._parseText=function(e,n){var r=new k1({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Io(n,r),yo(e,r,this._defsUsePending,!1,!1),i_t(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(){kk={g:function(e,n){var r=new Xt;return Io(n,r),yo(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new An;return Io(n,r),yo(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 nl;return Io(n,r),yo(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 Da;return Io(n,r),yo(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 qT;return Io(n,r),yo(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=MH(r));var i=new ji({shape:{points:a||[]},silent:!0});return Io(n,i),yo(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,n){var r=e.getAttribute("points"),a;r&&(a=MH(r));var i=new qi({shape:{points:a||[]},silent:!0});return Io(n,i),yo(e,i,this._defsUsePending,!1,!1),i},image:function(e,n){var r=new Ya;return Io(n,r),yo(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 Xt;return Io(n,s),yo(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 Xt;return Io(n,s),yo(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=gie(r);return Io(n,a),yo(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),t}(),CH={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 a0(e,n,r,a);return TH(t,i),EH(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 JB(e,n,r);return TH(t,a),EH(t,a),a}};function TH(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function EH(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={};zle(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Io(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ht(e.__inheritedStyle,t.__inheritedStyle))}function MH(t){for(var e=mE(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 yo(t,e,n,r,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};t.nodeType===1&&(c_t(t,e),zle(t,o,s),r||f_t(t,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=DH(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=DH(i,"stroke",o.stroke,n)),Z(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),Z(["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=ut(mE(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function i_t(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 o_t=/^url\(\s*#(.*?)\)/;function DH(t,e,n,r){var a=n&&n.match(o_t);if(a){var i=Qo(a[1]);r.push([t,e,i]);return}return n==="none"&&(n=null),n}function s_t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var l_t=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mE(t){return t.match(l_t)||[]}var u_t=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Rk=Math.PI/180;function c_t(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(u_t,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=mE(o);switch(a=a||Do(),s){case"translate":el(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":PT(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Gf(a,a,-parseFloat(l[0])*Rk);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Rk);Gl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Rk);Gl(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 kH=/([^\s:;]+)\s*:\s*([^:;]+)/g;function zle(t,e,n){var r=t.getAttribute("style");if(r){kH.lastIndex=0;for(var a;(a=kH.exec(r))!=null;){var i=a[1],o=Rt(oC,i)?oC[i]:null;o&&(e[o]=a[2]);var s=Rt(sC,i)?sC[i]:null;s&&(n[s]=a[2])}}}function f_t(t,e,n){for(var r=0;r<_H.length;r++){var a=_H[r],i=t.getAttribute(a);i!=null&&(e[oC[a]]=i)}for(var r=0;r<xH.length;r++){var a=xH[r],i=t.getAttribute(a);i!=null&&(n[sC[a]]=i)}}function Ule(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 d_t(t,e){var n=new a_t;return n.parse(t,e)}var h_t=It(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),p_t=function(){function t(e,n){this.type="geoSVG",this._usedGraphicMap=It(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Fle(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=g_t(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&&d_t(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,bi(r!=null)}catch(g){throw new Error(`Invalid svg format
  1146. `+g.message)}var a=new Xt;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 dn(u,c,f,d)}if(s){var p=Ule(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}a.setClipPath(new An({shape:l.plain()}));var v=[];return Z(n.named,function(g){h_t.get(g.svgNodeTagLower)!=null&&(v.push(g),v_t(g.el))}),{root:a,boundingRect:l,named:v}},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 v_t(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function g_t(t){var e=[],n=It();return Z(t,function(r){if(r.namedFrom==null){var a=new M1t(r.name,r.el);e.push(a),n.set(r.name,a)}}),{regions:e,regionsMap:n}}var zA=[126,25],RH="南海诸岛",Gd=[[[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 Id=0;Id<Gd.length;Id++)for(var Zp=0;Zp<Gd[Id].length;Zp++)Gd[Id][Zp][0]/=10.5,Gd[Id][Zp][1]/=-10.5/.75,Gd[Id][Zp][0]+=zA[0],Gd[Id][Zp][1]+=zA[1];function y_t(t,e){if(t==="china"){for(var n=0;n<e.length;n++)if(e[n].name===RH)return;e.push(new Fse(RH,ut(Gd,function(r){return{type:"polygon",exterior:r}}),zA))}}var m_t={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function b_t(t,e){if(t==="china"){var n=m_t[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 S_t=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function w_t(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:S_t[0]})}var __t="name",x_t=function(){function t(e,n,r){this.type="geoJSON",this._parsedMap=It(),this._mapName=e,this._specialAreas=r,this._geoJSON=T_t(n)}return t.prototype.load=function(e,n){n=n||__t;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:C_t(a)})}var i=It(),o=[];return Z(r.regions,function(s){var l=s.name;e&&Rt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new dn(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(e){var n=this._mapName,r=this._geoJSON,a;try{a=r?LA(r,e):[]}catch(i){throw new Error(`Invalid geoJson format
  1147. `+i.message)}return y_t(n,a),Z(a,function(i){var o=i.name;b_t(n,i),w_t(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 C_t(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 T_t(t){return Mt(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var gy=It();const Yu={registerMap:function(t,e,n){if(e.svg){var r=new p_t(t,e.svg);gy.set(t,r)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?n=e.specialAreas:a=e;var r=new x_t(t,a,n);gy.set(t,r)}},getGeoResource:function(t){return gy.get(t)},getMapForUser:function(t){var e=gy.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,n){var r=gy.get(t);if(r)return r.load(e,n)}};var e$=["rect","circle","line","ellipse","polygon","polyline","path"],E_t=It(e$),M_t=It(e$.concat(["g"])),D_t=It(e$.concat(["g"])),Gle=In();function Jw(t){var e=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(e.fill=n),e}function LH(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var k_t=function(){function t(e){var n=new Xt;this.uid=u0("ec_map_draw"),this._controller=new Zb(e.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Xt),n.add(this._svgGroup=new Xt)}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,p=!u.childAt(0)||i;p?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):zn(c,h,e);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,n,r),this._updateMapSelectHandler(e,u,r,a)},t.prototype._buildGeoJSON=function(e){var n=this._regionsGroupByName=It(),r=It(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],v);y&&p.push(y)}return p}function d(h){return{shape:{points:f(h)}}}a.removeAll(),Z(e.geo.regions,function(h){var p=h.name,v=n.get(p),g=r.get(p)||{},y=g.dataIdx,m=g.regionModel;v||(v=n.set(p,new Xt),a.add(v),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,r.set(p,{dataIdx:y,regionModel:m}));var b=[],w=[];Z(h.geometries,function(_){if(_.type==="polygon"){var T=[_.exterior].concat(_.interiors||[]);u&&(T=IH(T,u)),Z(T,function(E){b.push(new ji(d(E)))})}else{var M=_.points;u&&(M=IH(M,u,!0)),Z(M,function(E){w.push(new qi(d(E)))})}});var C=c(h.getCenter(),l&&l.project);function x(_,T){if(_.length){var M=new ZT({culling:!0,segmentIgnoreThreshold:1,shape:{paths:_}});v.add(M),OH(e,M,y,m),AH(e,M,p,m,o,y,C),T&&(LH(M),Z(M.states,LH))}}x(b),x(w,!0)}),n.each(function(h,p){var v=r.get(p),g=v.dataIdx,y=v.regionModel;NH(e,h,p,y,o,g),VH(e,h,p,y,o),BH(e,h,p,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=It(),i=!1;Z(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(E_t.get(c)!=null&&f instanceof ds&&OH(e,f,d,h),f instanceof ds&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(D_t.get(c)!=null&&AH(e,f,s,h,l,d,null),NH(e,f,s,h,l,d),VH(e,f,s,h,l),M_t.get(c)!=null)){var p=BH(e,f,s,h,l);p==="self"&&(i=!0);var v=a.get(s)||a.set(s,[]);v.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){ep(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=Yu.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=Yu.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,QI(o,u.dx,u.dy),r.dispatchAction(Qe(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,JI(o,u.scale,u.originX,u.originY),r.dispatchAction(Qe(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])&&!yE(u,r,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var n=e.getTextContent();n&&(n.ignore=Gle(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 OH(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=Jw(a),u=Jw(i),c=Jw(s),f=Jw(o),d=t.data;if(d){var h=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=Ag(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,ep(e)}function AH(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;si(e,Aa(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var p=e.getTextContent();if(p&&(Gle(p).ignore=p.ignore,e.textConfig&&o)){var v=e.getBoundingRect().clone();e.textConfig.layoutRect=v,e.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function NH(t,e,n,r,a,i){t.data?t.data.setItemGraphicEl(i,e):rn(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function VH(t,e,n,r,a){t.data||s0({el:e,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function BH(t,e,n,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return Xr(e,o,i.get("blurScope"),i.get("disabled")),t.isGeo&&yvt(e,a,n),o}function IH(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(),Z(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 Hle=k_t;var R_t=function(t){Ve(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 Hle(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 nl({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:r0+1)});if(!f){var h=n.mainSeries.getData(),p=i.getName(l),v=h.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=h.getItemGraphicEl(v);si(d,Aa(g),{labelFetcher:{getFormattedLabel:function(b,w){return n.getFormattedLabel(v,w)}},defaultText:p}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(b){I2(d,b)}}o.add(d)}}})},e.type="map",e}(cr);const L_t=R_t;var O_t=function(t){Ve(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=b0(this,{coordDimensions:["value"],encodeDefaulter:nn(pI,this)}),a=It(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=Yu.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return Z(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 Na("section",{header:u.join(", "),noHeader:!u.length,blocks:[Na("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=oa(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}(wr);const A_t=O_t;function N_t(t,e){var n={};return Z(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 V_t(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)}),Z(e,function(n,r){for(var a=N_t(ut(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 B_t(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||e[r])){var a={};Z(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,p=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:p,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 $H=Wa,I_t=function(t){Ve(e,t);function e(n){var r=t.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Ru,r._rawTransformable=new Ru,r.name=n,r}return e.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new dn(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 dn(n,r,a,i)},e.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new dn(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=[wt(n[0],r.getWidth()),wt(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=Wa([],i,n),a=Wa([],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(),$T(this.transform||(this.transform=[]),r.transform||Do()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],vp(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new Ru;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?$H(a,n,i):di(a,n)},e.prototype.pointToData=function(n){var r=this.invTransform;return r?$H([],n,r):[n[0],n[1]]},e.prototype.convertToPixel=function(n,r,a){var i=PH(r);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var i=PH(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}(Ru);function PH(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const Qb=I_t;var $_t={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Wle=["lng","lat"],jle=function(t){Ve(e,t);function e(n,r,a){var i=t.call(this,n)||this;i.dimensions=Wle,i.type="geo",i._nameCoordMap=It(),i.map=r;var o=a.projection,s=Yu.load(r,a.nameMap,a.nameProperty),l=Yu.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=$_t[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:fn(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 dn(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(Mt(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=FH(r);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var i=FH(r);return i===this?i.pointToData(a):null},e}(Qb);ea(jle,Qb);function FH(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ca).models[0]||{}).coordinateSystem:null}const zH=jle;function UH(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(x,_,T,M){for(var E=T-x,k=M-_,R=0;R<=100;R++){var L=R/100,A=i.project([x+E*L,_+k*L]);Du(r,r,A),ku(a,a,A)}};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"),p=e.getWidth(),v=e.getHeight(),g=f.width/f.height*this.aspectScale,y=!1,m,b;d&&h&&(m=[wt(d[0],p),wt(d[1],v)],b=wt(h,Math.min(p,v)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(b)&&(y=!0));var w;if(y)w={},g>1?(w.width=b,w.height=b/g):(w.height=b,w.width=b*g),w.y=m[1]-w.height/2,w.x=m[0]-w.width/2;else{var C=t.getBoxLayoutParams();C.aspect=g,w=ga(C,{width:p,height:v})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function P_t(t,e){Z(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var F_t=function(){function t(){this.dimensions=Wle}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 zH(l+s,l,Qe({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=UH,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)}}),Z(i,function(o,s){var l=ut(o,function(c){return c.get("nameMap")}),u=new zH(s,s,Qe({nameMap:VT(l)},a(o[0])));u.zoomLimit=Ma.apply(null,ut(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=UH,u.resize(o[0],n),Z(o,function(c){c.coordinateSystem=u,P_t(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,a){for(var i=(e||[]).slice(),o=It(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Yu.load(n,r,a);return Z(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},t}(),z_t=new F_t;const Kle=z_t;var U_t=function(t){Ve(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=Yu.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),Zh(n,"label",["show"])},e.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=Kle.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=fs(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new lr(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},It()),r.selectedMap||(r.selectedMap=a)},e.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new lr(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(zt(i))return o.status=r,i(o);if(Mt(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}(kn);const G_t=U_t;function GH(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function t$(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(GH(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(GH(t,s),r),t.setZoom(o*a)}return{center:t.getCenter(),zoom:t.getZoom()}}var H_t=function(t){Ve(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 Hle(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;Sh(n.target,function(a){return(r=rn(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=rn(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}(Lr);const W_t=H_t;function j_t(t,e,n){Yu.registerMap(t,e,n)}function Yle(t){t.registerCoordinateSystem("geo",Kle),t.registerComponentModel(G_t),t.registerComponentView(W_t),t.registerImpl("registerMap",j_t),t.registerImpl("getMap",function(n){return Yu.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;Z(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];Z(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=t$(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&Z(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function K_t(t){mn(Yle),t.registerChartView(L_t),t.registerSeriesModel(A_t),t.registerLayout(B_t),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,V_t),Goe("map",t.registerAction)}function Y_t(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 q_t(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){Q_t(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=J_t(t,a,t.parentNode.hierNode.defaultAncestor||r[0],e)}function X_t(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function HH(t){return arguments.length?t:nxt}function jy(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Z_t(t,e){return ga(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Q_t(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 J_t(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=Lk(s),i=Ok(i),s&&i;){a=Lk(a),o=Ok(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(txt(ext(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&&!Lk(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!Ok(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=t)}return n}function Lk(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Ok(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function ext(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function txt(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 nxt(t,e){return t.parentNode===e.parentNode?1:2}var rxt=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),axt=function(t){Ve(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 rxt},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=wt(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var v=a[p];n.moveTo(v[0],v[1]),h[c]=v[c],n.lineTo(h[0],h[1])}},e}(wn),ixt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Xt,n}return e.prototype.init=function(n,r){this._controller=new Zb(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){WH(i,c)&&jH(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!WH(i,c)){d&&YH(u,f,d,s,n);return}jH(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&YH(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=[];jT(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 Qb;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)&&!yE(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){QI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){JI(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}(cr);function WH(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function jH(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(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,v=o.getLayout();i?(n=new jb(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,zn(n,{x:v.x,y:v.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),b=y.children.length,w=void 0,C=void 0;if(v.x===m.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[b-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[b-1].getLayout().y)/2};w=Math.atan2(x.y-m.y,x.x-m.x),w<0&&(w=Math.PI*2+w),C=x.x<m.x,C&&(w=w-Math.PI)}else w=Math.atan2(v.y-m.y,v.x-m.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(C=v.x<m.x,C&&(w=w-Math.PI)):(C=v.x>m.x,C||(w=w-Math.PI));var _=C?"left":"right",T=s.getModel("label"),M=T.get("rotate"),E=M*(Math.PI/180),k=g.getTextContent();k&&(g.setTextConfig({position:T.get("position")||_,rotation:M==null?-w:E,origin:"center"}),k.setStyle("verticalAlign","middle"))}var R=s.get(["emphasis","focus"]),L=R==="relative"?S1(o.getAncestorsIndices(),o.getDescendantIndices()):R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():null;L&&(rn(n).focus=L),oxt(a,o,c,n,p,h,v,r),n.__edge&&(n.onHoverStateChange=function(A){if(A!=="blur"){var V=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);V&&V.hoverState===Bb||I2(n.__edge,A)}})}function oxt(t,e,n,r,a,i,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),h=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new $b({shape:UA(c,f,d,a,a)})),zn(v,{shape:UA(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 b=g[m].getLayout();y.push([b.x,b.y])}v||(v=r.__edge=new axt({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),zn(v,{shape:{parentPoint:[o.x,o.y],childPoints:y}},t)}v&&!(u==="polyline"&&!e.isExpand)&&(v.useStyle(Ht({strokeNoScale:!0,fill:null},p)),oi(v,l,"lineStyle"),ep(v),s.add(v))}function KH(t,e,n,r,a){var i=e.tree.root,o=qle(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"),p=r.get("layout"),v=r.get("orient"),g=r.get(["lineStyle","curveness"]);d&&(h==="curve"?Df(d,{shape:UA(p,v,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&Df(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function qle(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 YH(t,e,n,r,a){var i=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=qle(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Df(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){KH(u,t,r,a,l)}),KH(i,t,r,a,l)}function UA(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=jy(u,f),p=jy(u,f+(d-f)*n),v=jy(c,d+(f-d)*n),g=jy(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:v.x||0,cpy2:v.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 sxt=ixt;var ns=In();function Xle(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Zle(e,n,t),Z(n,function(r){Z(e.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,nn(lxt,t))})}),e.wrapMethod("cloneShallow",nn(cxt,t)),Z(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,nn(uxt,t))}),bi(n[e.dataType]===e)}function lxt(t,e){if(hxt(this)){var n=Qe({},ns(this).datas);n[this.dataType]=e,Zle(e,n,t)}else n$(e,this.dataType,ns(this).mainData,t);return e}function uxt(t,e){return t.struct&&t.struct.update(),e}function cxt(t,e){return Z(ns(e).datas,function(n,r){n!==e&&n$(n.cloneShallow(),r,e,t)}),e}function fxt(t){var e=ns(this).mainData;return t==null||e==null?e:ns(e).datas[t]}function dxt(){var t=ns(this).mainData;return t==null?[{data:t}]:ut(Tn(ns(t).datas),function(e){return{type:e,data:ns(t).datas[e]}})}function hxt(t){return ns(t).mainData===t}function Zle(t,e,n){ns(t).datas={},Z(e,function(r,a){n$(r,a,t,n)})}function n$(t,e,n,r){ns(n).datas[e]=t,ns(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=fxt,t.getLinkedDataAll=dxt}var pxt=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){zt(e)&&(r=n,n=e,e=null),e=e||{},Mt(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}(),vxt=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,at(d)?d.length:1),i.push(c);var h=new pxt(Sa(c.name,""),a);f?gxt(h,f):a.root=h,a._nodes.push(h);var p=c.children;if(p)for(var v=0;v<p.length;v++)s(p[v],h)}a.root.updateDepthAndHeight(0);var l=y0(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new gi(l,n);return u.initData(i),r&&r(u),Xle({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},t}();function gxt(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}const r$=vxt;function H1(t,e,n){if(t&&vn(e,t.type)>=0){var r=n.getData().tree.root,a=t.targetNode;if(Mt(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 Qle(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function a$(t,e){var n=Qle(t);return vn(n,e)>=0}function bE(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 yxt=function(t){Ve(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 lr(a,this,this.ecModel),o=r$.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Na("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=bE(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}(wr);const mxt=yxt;function bxt(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 yy(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 Sxt(t,e){t.eachSeriesByType("tree",function(n){wxt(n,e)})}function wxt(t,e){var n=Z_t(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=HH(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(a=n.width,i=n.height,o=HH());var s=t.getData().tree.root,l=s.children[0];if(l){Y_t(s),bxt(l,q_t,o),s.hierNode.modifier=-l.hierNode.prelim,yy(l,X_t);var u=l,c=l,f=l;yy(l,function(b){var w=b.getLayout().x;w<u.getLayout().x&&(u=b),w>c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,y=0;if(r==="radial")p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),yy(l,function(b){g=(b.getLayout().x+h)*p,y=(b.depth-1)*v;var w=jy(g,y);b.setLayout({x:w.x,y:w.y,rawX:g,rawY:y},!0)});else{var m=t.getOrient();m==="RL"||m==="LR"?(v=i/(c.getLayout().x+d+h),p=a/(f.depth-1||1),yy(l,function(b){y=(b.getLayout().x+h)*v,g=m==="LR"?(b.depth-1)*p:a-(b.depth-1)*p,b.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),yy(l,function(b){g=(b.getLayout().x+h)*p,y=m==="TB"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:g,y},!0)}))}}}function _xt(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");Qe(s,o)})})}function xxt(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=t$(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function Cxt(t){t.registerChartView(sxt),t.registerSeriesModel(mxt),t.registerLayout(Sxt),t.registerVisual(_xt),xxt(t)}var qH=["treemapZoomToNode","treemapRender","treemapMove"];function Txt(t){for(var e=0;e<qH.length;e++)t.registerAction({type:qH[e],update:"updateView"},Qr);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=H1(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=a$(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Jle(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=gA(t.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var Ext=function(t){Ve(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};eue(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new lr({itemStyle:o},this,r);i=n.levels=Mxt(i,r);var l=ut(i||[],function(f){return new lr(f,s,r)},this),u=r$.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return Na("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=bE(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Qe(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=It(),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(){Jle(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}(wr);function eue(t){var e=0;Z(t.children,function(r){eue(r);var a=r.value;at(a)&&(a=a[0]),e+=a});var n=t.value;at(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),at(t.value)?t.value[0]=n:t.value=n}function Mxt(t,e){var n=ur(e.get("color")),r=ur(e.get(["aria","decal","decals"]));if(n){t=t||[];var a,i;Z(t,function(s){var l=new lr(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 Dxt=Ext;var kxt=8,XH=8,Ak=5,Rxt=function(){function t(e){this.group=new Xt,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),iE(o,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var a=e;a;a=a.parentNode){var i=Sa(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+kxt*2,n.emptyItemWidth);n.totalWidth+=s+XH,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=Cgt(n.pos,n.box),d=n.totalWidth,h=n.renderList,p=a.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],y=g.node,m=g.width,b=g.text;d>f.width&&(d-=m-u,m=u,b=null);var w=new ji({shape:{points:Lxt(l,0,m,c,v===h.length-1,v===0)},style:Ht(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new On({style:gr(i,{text:b})}),textConfig:{position:"inside"},z2:r0*1e4,onclick:nn(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=gr(o,{text:b}),w.ensureState("emphasis").style=p,Xr(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),Oxt(w,e,y),l+=m+XH}},t.prototype.remove=function(){this.group.removeAll()},t}();function Lxt(t,e,n,r,a,i){var o=[[a?t:t-Ak,e],[t+n,e],[t+n,e+r],[a?t:t-Ak,e+r]];return!i&&o.splice(2,0,[t+n+Ak,e+r/2]),!a&&o.push([t,e+r/2]),o}function Oxt(t,e,n){rn(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&&bE(n,e)}}const Axt=Rxt;var Nxt=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 Vxt(){return new Nxt}var GA=Xt,ZH=An,QH=3,JH="label",eW="upperLabel",Bxt=r0*10,Ixt=r0*2,$xt=r0*3,Hd=Jh([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),tW=function(t){var e=Hd(t);return e.stroke=e.fill=e.lineWidth=null,e},lC=In(),Pxt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=my(),n}return e.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(vn(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=H1(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,p=this._giveContainerGroup(c),v=n.get("animation"),g=this._doRender(p,n,h);v&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,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 GA,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=my(),l=my(),u=this._storage,c=[];function f(g,y,m,b){return Fxt(r,l,u,a,s,c,g,y,m,b)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],n,i===o||!o,0);var d=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:v};function h(g,y,m,b,w){b?(y=g,Z(g,function(_,T){!_.isRemoved()&&x(T,T)})):new Wu(y,g,C,C).add(x).update(x).remove(nn(x,null)).execute();function C(_){return _.getId()}function x(_,T){var M=_!=null?g[_]:null,E=T!=null?y[T]:null,k=f(M,E,m,w);k&&h(M&&M.viewChildren||[],E&&E.viewChildren||[],k,b,w+1)}}function p(g){var y=my();return g&&Z(g,function(m,b){var w=y[b];Z(m,function(C){C&&(w.push(C),lC(C).willDelete=!0)})}),y}function v(){Z(d,function(g){Z(g,function(y){y.parent&&y.parent.remove(y)})}),Z(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=(zt(o)?0:o)||0,u=(zt(s)?null:s)||"cubicOut",c=Vxt();Z(r.willDeleteEls,function(f,d){Z(f,function(h,p){if(!h.invisible){var v=h.parent,g,y=lC(v);if(i&&i.direction==="drillDown")g=v===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,b=0;y.willDelete||(m=y.nodeWidth/2,b=y.nodeHeight/2),g=d==="nodeGroup"?{x:m,y:b,style:{opacity:0}}:{shape:{x:m,y:b,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),Z(this._storage,function(f,d){Z(f,function(h,p){var v=r.lastsForAnimation[d][p],g={};v&&(h instanceof Xt?v.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=v.oldX,h.y=v.oldY):(v.oldShape&&(g.shape=Qe({},h.shape),h.setShape(v.oldShape)),v.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(Dt(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new Zb(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",Dt(this._onPan,this)),r.on("zoom",Dt(this._onZoom,this)));var a=new dn(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)>QH||Math.abs(n.dy)>QH)){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 dn(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=Do();el(u,u,[-r,-a]),PT(u,u,[n.scale,n.scale]),el(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&&G2(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 Axt(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(a$(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=my(),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}(cr);function my(){return{nodeGroup:[],background:[],content:[]}}function Fxt(t,e,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,C=b&&b.length,x=d.getModel("itemStyle"),_=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),E=x.get("borderRadius")||0,k=oe("nodeGroup",GA);if(!k)return;if(l.add(k),k.x=c.x||0,k.y=c.y||0,k.markRedraw(),lC(k).nodeWidth=h,lC(k).nodeHeight=p,c.isAboveViewRoot)return k;var R=oe("background",ZH,u,Ixt);R&&N(k,R,C&&c.upperLabelHeight);var L=d.getModel("emphasis"),A=L.get("focus"),V=L.get("blurScope"),G=L.get("disabled"),I=A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():A;if(C)L1(k)&&mh(k,!1),R&&(mh(R,!G),f.setItemGraphicEl(o.dataIndex,R),lA(R,I,V));else{var $=oe("content",ZH,u,$xt);$&&P(k,$),R.disableMorphing=!0,R&&L1(R)&&mh(R,!1),mh(k,!G),f.setItemGraphicEl(o.dataIndex,k),lA(k,I,V)}return k;function N(fe,se,_e){var ve=rn(se);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=t.seriesIndex,se.setShape({x:0,y:0,width:h,height:p,r:E}),g)Y(se);else{se.invisible=!1;var he=o.getVisual("style"),q=he.stroke,ce=tW(x);ce.fill=q;var Se=Hd(_);Se.fill=_.get("borderColor");var Ae=Hd(T);Ae.fill=T.get("borderColor");var Te=Hd(M);if(Te.fill=M.get("borderColor"),_e){var Oe=h-2*v;J(se,q,he.opacity,{x:v,y:0,width:Oe,height:w})}else se.removeTextContent();se.setStyle(ce),se.ensureState("emphasis").style=Se,se.ensureState("blur").style=Ae,se.ensureState("select").style=Te,ep(se)}fe.add(se)}function P(fe,se){var _e=rn(se);_e.dataIndex=o.dataIndex,_e.seriesIndex=t.seriesIndex;var ve=Math.max(h-2*v,0),he=Math.max(p-2*v,0);if(se.culling=!0,se.setShape({x:v,y:v,width:ve,height:he,r:E}),g)Y(se);else{se.invisible=!1;var q=o.getVisual("style"),ce=q.fill,Se=tW(x);Se.fill=ce,Se.decal=q.decal;var Ae=Hd(_),Te=Hd(T),Oe=Hd(M);J(se,ce,q.opacity,null),se.setStyle(Se),se.ensureState("emphasis").style=Ae,se.ensureState("blur").style=Te,se.ensureState("select").style=Oe,ep(se)}fe.add(se)}function Y(fe){!fe.invisible&&i.push(fe)}function J(fe,se,_e,ve){var he=d.getModel(ve?eW:JH),q=Sa(d.get("name"),null),ce=he.getShallow("show");si(fe,Aa(d,ve?eW:JH),{defaultText:ce?q:null,inheritColor:se,defaultOpacity:_e,labelFetcher:t,labelDataIndex:o.dataIndex});var Se=fe.getTextContent();if(Se){var Ae=Se.style,Te=IT(Ae.padding||0);ve&&(fe.setTextConfig({layoutRect:ve}),Se.disableLabelLayout=!0),Se.beforeUpdate=function(){var He=Math.max((ve?ve.width:fe.shape.width)-Te[1]-Te[3],0),$e=Math.max((ve?ve.height:fe.shape.height)-Te[0]-Te[2],0);(Ae.width!==He||Ae.height!==$e)&&Se.setStyle({width:He,height:$e})},Ae.truncateMinChar=2,Ae.lineOverflow="truncate",re(Ae,ve,c);var Oe=Se.getState("emphasis");re(Oe?Oe.style:null,ve,c)}}function re(fe,se,_e){var ve=fe?fe.text:null;if(!se&&_e.isLeafRoot&&ve!=null){var he=t.get("drillDownIcon",!0);fe.text=he?he+" "+ve:ve}}function oe(fe,se,_e,ve){var he=m!=null&&n[fe][m],q=a[fe];return he?(n[fe][m]=null,ue(q,he)):g||(he=new se,he instanceof ds&&(he.z2=zxt(_e,ve)),le(q,he)),e[fe][y]=he}function ue(fe,se){var _e=fe[y]={};se instanceof GA?(_e.oldX=se.x,_e.oldY=se.y):_e.oldShape=Qe({},se.shape)}function le(fe,se){var _e=fe[y]={},ve=o.parentNode,he=se instanceof Xt;if(ve&&(!r||r.direction==="drillDown")){var q=0,ce=0,Se=a.background[ve.getRawIndex()];!r&&Se&&Se.oldShape&&(q=Se.oldShape.width,ce=Se.oldShape.height),he?(_e.oldX=0,_e.oldY=ce):_e.oldShape={x:q,y:ce,width:0,height:0}}_e.fadein=!he}}function zxt(t,e){return t*Bxt+e}const Uxt=Pxt;var W1=Z,Gxt=Wt,uC=-1,i$=function(){function t(e){var n=e.mappingMethod,r=e.type,a=this.option=Kt(e);this.type=r,this.mappingMethod=n,this._normalizeData=jxt[n];var i=t.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(Nk(a),Hxt(a)):n==="category"?a.categories?Wxt(a):Nk(a,!0):(bi(n!=="linear"||a.dataExtent),Nk(a))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return Dt(this._normalizeData,this)},t.listVisualTypes=function(){return Tn(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){Wt(e)?Z(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var a,i=at(e)?[]:Wt(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&&W1(t.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(n[i]=e[i],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(at(e))e=e.slice();else if(Gxt(e)){var n=[];W1(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||Mt(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(t_(f[1],e,c[1]))return o}else if(c[1]===1/0){if(t_(f[0],c[0],e))return o}else if(t_(f[0],c[0],e)&&t_(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,p){var v=Math.abs(h-e);v<i&&(i=v,a=p)}},t.visualHandlers={color:{applyVisual:by("color"),getColorMapper:function(){var e=this.option;return Dt(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),Ky.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=mm(n,e.parsedVisual,a),i?a:Xs(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Xs(mm(e,this.option.parsedVisual),"rgba")},category:Ky,piecewise:function(e,n){var r=WA.call(this,n);return r==null&&(r=Xs(mm(e,this.option.parsedVisual),"rgba")),r},fixed:Wd}},colorHue:e_(function(e,n){return Yv(e,n)}),colorSaturation:e_(function(e,n){return Yv(e,null,n)}),colorLightness:e_(function(e,n){return Yv(e,null,null,n)}),colorAlpha:e_(function(e,n){return C1(e,n)}),decal:{applyVisual:by("decal"),_normalizedToVisual:{linear:null,category:Ky,piecewise:null,fixed:null}},opacity:{applyVisual:by("opacity"),_normalizedToVisual:HA([0,1])},liftZ:{applyVisual:by("liftZ"),_normalizedToVisual:{linear:Wd,category:Wd,piecewise:Wd,fixed:Wd}},symbol:{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("symbol",a)},_normalizedToVisual:{linear:nW,category:Ky,piecewise:function(e,n){var r=WA.call(this,n);return r==null&&(r=nW.call(this,e)),r},fixed:Wd}},symbolSize:{applyVisual:by("symbolSize"),_normalizedToVisual:HA([0,1])}},t}();function Hxt(t){var e=t.pieceList;t.hasSpecialVisual=!1,Z(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function Wxt(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(W1(e,function(o,s){n[o]=s}),!at(r)){var a=[];Wt(r)?W1(r,function(o,s){var l=n[s];a[l??uC]=o}):a[uC]=r,r=tue(t,a)}for(var i=e.length-1;i>=0;i--)r[i]==null&&(delete n[e[i]],e.pop())}function Nk(t,e){var n=t.visual,r=[];Wt(n)?W1(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]),tue(t,r)}function e_(t){return{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("color",t(n("color"),a))},_normalizedToVisual:HA([0,1])}}function nW(t){var e=this.option.visual;return e[Math.round(tr(t,[0,1],[0,e.length-1],!0))]||{}}function by(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function Ky(t){var e=this.option.visual;return e[this.option.loop&&t!==uC?t%e.length:t]}function Wd(){return this.option.visual[0]}function HA(t){return{linear:function(e){return tr(e,t,this.option.visual,!0)},category:Ky,piecewise:function(e,n){var r=WA.call(this,n);return r==null&&(r=tr(e,t,this.option.visual,!0)),r},fixed:Wd}}function WA(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=i$.findPieceIndex(t,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function tue(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=ut(e,function(n){var r=Pi(n);return r||[0,0,0,1]})),e}var jxt={linear:function(t){return tr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=i$.findPieceIndex(t,e,!0);if(n!=null)return tr(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??uC},fixed:Qr};function t_(t,e,n){return t?e<=n:e<n}const ri=i$;var Kxt="itemStyle",nue=In();const Yxt={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||rue(n,{},t.getViewRoot().getAncestors(),t)}};function rue(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(Kxt),l=qxt(s,e,r),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=rW(l),c=Xxt(f,d)),u.stroke=c;var h=t.viewChildren;if(!h||!h.length)d=rW(l),u.fill=d;else{var p=Zxt(t,a,i,s,l,h);Z(h,function(v,g){if(v.depth>=n.length||v===n[v.depth]){var y=Qxt(a,l,v,g,p,r);rue(v,y,n,r)}})}}}function qxt(t,e,n){var r=Qe({},e),a=n.designatedVisualItemStyle;return Z(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=t.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function rW(t){var e=Vk(t,"color");if(e){var n=Vk(t,"colorAlpha"),r=Vk(t,"colorSaturation");return r&&(e=Yv(e,null,null,r)),n&&(e=C1(e,n)),e}}function Xxt(t,e){return e!=null?Yv(e,null,null,t):null}function Vk(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function Zxt(t,e,n,r,a,i){if(!(!i||!i.length)){var o=Bk(e,"color")||a.color!=null&&a.color!=="none"&&(Bk(e,"colorAlpha")||Bk(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 ri(f);return nue(d).drColorMappingBy=c,d}}}function Bk(t,e){var n=t.get(e);return at(n)&&n.length?{name:e,range:n}:null}function Qxt(t,e,n,r,a,i){var o=Qe({},e);if(a){var s=a.type,l=s==="color"&&nue(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 j1=Math.max,cC=Math.min,aW=Ma,o$=Z,aue=["itemStyle","borderWidth"],Jxt=["itemStyle","gapWidth"],e2t=["upperLabel","show"],t2t=["upperLabel","height"];const n2t={seriesType:"treemap",reset:function(t,e,n,r){var a=n.getWidth(),i=n.getHeight(),o=t.option,s=ga(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=wt(aW(s.width,l[0]),a),c=wt(aW(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=H1(r,d,t),p=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,v=t.getViewRoot(),g=Qle(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?l2t(t,h,v,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var b={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(w),iue(v,b,!1,0),w=v.getLayout(),o$(g,function(x,_){var T=(g[_+1]||v).getValue();x.setLayout(Qe({dataExtent:[T,T],borderWidth:0,upperHeight:0},w))})}var C=t.getData().tree.root;C.setLayout(u2t(s,p,h),!0),t.setLayoutInfo(s),oue(C,new dn(-s.x,-s.y,a,i),g,v,0)}};function iue(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(aue),u=s.get(Jxt)/2,c=sue(s),f=Math.max(l,c),d=l-u,h=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=j1(a-2*d,0),i=j1(i-d-h,0);var p=a*i,v=r2t(t,s,p,e,n,r);if(v.length){var g={x:d,y:h,width:a,height:i},y=cC(a,i),m=1/0,b=[];b.area=0;for(var w=0,C=v.length;w<C;){var x=v[w];b.push(x),b.area+=x.getLayout().area;var _=s2t(b,y,e.squareRatio);_<=m?(w++,m=_):(b.area-=b.pop().getLayout().area,iW(b,y,g,u,!1),y=cC(g.width,g.height),b.length=b.area=0,m=1/0)}if(b.length&&iW(b,y,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(n=!0)}for(var w=0,C=v.length;w<C;w++)iue(v[w],e,n,r+1)}}}function r2t(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=nr(o,function(h){return!h.isRemoved()}),i2t(o,s);var u=o2t(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=a2t(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 a2t(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 i2t(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 o2t(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],o$(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 s2t(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?j1(u*r/l,l/(u*a)):1/0}function iW(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],p={},v=c?h.getLayout().area/c:0,g=p[l[o]]=j1(c-2*r,0),y=n[s[i]]+n[l[i]]-u,m=f===d-1||y<v?y:v,b=p[l[i]]=j1(m-2*r,0);p[s[o]]=n[s[o]]+cC(r,g/2),p[s[i]]=u+cC(r,b/2),u+=m,h.setLayout(p,!0)}n[s[o]]+=c,n[l[o]]-=c}function l2t(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 p=i.getValue();if(p===0)return o;u*=c/p;var v=s.getModel(),g=v.get(aue),y=Math.max(g,sue(v));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>JO&&(u=JO),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,a*m]}function u2t(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 oue(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 dn(e.x-i.x,e.y-i.y,e.width,e.height);o$(t.viewChildren||[],function(u){oue(u,l,n,r,a+1)})}}function sue(t){return t.get(e2t)?t.get(t2t):0}function c2t(t){t.registerSeriesModel(Dxt),t.registerChartView(Uxt),t.registerVisual(Yxt),t.registerLayout(n2t),Txt(t)}function f2t(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){Bn(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function d2t(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){Mt(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Qe(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 n_(t){return t instanceof Array||(t=[t,t]),t}function h2t(t){t.eachSeriesByType("graph",function(e){var n=e.getGraph(),r=e.getEdgeData(),a=n_(e.get("edgeSymbol")),i=n_(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=n_(s.getShallow("symbol",!0)),c=n_(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(Qe(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 jA="-->",SE=function(t){return t.get("autoCurveness")||null},lue=function(t,e){var n=SE(t),r=20,a=[];if(Bn(n))r=n;else if(at(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},K1=function(t,e,n){var r=[t.id,t.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[n.uid,r,a].join(jA)},uue=function(t){var e=t.split(jA);return[e[0],e[2],e[1]].join(jA)},p2t=function(t,e){var n=K1(t.node1,t.node2,e);return e.__edgeMap[n]},v2t=function(t,e){var n=KA(K1(t.node1,t.node2,e),e),r=KA(K1(t.node2,t.node1,e),e);return n+r},KA=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function g2t(t){SE(t)&&(t.__curvenessList=[],t.__edgeMap={},lue(t))}function y2t(t,e,n,r){if(SE(n)){var a=K1(t,e,n),i=n.__edgeMap,o=i[uue(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 s$(t,e,n,r){var a=SE(e),i=at(a);if(!a)return null;var o=p2t(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=v2t(t,e);lue(e,u),t.lineStyle=t.lineStyle||{};var c=K1(t.node1,t.node2,e),f=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=uue(c),p=KA(h,e),v=f[s+p+d];return r?i?a&&a[0]===0?(p+d)%2?v:-v:((p%2?0:1)+d)%2?v:-v:(p+d)%2?v:-v:f[s+p+d]}function cue(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")])}),l$(n,t)}}function l$(t,e){t.eachEdge(function(n,r){var a=Ys(n.getModel().get(["lineStyle","curveness"]),-s$(n,e,r,!0),0),i=Ul(n.node1.getLayout()),o=Ul(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 m2t(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=[];Z(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])}l$(i.graph,n)}else(!r||r==="none")&&cue(n)})}function Yy(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 qy(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var oW=Math.PI,Ik=[];function u$(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],p=d[1],v=[h-l,p-u];pp(v,v),gm(v,v,c),n.setLayout([l+v[0],u+v[1]],!0);var g=t.get(["circular","rotateLabel"]);fue(n,g,l,u)}b2t[e](t,s,o,c,l,u,f),s.eachEdge(function(y,m){var b=Ys(y.getModel().get(["lineStyle","curveness"]),s$(y,t,m),0),w=Ul(y.node1.getLayout()),C=Ul(y.node2.getLayout()),x,_=(w[0]+C[0])/2,T=(w[1]+C[1])/2;+b&&(b*=3,x=[l*b+_*(1-b),u*b+T*(1-b)]),y.setLayout([w,C,x])})}}}var b2t={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;Ik.length=o;var l=Yy(t);e.eachNode(function(f){var d=qy(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=oW/2),Ik[f.dataIndex]=h,s+=h*2});var u=(2*oW-s)/o/2,c=0;e.eachNode(function(f){var d=u+Ik[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function fue(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");Qe(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function S2t(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&u$(e,"symbolSize")})}var Qp=D2;function w2t(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=Uf(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Ul(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,p,v;return{warmUp:function(){h=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){v=g},step:function(g){p&&p(r,a);for(var y=[],m=r.length,b=0;b<a.length;b++){var w=a[b];if(!w.ignoreForceLayout){var C=w.n1,x=w.n2;Xc(y,x.p,C.p);var _=w1(y)-w.d,T=x.w/(C.w+x.w);isNaN(T)&&(T=0),pp(y,y),!C.fixed&&Qp(C.p,C.p,y,T*_*h),!x.fixed&&Qp(x.p,x.p,y,-(1-T)*_*h)}}for(var b=0;b<m;b++){var M=r[b];M.fixed||(Xc(y,l,M.p),Qp(M.p,M.p,y,u*h))}for(var b=0;b<m;b++)for(var C=r[b],E=b+1;E<m;E++){var x=r[E];Xc(y,x.p,C.p);var _=w1(y);_===0&&(Xre(y,Math.random()-.5,Math.random()-.5),_=1);var k=(C.rep+x.rep)/_/_;!C.fixed&&Qp(C.pp,C.pp,y,k),!x.fixed&&Qp(x.pp,x.pp,y,-k)}for(var R=[],b=0;b<m;b++){var M=r[b];M.fixed||(Xc(R,M.p,M.pp),Qp(M.p,M.p,R,h),di(M.pp,M.p))}h=h*.992;var L=h<.01;v&&v(r,a,L),g&&g(L)}}}function _2t(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(b){var w=i.getId(b);i.setItemLayout(b,r[w]||[NaN,NaN])}):!l||l==="none"?cue(e):l==="circular"&&u$(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=at(f)?f:[f,f],p=at(d)?d:[d,d];p=[p[1],p[0]];var v=i.mapArray("value",function(b,w){var C=i.getItemLayout(w),x=tr(b,u,h);return isNaN(x)&&(x=(h[0]+h[1])/2),{w:x,rep:x,fixed:i.getItemModel(w).get("fixed"),p:!C||isNaN(C[0])||isNaN(C[1])?null:C}}),g=o.mapArray("value",function(b,w){var C=a.getEdgeByIndex(w),x=tr(b,c,p);isNaN(x)&&(x=(p[0]+p[1])/2);var _=C.getModel(),T=Ys(C.getModel().get(["lineStyle","curveness"]),-s$(C,e,w,!0),0);return{n1:v[C.node1.dataIndex],n2:v[C.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:_.get("ignoreForceLayout")}}),y=n.getBoundingRect(),m=w2t(v,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(b,w){for(var C=0,x=b.length;C<x;C++)b[C].fixed&&di(b[C].p,a.getNodeByIndex(C).getLayout())}),m.afterStep(function(b,w,C){for(var x=0,_=b.length;x<_;x++)b[x].fixed||a.getNodeByIndex(x).setLayout(b[x].p),r[i.getId(x)]=b[x].p;for(var x=0,_=w.length;x<_;x++){var T=w[x],M=a.getEdgeByIndex(x),E=T.n1.p,k=T.n2.p,R=M.getLayout();R=R?R.slice():[],R[0]=R[0]||[],R[1]=R[1]||[],di(R[0],E),di(R[1],k),+T.curveness&&(R[2]=[(E[0]+k[0])/2-(E[1]-k[1])*T.curveness,(E[1]+k[1])/2-(k[0]-E[0])*T.curveness]),M.setLayout(R)}}),e.forceLayout=m,e.preservedPoints=r,m.step()}else e.forceLayout=null})}function x2t(t,e,n){var r=Qe(t.getBoxLayoutParams(),{aspect:n});return ga(r,{width:e.getWidth(),height:e.getHeight()})}function C2t(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=[];jT(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=x2t(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,p=c.height,v=r.coordinateSystem=new Qb;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,h,p),v.setCenter(r.get("center"),e),v.setZoom(r.get("zoom")),n.push(v)}}),n}var sW=Da.prototype,$k=$b.prototype,due=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(due);function Pk(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var T2t=function(t){Ve(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 due},e.prototype.buildPath=function(n,r){Pk(r)?sW.buildPath.call(this,n,r):$k.buildPath.call(this,n,r)},e.prototype.pointAt=function(n){return Pk(this.shape)?sW.pointAt.call(this,n):$k.pointAt.call(this,n)},e.prototype.tangentAt=function(n){var r=this.shape,a=Pk(r)?[r.x2-r.x1,r.y2-r.y1]:$k.tangentAt.call(this,n);return pp(a,a)},e}(wn);const E2t=T2t;var Fk=["fromSymbol","toSymbol"];function lW(t){return"_"+t+"Type"}function uW(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=g0(a),u=mp(o||0,l);return r+l+u+(i||"")+(s||"")}function cW(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=g0(a),u=mp(o||0,l),c=oa(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 M2t(t){var e=new E2t({name:"line",subPixelOptimize:!0});return YA(e.shape,t),e}function YA(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 D2t=function(t){Ve(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=M2t(o);s.shape.percent=0,Mr(s,{shape:{percent:1}},i,r),this.add(s),Z(Fk,function(l){var u=cW(l,n,r);this.add(u),this[lW(l)]=uW(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:{}};YA(l.shape,s),zn(o,l,i,r),Z(Fk,function(u){var c=uW(u,n,r),f=lW(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=cW(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 p=n.getItemModel(r),v=p.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=v.get("disabled"),d=v.get("focus"),h=v.get("blurScope"),c=Aa(p)}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,Z(Fk,function(x){var _=this.childOfName(x);if(_){_.setColor(y),_.style.opacity=g.opacity;for(var T=0;T<Hi.length;T++){var M=Hi[T],E=o.getState(M);if(E){var k=E.style||{},R=_.ensureState(M),L=R.style||(R.style={});k.stroke!=null&&(L[_.__isEmptyBrush?"stroke":"fill"]=k.stroke),k.opacity!=null&&(L.opacity=k.opacity)}}_.markRedraw()}},this);var m=i.getRawValue(r);si(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(x,_){return i.getFormattedLabel(x,_,n.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?n.getName(r):isFinite(m)?Yr(m):m)+""});var b=this.getTextContent();if(b){var w=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=w.get("position")||"middle";var C=w.get("distance");at(C)||(C=[C,C]),b.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),Xr(this,d,h,f)},e.prototype.highlight=function(){Gu(this)},e.prototype.downplay=function(){Hu(this)},e.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},e.prototype.setLinePoints=function(n){var r=this.childOfName("line");YA(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=Xc([],f,c);pp(d,d);function h(E,k){var R=E.__specifiedRotation;if(R==null){var L=l.tangentAt(k);E.attr("rotation",(k===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else E.attr("rotation",R)}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 p=void 0,v=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,b=u/2,w=l.tangentAt(b),C=[w[1],-w[0]],x=l.pointAt(b);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var _=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-m,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=m,v="top";break;default:M=0,v="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*m+f[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*y+c[0],i.y=-d[1]*m+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*_+c[0],i.y=c[1]+M,p=w[0]<0?"right":"left",i.originX=-y*_,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+M,p="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*_+f[0],i.y=f[1]+M,p=w[0]>=0?"right":"left",i.originX=y*_,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||v,align:i.__align||p})}},e}(Xt);const c$=D2t;var k2t=function(){function t(e){this.group=new Xt,this._LineCtor=e||c$}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=fW(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=fW(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!R2t(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=n.getItemLayout(a);if(zk(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){Hf(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,n,r){var a=e.getItemLayout(n);if(zk(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(!zk(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 R2t(t){return t.animators&&t.animators.length>0}function fW(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:Aa(e)}}function dW(t){return isNaN(t[0])||isNaN(t[1])}function zk(t){return t&&!dW(t[0])&&!dW(t[1])}const f$=k2t;var Uk=[],Gk=[],Hk=[],Jp=Fa,Wk=uf,hW=Math.abs;function pW(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){Uk[0]=Jp(r[0],a[0],i[0],c),Uk[1]=Jp(r[1],a[1],i[1],c);var f=hW(Wk(Uk,e)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;Gk[0]=Jp(r[0],a[0],i[0],s),Gk[1]=Jp(r[1],a[1],i[1],s),Hk[0]=Jp(r[0],a[0],i[0],h),Hk[1]=Jp(r[1],a[1],i[1],h);var f=Wk(Gk,e)-l;if(hW(f)<.01)break;var p=Wk(Hk,e)-l;u/=2,f<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function jk(t,e){var n=[],r=_1,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=[Ul(u[0]),Ul(u[1])],u[2]&&u.__original.push(Ul(u[2])));var d=u.__original;if(u[2]!=null){if(di(a[0],d[0]),di(a[1],d[2]),di(a[2],d[1]),c&&c!=="none"){var h=qy(s.node1),p=pW(a,d[0],h*e);r(a[0][0],a[1][0],a[2][0],p,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],p,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var h=qy(s.node2),p=pW(a,d[1],h*e);r(a[0][0],a[1][0],a[2][0],p,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],p,n),a[1][1]=n[1],a[2][1]=n[2]}di(u[0],a[0]),di(u[1],a[2]),di(u[2],a[1])}else{if(di(i[0],d[0]),di(i[1],d[1]),Xc(o,i[1],i[0]),pp(o,o),c&&c!=="none"){var h=qy(s.node1);D2(i[0],i[0],o,h*e)}if(f&&f!=="none"){var h=qy(s.node2);D2(i[1],i[1],o,-h*e)}di(u[0],i[0]),di(u[1],i[1])}})}function vW(t){return t.type==="view"}var L2t=function(t){Ve(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 Kb,i=new f$,o=this.group;this._controller=new Zb(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(vW(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):zn(u,c,n)}jk(n.getGraph(),Yy(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,p=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=n.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,C=b.getGraphicEl(),x=b.getModel();if(C){C.off("drag").off("dragend");var _=x.get("draggable");_&&C.on("drag",function(M){switch(v){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),b.setLayout({fixed:!0},!0),u$(n,"symbolSize",b,[M.offsetX,M.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),l$(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),C.setDraggable(_,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(rn(C).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),C=b.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(rn(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(b){fue(b,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!yE(u,a,n)}),!vW(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){QI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){JI(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(),jk(n.getGraph(),Yy(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Yy(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(n){jk(n.getGraph(),Yy(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}(cr);const O2t=L2t;function ev(t){return"_EC_"+t}var A2t=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[ev(e)]){var a=new jd(e,n);return a.hostGraph=this,this.nodes.push(a),r[ev(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[ev(e)]},t.prototype.addEdge=function(e,n,r){var a=this._nodesMap,i=this._edgesMap;if(Bn(e)&&(e=this.nodes[e]),Bn(n)&&(n=this.nodes[n]),e instanceof jd||(e=a[ev(e)]),n instanceof jd||(n=a[ev(n)]),!(!e||!n)){var o=e.id+"-"+n.id,s=new hue(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 jd&&(e=e.id),n instanceof jd&&(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 jd||(n=this._nodesMap[ev(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}(),jd=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=It(),n=It(),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}(),hue=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=It(),n=It();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 pue(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)}}}ea(jd,pue("hostGraph","data"));ea(hue,pue("hostGraph","edgeData"));const N2t=A2t;function vue(t,e,n,r,a){for(var i=new N2t(r),o=0;o<t.length;o++)i.addNode(Ma(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(Ma(Sa(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=iu(t,n);else{var v=h0.get(h),g=v?v.dimensions||[]:[];vn(g,"value")<0&&g.concat(["value"]);var y=y0(t,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;p=new gi(y,n),p.initData(t)}var m=new gi(["value"],n);return m.initData(l,s),a&&a(p,m),Xle({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var V2t=function(t){Ve(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 Xb(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),Zh(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){g2t(this);var s=vue(i,a,this,!0,l);return Z(s.edges,function(u){y2t(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),y=v[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=lr.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Na("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=Aoe({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=ut(this.option.categories||[],function(a){return a.value!=null?a:Qe({value:0},a)}),r=new gi(["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}(wr);const B2t=V2t;var I2t={type:"graphRoam",event:"graphRoam",update:"none"};function $2t(t){t.registerChartView(O2t),t.registerSeriesModel(B2t),t.registerProcessor(f2t),t.registerVisual(d2t),t.registerVisual(h2t),t.registerLayout(m2t),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,S2t),t.registerLayout(_2t),t.registerCoordinateSystem("graphView",{dimensions:Qb.dimensions,create:C2t}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Qr),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Qr),t.registerAction(I2t,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=t$(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var P2t=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),F2t=function(t){Ve(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new P2t},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}(wn);const z2t=F2t;function U2t(t,e){var n=t.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=wt(n[0],e.getWidth()),s=wt(n[1],e.getHeight()),l=wt(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function r_(t,e){var n=t==null?"":t+"";return e&&(Mt(e)?n=e.replace("{value}",n):zt(e)&&(n=e(t))),n}var G2t=function(t){Ve(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=U2t(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?iC:Wi,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),y=[u,c];jae(y,!l),u=y[0],c=y[1];for(var m=c-u,b=u,w=[],C=0;p&&C<i.length;C++){var x=Math.min(Math.max(i[C][0],0),1);c=u+m*x;var _=new h({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});_.setStyle({fill:i[C][1]}),_.setStyle(v.getLineStyle(["color","width"])),w.push(_),b=c}w.reverse(),Z(w,function(M){return s.add(M)});var T=function(M){if(M<=0)return i[0][1];var E;for(E=0;E<i.length;E++)if(i[E][0]>=M&&(E===0?0:i[E-1][0])<M)return i[E][1];return i[E-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,p=o.r,v=+n.get("min"),g=+n.get("max"),y=n.getModel("splitLine"),m=n.getModel("axisTick"),b=n.getModel("axisLabel"),w=n.get("splitNumber"),C=m.get("splitNumber"),x=wt(y.get("length"),p),_=wt(m.get("length"),p),T=s,M=(l-s)/w,E=M/C,k=y.getModel("lineStyle").getLineStyle(),R=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),A,V,G=0;G<=w;G++){if(A=Math.cos(T),V=Math.sin(T),y.get("show")){var I=L?L+c:c,$=new Da({shape:{x1:A*(p-I)+d,y1:V*(p-I)+h,x2:A*(p-x-I)+d,y2:V*(p-x-I)+h},style:k,silent:!0});k.stroke==="auto"&&$.setStyle({stroke:i(G/w)}),f.add($)}if(b.get("show")){var I=b.get("distance")+L,N=r_(Yr(G/w*(g-v)+v),b.get("formatter")),P=i(G/w),Y=A*(p-x-I)+d,J=V*(p-x-I)+h,re=b.get("rotate"),oe=0;re==="radial"?(oe=-T+2*Math.PI,oe>Math.PI/2&&(oe+=Math.PI)):re==="tangential"?oe=-T-Math.PI/2:Bn(re)&&(oe=re*Math.PI/180),oe===0?f.add(new On({style:gr(b,{text:N,x:Y,y:J,verticalAlign:V<-.8?"top":V>.8?"bottom":"middle",align:A<-.4?"left":A>.4?"right":"center"},{inheritColor:P}),silent:!0})):f.add(new On({style:gr(b,{text:N,x:Y,y:J,verticalAlign:"middle",align:"center"},{inheritColor:P}),silent:!0,originX:Y,originY:J,rotation:oe}))}if(m.get("show")&&G!==w){var I=m.get("distance");I=I?I+c:c;for(var ue=0;ue<=C;ue++){A=Math.cos(T),V=Math.sin(T);var le=new Da({shape:{x1:A*(p-I)+d,y1:V*(p-I)+h,x2:A*(p-_-I)+d,y2:V*(p-_-I)+h},silent:!0,style:R});R.stroke==="auto"&&le.setStyle({stroke:i((G+ue/C)/w)}),f.add(le),T+=E}T-=E}else T+=M}},e.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=n.get(["pointer","show"]),g=n.getModel("progress"),y=g.get("show"),m=n.getData(),b=m.mapDimension("value"),w=+n.get("min"),C=+n.get("max"),x=[w,C],_=[s,l];function T(E,k){var R=m.getItemModel(E),L=R.getModel("pointer"),A=wt(L.get("width"),o.r),V=wt(L.get("length"),o.r),G=n.get(["pointer","icon"]),I=L.get("offsetCenter"),$=wt(I[0],o.r),N=wt(I[1],o.r),P=L.get("keepAspect"),Y;return G?Y=oa(G,$-A/2,N-V,A,V,null,P):Y=new z2t({shape:{angle:-Math.PI/2,width:A,r:V,x:$,y:N}}),Y.rotation=-(k+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function M(E,k){var R=g.get("roundCap"),L=R?iC:Wi,A=g.get("overlap"),V=A?g.get("width"):c/m.count(),G=A?o.r-V:o.r-(E+1)*V,I=A?o.r:o.r-E*V,$=new L({shape:{startAngle:s,endAngle:k,cx:o.cx,cy:o.cy,clockwise:u,r0:G,r:I}});return A&&($.z2=C-m.get(b,E)%C),$}(y||v)&&(m.diff(d).add(function(E){var k=m.get(b,E);if(v){var R=T(E,s);Mr(R,{rotation:-((isNaN(+k)?_[0]:tr(k,x,_,!0))+Math.PI/2)},n),f.add(R),m.setItemGraphicEl(E,R)}if(y){var L=M(E,s),A=g.get("clip");Mr(L,{shape:{endAngle:tr(k,x,_,A)}},n),f.add(L),iA(n.seriesIndex,m.dataType,E,L),p[E]=L}}).update(function(E,k){var R=m.get(b,E);if(v){var L=d.getItemGraphicEl(k),A=L?L.rotation:s,V=T(E,A);V.rotation=A,zn(V,{rotation:-((isNaN(+R)?_[0]:tr(R,x,_,!0))+Math.PI/2)},n),f.add(V),m.setItemGraphicEl(E,V)}if(y){var G=h[k],I=G?G.shape.endAngle:s,$=M(E,I),N=g.get("clip");zn($,{shape:{endAngle:tr(R,x,_,N)}},n),f.add($),iA(n.seriesIndex,m.dataType,E,$),p[E]=$}}).execute(),m.each(function(E){var k=m.getItemModel(E),R=k.getModel("emphasis"),L=R.get("focus"),A=R.get("blurScope"),V=R.get("disabled");if(v){var G=m.getItemGraphicEl(E),I=m.getItemVisual(E,"style"),$=I.fill;if(G instanceof Ya){var N=G.style;G.useStyle(Qe({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},I))}else G.useStyle(I),G.type!=="pointer"&&G.setColor($);G.setStyle(k.getModel(["pointer","itemStyle"]).getItemStyle()),G.style.fill==="auto"&&G.setStyle("fill",i(tr(m.get(b,E),x,[0,1],!0))),G.z2EmphasisLift=0,oi(G,k),Xr(G,L,A,V)}if(y){var P=p[E];P.useStyle(m.getItemVisual(E,"style")),P.setStyle(k.getModel(["progress","itemStyle"]).getItemStyle()),P.z2EmphasisLift=0,oi(P,k),Xr(P,L,A,V)}}),this._progressEls=p)},e.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=oa(s,r.cx-o/2+wt(l[0],r.r),r.cy-o/2+wt(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 Xt,h=[],p=[],v=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new On({silent:!0}),p[y]=new On({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),b=l.get(u,y),w=new Xt,C=i(tr(b,[c,f],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var _=x.get("offsetCenter"),T=o.cx+wt(_[0],o.r),M=o.cy+wt(_[1],o.r),E=h[y];E.attr({z2:g?0:2,style:gr(x,{x:T,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(E)}var k=m.getModel("detail");if(k.get("show")){var R=k.get("offsetCenter"),L=o.cx+wt(R[0],o.r),A=o.cy+wt(R[1],o.r),V=wt(k.get("width"),o.r),G=wt(k.get("height"),o.r),I=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,E=p[y],$=k.get("formatter");E.attr({z2:g?0:2,style:gr(k,{x:L,y:A,text:r_(b,$),width:isNaN(V)?null:V,height:isNaN(G)?null:G,align:"center",verticalAlign:"middle"},{inheritColor:I})}),$ie(E,{normal:k},b,function(P){return r_(P,$)}),v&&Pie(E,y,l,n,{getFormattedLabel:function(P,Y,J,re,oe,ue){return r_(ue?ue.interpolatedValue:b,$)}}),w.add(E)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(cr);const H2t=G2t;var W2t=function(t){Ve(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 b0(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}(wr);const j2t=W2t;function K2t(t){t.registerChartView(H2t),t.registerSeriesModel(j2t)}var Y2t=["itemStyle","opacity"],q2t=function(t){Ve(e,t);function e(n,r){var a=t.call(this)||this,i=a,o=new qi,s=new On;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(Y2t);c=c??1,a||rl(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Mr(i,{style:{opacity:c}},o,r)):zn(i,{style:{opacity:c},shape:{points:l.points}},o,r),oi(i,s),this._updateLabel(n,r),Xr(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;si(o,Aa(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 cn(h[0][0],h[0][1]):null},zn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),GI(a,HI(l),{stroke:d})},e}(ji),X2t=function(t){Ve(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 q2t(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);O1(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}(cr);const Z2t=X2t;var Q2t=function(t){Ve(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 Xb(Dt(this.getData,this),Dt(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return b0(this,{coordDimensions:["value"],encodeDefaulter:nn(pI,this)})},e.prototype._defaultLabelLine=function(n){Zh(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}(wr);const J2t=Q2t;function eCt(t,e){return ga(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function tCt(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 zt(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function nCt(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,p;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"),p=[[d,h],[d,h]];else{var v=void 0,g=void 0,y=void 0,m=void 0,b=s.get("length");o==="left"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=v-b,d=y-5,f="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=v+b,d=y+5,f="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-b,h=m-5,f="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+b,h=m+5,f="center"):o==="rightTop"?(v=n==="horizontal"?u[3][0]:u[1][0],g=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(m=g-b,h=m-5,f="center"):(y=v+b,d=y+5,f="top")):o==="rightBottom"?(v=u[2][0],g=u[2][1],n==="horizontal"?(m=g+b,h=m+5,f="center"):(y=v+b,d=y+5,f="bottom")):o==="leftTop"?(v=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(m=g-b,h=m-5,f="center"):(y=v-b,d=y-5,f="right")):o==="leftBottom"?(v=n==="horizontal"?u[1][0]:u[3][0],g=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(m=g+b,h=m+5,f="center"):(y=v-b,d=y-5,f="right")):(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,n==="horizontal"?(m=g+b,h=m+5,f="center"):(y=v+b,d=y+5,f="left")),n==="horizontal"?(y=v,d=y):(m=g,h=m),p=[[v,g],[y,m]]}l.label={linePoints:p,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function rCt(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=eCt(n,e),s=n.get("orient"),l=o.width,u=o.height,c=tCt(r,i),f=o.x,d=o.y,h=s==="horizontal"?[wt(n.get("minSize"),u),wt(n.get("maxSize"),u)]:[wt(n.get("minSize"),l),wt(n.get("maxSize"),l)],p=r.getDataExtent(a),v=n.get("min"),g=n.get("max");v==null&&(v=Math.min(p[0],0)),g==null&&(g=p[1]);var y=n.get("funnelAlign"),m=n.get("gap"),b=s==="horizontal"?l:u,w=(b-m*(r.count()-1))/r.count(),C=function(A,V){if(s==="horizontal"){var G=r.get(a,A)||0,I=tr(G,[v,g],h,!0),$=void 0;switch(y){case"top":$=d;break;case"center":$=d+(u-I)/2;break;case"bottom":$=d+(u-I);break}return[[V,$],[V,$+I]]}var N=r.get(a,A)||0,P=tr(N,[v,g],h,!0),Y;switch(y){case"left":Y=f;break;case"center":Y=f+(l-P)/2;break;case"right":Y=f+l-P;break}return[[Y,V],[Y+P,V]]};i==="ascending"&&(w=-w,m=-m,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var x=0;x<c.length;x++){var _=c[x],T=c[x+1],M=r.getItemModel(_);if(s==="horizontal"){var E=M.get(["itemStyle","width"]);E==null?E=w:(E=wt(E,l),i==="ascending"&&(E=-E));var k=C(_,f),R=C(T,f+E);f+=E+m,r.setItemLayout(_,{points:k.concat(R.slice().reverse())})}else{var L=M.get(["itemStyle","height"]);L==null?L=w:(L=wt(L,u),i==="ascending"&&(L=-L));var k=C(_,d),R=C(T,d+L);d+=L+m,r.setItemLayout(_,{points:k.concat(R.slice().reverse())})}}nCt(r)})}function aCt(t){t.registerChartView(Z2t),t.registerSeriesModel(J2t),t.registerLayout(rCt),t.registerProcessor(qb("funnel"))}var iCt=.3,oCt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Xt,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=yW(n);s.diff(l).add(d).update(h).remove(p).execute();function d(g){var y=gW(s,o,g,c,u);Kk(y,s,g,f)}function h(g,y){var m=l.getItemGraphicEl(y),b=gue(s,g,c,u);s.setItemGraphicEl(g,m),zn(m,{shape:{points:b}},n,g),rl(m),Kk(m,s,g,f)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var v=sCt(u,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}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=yW(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=gW(i,this._dataGroup,c,s,o);f.incremental=!0,Kk(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(cr);function sCt(t,e,n){var r=t.model,a=t.getRect(),i=new An({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),Mr(i,{shape:{width:a.width,height:a.height}},e,n),i}function gue(t,e,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=t.get(t.mapDimension(o),e);lCt(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function gW(t,e,n,r,a){var i=gue(t,n,r,a),o=new qi({shape:{points:i},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function yW(t){var e=t.get("smooth",!0);return e===!0&&(e=iCt),e=Ql(e),Rg(e)&&(e=0),{smooth:e}}function Kk(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");oi(t,a,"lineStyle"),Xr(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function lCt(t,e){return e==="category"?t==null:t==null||isNaN(t)}const uCt=oCt;var cCt=function(t){Ve(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 iu(null,this,{useEncodeDefaulter:Dt(fCt,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}(wr);function fCt(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Z(e.dimensions,function(r){var a=dCt(r);n[r]=a}),n}}function dCt(t){return+t.replace("dim","")}const hCt=cCt;var pCt=["lineStyle","opacity"],vCt={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(pCt,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const gCt=vCt;function yCt(t){mCt(t),bCt(t)}function mCt(t){if(!t.parallel){var e=!1;Z(t.series,function(n){n&&n.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function bCt(t){var e=ur(t.parallelAxis);Z(e,function(n){if(Wt(n)){var r=n.parallelIndex||0,a=ur(t.parallel)[r];a&&a.parallelAxisDefault&&un(n,a.parallelAxisDefault,!1)}})}var SCt=5,wCt=function(t){Ve(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={},Z(_Ct,function(i,o){a.getZr().on(o,this._handlers[o]=Dt(i,this))},this)),v0(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(n,r){I1(this,"_throttledDispatchExpand"),Z(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(Qe({type:"parallelAxisExpand"},n))},e.type="parallel",e}(Lr),_Ct={mousedown:function(t){Yk(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Yk(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>SCt)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||!Yk(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 Yk(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const xCt=wCt;var CCt=function(t){Ve(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&&un(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){Z(["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=nr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);Z(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}(kn);const TCt=CCt;var ECt=function(t){Ve(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}(ys);const MCt=ECt;function wp(t,e,n,r,a,i){t=t||0;var o=n[1]-n[0];if(a!=null&&(a=tv(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=tv(s,[0,o]),a=i=tv(s,[a,i]),r=0}e[0]=tv(e[0],n),e[1]=tv(e[1],n);var l=qk(e,r);e[r]+=t;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=tv(e[r],c);var f;return f=qk(e,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(e[1-r]=e[r]+l.sign*a),f=qk(e,r),i!=null&&f.span>i&&(e[1-r]=e[r]+f.sign*i),e}function qk(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 tv(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var Xk=Z,yue=Math.min,mue=Math.max,mW=Math.floor,DCt=Math.ceil,bW=Yr,kCt=Math.PI,RCt=function(){function t(e,n,r){this.type="parallel",this._axesMap=It(),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;Xk(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new MCt(o,Hb(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();Xk(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),np(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=ga(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=a_(e.get("axisExpandWidth"),l),f=a_(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=a_(h[1]-h[0],l),h[1]=h[0]+p;else{p=a_(c*(f-1),l);var v=e.get("axisExpandCenter")||mW(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var y=[mW(bW(h[0]/c,1))+1,DCt(bW(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])}),Xk(r,function(o,s){var l=(a.axisExpandable?OCt:LCt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:kCt/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],d=c[i],h=Do();Gf(h,h,d),el(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=[];Z(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,p=o.length;h<p;h++){var v=l[h].getActiveState(d[h]);if(v==="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 Zs([e,0],r.transform)},t.prototype.getAxisLayout=function(e){return Kt(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?wp(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[mue(0,p-h/2)],a[1]=yue(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},t}();function a_(t,e){return yue(mue(t,e[0]),e[1])}function LCt(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function OCt(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 ACt=RCt;function NCt(t,e){var n=[];return t.eachComponent("parallel",function(r,a){var i=new ACt(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",ca).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var VCt={create:NCt};const BCt=VCt;var bue=function(t){Ve(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 Jh([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Kt(n);if(r)for(var a=r.length-1;a>=0;a--)Co(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}(kn);ea(bue,m0);const SW=bue;var rp=!0,Y1=Math.min,Bg=Math.max,ICt=Math.pow,$Ct=1e4,PCt=6,FCt=6,wW="globalPan",zCt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},UCt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},_W={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},GCt=0,HCt=function(t){Ve(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new Xt,r._uid="brushController_"+GCt++,Z(ZCt,function(a,i){this._handlers[i]=Dt(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||e_t(r,wW,this._uid),Z(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=un(Kt(_W),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;t_t(n,wW,this._uid),Z(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={};Z(n,function(a){r[a.panelId]=Kt(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=ut(n,function(d){return un(Kt(_W),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Wu(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 p=n[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var v=i[d]=h!=null?(a[h].__brushOption=p,a[h]):wue(o,Sue(o,p));d$(o,v)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),qA(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(hs);function Sue(t,e){var n=wE[e.brushType].createCover(t,e);return n.__brushOption=e,xue(n,e),t.group.add(n),n}function wue(t,e){var n=h$(e);return n.endCreating&&(n.endCreating(t,e),xue(e,e.__brushOption)),e}function _ue(t,e){var n=e.__brushOption;h$(e).updateCoverShape(t,e,n.range,n)}function xue(t,e){var n=e.z;n==null&&(n=$Ct),t.traverse(function(r){r.z=n,r.z2=n})}function d$(t,e){h$(e).updateCommon(t,e),_ue(t,e)}function h$(t){return wE[t.__brushOption.brushType]}function p$(t,e,n){var r=t._panels;if(!r)return rp;var a,i=t._transform;return Z(r,function(o){o.isTargetByCursor(e,n,i)&&(a=o)}),a}function Cue(t,e){var n=t._panels;if(!n)return rp;var r=e.__brushOption.panelId;return r!=null?n[r]:rp}function qA(t){var e=t._covers,n=e.length;return Z(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function ap(t,e){var n=ut(t._covers,function(r){var a=r.__brushOption,i=Kt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function WCt(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=ICt(a*a+i*i,.5);return o>PCt}function Tue(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Eue(t,e,n,r){var a=new Xt;return a.add(new An({name:"main",style:v$(n),silent:!0,draggable:!0,cursor:"move",drift:nn(xW,t,e,a,["n","s","w","e"]),ondragend:nn(ap,e,{isEnd:!0})})),Z(r,function(i){a.add(new An({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:nn(xW,t,e,a,i),ondragend:nn(ap,e,{isEnd:!0})}))}),a}function Mue(t,e,n,r){var a=r.brushStyle.lineWidth||0,i=Bg(a,FCt),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,h=f-i+a/2,p=c-o,v=f-s,g=p+a,y=v+a;hu(t,e,"main",o,s,p,v),r.transformable&&(hu(t,e,"w",l,u,i,y),hu(t,e,"e",d,u,i,y),hu(t,e,"n",l,u,g,i),hu(t,e,"s",l,h,g,i),hu(t,e,"nw",l,u,i,i),hu(t,e,"ne",d,u,i,i),hu(t,e,"sw",l,h,i,i),hu(t,e,"se",d,h,i,i))}function XA(t,e){var n=e.__brushOption,r=n.transformable,a=e.childAt(0);a.useStyle(v$(n)),a.attr({silent:!r,cursor:r?"move":"default"}),Z([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?ZA(t,i[0]):KCt(t,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?UCt[s]+"-resize":null})})}function hu(t,e,n,r,a,i,o){var s=e.childOfName(n);s&&s.setShape(qCt(g$(t,e,[[r,a],[r+i,a+o]])))}function v$(t){return Ht({strokeNoScale:!0},t.brushStyle)}function Due(t,e,n,r){var a=[Y1(t,n),Y1(e,r)],i=[Bg(t,n),Bg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function jCt(t){return df(t.group)}function ZA(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=JT(n[e],jCt(t));return r[a]}function KCt(t,e){var n=[ZA(t,e[0]),ZA(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function xW(t,e,n,r,a,i){var o=n.__brushOption,s=t.toRectRange(o.range),l=kue(e,a,i);Z(r,function(u){var c=zCt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(Due(s[0][0],s[1][0],s[0][1],s[1][1])),d$(e,n),ap(e,{isEnd:!1})}function YCt(t,e,n,r){var a=e.__brushOption.range,i=kue(t,n,r);Z(a,function(o){o[0]+=i[0],o[1]+=i[1]}),d$(t,e),ap(t,{isEnd:!1})}function kue(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 g$(t,e,n){var r=Cue(t,e);return r&&r!==rp?r.clipPath(n,t._transform):Kt(n)}function qCt(t){var e=Y1(t[0][0],t[1][0]),n=Y1(t[0][1],t[1][1]),r=Bg(t[0][0],t[1][0]),a=Bg(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:a-n}}function XCt(t,e,n){if(!(!t._brushType||QCt(t,e.offsetX,e.offsetY))){var r=t._zr,a=t._covers,i=p$(t,e,n);if(!t._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===rp||s.panelId===i.panelId)&&wE[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function QA(t){var e=t.event;e.preventDefault&&e.preventDefault()}function JA(t,e,n){return t.childOfName("main").contain(e,n)}function Rue(t,e,n,r){var a=t._creatingCover,i=t._creatingPanel,o=t._brushOption,s;if(t._track.push(n.slice()),WCt(t)||a){if(i&&!a){o.brushMode==="single"&&qA(t);var l=Kt(o);l.brushType=CW(l.brushType,i),l.panelId=i===rp?null:i.panelId,a=t._creatingCover=Sue(t,l),t._covers.push(a)}if(a){var u=wE[CW(t._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(g$(t,a,t._track)),r&&(wue(t,a),u.updateCommon(t,a)),_ue(t,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&p$(t,e,n)&&qA(t)&&(s={isEnd:r,removeOnClick:!0});return s}function CW(t,e){return t==="auto"?e.defaultBrushType:t}var ZCt={mousedown:function(t){if(this._dragging)TW(this,t);else if(!t.target||!t.target.draggable){QA(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=p$(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(XCt(this,t,r),this._dragging){QA(t);var a=Rue(this,t,r,!1);a&&ap(this,a)}},mouseup:function(t){TW(this,t)}};function TW(t,e){if(t._dragging){QA(e);var n=e.offsetX,r=e.offsetY,a=t.group.transformCoordToLocal(n,r),i=Rue(t,e,a,!0);t._dragging=!1,t._track=[],t._creatingCover=null,i&&ap(t,i)}}function QCt(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var wE={lineX:EW(0),lineY:EW(1),rect:{createCover:function(t,e){function n(r){return r}return Eue({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Tue(t);return Due(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){Mue(t,e,n,r)},updateCommon:XA,contain:JA},polygon:{createCover:function(t,e){var n=new Xt;return n.add(new qi({name:"main",style:v$(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new ji({name:"main",draggable:!0,drift:nn(YCt,t,e),ondragend:nn(ap,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:g$(t,e,n)})},updateCommon:XA,contain:JA}};function EW(t){return{createCover:function(e,n){return Eue({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=Tue(e),r=Y1(n[0][t],n[1][t]),a=Bg(n[0][t],n[1][t]);return[r,a]},updateCoverShape:function(e,n,r,a){var i,o=Cue(e,n);if(o!==rp&&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(),Mue(e,n,l,a)},updateCommon:XA,contain:JA}}const y$=HCt;function Lue(t){return t=m$(t),function(e){return rI(e,t)}}function Oue(t,e){return t=m$(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 Aue(t,e,n){var r=m$(t);return function(a,i){return r.contain(i[0],i[1])&&!yE(a,e,n)}}function m$(t){return dn.create(t)}var JCt=["axisLine","axisTickLabel","axisName"],eTt=function(t){Ve(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 y$(r.getZr())).on("brush",Dt(this._onBrush,this))},e.prototype.render=function(n,r,a,i){if(!tTt(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Xt,this.group.add(this._axisGroup),!!n.get("show")){var s=rTt(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Qe({strokeContainThreshold:c},d),p=new Ku(n,h);Z(JCt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,n,s,c,a),Fb(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=dn.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:Lue(f),isTargetByCursor:Aue(f,s,i),getLinearBrushOtherExtent:Oue(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(nTt(a))},e.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=ut(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}(Lr);function tTt(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function nTt(t){var e=t.axis;return ut(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function rTt(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const aTt=eTt;var iTt={type:"axisAreaSelect",event:"axisAreaSelected"};function oTt(t){t.registerAction(iTt,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 sTt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Nue(t){t.registerComponentView(xCt),t.registerComponentModel(TCt),t.registerCoordinateSystem("parallel",BCt),t.registerPreprocessor(yCt),t.registerComponentModel(SW),t.registerComponentView(aTt),Vg(t,"parallel",SW,sTt),oTt(t)}function lTt(t){mn(Nue),t.registerChartView(uCt),t.registerSeriesModel(hCt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,gCt)}var uTt=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}(),cTt=function(t){Ve(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new uTt},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(){Gu(this)},e.prototype.downplay=function(){Hu(this)},e}(wn),fTt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return e.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new cTt,g=rn(v);g.dataIndex=p.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),b=m.get("curveness"),w=p.node1.getLayout(),C=p.node1.getModel(),x=C.get("localX"),_=C.get("localY"),T=p.node2.getLayout(),M=p.node2.getModel(),E=M.get("localX"),k=M.get("localY"),R=p.getLayout(),L,A,V,G,I,$,N,P;v.shape.extent=Math.max(1,R.dy),v.shape.orient=h,h==="vertical"?(L=(x!=null?x*u:w.x)+R.sy,A=(_!=null?_*c:w.y)+w.dy,V=(E!=null?E*u:T.x)+R.ty,G=k!=null?k*c:T.y,I=L,$=A*(1-b)+G*b,N=V,P=A*b+G*(1-b)):(L=(x!=null?x*u:w.x)+w.dx,A=(_!=null?_*c:w.y)+R.sy,V=E!=null?E*u:T.x,G=(k!=null?k*c:T.y)+R.ty,I=L*(1-b)+V*b,$=A,N=L*b+V*(1-b),P=G),v.setShape({x1:L,y1:A,x2:V,y2:G,cpx1:I,cpy1:$,cpx2:N,cpy2:P}),v.useStyle(m.getItemStyle()),MW(v.style,h,p);var Y=""+y.get("value"),J=Aa(y,"edgeLabel");si(v,J,{labelFetcher:{getFormattedLabel:function(ue,le,fe,se,_e,ve){return n.getFormattedLabel(ue,le,"edge",se,Ys(_e,J.normal&&J.normal.get("formatter"),Y),ve)}},labelDataIndex:p.dataIndex,defaultText:Y}),v.setTextConfig({position:"inside"});var re=y.getModel("emphasis");oi(v,y,"lineStyle",function(ue){var le=ue.getItemStyle();return MW(le,h,p),le}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var oe=re.get("focus");Xr(v,oe==="adjacency"?p.getAdjacentDataIndices():oe==="trajectory"?p.getTrajectoryDataIndices():oe,re.get("blurScope"),re.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),b=g.getModel("emphasis"),w=new An({shape:{x:y!=null?y*u:v.x,y:m!=null?m*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});si(w,Aa(g),{labelFetcher:{getFormattedLabel:function(x,_){return n.getFormattedLabel(x,_,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),w.disableLabelAnimation=!0,w.setStyle("fill",p.getVisual("color")),w.setStyle("decal",p.getVisual("style").decal),oi(w,g),s.add(w),f.setItemGraphicEl(p.dataIndex,w),rn(w).dataType="node";var C=b.get("focus");Xr(w,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(dTt(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(cr);function MW(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");Mt(r)&&Mt(a)&&(t.fill=new a0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function dTt(t,e,n){var r=new An({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Mr(r,{shape:{width:t.width+20}},e,n),r}const hTt=fTt;var pTt=function(t){Ve(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 lr(o[l],this,r));if(i&&a){var u=vue(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var y=g.depth,m=v.levelModels[y];m&&(h.parentModel=m)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,b=v.levelModels[m];b&&(h.parentModel=b)}return h})}},e.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Na("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 Na("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}(wr);const vTt=pTt;function gTt(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=yTt(n,e);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;bTt(u);var f=nr(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),p=n.get("nodeAlign");mTt(u,c,r,a,o,s,d,h,p)})}function yTt(t,e){return ga(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function mTt(t,e,n,r,a,i,o,s,l){STt(t,e,n,a,i,s,l),CTt(t,e,i,a,r,o,s),ATt(t,s)}function bTt(t){Z(t,function(e){var n=vf(e.outEdges,fC),r=vf(e.inEdges,fC),a=e.getValue()||0,i=Math.max(n,r,a);e.setLayout({value:i},!0)})}function STt(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 p=0;p<u.length;p++){var v=u[p],g=v.hostGraph.data.getRawDataItem(v.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),v.setLayout({depth:y?g.depth:f},!0),i==="vertical"?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var m=0;m<v.outEdges.length;m++){var b=v.outEdges[m],w=e.indexOf(b);s[w]=0;var C=b.node2,x=t.indexOf(C);--l[x]===0&&c.indexOf(C)<0&&c.push(C)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var _=h>f-1?h:f-1;o&&o!=="left"&&wTt(t,o,i,_);var T=i==="vertical"?(a-n)/_:(r-n)/_;xTt(t,T,i)}function Vue(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function wTt(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}Z(t,function(f){Vue(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&_Tt(t,r)}function _Tt(t,e){Z(t,function(n){!Vue(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function xTt(t,e,n){Z(t,function(r){var a=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function CTt(t,e,n,r,a,i,o){var s=TTt(t,o);ETt(s,e,n,r,a,o),Zk(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,MTt(s,l,o),Zk(s,a,n,r,o),OTt(s,l,o),Zk(s,a,n,r,o)}function TTt(t,e){var n=[],r=e==="vertical"?"y":"x",a=tA(t,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),Z(a.keys,function(i){n.push(a.buckets.get(i))}),n}function ETt(t,e,n,r,a,i){var o=1/0;Z(t,function(s){var l=s.length,u=0;Z(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)}),Z(t,function(s){Z(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))})}),Z(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function Zk(t,e,n,r,a){var i=a==="vertical"?"x":"y";Z(t,function(o){o.sort(function(v,g){return v.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 p=a==="vertical"?r:n;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function MTt(t,e,n){Z(t.slice().reverse(),function(r){Z(r,function(a){if(a.outEdges.length){var i=vf(a.outEdges,DTt,n)/vf(a.outEdges,fC);if(isNaN(i)){var o=a.outEdges.length;i=o?vf(a.outEdges,kTt,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Lf(a,n))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Lf(a,n))*e;a.setLayout({y:l},!0)}}})})}function DTt(t,e){return Lf(t.node2,e)*t.getValue()}function kTt(t,e){return Lf(t.node2,e)}function RTt(t,e){return Lf(t.node1,e)*t.getValue()}function LTt(t,e){return Lf(t.node1,e)}function Lf(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function fC(t){return t.getValue()}function vf(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 OTt(t,e,n){Z(t,function(r){Z(r,function(a){if(a.inEdges.length){var i=vf(a.inEdges,RTt,n)/vf(a.inEdges,fC);if(isNaN(i)){var o=a.inEdges.length;i=o?vf(a.inEdges,LTt,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Lf(a,n))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Lf(a,n))*e;a.setLayout({y:l},!0)}}})})}function ATt(t,e){var n=e==="vertical"?"x":"y";Z(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]})}),Z(t,function(r){var a=0,i=0;Z(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),Z(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function NTt(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;Z(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),Z(r,function(s){var l=new ri({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&&Z(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function VTt(t){t.registerChartView(hTt),t.registerSeriesModel(vTt),t.registerLayout(gTt),t.registerVisual(NTt),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 Bue=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],p=h[c].get("type"),v=h[1-c].get("type"),g=e.data;if(g&&l){var y=[];Z(g,function(w,C){var x;at(w)?(x=w.slice(),w.unshift(C)):at(w.value)?(x=Qe({},w),x.value=x.value.slice(),w.value.unshift(C)):x=w,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,b=[{name:f,type:J2(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:J2(v),dimsDef:m.slice()}];return b0(this,{coordDimensions:b,dimensionsCount:m.length+1,encodeDefaulter:nn(aoe,b,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),Iue=function(t){Ve(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}(wr);ea(Iue,Bue,!0);const BTt=Iue;var ITt=function(t){Ve(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=DW(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?(rl(f),$ue(d,f,i,u)):f=DW(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}(cr),$Tt=function(){function t(){}return t}(),PTt=function(t){Ve(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new $Tt},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}(wn);function DW(t,e,n,r,a){var i=t.ends,o=new PTt({shape:{points:a?FTt(i,r,t):i}});return $ue(t,o,e,n,a),o}function $ue(t,e,n,r,a){var i=n.hostModel,o=zb[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");oi(e,s),Xr(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function FTt(t,e,n){return ut(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}const zTt=ITt;var Rm=Z;function UTt(t){var e=GTt(t);Rm(e,function(n){var r=n.seriesModels;r.length&&(HTt(n),Rm(r,function(a,i){WTt(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function GTt(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=vn(n,a);i<0&&(i=n.length,n[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(r)}),e}function HTt(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;Rm(n,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Rm(n,function(p){var v=p.get("boxWidth");at(v)||(v=[v,v]),o.push([wt(v[0],s)||0,wt(v[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;Rm(n,function(p,v){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[v][0]),o[v][1]))})}function WTt(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=b(d,c[2],f),p=b(d,c[0],f),v=b(d,c[1],f),g=b(d,c[3],f),y=b(d,c[4],f),m=[];w(m,v,!1),w(m,g,!0),m.push(p,v,y,g),C(m,p),C(m,y),C(m,h),a.setItemLayout(f,{initBaseline:h[s],ends:m})}function b(x,_,T){var M=a.get(_,T),E=[];E[o]=x,E[s]=M;var k;return isNaN(x)||isNaN(M)?k=[NaN,NaN]:(k=r.dataToPoint(E),k[o]+=e),k}function w(x,_,T){var M=_.slice(),E=_.slice();M[o]+=i,E[o]-=i,T?x.push(M,E):x.push(E,M)}function C(x,_){var T=_.slice(),M=_.slice();T[o]-=i,M[o]+=i,x.push(T,M)}}function jTt(t,e){e=e||{};for(var n=[],r=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<t.length;o++){var s=Co(t[o].slice()),l=px(s,.25),u=px(s,.5),c=px(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),p=i?f:Math.max(f,l-h),v=i?d:Math.min(d,c+h),g=e.itemNameFormatter,y=zt(g)?g({value:o}):Mt(g)?g.replace("{value}",o+""):o+"";n.push([y,p,l,u,c,v]);for(var m=0;m<s.length;m++){var b=s[m];if(b<p||b>v){var w=[y,b];r.push(w)}}}return{boxData:n,outliers:r}}var KTt={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==Si){var r="";Zn(r)}var a=jTt(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function YTt(t){t.registerSeriesModel(BTt),t.registerChartView(zTt),t.registerLayout(UTt),t.registerTransform(KTt)}var qTt=["color","borderColor"],XTt=function(t){Ve(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){Hf(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&&kW(u,f))return;var d=Qk(f,c,!0);Mr(d,{shape:{points:f.ends}},n,c),Jk(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&&kW(u,h)){i.remove(d);return}d?(zn(d,{shape:{points:h.ends}},n,c),rl(d)):d=Qk(h),Jk(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(),RW(n,this.group);var r=n.get("clip",!0)?gE(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=Qk(s);Jk(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){RW(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}(cr),ZTt=function(){function t(){}return t}(),QTt=function(t){Ve(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new ZTt},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}(wn);function Qk(t,e,n){var r=t.ends;return new QTt({shape:{points:n?JTt(r,t):r},z2:100})}function kW(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 Jk(t,e,n,r){var a=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,oi(t,a)}function JTt(t,e){return ut(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var eEt=function(){function t(){}return t}(),eR=function(t){Ve(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new eEt},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}(wn);function RW(t,e,n,r){var a=t.getData(),i=a.getLayout("largePoints"),o=new eR({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new eR({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new eR({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),tR(1,o,t),tR(-1,s,t),tR(0,l,t),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function tR(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(qTt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const tEt=XTt;var Pue=function(t){Ve(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}(wr);ea(Pue,Bue,!0);const nEt=Pue;function rEt(t){!t||!at(t.series)||Z(t.series,function(e){Wt(e)&&e.type==="k"&&(e.type="candlestick")})}var aEt=["itemStyle","borderColor"],iEt=["itemStyle","borderColor0"],oEt=["itemStyle","borderColorDoji"],sEt=["itemStyle","color"],lEt=["itemStyle","color0"],uEt={seriesType:"candlestick",plan:p0(),performRawSeries:!0,reset:function(t,e){function n(i,o){return o.get(i>0?sEt:lEt)}function r(i,o){return o.get(i===0?oEt:i>0?aEt:iEt)}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");Qe(f,c)}}}}}};const cEt=uEt;var fEt={seriesType:"candlestick",plan:p0(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=dEt(t,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=ut(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?p:h};function h(v,g){for(var y,m=g.getStore();(y=v.next())!=null;){var b=m.get(s,y),w=m.get(u,y),C=m.get(c,y),x=m.get(f,y),_=m.get(d,y),T=Math.min(w,C),M=Math.max(w,C),E=I(T,b),k=I(M,b),R=I(x,b),L=I(_,b),A=[];$(A,k,0),$(A,E,1),A.push(P(L),P(k),P(R),P(E));var V=g.getItemModel(y),G=!!V.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:LW(m,y,w,C,c,G),initBaseline:w>C?k[i]:E[i],ends:A,brushRect:N(x,_,b)})}function I(Y,J){var re=[];return re[a]=J,re[i]=Y,isNaN(J)||isNaN(Y)?[NaN,NaN]:e.dataToPoint(re)}function $(Y,J,re){var oe=J.slice(),ue=J.slice();oe[a]=yx(oe[a]+r/2,1,!1),ue[a]=yx(ue[a]-r/2,1,!0),re?Y.push(oe,ue):Y.push(ue,oe)}function N(Y,J,re){var oe=I(Y,re),ue=I(J,re);return oe[a]-=r/2,ue[a]-=r/2,{x:oe[0],y:oe[1],width:r,height:ue[1]-oe[1]}}function P(Y){return Y[a]=yx(Y[a],1),Y}}function p(v,g){for(var y=Bl(v.count*4),m=0,b,w=[],C=[],x,_=g.getStore(),T=!!t.get(["itemStyle","borderColorDoji"]);(x=v.next())!=null;){var M=_.get(s,x),E=_.get(u,x),k=_.get(c,x),R=_.get(f,x),L=_.get(d,x);if(isNaN(M)||isNaN(R)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=LW(_,x,E,k,c,T),w[a]=M,w[i]=R,b=e.dataToPoint(w,null,C),y[m++]=b?b[0]:NaN,y[m++]=b?b[1]:NaN,w[i]=L,b=e.dataToPoint(w,null,C),y[m++]=b?b[1]:NaN}g.setLayout("largePoints",y)}}};function LW(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 dEt(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=wt(fn(t.get("barMaxWidth"),a),a),o=wt(fn(t.get("barMinWidth"),1),a),s=t.get("barWidth");return s!=null?wt(s,a):Math.max(Math.min(a/2,i),o)}const hEt=fEt;function pEt(t){t.registerChartView(tEt),t.registerSeriesModel(nEt),t.registerPreprocessor(rEt),t.registerVisual(cEt),t.registerLayout(hEt)}function OW(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 vEt=function(t){Ve(e,t);function e(n,r){var a=t.call(this)||this,i=new jb(n,r),o=new Xt;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=oa(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)}OW(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}}OW(a,n)},e.prototype.highlight=function(){Gu(this)},e.prototype.downplay=function(){Hu(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=g0(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=mp(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var p=n.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var v={};v.showEffectOn=i.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=r/n.count(),v.z=i.getShallow("z")||0,v.zlevel=i.getShallow("zlevel")||0,v.symbolType=l,v.color=f,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?v.showEffectOn!=="render"&&a.startEffectAnimation(v):g==="normal"&&v.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=v,Xr(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(n){n&&n()},e}(Xt);const gEt=vEt;var yEt=function(t){Ve(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 Kb(gEt)},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=Yb("").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=Jre(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(cr);const mEt=yEt;var bEt=function(t){Ve(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 iu(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}(wr);const SEt=bEt;function wEt(t){t.registerChartView(mEt),t.registerSeriesModel(SEt),t.registerLayout(Yb("effectScatter"))}var _Et=function(t){Ve(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 c$(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");at(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=oa(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=Ma(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;zt(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 Mu(n.__p1,n.__cp1)+Mu(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=Fa,c=FO;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=Mu(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*Mu(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}(Xt);const Fue=_Et;var xEt=function(t){Ve(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 qi({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)}};zn(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,Xr(this,l,u,c)},e.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},e}(Xt);const zue=xEt;var CEt=function(t){Ve(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 zue(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+=Mu(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],p=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(Fue);const TEt=CEt;var EEt=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),MEt=function(t){Ve(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 EEt},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,p=(c+d)/2-(f-u)*i;n.quadraticCurveTo(h,p,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],h=1;h<c;h++){var p=i[u++],v=i[u++];if(zc(f,d,p,v,s,n,r))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],p=i[u++],v=i[u++];if(o>0){var g=(f+p)/2-(d-v)*o,y=(d+v)/2-(p-f)*o;if(Kae(f,d,g,y,p,v,s,n,r))return l}else if(zc(f,d,p,v,s,n,r))return l;l++}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;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 dn(i,o,s,l)}return n},e}(wn),DEt=function(){function t(){this.group=new Xt}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 MEt({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=rn(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 kEt=DEt;var REt={seriesType:"lines",plan:p0(),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 p=0;p<h;p++)d=e.dataToPoint(o[p],!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 v=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=v.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 Uue=REt;var LEt=function(t){Ve(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)&&gE(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=Uue.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 kEt:new f$(o?i?TEt:zue:i?Fue:c$),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}(cr);const OEt=LEt;var AEt=typeof Uint32Array>"u"?Array:Uint32Array,NEt=typeof Float64Array>"u"?Array:Float64Array;function AW(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=ut(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),VT([a,n[0],n[1]])}))}var VEt=function(t){Ve(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||[],AW(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(AW(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=S1(this._flatCoords,r.flatCoords),this._flatCoordsOffset=S1(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),Bn(n[0])){for(var a=n.length,i=new AEt(a),o=new NEt(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++],p=n[c++];o[s++]=h,o[s++]=p}}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 gi(["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),Na("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}(wr);const BEt=VEt;function i_(t){return t instanceof Array||(t=[t,t]),t}var IEt={seriesType:"lines",reset:function(t){var e=i_(t.get("symbol")),n=i_(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=i_(s.getShallow("symbol",!0)),u=i_(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 $Et=IEt;function PEt(t){t.registerChartView(OEt),t.registerSeriesModel(BEt),t.registerLayout(Uue),t.registerVisual($Et)}var FEt=256,zEt=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Js.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=e.length;f.width=n,f.height=r;for(var p=0;p<h;++p){var v=e[p],g=v[0],y=v[1],m=v[2],b=a(m);d.globalAlpha=b,d.drawImage(s,g-c,y-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),C=w.data,x=0,_=C.length,T=this.minOpacity,M=this.maxOpacity,E=M-T;x<_;){var b=C[x+3]/256,k=Math.floor(b*(FEt-1))*4;if(b>0){var R=o(b)?l:u;b>0&&(b=b*E+T),C[x++]=R[k],C[x++]=R[k+1],C[x++]=R[k+2],C[x++]=R[k+3]*b*256}else x+=4}return d.putImageData(w,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Js.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 UEt=zEt;function GEt(t,e,n){var r=t[1]-t[0];e=ut(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 HEt(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 NW(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var WEt=function(t){Ve(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()):NW(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&&(NW(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){Hf(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=bp(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),m=n.getModel(["blur","itemStyle"]).getItemStyle(),b=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),C=Aa(n),x=n.getModel("emphasis"),_=x.get("focus"),T=x.get("blurScope"),M=x.get("disabled"),E=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],k=a;k<i;k++){var R=void 0,L=g.getItemVisual(k,"style");if(l){var A=g.get(E[0],k),V=g.get(E[1],k);if(isNaN(g.get(E[2],k))||isNaN(A)||isNaN(V)||A<f[0]||A>f[1]||V<d[0]||V>d[1])continue;var G=s.dataToPoint([A,V]);R=new An({shape:{x:G[0]-u/2,y:G[1]-c/2,width:u,height:c},style:L})}else{if(isNaN(g.get(E[1],k)))continue;R=new An({z2:1,shape:s.dataToRect([g.get(E[0],k)]).contentShape,style:L})}if(g.hasItemOption){var I=g.getItemModel(k),$=I.getModel("emphasis");y=$.getModel("itemStyle").getItemStyle(),m=I.getModel(["blur","itemStyle"]).getItemStyle(),b=I.getModel(["select","itemStyle"]).getItemStyle(),w=I.get(["itemStyle","borderRadius"]),_=$.get("focus"),T=$.get("blurScope"),M=$.get("disabled"),C=Aa(I)}R.shape.r=w;var N=n.getRawValue(k),P="-";N&&N[2]!=null&&(P=N[2]+""),si(R,C,{labelFetcher:n,labelDataIndex:k,defaultOpacity:L.opacity,defaultText:P}),R.ensureState("emphasis").style=y,R.ensureState("blur").style=m,R.ensureState("select").style=b,Xr(R,_,T,M),R.incremental=o,o&&(R.states.emphasis.hoverLayer=!0),v.add(R),g.setItemGraphicEl(k,R),this._progressiveEls&&this._progressiveEls.push(R)}},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 UEt;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),v=Math.min(c.height+c.y,i.getHeight()),g=p-d,y=v-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(m,function(_,T,M){var E=n.dataToPoint([_,T]);return E[0]-=d,E[1]-=h,E.push(M),E}),w=a.getExtent(),C=a.type==="visualMap.continuous"?HEt(w,a.option.range):GEt(w,a.getPieceList(),a.option.selected);u.update(b,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var x=new Ya({style:{width:g,height:y,x:d,y:h,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(cr);const jEt=WEt;var KEt=function(t){Ve(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 iu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=h0.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}(wr);const YEt=KEt;function qEt(t){t.registerChartView(jEt),t.registerSeriesModel(YEt)}var XEt=["itemStyle","borderWidth"],VW=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],nR=new nl,ZEt=function(t){Ve(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:VW[+c],categoryDim:VW[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=IW(o,h),v=BW(o,h,p,d),g=$W(o,d,v);o.setItemGraphicEl(h,g),i.add(g),FW(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(v);return}var g=IW(o,h),y=BW(o,h,g,d),m=Yue(o,y);v&&m!==v.__pictorialShapeStr&&(i.remove(v),o.setItemGraphicEl(h,null),v=null),v?aMt(v,d,y):v=$W(o,d,y,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=y,i.add(v),FW(v,d,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&PW(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){PW(i,rn(o).dataIndex,n,o)}):a.removeAll()},e.type="pictorialBar",e}(cr);function BW(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};QEt(n,i,a,r,d),JEt(t,e,a,i,o,d.boundingLength,d.pxSign,c,r,d),eMt(n,d.symbolScale,u,r,d);var h=d.symbolSize,p=mp(n.get("symbolOffset"),h);return tMt(n,h,a,i,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function QEt(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(at(o)){var f=[rR(s,o[0])-l,rR(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=rR(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 rR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function JEt(t,e,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),h=t.getItemVisual(e,"symbolSize"),p;at(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=wt(p[f.index],d),p[c.index]=wt(p[c.index],r?d:Math.abs(i)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function eMt(t,e,n,r,a){var i=t.get(XEt)||0;i&&(nR.attr({scaleX:e[0],scaleY:e[1],rotation:n}),nR.updateTransform(),i/=nR.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function tMt(t,e,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(e[h.index]+s,0),g=v;if(r){var y=Math.abs(l),m=Ma(t.get("symbolMargin"),"15%")+"",b=!1;m.lastIndexOf("!")===m.length-1&&(b=!0,m=m.slice(0,m.length-1));var w=wt(m,e[h.index]),C=Math.max(v+w*2,0),x=b?0:w*2,_=UB(r),T=_?r:zW((y+x)/C),M=y-T*v;w=M/2/(b?T:Math.max(T-1,1)),C=v+w*2,x=b?0:w*2,!_&&r!=="fixed"&&(T=u?zW((Math.abs(u)+x)/C):0),g=T*C-x,f.repeatTimes=T,f.symbolMargin=w}var E=p*(g/2),k=f.pathPosition=[];k[d.index]=n[d.wh]/2,k[h.index]=o==="start"?E:o==="end"?l-E:l/2,i&&(k[0]+=i[0],k[1]+=i[1]);var R=f.bundlePosition=[];R[d.index]=n[d.xy],R[h.index]=n[h.xy];var L=f.barRectShape=Qe({},n);L[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(k[h.index]+E)),L[d.wh]=n[d.wh];var A=f.clipShape={};A[d.xy]=-n[d.xy],A[d.wh]=c.ecSize[d.wh],A[h.xy]=0,A[h.wh]=n[h.wh]}function Gue(t){var e=t.symbolPatternSize,n=oa(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function Hue(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(b$(t,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?Qv(v,null,p(c),n,r):Qv(v,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(v)}),c++});c<u;c++){var d=Gue(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=p(c);Qv(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function p(v){var g=s.slice(),y=n.pxSign,m=v;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-v),g[l.index]=f*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Wue(t,e,n,r){var a=t.__pictorialBundle,i=t.__pictorialMainPath;i?Qv(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=Gue(n),a.add(i),Qv(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 jue(t,e,n){var r=Qe({},e.barRectShape),a=t.__pictorialBarRect;a?Qv(a,null,{shape:r},e,n):(a=t.__pictorialBarRect=new An({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,t.add(a))}function Kue(t,e,n,r){if(n.symbolClip){var a=t.__pictorialClipPath,i=Qe({},n.clipShape),o=e.valueDim,s=n.animationModel,l=n.dataIndex;if(a)zn(a,{shape:i},s,l);else{i[o.wh]=0,a=new An({shape:i}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],zb[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function IW(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=nMt,n.isAnimationEnabled=rMt,n}function nMt(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function rMt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $W(t,e,n,r){var a=new Xt,i=new Xt;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?Hue(a,e,n):Wue(a,e,n),jue(a,n,r),Kue(a,e,n,r),a.__pictorialShapeStr=Yue(t,n),a.__pictorialSymbolMeta=n,a}function aMt(t,e,n){var r=n.animationModel,a=n.dataIndex,i=t.__pictorialBundle;zn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?Hue(t,e,n,!0):Wue(t,e,n,!0),jue(t,n,!0),Kue(t,e,n,!0)}function PW(t,e,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];b$(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Z(i,function(o){Df(o,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function Yue(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function b$(t,e,n){Z(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function Qv(t,e,n,r,a,i){e&&t.attr(e),r.symbolClip&&!a?n&&t.attr(n):n&&zb[a?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,i)}function FW(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");b$(t,function(v){if(v instanceof Ya){var g=v.style;v.useStyle(Qe({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else v.useStyle(n.style);var y=v.ensureState("emphasis");y.style=o,d&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=n.z2});var h=e.valueDim.posDesc[+(n.boundingLength>0)],p=t.__pictorialBarRect;si(p,Aa(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Ng(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),Xr(t,c,f,i.get("disabled"))}function zW(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const iMt=ZEt;var oMt=function(t){Ve(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=Wf(aC.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}(aC);const sMt=oMt;function lMt(t){t.registerChartView(iMt),t.registerSeriesModel(sMt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,nn(kse,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Rse("pictorialBar"))}var uMt=function(t){Ve(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 Wu(this._layersSeries||[],l,d,d),p=[];h.add(Dt(v,this,"add")).update(Dt(v,this,"update")).remove(Dt(v,this,"remove")).execute();function v(g,y,m){var b=o._layers;if(g==="remove"){s.remove(b[y]);return}for(var w=[],C=[],x,_=l[y].indices,T=0;T<_.length;T++){var M=i.getItemLayout(_[T]),E=M.x,k=M.y0,R=M.y;w.push(E,k),C.push(E,k+R),x=i.getItemVisual(_[T],"style")}var L,A=i.getItemLayout(_[0]),V=n.getModel("label"),G=V.get("margin"),I=n.getModel("emphasis");if(g==="add"){var $=p[y]=new Xt;L=new mle({shape:{points:w,stackedOnPoints:C,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),$.add(L),s.add($),n.isAnimationEnabled()&&L.setClipPath(cMt(L.getBoundingRect(),n,function(){L.removeClipPath()}))}else{var $=b[m];L=$.childAt(0),s.add($),p[y]=$,zn(L,{shape:{points:w,stackedOnPoints:C}},n),rl(L)}si(L,Aa(n),{labelDataIndex:_[T-1],defaultText:i.getName(_[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var N=L.getTextContent();N&&(N.x=A.x-G,N.y=A.y0+A.y/2),L.useStyle(x),i.setItemGraphicEl(y,L),oi(L,n),Xr(L,I.get("focus"),I.get("blurScope"),I.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(cr);function cMt(t,e,n){var r=new An({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Mr(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}const fMt=uMt;var aR=2,dMt=function(t){Ve(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 Xb(Dt(this.getData,this),Dt(this.getRawData,this))},e.prototype.fixData=function(n){var r=n.length,a={},i=tA(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",ca).models[0],i=a.get("type"),o=nr(n.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=It(),c=0,f=0;f<s.length;++f)l.push(s[f][aR]),u.get(s[f][aR])||(u.set(s[f][aR],c),c++);var d=y0(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:J2(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new gi(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=tA(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){at(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,p=0;p<h;++p){var v=i.get(n[0],o[c].indices[p]),g=Math.abs(v-r);g<=f&&(u=v,f=g,d=o[c].indices[p])}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 Na("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}(wr);const hMt=dMt;function pMt(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]=wt(s[0],o.height),s[1]=wt(s[1],o.height);var u=o.height-s[0]-s[1];UW(r,n,u)}else{s[0]=wt(s[0],o.width),s[1]=wt(s[1],o.width);var c=o.width-s[0]-s[1];UW(r,n,c)}r.setLayout("layoutInfo",i)})}function UW(t,e,n){if(t.count())for(var r=e.coordinateSystem,a=e.getLayerSeries(),i=t.mapDimension("single"),o=t.mapDimension("value"),s=ut(a,function(g){return ut(g.indices,function(y){var m=r.dataToPoint(t.get(i,y));return m[1]=t.get(o,y),m})}),l=vMt(s),u=l.y0,c=n/l.max,f=a.length,d=a[0].indices.length,h,p=0;p<d;++p){h=u[p]*c,t.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:h,y:s[0][p][1]*c});for(var v=1;v<f;++v)h+=s[v-1][p][1]*c,t.setItemLayout(a[v].indices[p],{layerIndex:v,x:s[v][p][0],y0:h,y:s[v][p][1]*c})}}function vMt(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 gMt(t){t.registerChartView(fMt),t.registerSeriesModel(hMt),t.registerLayout(pMt),t.registerProcessor(qb("themeRiver"))}var yMt=2,mMt=4,bMt=function(t){Ve(e,t);function e(n,r,a,i){var o=t.call(this)||this;o.z2=yMt,o.textConfig={inside:!0},rn(o).seriesIndex=r.seriesIndex;var s=new On({z2:mMt,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;rn(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Qe({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=Ag(h,o));var p=xh(l.getModel("itemStyle"),f,!0);Qe(f,p),Z(Hi,function(m){var b=s.ensureState(m),w=l.getModel([m,"itemStyle"]);b.style=w.getItemStyle();var C=xh(w,f);C&&(b.shape=C)}),n?(s.setShape(f),s.shape.r=c.r0,Mr(s,{shape:{r:c.r}},a,r.dataIndex)):(zn(s,{shape:f},a),rl(s)),s.useStyle(d),this._updateLabel(a);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;Xr(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,v=i.get("show")&&!(p!=null&&Math.abs(s)<p);d.ignore=!v,Z(R1,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),b=y==="normal",w=b?d:d.ensureState(y),C=n.getFormattedLabel(h,y);b&&(C=C||r.node.name),w.style=gr(m,{},null,y!=="normal",!0),C&&(w.style.text=C);var x=m.get("show");x!=null&&!b&&(w.ignore=!x);var _=g(m,"position"),T=b?f:f.states[y],M=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?M:null,inside:_!=="outside"};var E,k=g(m,"distance")||0,R=g(m,"align");_==="outside"?(E=o.r+k,R=l>Math.PI/2?"right":"left"):!R||R==="center"?(s===2*Math.PI&&o.r0===0?E=0:E=(o.r+o.r0)/2,R="center"):R==="left"?(E=o.r0+k,l>Math.PI/2&&(R="right")):R==="right"&&(E=o.r-k,l>Math.PI/2&&(R="left")),w.style.align=R,w.style.verticalAlign=g(m,"verticalAlign")||"middle",w.x=E*u+o.cx,w.y=E*c+o.cy;var L=g(m,"rotate"),A=0;L==="radial"?(A=Hs(-l),A>Math.PI/2&&A<Math.PI*1.5&&(A+=Math.PI)):L==="tangential"?(A=Math.PI/2-l,A>Math.PI/2?A-=Math.PI:A<-Math.PI/2&&(A+=Math.PI)):Bn(L)&&(A=L*Math.PI/180),w.rotation=Hs(A)});function g(y,m){var b=y.get(m);return b??i.get(m)}d.dirtyStyle()},e}(Wi);const GW=bMt;var e3="sunburstRootToNode",HW="sunburstHighlight",SMt="sunburstUnhighlight";function wMt(t){t.registerAction({type:e3,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=H1(e,[e3],a);if(o){var s=a.getViewRoot();s&&(e.direction=a$(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),t.registerAction({type:HW,update:"none"},function(e,n,r){e=Qe({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=H1(e,[HW],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(Qe(e,{type:"highlight"}))}),t.registerAction({type:SMt,update:"updateView"},function(e,n,r){e=Qe({},e),r.dispatchAction(Qe(e,{type:"downplay"}))})}var _Mt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(m){d.push(m)});var h=this._oldChildren||[];p(d,h),y(l,u),this._initEvents(),this._oldChildren=d;function p(m,b){if(m.length===0&&b.length===0)return;new Wu(b,m,w,w).add(C).update(C).remove(nn(C,null)).execute();function w(x){return x.getId()}function C(x,_){var T=x==null?null:m[x],M=_==null?null:b[_];v(T,M)}}function v(m,b){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&b!==l){if(b&&b.piece)m?(b.piece.updateData(!1,m,n,r,a),s.setItemGraphicEl(m.dataIndex,b.piece)):g(b);else if(m){var w=new GW(m,n,r,a);c.add(w),s.setItemGraphicEl(m.dataIndex,w)}}}function g(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,n,r,a):(o.virtualPiece=new GW(m,n,r,a),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";G2(u,c)}}a=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:e3,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}(cr);const xMt=_Mt;var CMt=function(t){Ve(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};que(a);var i=this._levelModels=ut(n.levels||[],function(l){return new lr(l,this,r)},this),o=r$.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=bE(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(){Jle(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}(wr);function que(t){var e=0;Z(t.children,function(r){que(r);var a=r.value;at(a)&&(a=a[0]),e+=a});var n=t.value;at(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),at(t.value)?t.value[0]=n:t.value=n}const TMt=CMt;var WW=Math.PI/180;function EMt(t,e,n){e.eachSeriesByType(t,function(r){var a=r.get("center"),i=r.get("radius");at(i)||(i=[0,i]),at(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=wt(a[0],o),c=wt(a[1],s),f=wt(i[0],l/2),d=wt(i[1],l/2),h=-r.get("startAngle")*WW,p=r.get("minAngle")*WW,v=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,m=r.get("sort");m!=null&&Xue(g,m);var b=0;Z(g.children,function(G){!isNaN(G.getValue())&&b++});var w=g.getValue(),C=Math.PI/(w||b)*2,x=g.depth>0,_=g.height-(x?-1:1),T=(d-f)/(_||1),M=r.get("clockwise"),E=r.get("stillShowZeroSum"),k=M?1:-1,R=function(G,I){if(G){var $=I;if(G!==v){var N=G.getValue(),P=w===0&&E?C:N*C;P<p&&(P=p),$=I+k*P;var Y=G.depth-y-(x?-1:1),J=f+T*Y,re=f+T*(Y+1),oe=r.getLevelModel(G);if(oe){var ue=oe.get("r0",!0),le=oe.get("r",!0),fe=oe.get("radius",!0);fe!=null&&(ue=fe[0],le=fe[1]),ue!=null&&(J=wt(ue,l/2)),le!=null&&(re=wt(le,l/2))}G.setLayout({angle:P,startAngle:I,endAngle:$,clockwise:M,cx:u,cy:c,r0:J,r:re})}if(G.children&&G.children.length){var se=0;Z(G.children,function(_e){se+=R(_e,I+se)})}return $-I}};if(x){var L=f,A=f+T,V=Math.PI*2;v.setLayout({angle:V,startAngle:h,endAngle:h+V,clockwise:M,cx:u,cy:c,r0:L,r:A})}R(g,h)})}function Xue(t,e){var n=t.children||[];t.children=MMt(n,e),n.length&&Z(t.children,function(r){Xue(r,e)})}function MMt(t,e){if(zt(e)){var n=ut(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)}),ut(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 DMt(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&&Mt(s)&&(s=O2(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");Qe(u,l)})})}function kMt(t){t.registerChartView(xMt),t.registerSeriesModel(TMt),t.registerLayout(nn(EMt,"sunburst")),t.registerProcessor(nn(qb,"sunburst")),t.registerVisual(DMt),wMt(t)}var jW={color:"fill",borderColor:"stroke"},RMt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Nu=In(),LMt=function(t){Ve(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 iu(null,this)},e.prototype.getDataParams=function(n,r,a){var i=t.prototype.getDataParams.call(this,n,r);return a&&(i.info=Nu(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}(wr);const OMt=LMt;function AMt(t,e){return e=e||[0,0],ut(["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 NMt(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:Dt(AMt,t)}}}function VMt(t,e){return e=e||[0,0],ut([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 BMt(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:Dt(VMt,t)}}}function IMt(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 $Mt(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:Dt(IMt,t)}}}function PMt(t,e){return e=e||[0,0],ut(["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 FMt(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:Dt(PMt,t)}}}function zMt(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 Zue(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||Rt(t,"text")))}function Que(t,e,n){var r=t,a,i,o;if(e==="text")o=r;else{o={},Rt(r,"text")&&(o.text=r.text),Rt(r,"rich")&&(o.rich=r.rich),Rt(r,"textFill")&&(o.fill=r.textFill),Rt(r,"textStroke")&&(o.stroke=r.textStroke),Rt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Rt(r,"fontSize")&&(o.fontSize=r.fontSize),Rt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Rt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Rt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),Rt(r,"textPosition")&&(a.position=r.textPosition),Rt(r,"textOffset")&&(a.offset=r.textOffset),Rt(r,"textRotation")&&(a.rotation=r.textRotation),Rt(r,"textDistance")&&(a.distance=r.textDistance)}return KW(o,t),Z(o.rich,function(l){KW(l,l)}),{textConfig:a,textContent:i}}function KW(t,e){e&&(e.font=e.textFont||e.font,Rt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Rt(e,"textAlign")&&(t.align=e.textAlign),Rt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Rt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Rt(e,"textWidth")&&(t.width=e.textWidth),Rt(e,"textHeight")&&(t.height=e.textHeight),Rt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Rt(e,"textPadding")&&(t.padding=e.textPadding),Rt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Rt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Rt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Rt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Rt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Rt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Rt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function YW(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";qW(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,Z(e.rich,function(s){qW(s,s)}),r}function qW(t,e){e&&(Rt(e,"fill")&&(t.textFill=e.fill),Rt(e,"stroke")&&(t.textStroke=e.fill),Rt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Rt(e,"font")&&(t.font=e.font),Rt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Rt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Rt(e,"fontSize")&&(t.fontSize=e.fontSize),Rt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Rt(e,"align")&&(t.textAlign=e.align),Rt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Rt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Rt(e,"width")&&(t.textWidth=e.width),Rt(e,"height")&&(t.textHeight=e.height),Rt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Rt(e,"padding")&&(t.textPadding=e.padding),Rt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Rt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Rt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Rt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Rt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Rt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Rt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Rt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Rt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Rt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Rt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Jue={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},XW=Tn(Jue);fs(Zl,function(t,e){return t[e]=1,t},{});Zl.join(", ");var dC=["","style","shape","extra"],Ig=In();function S$(t,e,n,r,a){var i=t+"Animation",o=i0(t,r,a)||{},s=Ig(e).userDuring;return o.duration>0&&(o.during=s?Dt(jMt,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Qe(o,n[i]),o}function Cx(t,e,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=Ig(t),u=e.style;l.userDuring=e.during;var c={},f={};if(YMt(t,e,f),QW("shape",e,f),QW("extra",e,f),!i&&s&&(KMt(t,e,c),ZW("shape",t,e,c),ZW("extra",t,e,c),qMt(t,e,u,c)),f.style=u,UMt(t,f,o),HMt(t,e),s)if(i){var d={};Z(dC,function(p){var v=p?e[p]:e;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Qe(p?d[p]:d,v.enterFrom))});var h=S$("enter",t,e,n,a);h.duration>0&&t.animateFrom(d,h)}else GMt(t,e,a||0,n,c);ece(t,e),u?t.dirty():t.markRedraw()}function ece(t,e){for(var n=Ig(t).leaveToProps,r=0;r<dC.length;r++){var a=dC[r],i=a?e[a]:e;i&&i.leaveTo&&(n||(n=Ig(t).leaveToProps={}),a&&(n[a]=n[a]||{}),Qe(a?n[a]:n,i.leaveTo))}}function _E(t,e,n,r){if(t){var a=t.parent,i=Ig(t).leaveToProps;if(i){var o=S$("update",t,e,n,0);o.done=function(){a.remove(t),r&&r()},t.animateTo(i,o)}else a.remove(t),r&&r()}}function zh(t){return t==="all"}function UMt(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 GMt(t,e,n,r,a){if(a){var i=S$("update",t,e,r,n);i.duration>0&&t.animateFrom(a,i)}}function HMt(t,e){Rt(e,"silent")&&(t.silent=e.silent),Rt(e,"ignore")&&(t.ignore=e.ignore),t instanceof ds&&Rt(e,"invisible")&&(t.invisible=e.invisible),t instanceof wn&&Rt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var xl={},WMt={setTransform:function(t,e){return xl.el[t]=e,this},getTransform:function(t){return xl.el[t]},setShape:function(t,e){var n=xl.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=xl.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=xl.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=xl.el.style;if(e)return e[t]},setExtra:function(t,e){var n=xl.el.extra||(xl.el.extra={});return n[t]=e,this},getExtra:function(t){var e=xl.el.extra;if(e)return e[t]}};function jMt(){var t=this,e=t.el;if(e){var n=Ig(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}xl.el=e,r(WMt)}}function ZW(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]={}),zh(l))Qe(o,i);else for(var u=ur(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(zh(s)||vn(s,t)>=0){!o&&(o=r[t]={});for(var h=Tn(i),c=0;c<h.length;c++){var f=h[c],d=i[f];XMt(a[f],d)&&(o[f]=d)}}}}}function QW(t,e,n){var r=e[t];if(r)for(var a=n[t]={},i=Tn(r),o=0;o<i.length;o++){var s=i[o];a[s]=bm(r[s])}}function KMt(t,e,n){for(var r=e.transition,a=zh(r)?Zl:ur(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 YMt(t,e,n){for(var r=0;r<XW.length;r++){var a=XW[r],i=Jue[a],o=e[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<Zl.length;r++){var s=Zl[r];e[s]!=null&&(n[s]=e[s])}}function qMt(t,e,n,r){if(n){var a=t.style,i;if(a){var o=n.transition,s=e.transition;if(o&&!zh(o)){var l=ur(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&&(zh(s)||zh(o)||vn(s,"style")>=0)){var d=t.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var p=Tn(n),u=0;u<p.length;u++){var c=p[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function XMt(t,e){return ii(t)?t!==e:t!=null&&isFinite(t)}var tce=In(),ZMt=["percent","easing","shape","style","extra"];function nce(t){t.stopAnimation("keyframe"),t.attr(tce(t))}function hC(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(at(e)){Z(e,function(s){hC(t,s,n)});return}var r=e.keyframes,a=e.duration;if(n&&a==null){var i=i0("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=tce(t);Z(dC,function(s){if(!(s&&!t[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),Z(r,function(u){var c=t.animators,f=s?u[s]:u;if(f){var d=Tn(f);if(s||(d=nr(d,function(v){return vn(ZMt,v)<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 p=s?o[s]:o;Z(d,function(v){p[v]=((s?t[s]:t)||{})[v]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Vu="emphasis",tf="normal",w$="blur",_$="select",Of=[tf,Vu,w$,_$],iR={normal:["itemStyle"],emphasis:[Vu,"itemStyle"],blur:[w$,"itemStyle"],select:[_$,"itemStyle"]},oR={normal:["label"],emphasis:[Vu,"label"],blur:[w$,"label"],select:[_$,"label"]},QMt=["x","y"],JMt="e\0\0",$o={normal:{},emphasis:{},blur:{},select:{}},eDt={cartesian2d:NMt,geo:BMt,single:$Mt,polar:FMt,calendar:zMt};function t3(t){return t instanceof wn}function n3(t){return t instanceof ds}function tDt(t,e){e.copyTransform(t),n3(e)&&n3(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,t3(e)&&t3(t)&&e.setShape(t.shape))}var nDt=function(t){Ve(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=JW(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){sR(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&_E(d,Nu(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);sR(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?gE(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=JW(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=sR(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(n){Hf(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}(cr);const rDt=nDt;function x$(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=ice(r);n=Pb(i,null,a,r.layout||"center"),Nu(n).customPathData=i}else if(e==="image")n=new Ya({}),Nu(n).customImagePath=t.style.image;else if(e==="text")n=new On({});else if(e==="group")n=new Xt;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=QT(e);if(!o){var s="";Zn(s)}n=new o}return Nu(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function C$(t,e,n,r,a,i,o){nce(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=QMt);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;Rt(u,"textFill")&&(u.fill=u.textFill),Rt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=t3(e)?l.decal:null;t&&f&&(f.dirty=!0,c=Ag(f,t)),l.__decalPattern=c}if(n3(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Cx(e,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),hC(e,r.keyframeAnimation,i)}function rce(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),ep(i)}}function aDt(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<Of.length;s++)iDt(r,e,Of[s])}}function iDt(t,e,n){var r=n===tf,a=r?e:pC(e,n),i=a?a.z2:null,o;i!=null&&(o=r?t:t.ensureState(n),o.z2=i||0)}function JW(t,e,n,r){var a=t.get("renderItem"),i=t.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):eDt[i.type](i));for(var s=Ht({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:x,ordinalRawValue:C,styleEmphasis:_,visual:E,barLayout:k,currentSeriesIndices:R,font:L},o.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:oDt(t.getData())},u,c,f={},d={},h={},p={},v=0;v<Of.length;v++){var g=Of[v];h[g]=t.getModel(iR[g]),p[g]=t.getModel(oR[g])}function y(A){return A===u?c||(c=e.getItemModel(A)):e.getItemModel(A)}function m(A,V){return e.hasItemOption?A===u?f[V]||(f[V]=y(A).getModel(iR[V])):y(A).getModel(iR[V]):h[V]}function b(A,V){return e.hasItemOption?A===u?d[V]||(d[V]=y(A).getModel(oR[V])):y(A).getModel(oR[V]):p[V]}return function(A,V){return u=A,c=null,f={},d={},a&&a(Ht({dataIndexInside:A,dataIndex:e.getRawIndex(A),actionType:V?V.type:null},l),s)};function w(A,V){return V==null&&(V=u),e.getStore().get(e.getDimensionIndex(A||0),V)}function C(A,V){V==null&&(V=u),A=A||0;var G=e.getDimensionInfo(A);if(!G){var I=e.getDimensionIndex(A);return I>=0?e.getStore().get(I,V):void 0}var $=e.get(G.name,V),N=G&&G.ordinalMeta;return N?N.categories[$]:$}function x(A,V){V==null&&(V=u);var G=e.getItemVisual(V,"style"),I=G&&G.fill,$=G&&G.opacity,N=m(V,tf).getItemStyle();I!=null&&(N.fill=I),$!=null&&(N.opacity=$);var P={inheritColor:Mt(I)?I:"#000"},Y=b(V,tf),J=gr(Y,null,P,!1,!0);J.text=Y.getShallow("show")?fn(t.getFormattedLabel(V,tf),Ng(e,V)):null;var re=z2(Y,P,!1);return M(A,N),N=YW(N,J,re),A&&T(N,A),N.legacy=!0,N}function _(A,V){V==null&&(V=u);var G=m(V,Vu).getItemStyle(),I=b(V,Vu),$=gr(I,null,null,!0,!0);$.text=I.getShallow("show")?Ys(t.getFormattedLabel(V,Vu),t.getFormattedLabel(V,tf),Ng(e,V)):null;var N=z2(I,null,!0);return M(A,G),G=YW(G,$,N),A&&T(G,A),G.legacy=!0,G}function T(A,V){for(var G in V)Rt(V,G)&&(A[G]=V[G])}function M(A,V){A&&(A.textFill&&(V.textFill=A.textFill),A.textPosition&&(V.textPosition=A.textPosition))}function E(A,V){if(V==null&&(V=u),Rt(jW,A)){var G=e.getItemVisual(V,"style");return G?G[jW[A]]:null}if(Rt(RMt,A))return e.getItemVisual(V,A)}function k(A){if(i.type==="cartesian2d"){var V=i.getBaseAxis();return Ymt(Ht({axis:V},A))}}function R(){return n.getCurrentSeriesIndices()}function L(A){return Iie(A,n)}}function oDt(t){var e={};return Z(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 sR(t,e,n,r,a,i,o){if(!r){i.remove(e);return}var s=T$(t,e,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&Xr(s,r.focus,r.blurScope,r.emphasisDisabled),s}function T$(t,e,n,r,a,i){var o=-1,s=e;e&&ace(e,r,a)&&(o=vn(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=x$(r),s&&tDt(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),$o.normal.cfg=$o.normal.conOpt=$o.emphasis.cfg=$o.emphasis.conOpt=$o.blur.cfg=$o.blur.conOpt=$o.select.cfg=$o.select.conOpt=null,$o.isLegacy=!1,lDt(u,n,r,a,l,$o),sDt(u,n,r,a,l),C$(t,u,n,r,$o,a,l),Rt(r,"info")&&(Nu(u).info=r.info);for(var c=0;c<Of.length;c++){var f=Of[c];if(f!==tf){var d=pC(r,f),h=E$(r,d,f);rce(f,u,d,h,$o)}}return aDt(u,r,a),r.type==="group"&&uDt(t,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function ace(t,e,n){var r=Nu(t),a=e.type,i=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&hDt(i)&&ice(i)!==r.customPathData||a==="image"&&Rt(o,"image")&&o.image!==r.customImagePath}function sDt(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&&ace(o,i,r)&&(o=null),o||(o=x$(i),t.setClipPath(o)),C$(null,o,e,i,null,r,a)}}function lDt(t,e,n,r,a,i){if(!t.isGroup){e9(n,null,i),e9(n,Vu,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=x$(o),t.setTextContent(c)),C$(null,c,e,o,null,r,a);for(var f=o&&o.style,d=0;d<Of.length;d++){var h=Of[d];if(h!==tf){var p=i[h].conOpt;rce(h,c,p,E$(o,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function e9(t,e,n){var r=e?pC(t,e):t,a=e?E$(t,r,Vu):t.style,i=t.type,o=r?r.textConfig:null,s=t.textContent,l=s?e?pC(s,e):s:null;if(a&&(n.isLegacy||Zue(a,i,!!o,!!l))){n.isLegacy=!0;var u=Que(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 pC(t,e){return e?t?t[e]:null:t}function E$(t,e,n){var r=e&&e.style;return r==null&&n===Vu&&t&&(r=t.styleEmphasis),r}function uDt(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){fDt({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),T$(t,d,n,f,a,e)):d.ignore=!0}for(var h=e.childCount()-1;h>=c;h--){var p=e.childAt(h);cDt(e,p,a)}}}function cDt(t,e,n){e&&_E(e,Nu(t).option,n)}function fDt(t){new Wu(t.oldChildren,t.newChildren,t9,t9,t).add(n9).update(n9).remove(dDt).execute()}function t9(t,e){var n=t&&t.name;return n??JMt+e}function n9(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,a=e!=null?n.oldChildren[e]:null;T$(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function dDt(t){var e=this.context,n=e.oldChildren[t];n&&_E(n,Nu(n).option,e.seriesModel)}function ice(t){return t&&(t.pathData||t.d)}function hDt(t){return t&&(Rt(t,"pathData")||Rt(t,"d"))}function pDt(t){t.registerChartView(rDt),t.registerSeriesModel(OMt)}var ih=In(),r9=Kt,lR=Dt,vDt=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 Xt,this.createPointerEl(s,u,e,n),this.createLabelEl(s,u,e,n),r.getZr().add(s);else{var d=nn(a9,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}o9(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=XI(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=ih(e).pointerEl=new zb[i.type](r9(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var i=ih(e).labelEl=new On(r9(n.label));e.add(i),i9(i,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=ih(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=ih(e).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),i9(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=o0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Uu(u.event)},onmousedown:lR(this._onHandleDragMove,this,0,0),drift:lR(this._onHandleDragMove,this),ondragend:lR(this._onHandleDragEnd,this)}),r.add(a)),o9(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");at(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,v0(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){a9(this._axisPointerModel,!n&&this._moveAnimation,this._handle,uR(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(uR(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(uR(a)),ih(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),I1(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 a9(t,e,n,r){oce(ih(n).lastProp,r)||(ih(n).lastProp=r,e?zn(n,r,t):(n.stopAnimation(),n.attr(r)))}function oce(t,e){if(Wt(t)&&Wt(e)){var n=!0;return Z(e,function(r,a){n=n&&oce(t[a],r)}),!!n}else return t===e}function i9(t,e){t[e.get(["label","show"])?"show":"hide"]()}function uR(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function o9(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 M$=vDt;function D$(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 sce(t,e,n,r,a){var i=n.get("value"),o=lce(i,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=yp(s.get("padding")||0),u=s.getFont(),c=Nb(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=a.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),gDt(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:gr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function gDt(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 lce(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:zI(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};Z(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Mt(o)?i=o.replace("{value}",i):zt(o)&&(i=o(s))}return i}function k$(t,e,n){var r=Do();return Gf(r,r,n.rotation),el(r,r,n.position),Zs([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function uce(t,e,n,r,a,i){var o=Ku.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),sce(e,r,a,i,{position:k$(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function R$(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function cce(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function s9(t,e,n,r,a,i){return{cx:t,cy:e,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var yDt=function(t){Ve(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=l9(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=D$(i),h=mDt[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=$A(l.model,a);uce(r,n,p,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=$A(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=k$(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=l9(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(M$);function l9(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var mDt={line:function(t,e,n){var r=R$([e,n[0]],[e,n[1]],u9(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:cce([e-r/2,n[0]],[r,a],u9(t))}}};function u9(t){return t.dim==="x"?0:1}const bDt=yDt;var SDt=function(t){Ve(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}(kn);const wDt=SDt;var Lu=In(),_Dt=Z;function fce(t,e,n){if(!Vn.node){var r=e.getZr();Lu(r).records||(Lu(r).records={}),xDt(r,e);var a=Lu(r).records[t]||(Lu(r).records[t]={});a.handler=n}}function xDt(t,e){if(Lu(t).initialized)return;Lu(t).initialized=!0,n("click",nn(c9,"click")),n("mousemove",nn(c9,"mousemove")),n("globalout",TDt);function n(r,a){t.on(r,function(i){var o=EDt(e);_Dt(Lu(t).records,function(s){s&&a(s,i,o.dispatchAction)}),CDt(o.pendings,e)})}}function CDt(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 TDt(t,e,n){t.handler("leave",null,n)}function c9(t,e,n,r){e.handler(t,n,r)}function EDt(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 r3(t,e){if(!Vn.node){var n=e.getZr(),r=(Lu(n).records||{})[t];r&&(Lu(n).records[t]=null)}}var MDt=function(t){Ve(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";fce("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){r3("axisPointer",r)},e.prototype.dispose=function(n,r){r3("axisPointer",r)},e.type="axisPointer",e}(Lr);const DDt=MDt;function dce(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Qh(i,t);if(o==null||o<0||at(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=i.mapDimension(d),v=[];v[h]=i.get(p,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(i.getValues(ut(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 f9=In();function kDt(t,e,n){var r=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||Dt(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Tx(a)&&(a=dce({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Tx(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||Tx(a),d={},h={},p={list:[],map:{}},v={showPointer:nn(LDt,h),showTooltip:nn(ODt,p)};Z(s.coordSysMap,function(y,m){var b=l||y.containPoint(a);Z(s.coordSysAxesInfo[m],function(w,C){var x=w.axis,_=BDt(u,w);if(!f&&b&&(!u||_)){var T=_&&_.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&d9(w,T,v,!1,d)}})});var g={};return Z(c,function(y,m){var b=y.linkGroup;b&&!h[m]&&Z(b.axesInfo,function(w,C){var x=h[C];if(w!==y&&x){var _=x.value;b.mapper&&(_=y.axis.scale.parse(b.mapper(_,h9(w),h9(y)))),g[y.key]=_}})}),Z(g,function(y,m){d9(c[m],y,v,!0,d)}),ADt(h,c,d),NDt(p,a,t,o),VDt(c,o,n),d}}function d9(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=RDt(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Qe(a,s[0]),!r&&t.snap&&i.containData(l)&&l!=null&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}}function RDt(t,e){var n=e.axis,r=n.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return Z(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,t,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],t,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=t-f,v=Math.abs(p);v<=o&&((v<o||p>=0&&s<0)&&(o=v,s=p,a=f,i.length=0),Z(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function LDt(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function ODt(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=G1(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 ADt(t,e,n){var r=n.axesInfo=[];Z(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 NDt(t,e,n,r){if(Tx(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 VDt(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",i=f9(r)[a]||{},o=f9(r)[a]={};Z(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&Z(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];Z(i,function(u,c){!o[c]&&l.push(u)}),Z(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 BDt(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 h9(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 Tx(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Jb(t){Sp.registerAxisPointerClass("CartesianAxisPointer",bDt),t.registerComponentModel(wDt),t.registerComponentView(DDt),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!at(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=xwt(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kDt)}function IDt(t){mn($le),mn(Jb)}var $Dt=function(t){Ve(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=D$(i),p=FDt[d](s,l,f,c);p.style=h,n.graphicKey=p.type,n.pointer=p}var v=i.get(["label","margin"]),g=PDt(r,a,i,l,v);sce(n,a,i,o,g)},e}(M$);function PDt(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=Do();Gf(d,d,s),el(d,d,[r.cx,r.cy]),u=Zs([o,-a],d);var h=e.getModel("axisLabel").get("rotate")||0,p=Ku.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=r.coordToPoint([v+a,o]);var g=r.cx,y=r.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var FDt={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:R$(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:s9(e.cx,e.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:s9(e.cx,e.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const zDt=$Dt;var UDt=function(t){Ve(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}(kn);const GDt=UDt;var L$=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ca).models[0]},e.type="polarAxis",e}(kn);ea(L$,m0);var HDt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}(L$),WDt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}(L$),O$=function(t){Ve(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}(ys);O$.prototype.dataToRadius=ys.prototype.dataToCoord;O$.prototype.radiusToData=ys.prototype.coordToData;const jDt=O$;var KDt=In(),A$=function(t){Ve(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=Nb(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=KDt(n.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(ys);A$.prototype.dataToAngle=ys.prototype.dataToCoord;A$.prototype.angleToData=ys.prototype.coordToData;const YDt=A$;var hce=["radius","angle"],qDt=function(){function t(e){this.dimensions=hce,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new jDt,this._angleAxis=new YDt,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=p9(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=p9(n);return a===this?this.pointToData(r):null},t}();function p9(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const XDt=qDt;function ZDt(t,e,n){var r=e.get("center"),a=n.getWidth(),i=n.getHeight();t.cx=wt(r[0],a),t.cy=wt(r[1],i);var o=t.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:at(l)||(l=[0,l]);var u=[wt(l[0],s),wt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function QDt(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();Z(eC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),Z(eC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),np(r.scale,r.model),np(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 JDt(t){return t.mainType==="angleAxis"}function v9(t,e){if(t.type=e.get("type"),t.scale=Hb(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),JDt(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 ekt={dimensions:hce,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,a){var i=new XDt(a+"");i.update=QDt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");v9(o,l),v9(s,u),ZDt(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",ca).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const tkt=ekt;var nkt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function o_(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 s_(t){var e=t.getRadiusAxis();return e.inverse?0:1}function g9(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 rkt=function(t){Ve(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=ut(a.getViewLabels(),function(c){c=Kt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});g9(u),g9(s),Z(nkt,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&akt[c](this.group,n,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Sp),akt={axisLine:function(t,e,n,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=s_(n),l=s?0:1,u;i[l]===0?u=new nl({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Ib({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[s_(n)],u=ut(r,function(c){return new Da({shape:o_(n,[l,l+s],c.coord)})});t.add(wo(u,{style:Ht(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[s_(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new Da({shape:o_(n,[u,u+l],a[f][d].coord)}));t.add(wo(c,{style:Ht(s.getModel("lineStyle").getLineStyle(),Ht(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");Z(o,function(f,d){var h=l,p=f.tickValue,v=i[s_(n)],g=n.coordToPoint([v+u,f.coord]),y=n.cx,m=n.cy,b=Math.abs(g[0]-y)/v<.3?"center":g[0]>y?"left":"right",w=Math.abs(g[1]-m)/v<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var C=s[p];Wt(C)&&C.textStyle&&(h=new lr(C.textStyle,l,l.ecModel))}var x=new On({silent:Ku.isLabelSilent(e),style:gr(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(t.add(x),c){var _=Ku.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=f.rawLabel,rn(x).eventData=_}},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 Da({shape:o_(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)t.add(wo(c[f],{style:Ht({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 Da({shape:o_(n,i,a[u][c].coord)}));t.add(wo(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]),p=Math.max(i[0],i[1]),v=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var m=g===y?r[0].coord:r[g].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Wi({shape:{cx:n.cx,cy:n.cy,r0:h,r:p,startAngle:d,endAngle:-m*f,clockwise:v},silent:!0})),d=-m*f}for(var g=0;g<c.length;g++)t.add(wo(c[g],{style:Ht({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const ikt=rkt;var okt=["axisLine","axisTickLabel","axisName"],skt=["splitLine","splitArea","minorSplitLine"],lkt=function(t){Ve(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 Xt;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=ckt(s,n,f),p=new Ku(n,h);Z(okt,p.add,p),i.add(p.getGroup()),Fb(a,i,n),Z(skt,function(v){n.get([v,"show"])&&!o.scale.isBlank()&&ukt[v](this.group,n,s,f,d,u,c)},this)}},e.type="radiusAxis",e}(Sp),ukt={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 nl({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)t.add(wo(c[f],{style:Ht({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 nl({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));t.add(wo(u,{style:Ht({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 Wi({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(wo(c[d],{style:Ht({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function ckt(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 fkt=lkt;function pce(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function vce(t,e){return e.dim+t.model.componentIndex}function dkt(t,e,n){var r={},a=hkt(nr(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=vce(s,l),c=pce(i),f=a[u][c],d=f.offset,h=f.width,p=s.getOtherAxis(l),v=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;r[c]=r[c]||[];for(var b=o.mapDimension(p.dim),w=o.mapDimension(l.dim),C=ju(o,b),x=l.dim!=="radius"||!i.get("roundCap",!0),_=p.dataToCoord(0),T=0,M=o.count();T<M;T++){var E=o.get(b,T),k=o.get(w,T),R=E>=0?"p":"n",L=_;C&&(r[c][k]||(r[c][k]={p:_,n:_}),L=r[c][k][R]);var A=void 0,V=void 0,G=void 0,I=void 0;if(p.dim==="radius"){var $=p.dataToCoord(E)-_,N=l.dataToCoord(k);Math.abs($)<y&&($=($<0?-1:1)*y),A=L,V=L+$,G=N-d,I=G-h,C&&(r[c][k][R]=V)}else{var P=p.dataToCoord(E,x)-_,Y=l.dataToCoord(k);Math.abs(P)<m&&(P=(P<0?-1:1)*m),A=Y+d,V=A+h,G=L,I=L+P,C&&(r[c][k][R]=I)}o.setItemLayout(T,{cx:v,cy:g,r0:A,r:V,startAngle:-G*Math.PI/180,endAngle:-I*Math.PI/180,clockwise:G>=I})}}})}function hkt(t){var e={};Z(t,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=vce(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=pce(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=wt(r.get("barWidth"),c),v=wt(r.get("barMaxWidth"),c),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var n={};return Z(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=wt(r.categoryGap,o),l=wt(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),Z(i,function(v,g){var y=v.maxWidth;y&&y<f&&(y=Math.min(y,u),v.width&&(y=Math.min(y,v.width)),u-=y,v.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;Z(i,function(v,g){v.width||(v.width=f),h=v,d+=v.width*(1+l)}),h&&(d-=h.width*l);var p=-d/2;Z(i,function(v,g){n[a][g]=n[a][g]||{offset:p,width:v.width},p+=v.width*(1+l)})}),n}var pkt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},vkt={splitNumber:5},gkt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="polar",e}(Lr);function ykt(t){mn(Jb),Sp.registerAxisPointerClass("PolarAxisPointer",zDt),t.registerCoordinateSystem("polar",tkt),t.registerComponentModel(GDt),t.registerComponentView(gkt),Vg(t,"angle",HDt,pkt),Vg(t,"radius",WDt,vkt),t.registerComponentView(ikt),t.registerComponentView(fkt),t.registerLayout(nn(dkt,"bar"))}function a3(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),Ma(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 mkt=["axisLine","axisTickLabel","axisName"],bkt=["splitArea","splitLine"],Skt=function(t){Ve(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 Xt;var l=a3(n),u=new Ku(n,l);Z(mkt,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),Z(bkt,function(c){n.get([c,"show"])&&wkt[c](this,this.group,this._axisGroup,n)},this),Fb(s,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)},e.prototype.remove=function(){Vle(this)},e.type="singleAxis",e}(Sp),wkt={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}),p=[],v=[],g=0;g<h.length;++g){var y=a.toGlobalCoord(h[g].coord);c?(p[0]=y,p[1]=u.y,v[0]=y,v[1]=u.y+u.height):(p[0]=u.x,p[1]=y,v[0]=u.x+u.width,v[1]=y);var m=new Da({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});Lg(m.shape,l);var b=d++%s.length;f[b]=f[b]||[],f[b].push(m)}for(var w=o.getLineStyle(["color"]),g=0;g<f.length;++g)e.add(wo(f[g],{style:Ht({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(t,e,n,r){Nle(t,n,r,r)}};const _kt=Skt;var gce=function(t){Ve(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}(kn);ea(gce,m0.prototype);const cR=gce;var xkt=function(t){Ve(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}(ys);const Ckt=xkt;var yce=["single"],Tkt=function(){function t(e,n,r){this.type="single",this.dimension="single",this.dimensions=yce,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 Ckt(a,Hb(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();Z(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),np(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,n){this._rect=ga({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=y9(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=y9(n);return a===this?this.pointToData(r):null},t}();function y9(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function Ekt(t,e){var n=[];return t.eachComponent("singleAxis",function(r,a){var i=new Tkt(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",ca).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var Mkt={create:Ekt,dimensions:yce};const Dkt=Mkt;var m9=["x","y"],kkt=["width","height"],Rkt=function(t){Ve(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=fR(l,1-vC(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=D$(i),h=Lkt[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=a3(a);uce(r,n,p,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=a3(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=k$(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=vC(o),u=fR(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=fR(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}(M$),Lkt={line:function(t,e,n){var r=R$([e,n[0]],[e,n[1]],vC(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:cce([e-r/2,n[0]],[r,a],vC(t))}}};function vC(t){return t.isHorizontal()?0:1}function fR(t,e){var n=t.getRect();return[n[m9[e]],n[m9[e]]+n[kkt[e]]]}const Okt=Rkt;var Akt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(Lr);function Nkt(t){mn(Jb),Sp.registerAxisPointerClass("SingleAxisPointer",Okt),t.registerComponentView(Akt),t.registerComponentView(_kt),t.registerComponentModel(cR),Vg(t,"single",cR,cR.defaultOption),t.registerCoordinateSystem("single",Dkt)}var Vkt=function(t){Ve(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=c0(n);t.prototype.init.apply(this,arguments),b9(n,i)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),b9(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}(kn);function b9(t,e){var n=t.cellSize,r;at(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=ut([0,1],function(i){return Tgt(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kf(t,e,{type:"box",ignoreSize:a})}const Bkt=Vkt;var Ikt=function(t){Ve(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 An({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},e.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(n,v,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(n,r,a){var i=new qi({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 Mt(n)&&n?wgt(n,r):zt(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var v=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(v,g),m=new On({z2:30,style:gr(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||Mt(s))&&(s&&(r=hA(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v<f[d].length-1;v++){var g=f[d][v].slice(),y=this._firstDayOfMonth[v];if(p){var m=this._firstDayPoints[v];g[h]=(m[h]+f[0][v+1][h])/2}var b=o.get("formatter"),w=s[+y.m-1],C={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},x=this._formatterLabel(b,C),_=new On({z2:30,style:Qe(gr(o,{text:x}),this._monthTextPositionControl(g,p,a,u,l))});i.add(_)}}},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||Mt(c)){c&&(r=hA(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||ut(r.get(["time","dayOfWeekAbbr"]),function(C){return C[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];f=wt(f,Math.min(v[1],v[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,b=g;b=Math.abs((g+d)%7);var w=new On({z2:30,style:Qe(gr(s,{text:c[b]}),this._weekTextPositionControl(m,i,u,f,v))});o.add(w)}}},e.type="calendar",e}(Lr);const $kt=Ikt;var dR=864e5,Pkt=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=ko(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];Z([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=ga(o,l);Z([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){at(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+dR))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=S9(n);return a===this?a.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=S9(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(at(e)&&e.length===1&&(e=e[0]),at(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/dR)-Math.floor(n[0].time/dR)+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 S9(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}const Fkt=Pkt;function zkt(t){t.registerComponentModel(Bkt),t.registerComponentView($kt),t.registerCoordinateSystem("calendar",Fkt)}function Ukt(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 w9(t,e){var n;return Z(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function Gkt(t,e,n){var r=Qe({},n),a=t[e],i=n.$action||"merge";i==="merge"?a?(un(a,r,!0),kf(a,r,{ignoreSize:!0}),Jie(n,a),l_(n,a),l_(n,a,"shape"),l_(n,a,"style"),l_(n,a,"extra"),n.clipPath=a.clipPath):t[e]=r:i==="replace"?t[e]=r:i==="remove"&&a&&(t[e]=null)}var mce=["transition","enterFrom","leaveTo"],Hkt=mce.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function l_(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?mce:Hkt,a=0;a<r.length;a++){var i=r[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function Wkt(t,e){if(t&&(t.hv=e.hv=[w9(e,["left","right"]),w9(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 jkt=function(t){Ve(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=Bae(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];Z(l,function(c,f){var d=c.newOption;d&&(u.push(d),Ukt(c,d),Gkt(o,f,d),Wkt(o[f],d))},this),a.elements=nr(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(n,r,a){Z(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}(kn),_9={path:null,compoundPath:null,group:Xt,image:Ya,text:On},Wo=In(),Kkt=function(t){Ve(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=It()},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");Z(r,function(l){var u=Sa(l.id,null),c=u!=null?a.get(u):null,f=Sa(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,p=l.style;h==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var v=l.textContent,g=l.textConfig;if(p&&Zue(p,h,!!g,!!v)){var y=Que(p,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!v&&y.textContent&&(v=y.textContent)}var m=Ykt(l),b=l.$action||"merge",w=b==="merge",C=b==="replace";if(w){var x=!c,_=c;x?_=x9(u,d,l.type,a):(_&&(Wo(_).isNew=!1),nce(_)),_&&(Cx(_,m,n,{isInit:x}),C9(_,l,o,s))}else if(C){Ex(c,l,a,n);var T=x9(u,d,l.type,a);T&&(Cx(T,m,n,{isInit:!0}),C9(T,l,o,s))}else b==="remove"&&(ece(c,l),Ex(c,l,a,n));var M=a.get(u);if(M&&v)if(w){var E=M.getTextContent();E?E.attr(v):M.setTextContent(new On(v))}else C&&M.setTextContent(new On(v));if(M){var k=l.clipPath;if(k){var R=k.type,L=void 0,x=!1;if(w){var A=M.getClipPath();x=!A||Wo(A).type!==R,L=x?i3(R):A}else C&&(x=!0,L=i3(R));M.setClipPath(L),Cx(L,k,n,{isInit:x}),hC(L,k.keyframeAnimation,n)}var V=Wo(M);M.setTextConfig(g),V.option=l,qkt(M,n,l),s0({el:M,componentModel:n,itemName:M.name,itemTooltipOption:l.tooltip}),hC(M,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=Sa(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var p=h.parent,v=p===i,g=Wo(h),y=Wo(p);g.width=wt(g.option.width,v?s:y.width)||0,g.height=wt(g.option.height,v?l:y.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=Sa(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,y=Wo(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},b={},w=iE(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},b);if(!Wo(h).isNew&&w){for(var C=f.transition,x={},_=0;_<u.length;_++){var T=u[_],M=b[T];C&&(zh(C)||vn(C,T)>=0)?x[T]=M:h[T]=M}zn(h,x,n,0)}else h.attr(b)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){Ex(a,Wo(a).option,r,n._lastGraphicModel)}),this._elMap=It()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Lr);function i3(t){var e=Rt(_9,t)?_9[t]:QT(t),n=new e({});return Wo(n).type=t,n}function x9(t,e,n,r){var a=i3(n);return e.add(a),r.set(t,a),Wo(a).id=t,Wo(a).isNew=!0,a}function Ex(t,e,n,r){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){Ex(i,e,n,r)}),_E(t,e,r),n.removeKey(Wo(t).id))}function C9(t,e,n,r){t.isGroup||Z([["cursor",ds.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];Rt(e,i)?t[i]=fn(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),Z(Tn(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=zt(i)?i:null}}),Rt(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function Ykt(t){return t=Qe({},t),Z(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Qie),function(e){delete t[e]}),t}function qkt(t,e,n){var r=rn(t).eventData;!t.silent&&!t.ignore&&!r&&(r=rn(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function Xkt(t){t.registerComponentModel(jkt),t.registerComponentView(Kkt),t.registerPreprocessor(function(e){var n=e.graphic;at(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var T9=["x","y","radius","angle","single"],Zkt=["cartesian2d","polar","singleAxis"];function Qkt(t){var e=t.get("coordinateSystem");return vn(Zkt,e)>=0}function nf(t){return t+"Axis"}function Jkt(t,e){var n=It(),r=[],a=It();t.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,t.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=n.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function bce(t){var e=t.ecModel,n={infoList:[],infoMap:It()};return t.eachTargetAxis(function(r,a){var i=e.getComponent(nf(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 hR=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}(),eRt=function(t){Ve(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=E9(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},e.prototype.mergeOption=function(n){var r=E9(n);un(this.option,n,!0),un(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;Z([["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=It(),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 Z(T9,function(a){var i=this.getReferringComponents(nf(a),apt);if(i.specified){r=!0;var o=new hR;Z(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 hR;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ca).models[0];h&&Z(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",ca).models[0]&&d.add(p.componentIndex)})}}}i&&Z(T9,function(u){if(i){var c=a.findComponents({mainType:nf(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new hR;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");Z([["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(nf(r),a))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){Z(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(nf(n),r)},e.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;Z([["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;Z(["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}(kn);function E9(t){var e={};return Z(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}const q1=eRt;var tRt=function(t){Ve(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}(q1);const nRt=tRt;var rRt=function(t){Ve(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}(Lr);const N$=rRt;var aRt=function(t){Ve(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}(N$);const iRt=aRt;var yv=Z,M9=Co,oRt=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(Qkt(n)){var r=nf(this._dimName),a=n.getReferringComponents(r,ca).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 Kt(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;yv(["start","end"],function(d,h){var p=e[d],v=e[d+"Value"];i[h]==="percent"?(p==null&&(p=o[h]),v=a.parse(tr(p,o,n))):(u=!0,v=v==null?n[h]:a.parse(v),p=tr(v,n,o)),l[h]=v==null||isNaN(v)?n[h]:v,s[h]=p==null||isNaN(p)?o[h]:p}),M9(l),M9(s);var c=this._minMaxSpan;u?f(l,s,n,o,!1):f(s,l,o,n,!0);function f(d,h,p,v,g){var y=g?"Span":"ValueSpan";wp(0,d,p,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)h[m]=tr(d[m],p,v,!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=sRt(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;yv(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=ut(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,v,g,y=0;y<c.length;y++){var m=f.get(d[y],h),b=!isNaN(m),w=m<o[0],C=m>o[1];if(b&&!w&&!C)return!0;b&&(g=!0),w&&(p=!0),C&&(v=!0)}return g&&p&&v})}else yv(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});yv(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;yv(["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=tr(r[0]+o,r,[0,100],!0):i!=null&&(o=tr(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=PB(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 sRt(t,e,n){var r=[1/0,-1/0];yv(n,function(o){y1t(r,o.getData(),e)});var a=t.getAxisModel(),i=Bse(a.axis.scale,a,r).calculate();return[i.min,i.max]}const lRt=oRt;var uRt={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=t.getComponent(nf(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 lRt(a,i,s,t),n.push(o.__dzAxisProxy))});var r=It();return Z(n,function(a){Z(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 cRt=uRt;function fRt(t){t.registerAction("dataZoom",function(e,n){var r=Jkt(n,e);Z(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var D9=!1;function V$(t){D9||(D9=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,cRt),fRt(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function dRt(t){t.registerComponentModel(nRt),t.registerComponentView(iRt),V$(t)}var Yo=function(){function t(){}return t}(),Sce={};function mv(t,e){Sce[t]=e}function wce(t){return Sce[t]}var hRt=function(t){Ve(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;Z(this.option.feature,function(r,a){var i=wce(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),un(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}(kn);const pRt=hRt;function vRt(t,e,n){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=ga(r,i,a);Ih(e.get("orient"),t,e.get("itemGap"),o.width,o.height),iE(t,r,i,a)}function _ce(t,e){var n=yp(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new An({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 gRt=function(t){Ve(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=[];Z(u,function(p,v){f.push(v)}),new Wu(this._featureNames||[],f).add(d).update(d).remove(nn(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],y=f[v],m=u[g],b=new lr(m,n,n.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(yRt(g))w={onclick:b.option.onclick,featureName:g};else{var C=wce(g);if(!C)return;w=new C}c[g]=w}else if(w=c[y],!w)return;w.uid=u0("toolbox-feature"),w.model=b,w.ecModel=r,w.api=a;var x=w instanceof Yo;if(!g&&y){x&&w.dispose&&w.dispose(r,a);return}if(!b.get("show")||x&&w.unusable){x&&w.remove&&w.remove(r,a);return}h(b,w,g),b.setIconStatus=function(_,T){var M=this.option,E=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[_]=T,E[_]&&(T==="emphasis"?Gu:Hu)(E[_])},w instanceof Yo&&w.render&&w.render(b,r,a,i)}function h(p,v,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),b=v instanceof Yo&&v.getIcons?v.getIcons():p.get("icon"),w=p.get("title")||{},C,x;Mt(b)?(C={},C[g]=b):C=b,Mt(w)?(x={},x[g]=w):x=w;var _=p.iconPaths={};Z(C,function(T,M){var E=o0(T,{},{x:-s/2,y:-s/2,width:s,height:s});E.setStyle(y.getItemStyle());var k=E.ensureState("emphasis");k.style=m.getItemStyle();var R=new On({style:{text:x[M],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});E.setTextContent(R),s0({el:E,componentModel:n,itemName:M,formatterParamsExtra:{title:x[M]}}),E.__title=x[M],E.on("mouseover",function(){var L=m.getItemStyle(),A=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),E.setTextConfig({position:m.get("textPosition")||A}),R.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),R.hide()}),(p.get(["iconStatus",M])==="emphasis"?Gu:Hu)(E),o.add(E),E.on("click",Dt(v.onclick,v,r,a,M)),_[M]=E})}vRt(o,n,a),o.add(_ce(o.getBoundingRect(),n)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),b=m&&m.ensureState("emphasis");if(b&&!zt(b)&&v){var w=b.style||(b.style={}),C=Nb(v,On.makeFont(w)),x=p.x+o.x,_=p.y+o.y+s,T=!1;_+C.height>a.getHeight()&&(y.position="top",T=!0);var M=T?-5-C.height:s+10;x+C.width/2>a.getWidth()?(y.position=["100%",M],w.align="right"):x-C.width/2<0&&(y.position=[0,M],w.align="left")}})},e.prototype.updateView=function(n,r,a,i){Z(this._features,function(o){o instanceof Yo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(n,r){Z(this._features,function(a){a instanceof Yo&&a.remove&&a.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){Z(this._features,function(a){a instanceof Yo&&a.dispose&&a.dispose(n,r)})},e.type="toolbox",e}(Lr);function yRt(t){return t.indexOf("my")===0}const mRt=gRt;var bRt=function(t){Ve(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=Vn.browser;if(zt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,v)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),w.focus(),C.execCommand("SaveAs",!0,v),document.body.removeChild(b)}}else{var x=a.get("lang"),_='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(_),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}(Yo);const SRt=bRt;var k9="__ec_magicType_stack__",wRt=[["line","bar"],["stack"]],_Rt=function(t){Ve(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 Z(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(R9[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=R9[a](d,h,f,i);p&&(Ht(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",b=f.getReferringComponents(m,ca).models[0],w=b.componentIndex;s[m]=s[m]||[];for(var C=0;C<=w;C++)s[m][w]=s[m][w]||{};s[m][w].boundaryGap=a==="bar"}}};Z(wRt,function(f){vn(f,a)>=0&&Z(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=un({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}(Yo),R9={line:function(t,e,n,r){if(t==="bar")return un({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 un({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")===k9;if(t==="line"||t==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),un({id:e,stack:a?"":k9},r.get(["option","stack"])||{},!0)}};ll({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const xRt=_Rt;var xE=new Array(60).join("-"),$g=" ";function CRt(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 TRt(t){var e=[];return Z(t,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(ut(n.series,function(h){return h.name})),l=[a.model.getCategories()];Z(n.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join($g)],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($g))}e.push(u.join(`
  1148. `))}),e.join(`
  1149. `+xE+`
  1150. `)}function ERt(t){return ut(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+$g:"")+a.join($g))}),r.join(`
  1151. `)}).join(`
  1152. `+xE+`
  1153. `)}function MRt(t){var e=CRt(t);return{value:nr([TRt(e.seriesGroupByCategoryAxis),ERt(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  1154. `+xE+`
  1155. `),meta:e.meta}}function gC(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function DRt(t){var e=t.slice(0,t.indexOf(`
  1156. `));if(e.indexOf($g)>=0)return!0}var o3=new RegExp("["+$g+"]+","g");function kRt(t){for(var e=t.split(/\n+/g),n=gC(e.shift()).split(o3),r=[],a=ut(n,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=gC(e[i]).split(o3);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 RRt(t){for(var e=t.split(/\n+/g),n=gC(e.shift()),r=[],a=0;a<e.length;a++){var i=gC(e[a]);if(i){var o=i.split(o3),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 LRt(t,e){var n=t.split(new RegExp(`
  1157. *`+xE+`
  1158. *`,"g")),r={series:[]};return Z(n,function(a,i){if(DRt(a)){var o=kRt(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=RRt(a);r.series.push(o)}}),r}var ORt=function(t){Ve(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=MRt(n);if(zt(f)){var p=f(r.getOption());Mt(p)?u.innerHTML=p:kg(p)&&u.appendChild(p)}else{c.readOnly=i.get("readOnly");var v=c.style;v.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",v.color=i.get("textColor"),v.borderColor=i.get("textareaBorderColor"),v.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",b=document.createElement("div"),w=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var C=this;function x(){a.removeChild(o),C._dom=null}$O(b,"click",x),$O(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){x();return}var _;try{zt(d)?_=d(u,r.getOption()):_=LRt(c.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}_&&r.dispatchAction({type:"changeDataView",newOption:_}),x()}),b.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=b.style.cssText=m,!i.get("readOnly")&&y.appendChild(w),y.appendChild(b),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}(Yo);function ARt(t,e){return ut(t,function(n,r){var a=e&&e[r];if(Wt(a)&&!at(a)){var i=Wt(n)&&!at(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=Ht(n,a),o&&delete n.name,n}else return n})}ll({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];Z(t.newOption.series,function(r){var a=e.getSeriesByName(r.name)[0];if(!a)n.push(Qe({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:ARt(r.data,i)})}}),e.mergeOption(Ht({series:n},t.newOption))});const NRt=ORt;var xce=Z,Cce=In();function VRt(t,e){var n=B$(t);xce(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 BRt(t){var e=B$(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return xce(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 IRt(t){Cce(t).snapshots=null}function $Rt(t){return B$(t).length}function B$(t){var e=Cce(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var PRt=function(t){Ve(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){IRt(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}(Yo);ll({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const FRt=PRt;var zRt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],URt=function(){function t(e,n,r){var a=this;this._targetInfoList=[];var i=L9(n,e);Z(GRt,function(o,s){(!r||!r.include||vn(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=pR[r.brushType](0,i,a);r.__rangeOffset={offset:V9[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){Z(e,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&Z(i.coordSyses,function(o){var s=pR[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},t.prototype.setInputRanges=function(e,n){Z(e,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=pR[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?V9[r.brushType](i.values,o.offset,HRt(i.xyMinMax,o.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(e,n){return ut(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:Lue(a),isTargetByCursor:Aue(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oue(a)}})},t.prototype.controlSeries=function(e,n,r){var a=this.findTargetInfo(e,r);return a===!0||a&&vn(a.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,a=L9(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<O9.length;l++)if(O9[l](a,o))return o}return!0},t}();function s3(t){return t[0]>t[1]&&t.reverse(),t}function L9(t,e){return wm(t,e,{includeMainTypes:zRt})}var GRt={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,a=t.gridModels,i=It(),o={},s={};!n&&!r&&!a||(Z(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),Z(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),Z(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=[];Z(u.getCartesians(),function(f,d){(vn(n,f.getAxis("x").model)>=0||vn(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:A9.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){Z(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:A9.geo})})}},O9=[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}],A9={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(df(t)),e}},pR={lineX:nn(N9,0),lineY:nn(N9,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=[s3([a[0],i[0]]),s3([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=ut(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 N9(t,e,n,r){var a=n.getAxis(["x","y"][t]),i=s3(ut([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 V9={lineX:nn(B9,0),lineY:nn(B9,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 ut(t,function(r,a){return[r[0]-n[0]*e[a][0],r[1]-n[1]*e[a][1]]})}};function B9(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function HRt(t,e){var n=I9(t),r=I9(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 I9(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const I$=URt;var l3=Z,WRt=Jht("toolbox-dataZoom_"),jRt=function(t){Ve(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 y$(a.getZr()),this._brushController.on("brush",Dt(this._onBrush,this)).mount()),qRt(n,r,this,i,a),YRt(n,r)},e.prototype.onclick=function(n,r,a){KRt[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 I$($$(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)}}),VRt(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,i),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=wp(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];l3(n,function(a,i){r.push(Kt(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}(Yo),KRt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(BRt(this.ecModel))}};function $$(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 YRt(t,e){t.setIconStatus("back",$Rt(e)>1?"emphasis":"normal")}function qRt(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 I$($$(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)}Lgt("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=$$(r),o=wm(t,i);l3(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),l3(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:WRt+u+f};d[c]=f,a.push(d)}return a});const XRt=jRt;function ZRt(t){t.registerComponentModel(pRt),t.registerComponentView(mRt),mv("saveAsImage",SRt),mv("magicType",xRt),mv("dataView",NRt),mv("dataZoom",XRt),mv("restore",FRt),mn(dRt)}var QRt=function(t){Ve(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}(kn);const JRt=QRt;function Tce(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Ece(t){if(Vn.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var Mce=Ece(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),eLt=Ece(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Dce(t,e){if(!t)return e;e=fI(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function tLt(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var nLt=Dce(eLt,"transition"),P$=Dce(Mce,"transform"),rLt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Vn.transform3dSupported?"will-change:transform;":"");function aLt(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function iLt(t,e,n){if(!Mt(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=tp(e);var i=aLt(n),o=Math.max(Math.round(a)*1.5,6),s="",l=P$+":",u;vn(["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 p=e+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+v.join("")+'"></div>'}function oLt(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+=Vn.transformSupported?","+P$+r:",left"+r+",top"+r),nLt+":"+a}function $9(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Vn.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Vn.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+P$+":"+o+";":[["top",0],["left",0],[Mce,o]]}function sLt(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),Z(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function lLt(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=Ooe(t,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),e&&a&&r.push(oLt(a,n)),i&&r.push("background-color:"+i),Z(["width","color","radius"],function(h){var p="border-"+h,v=fI(p),g=t.get(v);g!=null&&r.push(p+":"+g+(h==="color"?"":"px"))}),r.push(sLt(c)),f!=null&&r.push("padding:"+yp(f).join("px ")+"px"),r.join(";")+";"}function P9(t,e,n,r,a){var i=e&&e.painter;if(n){var o=i&&i.getViewportRoot();o&&ydt(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 uLt=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,Vn.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;P9(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();zo(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=tLt(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=rLt+lLt(e,!this._firstShow,this._longHide)+$9(i[0],i[1],!0)+("border-color:"+tp(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(Mt(i)&&r.get("trigger")==="item"&&!Tce(r)&&(s=iLt(r,a,i)),Mt(e))o.innerHTML=e+s;else if(e){o.innerHTML="",at(e)||(e=[e]);for(var l=0;l<e.length;l++)kg(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(P9(r,this._zr,this._appendToBody,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=$9(r[0],r[1]);Z(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",Vn.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(Dt(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 cLt=uLt;var fLt=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),z9(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;Wt(e)&&Zn(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new On({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Ooe(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),Z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),Z(["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=F9(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;z9(a,this._zr,e,n),e=a[0],n=a[1];var i=r.style,o=Ic(i.borderWidth||0),s=F9(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(Dt(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Ic(t){return Math.max(0,t)}function F9(t){var e=Ic(t.shadowBlur||0),n=Ic(t.shadowOffsetX||0),r=Ic(t.shadowOffsetY||0);return{left:Ic(e-n),right:Ic(e+n),top:Ic(e-r),bottom:Ic(e+r)}}function z9(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const dLt=fLt;var hLt=new An({shape:{x:-1,y:-1,width:2,height:2}}),pLt=function(t){Ve(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(!(Vn.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=opt(a.get("renderMode"));this._tooltipContent=i==="richText"?new dLt(r):new cLt(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(n,r,a){if(!(Vn.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")?v0(this,"_updatePosition",50,"fixRate"):I1(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");fce("itemTooltip",this._api,Dt(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||Vn.node||!a.getDom())){var o=U9(i,a);this._ticket="";var s=i.dataByCoordSys,l=mLt(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=hLt;c.x=i.x,c.y=i.y,c.update(),rn(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=dce(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(U9(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=Sy([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;Sh(a,function(u){if(rn(u).dataIndex!=null)return s=u,!0;if(rn(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=Dt(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=Sy([r.tooltipOption],i),l=this._renderMode,u=[],c=Na("section",{blocks:[],noHeader:!0}),f=[],d=new JD;Z(n,function(m){Z(m.dataByAxis,function(b){var w=a.getComponent(b.axisDim+"Axis",b.axisIndex),C=b.value;if(!(!w||C==null)){var x=lce(C,w.axis,a,b.seriesDataIndices,b.valueLabelOpt),_=Na("section",{header:x,noHeader:!Qo(x),sortBlocks:!0,blocks:[]});c.blocks.push(_),Z(b.seriesDataIndices,function(T){var M=a.getSeriesByIndex(T.seriesIndex),E=T.dataIndexInside,k=M.getDataParams(E);if(!(k.dataIndex<0)){k.axisDim=b.axisDim,k.axisIndex=b.axisIndex,k.axisType=b.axisType,k.axisId=b.axisId,k.axisValue=zI(w.axis,{value:C}),k.axisValueLabel=x,k.marker=d.makeTooltipMarker("item",tp(k.color),l);var R=DU(M.formatTooltip(E,!0,null)),L=R.frag;if(L){var A=Sy([M],i).get("valueFormatter");_.blocks.push(A?Qe({valueFormatter:A},L):L)}R.text&&f.push(R.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,p=s.get("order"),v=NU(c,d,l,p,a.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?`
  1159. `:"<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=rn(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=n.positionDefault,v=Sy([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new JD;y.marker=m.makeTooltipMarker("item",tp(y.color),h);var b=DU(u.formatTooltip(c,!1,f)),w=v.get("order"),C=v.get("valueFormatter"),x=b.frag,_=x?NU(C?Qe({valueFormatter:C},x):x,m,h,w,i.get("useUTC"),v.get("textStyle")):b.text,T="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,_,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=rn(r),o=i.tooltipConfig,s=o.option||{};if(Mt(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=Sy(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new JD;this._showOrMove(d,function(){var g=Kt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,n.offsetX,n.offsetY,n.position,r,v)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,p=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),v=p.color;if(d)if(Mt(d)){var g=n.ecModel.get("useUTC"),y=at(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,m&&(h=Ub(y.axisValue,h,g)),h=dI(h,a,!0)}else if(zt(d)){var b=Dt(function(w,C){w===this._ticket&&(f.setContent(C,c,n,v,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,b)}else h=d;f.setContent(h,c,n,v,l),f.show(n,v),this._updatePosition(n,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||at(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!at(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),h=n.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),zt(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),at(r))a=wt(r[0],u),i=wt(r[1],c);else if(Wt(r)){var v=r;v.width=f[0],v.height=f[1];var g=ga(v,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(Mt(r)&&l){var y=yLt(r,p,f,n.get("borderWidth"));a=y[0],i=y[1]}else{var y=vLt(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=G9(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=G9(h)?f[1]/2:h==="bottom"?f[1]:0),Tce(n)){var y=gLt(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&&Z(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&Z(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&Z(v,function(y,m){var b=g[m];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),i&&Z(d.seriesDataIndices,function(y){var m=y.seriesIndex,b=r[m],w=i[m];b&&w&&w.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Vn.node||!r.getDom()||(I1(this,"_updatePosition"),this._tooltipContent.dispose(),r3("itemTooltip",r))},e.type="tooltip",e}(Lr);function Sy(t,e,n){var r=e.ecModel,a;n?(a=new lr(n,r,r),a=new lr(e.option,a,r)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof lr&&(o=o.get("tooltip",!0)),Mt(o)&&(o={formatter:o}),o&&(a=new lr(o,a,r)))}return a}function U9(t,e){return t.dispatchAction||Dt(e.dispatchAction,e)}function vLt(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 gLt(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 yLt(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 G9(t){return t==="center"||t==="middle"}function mLt(t,e,n){var r=HB(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=Vb(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=rn(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const bLt=pLt;function SLt(t){mn(Jb),t.registerComponentModel(JRt),t.registerComponentView(bLt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Qr),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Qr)}var wLt=["rect","polygon","keep","clear"];function _Lt(t,e){var n=ur(t?t.brush:[]);if(n.length){var r=[];Z(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=t&&t.toolbox;at(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),xLt(s),e&&!s.length&&s.push.apply(s,wLt)}}function xLt(t){var e={};Z(t,function(n){e[n]=1}),t.length=0,Z(e,function(n,r){t.push(r)})}var H9=Z;function W9(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function u3(t,e,n){var r={};return H9(e,function(i){var o=r[i]=a();H9(t[i],function(s,l){if(ri.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new ri(u),l==="opacity"&&(u=Kt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ri(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function kce(t,e,n){var r;Z(n,function(a){e.hasOwnProperty(a)&&W9(e[a])&&(r=!0)}),r&&Z(n,function(a){e.hasOwnProperty(a)&&W9(e[a])?t[a]=Kt(e[a]):delete t[a]})}function CLt(t,e,n,r,a,i){var o={};Z(t,function(f){var d=ri.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return CI(n,s,f)}function u(f,d){Uoe(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,f),v=e[p],g=o[p],y=0,m=g.length;y<m;y++){var b=g[y];v[b]&&v[b].applyVisual(f,l,u)}}}function TLt(t,e,n,r){var a={};return Z(t,function(i){var o=ri.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(C){return CI(s,f,C)}function c(C,x){Uoe(s,f,C,x)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var p=r!=null?d.get(l,f):f,v=n(p),g=e[v],y=a[v],m=0,b=y.length;m<b;m++){var w=y[m];g[w]&&g[w].applyVisual(p,u,c)}}}}}function ELt(t){var e=t.brushType,n={point:function(r){return j9[e].point(r,n,t)},rect:function(r){return j9[e].rect(r,n,t)}};return n}var j9={lineX:K9(0),lineY:K9(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])&&rh(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(rh(r,a,i)||rh(r,a+o,i)||rh(r,a,i+s)||rh(r,a+o,i+s)||dn.create(t).contain(l[0],l[1])||Uy(a,i,a+o,i,r)||Uy(a,i,a,i+s,r)||Uy(a+o,i,a+o,i+s,r)||Uy(a,i+s,a+o,i+s,r))return!0}}};function K9(t){var e=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[t];return wy(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(),wy(s[0],o)||wy(s[1],o)||wy(o[0],s)||wy(o[1],s)}}}}function wy(t,e){return e[0]<=t&&t<=e[1]}var Y9=["inBrush","outOfBrush"],vR="__ecBrushSelect",c3="__ecInBrushSelectEvent";function Rce(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new I$(e.option,t);n.setInputRanges(e.areas,t)})}function MLt(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})}),Rce(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Kt(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var v=ut(o.areas,function(C){var x=LLt[C.brushType],_=Ht({boundingRect:x?x(C):void 0},C);return _.selectors=ELt(_),_}),g=u3(o.option,Y9,function(C){C.mappingMethod="fixed"});at(c)&&Z(c,function(C){f[C]=1});function y(C){return c==="all"||!!f[C]}function m(C){return!!C.length}t.eachSeries(function(C,x){var _=h[x]=[];C.subType==="parallel"?b(C,x):w(C,x,_)});function b(C,x){var _=C.coordinateSystem;p=p||_.hasAxisBrushed(),y(x)&&_.eachActiveState(C.getData(),function(T,M){T==="active"&&(d[M]=1)})}function w(C,x,_){if(!(!C.brushSelector||RLt(o,x))&&(Z(v,function(M){o.brushTargetManager.controlSeries(M,C,t)&&_.push(M),p=p||m(_)}),y(x)&&m(_))){var T=C.getData();T.each(function(M){q9(C,_,T,M)&&(d[M]=1)})}}t.eachSeries(function(C,x){var _={seriesId:C.id,seriesIndex:x,seriesName:C.name,dataIndex:[]};l.selected.push(_);var T=h[x],M=C.getData(),E=y(x)?function(k){return d[k]?(_.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"}:function(k){return q9(C,T,M,k)?(_.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"};(y(x)?p:m(T))&&CLt(Y9,g,M,E)})}),DLt(e,a,i,r,n)}function DLt(t,e,n,r,a){if(a){var i=t.getZr();if(!i[c3]){i[vR]||(i[vR]=kLt);var o=v0(i,vR,n,e);o(t,r)}}}function kLt(t,e){if(!t.isDisposed()){var n=t.getZr();n[c3]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[c3]=!1}}function q9(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 RLt(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(at(n)?vn(n,e)<0:e!==n)}var LLt={rect:function(t){return X9(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&&X9(e)}};function X9(t){return new dn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var OLt=function(t){Ve(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 y$(r.getZr())).on("brush",Dt(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){Rce(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:Kt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Kt(a),$from:r})},e.type="brush",e}(Lr);const ALt=OLt;var NLt="#ddd",VLt=function(t){Ve(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&&kce(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:NLt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(n){n&&(this.areas=ut(n,function(r){return Z9(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=Z9(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}(kn);function Z9(t,e){return un({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new lr(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const BLt=VLt;var ILt=["rect","polygon","lineX","lineY","keep","clear"],$Lt=function(t){Ve(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,Z(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 Z(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:ILt.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}(Yo);const PLt=$Lt;function FLt(t){t.registerComponentView(ALt),t.registerComponentModel(BLt),t.registerPreprocessor(_Lt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,MLt),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"},Qr),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Qr),mv("brush",PLt)}var zLt=function(t){Ve(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}(kn),ULt=function(t){Ve(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=fn(n.get("textBaseline"),n.get("textVerticalAlign")),c=new On({style:gr(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new On({style:gr(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=n.get("link"),v=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){G2(p,"_"+n.get("target"))}),v&&h.on("click",function(){G2(v,"_"+n.get("subtarget"))}),rn(c).eventData=rn(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(h);var y=i.getBoundingRect(),m=n.getBoxLayoutParams();m.width=y.width,m.height=y.height;var b=ga(m,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),y=i.getBoundingRect();var C=b.margin,x=n.getItemStyle(["color","opacity"]);x.fill=n.get("backgroundColor");var _=new An({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:n.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(_)}},e.type="title",e}(Lr);function GLt(t){t.registerComponentModel(zLt),t.registerComponentView(ULt)}var HLt=function(t){Ve(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=[],Z(r,function(u,c){var f=Sa(n0(u),""),d;Wt(u)?(d=Kt(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 gi([{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}(kn);const Q9=HLt;var Lce=function(t){Ve(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=Wf(Q9.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}(Q9);ea(Lce,SI.prototype);const WLt=Lce;var jLt=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(Lr);const KLt=jLt;var YLt=function(t){Ve(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}(ys);const qLt=YLt;var gR=Math.PI,J9=In(),XLt=function(t){Ve(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 Na("nameValue",{noName:!0,value:c})},Z(["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=QLt(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?"+":"-":Mt(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:gR/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,y=n.get(["label","rotate"])||0;y=y*gR/180;var m,b,w,C=d.get("position",!0),x=h&&d.get("showPlayBtn",!0),_=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),M=0,E=f;C==="left"||C==="bottom"?(x&&(m=[0,0],M+=g),_&&(b=[M,0],M+=g),T&&(w=[E-p,0],E-=g)):(x&&(m=[E-p,0],E-=g),_&&(b=[0,0],M+=g),T&&(w=[E-p,0],E-=g));var k=[M,E];return n.get("inverse")&&k.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:b,nextBtnPosition:w,axisExtent:k,controlSize:p,controlGap:v}},e.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Do(),l=o.x,u=o.y+o.height;el(s,s,[-l,-u]),Gf(s,s,-gR/2),el(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(a.getBoundingRect()),d=m(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var v=n.labelPosOpt;if(v==null||Mt(v)){var g=v==="+"?0:1;b(h,f,c,1,g),b(p,d,c,1,1-g)}else{var g=v>=0?0:1;b(h,f,c,1,g),p[1]=h[1]+v}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=n.rotation,y(a),y(i);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function m(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,C,x,_,T){w[_]+=x[_][T]-C[_][T]}},e.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=ZLt(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 qLt("value",o,n.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(n){var r=this[n]=new Xt;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 Da({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Qe({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Da({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ht({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=[],Z(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:Dt(o._changeTimeline,o,u.value)},g=e7(f,d,r,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ff(g);var y=rn(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=[],Z(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),y=new On({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:Dt(o._changeTimeline,o,f),silent:!1,style:gr(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=gr(p),y.ensureState("progress").style=gr(v),r.add(y),ff(y),J9(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",Dt(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Dt(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Dt(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var y=tl(fn(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],b=JLt(i,p+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});b.ensureState("emphasis").style=u,r.add(b),ff(b)}}},e.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Dt(u._handlePointerDrag,u),f.ondragend=Dt(u._handlePointerDragend,u),t7(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){t7(f,u._progressLine,s,a,i)}};this._currentPointer=e7(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=Co(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 Zs(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",J9(a[i]).dataIndex<=n)},e.type="timeline.slider",e}(KLt);function ZLt(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new II({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Nse({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Rf}}function QLt(t,e){return ga(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function JLt(t,e,n,r){var a=r.style,i=o0(t.get(["controlStyle",e]),r||{},new dn(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function e7(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=oa(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=un({rectHover:!0,z2:100},r,!0);var u=g0(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=mp(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 t7(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 eOt=XLt;function tOt(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)}),Ht({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 nOt(t){var e=t&&t.timeline;at(e)||(e=e?[e]:[]),Z(e,function(n){n&&rOt(n)})}function rOt(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),n7(t),oh(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});oh(r,"position")||(r.position=t.controlPosition),r.position==="none"&&!oh(r,"show")&&(r.show=!1,delete r.position),delete t.controlPosition}Z(t.data||[],function(a){Wt(a)&&!at(a)&&(!oh(a,"value")&&oh(a,"name")&&(a.value=a.name),n7(a))})}function n7(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};Z(r,function(o,s){!i[s]&&!oh(a,s)&&(a[s]=o)}),n.label&&!oh(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function oh(t,e){return t.hasOwnProperty(e)}function aOt(t){t.registerComponentModel(WLt),t.registerComponentView(eOt),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),tOt(t),t.registerPreprocessor(nOt)}function F$(t,e){if(!t)return!1;for(var n=at(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function u_(t){Zh(t,"label",["show"])}var c_=In(),Oce=function(t){Ve(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(Vn.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=c_(s)[o];if(!l||!l.data){c_(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&u_(l),Z(l.data,function(c){c instanceof Array?(u_(c[0]),u_(c[1])):u_(c)}),u=this.createMarkerModelFromSeries(l,this,r),Qe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),c_(s)[o]=u},this)},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return Na("section",{header:this.name,blocks:[Na("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 c_(n)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(kn);ea(Oce,SI.prototype);const Af=Oce;var iOt=function(t){Ve(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}(Af);const oOt=iOt;function f3(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function sOt(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function f_(t,e,n,r,a,i){var o=[],s=ju(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=z$(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=Gs(e.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var yR={min:nn(f_,"min"),max:nn(f_,"max"),average:nn(f_,"average"),median:nn(f_,"median")};function X1(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,a=r&&r.dimensions;if(!sOt(e)&&!at(e.coord)&&at(a)){var i=Ace(e,n,r,t);if(e=Kt(e),e.type&&yR[e.type]&&i.baseAxis&&i.valueAxis){var o=vn(a,i.baseAxis.dim),s=vn(a,i.valueAxis.dim),l=yR[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||!at(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)yR[u[c]]&&(u[c]=z$(n,n.mapDimension(a[c]),u[c]));return e}}function Ace(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(lOt(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 lOt(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function Z1(t,e){return t&&t.containData&&e.coord&&!f3(e)?t.containData(e.coord):!0}function uOt(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!f3(e)&&!f3(n)?t.containZone(e.coord,n.coord):!0}function Nce(t,e){return t?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return pf(o,e[i])}:function(n,r,a,i){return pf(n.value,e[i])}}function z$(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 mR=In(),cOt=function(t){Ve(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=It()},e.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){mR(s).keep=!1}),r.eachSeries(function(s){var l=Af.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!mR(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(n){mR(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var a=this;Z(n,function(i){var o=Af.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?sie(l):XB(l))})}})},e.type="marker",e}(Lr);const U$=cOt;function r7(t,e,n){var r=e.coordinateSystem;t.each(function(a){var i=t.getItemModel(a),o,s=wt(i.get("x"),n.getWidth()),l=wt(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 fOt=function(t){Ve(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=Af.getMarkerModelFromSeries(i,"markPoint");o&&(r7(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 Kb),f=dOt(o,n,r);r.setData(f),r7(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(zt(p)||zt(v)||zt(g)||zt(y)){var b=r.getRawValue(d),w=r.getDataParams(d);zt(p)&&(p=p(b,w)),zt(v)&&(v=v(b,w)),zt(g)&&(g=g(b,w)),zt(y)&&(y=y(b,w))}var C=h.getModel("itemStyle").getItemStyle(),x=Gb(l,"color");C.fill||(C.fill=x),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){rn(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(U$);function dOt(t,e,n){var r;t?r=ut(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return Qe(Qe({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new gi(r,n),i=ut(n.get("data"),nn(X1,e));t&&(i=nr(i,nn(Z1,t)));var o=Nce(!!t,r);return a.initData(i,null,o),a}const hOt=fOt;function pOt(t){t.registerComponentModel(oOt),t.registerComponentView(hOt),t.registerPreprocessor(function(e){F$(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var vOt=function(t){Ve(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}(Af);const gOt=vOt;var d_=In(),yOt=function(t,e,n,r){var a=t.getData(),i;if(at(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=Ma(r.yAxis,r.xAxis);else{var u=Ace(r,a,e,t);s=u.valueAxis;var c=BI(a,u.valueDataDim);l=z$(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Kt(r),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=n.get("precision");v>=0&&Bn(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[X1(t,i[0]),X1(t,i[1]),Qe({},i[2])];return g[2].type=g[2].type||null,un(g[2],g[0]),un(g[2],g[1]),g};function yC(t){return!isNaN(t)&&!isFinite(t)}function a7(t,e,n,r){var a=1-t,i=r.dimensions[t];return yC(e[a])&&yC(n[a])&&e[t]===n[t]&&r.getAxis(i).containData(e[t])}function mOt(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(a7(1,n,r,t)||a7(0,n,r,t)))return!0}return Z1(t,e[0])&&Z1(t,e[1])}function bR(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=wt(o.get("x"),a.getWidth()),u=wt(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(bp(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;yC(t.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):yC(t.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var bOt=function(t){Ve(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=Af.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=d_(o).from,u=d_(o).to;l.each(function(c){bR(l,c,!0,i,a),bR(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 f$);this.group.add(c.group);var f=SOt(o,n,r),d=f.from,h=f.to,p=f.line;d_(r).from=d,d_(r).to=h,r.setData(p);var v=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),m=r.get("symbolOffset");at(v)||(v=[v,v]),at(g)||(g=[g,g]),at(y)||(y=[y,y]),at(m)||(m=[m,m]),f.from.each(function(w){b(d,w,!0),b(h,w,!1)}),p.each(function(w){var C=p.getItemModel(w).getModel("lineStyle").getLineStyle();p.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),C.stroke==null&&(C.stroke=d.getItemVisual(w,"style").fill),p.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:C})}),c.updateData(p),f.line.eachItemGraphicEl(function(w){rn(w).dataModel=r,w.traverse(function(C){rn(C).dataModel=r})});function b(w,C,x){var _=w.getItemModel(C);bR(w,C,x,n,i);var T=_.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Gb(l,"color")),w.setItemVisual(C,{symbolKeepAspect:_.get("symbolKeepAspect"),symbolOffset:fn(_.get("symbolOffset",!0),m[x?0:1]),symbolRotate:fn(_.get("symbolRotate",!0),y[x?0:1]),symbolSize:fn(_.get("symbolSize"),g[x?0:1]),symbol:fn(_.get("symbol",!0),v[x?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(U$);function SOt(t,e,n){var r;t?r=ut(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return Qe(Qe({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new gi(r,n),i=new gi(r,n),o=new gi([],n),s=ut(n.get("data"),nn(yOt,e,t,n));t&&(s=nr(s,nn(mOt,t)));var l=Nce(!!t,r);return a.initData(ut(s,function(u){return u[0]}),null,l),i.initData(ut(s,function(u){return u[1]}),null,l),o.initData(ut(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const wOt=bOt;function _Ot(t){t.registerComponentModel(gOt),t.registerComponentView(wOt),t.registerPreprocessor(function(e){F$(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var xOt=function(t){Ve(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}(Af);const COt=xOt;var h_=In(),TOt=function(t,e,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=X1(t,a),s=X1(t,i),l=o.coord,u=s.coord;l[0]=Ma(l[0],-1/0),l[1]=Ma(l[1],-1/0),u[0]=Ma(u[0],1/0),u[1]=Ma(u[1],1/0);var c=VT([{},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 mC(t){return!isNaN(t)&&!isFinite(t)}function i7(t,e,n,r){var a=1-t;return mC(e[a])&&mC(n[a])}function EOt(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 bp(t,"cartesian2d")?n&&r&&(i7(1,n,r)||i7(0,n,r))?!0:uOt(t,a,i):Z1(t,a)||Z1(t,i)}function o7(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=wt(o.get(n[0]),a.getWidth()),u=wt(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),d=i.clampData(c),h=i.clampData(f),p=[];n[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(p,n,!0)}else{var v=t.get(n[0],e),g=t.get(n[1],e),y=[v,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(bp(i,"cartesian2d")){var m=i.getAxis("x"),b=i.getAxis("y"),v=t.get(n[0],e),g=t.get(n[1],e);mC(v)?s[0]=m.toGlobalCoord(m.getExtent()[n[0]==="x0"?0:1]):mC(g)&&(s[1]=b.toGlobalCoord(b.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var s7=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],MOt=function(t){Ve(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=Af.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ut(s7,function(f){return o7(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 Xt});this.group.add(c.group),this.markKeep(c);var f=DOt(o,n,r);r.setData(f),f.each(function(d){var h=ut(s7,function(T){return o7(f,d,T,n,i)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),y=v.getExtent(),m=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],b=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];Co(m),Co(b);var w=!(g[0]>m[1]||g[1]<m[0]||y[0]>b[1]||y[1]<b[0]),C=!w;f.setItemLayout(d,{points:h,allClipped:C});var x=f.getItemModel(d).getModel("itemStyle").getItemStyle(),_=Gb(l,"color");x.fill||(x.fill=_,Mt(x.fill)&&(x.fill=C1(x.fill,.4))),x.stroke||(x.stroke=_),f.setItemVisual(d,"style",x)}),f.diff(h_(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var p=new ji({shape:{points:h.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,h){var p=h_(c).data.getItemGraphicEl(h),v=f.getItemLayout(d);v.allClipped?p&&c.group.remove(p):(p?zn(p,{shape:{points:v.points}},r,d):p=new ji({shape:{points:v.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var h=h_(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var p=f.getItemModel(h),v=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),si(d,Aa(p),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:Mt(v.fill)?C1(v.fill,1):"#000"}),oi(d,p),Xr(d,null,null,p.get(["emphasis","disabled"])),rn(d).dataModel=r}),h_(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},e.type="markArea",e}(U$);function DOt(t,e,n){var r,a,i=["x0","y0","x1","y1"];if(t){var o=ut(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Qe(Qe({},f),{name:u,ordinalMeta:null})});a=ut(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new gi(a,n)}else a=[{name:"value",type:"float"}],r=new gi(a,n);var s=ut(n.get("data"),nn(TOt,e,t,n));t&&(s=nr(s,nn(EOt,t)));var l=t?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return pf(h,a[d])}:function(u,c,f,d){return pf(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const kOt=MOt;function ROt(t){t.registerComponentModel(COt),t.registerComponentView(kOt),t.registerPreprocessor(function(e){F$(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var LOt=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"])}},OOt=function(t){Ve(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"]),at(r)&&Z(r,function(i,o){Mt(i)&&(i={type:i}),r[o]=un(i,LOt(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&&GB(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=It(),s=ut(i,function(l){return(Mt(l)||Bn(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new lr(l,this,this.ecModel))},this);this._data=nr(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;Z(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;Z(n,function(a){r[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;Z(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])&&vn(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}(kn);const d3=OOt;var nv=nn,h3=Z,p_=Xt,AOt=function(t){Ve(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 p_),this.group.add(this._selectorGroup=new p_),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=ga(c,f,d),p=this.layoutInner(n,o,h,i,l,u),v=ga(Ht({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=_ce(p,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=It(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),h3(r.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===`
  1160. `)){var g=new p_;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(v)[0];if(!c.get(v))if(y){var m=y.getData(),b=m.getVisual("legendLineStyle")||{},w=m.getVisual("legendIcon"),C=m.getVisual("style"),x=this._createItem(y,v,p,h,r,n,b,C,w,f,i);x.on("click",nv(l7,v,null,i,d)).on("mouseover",nv(p3,y.name,null,i,d)).on("mouseout",nv(v3,y.name,null,i,d)),c.set(v,!0)}else a.eachRawSeries(function(_){if(!c.get(v)&&_.legendVisualProvider){var T=_.legendVisualProvider;if(!T.containName(v))return;var M=T.indexOfName(v),E=T.getItemVisual(M,"style"),k=T.getItemVisual(M,"legendIcon"),R=Pi(E.fill);R&&R[3]===0&&(R[3]=.2,E=Qe(Qe({},E),{fill:Xs(R,"rgba")}));var L=this._createItem(_,v,p,h,r,n,{},E,k,f,i);L.on("click",nv(l7,null,v,i,d)).on("mouseover",nv(p3,null,v,i,d)).on("mouseout",nv(v3,null,v,i,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();h3(n,function(u){var c=u.type,f=new On({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"]);si(f,{normal:d,emphasis:h},{defaultText:u.title}),ff(f)})},e.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(r),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),b=i.get("icon");c=b||c||"roundRect";var w=NOt(c,i,l,u,h,g,d),C=new p_,x=i.getModel("textStyle");if(zt(n.getLegendIcon)&&(!b||b==="inherit"))C.add(n.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:m}));else{var _=b==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;C.add(VOt({itemWidth:p,itemHeight:v,icon:c,iconRotate:_,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,M=s,E=o.get("formatter"),k=r;Mt(E)&&E?k=E.replace("{name}",r??""):zt(E)&&(k=E(r));var R=g?x.getTextColor():i.get("inactiveColor");C.add(new On({style:gr(x,{text:k,x:T,y:v/2,fill:R,align:M,verticalAlign:"middle"},{inheritColor:R})}));var L=new An({shape:C.getBoundingRect(),invisible:!0}),A=i.getModel("tooltip");return A.get("show")&&s0({el:L,componentModel:o,itemName:r,itemTooltipOption:A.option}),C.add(L),C.eachChild(function(V){V.silent=!0}),L.silent=!f,this.getContentGroup().add(C),ff(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ih(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){Ih("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=n.get("selectorButtonGap",!0),v=n.getOrient().index,g=v===0?"width":"height",y=v===0?"height":"width",m=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[g]=c[g]+p+d[g],b[y]=Math.max(c[y],d[y]),b[m]=Math.min(0,d[m]+h[1-v]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Lr);function NOt(t,e,n,r,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),h3(g,function(m,b){g[b]==="inherit"&&(g[b]=y[b])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:Ag(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function VOt(t){var e=t.icon||"roundRect",n=oa(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 l7(t,e,n,r){v3(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),p3(t,e,n,r)}function Vce(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 p3(t,e,n,r){Vce(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function v3(t,e,n,r){Vce(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}const Bce=AOt;function BOt(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 _y(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();Z(s,function(l){var u=l.get("name");if(!(u===`
  1161. `||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 IOt(t){t.registerAction("legendToggleSelect","legendselectchanged",nn(_y,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",nn(_y,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",nn(_y,"inverseSelect")),t.registerAction("legendSelect","legendselected",nn(_y,"select")),t.registerAction("legendUnSelect","legendunselected",nn(_y,"unSelect"))}function Ice(t){t.registerComponentModel(d3),t.registerComponentView(Bce),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,BOt),t.registerSubTypeDefaulter("legend",function(){return"plain"}),IOt(t)}var $Ot=function(t){Ve(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=c0(n);t.prototype.init.call(this,n,r,a),u7(this,n,i)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),u7(this,this.option,n)},e.type="legend.scroll",e.defaultOption=Wf(d3.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}(d3);function u7(t,e,n){var r=t.getOrient(),a=[1,1];a[r.index]=0,kf(e,n,{type:"box",ignoreSize:!!a})}const POt=$Ot;var c7=Xt,SR=["width","height"],wR=["x","y"],FOt=function(t){Ve(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 c7),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new c7)},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=at(f)?f:[f,f];p("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new On({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var y=v+"DataIndex",m=o0(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:Dt(u._pageGo,u,y,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});m.name=v,c.add(m)}},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=SR[u],f=wR[u],d=SR[1-u],h=wR[1-u];o&&Ih("horizontal",l,n.get("selectorItemGap",!0));var p=n.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],y=Kt(a);o&&(y[c]=a[c]-v[c]-p);var m=this._layoutContentAndController(n,i,y,u,c,d,h,f);if(o){if(s==="end")g[u]+=m[c]+p;else{var b=v[c]+p;g[u]-=b,m[f]-=b}m[c]+=v[c]+p,g[1-u]+=m[h]+m[d]/2-v[d]/2,m[d]=Math.max(m[d],v[d]),m[h]=Math.min(m[h],v[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;Ih(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),Ih("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var y=[0,0],m=[-p.x,-p.y],b=fn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var w=n.get("pageButtonPosition",!0);w==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+b}m[1-i]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(m);var C={x:0,y:0};if(C[o]=v?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+m[1-i]),f.__rectSize=a[o],v){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-b,0),x[s]=C[s],f.setClipPath(new An({shape:x})),f.__rectSize=x[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(n);return _.pageIndex!=null&&zn(c,{x:_.contentPosition[0],y:_.contentPosition[1]},v?n:null),this._updatePageInfoView(n,_),C},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;Z(["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",Mt(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=SR[o],l=wR[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=w(f);p.contentPosition[o]=-v.s;for(var g=u+1,y=v,m=v,b=null;g<=d;++g)b=w(c[g]),(!b&&m.e>y.s+i||b&&!C(b,y.s))&&(m.i>y.i?y=m:y=b,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=b;for(var g=u-1,y=v,m=v,b=null;g>=-1;--g)b=w(c[g]),(!b||!C(m,b.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=b;return p;function w(x){if(x){var _=x.getBoundingRect(),T=_[l]+x[l];return{s:T,e:T+_[s],i:x.__legendDataIndex}}}function C(x,_){return x.e>=_&&x.s<=_+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}(Bce);const zOt=FOt;function UOt(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 GOt(t){mn(Ice),t.registerComponentModel(POt),t.registerComponentView(zOt),UOt(t)}function HOt(t){mn(Ice),mn(GOt)}var WOt=function(t){Ve(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=Wf(q1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(q1);const jOt=WOt;var G$=In();function KOt(t,e,n){G$(t).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=n)})}function YOt(t,e){for(var n=G$(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||$ce(n,o))}}}function $ce(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function qOt(t,e){var n={model:e,containsPoint:nn(ZOt,e),dispatchAction:nn(XOt,t),dataZoomInfoMap:null,controller:null},r=n.controller=new Zb(t.getZr());return Z(["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 XOt(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function ZOt(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function QOt(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 JOt(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=G$(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=It());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=bce(i);Z(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,qOt(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=It());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){$ce(a,i);return}var c=QOt(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),v0(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var eAt=function(t){Ve(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(),KOt(a,n,{pan:Dt(_R.pan,this),zoom:Dt(_R.zoom,this),scrollMove:Dt(_R.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){YOt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(N$),_R={zoom:function(t,e,n,r){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var s=xR[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(wp(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:f7(function(t,e,n,r,a,i){var o=xR[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:f7(function(t,e,n,r,a,i){var o=xR[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,n);return o.signal*(t[1]-t[0])*i.scrollDelta})};function f7(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(wp(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var xR={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 tAt=eAt;function Pce(t){V$(t),t.registerComponentModel(jOt),t.registerComponentView(tAt),JOt(t)}var nAt=function(t){Ve(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=Wf(q1.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}(q1);const rAt=nAt;var xy=An,d7=7,aAt=1,CR=30,iAt=7,Cy="horizontal",h7="vertical",oAt=5,sAt=["line","bar","candlestick","scatter"],lAt={easing:"cubicOut",duration:100,delay:0},uAt=function(t){Ve(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=Dt(this._onBrush,this),this._onBrushEnd=Dt(this._onBrushEnd,this)},e.prototype.render=function(n,r,a,i){if(t.prototype.render.apply(this,arguments),v0(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(){I1(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 Xt;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?iAt:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Cy?{right:s.width-o.x-o.width,top:s.height-CR-d7-i,width:o.width,height:CR}:{right:d7,top:o.y,width:CR,height:o.height},u=c0(n.option);Z(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=ga(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===h7&&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===Cy&&!o?{scaleY:l?1:-1,scaleX:1}:a===Cy&&o?{scaleY:l?1:-1,scaleX:-1}:a===h7&&!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 xy({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new xy({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Dt(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,r[1]],p=[0,r[0]],v=[[r[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,b=Math.round(o.count()/r[0]),w;o.each([l],function(M,E){if(b>0&&E%b){m+=y;return}var k=M==null||isNaN(M)||M==="",R=k?0:tr(M,f,h,!0);k&&!w&&E?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!k&&w&&(v.push([m,0]),g.push([m,0])),v.push([m,R]),g.push([m,R]),m+=y,w=k}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function x(M){var E=C.getModel(M?"selectedDataBackground":"dataBackground"),k=new Xt,R=new ji({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new qi({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return k.add(R),k.add(L),k}for(var _=0;_<3;_++){var T=x(_===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();Z(l,function(u){if(!a&&!(r!==!0&&vn(sAt,u.get("type"))<0)){var c=i.getComponent(nf(o),s).axis,f=cAt(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 xy({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new xy({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:aAt,fill:"rgba(0,0,0,0)"}})),Z([0,1],function(b){var w=l.get("handleIcon");!j2[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=oa(w,-1,0,2,2,null,!0);C.attr({cursor:p7(this._orient),draggable:!0,drift:Dt(this._onDragMove,this,b),ondragend:Dt(this._onDragEnd,this),onmouseover:Dt(this._showDataInfo,this,!0),onmouseout:Dt(this._showDataInfo,this,!1),z2:5});var x=C.getBoundingRect(),_=l.get("handleSize");this._handleHeight=wt(_,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ff(C);var T=l.get("handleColor");T!=null&&(C.style.fill=T),o.add(a[b]=C);var M=l.getModel("textStyle");n.add(i[b]=new On({silent:!0,invisible:!0,style:gr(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=d;if(f){var p=wt(l.get("moveHandleSize"),s[1]),v=r.moveHandle=new An({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=r.moveHandleIcon=oa(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new An({invisible:!0,shape:{y:s[1]-m,height:p+m}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:p7(this._orient),drift:Dt(this._onDragMove,this,"all"),ondragstart:Dt(this._showDataInfo,this,!0),ondragend:Dt(this._onDragEnd,this),onmouseover:Dt(this._showDataInfo,this,!0),onmouseout:Dt(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[tr(n[0],[0,100],r,!0),tr(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];wp(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?tr(s.minSpan,l,o,!0):null,s.maxSpan!=null?tr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Co([tr(i[0],o,l,!0),tr(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=Co(a.slice()),o=this._size;Z([0,1],function(h){var p=r.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:a[h]+(h?-1:1),y:o[1]/2-v/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new An,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=Co(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=df(a.handles[p].parent,this.group),g=JT(p===0?"right":"left",v),y=this._handleWidth/2+oAt,m=Zs([d[p]+(p===0?-y:y),this._size[1]/2],v);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Cy?"middle":g,align:o===Cy?g:"center",text:s[p]})}},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 zt(i)?i(n,s):Mt(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,Uu(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Zs([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 cn(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=Co([tr(a.x,o,s,!0),tr(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&&(Uu(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 xy({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?lAt:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=bce(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}(N$);function cAt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function p7(t){return t==="vertical"?"ns-resize":"ew-resize"}const fAt=uAt;function Fce(t){t.registerComponentModel(rAt),t.registerComponentView(fAt),V$(t)}function dAt(t){mn(Pce),mn(Fce)}var hAt={get:function(t,e,n){var r=Kt((pAt[t]||{})[e]);return n&&at(r)?r[r.length-1]:r}},pAt={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 zce=hAt;var v7=ri.mapVisual,vAt=ri.eachVisual,gAt=at,g7=Z,yAt=Co,mAt=tr,bAt=function(t){Ve(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&&kce(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=Dt(n,this),this.controllerVisuals=u3(this.option.controller,r,n),this.targetVisuals=u3(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=ur(n),r},e.prototype.eachTargetSeries=function(n,r){Z(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||["<",">"],at(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Mt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(zt(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=yAt([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={});un(i,a),un(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){gAt(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},g7(p,function(g,y){if(ri.isValidType(y)){var m=zce.get(y,"inactive",s);m!=null&&(v[y]=m,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";g7(this.stateList,function(y){var m=this.itemSize,b=f[y];b||(b=f[y]={color:s?p:[p]}),b.symbol==null&&(b.symbol=d&&Kt(d)||(s?g:[g])),b.symbolSize==null&&(b.symbolSize=h&&Kt(h)||(s?m[0]:[m[0],m[0]])),b.symbol=v7(b.symbol,function(x){return x==="none"?g:x});var w=b.symbolSize;if(w!=null){var C=-1/0;vAt(w,function(x){x>C&&(C=x)}),b.symbolSize=v7(w,function(x){return mAt(x,[0,C],[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}(kn);const bC=bAt;var y7=[20,140],SAt=function(t){Ve(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]=y7[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=y7[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):at(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),Z(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=Co((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=m7(this,"outOfRange",this.getExtent()),a=m7(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:n(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;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=Wf(bC.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}(bC);function m7(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 wAt=SAt;var _At=function(t){Ve(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=yp(r.get("padding")||0),i=n.getBoundingRect();n.add(new An({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,p){s[h]=p}var f=o.controllerVisuals[i||o.getValueState(n)],d=ri.prepareVisualTypes(f);return Z(d,function(h){var p=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),ri.dependsOn(h,r)&&p&&p.applyVisual(n,u,c)}),s[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;iE(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(n,r,a,i){},e.type="visualMap",e}(Lr);const Uce=_At;var b7=[["left","right","width"],["top","bottom","height"]];function Gce(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=b7[o],l=[0,null,10],u={},c=0;c<3;c++)u[b7[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=ga(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 Mx(t,e){return Z(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var Cl=tr,xAt=Z,S7=Math.min,TR=Math.max,CAt=12,TAt=6,EAt=function(t){Ve(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 On({style:gr(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=Gce(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Xt;u.add(c),c.add(a.outOfRange=w7()),c.add(a.inRange=w7(null,s?x7(this._orient):null,Dt(this._dragHandle,this,"all",!1),Dt(this._dragHandle,this,"all",!0))),c.setClipPath(new An({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=TR(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=Dt(this._dragHandle,this,a,!1),u=Dt(this._dragHandle,this,a,!0),c=tl(n.get("handleSize"),i[0]),f=oa(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=x7(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Uu(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(),mh(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,p=new On({cursor:d,draggable:!0,drift:l,onmousemove:function(y){Uu(y.event)},ondragend:u,style:gr(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=v,g.handleLabels[a]=p},e.prototype._createIndicator=function(n,r,a,i,o){var s=tl(n.get("indicatorSize"),a[0]),l=oa(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 Ya){var c=l.style;l.useStyle(Qe({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 On({silent:!0,invisible:!0,style:gr(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:TAt)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.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():_7(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=[Cl(r[0],a,i,!0),Cl(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]];wp(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[Cl(i[0],o,s,!0),Cl(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 a0(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 Xt(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();xAt([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=Cl(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Zs(a.handleLabelPoints[c],df(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",d),p=this.getControllerVisual(n,"symbolSize"),v=Cl(n,s,u,!0),g=l[0]-p/2,y={x:f.x,y:f.y};f.y=v,f.x=g;var m=Zs(c.indicatorLabelPoint,df(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,x=C==="horizontal";b.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:x?w:"middle",align:x?"center":w});var _={x:g,y:v,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(_,M),b.animateTo(T,M)}else f.attr(_),b.attr(T);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var k=0;k<E.length;k++)this._api.enterBlur(E[k])}},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]=S7(TR(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=S7(TR(o[0],n),o[1]);var l=MAt(a,s,o),u=[n-l,n+l],c=Cl(n,o,s,!0),f=[Cl(u[0],o,s,!0),Cl(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||_7(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var p=npt(d,h);this._dispatchHighDown("downplay",Mx(p[0],a)),this._dispatchHighDown("highlight",Mx(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Sh(n.target,function(l){var u=rn(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",Mx(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=df(r,i?null:this.group);return at(n)?Zs(n,o,a):JT(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}(Uce);function w7(t,e,n,r){return new ji({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(a){Uu(a.event)},ondragend:r})}function MAt(t,e,n){var r=CAt/2,a=t.get("hoverLinkDataSize");return a&&(r=Cl(a,e,n,!0)/2),r}function _7(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function x7(t){return t==="vertical"?"ns-resize":"ew-resize"}const DAt=EAt;var kAt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},RAt=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},LAt=[{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(TLt(r.stateList,r.targetVisuals,Dt(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(Dt(OAt,null,t,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),t.getData().setVisual("visualMeta",r)}}];function OAt(t,e,n,r){for(var a=e.targetVisuals[r],i=ri.prepareVisualTypes(a),o={color:Gb(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,p){o[h]=p}}var C7=Z;function AAt(t){var e=t&&t.visualMap;at(e)||(e=e?[e]:[]),C7(e,function(n){if(n){rv(n,"splitList")&&!rv(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&at(r)&&C7(r,function(a){Wt(a)&&(rv(a,"start")&&!rv(a,"min")&&(a.min=a.start),rv(a,"end")&&!rv(a,"max")&&(a.max=a.end))})}})}function rv(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var T7=!1;function Hce(t){T7||(T7=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(kAt,RAt),Z(LAt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(AAt))}function Wce(t){t.registerComponentModel(wAt),t.registerComponentView(DAt),Hce(t)}var NAt=function(t){Ve(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=[],VAt[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=Kt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ut(this._pieceList,function(l){return l=Kt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},a=ri.listVisualTypes(),i=this.isCategory();Z(n.pieces,function(s){Z(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),Z(r,function(s,l){var u=!1;Z(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&Z(this.stateList,function(c){(n[c]||(n[c]={}))[l]=zce.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,Z(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;Z(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=Kt(n)},e.prototype.getValueState=function(n){var r=ri.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=ri.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 Z(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=Wf(bC.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}(bC),VAt={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]}),eA(t),Z(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;Z(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),E7(e,t)},pieces:function(t){var e=this.option;Z(e.pieces,function(n,r){Wt(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=ri.retrieveVisuals(n),t.push(a)},this),E7(e,t),eA(t),Z(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 E7(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}const BAt=NAt;var IAt=function(t){Ve(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=Ma(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),Z(c.viewPieceList,function(h){var p=h.piece,v=new Xt;v.onclick=Dt(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(g);v.add(new On({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(v)},this),f&&this._renderEndsText(n,f[1],u,d,l),Ih(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:Mx(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return Gce(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 Xt,l=this.visualMapModel.textStyleModel;s.add(new On({style:gr(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=ut(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(oa(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=Kt(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,Z(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}(Uce);const $At=IAt;function jce(t){t.registerComponentModel(BAt),t.registerComponentView($At),Hce(t)}function PAt(t){mn(Wce),mn(jce)}var FAt={label:{enabled:!0},decal:{show:!1}},M7=In(),zAt={};function UAt(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=Kt(FAt);un(r.label,t.getLocaleModel().get("aria"),!1),un(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=It();t.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),M7(d).scope=h}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(zt(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var m=gA(d.ecModel,d.name,zAt,t.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",w(b,m))}else{var p=d.getRawData(),v={},g=M7(d).scope;h.each(function(C){var x=h.getRawIndex(C);v[x]=C});var y=p.count();p.each(function(C){var x=v[C],_=p.getName(C)||C+"",T=gA(d.ecModel,_,g,y),M=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",w(M,T))})}function w(C,x){var _=C?Qe(Qe({},x),C):x;return _.dirty=!0,_}})}}function i(){var u=t.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Ht(c.option,u),!!c.get("enabled")){var f=e.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=t.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var b=[],w=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),t.eachSeries(function(T,M){if(M<v){var E=void 0,k=T.get("name"),R=k?"withName":"withoutName";E=d>1?c.get(["series","multiple",R]):c.get(["series","single",R]),E=o(E,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var A=c.get(["data","partialData"]);E+=o(A,{displayCnt:h})}else E+=c.get(["data","allData"]);for(var V=c.get(["data","separator","middle"]),G=c.get(["data","separator","end"]),I=[],$=0;$<L.count();$++)if($<h){var N=L.getName($),P=L.getValues($),Y=c.get(["data",N?"withName":"withoutName"]);I.push(o(Y,{name:N,value:P.join(V)}))}E+=I.join(V)+G,b.push(E)}});var C=c.getModel(["series","multiple","separator"]),x=C.get("middle"),_=C.get("end");g+=b.join(x)+_,f.setAttribute("aria-label",g)}}}function o(u,c){if(!Mt(u))return u;var f=u;return Z(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 GAt(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},Z(["description","general","series","data"],function(n){e[n]!=null&&(e.label[n]=e[n])})}}function HAt(t){t.registerPreprocessor(GAt),t.registerVisual(t.PRIORITY.VISUAL.ARIA,UAt)}var D7={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},WAt=function(){function t(e){var n=this._condVal=Mt(e)?new RegExp(e):jre(e)?e:null;if(n==null){var r="";Zn(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return Mt(n)?this._condVal.test(e):Bn(n)?this._condVal.test(e+""):!1},t}(),jAt=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),KAt=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}(),YAt=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}(),qAt=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),XAt=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 H$(t,e){if(t===!0||t===!1){var n=new jAt;return n.value=t,n}var r="";return Kce(t)||Zn(r),t.and?k7("and",t,e):t.or?k7("or",t,e):t.not?ZAt(t,e):QAt(t,e)}function k7(t,e,n){var r=e[t],a="";at(r)||Zn(a),r.length||Zn(a);var i=t==="and"?new KAt:new YAt;return i.children=ut(r,function(o){return H$(o,n)}),i.children.length||Zn(a),i}function ZAt(t,e){var n=t.not,r="";Kce(n)||Zn(r);var a=new qAt;return a.child=H$(n,e),a.child||Zn(r),a}function QAt(t,e){for(var n="",r=e.prepareGetValue(t),a=[],i=Tn(t),o=t.parser,s=o?boe(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Rt(D7,u)?D7[u]:u,f=t[u],d=s?s(f):f,h=v0t(c,d)||c==="reg"&&new WAt(d);h||Zn(n),a.push(h)}}a.length||Zn(n);var p=new XAt;return p.valueGetterParam=r,p.valueParser=s,p.getValue=e.getValue,p.subCondList=a,p}function Kce(t){return Wt(t)&&!ii(t)}var JAt=function(){function t(e,n){this._cond=H$(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function e3t(t,e){return new JAt(t,e)}var t3t={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=e3t(t.config,{valueGetterAttrMap:It({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Rt(s,"dimension")||Zn(l);var c=e.getDimensionInfo(u);return c||Zn(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}}},n3t={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",a=ur(n);a.length||Zn(r);var i=[];Z(a,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&&Zn(r),d!=="asc"&&d!=="desc"&&Zn(r),p&&p!=="min"&&p!=="max"){var v="";Zn(v)}if(d!=="asc"&&d!=="desc"){var g="";Zn(g)}var y=e.getDimensionInfo(f);y||Zn(r);var m=h?boe(h):null;h&&!m&&Zn(r),i.push({dimIdx:y.index,parser:m,comparator:new woe(d,p)})});var o=e.sourceFormat;o!==Si&&o!==gs&&Zn(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],p=e.retrieveValueFromItem(c,h.dimIdx),v=e.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function r3t(t){t.registerTransform(t3t),t.registerTransform(n3t)}var a3t=function(t){Ve(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 Toe(this),OU(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),OU(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Hl},e}(kn),i3t=function(t){Ve(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(Lr);function o3t(t){t.registerComponentModel(a3t),t.registerComponentView(i3t)}var wl=Jl.CMD;function Rv(t,e){return Math.abs(t-e)<1e-5}function g3(t){var e=t.data,n=t.len(),r=[],a,i=0,o=0,s=0,l=0;function u(L,A){a&&a.length>2&&r.push(a),a=[L,A]}function c(L,A,V,G){Rv(L,V)&&Rv(A,G)||a.push(L,A,V,G,V,G)}function f(L,A,V,G,I,$){var N=Math.abs(A-L),P=Math.tan(N/4)*4/3,Y=A<L?-1:1,J=Math.cos(L),re=Math.sin(L),oe=Math.cos(A),ue=Math.sin(A),le=J*I+V,fe=re*$+G,se=oe*I+V,_e=ue*$+G,ve=I*P*Y,he=$*P*Y;a.push(le-ve*re,fe+he*J,se+ve*ue,_e-he*oe,se,_e)}for(var d,h,p,v,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===wl.L||y===wl.C||y===wl.Q)&&(a=[s,l])),y){case wl.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case wl.L:d=e[g++],h=e[g++],c(i,o,d,h),i=d,o=h;break;case wl.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case wl.Q:d=e[g++],h=e[g++],p=e[g++],v=e[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),i=p,o=v;break;case wl.A:var b=e[g++],w=e[g++],C=e[g++],x=e[g++],_=e[g++],T=e[g++]+_;g+=1;var M=!e[g++];d=Math.cos(_)*C+b,h=Math.sin(_)*x+w,m?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*C+b,o=Math.sin(T)*x+w;for(var E=(M?-1:1)*Math.PI/2,k=_;M?k>T:k<T;k+=E){var R=M?Math.max(k+E,T):Math.min(k+E,T);f(k,R,b,w,C,x)}break;case wl.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 wl.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function y3(t,e,n,r,a,i,o,s,l,u){if(Rv(t,n)&&Rv(e,r)&&Rv(a,o)&&Rv(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-t,h=s-e,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=n-t,g=r-e,y=a-o,m=i-s,b=v*v+g*g,w=y*y+m*m;if(b<f&&w<f){l.push(o,s);return}var C=d*v+h*g,x=-d*y-h*m,_=b-C*C,T=w-x*x;if(_<f&&C>=0&&T<f&&x>=0){l.push(o,s);return}var M=[],E=[];Mf(t,n,a,o,.5,M),Mf(e,r,i,s,.5,E),y3(M[0],E[0],M[1],E[1],M[2],E[2],M[3],E[3],l,u),y3(M[4],E[4],M[5],E[5],M[6],E[6],M[7],E[7],l,u)}function s3t(t,e){var n=g3(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++],p=i[u++],v=i[u++];y3(s,l,c,f,d,h,p,v,o,e),s=p,l=v}r.push(o)}return r}function Yce(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 R7(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=Yce([l,u],c?0:1,e),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=i+d*h,g.endAngle=i+d*(h+1),g.r0=r+p*v,g.r=r+p*(v+1)):(g.startAngle=i+p*v,g.endAngle=i+p*(v+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 l3t(t,e,n){for(var r=t.width,a=t.height,i=r>a,o=Yce([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],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=t.x,v.y+=t.y,n.push(v)}}function L7(t,e,n,r){return t*r-n*e}function u3t(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=L7(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=t-a,p=e-i,v=L7(h,p,c,f)/d;return v<0||v>1?null:new cn(v*l+t,v*u+e)}function c3t(t,e,n){var r=new cn;cn.sub(r,n,e),r.normalize();var a=new cn;cn.sub(a,t,e);var i=a.dot(r);return i}function av(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function f3t(t,e,n){for(var r=t.length,a=[],i=0;i<r;i++){var o=t[i],s=t[(i+1)%r],l=u3t(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&a.push({projPt:c3t(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],p=[d],v=[h],i=u.idx+1;i<=c.idx;i++)av(p,t[i].slice());av(p,h),av(p,d);for(var i=c.idx+1;i<=u.idx+r;i++)av(v,t[i%r].slice());return av(v,d),av(v,h),[{points:p},{points:v}]}function O7(t){var e=t.points,n=[],r=[];jT(e,n,r);var a=new dn(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 cn,c=new cn;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),f3t(e,u,c)}function SC(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),i=t(e);SC(t,i[0],a,r),SC(t,i[1],n-a,r)}return r}function d3t(t,e){for(var n=[],r=0;r<e;r++)n.push(QB(t));return n}function h3t(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function p3t(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function v3t(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":l3t(r,e,n),a=An;break;case"sector":R7(r,e,n),a=Wi;break;case"circle":R7({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=Wi;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=ut(s3t(t.getUpdatedPathProxy(),o),function(y){return p3t(y)}),l=s.length;if(l===0)SC(O7,{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=ut(s,function(y){var m=[],b=[];jT(y,m,b);var w=(b[1]-m[1])*(b[0]-m[0]);return c+=w,{poly:y,area:w}});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 p=u===l-1?d:Math.ceil(h.area/c*e);p<0||(SC(O7,{points:h.poly},p,n),d-=p)}}a=ji;break}if(!a)return d3t(t,e);for(var v=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),h3t(t,g),v.push(g)}return v}function g3t(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 p=o[h-2],v=o[h-1],g=o[h++],y=o[h++],m=o[h++],b=o[h++],w=o[h++],C=o[h++];if(d<=0){f.push(g,y,m,b,w,C);continue}for(var x=Math.min(d,c-1)+1,_=1;_<=x;_++){var T=_/x;Mf(p,g,m,w,T,a),Mf(v,y,b,C,T,i),p=a[3],v=i[3],f.push(a[1],i[1],a[2],i[2],p,v),g=a[5],y=i[5],m=a[6],b=i[6]}d-=x-1}return o===t?[f,e]:[t,f]}function A7(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 y3t(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=g3t(l,u),c=n[0],f=n[1],r=c,a=f):(f=A7(a||l,l),c=l):(c=A7(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function N7(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 m3t(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,p=t[h]-n[0],v=t[h+1]-n[1],g=e[d]-r[0],y=e[d+1]-r[1],m=g-p,b=y-v;f+=m*m+b*b}f<i&&(i=f,o=u)}return o}function b3t(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 S3t(t,e,n,r){for(var a=[],i,o=0;o<t.length;o++){var s=t[o],l=e[o],u=N7(s),c=N7(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;i&&(s=b3t(s));for(var y=m3t(s,l,u,c)*6,m=g-2,b=0;b<m;b+=2){var w=(y+b)%m+2;f[b+2]=s[w]-u[0],f[b+3]=s[w+1]-u[1]}if(f[0]=s[y]-u[0],f[1]=s[y+1]-u[1],n>0)for(var C=r/n,x=-r/2;x<=r/2;x+=C){for(var _=Math.sin(x),T=Math.cos(x),M=0,b=0;b<s.length;b+=2){var E=f[b],k=f[b+1],R=l[b]-c[0],L=l[b+1]-c[1],A=R*T-L*_,V=R*_+L*T;v[b]=A,v[b+1]=V;var G=A-E,I=V-k;M+=G*G+I*I}if(M<p){p=M,h=x;for(var $=0;$<v.length;$++)d[$]=v[$]}}else for(var N=0;N<g;N+=2)d[N]=l[N]-c[0],d[N+1]=l[N+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function wC(t){return t.__isCombineMorphing}var qce="__mOriginal_";function _C(t,e,n){var r=qce+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 Lm(t,e){var n=qce+e;t[n]&&(t[e]=t[n],t[n]=null)}function V7(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 Xce(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=y3t(g3(n),g3(r)),i=a[0],o=a[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&V7(i,s),l&&V7(o,l),_C(e,"updateTransform",{replace:u}),e.transform=null;var c=S3t(i,o,10,Math.PI),f=[];_C(e,"buildPath",{replace:function(d){for(var h=e.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var y=c[g],m=y.from,b=y.to,w=y.rotation*h,C=y.fromCp,x=y.toCp,_=Math.sin(w),T=Math.cos(w);ym(v,C,x,h);for(var M=0;M<m.length;M+=2){var E=m[M],k=m[M+1],R=b[M],L=b[M+1],A=E*p+R*h,V=k*p+L*h;f[M]=A*T-V*_+v[0],f[M+1]=A*_+V*T+v[1]}var G=f[0],I=f[1];d.moveTo(G,I);for(var M=2;M<m.length;){var R=f[M++],L=f[M++],$=f[M++],N=f[M++],P=f[M++],Y=f[M++];G===R&&I===L&&$===P&&N===Y?d.lineTo(P,Y):d.bezierCurveTo(R,L,$,N,P,Y),G=P,I=Y}}}})}function W$(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;Xce(t,e),e.__morphT=0;function i(){Lm(e,"buildPath"),Lm(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ht({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),e}function w3t(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 xC(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,i=ut(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=ut(i,function(s,l){return{cp:s,z:w3t(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 Zce(t){return v3t(t.path,t.count)}function m3(){return{fromIndividuals:[],toIndividuals:[],count:0}}function _3t(t,e,n){var r=[];function a(C){for(var x=0;x<C.length;x++){var _=C[x];wC(_)?a(_.childrenRef()):_ instanceof wn&&r.push(_)}}a(t);var i=r.length;if(!i)return m3();var o=n.dividePath||Zce,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),m3();r=xC(r),s=xC(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Ru,d=0;d<i;d++){var h=r[d],p=s[d];p.parent=e,p.copyTransform(f),c||Xce(h,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function v(C){for(var x=0;x<s.length;x++)s[x].addSelfToZr(C)}_C(e,"addSelfToZr",{after:function(C){v(C)}}),_C(e,"removeSelfFromZr",{after:function(C){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(C)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Lm(e,"addSelfToZr"),Lm(e,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,b=function(){m--,m===0&&(g(),l&&l())},d=0;d<y;d++){var w=c?Ht({delay:(n.delay||0)+c(d,y,r[d],s[d]),done:b},n):n;W$(r[d],s[d],w)}else e.__morphT=0,e.animateTo({__morphT:1},Ht({during:function(C){for(var x=0;x<y;x++){var _=s[x];_.__morphT=e.__morphT,_.dirtyShape()}u&&u(C)},done:function(){g();for(var C=0;C<t.length;C++)Lm(t[C],"updateTransform");l&&l()}},n));return e.__zr&&v(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function x3t(t,e,n){var r=e.length,a=[],i=n.dividePath||Zce;function o(h){for(var p=0;p<h.length;p++){var v=h[p];wC(v)?o(v.childrenRef()):v instanceof wn&&a.push(v)}}if(wC(t)){o(t.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(QB(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"),m3()}a=xC(a),e=xC(e);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Ht({delay:(n.delay||0)+f(u,r,a[u],e[u])},n):n;W$(a[u],e[u],d)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function B7(t){return at(t[0])}function I7(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 C3t={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=QB(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function ER(t,e,n,r,a,i){if(!t.length||!e.length)return;var o=i0("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;B7(t)&&(u=t,c=e),B7(e)&&(u=e,c=t);function f(y,m,b,w,C){var x=y.many,_=y.one;if(x.length===1&&!C){var T=m?x[0]:_,M=m?_:x[0];if(wC(T))f({many:[T],one:M},!0,b,w,!0);else{var E=s?Ht({delay:s(b,w)},l):l;W$(T,M,E),i(T,M,T,M,E)}}else for(var k=Ht({dividePath:C3t[n],individualDelay:s&&function(I,$,N,P){return s(I+b,w)}},l),R=m?_3t(x,_,k):x3t(_,x,k),L=R.fromIndividuals,A=R.toIndividuals,V=L.length,G=0;G<V;G++){var E=s?Ht({delay:s(G,V)},l):l;i(L[G],A[G],m?x[G]:y.one,m?y.one:x[G],E)}}for(var d=u?u===t:t.length>e.length,h=u?I7(c,u):I7(d?e:t,[d?t:e]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function Kd(t){if(!t)return[];if(at(t)){for(var e=[],n=0;n<t.length;n++)e.push(Kd(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof wn&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var Qce=1e4,T3t=In();function E3t(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 $7(t){var e=[];return Z(t,function(n){var r=n.data;if(!(r.count()>Qce))for(var a=r.getIndices(),i=E3t(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 MR(t,e,n){t.traverse(function(r){r instanceof wn&&Mr(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function DR(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function iv(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function M3t(t,e,n){var r=i0("update",n,e);r&&t.traverse(function(a){if(a instanceof ds){var i=qvt(a);i&&a.animateFrom({style:i},r)}})}function D3t(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 Jce(t,e,n){var r=$7(t),a=$7(e);function i(y,m,b,w,C){(b||y)&&m.animateFrom({style:b&&b!==y?Qe(Qe({},b.style),y.style):y.style},C)}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(b){var w=b.data,C=b.dataIndex;if(m)return w.getId(C);var x=b.dataGroupId,_=y?s||l:l||s,T=_&&w.getDimensionInfo(_),M=T&&T.ordinalMeta;if(T){var E=w.get(T.name,C);return M&&M.categories[E]||E+""}var k=w.getRawDataItem(C);return k&&k.groupId?k.groupId+"":x||w.getId(C)}}var f=D3t(r,a),d={};if(!f)for(var h=0;h<a.length;h++){var p=a[h],v=p.data.getItemGraphicEl(p.dataIndex);v&&(d[v.id]=!0)}function g(y,m){var b=r[m],w=a[y],C=w.data.hostModel,x=b.data.getItemGraphicEl(b.dataIndex),_=w.data.getItemGraphicEl(w.dataIndex);if(x===_){_&&M3t(_,w.dataIndex,C);return}x&&d[x.id]||_&&(iv(_),x?(iv(x),DR(x),u=!0,ER(Kd(x),Kd(_),w.divide,C,y,i)):MR(_,C,y))}new Wu(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(y,m){var b=a[y],w=b.data,C=w.hostModel,x=w.getItemGraphicEl(b.dataIndex),_=nr(ut(m,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==x&&!d[T.id]});x&&(iv(x),_.length?(Z(_,function(T){iv(T),DR(T)}),u=!0,ER(Kd(_),Kd(x),b.divide,C,y,i)):MR(x,C,b.dataIndex))}).updateOneToMany(function(y,m){var b=r[m],w=b.data.getItemGraphicEl(b.dataIndex);if(!(w&&d[w.id])){var C=nr(ut(y,function(_){return a[_].data.getItemGraphicEl(a[_].dataIndex)}),function(_){return _&&_!==w}),x=a[y[0]].data.hostModel;C.length&&(Z(C,function(_){return iv(_)}),w?(iv(w),DR(w),u=!0,ER(Kd(w),Kd(C),b.divide,x,y[0],i)):Z(C,function(_){return MR(_,x,y[0])}))}}).updateManyToMany(function(y,m){new Wu(m,y,function(b){return r[b].data.getId(r[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,w){g(y[b],m[w])}).execute()}).execute(),u&&Z(e,function(y){var m=y.data,b=m.hostModel,w=b&&n.getViewOfSeriesModel(b),C=i0("update",b,0);w&&b.isAnimationEnabled()&&C&&C.duration>0&&w.group.traverse(function(x){x instanceof wn&&!x.animators.length&&x.animateFrom({style:{opacity:0}},C)})})}function P7(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function F7(t){return at(t)?t.sort().join(","):t}function Uc(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function k3t(t,e){var n=It(),r=It(),a=It();return Z(t.oldSeries,function(i,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=P7(i),c=F7(u);r.set(c,{dataGroupId:s,data:l}),at(u)&&Z(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),Z(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=P7(i),u=F7(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Uc(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Uc(s),data:s}]});else if(at(l)){var f=[];Z(l,function(p){var v=r.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Uc(v.data),data:v.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Uc(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:Uc(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Uc(s)})}}}}),n}function z7(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 R3t(t,e,n,r){var a=[],i=[];Z(ur(t.from),function(o){var s=z7(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Uc(e.oldData[s]),dim:o.dimension})}),Z(ur(t.to),function(o){var s=z7(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Uc(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Jce(a,i,r)}function L3t(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){Z(ur(r.seriesTransition),function(a){Z(ur(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][Sx]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=T3t(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)Z(ur(i),function(h){R3t(h,a,r,n)});else{var o=k3t(a,r);Z(o.keys(),function(h){var p=o.get(h);Jce(p.oldSeries,p.newSeries,n)})}Z(r.updatedSeries,function(h){h[Sx]&&(h[Sx]=!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()<Qce&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}mn([Ybt]);mn([zbt]);mn([mSt,BSt,qSt,Bwt,Jwt,K_t,Cxt,c2t,$2t,K2t,aCt,lTt,VTt,YTt,pEt,wEt,PEt,qEt,lMt,gMt,kMt,pDt]);mn(IDt);mn(ykt);mn(Yle);mn(Nkt);mn(Nue);mn(zkt);mn(Xkt);mn(ZRt);mn(SLt);mn(Jb);mn(FLt);mn(GLt);mn(aOt);mn(pOt);mn(_Ot);mn(ROt);mn(HOt);mn(dAt);mn(Pce);mn(Fce);mn(PAt);mn(Wce);mn(jce);mn(HAt);mn(r3t);mn(o3t);mn(L3t);mn(sbt);const O3t=Object.freeze(Object.defineProperty({__proto__:null,Axis:ys,ChartView:cr,ComponentModel:kn,ComponentView:Lr,List:gi,Model:lr,PRIORITY:ese,SeriesModel:wr,color:nht,connect:umt,dataTool:gmt,dependencies:Wyt,disConnect:cmt,disconnect:lse,dispose:fmt,env:Vn,extendChartView:K1t,extendComponentModel:H1t,extendComponentView:W1t,extendSeriesModel:j1t,format:O1t,getCoordinateSystemDimensions:hmt,getInstanceByDom:RI,getInstanceById:dmt,getMap:vmt,graphic:L1t,helper:x1t,init:lmt,innerDrawElementOnCanvas:EI,matrix:Ddt,number:k1t,parseGeoJSON:LA,parseGeoJson:LA,registerAction:ll,registerCoordinateSystem:fse,registerLayout:dse,registerLoading:VI,registerLocale:oI,registerMap:hse,registerPostInit:use,registerPostUpdate:cse,registerPreprocessor:OI,registerProcessor:AI,registerTheme:LI,registerTransform:pse,registerUpdateLifecycle:fE,registerVisual:jf,setCanvasCreator:pmt,setPlatformAPI:zre,throttle:uE,time:R1t,use:mn,util:A1t,vector:ddt,version:Hyt,zrUtil:idt,zrender:zht},Symbol.toStringTag,{value:"Module"}));function A3t(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,r=0;const i=/\r?\n/.exec(t),o=i!==null?i[0]:null;return e.dataset=Oa.newInstance(),e.velocitys=[],t.split(o).forEach((s,l)=>{if(n){let u=e.velocitys[e.velocitys.length-1],c=s.split(",");u.points.push({x:Number(c[0]),y:Number(c[1]),z:Number(c[2])}),r--,r==0&&(n=null)}else{let u={};e.velocitys.push(u);let c=s.split(",");u.name=c[0],u.num=Number(c[1]),u.speed=Number(c[2]),u.vector=[Number(c[3]),Number(c[4]),Number(c[5])],r=Number(c[1]),u.points=[],n=!0}}),console.log(e),e}var N3t={parseLegacyASCII:A3t};function V3t(t,e){e.classHierarchy.push("velocityDataReader"),e.dataAccessHelper||(e.dataAccessHelper=Bre.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=N3t.parseLegacyASCII(e.parseData),e.output[0]=e.dataModel.dataset,e.output[1]=e.dataModel.velocitys}},t.requestData=(r,a)=>{t.parseAsText(e.parseData)}}const B3t={};function efe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,B3t,n),Q.obj(t,e),Q.get(t,e,["url","baseURL"]),Q.setGet(t,e,["dataAccessHelper"]),Q.algo(t,e,0,1),V3t(t,e),e.compression||(e.compression=null),e.progressCallback||(e.progressCallback=null)}const I3t=Q.newInstance(efe,"VelocityDataReader");var $3t={newInstance:I3t,extend:efe};class P3t{constructor(){this.aid=5,this.step,this.stepsum=10,this._url="/disaster/TransServlet?channelNo=service&clientToken=e47b87eec69545559d1e81e56626da68&userId=5f06c8bc77234f969d13e160b54c27e3&aid=",this.polydata,this.scalars=new Map,this.scalar=new Map,this.reader=Uft.newInstance(),this.velocityreader=$3t.newInstance(),this.velocityMap=new Map,this.velocitys=[]}async initGemetry(){this.scalars=new Map,this.scalar=new Map,this.velocityMap=new Map,this.velocitys=[];const e=this._url+this.aid+"&transCode=D000014";await this.reader.setUrl(e).then(()=>{this.polydata=this.reader.getOutputData(0)})}async initScalrs(){for(let e=0;e<=this.stepsum;e++)await this.reader.setUrl(this._url+"&transCode=D00009&step="+e).then(()=>{const n=this.reader.getOutputData(1);this.scalars.set(e,n)})}async getScalrsByStep(e){if(this.step=e,this.scalars.get(e))this.scalar=this.scalars.get(e);else{const n=this._url+this.aid+"&transCode=D00009&step="+this.step;await this.reader.setUrl(n).then(()=>{const r=this.reader.getOutputData(1);this.scalar=r,this.scalars.set(e,r)})}}async getVelocityByStep(e){if(console.log("getVelocityByStep"),this.step=e,this.velocityMap.get(e))this.velocitys=this.velocityMap.get(e);else{const n=this._url+7+"&transCode=D000017&step=27";await this.velocityreader.setUrl(n).then(()=>{const r=this.velocityreader.getOutputData(1);this.velocitys=r})}}}function tfe(){return new P3t}const F3t={id:"left",class:"result_left1"},z3t={__name:"resultLeft",props:{region:"Temperature",count:50,aid:49},setup(t,{expose:e}){const n=t;let r={},a=!1,i,o,s=!1;Ge(()=>[n.region,n.count,n.aid],(p,v)=>{s&&(p[1]!=v[1]&&(console.log("步数改变",p[1],v[1]),r.fcon&&c(n.count)),p[0]!=v[0]&&(console.log("标量改变",p[0],v[0]),r.fcon&&f()))},{deep:!0}),Pt(()=>{const p=document.getElementById("left");p.style.position="relative",p.style.width="100%",p.style.height="100%",r.fcon=tfe(),r.renderWindow=LT.newInstance(),r.renderWindow.setContainer(p),r.jgMapper=za.newInstance(),r.jgActor=Pa.newInstance(),r.jgActor.getProperty().setRepresentation(ti.SURFACE),r.jgActor.setMapper(r.jgMapper),r.renderWindow.getRenderer().setBackground(0,0,0,0),r.scalarBarActor=Mb.newInstance(),r.scalarBarActor.setGenerateTicks(l(5)),r.scalarBarActor.setDrawAboveRangeSwatch(!0),r.scalarBarActor.setDrawNanAnnotation(!1),r.scalarBarActor.setBoxPosition([1,0]);const v=xB.newInstance();v.addRGBPoint(0,0,0,1),v.addRGBPoint(1,0,1,.5),v.addRGBPoint(2,0,1,0),v.addRGBPoint(3,1,.5,0),v.addRGBPoint(4,1,0,0),r.jgMapper.setLookupTable(v);const g=r.jgMapper.getLookupTable();r.scalarBarActor.setScalarsToColors(g),r.renderWindow.resize()});function l(p){return v=>{const g=v.getLastTickBounds(),y=Xg().domain([0,1]).range([g[0],g[1]]),b=y.ticks(p).map(x=>y(x));ST({minus:"-"});const w=y.tickFormat(b[0],b[b.length-1],p),C=b.map(w).map(x=>Number(parseFloat(x).toPrecision(12)).toPrecision());v.setTicks(b),v.setTickStrings(C)}}function u(p){const v=r.fcon;v.aid=p,v.initGemetry().then(g=>{console.log(v.polydata),c(n.count)}).catch(g=>{})}function c(p){const v=r.fcon;v.getScalrsByStep(p).then(g=>{console.log(v.scalar),f()}).catch(g=>{console.log(g)})}function f(){console.log("执行了");const p=r.scalarBarActor,v=r.jgMapper,g=r.jgActor,y=r.fcon;console.log(n.region);const m=y.scalar.get(n.region);if(!m||!y.polydata)return;const b=Hn.newInstance({name:n.region,size:y.polydata.getNumberOfPoints()});b.setData(m),y.polydata.getPointData().setScalars(b),v.setInputData(y.polydata),d(m),v.setScalarRange(parseFloat(o.toFixed(3)),parseFloat(i.toFixed(3))),p.setAxisLabel(n.region),v.clearColorArrays(),g.getProperty().setOpacity(n.count),r.renderWindow.getRenderer().addActor(p),r.renderWindow.getRenderer().addActor(g),a||(r.renderWindow.getRenderer().resetCamera(),a=!0),r.renderWindow.resize(),r.renderWindow.getRenderWindow().render(),s=!0}function d(p){o=p[0],i=p[0];for(let v=0;v<=p.length;v++){let g=p[v];o>g&&(o=g),i<g&&(i=g)}}return fr(()=>{r.scalarBarActor.delete(),r.jgMapper.delete(),r.jgActor.delete(),r.renderWindow.delete(),r=null}),e({leftChangAid:(p,v,g)=>{console.log(p,v,g),r.fcon&&(console.log(n),u(p))}}),(p,v)=>(z(),ne("div",F3t))}},U3t={id:"right",class:"resultRight"},G3t={__name:"resultRight",props:{region:"Temperature",count:50,aid:49},setup(t,{expose:e}){const n=t;let r={},a=!1,i,o,s=!1;Ge(()=>[n.region,n.count,n.aid],(p,v)=>{s&&(p[1]!=v[1]&&(console.log("步数改变",p[1],v[1]),r.fcon&&c(n.count)),p[0]!=v[0]&&(console.log("标量改变",p[0],v[0]),r.fcon&&f()))},{deep:!0}),Pt(()=>{const p=document.getElementById("right");p.style.position="relative",p.style.width="100%",p.style.height="100%",r.fcon=tfe(),r.renderWindow=LT.newInstance(),r.renderWindow.setContainer(p),r.jgMapper=za.newInstance(),r.jgActor=Pa.newInstance(),r.jgActor.getProperty().setRepresentation(ti.SURFACE),r.jgActor.setMapper(r.jgMapper),r.renderWindow.getRenderer().setBackground(0,0,0,0),r.scalarBarActor=Mb.newInstance(),r.scalarBarActor.setGenerateTicks(l(5)),r.scalarBarActor.setDrawAboveRangeSwatch(!0),r.scalarBarActor.setDrawNanAnnotation(!1),r.scalarBarActor.setBoxPosition([1,0]);const v=xB.newInstance();v.addRGBPoint(0,0,0,1),v.addRGBPoint(1,0,1,.5),v.addRGBPoint(2,0,1,0),v.addRGBPoint(3,1,.5,0),v.addRGBPoint(4,1,0,0),r.jgMapper.setLookupTable(v);const g=r.jgMapper.getLookupTable();r.scalarBarActor.setScalarsToColors(g),r.renderWindow.resize()});function l(p){return v=>{const g=v.getLastTickBounds(),y=Xg().domain([0,1]).range([g[0],g[1]]),b=y.ticks(p).map(x=>y(x));ST({minus:"-"});const w=y.tickFormat(b[0],b[b.length-1],p),C=b.map(w).map(x=>Number(parseFloat(x).toPrecision(12)).toPrecision());v.setTicks(b),v.setTickStrings(C)}}function u(p){const v=r.fcon;v.aid=p,v.initGemetry().then(g=>{console.log(v.polydata),c(n.count)}).catch(g=>{})}function c(p){const v=r.fcon;v.getScalrsByStep(p).then(g=>{console.log(v.scalar),f()}).catch(g=>{console.log(g)})}function f(){console.log("执行了");const p=r.scalarBarActor,v=r.jgMapper,g=r.jgActor,y=r.fcon;console.log(n.region);const m=y.scalar.get(n.region);if(!m||!y.polydata)return;const b=Hn.newInstance({name:n.region,size:y.polydata.getNumberOfPoints()});b.setData(m),y.polydata.getPointData().setScalars(b),v.setInputData(y.polydata),d(m),v.setScalarRange(parseFloat(o.toFixed(3)),parseFloat(i.toFixed(3))),p.setAxisLabel(n.region),v.clearColorArrays(),g.getProperty().setOpacity(n.count),r.renderWindow.getRenderer().addActor(p),r.renderWindow.getRenderer().addActor(g),a||(r.renderWindow.getRenderer().resetCamera(),a=!0),r.renderWindow.resize(),r.renderWindow.getRenderWindow().render(),s=!0}function d(p){o=p[0],i=p[0];for(let v=0;v<=p.length;v++){let g=p[v];o>g&&(o=g),i<g&&(i=g)}}return fr(()=>{r.scalarBarActor.delete(),r.jgMapper.delete(),r.jgActor.delete(),r.renderWindow.delete(),r=null}),e({rightChangAid:(p,v,g)=>{console.log(p,v,g),r.fcon&&(console.log(n),u(p))}}),(p,v)=>(z(),ne("div",U3t))}};const j$=fve({history:Mpe(),routes:[{path:"/configurator",name:"模型库",component:gft,beforeEnter:(t,e,n)=>{console.log(t,e),n()}},{path:"/vtk",name:"案例",component:()=>I0(()=>import("./vtk-8106a612.js"),["./vtk-8106a612.js","./SVGHelpers-a08d9d98.js","./index-b337f159.js","./LabelWidget-b803f5a2.js"],import.meta.url)},{path:"/vtk2",name:"案例1",component:()=>I0(()=>import("./vtk2-e35f7a45.js"),["./vtk2-e35f7a45.js","./SVGHelpers-a08d9d98.js","./LabelWidget-b803f5a2.js"],import.meta.url)},{path:"/demo",name:"案例3",component:()=>I0(()=>import("./demo-09e9d0fa.js"),["./demo-09e9d0fa.js","./SVGHelpers-a08d9d98.js","./index-b337f159.js"],import.meta.url)},{path:"/",name:"主页",component:()=>I0(()=>import("./appmian-af4f902b.js"),["./appmian-af4f902b.js","./index-b4a85d60.js","./appmian-cadbc506.css"],import.meta.url),meta:{keepAlive:!1,title:"主页"},children:[{path:"/home",name:"home",component:()=>I0(()=>import("./index-b4a85d60.js"),[],import.meta.url)}]},{path:"/goods",name:"goods",component:{goods:z3t}},{path:"/orderinfo",name:"orderinfo",component:{orderinfo:G3t}}]});j$.beforeEach((t,e,n)=>{window.document.title=t.name,n()});j$.afterEach((t,e,n)=>{window.scrollTo(0,0)});const S0=Jj(ipe);S0.use(j$);S0.use(bv);S0.use(wHe);S0.config.globalProperties.$echarts=O3t;S0.mount("#app");S0.config.errorHandler=function(t,e,n){console.error("Vue error:",t,n)};export{Os as $,S as A,cot as B,Q as C,Oqe as D,Vne as E,na as F,Oa as G,oo as H,XJ as I,tNt as J,LO as K,Hlt as L,EV as M,fp as N,MV as O,X3t as P,zQ as Q,S2 as R,fot as S,m1 as T,Hn as U,ma as V,w2 as W,Xh as X,Xl as Y,Tu as Z,Dn as _,YQ as a,Ft as a$,eee as a0,Ur as a1,Fl as a2,p2 as a3,yb as a4,lt as a5,H3t as a6,MXe as a7,uJ as a8,EXe as a9,Z3t as aA,uB as aB,CT as aC,Es as aD,FQ as aE,FM as aF,dB as aG,set as aH,Tg as aI,tfe as aJ,Ge as aK,Xe as aL,H as aM,X as aN,bt as aO,ln as aP,xe as aQ,Ke as aR,MM as aS,we as aT,DM as aU,kM as aV,RM as aW,Tr as aX,sn as aY,lmt as aZ,Zu as a_,CXe as aa,oJ as ab,sJ as ac,cJ as ad,Uqe as ae,Bqe as af,pJ as ag,BZe as ah,Hqe as ai,aa as aj,wi as ak,Or as al,sl as am,Q3t as an,Ka as ao,gt as ap,Ate as aq,ru as ar,Jg as as,Xne as at,tc as au,gne as av,J3t as aw,DO as ax,Ln as ay,Tb as az,Dqe as b,pn as b0,j as b1,Ot as b2,Cf as b3,z3t as b4,G3t as b5,xr as b6,LC as b7,OC as b8,hve as b9,fr as ba,Fm as bb,Ea as bc,Lt as bd,Ta as be,n1 as bf,r2 as bg,St as bh,Rn as bi,lct as bj,sQe as bk,gft as bl,Yh as c,RV as d,LV as e,OV as f,GXe as g,Qa as h,Un as i,la as j,Kh as k,Gr as l,Ha as m,W as n,Aut as o,za as p,Pa as q,kV as r,NV as s,hr as t,Eb as u,eNt as v,Pt as w,z as x,ne as y,U as z};