4430 lines
2.7 MiB
4430 lines
2.7 MiB
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(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 n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();function pR(e,t){const r=Object.create(null),n=e.split(",");for(let a=0;a<n.length;a++)r[n[a]]=!0;return t?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const In={},wp=[],zr=()=>{},hoe=()=>!1,B2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gR=e=>e.startsWith("onUpdate:"),ma=Object.assign,mR=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},voe=Object.prototype.hasOwnProperty,or=(e,t)=>voe.call(e,t),We=Array.isArray,Sp=e=>U_(e)==="[object Map]",F2=e=>U_(e)==="[object Set]",Rh=e=>U_(e)==="[object Date]",dt=e=>typeof e=="function",wt=e=>typeof e=="string",vf=e=>typeof e=="symbol",Vt=e=>e!==null&&typeof e=="object",p0=e=>(Vt(e)||dt(e))&&dt(e.then)&&dt(e.catch),jW=Object.prototype.toString,U_=e=>jW.call(e),Ow=e=>U_(e).slice(8,-1),US=e=>U_(e)==="[object Object]",yR=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kw=pR(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V2=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},poe=/-(\w)/g,os=V2(e=>e.replace(poe,(t,r)=>r?r.toUpperCase():"")),goe=/\B([A-Z])/g,If=V2(e=>e.replace(goe,"-$1").toLowerCase()),$_=V2(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nw=V2(e=>e?`on${$_(e)}`:""),Oh=(e,t)=>!Object.is(e,t),Bw=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},$S=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},OD=e=>{const t=parseFloat(e);return isNaN(t)?e:t},moe=e=>{const t=wt(e)?Number(e):NaN;return isNaN(t)?e:t};let P4;const kD=()=>P4||(P4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xe(e){if(We(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],a=wt(n)?woe(n):Xe(n);if(a)for(const i in a)t[i]=a[i]}return t}else if(wt(e)||Vt(e))return e}const yoe=/;(?![^(]*\))/g,_oe=/:([^]+)/,boe=/\/\*[^]*?\*\//g;function woe(e){const t={};return e.replace(boe,"").split(yoe).forEach(r=>{if(r){const n=r.split(_oe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(wt(e))t=e;else if(We(e))for(let r=0;r<e.length;r++){const n=H(e[r]);n&&(t+=n+" ")}else if(Vt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function Rs(e){if(!e)return null;let{class:t,style:r}=e;return t&&!wt(t)&&(e.class=H(t)),r&&(e.style=Xe(r)),e}const Soe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xoe=pR(Soe);function KW(e){return!!e||e===""}function Aoe(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Gp(e[n],t[n]);return r}function Gp(e,t){if(e===t)return!0;let r=Rh(e),n=Rh(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=vf(e),n=vf(t),r||n)return e===t;if(r=We(e),n=We(t),r||n)return r&&n?Aoe(e,t):!1;if(r=Vt(e),n=Vt(t),r||n){if(!r||!n)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Gp(e[o],t[o]))return!1}}return String(e)===String(t)}function XW(e,t){return e.findIndex(r=>Gp(r,t))}const me=e=>wt(e)?e:e==null?"":We(e)||Vt(e)&&(e.toString===jW||!dt(e.toString))?JSON.stringify(e,ZW,2):String(e),ZW=(e,t)=>t&&t.__v_isRef?ZW(e,t.value):Sp(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,a],i)=>(r[KT(n,i)+" =>"]=a,r),{})}:F2(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>KT(r))}:vf(t)?KT(t):Vt(t)&&!We(t)&&!US(t)?String(t):t,KT=(e,t="")=>{var r;return vf(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let go;class qW{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=go,!t&&go&&(this.index=(go.scopes||(go.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=go;try{return go=this,t()}finally{go=r}}}on(){go=this}off(){go=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function Toe(e){return new qW(e)}function Coe(e,t=go){t&&t.active&&t.effects.push(e)}function QW(){return go}function JW(e){go&&go.cleanups.push(e)}const _R=e=>{const t=new Set(e);return t.w=0,t.n=0,t},e9=e=>(e.w&pf)>0,t9=e=>(e.n&pf)>0,Eoe=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=pf},Moe=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const a=t[n];e9(a)&&!t9(a)?a.delete(e):t[r++]=a,a.w&=~pf,a.n&=~pf}t.length=r}},WS=new WeakMap;let dy=0,pf=1;const ND=30;let Is;const ph=Symbol(""),BD=Symbol("");class bR{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Coe(this,n)}run(){if(!this.active)return this.fn();let t=Is,r=rf;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Is,Is=this,rf=!0,pf=1<<++dy,dy<=ND?Eoe(this):L4(this),this.fn()}finally{dy<=ND&&Moe(this),pf=1<<--dy,Is=this.parent,rf=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Is===this?this.deferStop=!0:this.active&&(L4(this),this.onStop&&this.onStop(),this.active=!1)}}function L4(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let rf=!0;const r9=[];function Lg(){r9.push(rf),rf=!1}function Ig(){const e=r9.pop();rf=e===void 0?!0:e}function oo(e,t,r){if(rf&&Is){let n=WS.get(e);n||WS.set(e,n=new Map);let a=n.get(r);a||n.set(r,a=_R()),n9(a)}}function n9(e,t){let r=!1;dy<=ND?t9(e)||(e.n|=pf,r=!e9(e)):r=!e.has(Is),r&&(e.add(Is),Is.deps.push(e))}function Pu(e,t,r,n,a,i){const o=WS.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&We(e)){const l=Number(n);o.forEach((u,c)=>{(c==="length"||!vf(c)&&c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":We(e)?yR(r)&&s.push(o.get("length")):(s.push(o.get(ph)),Sp(e)&&s.push(o.get(BD)));break;case"delete":We(e)||(s.push(o.get(ph)),Sp(e)&&s.push(o.get(BD)));break;case"set":Sp(e)&&s.push(o.get(ph));break}if(s.length===1)s[0]&&FD(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);FD(_R(l))}}function FD(e,t){const r=We(e)?e:[...e];for(const n of r)n.computed&&I4(n);for(const n of r)n.computed||I4(n)}function I4(e,t){(e!==Is||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Doe(e,t){var r;return(r=WS.get(e))==null?void 0:r.get(t)}const Poe=pR("__proto__,__v_isRef,__isVue"),a9=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vf)),R4=Loe();function Loe(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Er(this);for(let i=0,o=this.length;i<o;i++)oo(n,"get",i+"");const a=n[t](...r);return a===-1||a===!1?n[t](...r.map(Er)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Lg();const n=Er(this)[t].apply(this,r);return Ig(),n}}),e}function Ioe(e){const t=Er(this);return oo(t,"has",e),t.hasOwnProperty(e)}class i9{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const a=this._isReadonly,i=this._shallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(a?i?Woe:u9:i?l9:s9).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=We(t);if(!a){if(o&&or(R4,r))return Reflect.get(R4,r,n);if(r==="hasOwnProperty")return Ioe}const s=Reflect.get(t,r,n);return(vf(r)?a9.has(r):Poe(r))||(a||oo(t,"get",r),i)?s:Qr(s)?o&&yR(r)?s:s.value:Vt(s)?a?Rg(s):Ar(s):s}}class o9 extends i9{constructor(t=!1){super(!1,t)}set(t,r,n,a){let i=t[r];if(Up(i)&&Qr(i)&&!Qr(n))return!1;if(!this._shallow&&(!YS(n)&&!Up(n)&&(i=Er(i),n=Er(n)),!We(t)&&Qr(i)&&!Qr(n)))return i.value=n,!0;const o=We(t)&&yR(r)?Number(r)<t.length:or(t,r),s=Reflect.set(t,r,n,a);return t===Er(a)&&(o?Oh(n,i)&&Pu(t,"set",r,n):Pu(t,"add",r,n)),s}deleteProperty(t,r){const n=or(t,r);t[r];const a=Reflect.deleteProperty(t,r);return a&&n&&Pu(t,"delete",r,void 0),a}has(t,r){const n=Reflect.has(t,r);return(!vf(r)||!a9.has(r))&&oo(t,"has",r),n}ownKeys(t){return oo(t,"iterate",We(t)?"length":ph),Reflect.ownKeys(t)}}class Roe extends i9{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Ooe=new o9,koe=new Roe,Noe=new o9(!0),wR=e=>e,z2=e=>Reflect.getPrototypeOf(e);function $1(e,t,r=!1,n=!1){e=e.__v_raw;const a=Er(e),i=Er(t);r||(Oh(t,i)&&oo(a,"get",t),oo(a,"get",i));const{has:o}=z2(a),s=n?wR:r?TR:g0;if(o.call(a,t))return s(e.get(t));if(o.call(a,i))return s(e.get(i));e!==a&&e.get(t)}function W1(e,t=!1){const r=this.__v_raw,n=Er(r),a=Er(e);return t||(Oh(e,a)&&oo(n,"has",e),oo(n,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function Y1(e,t=!1){return e=e.__v_raw,!t&&oo(Er(e),"iterate",ph),Reflect.get(e,"size",e)}function O4(e){e=Er(e);const t=Er(this);return z2(t).has.call(t,e)||(t.add(e),Pu(t,"add",e,e)),this}function k4(e,t){t=Er(t);const r=Er(this),{has:n,get:a}=z2(r);let i=n.call(r,e);i||(e=Er(e),i=n.call(r,e));const o=a.call(r,e);return r.set(e,t),i?Oh(t,o)&&Pu(r,"set",e,t):Pu(r,"add",e,t),this}function N4(e){const t=Er(this),{has:r,get:n}=z2(t);let a=r.call(t,e);a||(e=Er(e),a=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return a&&Pu(t,"delete",e,void 0),i}function B4(){const e=Er(this),t=e.size!==0,r=e.clear();return t&&Pu(e,"clear",void 0,void 0),r}function j1(e,t){return function(n,a){const i=this,o=i.__v_raw,s=Er(o),l=t?wR:e?TR:g0;return!e&&oo(s,"iterate",ph),o.forEach((u,c)=>n.call(a,l(u),l(c),i))}}function K1(e,t,r){return function(...n){const a=this.__v_raw,i=Er(a),o=Sp(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...n),c=r?wR:t?TR:g0;return!t&&oo(i,"iterate",l?BD:ph),{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 dc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Boe(){const e={get(i){return $1(this,i)},get size(){return Y1(this)},has:W1,add:O4,set:k4,delete:N4,clear:B4,forEach:j1(!1,!1)},t={get(i){return $1(this,i,!1,!0)},get size(){return Y1(this)},has:W1,add:O4,set:k4,delete:N4,clear:B4,forEach:j1(!1,!0)},r={get(i){return $1(this,i,!0)},get size(){return Y1(this,!0)},has(i){return W1.call(this,i,!0)},add:dc("add"),set:dc("set"),delete:dc("delete"),clear:dc("clear"),forEach:j1(!0,!1)},n={get(i){return $1(this,i,!0,!0)},get size(){return Y1(this,!0)},has(i){return W1.call(this,i,!0)},add:dc("add"),set:dc("set"),delete:dc("delete"),clear:dc("clear"),forEach:j1(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=K1(i,!1,!1),r[i]=K1(i,!0,!1),t[i]=K1(i,!1,!0),n[i]=K1(i,!0,!0)}),[e,r,t,n]}const[Foe,Voe,zoe,Hoe]=Boe();function SR(e,t){const r=t?e?Hoe:zoe:e?Voe:Foe;return(n,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?n:Reflect.get(or(r,a)&&a in n?r:n,a,i)}const Goe={get:SR(!1,!1)},Uoe={get:SR(!1,!0)},$oe={get:SR(!0,!1)},s9=new WeakMap,l9=new WeakMap,u9=new WeakMap,Woe=new WeakMap;function Yoe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function joe(e){return e.__v_skip||!Object.isExtensible(e)?0:Yoe(Ow(e))}function Ar(e){return Up(e)?e:AR(e,!1,Ooe,Goe,s9)}function xR(e){return AR(e,!1,Noe,Uoe,l9)}function Rg(e){return AR(e,!0,koe,$oe,u9)}function AR(e,t,r,n,a){if(!Vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=joe(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return a.set(e,s),s}function xp(e){return Up(e)?xp(e.__v_raw):!!(e&&e.__v_isReactive)}function Up(e){return!!(e&&e.__v_isReadonly)}function YS(e){return!!(e&&e.__v_isShallow)}function c9(e){return xp(e)||Up(e)}function Er(e){const t=e&&e.__v_raw;return t?Er(t):e}function gh(e){return $S(e,"__v_skip",!0),e}const g0=e=>Vt(e)?Ar(e):e,TR=e=>Vt(e)?Rg(e):e;function f9(e){rf&&Is&&(e=Er(e),n9(e.dep||(e.dep=_R())))}function CR(e,t){e=Er(e);const r=e.dep;r&&FD(r)}function Qr(e){return!!(e&&e.__v_isRef===!0)}function G(e){return d9(e,!1)}function yr(e){return d9(e,!0)}function d9(e,t){return Qr(e)?e:new Koe(e,t)}class Koe{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Er(t),this._value=r?t:g0(t)}get value(){return f9(this),this._value}set value(t){const r=this.__v_isShallow||YS(t)||Up(t);t=r?t:Er(t),Oh(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:g0(t),CR(this))}}function gm(e){CR(e)}function b(e){return Qr(e)?e.value:e}const Xoe={get:(e,t,r)=>b(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const a=e[t];return Qr(a)&&!Qr(r)?(a.value=r,!0):Reflect.set(e,t,r,n)}};function h9(e){return xp(e)?e:new Proxy(e,Xoe)}function Da(e){const t=We(e)?new Array(e.length):{};for(const r in e)t[r]=v9(e,r);return t}class Zoe{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Doe(Er(this._object),this._key)}}class qoe{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Sn(e,t,r){return Qr(e)?e:dt(e)?new qoe(e):Vt(e)&&arguments.length>1?v9(e,t,r):G(e)}function v9(e,t,r){const n=e[t];return Qr(n)?n:new Zoe(e,t,r)}class Qoe{constructor(t,r,n,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new bR(t,()=>{this._dirty||(this._dirty=!0,CR(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=Er(this);return f9(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function p9(e,t,r=!1){let n,a;const i=dt(e);return i?(n=e,a=zr):(n=e.get,a=e.set),new Qoe(n,a,i||!a,r)}function Joe(e,...t){}function nf(e,t,r,n){let a;try{a=n?e(...n):e()}catch(i){H2(i,t,r)}return a}function es(e,t,r,n){if(dt(e)){const i=nf(e,t,r,n);return i&&p0(i)&&i.catch(o=>{H2(o,t,r)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(es(e[i],t,r,n));return a}function H2(e,t,r,n=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,s=r;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){nf(l,null,10,[e,o,s]);return}}ese(e,r,a,n)}function ese(e,t,r,n=!0){console.error(e)}let m0=!1,VD=!1;const si=[];let wl=0;const Ap=[];let vu=null,zd=0;const g9=Promise.resolve();let ER=null;function qe(e){const t=ER||g9;return e?t.then(this?e.bind(this):e):t}function tse(e){let t=wl+1,r=si.length;for(;t<r;){const n=t+r>>>1,a=si[n],i=y0(a);i<e||i===e&&a.pre?t=n+1:r=n}return t}function MR(e){(!si.length||!si.includes(e,m0&&e.allowRecurse?wl+1:wl))&&(e.id==null?si.push(e):si.splice(tse(e.id),0,e),m9())}function m9(){!m0&&!VD&&(VD=!0,ER=g9.then(_9))}function rse(e){const t=si.indexOf(e);t>wl&&si.splice(t,1)}function nse(e){We(e)?Ap.push(...e):(!vu||!vu.includes(e,e.allowRecurse?zd+1:zd))&&Ap.push(e),m9()}function F4(e,t,r=m0?wl+1:0){for(;r<si.length;r++){const n=si[r];if(n&&n.pre){if(e&&n.id!==e.uid)continue;si.splice(r,1),r--,n()}}}function y9(e){if(Ap.length){const t=[...new Set(Ap)];if(Ap.length=0,vu){vu.push(...t);return}for(vu=t,vu.sort((r,n)=>y0(r)-y0(n)),zd=0;zd<vu.length;zd++)vu[zd]();vu=null,zd=0}}const y0=e=>e.id==null?1/0:e.id,ase=(e,t)=>{const r=y0(e)-y0(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function _9(e){VD=!1,m0=!0,si.sort(ase);const t=zr;try{for(wl=0;wl<si.length;wl++){const r=si[wl];r&&r.active!==!1&&nf(r,null,14)}}finally{wl=0,si.length=0,y9(),m0=!1,ER=null,(si.length||Ap.length)&&_9()}}function ise(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||In;let a=r;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=n[c]||In;d&&(a=r.map(h=>wt(h)?h.trim():h)),f&&(a=r.map(OD))}let s,l=n[s=Nw(t)]||n[s=Nw(os(t))];!l&&i&&(l=n[s=Nw(If(t))]),l&&es(l,e,6,a);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,es(u,e,6,a)}}function b9(e,t,r=!1){const n=t.emitsCache,a=n.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!dt(e)){const l=u=>{const c=b9(u,t,!0);c&&(s=!0,ma(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Vt(e)&&n.set(e,null),null):(We(i)?i.forEach(l=>o[l]=null):ma(o,i),Vt(e)&&n.set(e,o),o)}function G2(e,t){return!e||!B2(t)?!1:(t=t.slice(2).replace(/Once$/,""),or(e,t[0].toLowerCase()+t.slice(1))||or(e,If(t))||or(e,t))}let Xa=null,U2=null;function jS(e){const t=Xa;return Xa=e,U2=e&&e.type.__scopeId||null,t}function jl(e){U2=e}function Kl(){U2=null}function le(e,t=Xa,r){if(!t||e._n)return e;const n=(...a)=>{n._d&&q4(-1);const i=jS(t);let o;try{o=e(...a)}finally{jS(i),n._d&&q4(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function XT(e){const{type:t,vnode:r,proxy:n,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=jS(e);try{if(r.shapeFlag&4){const w=a||n,x=w;g=bl(c.call(x,w,f,i,h,d,v)),m=l}else{const w=t;g=bl(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),m=t.props?l:ose(l)}}catch(w){Ny.length=0,H2(w,e,1),g=J(Ei)}let _=g;if(m&&p!==!1){const w=Object.keys(m),{shapeFlag:x}=_;w.length&&x&7&&(o&&w.some(gR)&&(m=sse(m,o)),_=Fu(_,m))}return r.dirs&&(_=Fu(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,jS(y),g}const ose=e=>{let t;for(const r in e)(r==="class"||r==="style"||B2(r))&&((t||(t={}))[r]=e[r]);return t},sse=(e,t)=>{const r={};for(const n in e)(!gR(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function lse(e,t,r){const{props:n,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?V4(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==n[d]&&!G2(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?V4(n,o,u):!0:!!o;return!1}function V4(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(t[i]!==e[i]&&!G2(r,i))return!0}return!1}function use({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const DR="components",cse="directives";function bt(e,t){return PR(DR,e,!0,t)||e}const w9=Symbol.for("v-ndc");function Ft(e){return wt(e)?PR(DR,e,!1)||e:e||w9}function _0(e){return PR(cse,e)}function PR(e,t,r=!0,n=!1){const a=Xa||Ha;if(a){const i=a.type;if(e===DR){const s=qse(i,!1);if(s&&(s===t||s===os(t)||s===$_(os(t))))return i}const o=z4(a[e]||i[e],t)||z4(a.appContext[e],t);return!o&&n?i:o}}function z4(e,t){return e&&(e[t]||e[os(t)]||e[$_(os(t))])}const fse=e=>e.__isSuspense;function dse(e,t){t&&t.pendingBranch?We(e)?t.effects.push(...e):t.effects.push(e):nse(e)}function xo(e,t){return LR(e,null,t)}const X1={};function Ae(e,t,r){return LR(e,t,r)}function LR(e,t,{immediate:r,deep:n,flush:a,onTrack:i,onTrigger:o}=In){var s;const l=QW()===((s=Ha)==null?void 0:s.scope)?Ha:null;let u,c=!1,f=!1;if(Qr(e)?(u=()=>e.value,c=YS(e)):xp(e)?(u=()=>e,n=!0):We(e)?(f=!0,c=e.some(w=>xp(w)||YS(w)),u=()=>e.map(w=>{if(Qr(w))return w.value;if(xp(w))return Xd(w);if(dt(w))return nf(w,l,2)})):dt(e)?t?u=()=>nf(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),es(e,l,3,[h])}:u=zr,t&&n){const w=u;u=()=>Xd(w())}let d,h=w=>{d=y.onStop=()=>{nf(w,l,4),d=y.onStop=void 0}},v;if(x0)if(h=zr,t?r&&es(t,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const w=ele();v=w.__watcherHandles||(w.__watcherHandles=[])}else return zr;let p=f?new Array(e.length).fill(X1):X1;const g=()=>{if(y.active)if(t){const w=y.run();(n||c||(f?w.some((x,S)=>Oh(x,p[S])):Oh(w,p)))&&(d&&d(),es(t,l,3,[w,p===X1?void 0:f&&p[0]===X1?[]:p,h]),p=w)}else y.run()};g.allowRecurse=!!t;let m;a==="sync"?m=g:a==="post"?m=()=>Ki(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),m=()=>MR(g));const y=new bR(u,m);t?r?g():p=y.run():a==="post"?Ki(y.run.bind(y),l&&l.suspense):y.run();const _=()=>{y.stop(),l&&l.scope&&mR(l.scope.effects,y)};return v&&v.push(_),_}function hse(e,t,r){const n=this.proxy,a=wt(e)?e.includes(".")?S9(n,e):()=>n[e]:e.bind(n,n);let i;dt(t)?i=t:(i=t.handler,r=t);const o=Ha;$p(this);const s=LR(a,i.bind(n),r);return o?$p(o):mh(),s}function S9(e,t){const r=t.split(".");return()=>{let n=e;for(let a=0;a<r.length&&n;a++)n=n[r[a]];return n}}function Xd(e,t){if(!Vt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Qr(e))Xd(e.value,t);else if(We(e))for(let r=0;r<e.length;r++)Xd(e[r],t);else if(F2(e)||Sp(e))e.forEach(r=>{Xd(r,t)});else if(US(e))for(const r in e)Xd(e[r],t);return e}function Ct(e,t){const r=Xa;if(r===null)return e;const n=X2(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=In]=t[i];o&&(dt(o)&&(o={mounted:o,updated:o}),o.deep&&Xd(s),a.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function Xf(e,t,r,n){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[n];l&&(Lg(),es(l,r,8,[e.el,s,e,t]),Ig())}}const Nc=Symbol("_leaveCb"),Z1=Symbol("_enterCb");function x9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xt(()=>{e.isMounted=!0}),un(()=>{e.isUnmounting=!0}),e}const Ro=[Function,Array],A9={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ro,onEnter:Ro,onAfterEnter:Ro,onEnterCancelled:Ro,onBeforeLeave:Ro,onLeave:Ro,onAfterLeave:Ro,onLeaveCancelled:Ro,onBeforeAppear:Ro,onAppear:Ro,onAfterAppear:Ro,onAppearCancelled:Ro},vse={name:"BaseTransition",props:A9,setup(e,{slots:t}){const r=It(),n=x9();let a;return()=>{const i=t.default&&IR(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Ei){o=p;break}}const s=Er(e),{mode:l}=s;if(n.isLeaving)return ZT(o);const u=H4(o);if(!u)return ZT(o);const c=b0(u,s,n,r);w0(u,c);const f=r.subTree,d=f&&H4(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(d&&d.type!==Ei&&(!Hd(u,d)||h)){const p=b0(d,s,n,r);if(w0(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},ZT(o);l==="in-out"&&u.type!==Ei&&(p.delayLeave=(g,m,y)=>{const _=T9(n,d);_[String(d.key)]=d,g[Nc]=()=>{m(),g[Nc]=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},pse=vse;function T9(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function b0(e,t,r,n){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),w=T9(r,e),x=(A,C)=>{A&&es(A,n,9,C)},S=(A,C)=>{const M=C[1];x(A,C),We(A)?A.every(E=>E.length<=1)&&M():A.length<=1&&M()},T={mode:i,persisted:o,beforeEnter(A){let C=s;if(!r.isMounted)if(a)C=p||s;else return;A[Nc]&&A[Nc](!0);const M=w[_];M&&Hd(e,M)&&M.el[Nc]&&M.el[Nc](),x(C,[A])},enter(A){let C=l,M=u,E=c;if(!r.isMounted)if(a)C=g||l,M=m||u,E=y||c;else return;let D=!1;const P=A[Z1]=L=>{D||(D=!0,L?x(E,[A]):x(M,[A]),T.delayedLeave&&T.delayedLeave(),A[Z1]=void 0)};C?S(C,[A,P]):P()},leave(A,C){const M=String(e.key);if(A[Z1]&&A[Z1](!0),r.isUnmounting)return C();x(f,[A]);let E=!1;const D=A[Nc]=P=>{E||(E=!0,C(),P?x(v,[A]):x(h,[A]),A[Nc]=void 0,w[M]===e&&delete w[M])};w[M]=e,d?S(d,[A,D]):D()},clone(A){return b0(A,t,r,n)}};return T}function ZT(e){if($2(e))return e=Fu(e),e.children=null,e}function H4(e){return $2(e)?e.children?e.children[0]:void 0:e}function w0(e,t){e.shapeFlag&6&&e.component?w0(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function IR(e,t=!1,r){let n=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:i);o.type===Be?(o.patchFlag&128&&a++,n=n.concat(IR(o.children,t,s))):(t||o.type!==Ei)&&n.push(s!=null?Fu(o,{key:s}):o)}if(a>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function te(e,t){return dt(e)?(()=>ma({name:e.name},t,{setup:e}))():e}const Ry=e=>!!e.type.__asyncLoader,$2=e=>e.type.__isKeepAlive;function gse(e,t){E9(e,"a",t)}function C9(e,t){E9(e,"da",t)}function E9(e,t,r=Ha){const n=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(W2(t,n,r),r){let a=r.parent;for(;a&&a.parent;)$2(a.parent.vnode)&&mse(n,t,r,a),a=a.parent}}function mse(e,t,r,n){const a=W2(t,e,n,!0);Xl(()=>{mR(n[t],a)},r)}function W2(e,t,r=Ha,n=!1){if(r){const a=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Lg(),$p(r);const s=es(t,r,e,o);return mh(),Ig(),s});return n?a.unshift(i):a.push(i),i}}const Zu=e=>(t,r=Ha)=>(!x0||e==="sp")&&W2(e,(...n)=>t(...n),r),Y2=Zu("bm"),xt=Zu("m"),M9=Zu("bu"),qu=Zu("u"),un=Zu("bum"),Xl=Zu("um"),yse=Zu("sp"),_se=Zu("rtg"),bse=Zu("rtc");function wse(e,t=Ha){W2("ec",e,t)}function ht(e,t,r,n){let a;const i=r&&r[n];if(We(e)||wt(e)){a=new Array(e.length);for(let o=0,s=e.length;o<s;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(Vt(e))if(e[Symbol.iterator])a=Array.from(e,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(e[u],u,s,i&&i[s])}}else a=[];return r&&(r[n]=a),a}function Bl(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(We(n))for(let a=0;a<n.length;a++)e[n[a].name]=n[a].fn;else n&&(e[n.name]=n.key?(...a)=>{const i=n.fn(...a);return i&&(i.key=n.key),i}:n.fn)}return e}function ye(e,t,r={},n,a){if(Xa.isCE||Xa.parent&&Ry(Xa.parent)&&Xa.parent.isCE)return t!=="default"&&(r.name=t),J("slot",r,n&&n());let i=e[t];i&&i._c&&(i._d=!1),N();const o=i&&D9(i(r)),s=he(Be,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function D9(e){return e.some(t=>hn(t)?!(t.type===Ei||t.type===Be&&!D9(t.children)):!0)?e:null}function Sse(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Nw(n)]=e[n];return r}const zD=e=>e?G9(e)?X2(e)||e.proxy:zD(e.parent):null,Oy=ma(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zD(e.parent),$root:e=>zD(e.root),$emit:e=>e.emit,$options:e=>RR(e),$forceUpdate:e=>e.f||(e.f=()=>MR(e.update)),$nextTick:e=>e.n||(e.n=qe.bind(e.proxy)),$watch:e=>hse.bind(e)}),qT=(e,t)=>e!==In&&!e.__isScriptSetup&&or(e,t),xse={get({_:e},t){const{ctx:r,setupState:n,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return a[t];case 4:return r[t];case 3:return i[t]}else{if(qT(n,t))return o[t]=1,n[t];if(a!==In&&or(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&or(u,t))return o[t]=3,i[t];if(r!==In&&or(r,t))return o[t]=4,r[t];HD&&(o[t]=0)}}const c=Oy[t];let f,d;if(c)return t==="$attrs"&&oo(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==In&&or(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,or(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:a,ctx:i}=e;return qT(a,t)?(a[t]=r,!0):n!==In&&or(n,t)?(n[t]=r,!0):or(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:a,propsOptions:i}},o){let s;return!!r[o]||e!==In&&or(e,o)||qT(t,o)||(s=i[0])&&or(s,o)||or(n,o)||or(Oy,o)||or(a.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:or(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function $a(){return P9().slots}function Jh(){return P9().attrs}function P9(){const e=It();return e.setupContext||(e.setupContext=$9(e))}function G4(e){return We(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let HD=!0;function Ase(e){const t=RR(e),r=e.proxy,n=e.ctx;HD=!1,t.beforeCreate&&U4(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:w,render:x,renderTracked:S,renderTriggered:T,errorCaptured:A,serverPrefetch:C,expose:M,inheritAttrs:E,components:D,directives:P,filters:L}=t;if(u&&Tse(u,n,null),o)for(const R in o){const B=o[R];dt(B)&&(n[R]=B.bind(r))}if(a){const R=a.call(r,r);Vt(R)&&(e.data=Ar(R))}if(HD=!0,i)for(const R in i){const B=i[R],k=dt(B)?B.bind(r,r):dt(B.get)?B.get.bind(r,r):zr,z=!dt(B)&&dt(B.set)?B.set.bind(r):zr,$=F({get:k,set:z});Object.defineProperty(n,R,{enumerable:!0,configurable:!0,get:()=>$.value,set:j=>$.value=j})}if(s)for(const R in s)L9(s[R],n,r,R);if(l){const R=dt(l)?l.call(r):l;Reflect.ownKeys(R).forEach(B=>{Wt(B,R[B])})}c&&U4(c,e,"c");function O(R,B){We(B)?B.forEach(k=>R(k.bind(r))):B&&R(B.bind(r))}if(O(Y2,f),O(xt,d),O(M9,h),O(qu,v),O(gse,p),O(C9,g),O(wse,A),O(bse,S),O(_se,T),O(un,y),O(Xl,w),O(yse,C),We(M))if(M.length){const R=e.exposed||(e.exposed={});M.forEach(B=>{Object.defineProperty(R,B,{get:()=>r[B],set:k=>r[B]=k})})}else e.exposed||(e.exposed={});x&&e.render===zr&&(e.render=x),E!=null&&(e.inheritAttrs=E),D&&(e.components=D),P&&(e.directives=P)}function Tse(e,t,r=zr){We(e)&&(e=GD(e));for(const n in e){const a=e[n];let i;Vt(a)?"default"in a?i=Ye(a.from||n,a.default,!0):i=Ye(a.from||n):i=Ye(a),Qr(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function U4(e,t,r){es(We(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function L9(e,t,r,n){const a=n.includes(".")?S9(r,n):()=>r[n];if(wt(e)){const i=t[e];dt(i)&&Ae(a,i)}else if(dt(e))Ae(a,e.bind(r));else if(Vt(e))if(We(e))e.forEach(i=>L9(i,t,r,n));else{const i=dt(e.handler)?e.handler.bind(r):t[e.handler];dt(i)&&Ae(a,i,e)}}function RR(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!r&&!n?l=t:(l={},a.length&&a.forEach(u=>KS(l,u,o,!0)),KS(l,t,o)),Vt(t)&&i.set(t,l),l}function KS(e,t,r,n=!1){const{mixins:a,extends:i}=t;i&&KS(e,i,r,!0),a&&a.forEach(o=>KS(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=Cse[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const Cse={data:$4,props:W4,emits:W4,methods:hy,computed:hy,beforeCreate:bi,created:bi,beforeMount:bi,mounted:bi,beforeUpdate:bi,updated:bi,beforeDestroy:bi,beforeUnmount:bi,destroyed:bi,unmounted:bi,activated:bi,deactivated:bi,errorCaptured:bi,serverPrefetch:bi,components:hy,directives:hy,watch:Mse,provide:$4,inject:Ese};function $4(e,t){return t?e?function(){return ma(dt(e)?e.call(this,this):e,dt(t)?t.call(this,this):t)}:t:e}function Ese(e,t){return hy(GD(e),GD(t))}function GD(e){if(We(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function bi(e,t){return e?[...new Set([].concat(e,t))]:t}function hy(e,t){return e?ma(Object.create(null),e,t):t}function W4(e,t){return e?We(e)&&We(t)?[...new Set([...e,...t])]:ma(Object.create(null),G4(e),G4(t??{})):t}function Mse(e,t){if(!e)return t;if(!t)return e;const r=ma(Object.create(null),e);for(const n in t)r[n]=bi(e[n],t[n]);return r}function I9(){return{app:null,config:{isNativeTag:hoe,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 Dse=0;function Pse(e,t){return function(n,a=null){dt(n)||(n=ma({},n)),a!=null&&!Vt(a)&&(a=null);const i=I9(),o=new WeakSet;let s=!1;const l=i.app={_uid:Dse++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:tle,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&dt(u.install)?(o.add(u),u.install(l,...c)):dt(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=J(n,a);return d.appContext=i,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,X2(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){XS=l;try{return u()}finally{XS=null}}};return l}}let XS=null;function Wt(e,t){if(Ha){let r=Ha.provides;const n=Ha.parent&&Ha.parent.provides;n===r&&(r=Ha.provides=Object.create(n)),r[e]=t}}function Ye(e,t,r=!1){const n=Ha||Xa;if(n||XS){const a=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:XS._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&dt(t)?t.call(n&&n.proxy):t}}function Lse(e,t,r,n=!1){const a={},i={};$S(i,j2,1),e.propsDefaults=Object.create(null),R9(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);r?e.props=n?a:xR(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function Ise(e,t,r,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=Er(a),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(G2(e.emitsOptions,d))continue;const h=t[d];if(l)if(or(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const v=os(d);a[v]=UD(l,s,v,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{R9(e,t,a,i)&&(u=!0);let c;for(const f in s)(!t||!or(t,f)&&((c=If(f))===f||!or(t,c)))&&(l?r&&(r[f]!==void 0||r[c]!==void 0)&&(a[f]=UD(l,s,f,void 0,e,!0)):delete a[f]);if(i!==s)for(const f in i)(!t||!or(t,f))&&(delete i[f],u=!0)}u&&Pu(e,"set","$attrs")}function R9(e,t,r,n){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(kw(l))continue;const u=t[l];let c;a&&or(a,c=os(l))?!i||!i.includes(c)?r[c]=u:(s||(s={}))[c]=u:G2(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(i){const l=Er(r),u=s||In;for(let c=0;c<i.length;c++){const f=i[c];r[f]=UD(a,l,f,u[f],e,!or(u,f))}}return o}function UD(e,t,r,n,a,i){const o=e[r];if(o!=null){const s=or(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&dt(l)){const{propsDefaults:u}=a;r in u?n=u[r]:($p(a),n=u[r]=l.call(null,t),mh())}else n=l}o[0]&&(i&&!s?n=!1:o[1]&&(n===""||n===If(r))&&(n=!0))}return n}function O9(e,t,r=!1){const n=t.propsCache,a=n.get(e);if(a)return a;const i=e.props,o={},s=[];let l=!1;if(!dt(e)){const c=f=>{l=!0;const[d,h]=O9(f,t,!0);ma(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Vt(e)&&n.set(e,wp),wp;if(We(i))for(let c=0;c<i.length;c++){const f=os(i[c]);Y4(f)&&(o[f]=In)}else if(i)for(const c in i){const f=os(c);if(Y4(f)){const d=i[c],h=o[f]=We(d)||dt(d)?{type:d}:ma({},d);if(h){const v=X4(Boolean,h.type),p=X4(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||or(h,"default"))&&s.push(f)}}}const u=[o,s];return Vt(e)&&n.set(e,u),u}function Y4(e){return e[0]!=="$"}function j4(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function K4(e,t){return j4(e)===j4(t)}function X4(e,t){return We(t)?t.findIndex(r=>K4(r,e)):dt(t)&&K4(t,e)?0:-1}const k9=e=>e[0]==="_"||e==="$stable",OR=e=>We(e)?e.map(bl):[bl(e)],Rse=(e,t,r)=>{if(t._n)return t;const n=le((...a)=>OR(t(...a)),r);return n._c=!1,n},N9=(e,t,r)=>{const n=e._ctx;for(const a in e){if(k9(a))continue;const i=e[a];if(dt(i))t[a]=Rse(a,i,n);else if(i!=null){const o=OR(i);t[a]=()=>o}}},B9=(e,t)=>{const r=OR(t);e.slots.default=()=>r},Ose=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Er(t),$S(t,"_",r)):N9(t,e.slots={})}else e.slots={},t&&B9(e,t);$S(e.slots,j2,1)},kse=(e,t,r)=>{const{vnode:n,slots:a}=e;let i=!0,o=In;if(n.shapeFlag&32){const s=t._;s?r&&s===1?i=!1:(ma(a,t),!r&&s===1&&delete a._):(i=!t.$stable,N9(t,a)),o=t}else t&&(B9(e,t),o={default:1});if(i)for(const s in a)!k9(s)&&o[s]==null&&delete a[s]};function $D(e,t,r,n,a=!1){if(We(e)){e.forEach((d,h)=>$D(d,t&&(We(t)?t[h]:t),r,n,a));return}if(Ry(n)&&!a)return;const i=n.shapeFlag&4?X2(n.component)||n.component.proxy:n.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===In?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(wt(u)?(c[u]=null,or(f,u)&&(f[u]=null)):Qr(u)&&(u.value=null)),dt(l))nf(l,s,12,[o,c]);else{const d=wt(l),h=Qr(l);if(d||h){const v=()=>{if(e.f){const p=d?or(f,l)?f[l]:c[l]:l.value;a?We(p)&&mR(p,i):We(p)?p.includes(i)||p.push(i):d?(c[l]=[i],or(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,or(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,Ki(v,r)):v()}}}const Ki=dse;function Nse(e){return Bse(e)}function Bse(e,t){const r=kD();r.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=zr,insertStaticContent:v}=e,p=(Y,q,oe,ve=null,_e=null,ge=null,Le=!1,Se=null,xe=!!q.dynamicChildren)=>{if(Y===q)return;Y&&!Hd(Y,q)&&(ve=K(Y),j(Y,_e,ge,!0),Y=null),q.patchFlag===-2&&(xe=!1,q.dynamicChildren=null);const{type:Te,ref:Ve,shapeFlag:He}=q;switch(Te){case Og:g(Y,q,oe,ve);break;case Ei:m(Y,q,oe,ve);break;case Fw:Y==null&&y(q,oe,ve,Le);break;case Be:D(Y,q,oe,ve,_e,ge,Le,Se,xe);break;default:He&1?x(Y,q,oe,ve,_e,ge,Le,Se,xe):He&6?P(Y,q,oe,ve,_e,ge,Le,Se,xe):(He&64||He&128)&&Te.process(Y,q,oe,ve,_e,ge,Le,Se,xe,ne)}Ve!=null&&_e&&$D(Ve,Y&&Y.ref,ge,q||Y,!q)},g=(Y,q,oe,ve)=>{if(Y==null)n(q.el=s(q.children),oe,ve);else{const _e=q.el=Y.el;q.children!==Y.children&&u(_e,q.children)}},m=(Y,q,oe,ve)=>{Y==null?n(q.el=l(q.children||""),oe,ve):q.el=Y.el},y=(Y,q,oe,ve)=>{[Y.el,Y.anchor]=v(Y.children,q,oe,ve,Y.el,Y.anchor)},_=({el:Y,anchor:q},oe,ve)=>{let _e;for(;Y&&Y!==q;)_e=d(Y),n(Y,oe,ve),Y=_e;n(q,oe,ve)},w=({el:Y,anchor:q})=>{let oe;for(;Y&&Y!==q;)oe=d(Y),a(Y),Y=oe;a(q)},x=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{Le=Le||q.type==="svg",Y==null?S(q,oe,ve,_e,ge,Le,Se,xe):C(Y,q,_e,ge,Le,Se,xe)},S=(Y,q,oe,ve,_e,ge,Le,Se)=>{let xe,Te;const{type:Ve,props:He,shapeFlag:je,transition:Pe,dirs:Ue}=Y;if(xe=Y.el=o(Y.type,ge,He&&He.is,He),je&8?c(xe,Y.children):je&16&&A(Y.children,xe,null,ve,_e,ge&&Ve!=="foreignObject",Le,Se),Ue&&Xf(Y,null,ve,"created"),T(xe,Y,Y.scopeId,Le,ve),He){for(const At in He)At!=="value"&&!kw(At)&&i(xe,At,null,He[At],ge,Y.children,ve,_e,ee);"value"in He&&i(xe,"value",null,He.value),(Te=He.onVnodeBeforeMount)&&ul(Te,ve,Y)}Ue&&Xf(Y,null,ve,"beforeMount");const gt=Fse(_e,Pe);gt&&Pe.beforeEnter(xe),n(xe,q,oe),((Te=He&&He.onVnodeMounted)||gt||Ue)&&Ki(()=>{Te&&ul(Te,ve,Y),gt&&Pe.enter(xe),Ue&&Xf(Y,null,ve,"mounted")},_e)},T=(Y,q,oe,ve,_e)=>{if(oe&&h(Y,oe),ve)for(let ge=0;ge<ve.length;ge++)h(Y,ve[ge]);if(_e){let ge=_e.subTree;if(q===ge){const Le=_e.vnode;T(Y,Le,Le.scopeId,Le.slotScopeIds,_e.parent)}}},A=(Y,q,oe,ve,_e,ge,Le,Se,xe=0)=>{for(let Te=xe;Te<Y.length;Te++){const Ve=Y[Te]=Se?Bc(Y[Te]):bl(Y[Te]);p(null,Ve,q,oe,ve,_e,ge,Le,Se)}},C=(Y,q,oe,ve,_e,ge,Le)=>{const Se=q.el=Y.el;let{patchFlag:xe,dynamicChildren:Te,dirs:Ve}=q;xe|=Y.patchFlag&16;const He=Y.props||In,je=q.props||In;let Pe;oe&&Zf(oe,!1),(Pe=je.onVnodeBeforeUpdate)&&ul(Pe,oe,q,Y),Ve&&Xf(q,Y,oe,"beforeUpdate"),oe&&Zf(oe,!0);const Ue=_e&&q.type!=="foreignObject";if(Te?M(Y.dynamicChildren,Te,Se,oe,ve,Ue,ge):Le||B(Y,q,Se,null,oe,ve,Ue,ge,!1),xe>0){if(xe&16)E(Se,q,He,je,oe,ve,_e);else if(xe&2&&He.class!==je.class&&i(Se,"class",null,je.class,_e),xe&4&&i(Se,"style",He.style,je.style,_e),xe&8){const gt=q.dynamicProps;for(let At=0;At<gt.length;At++){const Gt=gt[At],tt=He[Gt],be=je[Gt];(be!==tt||Gt==="value")&&i(Se,Gt,tt,be,_e,Y.children,oe,ve,ee)}}xe&1&&Y.children!==q.children&&c(Se,q.children)}else!Le&&Te==null&&E(Se,q,He,je,oe,ve,_e);((Pe=je.onVnodeUpdated)||Ve)&&Ki(()=>{Pe&&ul(Pe,oe,q,Y),Ve&&Xf(q,Y,oe,"updated")},ve)},M=(Y,q,oe,ve,_e,ge,Le)=>{for(let Se=0;Se<q.length;Se++){const xe=Y[Se],Te=q[Se],Ve=xe.el&&(xe.type===Be||!Hd(xe,Te)||xe.shapeFlag&70)?f(xe.el):oe;p(xe,Te,Ve,null,ve,_e,ge,Le,!0)}},E=(Y,q,oe,ve,_e,ge,Le)=>{if(oe!==ve){if(oe!==In)for(const Se in oe)!kw(Se)&&!(Se in ve)&&i(Y,Se,oe[Se],null,Le,q.children,_e,ge,ee);for(const Se in ve){if(kw(Se))continue;const xe=ve[Se],Te=oe[Se];xe!==Te&&Se!=="value"&&i(Y,Se,Te,xe,Le,q.children,_e,ge,ee)}"value"in ve&&i(Y,"value",oe.value,ve.value)}},D=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{const Te=q.el=Y?Y.el:s(""),Ve=q.anchor=Y?Y.anchor:s("");let{patchFlag:He,dynamicChildren:je,slotScopeIds:Pe}=q;Pe&&(Se=Se?Se.concat(Pe):Pe),Y==null?(n(Te,oe,ve),n(Ve,oe,ve),A(q.children,oe,Ve,_e,ge,Le,Se,xe)):He>0&&He&64&&je&&Y.dynamicChildren?(M(Y.dynamicChildren,je,oe,_e,ge,Le,Se),(q.key!=null||_e&&q===_e.subTree)&&kR(Y,q,!0)):B(Y,q,oe,Ve,_e,ge,Le,Se,xe)},P=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{q.slotScopeIds=Se,Y==null?q.shapeFlag&512?_e.ctx.activate(q,oe,ve,Le,xe):L(q,oe,ve,_e,ge,Le,xe):I(Y,q,xe)},L=(Y,q,oe,ve,_e,ge,Le)=>{const Se=Y.component=jse(Y,ve,_e);if($2(Y)&&(Se.ctx.renderer=ne),Kse(Se),Se.asyncDep){if(_e&&_e.registerDep(Se,O),!Y.el){const xe=Se.subTree=J(Ei);m(null,xe,q,oe)}return}O(Se,Y,q,oe,_e,ge,Le)},I=(Y,q,oe)=>{const ve=q.component=Y.component;if(lse(Y,q,oe))if(ve.asyncDep&&!ve.asyncResolved){R(ve,q,oe);return}else ve.next=q,rse(ve.update),ve.update();else q.el=Y.el,ve.vnode=q},O=(Y,q,oe,ve,_e,ge,Le)=>{const Se=()=>{if(Y.isMounted){let{next:Ve,bu:He,u:je,parent:Pe,vnode:Ue}=Y,gt=Ve,At;Zf(Y,!1),Ve?(Ve.el=Ue.el,R(Y,Ve,Le)):Ve=Ue,He&&Bw(He),(At=Ve.props&&Ve.props.onVnodeBeforeUpdate)&&ul(At,Pe,Ve,Ue),Zf(Y,!0);const Gt=XT(Y),tt=Y.subTree;Y.subTree=Gt,p(tt,Gt,f(tt.el),K(tt),Y,_e,ge),Ve.el=Gt.el,gt===null&&use(Y,Gt.el),je&&Ki(je,_e),(At=Ve.props&&Ve.props.onVnodeUpdated)&&Ki(()=>ul(At,Pe,Ve,Ue),_e)}else{let Ve;const{el:He,props:je}=q,{bm:Pe,m:Ue,parent:gt}=Y,At=Ry(q);if(Zf(Y,!1),Pe&&Bw(Pe),!At&&(Ve=je&&je.onVnodeBeforeMount)&&ul(Ve,gt,q),Zf(Y,!0),He&&ie){const Gt=()=>{Y.subTree=XT(Y),ie(He,Y.subTree,Y,_e,null)};At?q.type.__asyncLoader().then(()=>!Y.isUnmounted&&Gt()):Gt()}else{const Gt=Y.subTree=XT(Y);p(null,Gt,oe,ve,Y,_e,ge),q.el=Gt.el}if(Ue&&Ki(Ue,_e),!At&&(Ve=je&&je.onVnodeMounted)){const Gt=q;Ki(()=>ul(Ve,gt,Gt),_e)}(q.shapeFlag&256||gt&&Ry(gt.vnode)&>.vnode.shapeFlag&256)&&Y.a&&Ki(Y.a,_e),Y.isMounted=!0,q=oe=ve=null}},xe=Y.effect=new bR(Se,()=>MR(Te),Y.scope),Te=Y.update=()=>xe.run();Te.id=Y.uid,Zf(Y,!0),Te()},R=(Y,q,oe)=>{q.component=Y;const ve=Y.vnode.props;Y.vnode=q,Y.next=null,Ise(Y,q.props,ve,oe),kse(Y,q.children,oe),Lg(),F4(Y),Ig()},B=(Y,q,oe,ve,_e,ge,Le,Se,xe=!1)=>{const Te=Y&&Y.children,Ve=Y?Y.shapeFlag:0,He=q.children,{patchFlag:je,shapeFlag:Pe}=q;if(je>0){if(je&128){z(Te,He,oe,ve,_e,ge,Le,Se,xe);return}else if(je&256){k(Te,He,oe,ve,_e,ge,Le,Se,xe);return}}Pe&8?(Ve&16&&ee(Te,_e,ge),He!==Te&&c(oe,He)):Ve&16?Pe&16?z(Te,He,oe,ve,_e,ge,Le,Se,xe):ee(Te,_e,ge,!0):(Ve&8&&c(oe,""),Pe&16&&A(He,oe,ve,_e,ge,Le,Se,xe))},k=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{Y=Y||wp,q=q||wp;const Te=Y.length,Ve=q.length,He=Math.min(Te,Ve);let je;for(je=0;je<He;je++){const Pe=q[je]=xe?Bc(q[je]):bl(q[je]);p(Y[je],Pe,oe,null,_e,ge,Le,Se,xe)}Te>Ve?ee(Y,_e,ge,!0,!1,He):A(q,oe,ve,_e,ge,Le,Se,xe,He)},z=(Y,q,oe,ve,_e,ge,Le,Se,xe)=>{let Te=0;const Ve=q.length;let He=Y.length-1,je=Ve-1;for(;Te<=He&&Te<=je;){const Pe=Y[Te],Ue=q[Te]=xe?Bc(q[Te]):bl(q[Te]);if(Hd(Pe,Ue))p(Pe,Ue,oe,null,_e,ge,Le,Se,xe);else break;Te++}for(;Te<=He&&Te<=je;){const Pe=Y[He],Ue=q[je]=xe?Bc(q[je]):bl(q[je]);if(Hd(Pe,Ue))p(Pe,Ue,oe,null,_e,ge,Le,Se,xe);else break;He--,je--}if(Te>He){if(Te<=je){const Pe=je+1,Ue=Pe<Ve?q[Pe].el:ve;for(;Te<=je;)p(null,q[Te]=xe?Bc(q[Te]):bl(q[Te]),oe,Ue,_e,ge,Le,Se,xe),Te++}}else if(Te>je)for(;Te<=He;)j(Y[Te],_e,ge,!0),Te++;else{const Pe=Te,Ue=Te,gt=new Map;for(Te=Ue;Te<=je;Te++){const ae=q[Te]=xe?Bc(q[Te]):bl(q[Te]);ae.key!=null&>.set(ae.key,Te)}let At,Gt=0;const tt=je-Ue+1;let be=!1,pe=0;const de=new Array(tt);for(Te=0;Te<tt;Te++)de[Te]=0;for(Te=Pe;Te<=He;Te++){const ae=Y[Te];if(Gt>=tt){j(ae,_e,ge,!0);continue}let Ge;if(ae.key!=null)Ge=gt.get(ae.key);else for(At=Ue;At<=je;At++)if(de[At-Ue]===0&&Hd(ae,q[At])){Ge=At;break}Ge===void 0?j(ae,_e,ge,!0):(de[Ge-Ue]=Te+1,Ge>=pe?pe=Ge:be=!0,p(ae,q[Ge],oe,null,_e,ge,Le,Se,xe),Gt++)}const Me=be?Vse(de):wp;for(At=Me.length-1,Te=tt-1;Te>=0;Te--){const ae=Ue+Te,Ge=q[ae],St=ae+1<Ve?q[ae+1].el:ve;de[Te]===0?p(null,Ge,oe,St,_e,ge,Le,Se,xe):be&&(At<0||Te!==Me[At]?$(Ge,oe,St,2):At--)}}},$=(Y,q,oe,ve,_e=null)=>{const{el:ge,type:Le,transition:Se,children:xe,shapeFlag:Te}=Y;if(Te&6){$(Y.component.subTree,q,oe,ve);return}if(Te&128){Y.suspense.move(q,oe,ve);return}if(Te&64){Le.move(Y,q,oe,ne);return}if(Le===Be){n(ge,q,oe);for(let He=0;He<xe.length;He++)$(xe[He],q,oe,ve);n(Y.anchor,q,oe);return}if(Le===Fw){_(Y,q,oe);return}if(ve!==2&&Te&1&&Se)if(ve===0)Se.beforeEnter(ge),n(ge,q,oe),Ki(()=>Se.enter(ge),_e);else{const{leave:He,delayLeave:je,afterLeave:Pe}=Se,Ue=()=>n(ge,q,oe),gt=()=>{He(ge,()=>{Ue(),Pe&&Pe()})};je?je(ge,Ue,gt):gt()}else n(ge,q,oe)},j=(Y,q,oe,ve=!1,_e=!1)=>{const{type:ge,props:Le,ref:Se,children:xe,dynamicChildren:Te,shapeFlag:Ve,patchFlag:He,dirs:je}=Y;if(Se!=null&&$D(Se,null,oe,Y,!0),Ve&256){q.ctx.deactivate(Y);return}const Pe=Ve&1&&je,Ue=!Ry(Y);let gt;if(Ue&&(gt=Le&&Le.onVnodeBeforeUnmount)&&ul(gt,q,Y),Ve&6)se(Y.component,oe,ve);else{if(Ve&128){Y.suspense.unmount(oe,ve);return}Pe&&Xf(Y,null,q,"beforeUnmount"),Ve&64?Y.type.remove(Y,q,oe,_e,ne,ve):Te&&(ge!==Be||He>0&&He&64)?ee(Te,q,oe,!1,!0):(ge===Be&&He&384||!_e&&Ve&16)&&ee(xe,q,oe),ve&&X(Y)}(Ue&&(gt=Le&&Le.onVnodeUnmounted)||Pe)&&Ki(()=>{gt&&ul(gt,q,Y),Pe&&Xf(Y,null,q,"unmounted")},oe)},X=Y=>{const{type:q,el:oe,anchor:ve,transition:_e}=Y;if(q===Be){Q(oe,ve);return}if(q===Fw){w(Y);return}const ge=()=>{a(oe),_e&&!_e.persisted&&_e.afterLeave&&_e.afterLeave()};if(Y.shapeFlag&1&&_e&&!_e.persisted){const{leave:Le,delayLeave:Se}=_e,xe=()=>Le(oe,ge);Se?Se(Y.el,ge,xe):xe()}else ge()},Q=(Y,q)=>{let oe;for(;Y!==q;)oe=d(Y),a(Y),Y=oe;a(q)},se=(Y,q,oe)=>{const{bum:ve,scope:_e,update:ge,subTree:Le,um:Se}=Y;ve&&Bw(ve),_e.stop(),ge&&(ge.active=!1,j(Le,Y,q,oe)),Se&&Ki(Se,q),Ki(()=>{Y.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},ee=(Y,q,oe,ve=!1,_e=!1,ge=0)=>{for(let Le=ge;Le<Y.length;Le++)j(Y[Le],q,oe,ve,_e)},K=Y=>Y.shapeFlag&6?K(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():d(Y.anchor||Y.el),Z=(Y,q,oe)=>{Y==null?q._vnode&&j(q._vnode,null,null,!0):p(q._vnode||null,Y,q,null,null,null,oe),F4(),y9(),q._vnode=Y},ne={p,um:j,m:$,r:X,mt:L,mc:A,pc:B,pbc:M,n:K,o:e};let re,ie;return t&&([re,ie]=t(ne)),{render:Z,hydrate:re,createApp:Pse(Z,re)}}function Zf({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Fse(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function kR(e,t,r=!1){const n=e.children,a=t.children;if(We(n)&&We(a))for(let i=0;i<n.length;i++){const o=n[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=Bc(a[i]),s.el=o.el),r||kR(o,s)),s.type===Og&&(s.el=o.el)}}function Vse(e){const t=e.slice(),r=[0];let n,a,i,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(a=r[r.length-1],e[a]<u){t[n]=a,r.push(n);continue}for(i=0,o=r.length-1;i<o;)s=i+o>>1,e[r[s]]<u?i=s+1:o=s;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,o=r[i-1];i-- >0;)r[i]=o,o=t[o];return r}const zse=e=>e.__isTeleport,ky=e=>e&&(e.disabled||e.disabled===""),Z4=e=>typeof SVGElement<"u"&&e instanceof SVGElement,WD=(e,t)=>{const r=e&&e.to;return wt(r)?t?t(r):null:r},Hse={name:"Teleport",__isTeleport:!0,process(e,t,r,n,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=ky(t.props);let{shapeFlag:y,children:_,dynamicChildren:w}=t;if(e==null){const x=t.el=p(""),S=t.anchor=p("");h(x,r,n),h(S,r,n);const T=t.target=WD(t.props,v),A=t.targetAnchor=p("");T&&(h(A,T),o=o||Z4(T));const C=(M,E)=>{y&16&&c(_,M,E,a,i,o,s,l)};m?C(r,S):T&&C(T,A)}else{t.el=e.el;const x=t.anchor=e.anchor,S=t.target=e.target,T=t.targetAnchor=e.targetAnchor,A=ky(e.props),C=A?r:S,M=A?x:T;if(o=o||Z4(S),w?(d(e.dynamicChildren,w,C,a,i,o,s),kR(e,t,!0)):l||f(e,t,C,M,a,i,o,s,!1),m)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):q1(t,r,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=WD(t.props,v);E&&q1(t,E,null,u,0)}else A&&q1(t,S,T,u,1)}F9(t)},remove(e,t,r,n,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),o&&i(u),s&16){const h=o||!ky(d);for(let v=0;v<l.length;v++){const p=l[v];a(p,t,r,h,!!p.dynamicChildren)}}},move:q1,hydrate:Gse};function q1(e,t,r,{o:{insert:n},m:a},i=2){i===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,f=i===2;if(f&&n(o,t,r),(!f||ky(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,r,2);f&&n(s,t,r)}function Gse(e,t,r,n,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=WD(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(ky(t.props))t.anchor=u(o(e),t,s(e),r,n,a,i),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,c,r,n,a,i)}F9(t)}return t.anchor&&o(t.anchor)}const W_=Hse;function F9(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r&&r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const Be=Symbol.for("v-fgt"),Og=Symbol.for("v-txt"),Ei=Symbol.for("v-cmt"),Fw=Symbol.for("v-stc"),Ny=[];let Os=null;function N(e=!1){Ny.push(Os=e?null:[])}function Use(){Ny.pop(),Os=Ny[Ny.length-1]||null}let S0=1;function q4(e){S0+=e}function V9(e){return e.dynamicChildren=S0>0?Os||wp:null,Use(),S0>0&&Os&&Os.push(e),e}function U(e,t,r,n,a,i){return V9(V(e,t,r,n,a,i,!0))}function he(e,t,r,n,a){return V9(J(e,t,r,n,a,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function Hd(e,t){return e.type===t.type&&e.key===t.key}const j2="__vInternal",z9=({key:e})=>e??null,Vw=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||Qr(e)||dt(e)?{i:Xa,r:e,k:t,f:!!r}:e:null);function V(e,t=null,r=null,n=0,a=null,i=e===Be?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&z9(t),ref:t&&Vw(t),scopeId:U2,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Xa};return s?(NR(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=wt(r)?8:16),S0>0&&!o&&Os&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Os.push(l),l}const J=$se;function $se(e,t=null,r=null,n=0,a=null,i=!1){if((!e||e===w9)&&(e=Ei),hn(e)){const s=Fu(e,t,!0);return r&&NR(s,r),S0>0&&!i&&Os&&(s.shapeFlag&6?Os[Os.indexOf(e)]=s:Os.push(s)),s.patchFlag|=-2,s}if(Qse(e)&&(e=e.__vccOpts),t){t=K2(t);let{class:s,style:l}=t;s&&!wt(s)&&(t.class=H(s)),Vt(l)&&(c9(l)&&!We(l)&&(l=ma({},l)),t.style=Xe(l))}const o=wt(e)?1:fse(e)?128:zse(e)?64:Vt(e)?4:dt(e)?2:0;return V(e,t,r,n,a,o,i,!0)}function K2(e){return e?c9(e)||j2 in e?ma({},e):e:null}function Fu(e,t,r=!1){const{props:n,ref:a,patchFlag:i,children:o}=e,s=t?Ut(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&z9(s),ref:t&&t.ref?r&&a?We(a)?a.concat(Vw(t)):[a,Vw(t)]:Vw(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fu(e.ssContent),ssFallback:e.ssFallback&&Fu(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function nr(e=" ",t=0){return J(Og,null,e,t)}function H9(e,t){const r=J(Fw,null,e);return r.staticCount=t,r}function ce(e="",t=!1){return t?(N(),he(Ei,null,e)):J(Ei,null,e)}function bl(e){return e==null||typeof e=="boolean"?J(Ei):We(e)?J(Be,null,e.slice()):typeof e=="object"?Bc(e):J(Og,null,String(e))}function Bc(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fu(e)}function NR(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(We(t))r=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),NR(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(j2 in t)?t._ctx=Xa:a===3&&Xa&&(Xa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else dt(t)?(t={default:t,_ctx:Xa},r=32):(t=String(t),n&64?(r=16,t=[nr(t)]):r=8);e.children=t,e.shapeFlag|=r}function Ut(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const a in n)if(a==="class")t.class!==n.class&&(t.class=H([t.class,n.class]));else if(a==="style")t.style=Xe([t.style,n.style]);else if(B2(a)){const i=t[a],o=n[a];o&&i!==o&&!(We(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=n[a])}return t}function ul(e,t,r,n=null){es(e,t,7,[r,n])}const Wse=I9();let Yse=0;function jse(e,t,r){const n=e.type,a=(t?t.appContext:e.appContext)||Wse,i={uid:Yse++,vnode:e,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new qW(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:O9(n,a),emitsOptions:b9(n,a),emit:null,emitted:null,propsDefaults:In,inheritAttrs:n.inheritAttrs,ctx:In,data:In,props:In,attrs:In,slots:In,refs:In,setupState:In,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ise.bind(null,i),e.ce&&e.ce(i),i}let Ha=null;const It=()=>Ha||Xa;let BR,mv,Q4="__VUE_INSTANCE_SETTERS__";(mv=kD()[Q4])||(mv=kD()[Q4]=[]),mv.push(e=>Ha=e),BR=e=>{mv.length>1?mv.forEach(t=>t(e)):mv[0](e)};const $p=e=>{BR(e),e.scope.on()},mh=()=>{Ha&&Ha.scope.off(),BR(null)};function G9(e){return e.vnode.shapeFlag&4}let x0=!1;function Kse(e,t=!1){x0=t;const{props:r,children:n}=e.vnode,a=G9(e);Lse(e,r,a,t),Ose(e,n);const i=a?Xse(e,t):void 0;return x0=!1,i}function Xse(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=gh(new Proxy(e.ctx,xse));const{setup:n}=r;if(n){const a=e.setupContext=n.length>1?$9(e):null;$p(e),Lg();const i=nf(n,e,0,[e.props,a]);if(Ig(),mh(),p0(i)){if(i.then(mh,mh),t)return i.then(o=>{J4(e,o,t)}).catch(o=>{H2(o,e,0)});e.asyncDep=i}else J4(e,i,t)}else U9(e,t)}function J4(e,t,r){dt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vt(t)&&(e.setupState=h9(t)),U9(e,r)}let eB;function U9(e,t,r){const n=e.type;if(!e.render){if(!t&&eB&&!n.render){const a=n.template||RR(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=ma(ma({isCustomElement:i,delimiters:s},o),l);n.render=eB(a,u)}}e.render=n.render||zr}{$p(e),Lg();try{Ase(e)}finally{Ig(),mh()}}}function Zse(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return oo(e,"get","$attrs"),t[r]}}))}function $9(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Zse(e)},slots:e.slots,emit:e.emit,expose:t}}function X2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(h9(gh(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Oy)return Oy[r](e)},has(t,r){return r in t||r in Oy}}))}function qse(e,t=!0){return dt(e)?e.displayName||e.name:e.name||t&&e.__name}function Qse(e){return dt(e)&&"__vccOpts"in e}const F=(e,t)=>p9(e,t,x0);function et(e,t,r){const n=arguments.length;return n===2?Vt(t)&&!We(t)?hn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&hn(r)&&(r=[r]),J(e,t,r))}const Jse=Symbol.for("v-scx"),ele=()=>Ye(Jse),tle="3.3.11",rle="http://www.w3.org/2000/svg",Gd=typeof document<"u"?document:null,tB=Gd&&Gd.createElement("template"),nle={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const a=t?Gd.createElementNS(rle,e):Gd.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:e=>Gd.createTextNode(e),createComment:e=>Gd.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gd.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,a,i){const o=r?r.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===i||!(a=a.nextSibling)););else{tB.innerHTML=n?`<svg>${e}</svg>`:e;const s=tB.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},hc="transition",mm="animation",Wp=Symbol("_vtc"),Yn=(e,{slots:t})=>et(pse,Y9(e),t);Yn.displayName="Transition";const W9={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},ale=Yn.props=ma({},A9,W9),qf=(e,t=[])=>{We(e)?e.forEach(r=>r(...t)):e&&e(...t)},rB=e=>e?We(e)?e.some(t=>t.length>1):e.length>1:!1;function Y9(e){const t={};for(const D in e)D in W9||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:a,enterFromClass:i=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=ile(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:w,onLeaveCancelled:x,onBeforeAppear:S=m,onAppear:T=y,onAppearCancelled:A=_}=t,C=(D,P,L)=>{Pc(D,P?c:s),Pc(D,P?u:o),L&&L()},M=(D,P)=>{D._isLeaving=!1,Pc(D,f),Pc(D,h),Pc(D,d),P&&P()},E=D=>(P,L)=>{const I=D?T:y,O=()=>C(P,D,L);qf(I,[P,O]),nB(()=>{Pc(P,D?l:i),du(P,D?c:s),rB(I)||aB(P,n,p,O)})};return ma(t,{onBeforeEnter(D){qf(m,[D]),du(D,i),du(D,o)},onBeforeAppear(D){qf(S,[D]),du(D,l),du(D,u)},onEnter:E(!1),onAppear:E(!0),onLeave(D,P){D._isLeaving=!0;const L=()=>M(D,P);du(D,f),K9(),du(D,d),nB(()=>{D._isLeaving&&(Pc(D,f),du(D,h),rB(w)||aB(D,n,g,L))}),qf(w,[D,L])},onEnterCancelled(D){C(D,!1),qf(_,[D])},onAppearCancelled(D){C(D,!0),qf(A,[D])},onLeaveCancelled(D){M(D),qf(x,[D])}})}function ile(e){if(e==null)return null;if(Vt(e))return[QT(e.enter),QT(e.leave)];{const t=QT(e);return[t,t]}}function QT(e){return moe(e)}function du(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Wp]||(e[Wp]=new Set)).add(t)}function Pc(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Wp];r&&(r.delete(t),r.size||(e[Wp]=void 0))}function nB(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ole=0;function aB(e,t,r,n){const a=e._endId=++ole,i=()=>{a===e._endId&&n()};if(r)return setTimeout(i,r);const{type:o,timeout:s,propCount:l}=j9(e,t);if(!o)return n();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function j9(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),a=n(`${hc}Delay`),i=n(`${hc}Duration`),o=iB(a,i),s=n(`${mm}Delay`),l=n(`${mm}Duration`),u=iB(s,l);let c=null,f=0,d=0;t===hc?o>0&&(c=hc,f=o,d=i.length):t===mm?u>0&&(c=mm,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?hc:mm:null,d=c?c===hc?i.length:l.length:0);const h=c===hc&&/\b(transform|all)(,|$)/.test(n(`${hc}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function iB(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>oB(r)+oB(e[n])))}function oB(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function K9(){return document.body.offsetHeight}function sle(e,t,r){const n=e[Wp];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const FR=Symbol("_vod"),hr={beforeMount(e,{value:t},{transition:r}){e[FR]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):ym(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),ym(e,!0),n.enter(e)):n.leave(e,()=>{ym(e,!1)}):ym(e,t))},beforeUnmount(e,{value:t}){ym(e,t)}};function ym(e,t){e.style.display=t?e[FR]:"none"}function lle(e,t,r){const n=e.style,a=wt(r);if(r&&!a){if(t&&!wt(t))for(const i in t)r[i]==null&&YD(n,i,"");for(const i in r)YD(n,i,r[i])}else{const i=n.display;a?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),FR in e&&(n.display=i)}}const sB=/\s*!important$/;function YD(e,t,r){if(We(r))r.forEach(n=>YD(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=ule(e,t);sB.test(r)?e.setProperty(If(n),r.replace(sB,""),"important"):e[n]=r}}const lB=["Webkit","Moz","ms"],JT={};function ule(e,t){const r=JT[t];if(r)return r;let n=os(t);if(n!=="filter"&&n in e)return JT[t]=n;n=$_(n);for(let a=0;a<lB.length;a++){const i=lB[a]+n;if(i in e)return JT[t]=i}return t}const uB="http://www.w3.org/1999/xlink";function cle(e,t,r,n,a){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(uB,t.slice(6,t.length)):e.setAttributeNS(uB,t,r);else{const i=xoe(t);r==null||i&&!KW(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function fle(e,t,r,n,a,i,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,a,i),e[t]=r??"";return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){e._value=r;const u=s==="OPTION"?e.getAttribute("value"):e.value,c=r??"";u!==c&&(e.value=c),r==null&&e.removeAttribute(t);return}let l=!1;if(r===""||r==null){const u=typeof e[t];u==="boolean"?r=KW(r):r==null&&u==="string"?(r="",l=!0):u==="number"&&(r=0,l=!0)}try{e[t]=r}catch{}l&&e.removeAttribute(t)}function zc(e,t,r,n){e.addEventListener(t,r,n)}function dle(e,t,r,n){e.removeEventListener(t,r,n)}const cB=Symbol("_vei");function hle(e,t,r,n,a=null){const i=e[cB]||(e[cB]={}),o=i[t];if(n&&o)o.value=n;else{const[s,l]=vle(t);if(n){const u=i[t]=mle(n,a);zc(e,s,u,l)}else o&&(dle(e,s,o,l),i[t]=void 0)}}const fB=/(?:Once|Passive|Capture)$/;function vle(e){let t;if(fB.test(e)){t={};let n;for(;n=e.match(fB);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):If(e.slice(2)),t]}let eC=0;const ple=Promise.resolve(),gle=()=>eC||(ple.then(()=>eC=0),eC=Date.now());function mle(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;es(yle(n,r.value),t,5,[n])};return r.value=e,r.attached=gle(),r}function yle(e,t){if(We(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const dB=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_le=(e,t,r,n,a=!1,i,o,s,l)=>{t==="class"?sle(e,n,a):t==="style"?lle(e,r,n):B2(t)?gR(t)||hle(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ble(e,t,n,a))?fle(e,t,n,i,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),cle(e,t,n,a))};function ble(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&dB(t)&&dt(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return dB(t)&&wt(r)?!1:t in e}const X9=new WeakMap,Z9=new WeakMap,ZS=Symbol("_moveCb"),hB=Symbol("_enterCb"),q9={name:"TransitionGroup",props:ma({},ale,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=It(),n=x9();let a,i;return qu(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Tle(a[0].el,r.vnode.el,o))return;a.forEach(Sle),a.forEach(xle);const s=a.filter(Ale);K9(),s.forEach(l=>{const u=l.el,c=u.style;du(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[ZS]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[ZS]=null,Pc(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=Er(e),s=Y9(o);let l=o.tag||Be;a=i,i=t.default?IR(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&w0(c,b0(c,s,n,r))}if(a)for(let u=0;u<a.length;u++){const c=a[u];w0(c,b0(c,s,n,r)),X9.set(c,c.el.getBoundingClientRect())}return J(l,null,i)}}},wle=e=>delete e.mode;q9.props;const Q9=q9;function Sle(e){const t=e.el;t[ZS]&&t[ZS](),t[hB]&&t[hB]()}function xle(e){Z9.set(e,e.el.getBoundingClientRect())}function Ale(e){const t=X9.get(e),r=Z9.get(e),n=t.left-r.left,a=t.top-r.top;if(n||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${a}px)`,i.transitionDuration="0s",e}}function Tle(e,t,r){const n=e.cloneNode(),a=e[Wp];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:o}=j9(n);return i.removeChild(n),o}const Yp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return We(t)?r=>Bw(t,r):t};function Cle(e){e.target.composing=!0}function vB(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Lu=Symbol("_assign"),VR={created(e,{modifiers:{lazy:t,trim:r,number:n}},a){e[Lu]=Yp(a);const i=n||a.props&&a.props.type==="number";zc(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),i&&(s=OD(s)),e[Lu](s)}),r&&zc(e,"change",()=>{e.value=e.value.trim()}),t||(zc(e,"compositionstart",Cle),zc(e,"compositionend",vB),zc(e,"change",vB))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:a}},i){if(e[Lu]=Yp(i),e.composing)return;const o=a||e.type==="number"?OD(e.value):e.value,s=t??"";o!==s&&(document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===s)||(e.value=s))}},qS={deep:!0,created(e,t,r){e[Lu]=Yp(r),zc(e,"change",()=>{const n=e._modelValue,a=e7(e),i=e.checked,o=e[Lu];if(We(n)){const s=XW(n,a),l=s!==-1;if(i&&!l)o(n.concat(a));else if(!i&&l){const u=[...n];u.splice(s,1),o(u)}}else if(F2(n)){const s=new Set(n);i?s.add(a):s.delete(a),o(s)}else o(t7(e,i))})},mounted:pB,beforeUpdate(e,t,r){e[Lu]=Yp(r),pB(e,t,r)}};function pB(e,{value:t,oldValue:r},n){e._modelValue=t,We(t)?e.checked=XW(t,n.props.value)>-1:F2(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Gp(t,t7(e,!0)))}const J9={created(e,{value:t},r){e.checked=Gp(t,r.props.value),e[Lu]=Yp(r),zc(e,"change",()=>{e[Lu](e7(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[Lu]=Yp(n),t!==r&&(e.checked=Gp(t,n.props.value))}};function e7(e){return"_value"in e?e._value:e.value}function t7(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Ele=["ctrl","shift","alt","meta"],Mle={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ele.some(r=>e[`${r}Key`]&&!t.includes(r))},it=(e,t)=>e._withMods||(e._withMods=(r,...n)=>{for(let a=0;a<t.length;a++){const i=Mle[t[a]];if(i&&i(r,t))return}return e(r,...n)}),Dle={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},dr=(e,t)=>e._withKeys||(e._withKeys=r=>{if(!("key"in r))return;const n=If(r.key);if(t.some(a=>a===n||Dle[a]===n))return e(r)}),Ple=ma({patchProp:_le},nle);let gB;function r7(){return gB||(gB=Nse(Ple))}const jp=(...e)=>{r7().render(...e)},n7=(...e)=>{const t=r7().createApp(...e),{mount:r}=t;return t.mount=n=>{const a=Lle(n);if(!a)return;const i=t._component;!dt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function Lle(e){return wt(e)?document.querySelector(e):e}//! moment.js
|
||
//! version : 2.29.4
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
var a7;function vt(){return a7.apply(null,arguments)}function Ile(e){a7=e}function js(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function yh(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function en(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zR(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(en(e,t))return!1;return!0}function Xi(e){return e===void 0}function Vu(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Y_(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function i7(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function Gc(e,t){for(var r in t)en(t,r)&&(e[r]=t[r]);return en(t,"toString")&&(e.toString=t.toString),en(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Zl(e,t,r,n){return D7(e,t,r,n,!0).utc()}function Rle(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Tr(e){return e._pf==null&&(e._pf=Rle()),e._pf}var jD;Array.prototype.some?jD=Array.prototype.some:jD=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function HR(e){if(e._isValid==null){var t=Tr(e),r=jD.call(t.parsedDateParts,function(a){return a!=null}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n}return e._isValid}function Z2(e){var t=Zl(NaN);return e!=null?Gc(Tr(t),e):Tr(t).userInvalidated=!0,t}var mB=vt.momentProperties=[],tC=!1;function GR(e,t){var r,n,a,i=mB.length;if(Xi(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Xi(t._i)||(e._i=t._i),Xi(t._f)||(e._f=t._f),Xi(t._l)||(e._l=t._l),Xi(t._strict)||(e._strict=t._strict),Xi(t._tzm)||(e._tzm=t._tzm),Xi(t._isUTC)||(e._isUTC=t._isUTC),Xi(t._offset)||(e._offset=t._offset),Xi(t._pf)||(e._pf=Tr(t)),Xi(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=mB[r],a=t[n],Xi(a)||(e[n]=a);return e}function j_(e){GR(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),tC===!1&&(tC=!0,vt.updateOffset(this),tC=!1)}function Ks(e){return e instanceof j_||e!=null&&e._isAMomentObject!=null}function o7(e){vt.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function vs(e,t){var r=!0;return Gc(function(){if(vt.deprecationHandler!=null&&vt.deprecationHandler(null,e),r){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=`
|
||
[`+i+"] ";for(o in arguments[0])en(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}o7(e+`
|
||
Arguments: `+Array.prototype.slice.call(n).join("")+`
|
||
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var yB={};function s7(e,t){vt.deprecationHandler!=null&&vt.deprecationHandler(e,t),yB[e]||(o7(t),yB[e]=!0)}vt.suppressDeprecationWarnings=!1;vt.deprecationHandler=null;function ql(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Ole(e){var t,r;for(r in e)en(e,r)&&(t=e[r],ql(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function KD(e,t){var r=Gc({},e),n;for(n in t)en(t,n)&&(yh(e[n])&&yh(t[n])?(r[n]={},Gc(r[n],e[n]),Gc(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)en(e,n)&&!en(t,n)&&yh(e[n])&&(r[n]=Gc({},r[n]));return r}function UR(e){e!=null&&this.set(e)}var XD;Object.keys?XD=Object.keys:XD=function(e){var t,r=[];for(t in e)en(e,t)&&r.push(t);return r};var kle={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Nle(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return ql(n)?n.call(t,r):n}function Fl(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var $R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Q1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rC={},Tp={};function Zt(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(Tp[e]=a),t&&(Tp[t[0]]=function(){return Fl(a.apply(this,arguments),t[1],t[2])}),r&&(Tp[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Ble(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Fle(e){var t=e.match($R),r,n;for(r=0,n=t.length;r<n;r++)Tp[t[r]]?t[r]=Tp[t[r]]:t[r]=Ble(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=ql(t[o])?t[o].call(a,e):t[o];return i}}function zw(e,t){return e.isValid()?(t=l7(t,e.localeData()),rC[t]=rC[t]||Fle(t),rC[t](e)):e.localeData().invalidDate()}function l7(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(Q1.lastIndex=0;r>=0&&Q1.test(e);)e=e.replace(Q1,n),Q1.lastIndex=0,r-=1;return e}var Vle={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"};function zle(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match($R).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Hle="Invalid date";function Gle(){return this._invalidDate}var Ule="%d",$le=/\d{1,2}/;function Wle(e){return this._ordinal.replace("%d",e)}var Yle={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function jle(e,t,r,n){var a=this._relativeTime[r];return ql(a)?a(e,t,r,n):a.replace(/%d/i,e)}function Kle(e,t){var r=this._relativeTime[e>0?"future":"past"];return ql(r)?r(t):r.replace(/%s/i,t)}var By={};function vi(e,t){var r=e.toLowerCase();By[r]=By[r+"s"]=By[t]=e}function ps(e){return typeof e=="string"?By[e]||By[e.toLowerCase()]:void 0}function WR(e){var t={},r,n;for(n in e)en(e,n)&&(r=ps(n),r&&(t[r]=e[n]));return t}var u7={};function pi(e,t){u7[e]=t}function Xle(e){var t=[],r;for(r in e)en(e,r)&&t.push({unit:r,priority:u7[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}function q2(e){return e%4===0&&e%100!==0||e%400===0}function Wo(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Nr(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Wo(t)),r}function kg(e,t){return function(r){return r!=null?(c7(this,e,r),vt.updateOffset(this,t),this):QS(this,e)}}function QS(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function c7(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&q2(e.year())&&e.month()===1&&e.date()===29?(r=Nr(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),nA(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function Zle(e){return e=ps(e),ql(this[e])?this[e]():this}function qle(e,t){if(typeof e=="object"){e=WR(e);var r=Xle(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=ps(e),ql(this[e]))return this[e](t);return this}var f7=/\d/,Eo=/\d\d/,d7=/\d{3}/,YR=/\d{4}/,Q2=/[+-]?\d{6}/,Nn=/\d\d?/,h7=/\d\d\d\d?/,v7=/\d\d\d\d\d\d?/,J2=/\d{1,3}/,jR=/\d{1,4}/,eA=/[+-]?\d{1,6}/,Ng=/\d+/,tA=/[+-]?\d+/,Qle=/Z|[+-]\d\d:?\d\d/gi,rA=/Z|[+-]\d\d(?::?\d\d)?/gi,Jle=/[+-]?\d+(\.\d{1,3})?/,K_=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,JS;JS={};function Lt(e,t,r){JS[e]=ql(t)?t:function(n,a){return n&&r?r:t}}function eue(e,t){return en(JS,e)?JS[e](t._strict,t._locale):new RegExp(tue(e))}function tue(e){return yo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function yo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ZD={};function wn(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),Vu(t)&&(n=function(i,o){o[t]=Nr(i)}),a=e.length,r=0;r<a;r++)ZD[e[r]]=n}function X_(e,t){wn(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function rue(e,t,r){t!=null&&en(ZD,e)&&ZD[e](t,r._a,r,e)}var ui=0,Su=1,Sl=2,xa=3,ks=4,xu=5,Zd=6,nue=7,aue=8;function iue(e,t){return(e%t+t)%t}var ea;Array.prototype.indexOf?ea=Array.prototype.indexOf:ea=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function nA(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=iue(t,12);return e+=(t-r)/12,r===1?q2(e)?29:28:31-r%7%2}Zt("M",["MM",2],"Mo",function(){return this.month()+1});Zt("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Zt("MMMM",0,0,function(e){return this.localeData().months(this,e)});vi("month","M");pi("month",8);Lt("M",Nn);Lt("MM",Nn,Eo);Lt("MMM",function(e,t){return t.monthsShortRegex(e)});Lt("MMMM",function(e,t){return t.monthsRegex(e)});wn(["M","MM"],function(e,t){t[Su]=Nr(e)-1});wn(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Su]=a:Tr(r).invalidMonth=e});var oue="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),p7="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),g7=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sue=K_,lue=K_;function uue(e,t){return e?js(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||g7).test(t)?"format":"standalone"][e.month()]:js(this._months)?this._months:this._months.standalone}function cue(e,t){return e?js(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[g7.test(t)?"format":"standalone"][e.month()]:js(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function fue(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=Zl([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=ea.call(this._shortMonthsParse,o),a!==-1?a:null):(a=ea.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=ea.call(this._shortMonthsParse,o),a!==-1?a:(a=ea.call(this._longMonthsParse,o),a!==-1?a:null)):(a=ea.call(this._longMonthsParse,o),a!==-1?a:(a=ea.call(this._shortMonthsParse,o),a!==-1?a:null))}function due(e,t,r){var n,a,i;if(this._monthsParseExact)return fue.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=Zl([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function m7(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Nr(t);else if(t=e.localeData().monthsParse(t),!Vu(t))return e}return r=Math.min(e.date(),nA(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function y7(e){return e!=null?(m7(this,e),vt.updateOffset(this,!0),this):QS(this,"Month")}function hue(){return nA(this.year(),this.month())}function vue(e){return this._monthsParseExact?(en(this,"_monthsRegex")||_7.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(en(this,"_monthsShortRegex")||(this._monthsShortRegex=sue),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pue(e){return this._monthsParseExact?(en(this,"_monthsRegex")||_7.call(this),e?this._monthsStrictRegex:this._monthsRegex):(en(this,"_monthsRegex")||(this._monthsRegex=lue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _7(){function e(o,s){return s.length-o.length}var t=[],r=[],n=[],a,i;for(a=0;a<12;a++)i=Zl([2e3,a]),t.push(this.monthsShort(i,"")),r.push(this.months(i,"")),n.push(this.months(i,"")),n.push(this.monthsShort(i,""));for(t.sort(e),r.sort(e),n.sort(e),a=0;a<12;a++)t[a]=yo(t[a]),r[a]=yo(r[a]);for(a=0;a<24;a++)n[a]=yo(n[a]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}Zt("Y",0,0,function(){var e=this.year();return e<=9999?Fl(e,4):"+"+e});Zt(0,["YY",2],0,function(){return this.year()%100});Zt(0,["YYYY",4],0,"year");Zt(0,["YYYYY",5],0,"year");Zt(0,["YYYYYY",6,!0],0,"year");vi("year","y");pi("year",1);Lt("Y",tA);Lt("YY",Nn,Eo);Lt("YYYY",jR,YR);Lt("YYYYY",eA,Q2);Lt("YYYYYY",eA,Q2);wn(["YYYYY","YYYYYY"],ui);wn("YYYY",function(e,t){t[ui]=e.length===2?vt.parseTwoDigitYear(e):Nr(e)});wn("YY",function(e,t){t[ui]=vt.parseTwoDigitYear(e)});wn("Y",function(e,t){t[ui]=parseInt(e,10)});function Fy(e){return q2(e)?366:365}vt.parseTwoDigitYear=function(e){return Nr(e)+(Nr(e)>68?1900:2e3)};var b7=kg("FullYear",!0);function gue(){return q2(this.year())}function mue(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function A0(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function ex(e,t,r){var n=7+t-r,a=(7+A0(e,0,n).getUTCDay()-t)%7;return-a+n-1}function w7(e,t,r,n,a){var i=(7+r-n)%7,o=ex(e,n,a),s=1+7*(t-1)+i+o,l,u;return s<=0?(l=e-1,u=Fy(l)+s):s>Fy(e)?(l=e+1,u=s-Fy(e)):(l=e,u=s),{year:l,dayOfYear:u}}function T0(e,t,r){var n=ex(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Iu(o,t,r)):a>Iu(e.year(),t,r)?(i=a-Iu(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Iu(e,t,r){var n=ex(e,t,r),a=ex(e+1,t,r);return(Fy(e)-n+a)/7}Zt("w",["ww",2],"wo","week");Zt("W",["WW",2],"Wo","isoWeek");vi("week","w");vi("isoWeek","W");pi("week",5);pi("isoWeek",5);Lt("w",Nn);Lt("ww",Nn,Eo);Lt("W",Nn);Lt("WW",Nn,Eo);X_(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Nr(e)});function yue(e){return T0(e,this._week.dow,this._week.doy).week}var _ue={dow:0,doy:6};function bue(){return this._week.dow}function wue(){return this._week.doy}function Sue(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function xue(e){var t=T0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Zt("d",0,"do","day");Zt("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Zt("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Zt("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Zt("e",0,0,"weekday");Zt("E",0,0,"isoWeekday");vi("day","d");vi("weekday","e");vi("isoWeekday","E");pi("day",11);pi("weekday",11);pi("isoWeekday",11);Lt("d",Nn);Lt("e",Nn);Lt("E",Nn);Lt("dd",function(e,t){return t.weekdaysMinRegex(e)});Lt("ddd",function(e,t){return t.weekdaysShortRegex(e)});Lt("dddd",function(e,t){return t.weekdaysRegex(e)});X_(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Tr(r).invalidWeekday=e});X_(["d","e","E"],function(e,t,r,n){t[n]=Nr(e)});function Aue(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Tue(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function KR(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Cue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),S7="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Eue="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mue=K_,Due=K_,Pue=K_;function Lue(e,t){var r=js(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?KR(r,this._week.dow):e?r[e.day()]:r}function Iue(e){return e===!0?KR(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Rue(e){return e===!0?KR(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Oue(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=Zl([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=ea.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=ea.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=ea.call(this._weekdaysParse,o),a!==-1||(a=ea.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=ea.call(this._shortWeekdaysParse,o),a!==-1||(a=ea.call(this._weekdaysParse,o),a!==-1)?a:(a=ea.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=ea.call(this._minWeekdaysParse,o),a!==-1||(a=ea.call(this._weekdaysParse,o),a!==-1)?a:(a=ea.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function kue(e,t,r){var n,a,i;if(this._weekdaysParseExact)return Oue.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=Zl([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Nue(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Aue(e,this.localeData()),this.add(e-t,"d")):t}function Bue(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Fue(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Tue(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Vue(e){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||XR.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(en(this,"_weekdaysRegex")||(this._weekdaysRegex=Mue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zue(e){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||XR.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(en(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Due),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Hue(e){return this._weekdaysParseExact?(en(this,"_weekdaysRegex")||XR.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(en(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function XR(){function e(c,f){return f.length-c.length}var t=[],r=[],n=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=Zl([2e3,1]).day(i),s=yo(this.weekdaysMin(o,"")),l=yo(this.weekdaysShort(o,"")),u=yo(this.weekdays(o,"")),t.push(s),r.push(l),n.push(u),a.push(s),a.push(l),a.push(u);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ZR(){return this.hours()%12||12}function Gue(){return this.hours()||24}Zt("H",["HH",2],0,"hour");Zt("h",["hh",2],0,ZR);Zt("k",["kk",2],0,Gue);Zt("hmm",0,0,function(){return""+ZR.apply(this)+Fl(this.minutes(),2)});Zt("hmmss",0,0,function(){return""+ZR.apply(this)+Fl(this.minutes(),2)+Fl(this.seconds(),2)});Zt("Hmm",0,0,function(){return""+this.hours()+Fl(this.minutes(),2)});Zt("Hmmss",0,0,function(){return""+this.hours()+Fl(this.minutes(),2)+Fl(this.seconds(),2)});function x7(e,t){Zt(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}x7("a",!0);x7("A",!1);vi("hour","h");pi("hour",13);function A7(e,t){return t._meridiemParse}Lt("a",A7);Lt("A",A7);Lt("H",Nn);Lt("h",Nn);Lt("k",Nn);Lt("HH",Nn,Eo);Lt("hh",Nn,Eo);Lt("kk",Nn,Eo);Lt("hmm",h7);Lt("hmmss",v7);Lt("Hmm",h7);Lt("Hmmss",v7);wn(["H","HH"],xa);wn(["k","kk"],function(e,t,r){var n=Nr(e);t[xa]=n===24?0:n});wn(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});wn(["h","hh"],function(e,t,r){t[xa]=Nr(e),Tr(r).bigHour=!0});wn("hmm",function(e,t,r){var n=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n)),Tr(r).bigHour=!0});wn("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n,2)),t[xu]=Nr(e.substr(a)),Tr(r).bigHour=!0});wn("Hmm",function(e,t,r){var n=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n))});wn("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[xa]=Nr(e.substr(0,n)),t[ks]=Nr(e.substr(n,2)),t[xu]=Nr(e.substr(a))});function Uue(e){return(e+"").toLowerCase().charAt(0)==="p"}var $ue=/[ap]\.?m?\.?/i,Wue=kg("Hours",!0);function Yue(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var T7={calendar:kle,longDateFormat:Vle,invalidDate:Hle,ordinal:Ule,dayOfMonthOrdinalParse:$le,relativeTime:Yle,months:oue,monthsShort:p7,week:_ue,weekdays:Cue,weekdaysMin:Eue,weekdaysShort:S7,meridiemParse:$ue},Vn={},_m={},C0;function jue(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function _B(e){return e&&e.toLowerCase().replace("_","-")}function Kue(e){for(var t=0,r,n,a,i;t<e.length;){for(i=_B(e[t]).split("-"),r=i.length,n=_B(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=aA(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&jue(i,n)>=r-1)break;r--}t++}return C0}function Xue(e){return e.match("^[^/\\\\]*$")!=null}function aA(e){var t=null,r;if(Vn[e]===void 0&&typeof module<"u"&&module&&module.exports&&Xue(e))try{t=C0._abbr,r=require,r("./locale/"+e),af(t)}catch{Vn[e]=null}return Vn[e]}function af(e,t){var r;return e&&(Xi(t)?r=Qu(e):r=qR(e,t),r?C0=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),C0._abbr}function qR(e,t){if(t!==null){var r,n=T7;if(t.abbr=e,Vn[e]!=null)s7("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Vn[e]._config;else if(t.parentLocale!=null)if(Vn[t.parentLocale]!=null)n=Vn[t.parentLocale]._config;else if(r=aA(t.parentLocale),r!=null)n=r._config;else return _m[t.parentLocale]||(_m[t.parentLocale]=[]),_m[t.parentLocale].push({name:e,config:t}),null;return Vn[e]=new UR(KD(n,t)),_m[e]&&_m[e].forEach(function(a){qR(a.name,a.config)}),af(e),Vn[e]}else return delete Vn[e],null}function Zue(e,t){if(t!=null){var r,n,a=T7;Vn[e]!=null&&Vn[e].parentLocale!=null?Vn[e].set(KD(Vn[e]._config,t)):(n=aA(e),n!=null&&(a=n._config),t=KD(a,t),n==null&&(t.abbr=e),r=new UR(t),r.parentLocale=Vn[e],Vn[e]=r),af(e)}else Vn[e]!=null&&(Vn[e].parentLocale!=null?(Vn[e]=Vn[e].parentLocale,e===af()&&af(e)):Vn[e]!=null&&delete Vn[e]);return Vn[e]}function Qu(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return C0;if(!js(e)){if(t=aA(e),t)return t;e=[e]}return Kue(e)}function que(){return XD(Vn)}function QR(e){var t,r=e._a;return r&&Tr(e).overflow===-2&&(t=r[Su]<0||r[Su]>11?Su:r[Sl]<1||r[Sl]>nA(r[ui],r[Su])?Sl:r[xa]<0||r[xa]>24||r[xa]===24&&(r[ks]!==0||r[xu]!==0||r[Zd]!==0)?xa:r[ks]<0||r[ks]>59?ks:r[xu]<0||r[xu]>59?xu:r[Zd]<0||r[Zd]>999?Zd:-1,Tr(e)._overflowDayOfYear&&(t<ui||t>Sl)&&(t=Sl),Tr(e)._overflowWeeks&&t===-1&&(t=nue),Tr(e)._overflowWeekday&&t===-1&&(t=aue),Tr(e).overflow=t),e}var Que=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jue=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ece=/Z|[+-]\d\d(?::?\d\d)?/,J1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],nC=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tce=/^\/?Date\((-?\d+)/i,rce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,nce={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function C7(e){var t,r,n=e._i,a=Que.exec(n)||Jue.exec(n),i,o,s,l,u=J1.length,c=nC.length;if(a){for(Tr(e).iso=!0,t=0,r=u;t<r;t++)if(J1[t][1].exec(a[1])){o=J1[t][0],i=J1[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=c;t<r;t++)if(nC[t][1].exec(a[3])){s=(a[2]||" ")+nC[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(ece.exec(a[4]))l="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(l||""),eO(e)}else e._isValid=!1}function ace(e,t,r,n,a,i){var o=[ice(e),p7.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function ice(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function oce(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sce(e,t,r){if(e){var n=S7.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Tr(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function lce(e,t,r){if(e)return nce[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function E7(e){var t=rce.exec(oce(e._i)),r;if(t){if(r=ace(t[4],t[3],t[2],t[5],t[6],t[7]),!sce(t[1],r,e))return;e._a=r,e._tzm=lce(t[8],t[9],t[10]),e._d=A0.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Tr(e).rfc2822=!0}else e._isValid=!1}function uce(e){var t=tce.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(C7(e),e._isValid===!1)delete e._isValid;else return;if(E7(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:vt.createFromInputFallback(e)}vt.createFromInputFallback=vs("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Jv(e,t,r){return e??t??r}function cce(e){var t=new Date(vt.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function JR(e){var t,r,n=[],a,i,o;if(!e._d){for(a=cce(e),e._w&&e._a[Sl]==null&&e._a[Su]==null&&fce(e),e._dayOfYear!=null&&(o=Jv(e._a[ui],a[ui]),(e._dayOfYear>Fy(o)||e._dayOfYear===0)&&(Tr(e)._overflowDayOfYear=!0),r=A0(o,0,e._dayOfYear),e._a[Su]=r.getUTCMonth(),e._a[Sl]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[xa]===24&&e._a[ks]===0&&e._a[xu]===0&&e._a[Zd]===0&&(e._nextDay=!0,e._a[xa]=0),e._d=(e._useUTC?A0:mue).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xa]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Tr(e).weekdayMismatch=!0)}}function fce(e){var t,r,n,a,i,o,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=Jv(t.GG,e._a[ui],T0(On(),1,4).year),n=Jv(t.W,1),a=Jv(t.E,1),(a<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=T0(On(),i,o),r=Jv(t.gg,e._a[ui],u.year),n=Jv(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(l=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),n<1||n>Iu(r,i,o)?Tr(e)._overflowWeeks=!0:l!=null?Tr(e)._overflowWeekday=!0:(s=w7(r,n,a,i,o),e._a[ui]=s.year,e._dayOfYear=s.dayOfYear)}vt.ISO_8601=function(){};vt.RFC_2822=function(){};function eO(e){if(e._f===vt.ISO_8601){C7(e);return}if(e._f===vt.RFC_2822){E7(e);return}e._a=[],Tr(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,l=0,u,c;for(a=l7(e._f,e._locale).match($R)||[],c=a.length,r=0;r<c;r++)i=a[r],n=(t.match(eue(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&Tr(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Tp[i]?(n?Tr(e).empty=!1:Tr(e).unusedTokens.push(i),rue(i,n,e)):e._strict&&!n&&Tr(e).unusedTokens.push(i);Tr(e).charsLeftOver=s-l,t.length>0&&Tr(e).unusedInput.push(t),e._a[xa]<=12&&Tr(e).bigHour===!0&&e._a[xa]>0&&(Tr(e).bigHour=void 0),Tr(e).parsedDateParts=e._a.slice(0),Tr(e).meridiem=e._meridiem,e._a[xa]=dce(e._locale,e._a[xa],e._meridiem),u=Tr(e).era,u!==null&&(e._a[ui]=e._locale.erasConvertYear(u,e._a[ui])),JR(e),QR(e)}function dce(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function hce(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(l===0){Tr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,t=GR({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],eO(t),HR(t)&&(o=!0),i+=Tr(t).charsLeftOver,i+=Tr(t).unusedTokens.length*10,Tr(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));Gc(e,r||t)}function vce(e){if(!e._d){var t=WR(e._i),r=t.day===void 0?t.date:t.day;e._a=i7([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),JR(e)}}function pce(e){var t=new j_(QR(M7(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function M7(e){var t=e._i,r=e._f;return e._locale=e._locale||Qu(e._l),t===null||r===void 0&&t===""?Z2({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ks(t)?new j_(QR(t)):(Y_(t)?e._d=t:js(r)?hce(e):r?eO(e):gce(e),HR(e)||(e._d=null),e))}function gce(e){var t=e._i;Xi(t)?e._d=new Date(vt.now()):Y_(t)?e._d=new Date(t.valueOf()):typeof t=="string"?uce(e):js(t)?(e._a=i7(t.slice(0),function(r){return parseInt(r,10)}),JR(e)):yh(t)?vce(e):Vu(t)?e._d=new Date(t):vt.createFromInputFallback(e)}function D7(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(yh(e)&&zR(e)||js(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,pce(i)}function On(e,t,r,n){return D7(e,t,r,n,!1)}var mce=vs("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=On.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Z2()}),yce=vs("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=On.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Z2()});function P7(e,t){var r,n;if(t.length===1&&js(t[0])&&(t=t[0]),!t.length)return On();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function _ce(){var e=[].slice.call(arguments,0);return P7("isBefore",e)}function bce(){var e=[].slice.call(arguments,0);return P7("isAfter",e)}var wce=function(){return Date.now?Date.now():+new Date},bm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Sce(e){var t,r=!1,n,a=bm.length;for(t in e)if(en(e,t)&&!(ea.call(bm,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[bm[n]]){if(r)return!1;parseFloat(e[bm[n]])!==Nr(e[bm[n]])&&(r=!0)}return!0}function xce(){return this._isValid}function Ace(){return nl(NaN)}function iA(e){var t=WR(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=Sce(t),this._milliseconds=+c+u*1e3+l*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=Qu(),this._bubble()}function Hw(e){return e instanceof iA}function qD(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Tce(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)(r&&e[o]!==t[o]||!r&&Nr(e[o])!==Nr(t[o]))&&i++;return i+a}function L7(e,t){Zt(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+Fl(~~(r/60),2)+t+Fl(~~r%60,2)})}L7("Z",":");L7("ZZ","");Lt("Z",rA);Lt("ZZ",rA);wn(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tO(rA,e)});var Cce=/([\+\-]|\d\d)/gi;function tO(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(Cce)||["-",0,0],i=+(a[1]*60)+Nr(a[2]),i===0?0:a[0]==="+"?i:-i)}function rO(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Ks(e)||Y_(e)?e.valueOf():On(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),vt.updateOffset(r,!1),r):On(e).local()}function QD(e){return-Math.round(e._d.getTimezoneOffset())}vt.updateOffset=function(){};function Ece(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=tO(rA,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=QD(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?O7(this,nl(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,vt.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:QD(this)}function Mce(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Dce(e){return this.utcOffset(0,e)}function Pce(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(QD(this),"m")),this}function Lce(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=tO(Qle,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ice(e){return this.isValid()?(e=e?On(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Rce(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Oce(){if(!Xi(this._isDSTShifted))return this._isDSTShifted;var e={},t;return GR(e,this),e=M7(e),e._a?(t=e._isUTC?Zl(e._a):On(e._a),this._isDSTShifted=this.isValid()&&Tce(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kce(){return this.isValid()?!this._isUTC:!1}function Nce(){return this.isValid()?this._isUTC:!1}function I7(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bce=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fce=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function nl(e,t){var r=e,n=null,a,i,o;return Hw(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Vu(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=Bce.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:Nr(n[Sl])*a,h:Nr(n[xa])*a,m:Nr(n[ks])*a,s:Nr(n[xu])*a,ms:Nr(qD(n[Zd]*1e3))*a}):(n=Fce.exec(e))?(a=n[1]==="-"?-1:1,r={y:Qf(n[2],a),M:Qf(n[3],a),w:Qf(n[4],a),d:Qf(n[5],a),h:Qf(n[6],a),m:Qf(n[7],a),s:Qf(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=Vce(On(r.from),On(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new iA(r),Hw(e)&&en(e,"_locale")&&(i._locale=e._locale),Hw(e)&&en(e,"_isValid")&&(i._isValid=e._isValid),i}nl.fn=iA.prototype;nl.invalid=Ace;function Qf(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function bB(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Vce(e,t){var r;return e.isValid()&&t.isValid()?(t=rO(t,e),e.isBefore(t)?r=bB(e,t):(r=bB(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function R7(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(s7(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=nl(r,n),O7(this,a,e),this}}function O7(e,t,r,n){var a=t._milliseconds,i=qD(t._days),o=qD(t._months);e.isValid()&&(n=n??!0,o&&m7(e,QS(e,"Month")+o*r),i&&c7(e,"Date",QS(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&vt.updateOffset(e,i||o))}var zce=R7(1,"add"),Hce=R7(-1,"subtract");function k7(e){return typeof e=="string"||e instanceof String}function Gce(e){return Ks(e)||Y_(e)||k7(e)||Vu(e)||$ce(e)||Uce(e)||e===null||e===void 0}function Uce(e){var t=yh(e)&&!zR(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||en(e,i);return t&&r}function $ce(e){var t=js(e),r=!1;return t&&(r=e.filter(function(n){return!Vu(n)&&k7(e)}).length===0),t&&r}function Wce(e){var t=yh(e)&&!zR(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||en(e,i);return t&&r}function Yce(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function jce(e,t){arguments.length===1&&(arguments[0]?Gce(arguments[0])?(e=arguments[0],t=void 0):Wce(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||On(),n=rO(r,this).startOf("day"),a=vt.calendarFormat(this,n)||"sameElse",i=t&&(ql(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,On(r)))}function Kce(){return new j_(this)}function Xce(e,t){var r=Ks(e)?e:On(e);return this.isValid()&&r.isValid()?(t=ps(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Zce(e,t){var r=Ks(e)?e:On(e);return this.isValid()&&r.isValid()?(t=ps(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function qce(e,t,r,n){var a=Ks(e)?e:On(e),i=Ks(t)?t:On(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function Qce(e,t){var r=Ks(e)?e:On(e),n;return this.isValid()&&r.isValid()?(t=ps(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Jce(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function efe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function tfe(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=rO(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=ps(t),t){case"year":i=Gw(this,n)/12;break;case"month":i=Gw(this,n);break;case"quarter":i=Gw(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:Wo(i)}function Gw(e,t){if(e.date()<t.date())return-Gw(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}vt.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";vt.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function rfe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function nfe(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?zw(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ql(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",zw(r,"Z")):zw(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function afe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function ife(e){e||(e=this.isUtc()?vt.defaultFormatUtc:vt.defaultFormat);var t=zw(this,e);return this.localeData().postformat(t)}function ofe(e,t){return this.isValid()&&(Ks(e)&&e.isValid()||On(e).isValid())?nl({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sfe(e){return this.from(On(),e)}function lfe(e,t){return this.isValid()&&(Ks(e)&&e.isValid()||On(e).isValid())?nl({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ufe(e){return this.to(On(),e)}function N7(e){var t;return e===void 0?this._locale._abbr:(t=Qu(e),t!=null&&(this._locale=t),this)}var B7=vs("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function F7(){return this._locale}var tx=1e3,Cp=60*tx,rx=60*Cp,V7=(365*400+97)*24*rx;function Ep(e,t){return(e%t+t)%t}function z7(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-V7:new Date(e,t,r).valueOf()}function H7(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-V7:Date.UTC(e,t,r)}function cfe(e){var t,r;if(e=ps(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?H7:z7,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ep(t+(this._isUTC?0:this.utcOffset()*Cp),rx);break;case"minute":t=this._d.valueOf(),t-=Ep(t,Cp);break;case"second":t=this._d.valueOf(),t-=Ep(t,tx);break}return this._d.setTime(t),vt.updateOffset(this,!0),this}function ffe(e){var t,r;if(e=ps(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?H7:z7,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rx-Ep(t+(this._isUTC?0:this.utcOffset()*Cp),rx)-1;break;case"minute":t=this._d.valueOf(),t+=Cp-Ep(t,Cp)-1;break;case"second":t=this._d.valueOf(),t+=tx-Ep(t,tx)-1;break}return this._d.setTime(t),vt.updateOffset(this,!0),this}function dfe(){return this._d.valueOf()-(this._offset||0)*6e4}function hfe(){return Math.floor(this.valueOf()/1e3)}function vfe(){return new Date(this.valueOf())}function pfe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function gfe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function mfe(){return this.isValid()?this.toISOString():null}function yfe(){return HR(this)}function _fe(){return Gc({},Tr(this))}function bfe(){return Tr(this).overflow}function wfe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Zt("N",0,0,"eraAbbr");Zt("NN",0,0,"eraAbbr");Zt("NNN",0,0,"eraAbbr");Zt("NNNN",0,0,"eraName");Zt("NNNNN",0,0,"eraNarrow");Zt("y",["y",1],"yo","eraYear");Zt("y",["yy",2],0,"eraYear");Zt("y",["yyy",3],0,"eraYear");Zt("y",["yyyy",4],0,"eraYear");Lt("N",nO);Lt("NN",nO);Lt("NNN",nO);Lt("NNNN",Ife);Lt("NNNNN",Rfe);wn(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Tr(r).era=a:Tr(r).invalidEra=e});Lt("y",Ng);Lt("yy",Ng);Lt("yyy",Ng);Lt("yyyy",Ng);Lt("yo",Ofe);wn(["y","yy","yyy","yyyy"],ui);wn(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ui]=r._locale.eraYearOrdinalParse(e,a):t[ui]=parseInt(e,10)});function Sfe(e,t){var r,n,a,i=this._eras||Qu("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=vt(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=vt(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function xfe(e,t,r){var n,a,i=this.eras(),o,s,l;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([o,s,l].indexOf(e)>=0)return i[n]}function Afe(e,t){var r=e.since<=e.until?1:-1;return t===void 0?vt(e.since).year():vt(e.since).year()+(t-e.offset)*r}function Tfe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function Cfe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function Efe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function Mfe(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-vt(a[e].since).year())*r+a[e].offset;return this.year()}function Dfe(e){return en(this,"_erasNameRegex")||aO.call(this),e?this._erasNameRegex:this._erasRegex}function Pfe(e){return en(this,"_erasAbbrRegex")||aO.call(this),e?this._erasAbbrRegex:this._erasRegex}function Lfe(e){return en(this,"_erasNarrowRegex")||aO.call(this),e?this._erasNarrowRegex:this._erasRegex}function nO(e,t){return t.erasAbbrRegex(e)}function Ife(e,t){return t.erasNameRegex(e)}function Rfe(e,t){return t.erasNarrowRegex(e)}function Ofe(e,t){return t._eraYearOrdinalRegex||Ng}function aO(){var e=[],t=[],r=[],n=[],a,i,o=this.eras();for(a=0,i=o.length;a<i;++a)t.push(yo(o[a].name)),e.push(yo(o[a].abbr)),r.push(yo(o[a].narrow)),n.push(yo(o[a].name)),n.push(yo(o[a].abbr)),n.push(yo(o[a].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Zt(0,["gg",2],0,function(){return this.weekYear()%100});Zt(0,["GG",2],0,function(){return this.isoWeekYear()%100});function oA(e,t){Zt(0,[e,e.length],0,t)}oA("gggg","weekYear");oA("ggggg","weekYear");oA("GGGG","isoWeekYear");oA("GGGGG","isoWeekYear");vi("weekYear","gg");vi("isoWeekYear","GG");pi("weekYear",1);pi("isoWeekYear",1);Lt("G",tA);Lt("g",tA);Lt("GG",Nn,Eo);Lt("gg",Nn,Eo);Lt("GGGG",jR,YR);Lt("gggg",jR,YR);Lt("GGGGG",eA,Q2);Lt("ggggg",eA,Q2);X_(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=Nr(e)});X_(["gg","GG"],function(e,t,r,n){t[n]=vt.parseTwoDigitYear(e)});function kfe(e){return G7.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Nfe(e){return G7.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Bfe(){return Iu(this.year(),1,4)}function Ffe(){return Iu(this.isoWeekYear(),1,4)}function Vfe(){var e=this.localeData()._week;return Iu(this.year(),e.dow,e.doy)}function zfe(){var e=this.localeData()._week;return Iu(this.weekYear(),e.dow,e.doy)}function G7(e,t,r,n,a){var i;return e==null?T0(this,n,a).year:(i=Iu(e,n,a),t>i&&(t=i),Hfe.call(this,e,t,r,n,a))}function Hfe(e,t,r,n,a){var i=w7(e,t,r,n,a),o=A0(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Zt("Q",0,"Qo","quarter");vi("quarter","Q");pi("quarter",7);Lt("Q",f7);wn("Q",function(e,t){t[Su]=(Nr(e)-1)*3});function Gfe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Zt("D",["DD",2],"Do","date");vi("date","D");pi("date",9);Lt("D",Nn);Lt("DD",Nn,Eo);Lt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});wn(["D","DD"],Sl);wn("Do",function(e,t){t[Sl]=Nr(e.match(Nn)[0])});var U7=kg("Date",!0);Zt("DDD",["DDDD",3],"DDDo","dayOfYear");vi("dayOfYear","DDD");pi("dayOfYear",4);Lt("DDD",J2);Lt("DDDD",d7);wn(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Nr(e)});function Ufe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Zt("m",["mm",2],0,"minute");vi("minute","m");pi("minute",14);Lt("m",Nn);Lt("mm",Nn,Eo);wn(["m","mm"],ks);var $fe=kg("Minutes",!1);Zt("s",["ss",2],0,"second");vi("second","s");pi("second",15);Lt("s",Nn);Lt("ss",Nn,Eo);wn(["s","ss"],xu);var Wfe=kg("Seconds",!1);Zt("S",0,0,function(){return~~(this.millisecond()/100)});Zt(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Zt(0,["SSS",3],0,"millisecond");Zt(0,["SSSS",4],0,function(){return this.millisecond()*10});Zt(0,["SSSSS",5],0,function(){return this.millisecond()*100});Zt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Zt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Zt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Zt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});vi("millisecond","ms");pi("millisecond",16);Lt("S",J2,f7);Lt("SS",J2,Eo);Lt("SSS",J2,d7);var Uc,$7;for(Uc="SSSS";Uc.length<=9;Uc+="S")Lt(Uc,Ng);function Yfe(e,t){t[Zd]=Nr(("0."+e)*1e3)}for(Uc="S";Uc.length<=9;Uc+="S")wn(Uc,Yfe);$7=kg("Milliseconds",!1);Zt("z",0,0,"zoneAbbr");Zt("zz",0,0,"zoneName");function jfe(){return this._isUTC?"UTC":""}function Kfe(){return this._isUTC?"Coordinated Universal Time":""}var at=j_.prototype;at.add=zce;at.calendar=jce;at.clone=Kce;at.diff=tfe;at.endOf=ffe;at.format=ife;at.from=ofe;at.fromNow=sfe;at.to=lfe;at.toNow=ufe;at.get=Zle;at.invalidAt=bfe;at.isAfter=Xce;at.isBefore=Zce;at.isBetween=qce;at.isSame=Qce;at.isSameOrAfter=Jce;at.isSameOrBefore=efe;at.isValid=yfe;at.lang=B7;at.locale=N7;at.localeData=F7;at.max=yce;at.min=mce;at.parsingFlags=_fe;at.set=qle;at.startOf=cfe;at.subtract=Hce;at.toArray=pfe;at.toObject=gfe;at.toDate=vfe;at.toISOString=nfe;at.inspect=afe;typeof Symbol<"u"&&Symbol.for!=null&&(at[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});at.toJSON=mfe;at.toString=rfe;at.unix=hfe;at.valueOf=dfe;at.creationData=wfe;at.eraName=Tfe;at.eraNarrow=Cfe;at.eraAbbr=Efe;at.eraYear=Mfe;at.year=b7;at.isLeapYear=gue;at.weekYear=kfe;at.isoWeekYear=Nfe;at.quarter=at.quarters=Gfe;at.month=y7;at.daysInMonth=hue;at.week=at.weeks=Sue;at.isoWeek=at.isoWeeks=xue;at.weeksInYear=Vfe;at.weeksInWeekYear=zfe;at.isoWeeksInYear=Bfe;at.isoWeeksInISOWeekYear=Ffe;at.date=U7;at.day=at.days=Nue;at.weekday=Bue;at.isoWeekday=Fue;at.dayOfYear=Ufe;at.hour=at.hours=Wue;at.minute=at.minutes=$fe;at.second=at.seconds=Wfe;at.millisecond=at.milliseconds=$7;at.utcOffset=Ece;at.utc=Dce;at.local=Pce;at.parseZone=Lce;at.hasAlignedHourOffset=Ice;at.isDST=Rce;at.isLocal=kce;at.isUtcOffset=Nce;at.isUtc=I7;at.isUTC=I7;at.zoneAbbr=jfe;at.zoneName=Kfe;at.dates=vs("dates accessor is deprecated. Use date instead.",U7);at.months=vs("months accessor is deprecated. Use month instead",y7);at.years=vs("years accessor is deprecated. Use year instead",b7);at.zone=vs("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mce);at.isDSTShifted=vs("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Oce);function Xfe(e){return On(e*1e3)}function Zfe(){return On.apply(null,arguments).parseZone()}function W7(e){return e}var nn=UR.prototype;nn.calendar=Nle;nn.longDateFormat=zle;nn.invalidDate=Gle;nn.ordinal=Wle;nn.preparse=W7;nn.postformat=W7;nn.relativeTime=jle;nn.pastFuture=Kle;nn.set=Ole;nn.eras=Sfe;nn.erasParse=xfe;nn.erasConvertYear=Afe;nn.erasAbbrRegex=Pfe;nn.erasNameRegex=Dfe;nn.erasNarrowRegex=Lfe;nn.months=uue;nn.monthsShort=cue;nn.monthsParse=due;nn.monthsRegex=pue;nn.monthsShortRegex=vue;nn.week=yue;nn.firstDayOfYear=wue;nn.firstDayOfWeek=bue;nn.weekdays=Lue;nn.weekdaysMin=Rue;nn.weekdaysShort=Iue;nn.weekdaysParse=kue;nn.weekdaysRegex=Vue;nn.weekdaysShortRegex=zue;nn.weekdaysMinRegex=Hue;nn.isPM=Uue;nn.meridiem=Yue;function nx(e,t,r,n){var a=Qu(),i=Zl().set(n,t);return a[r](i,e)}function Y7(e,t,r){if(Vu(e)&&(t=e,e=void 0),e=e||"",t!=null)return nx(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=nx(e,n,r,"month");return a}function iO(e,t,r,n){typeof e=="boolean"?(Vu(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Vu(t)&&(r=t,t=void 0),t=t||"");var a=Qu(),i=e?a._week.dow:0,o,s=[];if(r!=null)return nx(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=nx(t,(o+i)%7,n,"day");return s}function qfe(e,t){return Y7(e,t,"months")}function Qfe(e,t){return Y7(e,t,"monthsShort")}function Jfe(e,t,r){return iO(e,t,r,"weekdays")}function ede(e,t,r){return iO(e,t,r,"weekdaysShort")}function tde(e,t,r){return iO(e,t,r,"weekdaysMin")}af("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Nr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});vt.lang=vs("moment.lang is deprecated. Use moment.locale instead.",af);vt.langData=vs("moment.langData is deprecated. Use moment.localeData instead.",Qu);var au=Math.abs;function rde(){var e=this._data;return this._milliseconds=au(this._milliseconds),this._days=au(this._days),this._months=au(this._months),e.milliseconds=au(e.milliseconds),e.seconds=au(e.seconds),e.minutes=au(e.minutes),e.hours=au(e.hours),e.months=au(e.months),e.years=au(e.years),this}function j7(e,t,r,n){var a=nl(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function nde(e,t){return j7(this,e,t,1)}function ade(e,t){return j7(this,e,t,-1)}function wB(e){return e<0?Math.floor(e):Math.ceil(e)}function ide(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=wB(JD(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=Wo(e/1e3),n.seconds=a%60,i=Wo(a/60),n.minutes=i%60,o=Wo(i/60),n.hours=o%24,t+=Wo(o/24),l=Wo(K7(t)),r+=l,t-=wB(JD(l)),s=Wo(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function K7(e){return e*4800/146097}function JD(e){return e*146097/4800}function ode(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ps(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+K7(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(JD(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function sde(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Nr(this._months/12)*31536e6:NaN}function Ju(e){return function(){return this.as(e)}}var lde=Ju("ms"),ude=Ju("s"),cde=Ju("m"),fde=Ju("h"),dde=Ju("d"),hde=Ju("w"),vde=Ju("M"),pde=Ju("Q"),gde=Ju("y");function mde(){return nl(this)}function yde(e){return e=ps(e),this.isValid()?this[e+"s"]():NaN}function ev(e){return function(){return this.isValid()?this._data[e]:NaN}}var _de=ev("milliseconds"),bde=ev("seconds"),wde=ev("minutes"),Sde=ev("hours"),xde=ev("days"),Ade=ev("months"),Tde=ev("years");function Cde(){return Wo(this.days()/7)}var pu=Math.round,cp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ede(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function Mde(e,t,r,n){var a=nl(e).abs(),i=pu(a.as("s")),o=pu(a.as("m")),s=pu(a.as("h")),l=pu(a.as("d")),u=pu(a.as("M")),c=pu(a.as("w")),f=pu(a.as("y")),d=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(d=d||c<=1&&["w"]||c<r.w&&["ww",c]),d=d||u<=1&&["M"]||u<r.M&&["MM",u]||f<=1&&["y"]||["yy",f],d[2]=t,d[3]=+e>0,d[4]=n,Ede.apply(null,d)}function Dde(e){return e===void 0?pu:typeof e=="function"?(pu=e,!0):!1}function Pde(e,t){return cp[e]===void 0?!1:t===void 0?cp[e]:(cp[e]=t,e==="s"&&(cp.ss=t-1),!0)}function Lde(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=cp,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},cp,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=Mde(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var aC=Math.abs;function yv(e){return(e>0)-(e<0)||+e}function sA(){if(!this.isValid())return this.localeData().invalidDate();var e=aC(this._milliseconds)/1e3,t=aC(this._days),r=aC(this._months),n,a,i,o,s=this.asSeconds(),l,u,c,f;return s?(n=Wo(e/60),a=Wo(n/60),e%=60,n%=60,i=Wo(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=yv(this._months)!==yv(s)?"-":"",c=yv(this._days)!==yv(s)?"-":"",f=yv(this._milliseconds)!==yv(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(t?c+t+"D":"")+(a||n||e?"T":"")+(a?f+a+"H":"")+(n?f+n+"M":"")+(e?f+o+"S":"")):"P0D"}var qr=iA.prototype;qr.isValid=xce;qr.abs=rde;qr.add=nde;qr.subtract=ade;qr.as=ode;qr.asMilliseconds=lde;qr.asSeconds=ude;qr.asMinutes=cde;qr.asHours=fde;qr.asDays=dde;qr.asWeeks=hde;qr.asMonths=vde;qr.asQuarters=pde;qr.asYears=gde;qr.valueOf=sde;qr._bubble=ide;qr.clone=mde;qr.get=yde;qr.milliseconds=_de;qr.seconds=bde;qr.minutes=wde;qr.hours=Sde;qr.days=xde;qr.weeks=Cde;qr.months=Ade;qr.years=Tde;qr.humanize=Lde;qr.toISOString=sA;qr.toString=sA;qr.toJSON=sA;qr.locale=N7;qr.localeData=F7;qr.toIsoString=vs("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sA);qr.lang=B7;Zt("X",0,0,"unix");Zt("x",0,0,"valueOf");Lt("x",tA);Lt("X",Jle);wn("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});wn("x",function(e,t,r){r._d=new Date(Nr(e))});//! moment.js
|
||
vt.version="2.29.4";Ile(On);vt.fn=at;vt.min=_ce;vt.max=bce;vt.now=wce;vt.utc=Zl;vt.unix=Xfe;vt.months=qfe;vt.isDate=Y_;vt.locale=af;vt.invalid=Z2;vt.duration=nl;vt.isMoment=Ks;vt.weekdays=Jfe;vt.parseZone=Zfe;vt.localeData=Qu;vt.isDuration=Hw;vt.monthsShort=Qfe;vt.weekdaysMin=tde;vt.defineLocale=qR;vt.updateLocale=Zue;vt.locales=que;vt.weekdaysShort=ede;vt.normalizeUnits=ps;vt.relativeTimeRounding=Dde;vt.relativeTimeThreshold=Pde;vt.calendarFormat=Yce;vt.prototype=at;vt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const X7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAiRJREFUOE+lk99LU2EYx593J2vqIFApii6KLr3YKoKiNQ8Jiq0fImULCgliZj+gpAgCKSQKDIluLKEudtMfIPtpRLsoo4vAY3NDPaNNtrOz1Q7nuHPm1nmPb+zAxmZoA9/LD+/z4eH7PA+CLT5UT/3Onp6DyECsosfvKv8vs80FNG1qMRkfApDba2uURfR647CObSjY1Wu/glXtOUKwjwC5K7gDr/Y4Ll4t5nLPqtk/grOjI+08n55Y5jgbxhgIIbO2M/ZBUZTG2VDIuipJOhOU4nEIBgsVwS2Xq3UbLo4y4fnBCMtSWNOgsakJTvf3z2TzyrEfDGOQkknAsgIaEIvoDjClPNARp7Ph5sDAjYXY0hPfx08tXCYNBooCurMTzB0d8JVdhDgbhXyKB4VPAZblN1l3YKgcJppaiLyPxmOXx15PwB9V1fm94WHYbzaDa/Y7SElOL87zPBTTGVCElQOi3x+rCAgh6O3M5zs/l+MjUx+m21KZDCCE4FRXF1hsNvhS1UFJosq52g7KJufkZNsOCp4ykfC1xWh0u4oxNDY3k+6+PkYsFtpDc3MNYiIBak7GiBBr1jv9Tc9g/SJ1P3pwOCtKLxMcZytJSomf6D0/tPLr91g0PH9yVaxM4SgEg3jDPdh9zu5QNe2FPnNC7guewPjeSxccBVmuYf/bRGOryfiYAFwHDR0SfL4E0HQNq/sWKAOhBY//XfUtlFhdgs0ObsuCvx2fLq2T8QEMAAAAAElFTkSuQmCC",Ide=Object.freeze(Object.defineProperty({__proto__:null,default:X7},Symbol.toStringTag,{value:"Module"})),Z7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAAAXNSR0IArs4c6QAAAXFJREFUOE9jZCARMBKrnt/TU5mR6b8NYQ0ODjxCPBzlDAz/c/79YzbAq0EyIjT25+fPbYyMDDL/Gf4XvNuycyJWDZELF+o9f/Zo6p0rV2y+f/zI8P///wvvvv60ZDhw4AeKhpKjR8W4mRmar9y6kXL54kWmj0+fMvz58pXhL8N/gw9bdl4E+ReswXPbNvZYY72cZ58/Ve+/eFHw4Z27DN+ev2D4+uI5w58vX2a83bIzExY4YA3bP73b8Pb3b/+FF84yfHz6DKz424sXDD9fvmL4+u6T4ocdOx6gaPj//z/jkhdPSt58+VK+59IFYZgNIE2/v3zGtAGmu3T/fglODpaWq7dvxV25dIn1w5MnDL8/f/nD+P+/zdttu07C/YAeecFz55q8efm07+61q7bfP8BDyZThwIE/eONBKjwk4seXL93gePj/v+Td1p29xMQ0hzAPR/1/BoYUhr+MhoQ1QN0LSkvMTP8diNaAEqzEpliQOgBqdbuezOClhAAAAABJRU5ErkJggg==",Rde=Object.freeze(Object.defineProperty({__proto__:null,default:Z7},Symbol.toStringTag,{value:"Module"})),q7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAYAAAAiYZ4HAAAAAXNSR0IArs4c6QAAAXhJREFUOE9jZCARMAp5eyT//cd44OP27XeJ0cso5Okpw8D8/zwjA8Oct19+NDIcOPADn0ZGkKSQt3sxIyNjz///DE84+HlKny1bswKXJrAGBgcHFiFu9tOMjIwGnPz8DCra2oeFZaSL1sYln0HXCNHAwMAg7OVm/p+R8QgbLw8Ln4wMg66e3m9tVbVF33/8qel2dHwBUwfXANbk4z6dlYcng0tCkoFLUoJBXkWZwUXf4K0IN09njIRMDyMj438UDQIeHgrcQnz32cXEwBq4JSUY+KWlGOIMjBiEWdk2evIJBeC1QUFFhcFBX++9FDdf6+Lzl6Zs9/L6Cdcg4OOuz8zAeIGVh5uBT1qGQVdf75+Omtqcr3+/1fZYu79C9YODA4cQN/txeCjp6ByRlJLLXh4ffwlrKAn5uOczMjBOAMUDOy9X1fMV6xbjjAcBLy95Jqa/FxgYGKe8+/Kjk+HAgS94Y1rA2yP+/z/GI0SnJWISHLIalGAlRjMAqCRnEX5NiqoAAAAASUVORK5CYII=",Ode=Object.freeze(Object.defineProperty({__proto__:null,default:q7},Symbol.toStringTag,{value:"Module"})),Q7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAhVJREFUOE9jZKAQMAp5eyT//cd44OP27XdhZmETw2UPo5CnpwwD8//zjAwMc95++dHIcODAD2xiOA0ASQh5uxczMjL2/P/P8ISDn6f02bI1K5DFWJmZS19u2roCmyGMYEEHBxYhbvbTjIyMBpz8/Awq2tqHeUVFyo5u2DgdJMbKwsIgIyV1SFiAv3BnW/c5ZIMgBjAwMAh7uZn/Z2Q8wsbLw8InI8Ogq6f3W4Cd/erOdev1v3/9yggyRE1Z5Ze+pub8n38Zamalp78B6YMbADbEx306Kw9PBpeEJAOXpASDvIoyg7WKGsOFQ4cY9u3axfD//38GSTExBh9XtzfKcvLNKVY2k1EMEPDwUOAW4rvPLiYGNoBbUoKBX1qKIc7AiOHBxUsM/X19YNeysbIylGVmMyjLyy/H6wIFFRUGSxVVhgsHDzIc2LuX4d/fvwxSYuIMns5O79SVVBqmzV84A26AgI+7PjMD4wVWHm4GPmkZBl19vX/CXNwntq1aZfX92zcGFmYWBk0V5b/6Wtoz/7Cw102Nj3+LCAMHBw4hbvbj8FjQ0TkiwM1ffGjn1pkgMRYWFgY5KalDEhLiWZvrmq9ixIKQj3s+IwPjBFA6YOflqnq+Yt1iZDEWZubKV5u2LsGaDgS8vOSZmP5eYGBgnPLuy49OhgMHvmATw5kSBbw94v//YzyCnBewieFNypRkSJRoJMcgALuqwRtB4dPnAAAAAElFTkSuQmCC",kde=Object.freeze(Object.defineProperty({__proto__:null,default:Q7},Symbol.toStringTag,{value:"Module"}));function J7(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nde}=Object.prototype,{getPrototypeOf:oO}=Object,lA=(e=>t=>{const r=Nde.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ql=e=>(e=e.toLowerCase(),t=>lA(t)===e),uA=e=>t=>typeof t===e,{isArray:Bg}=Array,E0=uA("undefined");function Bde(e){return e!==null&&!E0(e)&&e.constructor!==null&&!E0(e.constructor)&&ts(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eY=Ql("ArrayBuffer");function Fde(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&eY(e.buffer),t}const Vde=uA("string"),ts=uA("function"),tY=uA("number"),cA=e=>e!==null&&typeof e=="object",zde=e=>e===!0||e===!1,Uw=e=>{if(lA(e)!=="object")return!1;const t=oO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hde=Ql("Date"),Gde=Ql("File"),Ude=Ql("Blob"),$de=Ql("FileList"),Wde=e=>cA(e)&&ts(e.pipe),Yde=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ts(e.append)&&((t=lA(e))==="formdata"||t==="object"&&ts(e.toString)&&e.toString()==="[object FormData]"))},jde=Ql("URLSearchParams"),Kde=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Z_(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Bg(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function rY(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const nY=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),aY=e=>!E0(e)&&e!==nY;function eP(){const{caseless:e}=aY(this)&&this||{},t={},r=(n,a)=>{const i=e&&rY(t,a)||a;Uw(t[i])&&Uw(n)?t[i]=eP(t[i],n):Uw(n)?t[i]=eP({},n):Bg(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&Z_(arguments[n],r);return t}const Xde=(e,t,r,{allOwnKeys:n}={})=>(Z_(t,(a,i)=>{r&&ts(a)?e[i]=J7(a,r):e[i]=a},{allOwnKeys:n}),e),Zde=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qde=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Qde=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&oO(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Jde=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ehe=e=>{if(!e)return null;if(Bg(e))return e;let t=e.length;if(!tY(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},the=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oO(Uint8Array)),rhe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},nhe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ahe=Ql("HTMLFormElement"),ihe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),SB=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ohe=Ql("RegExp"),iY=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Z_(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},she=e=>{iY(e,(t,r)=>{if(ts(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ts(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},lhe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return Bg(e)?n(e):n(String(e).split(t)),r},uhe=()=>{},che=(e,t)=>(e=+e,Number.isFinite(e)?e:t),iC="abcdefghijklmnopqrstuvwxyz",xB="0123456789",oY={DIGIT:xB,ALPHA:iC,ALPHA_DIGIT:iC+iC.toUpperCase()+xB},fhe=(e=16,t=oY.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function dhe(e){return!!(e&&ts(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hhe=e=>{const t=new Array(10),r=(n,a)=>{if(cA(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const i=Bg(n)?[]:{};return Z_(n,(o,s)=>{const l=r(o,a+1);!E0(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return r(e,0)},vhe=Ql("AsyncFunction"),phe=e=>e&&(cA(e)||ts(e))&&ts(e.then)&&ts(e.catch),Ke={isArray:Bg,isArrayBuffer:eY,isBuffer:Bde,isFormData:Yde,isArrayBufferView:Fde,isString:Vde,isNumber:tY,isBoolean:zde,isObject:cA,isPlainObject:Uw,isUndefined:E0,isDate:Hde,isFile:Gde,isBlob:Ude,isRegExp:ohe,isFunction:ts,isStream:Wde,isURLSearchParams:jde,isTypedArray:the,isFileList:$de,forEach:Z_,merge:eP,extend:Xde,trim:Kde,stripBOM:Zde,inherits:qde,toFlatObject:Qde,kindOf:lA,kindOfTest:Ql,endsWith:Jde,toArray:ehe,forEachEntry:rhe,matchAll:nhe,isHTMLForm:ahe,hasOwnProperty:SB,hasOwnProp:SB,reduceDescriptors:iY,freezeMethods:she,toObjectSet:lhe,toCamelCase:ihe,noop:uhe,toFiniteNumber:che,findKey:rY,global:nY,isContextDefined:aY,ALPHABET:oY,generateString:fhe,isSpecCompliantForm:dhe,toJSONObject:hhe,isAsyncFn:vhe,isThenable:phe};function Kr(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}Ke.inherits(Kr,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:Ke.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sY=Kr.prototype,lY={};["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(e=>{lY[e]={value:e}});Object.defineProperties(Kr,lY);Object.defineProperty(sY,"isAxiosError",{value:!0});Kr.from=(e,t,r,n,a,i)=>{const o=Object.create(sY);return Ke.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Kr.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ghe=null;function tP(e){return Ke.isPlainObject(e)||Ke.isArray(e)}function uY(e){return Ke.endsWith(e,"[]")?e.slice(0,-2):e}function AB(e,t,r){return e?e.concat(t).map(function(a,i){return a=uY(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function mhe(e){return Ke.isArray(e)&&!e.some(tP)}const yhe=Ke.toFlatObject(Ke,{},null,function(t){return/^is[A-Z]/.test(t)});function fA(e,t,r){if(!Ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ke.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!Ke.isUndefined(g[p])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ke.isSpecCompliantForm(t);if(!Ke.isFunction(a))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Ke.isDate(v))return v.toISOString();if(!l&&Ke.isBlob(v))throw new Kr("Blob is not supported. Use a Buffer instead.");return Ke.isArrayBuffer(v)||Ke.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,p,g){let m=v;if(v&&!g&&typeof v=="object"){if(Ke.endsWith(p,"{}"))p=n?p:p.slice(0,-2),v=JSON.stringify(v);else if(Ke.isArray(v)&&mhe(v)||(Ke.isFileList(v)||Ke.endsWith(p,"[]"))&&(m=Ke.toArray(v)))return p=uY(p),m.forEach(function(_,w){!(Ke.isUndefined(_)||_===null)&&t.append(o===!0?AB([p],w,i):o===null?p:p+"[]",u(_))}),!1}return tP(v)?!0:(t.append(AB(g,p,i),u(v)),!1)}const f=[],d=Object.assign(yhe,{defaultVisitor:c,convertValue:u,isVisitable:tP});function h(v,p){if(!Ke.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),Ke.forEach(v,function(m,y){(!(Ke.isUndefined(m)||m===null)&&a.call(t,m,Ke.isString(y)?y.trim():y,p,d))===!0&&h(m,p?p.concat(y):[y])}),f.pop()}}if(!Ke.isObject(e))throw new TypeError("data must be an object");return h(e),t}function TB(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function sO(e,t){this._pairs=[],e&&fA(e,this,t)}const cY=sO.prototype;cY.append=function(t,r){this._pairs.push([t,r])};cY.toString=function(t){const r=t?function(n){return t.call(this,n,TB)}:TB;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function _he(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fY(e,t,r){if(!t)return e;const n=r&&r.encode||_he,a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ke.isURLSearchParams(t)?t.toString():new sO(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class bhe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ke.forEach(this.handlers,function(n){n!==null&&t(n)})}}const CB=bhe,dY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},whe=typeof URLSearchParams<"u"?URLSearchParams:sO,She=typeof FormData<"u"?FormData:null,xhe=typeof Blob<"u"?Blob:null,Ahe={isBrowser:!0,classes:{URLSearchParams:whe,FormData:She,Blob:xhe},protocols:["http","https","file","blob","url","data"]},hY=typeof window<"u"&&typeof document<"u",The=(e=>hY&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Che=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ehe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hY,hasStandardBrowserEnv:The,hasStandardBrowserWebWorkerEnv:Che},Symbol.toStringTag,{value:"Module"})),Cl={...Ehe,...Ahe};function Mhe(e,t){return fA(e,new Cl.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,i){return Cl.isNode&&Ke.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Dhe(e){return Ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Phe(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function vY(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=r.length;return o=!o&&Ke.isArray(a)?a.length:o,l?(Ke.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!Ke.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ke.isArray(a[o])&&(a[o]=Phe(a[o])),!s)}if(Ke.isFormData(e)&&Ke.isFunction(e.entries)){const r={};return Ke.forEachEntry(e,(n,a)=>{t(Dhe(n),a,r,0)}),r}return null}function Lhe(e,t,r){if(Ke.isString(e))try{return(t||JSON.parse)(e),Ke.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const lO={transitional:dY,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ke.isObject(t);if(i&&Ke.isHTMLForm(t)&&(t=new FormData(t)),Ke.isFormData(t))return a?JSON.stringify(vY(t)):t;if(Ke.isArrayBuffer(t)||Ke.isBuffer(t)||Ke.isStream(t)||Ke.isFile(t)||Ke.isBlob(t))return t;if(Ke.isArrayBufferView(t))return t.buffer;if(Ke.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Mhe(t,this.formSerializer).toString();if((s=Ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fA(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Lhe(t)):t}],transformResponse:[function(t){const r=this.transitional||lO.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(t&&Ke.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Kr.from(s,Kr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cl.classes.FormData,Blob:Cl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ke.forEach(["delete","get","head","post","put","patch"],e=>{lO.headers[e]={}});const uO=lO,Ihe=Ke.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"]),Rhe=e=>{const t={};let r,n,a;return e&&e.split(`
|
||
`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&Ihe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},EB=Symbol("internals");function wm(e){return e&&String(e).trim().toLowerCase()}function $w(e){return e===!1||e==null?e:Ke.isArray(e)?e.map($w):String(e)}function Ohe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const khe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oC(e,t,r,n,a){if(Ke.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ke.isString(t)){if(Ke.isString(n))return t.indexOf(n)!==-1;if(Ke.isRegExp(n))return n.test(t)}}function Nhe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Bhe(e,t){const r=Ke.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class dA{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,u){const c=wm(l);if(!c)throw new Error("header name must be a non-empty string");const f=Ke.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=$w(s))}const o=(s,l)=>Ke.forEach(s,(u,c)=>i(u,c,l));return Ke.isPlainObject(t)||t instanceof this.constructor?o(t,r):Ke.isString(t)&&(t=t.trim())&&!khe(t)?o(Rhe(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=wm(t),t){const n=Ke.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return Ohe(a);if(Ke.isFunction(r))return r.call(this,a,n);if(Ke.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=wm(t),t){const n=Ke.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||oC(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=wm(o),o){const s=Ke.findKey(n,o);s&&(!r||oC(n,n[s],s,r))&&(delete n[s],a=!0)}}return Ke.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||oC(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ke.forEach(this,(a,i)=>{const o=Ke.findKey(n,i);if(o){r[o]=$w(a),delete r[i];return}const s=t?Nhe(i):String(i).trim();s!==i&&delete r[i],r[s]=$w(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ke.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ke.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[EB]=this[EB]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=wm(o);n[s]||(Bhe(a,o),n[s]=!0)}return Ke.isArray(t)?t.forEach(i):i(t),this}}dA.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ke.reduceDescriptors(dA.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Ke.freezeMethods(dA);const Ru=dA;function sC(e,t){const r=this||uO,n=t||r,a=Ru.from(n.headers);let i=n.data;return Ke.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function pY(e){return!!(e&&e.__CANCEL__)}function q_(e,t,r){Kr.call(this,e??"canceled",Kr.ERR_CANCELED,t,r),this.name="CanceledError"}Ke.inherits(q_,Kr,{__CANCEL__:!0});function Fhe(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Kr("Request failed with status code "+r.status,[Kr.ERR_BAD_REQUEST,Kr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Vhe=Cl.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];Ke.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Ke.isString(n)&&o.push("path="+n),Ke.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zhe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hhe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gY(e,t){return e&&!zhe(t)?Hhe(e,t):t}const Ghe=Cl.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(o){const s=Ke.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Uhe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $he(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[i];o||(o=u),r[a]=l,n[a]=u;let f=i,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function MB(e,t){let r=0;const n=$he(50,250);return a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-r,l=n(s),u=i<=o;r=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[t?"download":"upload"]=!0,e(c)}}const Whe=typeof XMLHttpRequest<"u",Yhe=Whe&&function(e){return new Promise(function(r,n){let a=e.data;const i=Ru.from(e.headers).normalize();let{responseType:o,withXSRFToken:s}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(Ke.isFormData(a)){if(Cl.hasStandardBrowserEnv||Cl.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[p,...g]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...g].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+g))}const d=gY(e.baseURL,e.url);f.open(e.method.toUpperCase(),fY(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const p=Ru.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:p,config:e,request:f};Fhe(function(_){r(_),u()},function(_){n(_),u()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(n(new Kr("Request aborted",Kr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new Kr("Network Error",Kr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||dY;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),n(new Kr(g,m.clarifyTimeoutError?Kr.ETIMEDOUT:Kr.ECONNABORTED,e,f)),f=null},Cl.hasStandardBrowserEnv&&(s&&Ke.isFunction(s)&&(s=s(e)),s||s!==!1&&Ghe(d))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Vhe.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}a===void 0&&i.setContentType(null),"setRequestHeader"in f&&Ke.forEach(i.toJSON(),function(g,m){f.setRequestHeader(m,g)}),Ke.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",MB(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",MB(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{f&&(n(!p||p.type?new q_(null,e,f):p),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=Uhe(d);if(v&&Cl.protocols.indexOf(v)===-1){n(new Kr("Unsupported protocol "+v+":",Kr.ERR_BAD_REQUEST,e));return}f.send(a||null)})},rP={http:ghe,xhr:Yhe};Ke.forEach(rP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const DB=e=>`- ${e}`,jhe=e=>Ke.isFunction(e)||e===null||e===!1,mY={getAdapter:e=>{e=Ke.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!jhe(r)&&(n=rP[(o=String(r)).toLowerCase()],n===void 0))throw new Kr(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
|
||
`+i.map(DB).join(`
|
||
`):" "+DB(i[0]):"as no adapter specified";throw new Kr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:rP};function lC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new q_(null,e)}function PB(e){return lC(e),e.headers=Ru.from(e.headers),e.data=sC.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mY.getAdapter(e.adapter||uO.adapter)(e).then(function(n){return lC(e),n.data=sC.call(e,e.transformResponse,n),n.headers=Ru.from(n.headers),n},function(n){return pY(n)||(lC(e),n&&n.response&&(n.response.data=sC.call(e,e.transformResponse,n.response),n.response.headers=Ru.from(n.response.headers))),Promise.reject(n)})}const LB=e=>e instanceof Ru?e.toJSON():e;function Kp(e,t){t=t||{};const r={};function n(u,c,f){return Ke.isPlainObject(u)&&Ke.isPlainObject(c)?Ke.merge.call({caseless:f},u,c):Ke.isPlainObject(c)?Ke.merge({},c):Ke.isArray(c)?c.slice():c}function a(u,c,f){if(Ke.isUndefined(c)){if(!Ke.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function i(u,c){if(!Ke.isUndefined(c))return n(void 0,c)}function o(u,c){if(Ke.isUndefined(c)){if(!Ke.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(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,withXSRFToken: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(LB(u),LB(c),!0)};return Ke.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||a,d=f(e[c],t[c],c);Ke.isUndefined(d)&&f!==s||(r[c]=d)}),r}const yY="1.6.7",cO={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cO[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const IB={};cO.transitional=function(t,r,n){function a(i,o){return"[Axios v"+yY+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new Kr(a(o," has been removed"+(r?" in "+r:"")),Kr.ERR_DEPRECATED);return r&&!IB[o]&&(IB[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function Khe(e,t,r){if(typeof e!="object")throw new Kr("options must be an object",Kr.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new Kr("option "+i+" must be "+l,Kr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Kr("Unknown option "+i,Kr.ERR_BAD_OPTION)}}const nP={assertOptions:Khe,validators:cO},vc=nP.validators;class ax{constructor(t){this.defaults=t,this.interceptors={request:new CB,response:new CB}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
||
`+i):n.stack=i}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kp(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&nP.assertOptions(n,{silentJSONParsing:vc.transitional(vc.boolean),forcedJSONParsing:vc.transitional(vc.boolean),clarifyTimeoutError:vc.transitional(vc.boolean)},!1),a!=null&&(Ke.isFunction(a)?r.paramsSerializer={serialize:a}:nP.assertOptions(a,{encode:vc.function,serialize:vc.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&Ke.merge(i.common,i[r.method]);i&&Ke.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=Ru.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const v=[PB.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(r);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let h=r;for(f=0;f<d;){const v=s[f++],p=s[f++];try{h=v(h)}catch(g){p.call(this,g);break}}try{c=PB.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Kp(this.defaults,t);const r=gY(t.baseURL,t.url);return fY(r,t.params,t.paramsSerializer)}}Ke.forEach(["delete","get","head","options"],function(t){ax.prototype[t]=function(r,n){return this.request(Kp(n||{},{method:t,url:r,data:(n||{}).data}))}});Ke.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(Kp(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ax.prototype[t]=r(),ax.prototype[t+"Form"]=r(!0)});const Ww=ax;class fO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new q_(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new fO(function(a){t=a}),cancel:t}}}const Xhe=fO;function Zhe(e){return function(r){return e.apply(null,r)}}function qhe(e){return Ke.isObject(e)&&e.isAxiosError===!0}const aP={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(aP).forEach(([e,t])=>{aP[t]=e});const Qhe=aP;function _Y(e){const t=new Ww(e),r=J7(Ww.prototype.request,t);return Ke.extend(r,Ww.prototype,t,{allOwnKeys:!0}),Ke.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return _Y(Kp(e,a))},r}const ya=_Y(uO);ya.Axios=Ww;ya.CanceledError=q_;ya.CancelToken=Xhe;ya.isCancel=pY;ya.VERSION=yY;ya.toFormData=fA;ya.AxiosError=Kr;ya.Cancel=ya.CanceledError;ya.all=function(t){return Promise.all(t)};ya.spread=Zhe;ya.isAxiosError=qhe;ya.mergeConfig=Kp;ya.AxiosHeaders=Ru;ya.formToJSON=e=>vY(Ke.isHTMLForm(e)?new FormData(e):e);ya.getAdapter=mY.getAdapter;ya.HttpStatusCode=Qhe;ya.default=ya;const Jhe=ya;console.log("");const ir=Jhe.create({baseURL:"",timeout:6e3});ir.interceptors.request.use(e=>Promise.resolve(e),e=>Promise.reject(e));ir.interceptors.response.use(e=>{if(e.status>=200&&e.status<300||e.status===304)return e.data},e=>Promise.reject(e.response));function eve(e){return console.log(e,ir),ir({url:"/api/GetElctricityConsumption",method:"get",params:e})}function tve(){return ir({url:"/api/GetRealtimeLoad",method:"get"})}function rve(e){return ir({url:"/api/GetEnergyCalendar",method:"get",params:e})}function nve(e){return ir({url:"/api/GetCarbonEmission",method:"get",params:e})}function ave(e){return ir({url:"/api/GetMeteorologicalStation",method:"get",params:e})}function ive(e){return ir({url:"/api/GetSystemRanking",method:"get",params:e})}const al=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},ove={class:"day"},sve={class:"value"},lve={__name:"index",setup(e){const t=G();G(new Date);const r=G(new Date),n=()=>{},a=u=>{t.value&&(t.value.selectDate(u),o())},i=G([{time:"01",EH:"10"},{time:"02",EH:"12"}]);function o(){let u=vt(r.value).format("YYYY-MM"),c=vt(r.value).format("MM");rve({date:u}).then(f=>{if(f.code==200)i.value=f.data,s(u,c);else return!1}).catch(f=>{console.log(f)})}function s(u,c){let f=vt(r.value).format("MM");if(i.value!=null&&c==f){const d=i.value.find(h=>h.time===u);if(d)return d?l(Number(d.EH)):""}}function l(u){if(typeof u=="number"&&!isNaN(u))return Number.isInteger(u)?u:Number.parseFloat(u).toFixed(2);throw new Error("Invalid input")}return xt(()=>{o()}),(u,c)=>{const f=bt("el-calendar");return N(),he(f,{ref_key:"calendar",ref:t,modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=d=>r.value=d),row:5},{header:le(({date:d})=>[V("div",null,[V("img",{onClick:c[0]||(c[0]=h=>a("prev-year")),src:X7,style:{width:"1rem",height:"1rem",cursor:"pointer"}}),V("img",{onClick:c[1]||(c[1]=h=>a("prev-month")),src:Z7,style:{width:"1rem",height:"1rem",cursor:"pointer"}}),V("span",{onClick:n,style:{"font-size":"13px"}},me(d),1),V("img",{onClick:c[2]||(c[2]=h=>a("next-month")),src:q7,style:{width:"1rem",height:"1rem",cursor:"pointer"}}),V("img",{onClick:c[3]||(c[3]=h=>a("next-year")),src:Q7,style:{width:"1rem",height:"1rem",cursor:"pointer"}})]),V("div",{class:"returningToThisMonth",onClick:c[4]||(c[4]=h=>a("today"))})]),"date-cell":le(({data:d})=>[V("p",ove,me(d.day.split("-").slice(1)[1]),1),V("p",sve,me(s(d.day.split("-").slice(1)[1],d.day.split("-").slice(1)[0])),1)]),_:1},8,["modelValue"])}}},uve=al(lve,[["__scopeId","data-v-52b28142"]]);/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var iP=function(e,t){return iP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},iP(e,t)};function De(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");iP(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var cve=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),fve=function(){function e(){this.browser=new cve,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Id=new fve;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Id.wxa=!0,Id.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Id.worker=!0:typeof navigator>"u"?(Id.node=!0,Id.svgSupported=!0):dve(navigator.userAgent,Id);function dve(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const Cr=Id;var dO=12,bY="sans-serif",gf=dO+"px "+bY,hve=20,vve=100,pve="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function gve(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-hve)/vve;t[n]=a}return t}var mve=gve(pve),Xs={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=Xs.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||gf),e.measureText(r);r=r||"",n=n||gf;var i=/(\d+)px/.exec(n),o=i&&+i[1]||dO,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=mve[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}};function wY(e){for(var t in Xs)e[t]&&(Xs[t]=e[t])}var SY=Co(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),xY=Co(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Fg=Object.prototype.toString,hA=Array.prototype,yve=hA.forEach,_ve=hA.filter,hO=hA.slice,bve=hA.map,RB=(function(){}).constructor,eb=RB?RB.prototype:null,vO="__proto__",wve=2311;function pO(){return wve++}function vA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Pt(e){if(e==null||typeof e!="object")return e;var t=e,r=Fg.call(e);if(r==="[object Array]"){if(!Mp(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=Pt(e[n])}}else if(xY[r]){if(!Mp(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!SY[r]&&!Mp(e)&&!Xp(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==vO&&(t[o]=Pt(e[o]))}return t}function st(e,t,r){if(!Mt(t)||!Mt(e))return r?Pt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==vO){var a=e[n],i=t[n];Mt(i)&&Mt(a)&&!Ne(i)&&!Ne(a)&&!Xp(i)&&!Xp(a)&&!oP(i)&&!oP(a)&&!Mp(i)&&!Mp(a)?st(a,i,r):(r||!(n in e))&&(e[n]=Pt(t[n]))}return e}function pA(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=st(r,e[n],t);return r}function Ie(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==vO&&(e[r]=t[r]);return e}function yt(e,t,r){for(var n=vr(t),a=0;a<n.length;a++){var i=n[a];(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}var Sve=Xs.createCanvas;function tr(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function Q_(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Kn(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else yt(e,t,r)}function ei(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function W(e,t,r){if(e&&t)if(e.forEach&&e.forEach===yve)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function Fe(e,t,r){if(!e)return[];if(!t)return gA(e);if(e.map&&e.map===bve)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function Co(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Yr(e,t,r){if(!e)return[];if(!t)return gA(e);if(e.filter&&e.filter===_ve)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function AY(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function vr(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function xve(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(hO.call(arguments)))}}var ot=eb&&Tt(eb.bind)?eb.call.bind(eb.bind):xve;function zt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(hO.call(arguments)))}}function Ne(e){return Array.isArray?Array.isArray(e):Fg.call(e)==="[object Array]"}function Tt(e){return typeof e=="function"}function rt(e){return typeof e=="string"}function ix(e){return Fg.call(e)==="[object String]"}function Mr(e){return typeof e=="number"}function Mt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function oP(e){return!!SY[Fg.call(e)]}function so(e){return!!xY[Fg.call(e)]}function Xp(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function J_(e){return e.colorStops!=null}function TY(e){return e.image!=null}function CY(e){return Fg.call(e)==="[object RegExp]"}function Zp(e){return e!==e}function Aa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Qt(e,t){return e??t}function zs(e,t,r){return e??t??r}function gA(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return hO.apply(e,t)}function mA(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function ci(e,t){if(!e)throw new Error(t)}function Qo(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var EY="__ec_primitive__";function M0(e){e[EY]=!0}function Mp(e){return e[EY]}var Ave=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return vr(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),MY=typeof Map=="function";function Tve(){return MY?new Map:new Ave}var DY=function(){function e(t){var r=Ne(t);this.data=Tve();var n=this;t instanceof e?t.each(a):t&&W(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return MY?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function _t(e){return new DY(e)}function kh(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function e1(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Ie(r,t),r}function gO(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function lt(e,t){return e.hasOwnProperty(t)}function Wn(){}var Vy=180/Math.PI;const Cve=Object.freeze(Object.defineProperty({__proto__:null,HashMap:DY,RADIAN_TO_DEGREE:Vy,assert:ci,bind:ot,clone:Pt,concatArray:kh,createCanvas:Sve,createHashMap:_t,createObject:e1,curry:zt,defaults:yt,disableUserSelect:gO,each:W,eqNaN:Zp,extend:Ie,filter:Yr,find:AY,guid:pO,hasOwn:lt,indexOf:tr,inherits:Q_,isArray:Ne,isArrayLike:ei,isBuiltInObject:oP,isDom:Xp,isFunction:Tt,isGradientObject:J_,isImagePatternObject:TY,isNumber:Mr,isObject:Mt,isPrimitive:Mp,isRegExp:CY,isString:rt,isStringSafe:ix,isTypedArray:so,keys:vr,logError:vA,map:Fe,merge:st,mergeAll:pA,mixin:Kn,noop:Wn,normalizeCssArray:mA,reduce:Co,retrieve:Aa,retrieve2:Qt,retrieve3:zs,setAsPrimitive:M0,slice:gA,trim:Qo},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var sP=function(e,t){return sP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},sP(e,t)};function bn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sP(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Rf(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function ii(e,t){return e[0]=t[0],e[1]=t[1],e}function Il(e){return[e[0],e[1]]}function PY(e,t,r){return e[0]=t,e[1]=r,e}function lP(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function ox(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function $c(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function D0(e){return Math.sqrt(mO(e))}var Eve=D0;function mO(e){return e[0]*e[0]+e[1]*e[1]}var Mve=mO;function Dve(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function Pve(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function Lve(e,t){return e[0]*t[0]+e[1]*t[1]}function zy(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function tv(e,t){var r=D0(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function sx(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Au=sx;function LY(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var of=LY;function Ive(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Hy(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function va(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Tu(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Cu(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}const Rve=Object.freeze(Object.defineProperty({__proto__:null,add:lP,applyTransform:va,clone:Il,copy:ii,create:Rf,dist:Au,distSquare:of,distance:sx,distanceSquare:LY,div:Pve,dot:Lve,len:D0,lenSquare:mO,length:Eve,lengthSquare:Mve,lerp:Hy,max:Cu,min:Tu,mul:Dve,negate:Ive,normalize:tv,scale:zy,scaleAndAdd:ox,set:PY,sub:$c},Symbol.toStringTag,{value:"Module"}));var _v=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Ove=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new _v(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new _v(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new _v(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new _v(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new _v(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new _v(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const kve=Ove;var Nve=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}();const gs=Nve;var Bve=Math.log(2);function uP(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/Bve);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&a||(f+=(h%2?-1:1)*e[r][d]*uP(e,t-1,c,u,a|v,i),h++)}return i[o]=f,f}function OB(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=uP(r,8,0,0,0,n);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)*uP(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var kB="___zrEVENTSAVED",uC=[];function Fve(e,t,r,n,a){return cP(uC,t,n,a,!0)&&cP(e,r,uC[0],uC[1])}function cP(e,t,r,n,a){if(t.getBoundingClientRect&&Cr.domSupported&&!IY(t)){var i=t[kB]||(t[kB]={}),o=Vve(t,i),s=zve(o,i,a);if(s)return s(e,r,n),!0}return!1}function Vve(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["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",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function zve(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&i&&d===i[f]&&h===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?OB(s,o):OB(o,s))}function IY(e){return e.nodeName.toUpperCase()==="CANVAS"}var Hve=/([&<>"'])/g,Gve={"&":"&","<":"<",">":">",'"':""","'":"'"};function na(e){return e==null?"":(e+"").replace(Hve,function(t,r){return Gve[r]})}var Uve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cC=[],$ve=Cr.browser.firefox&&+Cr.browser.version.split(".")[0]<39;function fP(e,t,r,n){return r=r||{},n?NB(e,t,r):$ve&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):NB(e,t,r),r}function NB(e,t,r){if(Cr.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(IY(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(cP(cC,e,n,a)){r.zrX=cC[0],r.zrY=cC[1];return}}r.zrX=r.zrY=0}function yO(e){return e||window.event}function zo(e,t,r){if(t=yO(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&fP(e,o,t,r)}else{fP(e,t,t,r);var i=Wve(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Uve.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Wve(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function dP(e,t,r,n){e.addEventListener(t,r,n)}function Yve(e,t,r,n){e.removeEventListener(t,r,n)}var zu=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function BB(e){return e.which===2||e.which===3}var jve=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=fP(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in fC)if(fC.hasOwnProperty(r)){var n=fC[r](this._track,t);if(n)return n}},e}();function FB(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Kve(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var fC={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=FB(n)/FB(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Kve(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function lo(){return[1,0,0,1,0,0]}function t1(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Rl(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Zs(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Of(e,t,r){var n=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function _A(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function kf(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function RY(e){var t=lo();return yA(t,e),t}const Xve=Object.freeze(Object.defineProperty({__proto__:null,clone:RY,copy:yA,create:lo,identity:t1,invert:kf,mul:Rl,rotate:Of,scale:_A,translate:Zs},Symbol.toStringTag,{value:"Module"}));var Zve=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}();const qt=Zve;var tb=Math.min,rb=Math.max,Jf=new qt,ed=new qt,td=new qt,rd=new qt,Sm=new qt,xm=new qt,qve=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=tb(t.x,this.x),n=tb(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rb(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=rb(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=lo();return Zs(i,i,[-r.x,-r.y]),_A(i,i,[n,a]),Zs(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(i<l||u<a||s<c||f<o);if(r){var h=1/0,v=0,p=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-c),y=Math.abs(f-o),_=Math.min(p,g),w=Math.min(m,y);i<l||u<a?_>v&&(v=_,p<g?qt.set(xm,-p,0):qt.set(xm,g,0)):_<h&&(h=_,p<g?qt.set(Sm,p,0):qt.set(Sm,-g,0)),s<c||f<o?w>v&&(v=w,m<y?qt.set(xm,0,-m):qt.set(xm,0,y)):_<h&&(h=_,m<y?qt.set(Sm,0,m):qt.set(Sm,0,-y))}return r&&qt.copy(r,d?Sm:xm),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Jf.x=td.x=r.x,Jf.y=rd.y=r.y,ed.x=rd.x=r.x+r.width,ed.y=td.y=r.y+r.height,Jf.transform(n),rd.transform(n),ed.transform(n),td.transform(n),t.x=tb(Jf.x,ed.x,td.x,rd.x),t.y=tb(Jf.y,ed.y,td.y,rd.y);var l=rb(Jf.x,ed.x,td.x,rd.x),u=rb(Jf.y,ed.y,td.y,rd.y);t.width=l-t.x,t.height=u-t.y},e}();const Xt=qve;var OY="silent";function Qve(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Jve}}function Jve(){zu(this.event)}var epe=function(e){bn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(gs),Am=function(){function e(t,r){this.x=t,this.y=r}return e}(),tpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dC=new Xt(0,0,0,0),kY=function(e){bn(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new Am(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new epe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new kve(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(W(tpe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=NY(this,n,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 Am(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Am(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=Qve(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Am(r,n);if(VB(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Xt(r-u,n-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)&&(dC.copy(d.getBoundingRect()),d.transform&&dC.applyTransform(d.transform),dC.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(VB(s,o,y,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new jve);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new Am;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(gs);W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){kY.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=NY(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Au(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function rpe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?OY:!0}return!1}function VB(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=rpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==OY)){t.target=o;break}}}function NY(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const npe=kY;var BY=32,Tm=7;function ape(e){for(var t=0;e>=BY;)t|=e&1,e>>=1;return e+t}function zB(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;ipe(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function ipe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function HB(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function hC(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function vC(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+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=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function ope(e,t){var r=Tm,n,a,i=0;e.length;var o=[];n=[],a=[];function s(h,v){n[i]=h,a[i]=v,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var v=n[h],p=a[h],g=n[h+1],m=a[h+1];a[h]=p+m,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var y=vC(e[g],e,v,p,0,t);v+=y,p-=y,p!==0&&(m=hC(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var y=0,_=p,w=h;if(e[w++]=e[_++],--g===0){for(m=0;m<v;m++)e[w+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[y];return}for(var x=r,S,T,A;;){S=0,T=0,A=!1;do if(t(e[_],o[y])<0){if(e[w++]=e[_++],T++,S=0,--g===0){A=!0;break}}else if(e[w++]=o[y++],S++,T=0,--v===1){A=!0;break}while((S|T)<x);if(A)break;do{if(S=vC(e[_],o,y,v,0,t),S!==0){for(m=0;m<S;m++)e[w+m]=o[y+m];if(w+=S,y+=S,v-=S,v<=1){A=!0;break}}if(e[w++]=e[_++],--g===0){A=!0;break}if(T=hC(o[y],e,_,g,0,t),T!==0){for(m=0;m<T;m++)e[w+m]=e[_+m];if(w+=T,_+=T,g-=T,g===0){A=!0;break}}if(e[w++]=o[y++],--v===1){A=!0;break}x--}while(S>=Tm||T>=Tm);if(A)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[w+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=h+v-1,_=g-1,w=p+g-1,x=0,S=0;if(e[w--]=e[y--],--v===0){for(x=w-(g-1),m=0;m<g;m++)e[x+m]=o[m];return}if(g===1){for(w-=v,y-=v,S=w+1,x=y+1,m=v-1;m>=0;m--)e[S+m]=e[x+m];e[w]=o[_];return}for(var T=r;;){var A=0,C=0,M=!1;do if(t(o[_],e[y])<0){if(e[w--]=e[y--],A++,C=0,--v===0){M=!0;break}}else if(e[w--]=o[_--],C++,A=0,--g===1){M=!0;break}while((A|C)<T);if(M)break;do{if(A=v-vC(o[_],e,h,v,v-1,t),A!==0){for(w-=A,y-=A,v-=A,S=w+1,x=y+1,m=A-1;m>=0;m--)e[S+m]=e[x+m];if(v===0){M=!0;break}}if(e[w--]=o[_--],--g===1){M=!0;break}if(C=g-hC(e[y],o,0,g,g-1,t),C!==0){for(w-=C,_-=C,g-=C,S=w+1,x=_+1,m=0;m<C;m++)e[S+m]=o[x+m];if(g<=1){M=!0;break}}if(e[w--]=e[y--],--v===0){M=!0;break}T--}while(A>=Tm||C>=Tm);if(M)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(w-=v,y-=v,S=w+1,x=y+1,m=v-1;m>=0;m--)e[S+m]=e[x+m];e[w]=o[_]}else{if(g===0)throw new Error;for(x=w-(g-1),m=0;m<g;m++)e[x+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Yw(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<BY){i=zB(e,r,n,t),HB(e,r,n,r+i,t);return}var o=ope(e,t),s=ape(a);do{if(i=zB(e,r,n,t),i<s){var l=a;l>s&&(l=s),HB(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var _o=1,vy=2,ep=4,GB=!1;function pC(){GB||(GB=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function UB(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var spe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=UB}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,Yw(n,UB)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=_o),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(pC(),c.z=0),isNaN(c.z2)&&(pC(),c.z2=0),isNaN(c.zlevel)&&(pC(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=tr(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const lpe=spe;var FY;FY=Cr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const qp=FY;var jw={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-jw.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?jw.bounceIn(e*2)*.5:jw.bounceOut(e*2-1)*.5+.5}};const VY=jw;var nb=Math.pow,sf=Math.sqrt,lx=1e-8,zY=1e-4,$B=sf(3),ab=1/3,xl=Rf(),Yo=Rf(),Dp=Rf();function Wc(e){return e>-lx&&e<lx}function HY(e){return e>lx||e<-lx}function wa(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function WB(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function ux(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Wc(c)&&Wc(f))if(Wc(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[h++]=v)}else{var p=f*f-4*c*d;if(Wc(p)){var g=f/c,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m)}else if(p>0){var y=sf(p),_=c*s+1.5*o*(-f+y),w=c*s+1.5*o*(-f-y);_<0?_=-nb(-_,ab):_=nb(_,ab),w<0?w=-nb(-w,ab):w=nb(w,ab);var v=(-s-(_+w))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var x=(2*c*s-3*o*f)/(2*sf(c*c*c)),S=Math.acos(x)/3,T=sf(c),A=Math.cos(S),v=(-s-2*T*A)/(3*o),m=(-s+T*(A+$B*Math.sin(S)))/(3*o),C=(-s+T*(A-$B*Math.sin(S)))/(3*o);v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m),C>=0&&C<=1&&(i[h++]=C)}}return h}function GY(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Wc(o)){if(HY(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Wc(c))a[0]=-i/(2*o);else if(c>0){var f=sf(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(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function UY(e,t,r,n,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;xl[0]=l,xl[1]=u;for(var y=0;y<1;y+=.05)Yo[0]=wa(e,r,a,o,y),Yo[1]=wa(t,n,i,s,y),g=of(xl,Yo),g<h&&(f=y,h=g);h=1/0;for(var _=0;_<32&&!(d<zY);_++)v=f-d,p=f+d,Yo[0]=wa(e,r,a,o,v),Yo[1]=wa(t,n,i,s,v),g=of(Yo,xl),v>=0&&g<h?(f=v,h=g):(Dp[0]=wa(e,r,a,o,p),Dp[1]=wa(t,n,i,s,p),m=of(Dp,xl),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=wa(e,r,a,o,f),c[1]=wa(t,n,i,s,f)),sf(h)}function upe(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=wa(e,r,a,o,v),g=wa(t,n,i,s,v),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Fa(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function hP(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function cpe(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Wc(i)){if(HY(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Wc(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=sf(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 $Y(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function P0(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function WY(e,t,r,n,a,i,o,s,l){var u,c=.005,f=1/0;xl[0]=o,xl[1]=s;for(var d=0;d<1;d+=.05){Yo[0]=Fa(e,r,a,d),Yo[1]=Fa(t,n,i,d);var h=of(xl,Yo);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<zY);v++){var p=u-c,g=u+c;Yo[0]=Fa(e,r,a,p),Yo[1]=Fa(t,n,i,p);var h=of(Yo,xl);if(p>=0&&h<f)u=p,f=h;else{Dp[0]=Fa(e,r,a,g),Dp[1]=Fa(t,n,i,g);var m=of(Dp,xl);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Fa(e,r,a,u),l[1]=Fa(t,n,i,u)),sf(f)}function fpe(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Fa(e,r,a,d),v=Fa(t,n,i,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var dpe=/cubic-bezier\(([0-9,\.e ]+)\)/;function _O(e){var t=e&&dpe.exec(e);if(t){var r=t[1].split(","),n=+Qo(r[0]),a=+Qo(r[1]),i=+Qo(r[2]),o=+Qo(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ux(0,n,i,1,l,s)&&wa(0,a,o,1,s[0])}}}var hpe=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Wn,this.ondestroy=t.ondestroy||Wn,this.onrestart=t.onrestart||Wn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;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%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Tt(t)?t:VY[t]||_O(t)},e}();const vpe=hpe;var YY=function(){function e(t){this.value=t}return e}(),ppe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new YY(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),gpe=function(){function e(t){this._list=new ppe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new YY(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Vg=gpe;var YB={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 Hs(e){return e=Math.round(e),e<0?0:e>255?255:e}function mpe(e){return e=Math.round(e),e<0?0:e>360?360:e}function L0(e){return e<0?0:e>1?1:e}function gC(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hs(parseFloat(t)/100*255):Hs(parseInt(t,10))}function _h(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?L0(parseFloat(t)/100):L0(parseFloat(t))}function mC(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Yc(e,t,r){return e+(t-e)*r}function Vo(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function vP(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var jY=new Vg(20),ib=null;function bv(e,t){ib&&vP(ib,t),ib=jY.put(e,ib||t.slice())}function Za(e,t){if(e){t=t||[];var r=jY.get(e);if(r)return vP(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in YB)return vP(t,YB[n]),bv(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Vo(t,0,0,0,1);return}return Vo(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),bv(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Vo(t,0,0,0,1);return}return Vo(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),bv(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Vo(t,+u[0],+u[1],+u[2],1):Vo(t,0,0,0,1);c=_h(u.pop());case"rgb":if(u.length>=3)return Vo(t,gC(u[0]),gC(u[1]),gC(u[2]),u.length===3?c:_h(u[3])),bv(e,t),t;Vo(t,0,0,0,1);return;case"hsla":if(u.length!==4){Vo(t,0,0,0,1);return}return u[3]=_h(u[3]),pP(u,t),bv(e,t),t;case"hsl":if(u.length!==3){Vo(t,0,0,0,1);return}return pP(u,t),bv(e,t),t;default:return}}Vo(t,0,0,0,1)}}function pP(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=_h(e[1]),a=_h(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Vo(t,Hs(mC(o,i,r+1/3)*255),Hs(mC(o,i,r)*255),Hs(mC(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ype(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o,d=((i-n)/6+o/2)/o;t===i?l=d-f:r===i?l=1/3+c-d:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function Nh(e,t){var r=Za(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Gs(r,r.length===4?"rgba":"rgb")}}function _pe(e){var t=Za(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Gy(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=Hs(Yc(o[0],s[0],l)),r[1]=Hs(Yc(o[1],s[1],l)),r[2]=Hs(Yc(o[2],s[2],l)),r[3]=L0(Yc(o[3],s[3],l)),r}}var bpe=Gy;function bO(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Za(t[a]),s=Za(t[i]),l=n-a,u=Gs([Hs(Yc(o[0],s[0],l)),Hs(Yc(o[1],s[1],l)),Hs(Yc(o[2],s[2],l)),L0(Yc(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}var wpe=bO;function Pp(e,t,r,n){var a=Za(e);if(e)return a=ype(a),t!=null&&(a[0]=mpe(t)),r!=null&&(a[1]=_h(r)),n!=null&&(a[2]=_h(n)),Gs(pP(a),"rgba")}function I0(e,t){var r=Za(e);if(r&&t!=null)return r[3]=L0(t),Gs(r,"rgba")}function Gs(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function R0(e,t){var r=Za(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function Spe(){return Gs([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const xpe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Gy,fastMapToColor:bpe,lerp:bO,lift:Nh,lum:R0,mapToColor:wpe,modifyAlpha:I0,modifyHSL:Pp,parse:Za,random:Spe,stringify:Gs,toHex:_pe},Symbol.toStringTag,{value:"Module"}));var cx=Math.round;function O0(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Za(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var jB=1e-4;function jc(e){return e<jB&&e>-jB}function ob(e){return cx(e*1e3)/1e3}function gP(e){return cx(e*1e4)/1e4}function Ape(e){return"matrix("+ob(e[0])+","+ob(e[1])+","+ob(e[2])+","+ob(e[3])+","+gP(e[4])+","+gP(e[5])+")"}var Tpe={left:"start",right:"end",center:"middle",middle:"middle"};function Cpe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Epe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Mpe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function KY(e){return e&&!!e.image}function Dpe(e){return e&&!!e.svgElement}function wO(e){return KY(e)||Dpe(e)}function XY(e){return e.type==="linear"}function ZY(e){return e.type==="radial"}function qY(e){return e&&(e.type==="linear"||e.type==="radial")}function bA(e){return"url(#"+e+")"}function QY(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function JY(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Vy,a=Qt(e.scaleX,1),i=Qt(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+cx(o*Vy)+"deg, "+cx(s*Vy)+"deg)"),l.join(" ")}var Ppe=function(){return Cr.hasGlobalWindow&&Tt(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),mP=Array.prototype.slice;function gu(e,t,r){return(t-e)*r+e}function yC(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=gu(t[i],r[i],n);return e}function Lpe(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=gu(t[o][s],r[o][s],n)}return e}function sb(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function KB(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Ipe(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function Rpe(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:mP.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function Uy(e){if(ei(e)){var t=e.length;if(ei(e[0])){for(var r=[],n=0;n<t;n++)r.push(mP.call(e[n]));return r}return mP.call(e)}return e}function Kw(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Ope(e){return ei(e&&e[0])?2:1}var lb=0,Xw=1,ej=2,py=3,yP=4,_P=5,XB=6;function ZB(e){return e===yP||e===_P}function ub(e){return e===Xw||e===ej}var Cm=[0,0,0,0],kpe=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=XB,l=r;if(ei(r)){var u=Ope(r);s=u,(u===1&&!Mr(r[0])||u===2&&!Mr(r[0][0]))&&(o=!0)}else if(Mr(r)&&!Zp(r))s=lb;else if(rt(r))if(!isNaN(+r))s=lb;else{var c=Za(r);c&&(l=c,s=py)}else if(J_(r)){var f=Ie({},l);f.colorStops=Fe(r.colorStops,function(h){return{offset:h.offset,color:Za(h.color)}}),XY(r)?s=yP:ZY(r)&&(s=_P),l=f}i===0?this.valType=s:(s!==this.valType||s===XB)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Tt(n)?n:VY[n]||_O(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=ub(a),u=ZB(a),c=0;c<i;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==i-1?Rpe(d,h,a):u&&Ipe(d.colorStops,h.colorStops))}if(!s&&a!==_P&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<i;c++)a===lb?n[c].additiveValue=n[c].value-v:a===py?n[c].additiveValue=sb([],n[c].value,v,-1):ub(a)&&(n[c].additiveValue=a===Xw?sb([],n[c].value,v,-1):KB([],n[c].value,v,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"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,v;if(s===1)h=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?Cm:t[l];if((ub(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(ub(i))i===Xw?yC(y,h[a],v[a],m):Lpe(y,h[a],v[a],m);else if(ZB(i)){var _=h[a],w=v[a],x=i===yP;t[l]={type:x?"linear":"radial",x:gu(_.x,w.x,m),y:gu(_.y,w.y,m),colorStops:Fe(_.colorStops,function(T,A){var C=w.colorStops[A];return{offset:gu(T.offset,C.offset,m),color:Kw(yC([],T.color,C.color,m))}}),global:w.global},x?(t[l].x2=gu(_.x2,w.x2,m),t[l].y2=gu(_.y2,w.y2,m)):t[l].r=gu(_.r,w.r,m)}else if(u)yC(y,h[a],v[a],m),n||(t[l]=Kw(y));else{var S=gu(h[a],v[a],m);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===lb?t[n]=t[n]+a:r===py?(Za(t[n],Cm),sb(Cm,Cm,a,1),t[n]=Kw(Cm)):r===Xw?sb(t[n],t[n],a,1):r===ej&&KB(t[n],t[n],a,1)},e}(),Npe=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){vA("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,vr(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new kpe(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=Kw(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Uy(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Uy(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],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&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new vpe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Fe(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?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(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Uy(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||vr(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const wA=Npe;function fp(){return new Date().getTime()}var Bpe=function(e){bn(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=fp()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(qp(n),!r._paused&&r.update())}qp(n)},t.prototype.start=function(){this._running||(this._time=fp(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=fp(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=fp()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new wA(r,n.loop);return this.addAnimator(a),a},t}(gs);const Fpe=Bpe;var Vpe=300,_C=Cr.domSupported,bC=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Fe(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),qB={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},QB=!1;function bP(e){var t=e.pointerType;return t==="pen"||t==="touch"}function zpe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function wC(e){e&&(e.zrByTouch=!0)}function Hpe(e,t){return zo(e.dom,new Gpe(e,t),!0)}function tj(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Gpe=function(){function e(t,r){this.stopPropagation=Wn,this.stopImmediatePropagation=Wn,this.preventDefault=Wn,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ms={mousedown:function(e){e=zo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=zo(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=zo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=zo(this.dom,e);var t=e.toElement||e.relatedTarget;tj(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){QB=!0,e=zo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){QB||(e=zo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=zo(this.dom,e),wC(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ms.mousemove.call(this,e),Ms.mousedown.call(this,e)},touchmove:function(e){e=zo(this.dom,e),wC(e),this.handler.processGesture(e,"change"),Ms.mousemove.call(this,e)},touchend:function(e){e=zo(this.dom,e),wC(e),this.handler.processGesture(e,"end"),Ms.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Vpe&&Ms.click.call(this,e)},pointerdown:function(e){Ms.mousedown.call(this,e)},pointermove:function(e){bP(e)||Ms.mousemove.call(this,e)},pointerup:function(e){Ms.mouseup.call(this,e)},pointerout:function(e){bP(e)||Ms.mouseout.call(this,e)}};W(["click","dblclick","contextmenu"],function(e){Ms[e]=function(t){t=zo(this.dom,t),this.trigger(e,t)}});var wP={pointermove:function(e){bP(e)||wP.mousemove.call(this,e)},pointerup:function(e){wP.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Upe(e,t){var r=t.domHandlers;Cr.pointerEventsSupported?W(bC.pointer,function(n){Zw(t,n,function(a){r[n].call(e,a)})}):(Cr.touchEventsSupported&&W(bC.touch,function(n){Zw(t,n,function(a){r[n].call(e,a),zpe(t)})}),W(bC.mouse,function(n){Zw(t,n,function(a){a=yO(a),t.touching||r[n].call(e,a)})}))}function $pe(e,t){Cr.pointerEventsSupported?W(qB.pointer,r):Cr.touchEventsSupported||W(qB.mouse,r);function r(n){function a(i){i=yO(i),tj(e,i.target)||(i=Hpe(e,i),t.domHandlers[n].call(e,i))}Zw(t,n,a,{capture:!0})}}function Zw(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,dP(e.domTarget,t,r,n)}function SC(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Yve(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var JB=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Wpe=function(e){bn(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new JB(r,Ms),_C&&(a._globalHandlerScope=new JB(document,wP)),Upe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){SC(this._localHandlerScope),_C&&SC(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,_C&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?$pe(this,n):SC(n)}},t}(gs);const Ype=Wpe;var rj=1;Cr.hasGlobalWindow&&(rj=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var fx=rj,SP=.4,xP="#333",AP="#ccc",jpe="#eee",e5=t1,t5=5e-5;function nd(e){return e>t5||e<-t5}var ad=[],wv=[],xC=lo(),AC=Math.abs,Kpe=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return nd(this.rotation)||nd(this.x)||nd(this.y)||nd(this.scaleX-1)||nd(this.scaleY-1)||nd(this.skewX)||nd(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(e5(n),this.invTransform=null);return}n=n||lo(),r?this.getLocalTransform(n):e5(n),t&&(r?Rl(n,t,n):yA(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ad);var n=ad[0]<0?-1:1,a=ad[1]<0?-1:1,i=((ad[0]-n)*r+n)/ad[0]||0,o=((ad[1]-a)*r+a)/ad[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||lo(),kf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(Rl(wv,t.invTransform,r),r=wv);var n=this.originX,a=this.originY;(n||a)&&(xC[4]=n,xC[5]=a,Rl(wv,r,xC),wv[4]-=n,wv[5]-=a,r=wv),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&va(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&va(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&AC(t[0]-1)>1e-10&&AC(t[3]-1)>1e-10?Math.sqrt(AC(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){nj(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var v=n+s,p=a+l;r[4]=-v*i-d*p*o,r[5]=-p*o-h*v*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=d*o,u&&Of(r,r,u),r[4]+=n+c,r[5]+=a+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Vl=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nj(e,t){for(var r=0;r<Vl.length;r++){var n=Vl[r];e[n]=t[n]}}const Eu=Kpe;var r5={};function Ao(e,t){t=t||gf;var r=r5[t];r||(r=r5[t]=new Vg(500));var n=r.get(e);return n==null&&(n=Xs.measureText(e,t).width,r.put(e,n)),n}function n5(e,t,r,n){var a=Ao(e,t),i=SA(t),o=gy(0,a,r),s=tp(0,i,n),l=new Xt(o,s,a,i);return l}function r1(e,t,r,n){var a=((e||"")+"").split(`
|
||
`),i=a.length;if(i===1)return n5(a[0],t,r,n);for(var o=new Xt(0,0,0,0),s=0;s<a.length;s++){var l=n5(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function gy(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function tp(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function SA(e){return Ao("国",e)}function qs(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function dx(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=qs(n[0],r.width),u+=qs(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var TC="__zr_normal__",CC=Vl.concat(["ignore"]),Xpe=Co(Vl,function(e,t){return e[t]=!0,e},{ignore:!1}),Sv={},Zpe=new Xt(0,0,0,0),SO=function(){function e(t){this.id=pO(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var c=Zpe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Sv,n,c):dx(Sv,n,c),i.x=Sv.x,i.y=Sv.y,o=Sv.align,s=Sv.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=qs(f[0],c.width),h=qs(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=_o,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?AP:xP},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Za(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Gs(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Ie(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Mt(t))for(var n=t,a=vr(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==TC)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,CC)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(TC,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===TC,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(tr(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){vA("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_o),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_o)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=tr(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=tr(a,t),o=tr(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];Ie(r,i),i.textConfig&&(n=n||{},Ie(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=Ie({},a?this.textConfig:n.textConfig),Ie(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<CC.length;c++){var f=CC[c],d=i&&Xpe[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Eu,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ie(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=_o;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this,i=new wA(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=tr(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){EC(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){EC(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=EC(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=_o;function r(n,a,i,o){Object.defineProperty(t,n,{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&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Kn(SO,gs);Kn(SO,Eu);function EC(e,t,r,n,a){r=r||{};var i=[];aj(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.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&&r.during&&i[0].during(function(v,p){r.during(p)});for(var d=0;d<i.length;d++){var h=i[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function MC(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function qpe(e){return ei(e[0])}function Qpe(e,t,r){if(ei(t[r]))if(ei(e[r])||(e[r]=[]),so(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),MC(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(qpe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?MC(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else MC(i,a,o);i.length=a.length}else e[r]=t[r]}function Jpe(e,t){return e===t||ei(e)&&ei(t)&&ege(e,t)}function ege(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function aj(e,t,r,n,a,i,o,s){for(var l=vr(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!Mt(i),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||i[m]))if(Mt(y)&&!ei(y)&&!J_(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}aj(e,m,r[m],y,a,i&&i[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var w=0;w<v.length;w++){var x=v[w];if(x.targetName===t){var S=x.stopTracks(p);if(S){var T=tr(v,x);v.splice(T,1)}}}if(a.force||(p=Yr(p,function(E){return!Jpe(n[E],r[E])}),_=p.length),_>0||a.force&&!o.length){var A=void 0,C=void 0,M=void 0;if(s){C={},d&&(A={});for(var w=0;w<_;w++){var m=p[w];C[m]=r[m],d?A[m]=n[m]:r[m]=n[m]}}else if(d){M={};for(var w=0;w<_;w++){var m=p[w];M[m]=Uy(r[m]),Qpe(r,n,m)}}var x=new wA(r,!1,!1,f?Yr(v,function(D){return D.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&A&&x.whenWithKeys(0,A,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?C:n,p).delay(c||0),e.addAnimator(x,t),o.push(x)}}const ij=SO;var oj=function(e){bn(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=tr(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=tr(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new Xt(0,0,0,0),a=r||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?(Xt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(ij);oj.prototype.type="group";const Ot=oj;/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var qw={},qd={};function tge(e){delete qd[e]}function rge(e){if(!e)return!1;if(typeof e=="string")return R0(e,1)<SP;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=R0(t[a].color,1);return r/=n,r<SP}return!1}var nge=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new lpe,o=n.renderer||"canvas";qw[o]||(o=vr(qw)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new qw[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Cr.node&&!Cr.worker&&!l?new Ype(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Cr.touchEventsSupported:!!c,d=44,h;f&&(h=Qt(n.pointerSize,d)),this.handler=new npe(i,s,u,s.root,h),this.animation=new Fpe({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=rge(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=fp();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=fp();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Ot&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,tge(this.id)},e}();function hx(e,t){var r=new nge(pO(),e,t);return qd[r.id]=r,r}function age(e){e.dispose()}function ige(){for(var e in qd)qd.hasOwnProperty(e)&&qd[e].dispose();qd={}}function oge(e){return qd[e]}function sj(e,t){qw[e]=t}var sge="5.4.4";const lge=Object.freeze(Object.defineProperty({__proto__:null,dispose:age,disposeAll:ige,getInstance:oge,init:hx,registerPainter:sj,version:sge},Symbol.toStringTag,{value:"Module"}));var a5=1e-4,lj=20;function uge(e){return e.replace(/^\s+|\s+$/g,"")}function Vr(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function Je(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return rt(e)?uge(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function yn(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),lj),e=(+e).toFixed(t),r?e:+e}function wo(e){return e.sort(function(t,r){return t-r}),e}function Ns(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return xA(e)}function xA(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function xO(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function cge(e,t,r){if(!e[t])return 0;var n=uj(e,r);return n[t]||0}function uj(e,t){var r=Co(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=Fe(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=Fe(a,function(h){return Math.floor(h)}),s=Co(o,function(h,v){return h+v},0),l=Fe(a,function(h,v){return h-o[v]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Fe(o,function(h){return h/n})}function fge(e,t){var r=Math.max(Ns(e),Ns(t)),n=e+t;return r>lj?n:yn(n,r)}var TP=9007199254740991;function AO(e){var t=Math.PI*2;return(e%t+t)%t}function k0(e){return e>-a5&&e<a5}var dge=/^(?:(\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 uo(e){if(e instanceof Date)return e;if(rt(e)){var t=dge.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function cj(e){return Math.pow(10,AA(e))}function AA(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function TO(e,t){var r=AA(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Qw(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function CP(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function zl(e){var t=parseFloat(e);return t==e&&(t!==0||!rt(e)||e.indexOf("x")<=0)?t:NaN}function CO(e){return!isNaN(zl(e))}function fj(){return Math.round(Math.random()*9)}function dj(e,t){return t===0?e:dj(t,e%t)}function i5(e,t){return e==null?t:t==null?e:e*t/dj(e,t)}function Gr(e){throw new Error(e)}function o5(e,t,r){return(t-e)*r+e}var hj="series\0",vj="\0_ec_\0";function tn(e){return e instanceof Array?e:e==null?[]:[e]}function Bh(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var s5=["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 zg(e){return Mt(e)&&!Ne(e)&&!(e instanceof Date)?e.value:e}function hge(e){return Mt(e)&&!(e instanceof Array)}function pj(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=_t();W(t,function(l,u){if(!Mt(l)){t[u]=null;return}});var s=vge(e,o,r);return(n||a)&&pge(s,e,o,t),n&&gge(s,t),n||a?mge(s,t,a):i&&yge(s,t),_ge(s),s}function vge(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||N0(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function pge(e,t,r,n){W(n,function(a,i){if(!(!a||a.id==null)){var o=$y(a.id),s=r.get(o);if(s!=null){var l=e[s];ci(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function gge(e,t){W(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!N0(r)&&!N0(i)&&gj("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function mge(e,t,r){W(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||N0(a.existing)||a.existing&&n.id!=null&&!gj("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function yge(e,t){W(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function _ge(e){var t=_t();W(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),W(e,function(r){var n=r.newOption;ci(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),W(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(Mt(i)){if(o.name=i.name!=null?$y(i.name):a?a.name:hj+n,a)o.id=$y(a.id);else if(i.id!=null)o.id=$y(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function gj(e,t,r){var n=ha(t[e],null),a=ha(r[e],null);return n!=null&&a!=null&&n===a}function $y(e){return ha(e,"")}function ha(e,t){return e==null?t:rt(e)?e:Mr(e)||ix(e)?e+"":t}function EO(e){var t=e.name;return!!(t&&t.indexOf(hj))}function N0(e){return e&&e.id!=null&&$y(e.id).indexOf(vj)===0}function bge(e){return vj+e}function wge(e,t,r){W(e,function(n){var a=n.newOption;Mt(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Sge(t,a,n.existing,r))})}function Sge(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function xge(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=ha(o[u].seriesId,null);if(f==null)return;for(var d=tn(o[u].dataIndex),h=l&&l[f],v=0,p=d.length;v<p;v++){var g=d[v];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Fh(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ne(t.dataIndex)?Fe(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ne(t.name)?Fe(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Pr(){var e="__ec_inner_"+Age++;return function(t){return t[e]||(t[e]={})}}var Age=fj();function Wy(e,t,r){var n=MO(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=n1(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function MO(e,t){var r;if(rt(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=_t(),i={},o=!1;return W(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&tr(t.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var ia={useDefault:!0,enableAll:!1,enableNone:!1},Tge={useDefault:!1,enableAll:!0,enableNone:!0};function n1(e,t,r,n){n=n||ia;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(ci(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(ci(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function mj(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Cge(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Ege(e){return e==="auto"?Cr.domSupported?"html":"richText":e||"html"}function EP(e,t){var r=_t(),n=[];return W(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function yj(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Mr(n)){var o=o5(r||0,n,a);return yn(o,i?Math.max(Ns(r||0),Ns(n)):t)}else{if(rt(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=o5(h,v,a);s[f]=yn(o,i?Math.max(Ns(h),Ns(v)):t)}}return s}}var Mge=".",id="___EC__COMPONENT__CONTAINER___",_j="___EC__EXTENDED_CLASS___";function El(e){var t={main:"",sub:""};if(e){var r=e.split(Mge);t.main=r[0]||"",t.sub=r[1]||""}return t}function Dge(e){ci(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Pge(e){return!!(e&&e[_j])}function DO(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return Lge(n)?a=function(i){De(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Q_(a,this)),Ie(a.prototype,r),a[_j]=!0,a.extend=this.extend,a.superCall=Oge,a.superApply=kge,a.superClass=n,a}}function Lge(e){return Tt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function bj(e,t){e.extend=t.extend}var Ige=Math.round(Math.random()*10);function Rge(e){var t=["__\0is_clz",Ige++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Oge(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function kge(e,t,r){return this.superClass.prototype[t].apply(e,r)}function TA(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){Dge(a),n.prototype.type=a;var i=El(a);if(!i.sub)t[i.main]=n;else if(i.sub!==id){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[id]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=El(n),i=[],o=t[a.main];return o&&o[id]?W(o,function(s,l){l!==id&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=El(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return W(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=El(n),i=t[a.main];return i&&i[id]};function r(n){var a=t[n.main];return(!a||!a[id])&&(a=t[n.main]={},a[id]=!0),a}}function Vh(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&tr(a,l)>=0||i&&tr(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Nge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Bge=Vh(Nge),Fge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Bge(this,t,r)},e}(),MP=new Vg(50);function Vge(e){if(typeof e=="string"){var t=MP.get(e);return t&&t.image}else return e}function PO(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=MP.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!CA(t)&&i.pending.push(o)):(t=Xs.loadImage(e,l5,l5),t.__zrImageSrc=e,MP.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function l5(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function CA(e){return e&&e.width&&e.height}var DC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function wj(e,t,r,n,a){if(!t)return"";var i=(e+"").split(`
|
||
`);a=Sj(t,r,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=xj(i[o],a);return i.join(`
|
||
`)}function Sj(e,t,r,n){n=n||{};var a=Ie({},n);a.font=t,r=Qt(r,"..."),a.maxIterations=Qt(n.maxIterations,2);var i=a.minChar=Qt(n.minChar,0);a.cnCharWidth=Ao("国",t);var o=a.ascCharWidth=Ao("a",t);a.placeholder=Qt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ao(r,t);return u>s&&(r="",u=0),s=e-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function xj(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var i=Ao(e,n);if(i<=r)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?zge(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Ao(e,n)}return e===""&&(e=t.placeholder),e}function zge(e,t,r,n){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function Hge(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,i=r==="truncate",o=SA(a),s=Qt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?Aj(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
|
||
`):[];var d=f.length*s,h=Qt(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&i&&c!=null)for(var p=Sj(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=xj(f[g],p);for(var m=h,y=0,g=0;g<f.length;g++)y=Math.max(Ao(f[g],a),y);c==null&&(c=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],c+=n[1]+n[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:c}}var Gge=function(){function e(){}return e}(),u5=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Uge=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function $ge(e,t){var r=new Uge;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=DC.lastIndex=0,l;(l=DC.exec(e))!=null;){var u=l.index;u>s&&PC(r,e.substring(s,u),t,o),PC(r,l[2],t,o,l[1]),s=DC.lastIndex}s<e.length&&PC(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=i==="truncate",p=t.lineOverflow==="truncate";function g(B,k,z){B.width=k,B.lineHeight=z,f+=z,d=Math.max(d,k)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],_=0,w=0,x=0;x<y.tokens.length;x++){var S=y.tokens[x],T=S.styleName&&t.rich[S.styleName]||{},A=S.textPadding=T.padding,C=A?A[1]+A[3]:0,M=S.font=T.font||t.font;S.contentHeight=SA(M);var E=Qt(T.height,S.contentHeight);if(S.innerHeight=E,A&&(E+=A[0]+A[2]),S.height=E,S.lineHeight=zs(T.lineHeight,t.lineHeight,E),S.align=T&&T.align||t.align,S.verticalAlign=T&&T.verticalAlign||"middle",p&&a!=null&&f+S.lineHeight>a){x>0?(y.tokens=y.tokens.slice(0,x),g(y,w,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var D=T.width,P=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")S.percentWidth=D,c.push(S),S.contentWidth=Ao(S.text,M);else{if(P){var L=T.backgroundColor,I=L&&L.image;I&&(I=Vge(I),CA(I)&&(S.width=Math.max(S.width,I.width*E/I.height)))}var O=v&&n!=null?n-w:null;O!=null&&O<S.width?!P||O<C?(S.text="",S.width=S.contentWidth=0):(S.text=wj(S.text,O-C,M,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=Ao(S.text,M)):S.contentWidth=Ao(S.text,M)}S.width+=C,w+=S.width,T&&(_=Math.max(_,S.lineHeight))}g(y,w,_)}r.outerWidth=r.width=Qt(n,d),r.outerHeight=r.height=Qt(a,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var S=c[m],R=S.percentWidth;S.width=parseInt(R,10)/100*r.width}return r}function PC(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=qs(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
|
||
`),u=!0),n.accumWidth=v}else{var p=Aj(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
|
||
`);for(var g=0;g<c.length;g++){var m=c[g],y=new Gge;if(y.styleName=a,y.text=m,y.isLineHolder=!m&&!i,typeof o.width=="number"?y.width=o.width:y.width=f?f[g]:Ao(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new u5)).tokens,w=_.length;w===1&&_[0].isLineHolder?_[0]=y:(m||!w||i)&&_.push(y)}else s.push(new u5([y]))}}function Wge(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Yge=Co(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function jge(e){return Wge(e)?!!Yge[e]:!0}function Aj(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
||
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Ao(d,t),v=n?!1:!jge(d);if(i.length?c+h>r:a+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):v?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var DP="__zr_style_"+Math.round(Math.random()*10),bh={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},EA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bh[DP]=!0;var c5=["z","z2","invisible"],Kge=["invisible"],Xge=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=vr(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Zge(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Xt(0,0,0,0)),n?Xt.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Xt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Ie(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=vy,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&vy)},t.prototype.styleUpdated=function(){this.__dirty&=~vy},t.prototype.createStyle=function(r){return e1(bh,r)},t.prototype.useStyle=function(r){r[DP]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[DP]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,c5)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=vr(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=vr(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?Kge:c5,d=0;d<p.length;d++){var h=p[d];n&&n[h]!=null?this[h]=n[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return Ie(r,n),r},t.prototype.getAnimationStyleProps=function(){return EA},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=_o|vy}(),t}(ij),LC=new Xt(0,0,0,0),IC=new Xt(0,0,0,0);function Zge(e,t,r){return LC.copy(e.getBoundingRect()),e.transform&&LC.applyTransform(e.transform),IC.width=t,IC.height=r,!LC.intersect(IC)}const ss=Xge;var Zi=Math.min,qi=Math.max,RC=Math.sin,OC=Math.cos,od=Math.PI*2,cb=Rf(),fb=Rf(),db=Rf();function MA(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=Zi(a,n[0]),i=qi(i,n[0]),o=Zi(o,n[1]),s=qi(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function f5(e,t,r,n,a,i){a[0]=Zi(e,r),a[1]=Zi(t,n),i[0]=qi(e,r),i[1]=qi(t,n)}var d5=[],h5=[];function qge(e,t,r,n,a,i,o,s,l,u){var c=GY,f=wa,d=c(e,r,a,o,d5);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,a,o,d5[h]);l[0]=Zi(v,l[0]),u[0]=qi(v,u[0])}d=c(t,n,i,s,h5);for(var h=0;h<d;h++){var p=f(t,n,i,s,h5[h]);l[1]=Zi(p,l[1]),u[1]=qi(p,u[1])}l[0]=Zi(e,l[0]),u[0]=qi(e,u[0]),l[0]=Zi(o,l[0]),u[0]=qi(o,u[0]),l[1]=Zi(t,l[1]),u[1]=qi(t,u[1]),l[1]=Zi(s,l[1]),u[1]=qi(s,u[1])}function Qge(e,t,r,n,a,i,o,s){var l=$Y,u=Fa,c=qi(Zi(l(e,r,a),1),0),f=qi(Zi(l(t,n,i),1),0),d=u(e,r,a,c),h=u(t,n,i,f);o[0]=Zi(e,a,d),o[1]=Zi(t,i,h),s[0]=qi(e,a,d),s[1]=qi(t,i,h)}function Jge(e,t,r,n,a,i,o,s,l){var u=Tu,c=Cu,f=Math.abs(a-i);if(f%od<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(cb[0]=OC(a)*r+e,cb[1]=RC(a)*n+t,fb[0]=OC(i)*r+e,fb[1]=RC(i)*n+t,u(s,cb,fb),c(l,cb,fb),a=a%od,a<0&&(a=a+od),i=i%od,i<0&&(i=i+od),a>i&&!o?i+=od:a<i&&o&&(a+=od),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(db[0]=OC(h)*r+e,db[1]=RC(h)*n+t,u(s,db,s),c(l,db,l))}var on={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},sd=[],ld=[],cl=[],pc=[],fl=[],dl=[],kC=Math.min,NC=Math.max,ud=Math.cos,cd=Math.sin,iu=Math.abs,PP=Math.PI,Lc=PP*2,BC=typeof Float32Array<"u",Em=[];function FC(e){var t=Math.round(e/PP*1e8)/1e8;return t%2*PP}function Tj(e,t){var r=FC(e[0]);r<0&&(r+=Lc);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Lc?a=r+Lc:t&&r-a>=Lc?a=r-Lc:!t&&r>a?a=r+(Lc-FC(r-a)):t&&r<a&&(a=r-(Lc-FC(a-r))),e[0]=r,e[1]=a}var eme=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=iu(n/fx/t)||0,this._uy=iu(n/fx/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(on.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=iu(t-this._xi),a=iu(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(on.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(on.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(on.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),Em[0]=a,Em[1]=i,Tj(Em,o),a=Em[0],i=Em[1];var s=i-a;return this.addData(on.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=ud(i)*n+t,this._yi=cd(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(on.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(on.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&BC&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();BC&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,BC&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){cl[0]=cl[1]=fl[0]=fl[1]=Number.MAX_VALUE,pc[0]=pc[1]=dl[0]=dl[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case on.M:r=a=t[o++],n=i=t[o++],fl[0]=a,fl[1]=i,dl[0]=a,dl[1]=i;break;case on.L:f5(r,n,t[o],t[o+1],fl,dl),r=t[o++],n=t[o++];break;case on.C:qge(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],fl,dl),r=t[o++],n=t[o++];break;case on.Q:Qge(r,n,t[o++],t[o++],t[o],t[o+1],fl,dl),r=t[o++],n=t[o++];break;case on.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(a=ud(h)*f+u,i=cd(h)*d+c),Jge(u,c,f,d,h,v,p,fl,dl),r=ud(v)*f+u,n=cd(v)*d+c;break;case on.R:a=r=t[o++],i=n=t[o++];var g=t[o++],m=t[o++];f5(a,i,a+g,i+m,fl,dl);break;case on.Z:r=a,n=i;break}Tu(cl,cl,fl),Cu(pc,pc,dl)}return o===0&&(cl[0]=cl[1]=pc[0]=pc[1]=0),new Xt(cl[0],cl[1],pc[0]-cl[0],pc[1]-cl[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=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<r;){var h=t[d++],v=d===1;v&&(i=t[d],o=t[d+1],s=i,l=o);var p=-1;switch(h){case on.M:i=s=t[d++],o=l=t[d++];break;case on.L:{var g=t[d++],m=t[d++],y=g-i,_=m-o;(iu(y)>n||iu(_)>a||d===r-1)&&(p=Math.sqrt(y*y+_*_),i=g,o=m);break}case on.C:{var w=t[d++],x=t[d++],g=t[d++],m=t[d++],S=t[d++],T=t[d++];p=upe(i,o,w,x,g,m,S,T,10),i=S,o=T;break}case on.Q:{var w=t[d++],x=t[d++],g=t[d++],m=t[d++];p=fpe(i,o,w,x,g,m,10),i=g,o=m;break}case on.A:var A=t[d++],C=t[d++],M=t[d++],E=t[d++],D=t[d++],P=t[d++],L=P+D;d+=1,t[d++],v&&(s=ud(D)*M+A,l=cd(D)*E+C),p=NC(M,E)*kC(Lc,Math.abs(P)),i=ud(L)*M+A,o=cd(L)*E+C;break;case on.R:{s=i=t[d++],l=o=t[d++];var I=t[d++],O=t[d++];p=I*2+O*2;break}case on.Z:{var y=s-i,_=l-o;p=Math.sqrt(y*y+_*_),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,v,p,g=0,m=0,y,_=0,w,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y)))e:for(var S=0;S<o;){var T=n[S++],A=S===1;switch(A&&(u=n[S],c=n[S+1],s=u,l=c),T!==on.L&&_>0&&(t.lineTo(w,x),_=0),T){case on.M:s=u=n[S++],l=c=n[S++],t.moveTo(u,c);break;case on.L:{f=n[S++],d=n[S++];var C=iu(f-u),M=iu(d-c);if(C>a||M>i){if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;t.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}g+=E}t.lineTo(f,d),u=f,c=d,_=0}else{var P=C*C+M*M;P>_&&(w=f,x=d,_=P)}break}case on.C:{var L=n[S++],I=n[S++],O=n[S++],R=n[S++],B=n[S++],k=n[S++];if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;mf(u,L,O,B,D,sd),mf(c,I,R,k,D,ld),t.bezierCurveTo(sd[1],ld[1],sd[2],ld[2],sd[3],ld[3]);break e}g+=E}t.bezierCurveTo(L,I,O,R,B,k),u=B,c=k;break}case on.Q:{var L=n[S++],I=n[S++],O=n[S++],R=n[S++];if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;P0(u,L,O,D,sd),P0(c,I,R,D,ld),t.quadraticCurveTo(sd[1],ld[1],sd[2],ld[2]);break e}g+=E}t.quadraticCurveTo(L,I,O,R),u=O,c=R;break}case on.A:var z=n[S++],$=n[S++],j=n[S++],X=n[S++],Q=n[S++],se=n[S++],ee=n[S++],K=!n[S++],Z=j>X?j:X,ne=iu(j-X)>.001,re=Q+se,ie=!1;if(h){var E=v[m++];g+E>y&&(re=Q+se*(y-g)/E,ie=!0),g+=E}if(ne&&t.ellipse?t.ellipse(z,$,j,X,ee,Q,re,K):t.arc(z,$,Z,Q,re,K),ie)break e;A&&(s=ud(Q)*j+z,l=cd(Q)*X+$),u=ud(re)*j+z,c=cd(re)*X+$;break;case on.R:s=u=n[S],l=c=n[S+1],f=n[S++],d=n[S++];var Y=n[S++],q=n[S++];if(h){var E=v[m++];if(g+E>y){var oe=y-g;t.moveTo(f,d),t.lineTo(f+kC(oe,Y),d),oe-=Y,oe>0&&t.lineTo(f+Y,d+kC(oe,q)),oe-=q,oe>0&&t.lineTo(f+NC(Y-oe,0),d+q),oe-=Y,oe>0&&t.lineTo(f,d+NC(q-oe,0));break e}g+=E}t.rect(f,d,Y,q);break;case on.Z:if(h){var E=v[m++];if(g+E>y){var D=(y-g)/E;t.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break e}g+=E}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=on,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Hl=eme;function yu(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function tme(e,t,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>i+f&&c>s+f||c<t-f&&c<n-f&&c<i-f&&c<s-f||u>e+f&&u>r+f&&u>a+f&&u>o+f||u<e-f&&u<r-f&&u<a-f&&u<o-f)return!1;var d=UY(e,t,r,n,a,i,o,s,u,c,null);return d<=f/2}function Cj(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=WY(e,t,r,n,a,i,s,l,null);return c<=u/2}var v5=Math.PI*2;function Bs(e){return e%=v5,e<0&&(e+=v5),e}var Mm=Math.PI*2;function rme(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%Mm<1e-4)return!0;if(i){var f=n;n=Bs(a),a=Bs(f)}else n=Bs(n),a=Bs(a);n>a&&(a+=Mm);var d=Math.atan2(l,s);return d<0&&(d+=Mm),d>=n&&d<=a||d+Mm>=n&&d+Mm<=a}function mu(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var gc=Hl.CMD,fd=Math.PI*2,nme=1e-4;function ame(e,t){return Math.abs(e-t)<nme}var Si=[-1,-1,-1],Go=[-1,-1];function ime(){var e=Go[0];Go[0]=Go[1],Go[1]=e}function ome(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var c=ux(t,n,i,s,u,Si);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Si[p],m=g===0||g===1?.5:1,y=wa(e,r,a,o,g);y<l||(d<0&&(d=GY(t,n,i,s,Go),Go[1]<Go[0]&&d>1&&ime(),h=wa(t,n,i,s,Go[0]),d>1&&(v=wa(t,n,i,s,Go[1]))),d===2?g<Go[0]?f+=h<t?m:-m:g<Go[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Go[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function sme(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=cpe(t,n,i,s,Si);if(l===0)return 0;var u=$Y(t,n,i);if(u>=0&&u<=1){for(var c=0,f=Fa(t,n,i,u),d=0;d<l;d++){var h=Si[d]===0||Si[d]===1?.5:1,v=Fa(e,r,a,Si[d]);v<o||(Si[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=Si[0]===0||Si[0]===1?.5:1,v=Fa(e,r,a,Si[0]);return v<o?0:i<t?h:-h}}function lme(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Si[0]=-l,Si[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=fd-1e-4){n=0,a=fd;var c=i?1:-1;return o>=Si[0]+e&&o<=Si[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=fd,a+=fd);for(var d=0,h=0;h<2;h++){var v=Si[h];if(v+e>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=fd+p),(p>=n&&p<=a||p+fd>=n&&p+fd<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Ej(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var p=i[v++],g=v===1;switch(p===gc.M&&v>1&&(r||(s+=mu(l,u,c,f,n,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case gc.M:c=i[v++],f=i[v++],l=c,u=f;break;case gc.L:if(r){if(yu(l,u,i[v],i[v+1],t,n,a))return!0}else s+=mu(l,u,i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case gc.C:if(r){if(tme(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=ome(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case gc.Q:if(r){if(Cj(l,u,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=sme(l,u,i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case gc.A:var m=i[v++],y=i[v++],_=i[v++],w=i[v++],x=i[v++],S=i[v++];v+=1;var T=!!(1-i[v++]);d=Math.cos(x)*_+m,h=Math.sin(x)*w+y,g?(c=d,f=h):s+=mu(l,u,d,h,n,a);var A=(n-m)*w/_+m;if(r){if(rme(m,y,w,x,x+S,T,t,A,a))return!0}else s+=lme(m,y,w,x,x+S,T,A,a);l=Math.cos(x+S)*_+m,u=Math.sin(x+S)*w+y;break;case gc.R:c=l=i[v++],f=u=i[v++];var C=i[v++],M=i[v++];if(d=c+C,h=f+M,r){if(yu(c,f,d,f,t,n,a)||yu(d,f,d,h,t,n,a)||yu(d,h,c,h,t,n,a)||yu(c,h,c,f,t,n,a))return!0}else s+=mu(d,f,d,h,n,a),s+=mu(c,h,c,f,n,a);break;case gc.Z:if(r){if(yu(l,u,c,f,t,n,a))return!0}else s+=mu(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!ame(u,f)&&(s+=mu(l,u,c,f,n,a)||0),s!==0}function ume(e,t,r){return Ej(e,0,!1,t,r)}function cme(e,t,r,n){return Ej(e,t,!0,r,n)}var vx=yt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bh),fme={style:yt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},EA.style)},VC=Vl.concat(["invisible","culling","z","z2","zlevel","parent"]),dme=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<VC.length;++s)a[VC[s]]=this[VC[s]];a.__dirty|=_o}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=vr(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?Ie(this.style,s):this.useStyle(s):o==="shape"?Ie(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(rt(r)){var n=R0(r,0);return n>.5?xP:n>.2?jpe:AP}else if(r)return AP}return xP},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(rt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=R0(r,0)<SP;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~ep},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Hl(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&ep)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),cme(s,l/u,r,n)))return!0}if(this.hasFill())return ume(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ep,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:Ie(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ep)},t.prototype.createStyle=function(r){return e1(vx,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Ie({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=Ie({},a.shape),Ie(u,n.shape)):(u=Ie({},i?this.shape:a.shape),Ie(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=Ie({},this.shape);for(var c={},f=vr(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(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return fme},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){bn(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Pt(r.style)},o.prototype.getDefaultShape=function(){return Pt(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=_o|vy|ep}(),t}(ss);const cr=dme;var hme=yt({strokeFirst:!0,font:gf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},vx),Mj=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return e1(hme,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=r1(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ss);Mj.prototype.type="tspan";const B0=Mj;var vme=yt({x:0,y:0},bh),pme={style:yt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},EA.style)};function gme(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Dj=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return e1(vme,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=gme(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return pme},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Xt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ss);Dj.prototype.type="image";const Oa=Dj;function mme(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+c,n+i),c!==0&&e.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var dp=Math.round;function Pj(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(dp(n*2)===dp(a*2)&&(e.x1=e.x2=Qd(n,s,!0)),dp(i*2)===dp(o*2)&&(e.y1=e.y2=Qd(i,s,!0))),e}}function Lj(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Qd(n,s,!0),e.y=Qd(a,s,!0),e.width=Math.max(Qd(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Qd(a+o,s,!1)-e.y,o===0?0:1)),e}}function Qd(e,t,r){if(!t)return e;var n=dp(e*2);return(n+dp(t))%2===0?n/2:(n+(r?1:-1))/2}var yme=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),_me={},Ij=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new yme},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Lj(_me,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?mme(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(cr);Ij.prototype.type="rect";const br=Ij;var p5={fill:"#000"},g5=2,bme={style:yt({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},EA.style)},Rj=function(e){bn(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p5,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,xme(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Xt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||p5},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return Ie(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=vr(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},Ie(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return bme},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||gf,a=r.padding,i=x5(r),o=Hge(i,r),s=zC(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=r.x||0,g=r.y||0,m=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,w=tp(g,o.contentHeight,y);if(s||a){var x=gy(p,c,m),S=tp(g,u,y);s&&this._renderBackground(r,r,x,S,c,u)}w+=h/2,a&&(_=S5(p,m,a),y==="top"?w+=a[0]:y==="bottom"&&(w-=a[2]));for(var T=0,A=!1,C=w5("fill"in r?r.fill:(A=!0,v.fill)),M=b5("stroke"in r?r.stroke:!l&&(!v.autoStroke||A)?(T=g5,v.stroke):null),E=r.textShadowBlur>0,D=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,L=0;L<d.length;L++){var I=this._getOrCreateChild(B0),O=I.createStyle();I.useStyle(O),O.text=d[L],O.x=_,O.y=w,m&&(O.textAlign=m),O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,E&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=M,O.fill=C,M&&(O.lineWidth=r.lineWidth||T,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=n,y5(O,r),w+=h,D&&I.setBoundingRect(new Xt(gy(O.x,r.width,O.textAlign),tp(O.y,P,O.textBaseline),f,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=x5(r),a=$ge(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=gy(u,o,d),p=tp(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+i;zC(r)&&this._renderBackground(r,r,v,p,o,s);for(var _=!!r.backgroundColor,w=0;w<a.lines.length;w++){for(var x=a.lines[w],S=x.tokens,T=S.length,A=x.lineHeight,C=x.width,M=0,E=g,D=y,P=T-1,L=void 0;M<T&&(L=S[M],!L.align||L.align==="left");)this._placeToken(L,r,A,m,E,"left",_),C-=L.width,E+=L.width,M++;for(;P>=0&&(L=S[P],L.align==="right");)this._placeToken(L,r,A,m,D,"right",_),C-=L.width,D-=L.width,P--;for(E+=(i-(E-g)-(y-D)-C)/2;M<=P;)L=S[M],this._placeToken(L,r,A,m,E+L.width/2,"center",_),E+=L.width,M++;m+=A}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=i+a/2;c==="top"?f=i+r.height/2:c==="bottom"&&(f=i+a-r.height/2);var d=!r.isLineHolder&&zC(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=S5(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(B0),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,w=w5("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),x=b5("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=g5,m.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,S&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||gf,g.opacity=zs(u.opacity,n.opacity,1),y5(g,u),x&&(g.lineWidth=zs(u.lineWidth,n.lineWidth,_),g.lineDash=Qt(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),w&&(g.fill=w);var T=r.contentWidth,A=r.contentHeight;p.setBoundingRect(new Xt(gy(g.x,T,g.textAlign),tp(g.y,A,g.textBaseline),T,A))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&c){p=this._getOrCreateChild(br),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=Qt(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Oa),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Qt(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=zs(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return kj(r)&&(n=[r.fontStyle,r.fontWeight,Oj(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Qo(n)||r.textFont||r.font},t}(ss),wme={left:!0,right:1,center:1},Sme={top:1,bottom:1,middle:1},m5=["fontStyle","fontWeight","fontSize","fontFamily"];function Oj(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?dO+"px":e+"px"}function y5(e,t){for(var r=0;r<m5.length;r++){var n=m5[r],a=t[n];a!=null&&(e[n]=a)}}function kj(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function xme(e){return _5(e),W(e.rich,_5),e}function _5(e){if(e){e.font=Rj.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||wme[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Sme[r]?r:"top";var n=e.padding;n&&(e.padding=mA(e.padding))}}function b5(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function w5(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function S5(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function x5(e){var t=e.text;return t!=null&&(t+=""),t}function zC(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const pr=Rj;var Ht=Pr(),LP=function(e,t,r,n){if(n){var a=Ht(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,n.type==="group"&&n.traverse(function(i){var o=Ht(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},A5=1,T5={},Nj=Pr(),LO=Pr(),IO=0,a1=1,DA=2,Li=["emphasis","blur","select"],F0=["normal","emphasis","blur","select"],Hg=10,Ame=9,wh="highlight",Jw="downplay",Yy="select",eS="unselect",jy="toggleSelect";function xv(e){return e!=null&&e!=="none"}var C5=new Vg(100);function E5(e){if(rt(e)){var t=C5.get(e);return t||(t=Nh(e,-.1),C5.put(e,t)),t}else if(J_(e)){var r=Ie({},e);return r.colorStops=Fe(e.colorStops,function(n){return{offset:n.offset,color:Nh(n.color,-.1)}}),r}return e}function PA(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Bj(e){PA(e,"emphasis",DA)}function Fj(e){e.hoverState===DA&&PA(e,"normal",IO)}function RO(e){PA(e,"blur",a1)}function Vj(e){e.hoverState===a1&&PA(e,"normal",IO)}function Tme(e){e.selected=!0}function Cme(e){e.selected=!1}function M5(e,t,r){t(e,r)}function ec(e,t,r){M5(e,t,r),e.isGroup&&e.traverse(function(n){M5(n,t,r)})}function px(e,t){switch(t){case"emphasis":e.hoverState=DA;break;case"normal":e.hoverState=IO;break;case"blur":e.hoverState=a1;break;case"select":e.selected=!0}}function Eme(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function Mme(e,t,r,n){var a=r&&tr(r,"select")>=0,i=!1;if(e instanceof cr){var o=Nj(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(xv(s)||xv(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=Ie({},n),u=Ie({},u),u.fill=s):!xv(u.fill)&&xv(s)?(i=!0,n=Ie({},n),u=Ie({},u),u.fill=E5(s)):!xv(u.stroke)&&xv(l)&&(i||(n=Ie({},n),u=Ie({},u)),u.stroke=E5(l)),n.style=u}}if(n&&n.z2==null){i||(n=Ie({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Hg)}return n}function Dme(e,t,r){if(r&&r.z2==null){r=Ie({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Ame)}return r}function Pme(e,t,r){var n=tr(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:Eme(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Ie({},r),o=Ie({opacity:n?a:i.opacity*.1},o),r.style=o),r}function HC(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Mme(this,e,t,r);if(e==="blur")return Pme(this,e,r);if(e==="select")return Dme(this,e,r)}return r}function zh(e){e.stateProxy=HC;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=HC),r&&(r.stateProxy=HC)}function D5(e,t){!Uj(e,t)&&!e.__highByOuter&&ec(e,Bj)}function P5(e,t){!Uj(e,t)&&!e.__highByOuter&&ec(e,Fj)}function Hu(e,t){e.__highByOuter|=1<<(t||0),ec(e,Bj)}function Gu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ec(e,Fj)}function zj(e){ec(e,RO)}function OO(e){ec(e,Vj)}function Hj(e){ec(e,Tme)}function Gj(e){ec(e,Cme)}function Uj(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function $j(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=LO(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Vj(u)}),s&&r.push(i)),o.isBlured=!1}),W(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function IP(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&OO(d)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||RO(g)}),ei(t))i(u.getData(),t);else if(Mt(t))for(var v=vr(t),p=0;p<v.length;p++)i(u.getData(v[p]),t[v[p]]);l.push(u),LO(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function RP(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){LO(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){RO(i)})}}}function Lme(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=Fh(a,t);i=(Ne(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=Ht(o);IP(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&IP(n,c,f,r)}}}function kO(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Ht(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Ime(e,t,r){var n=Ht(e),a=kO(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&RP(n.componentMainType,n.componentIndex,r),W(i,function(s){return D5(s,t)})):(IP(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&RP(n.componentMainType,n.componentIndex,r),D5(e,t))}function Rme(e,t,r){$j(r);var n=Ht(e),a=kO(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?W(a,function(i){return P5(i,t)}):P5(e,t)}function Ome(e,t,r){if(kP(t)){var n=t.dataType,a=e.getData(n),i=Fh(a,t);Ne(i)||(i=[i]),e[t.type===jy?"toggleSelect":t.type===Yy?"select":"unselect"](i,n)}}function L5(e){var t=e.getAllData();W(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?Hj(i):Gj(i)})})}function kme(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();W(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function lf(e,t,r){Jd(e,!0),ec(e,zh),OP(e,t,r)}function Nme(e){Jd(e,!1)}function Gn(e,t,r,n){n?Nme(e):lf(e,t,r)}function OP(e,t,r){var n=Ht(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var I5=["emphasis","blur","select"],Bme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ti(e,t,r,n){r=r||"itemStyle";for(var a=0;a<I5.length;a++){var i=I5[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[Bme[r]]()}}function Jd(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function V0(e){return!!(e&&e.__highDownDispatcher)}function Fme(e,t,r){var n=Ht(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function Vme(e){var t=T5[e];return t==null&&A5<=32&&(t=T5[e]=A5++),t}function kP(e){var t=e.type;return t===Yy||t===eS||t===jy}function R5(e){var t=e.type;return t===wh||t===Jw}function zme(e){var t=Nj(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Av=Hl.CMD,Hme=[[],[],[]],O5=Math.sqrt,Gme=Math.atan2;function Wj(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,c=Av.M,f=Av.C,d=Av.L,h=Av.R,v=Av.A,p=Av.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case p:i=2;break;case v:var g=t[4],m=t[5],y=O5(t[0]*t[0]+t[1]*t[1]),_=O5(t[2]*t[2]+t[3]*t[3]),w=Gme(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],va(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],va(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var x=Hme[l];x[0]=r[o++],x[1]=r[o++],va(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var GC=Math.sqrt,hb=Math.sin,vb=Math.cos,Dm=Math.PI;function k5(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function NP(e,t){return(e[0]*t[0]+e[1]*t[1])/(k5(e)*k5(t))}function N5(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(NP(e,t))}function B5(e,t,r,n,a,i,o,s,l,u,c){var f=l*(Dm/180),d=vb(f)*(e-r)/2+hb(f)*(t-n)/2,h=-1*hb(f)*(e-r)/2+vb(f)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=GC(v),s*=GC(v));var p=(a===i?-1:1)*GC((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+vb(f)*g-hb(f)*m,_=(t+n)/2+hb(f)*g+vb(f)*m,w=N5([1,0],[(d-g)/o,(h-m)/s]),x=[(d-g)/o,(h-m)/s],S=[(-1*d-g)/o,(-1*h-m)/s],T=N5(x,S);if(NP(x,S)<=-1&&(T=Dm),NP(x,S)>=1&&(T=0),T<0){var A=Math.round(T/Dm*1e6)/1e6;T=Dm*2+A%2*Dm}c.addData(u,y,_,o,s,w,T,f,i)}var Ume=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$me=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Wme(e){var t=new Hl;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Hl.CMD,l=e.match(Ume);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match($me)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,w=void 0,x=void 0,S=void 0,T=void 0,A=r,C=n,M=void 0,E=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),a=r,i=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),a=r,i=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,M=t.len(),E=t.data,o===s.C&&(m+=r-E[M-4],y+=n-E[M-3]),d=s.C,A=h[g++],C=h[g++],r=h[g++],n=h[g++],t.addData(d,m,y,A,C,r,n);break;case"s":m=r,y=n,M=t.len(),E=t.data,o===s.C&&(m+=r-E[M-4],y+=n-E[M-3]),d=s.C,A=r+h[g++],C=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,m,y,A,C,r,n);break;case"Q":A=h[g++],C=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,A,C,r,n);break;case"q":A=h[g++]+r,C=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,A,C,r,n);break;case"T":m=r,y=n,M=t.len(),E=t.data,o===s.Q&&(m+=r-E[M-4],y+=n-E[M-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"t":m=r,y=n,M=t.len(),E=t.data,o===s.Q&&(m+=r-E[M-4],y+=n-E[M-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"A":_=h[g++],w=h[g++],x=h[g++],S=h[g++],T=h[g++],A=r,C=n,r=h[g++],n=h[g++],d=s.A,B5(A,C,r,n,S,T,_,w,x,d,t);break;case"a":_=h[g++],w=h[g++],x=h[g++],S=h[g++],T=h[g++],A=r,C=n,r+=h[g++],n+=h[g++],d=s.A,B5(A,C,r,n,S,T,_,w,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=i),o=d}return t.toStatic(),t}var Yj=function(e){bn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(cr);function jj(e){return e.setData!=null}function Kj(e,t){var r=Wme(e),n=Ie({},t);return n.buildPath=function(a){if(jj(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){Wj(r,a),this.dirtyShape()},n}function Xj(e,t){return new Yj(Kj(e,t))}function Yme(e,t){var r=Kj(e,t),n=function(a){bn(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(Yj);return n}function jme(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new cr(t);return o.createPathProxy(),o.buildPath=function(s){if(jj(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function NO(e,t){t=t||{};var r=new cr;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?Wj(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var Kme=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Zj=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Kme},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(cr);Zj.prototype.type="circle";const Qs=Zj;var Xme=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),qj=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Xme},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),r.closePath()},t}(cr);qj.prototype.type="ellipse";const LA=qj;var Qj=Math.PI,UC=Qj*2,dd=Math.sin,Tv=Math.cos,Zme=Math.acos,ni=Math.atan2,F5=Math.abs,Ky=Math.sqrt,my=Math.max,hl=Math.min,Ts=1e-4;function qme(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Ts))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function pb(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/Ky(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,p=n+f,g=(d+v)/2,m=(h+p)/2,y=v-d,_=p-h,w=y*y+_*_,x=a-i,S=d*p-v*h,T=(_<0?-1:1)*Ky(my(0,x*x*w-S*S)),A=(S*_-y*T)/w,C=(-S*y-_*T)/w,M=(S*_+y*T)/w,E=(-S*y+_*T)/w,D=A-g,P=C-m,L=M-g,I=E-m;return D*D+P*P>L*L+I*I&&(A=M,C=E),{cx:A,cy:C,x0:-c,y0:-f,x1:A*(a/x-1),y1:C*(a/x-1)}}function Qme(e){var t;if(Ne(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Jme(e,t){var r,n=my(t.r,0),a=my(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=F5(u-l),v=h>UC&&h%UC;if(v>Ts&&(h=v),!(n>Ts))e.moveTo(c,f);else if(h>UC-Ts)e.moveTo(c+n*Tv(l),f+n*dd(l)),e.arc(c,f,n,l,u,!d),a>Ts&&(e.moveTo(c+a*Tv(u),f+a*dd(u)),e.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,w=void 0,x=void 0,S=void 0,T=void 0,A=void 0,C=void 0,M=void 0,E=void 0,D=void 0,P=void 0,L=void 0,I=n*Tv(l),O=n*dd(l),R=a*Tv(u),B=a*dd(u),k=h>Ts;if(k){var z=t.cornerRadius;z&&(r=Qme(z),p=r[0],g=r[1],m=r[2],y=r[3]);var $=F5(n-a)/2;if(_=hl($,m),w=hl($,y),x=hl($,p),S=hl($,g),C=T=my(_,w),M=A=my(x,S),(T>Ts||A>Ts)&&(E=n*Tv(u),D=n*dd(u),P=a*Tv(l),L=a*dd(l),h<Qj)){var j=qme(I,O,P,L,E,D,R,B);if(j){var X=I-j[0],Q=O-j[1],se=E-j[0],ee=D-j[1],K=1/dd(Zme((X*se+Q*ee)/(Ky(X*X+Q*Q)*Ky(se*se+ee*ee)))/2),Z=Ky(j[0]*j[0]+j[1]*j[1]);C=hl(T,(n-Z)/(K+1)),M=hl(A,(a-Z)/(K-1))}}}if(!k)e.moveTo(c+I,f+O);else if(C>Ts){var ne=hl(m,C),re=hl(y,C),ie=pb(P,L,I,O,n,ne,d),Y=pb(E,D,R,B,n,re,d);e.moveTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),C<T&&ne===re?e.arc(c+ie.cx,f+ie.cy,C,ni(ie.y0,ie.x0),ni(Y.y0,Y.x0),!d):(ne>0&&e.arc(c+ie.cx,f+ie.cy,ne,ni(ie.y0,ie.x0),ni(ie.y1,ie.x1),!d),e.arc(c,f,n,ni(ie.cy+ie.y1,ie.cx+ie.x1),ni(Y.cy+Y.y1,Y.cx+Y.x1),!d),re>0&&e.arc(c+Y.cx,f+Y.cy,re,ni(Y.y1,Y.x1),ni(Y.y0,Y.x0),!d))}else e.moveTo(c+I,f+O),e.arc(c,f,n,l,u,!d);if(!(a>Ts)||!k)e.lineTo(c+R,f+B);else if(M>Ts){var ne=hl(p,M),re=hl(g,M),ie=pb(R,B,E,D,a,-re,d),Y=pb(I,O,P,L,a,-ne,d);e.lineTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),M<A&&ne===re?e.arc(c+ie.cx,f+ie.cy,M,ni(ie.y0,ie.x0),ni(Y.y0,Y.x0),!d):(re>0&&e.arc(c+ie.cx,f+ie.cy,re,ni(ie.y0,ie.x0),ni(ie.y1,ie.x1),!d),e.arc(c,f,a,ni(ie.cy+ie.y1,ie.cx+ie.x1),ni(Y.cy+Y.y1,Y.cx+Y.x1),d),ne>0&&e.arc(c+Y.cx,f+Y.cy,ne,ni(Y.y1,Y.x1),ni(Y.y0,Y.x0),!d))}else e.lineTo(c+R,f+B),e.arc(c,f,a,u,l,d)}e.closePath()}}}var eye=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Jj=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eye},t.prototype.buildPath=function(r,n){Jme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(cr);Jj.prototype.type="sector";const Ii=Jj;var tye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),eK=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tye},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(cr);eK.prototype.type="ring";const i1=eK;function rye(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Tu(c,c,e[d]),Cu(f,f,e[d]);Tu(c,c,n[0]),Cu(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(Il(e[d]));continue}else l=e[d-1],u=e[d+1];$c(i,u,l),zy(i,i,t);var p=sx(v,l),g=sx(v,u),m=p+g;m!==0&&(p/=m,g/=m),zy(o,i,-p),zy(s,i,g);var y=lP([],v,o),_=lP([],v,s);n&&(Cu(y,y,c),Tu(y,y,f),Cu(_,_,c),Tu(_,_,f)),a.push(y),a.push(_)}return r&&a.push(a.shift()),a}function tK(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=rye(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var nye=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),rK=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new nye},t.prototype.buildPath=function(r,n){tK(r,n,!0)},t}(cr);rK.prototype.type="polygon";const Ri=rK;var aye=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),nK=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aye},t.prototype.buildPath=function(r,n){tK(r,n,!1)},t}(cr);nK.prototype.type="polyline";const Fi=nK;var iye={},oye=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),aK=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oye},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Pj(iye,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(cr);aK.prototype.type="line";const Ta=aK;var Gi=[],sye=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function V5(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?WB:wa)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?WB:wa)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?hP:Fa)(e.x1,e.cpx1,e.x2,t),(r?hP:Fa)(e.y1,e.cpy1,e.y2,t)]}var iK=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sye},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,i),c==null||f==null?(d<1&&(P0(a,l,o,d,Gi),l=Gi[1],o=Gi[2],P0(i,u,s,d,Gi),u=Gi[1],s=Gi[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(mf(a,l,c,o,d,Gi),l=Gi[1],c=Gi[2],o=Gi[3],mf(i,u,f,s,d,Gi),u=Gi[1],f=Gi[2],s=Gi[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return V5(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=V5(this.shape,r,!0);return tv(n,n)},t}(cr);iK.prototype.type="bezier-curve";const o1=iK;var lye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),oK=function(e){bn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new lye},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+a,f*o+i),r.arc(a,i,o,s,l,!u)},t}(cr);oK.prototype.type="arc";const IA=oK;var uye=function(e){bn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),cr.prototype.getBoundingRect.call(this)},t}(cr);const RA=uye;var cye=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const sK=cye;var fye=function(e){bn(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(sK);const kr=fye;var dye=function(e){bn(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(sK);const BO=dye;var hd=[0,0],vd=[0,0],gb=new qt,mb=new qt,hye=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new qt;for(var n=0;n<2;n++)this._axes[n]=new qt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);qt.sub(a[0],n[1],n[0]),qt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return gb.set(1/0,1/0),mb.set(0,0),!this._intersectCheckOneSide(this,t,gb,mb,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,gb,mb,a,-1)&&(n=!1,a)||a||qt.copy(r,n?gb:mb),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,hd),this._getProjMinMaxOnAxis(l,r._corners,vd),hd[1]<vd[0]||hd[0]>vd[1]){if(s=!1,i)return s;var c=Math.abs(vd[0]-hd[1]),f=Math.abs(hd[0]-vd[1]);Math.min(c,f)>a.len()&&(c<f?qt.scale(a,u,-c*o):qt.scale(a,u,f*o))}else if(n){var c=Math.abs(vd[0]-hd[1]),f=Math.abs(hd[0]-vd[1]);Math.min(c,f)<n.len()&&(c<f?qt.scale(n,u,c*o):qt.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const gx=hye;var vye=[],pye=function(e){bn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Xt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(vye)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),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(r,n))return!0}return!1},t}(ss);const lK=pye;var uK=Pr();function Gg(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Qt(n.duration,200),c=Qt(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),Tt(f)&&(f=f(r,a)),Tt(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function FO(e,t,r,n,a,i,o){var s=!1,l;Tt(a)?(o=i,i=a,a=null):Mt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Gg(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function Lr(e,t,r,n,a,i){FO("update",e,t,r,n,a,i)}function _n(e,t,r,n,a,i){FO("enter",e,t,r,n,a,i)}function Lp(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function yf(e,t,r,n,a,i){Lp(e)||FO("leave",e,t,r,n,a,i)}function z5(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),yf(e,{style:{opacity:0}},t,r,n)}function z0(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||z5(a,t,r,n)}):z5(e,t,r,n)}function Js(e){uK(e).oldStyle=e.style}function gye(e){return uK(e).oldStyle}var mx=Math.max,yx=Math.min,BP={};function eo(e){return cr.extend(e)}var mye=Yme;function cK(e,t){return mye(e,t)}function zn(e,t){BP[e]=t}function OA(e){if(BP.hasOwnProperty(e))return BP[e]}function s1(e,t,r,n){var a=Xj(e,t);return r&&(n==="center"&&(r=fK(r,a.getBoundingRect())),zO(a,r)),a}function VO(e,t,r){var n=new Oa({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(fK(t,i))}}});return n}function fK(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var bo=jme;function zO(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Qp(e,t){return Pj(e,e,{lineWidth:t}),e}function yye(e){return Lj(e.shape,e.shape,e.style),e}var tS=Qd;function uf(e,t){for(var r=t1([]);e&&e!==t;)Rl(r,e.getLocalTransform(),r),e=e.parent;return r}function Us(e,t,r){return t&&!ei(t)&&(t=Eu.getLocalTransform(t)),r&&(t=kf([],t)),va([],e,t)}function kA(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=Us(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function H5(e){return!e.isGroup}function _ye(e){return e.shape!=null}function l1(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){H5(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _ye(o)&&(s.shape=Ie({},o.shape)),s}var i=n(e);t.traverse(function(o){if(H5(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Lr(o,l,r,Ht(o).dataIndex)}}})}function HO(e,t){return Fe(e,function(r){var n=r[0];n=mx(n,t.x),n=yx(n,t.x+t.width);var a=r[1];return a=mx(a,t.y),a=yx(a,t.y+t.height),[n,a]})}function dK(e,t){var r=mx(e.x,t.x),n=yx(e.x+e.width,t.x+t.width),a=mx(e.y,t.y),i=yx(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Ug(e,t,r){var n=Ie({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),yt(a,r),new Oa(n)):s1(e.replace("path://",""),n,r,"center")}function yy(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(hK(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function hK(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=$C(c,f,l,u);if(bye(d))return!1;var h=e-a,v=t-i,p=$C(h,v,l,u)/d;if(p<0||p>1)return!1;var g=$C(h,v,c,f)/d;return!(g<0||g>1)}function $C(e,t,r,n){return e*n-r*t}function bye(e){return e<=1e-6&&e>=-1e-6}function $g(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=rt(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&W(vr(l),function(c){lt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ht(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:yt({content:n,formatterParams:s},a)}}function G5(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Nf(e,t){if(e)if(Ne(e))for(var r=0;r<e.length;r++)G5(e[r],t);else G5(e,t)}zn("circle",Qs);zn("ellipse",LA);zn("sector",Ii);zn("ring",i1);zn("polygon",Ri);zn("polyline",Fi);zn("rect",br);zn("line",Ta);zn("bezierCurve",o1);zn("arc",IA);const u1=Object.freeze(Object.defineProperty({__proto__:null,Arc:IA,BezierCurve:o1,BoundingRect:Xt,Circle:Qs,CompoundPath:RA,Ellipse:LA,Group:Ot,Image:Oa,IncrementalDisplayable:lK,Line:Ta,LinearGradient:kr,OrientedBoundingRect:gx,Path:cr,Point:qt,Polygon:Ri,Polyline:Fi,RadialGradient:BO,Rect:br,Ring:i1,Sector:Ii,Text:pr,applyTransform:Us,clipPointsByRect:HO,clipRectByRect:dK,createIcon:Ug,extendPath:cK,extendShape:eo,getShapeClass:OA,getTransform:uf,groupTransition:l1,initProps:_n,isElementRemoved:Lp,lineLineIntersect:hK,linePolygonIntersect:yy,makeImage:VO,makePath:s1,mergePath:bo,registerShape:zn,removeElement:yf,removeElementWithFadeOut:z0,resizePath:zO,setTooltipConfig:$g,subPixelOptimize:tS,subPixelOptimizeLine:Qp,subPixelOptimizeRect:yye,transformDirection:kA,traverseElements:Nf,updateProps:Lr},Symbol.toStringTag,{value:"Module"}));var NA={};function vK(e,t){for(var r=0;r<Li.length;r++){var n=Li[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function FP(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Tt(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<Li.length;u++){var c=Li[u],f=t[c];l[c]=Qt(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function ri(e,t,r,n){r=r||NA;for(var a=e instanceof pr,i=!1,o=0;o<F0.length;o++){var s=t[F0[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new pr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=FP(r,t),c=t.normal,f=!!c.getShallow("show"),d=Xr(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(_x(c,r,!1));for(var o=0;o<Li.length;o++){var h=Li[o],s=t[h];if(s){var v=l.ensureState(h),p=!!Qt(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=Xr(s,n&&n[h],r,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=_x(s,r,!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(),r.enableTextSetter&&(Wg(l).setLabelText=function(m){var y=FP(r,t,m);vK(l,y)})}else l&&(l.ignore=!0);e.dirty()}function Pa(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Li.length;n++){var a=Li[n];r[a]=e.getModel([a,t])}return r}function Xr(e,t,r,n,a){var i={};return wye(i,e,r,n,a),t&&Ie(i,t),i}function _x(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=Qt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function wye(e,t,r,n,a){r=r||NA;var i=t.ecModel,o=i&&i.option.textStyle,s=Sye(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Y5(l[u]={},c,o,r,n,a,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),Y5(e,t,o,r,n,a,!0,!1)}function Sye(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||NA).rich;if(r){t=t||{};for(var n=vr(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var U5=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],$5=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],W5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Y5(e,t,r,n,a,i,o,s){r=!a&&r||NA;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Qt(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Qt(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Qt(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=Qt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!a&&!i&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<U5.length;p++){var g=U5[p],m=Qt(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<$5.length;p++){var g=$5[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<W5.length;p++){var g=W5[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function pK(e,t){var r=t&&t.getModel("textStyle");return Qo([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Wg=Pr();function gK(e,t,r,n){if(e){var a=Wg(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function mK(e,t,r,n,a){var i=Wg(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Qt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=yj(r,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=FP({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);vK(e,d)}e.percent=0,(i.prevValue==null?_n:Lr)(e,{percent:1},n,t,null,u)}var xye=["textStyle","color"],WC=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],YC=new pr,Aye=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(xye):null)},e.prototype.getFont=function(){return pK({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<WC.length;n++)r[WC[n]]=this.getShallow(WC[n]);return YC.useStyle(r),YC.update(),YC.getBoundingRect()},e}();const Tye=Aye;var yK=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Cye=Vh(yK),Eye=function(){function e(){}return e.prototype.getLineStyle=function(t){return Cye(this,t)},e}(),_K=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Mye=Vh(_K),Dye=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Mye(this,t,r)},e}(),rv=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){st(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Pt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Cr.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();DO(rv);Rge(rv);Kn(rv,Eye);Kn(rv,Dye);Kn(rv,Fge);Kn(rv,Tye);const $r=rv;var Pye=Math.round(Math.random()*10);function Yg(e){return[e||"",Pye++].join("_")}function Lye(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=El(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=El(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function Iye(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(W(i,function(y){d[y]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),W(v.successor,p?m:g)}W(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function r(i){var o={},s=[];return W(i,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),W(f,function(d){tr(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);tr(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return W(i,function(l){tr(o,l)>=0&&s.push(l)}),s}}function Bf(e,t){return st(st({},e,!0),t,!0)}const Rye={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:". "}}}},Oye={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 bx="ZH",GO="EN",H0=GO,rS={},UO={},bK=Cr.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(bx)>-1?bx:H0}():H0;function $O(e,t){e=e.toUpperCase(),UO[e]=new $r(t),rS[e]=t}function kye(e){if(rt(e)){var t=rS[e.toUpperCase()]||{};return e===bx||e===GO?Pt(t):st(Pt(t),Pt(rS[H0]),!1)}else return st(Pt(e),Pt(rS[H0]),!1)}function VP(e){return UO[e]}function Nye(){return UO[H0]}$O(GO,Rye);$O(bx,Oye);var WO=1e3,YO=WO*60,Xy=YO*60,Zo=Xy*24,j5=Zo*365,_y={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}"},yb="{yyyy}-{MM}-{dd}",K5={year:"{yyyy}",month:"{yyyy}-{MM}",day:yb,hour:yb+" "+_y.hour,minute:yb+" "+_y.minute,second:yb+" "+_y.second,millisecond:_y.none},jC=["year","month","day","hour","minute","second","millisecond"],wK=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function xi(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ip(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Bye(e){return e===Ip(e)}function Fye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function c1(e,t,r,n){var a=uo(e),i=a[jO(r)](),o=a[Rp(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[BA(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[G0(r)](),f=(c-1)%12+1,d=a[FA(r)](),h=a[VA(r)](),v=a[zA(r)](),p=n instanceof $r?n:VP(n||bK)||Nye(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,xi(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,xi(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,xi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,xi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,xi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,xi(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,xi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,xi(v,3)).replace(/{S}/g,v+"")}function Vye(e,t,r,n,a){var i=null;if(rt(r))i=r;else if(Tt(r))i=r(e.value,t,{level:e.level});else{var o=Ie({},_y);if(e.level>0)for(var s=0;s<jC.length;++s)o[jC[s]]="{primary|"+o[jC[s]]+"}";var l=r?r.inherit===!1?r:yt(r,o):o,u=SK(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=wK.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Ne(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return c1(new Date(e.value),i,a,n)}function SK(e,t){var r=uo(e),n=r[Rp(t)]()+1,a=r[BA(t)](),i=r[G0(t)](),o=r[FA(t)](),s=r[VA(t)](),l=r[zA(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function X5(e,t,r){var n=Mr(e)?uo(e):e;switch(t=t||SK(e,r),t){case"year":return n[jO(r)]();case"half-year":return n[Rp(r)]()>=6?1:0;case"quarter":return Math.floor((n[Rp(r)]()+1)/4);case"month":return n[Rp(r)]();case"day":return n[BA(r)]();case"half-day":return n[G0(r)]()/24;case"hour":return n[G0(r)]();case"minute":return n[FA(r)]();case"second":return n[VA(r)]();case"millisecond":return n[zA(r)]()}}function jO(e){return e?"getUTCFullYear":"getFullYear"}function Rp(e){return e?"getUTCMonth":"getMonth"}function BA(e){return e?"getUTCDate":"getDate"}function G0(e){return e?"getUTCHours":"getHours"}function FA(e){return e?"getUTCMinutes":"getMinutes"}function VA(e){return e?"getUTCSeconds":"getSeconds"}function zA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function zye(e){return e?"setUTCFullYear":"setFullYear"}function xK(e){return e?"setUTCMonth":"setMonth"}function AK(e){return e?"setUTCDate":"setDate"}function TK(e){return e?"setUTCHours":"setHours"}function CK(e){return e?"setUTCMinutes":"setMinutes"}function EK(e){return e?"setUTCSeconds":"setSeconds"}function MK(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Hye(e,t,r,n,a,i,o,s){var l=new pr({style:{text:e,font:t,align:r,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function U0(e){if(!CO(e))return rt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function KO(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var nv=mA;function zP(e,t,r){var n="{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=t==="time",s=e instanceof Date;if(o||s){var l=o?uo(e):e;if(isNaN(+l)){if(s)return"-"}else return c1(l,n,r)}if(t==="ordinal")return ix(e)?a(e):Mr(e)&&i(e)?e+"":"-";var u=zl(e);return i(u)?U0(u):ix(e)?a(e):typeof e=="boolean"?e+"":"-"}var Z5=["a","b","c","d","e","f","g"],KC=function(e,t){return"{"+e+(t??"")+"}"};function HA(e,t,r){Ne(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Z5[i];e=e.replace(KC(o),KC(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(KC(Z5[l],s),r?na(u):u)}return e}function Gye(e,t,r){return W(t,function(n,a){e=e.replace("{"+a+"}",r?na(n):n)}),e}function XO(e,t){var r=rt(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)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:'+na(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+na(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function DK(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
|
||
yyyy`);var n=uo(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),c=n[a+"Seconds"](),f=n[a+"Milliseconds"]();return e=e.replace("MM",xi(o,2)).replace("M",o).replace("yyyy",i).replace("yy",xi(i%100+"",2)).replace("dd",xi(s,2)).replace("d",s).replace("hh",xi(l,2)).replace("h",l).replace("mm",xi(u,2)).replace("m",u).replace("ss",xi(c,2)).replace("s",c).replace("SSS",xi(f,3)),e}function Uye(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Hh(e,t){return t=t||"transparent",rt(e)?e:Mt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Sx(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var nS=W,PK=["left","right","top","bottom","width","height"],eh=[["width","left","right"],["height","top","bottom"]];function ZO(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>a||l.newline?(i+=s+r,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+r:o=v+r)})}var Sh=ZO;zt(ZO,"vertical");zt(ZO,"horizontal");function $ye(e,t,r){var n=t.width,a=t.height,i=Je(e.left,n),o=Je(e.top,a),s=Je(e.right,n),l=Je(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),r=nv(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function kn(e,t,r){r=nv(r||0);var n=t.width,a=t.height,i=Je(e.left,n),o=Je(e.top,a),s=Je(e.right,n),l=Je(e.bottom,a),u=Je(e.width,n),c=Je(e.height,a),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=n-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var v=new Xt(i+r[3],o+r[0],u,c);return v.margin=r,v}function GA(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Xt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=kn(yt({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=h):(i.x+=d,i.y+=h),i===e&&e.markRedraw(),!0}function Wye(e,t){return e[eh[t][0]]!=null||e[eh[t][1]]!=null&&e[eh[t][2]]!=null}function $0(e){var t=e.layoutMode||e.constructor.layoutMode;return Mt(t)?t:t?{type:t}:null}function _f(e,t,r){var n=r&&r.ignoreSize;!Ne(n)&&(n=[n,n]);var a=o(eh[0],0),i=o(eh[1],1);u(eh[0],e,a),u(eh[1],e,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(nS(c,function(_){v[_]=e[_]}),nS(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<c.length;m++){var y=c[m];if(!s(d,y)&&s(e,y)){d[y]=e[y];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){nS(c,function(h){f[h]=d[h]})}}function jg(e){return LK({},e)}function LK(e,t){return t&&e&&nS(PK,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Yye=Pr(),Kg=function(e){De(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=Yg("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=$0(this),i=a?jg(r):{},o=n.getTheme();st(r,o.get(this.mainType)),st(r,this.getDefaultOption()),a&&_f(r,i,a)},t.prototype.mergeOption=function(r,n){st(this.option,r,!0);var a=$0(this);a&&_f(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Pge(r))return r.defaultOption;var n=Yye(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=st(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return n1(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}($r);bj(Kg,$r);TA(Kg);Lye(Kg);Iye(Kg,jye);function jye(e){var t=[];return W(Kg.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Fe(t,function(r){return El(r).main}),e!=="dataset"&&tr(t,"dataset")<=0&&t.unshift("dataset"),t}const sr=Kg;var IK="";typeof navigator<"u"&&(IK=navigator.platform||"");var Cv="rgba(0, 0, 0, 0.2)";const Kye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Cv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:IK.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 RK=_t(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ms="original",fi="arrayRows",ys="objectRows",Jl="keyedColumns",cf="typedArray",OK="unknown",Ol="column",Xg="row",ja={Must:1,Might:2,Not:3},kK=Pr();function Xye(e){kK(e).datasetMap=_t()}function NK(e,t,r){var n={},a=QO(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=kK(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),W(e,function(p,g){var m=Mt(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});W(e,function(p,g){var m=p.name,y=v(p);if(c==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(i,0,y);else{var _=d.categoryWayDim;h(n[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function v(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function qO(e,t,r){var n={},a=QO(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===ys||i===Jl)&&W(o,function(c,f){(Mt(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=FK(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===ja.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===ja.Not)&&(c.n=h),m(c)&&d[c.n]!==ja.Not)return c;g||(p===ja.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function QO(e){var t=e.get("data",!0);if(!t)return n1(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ia).models[0]}function Zye(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:n1(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ia).models}function BK(e,t){return FK(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function FK(e,t,r,n,a,i){var o,s=5;if(so(e))return ja.Not;var l,u;if(n){var c=n[i];Mt(c)?(l=c.name,u=c.type):rt(c)&&(l=c)}if(u!=null)return u==="ordinal"?ja.Must:ja.Not;if(t===fi){var f=e;if(r===Xg){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 v=f[a+h];if(v&&(o=w(v[i]))!=null)return o}}else if(t===ys){var p=e;if(!l)return ja.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=w(g[l]))!=null)return o}}else if(t===Jl){var m=e;if(!l)return ja.Not;var d=m[l];if(!d||so(d))return ja.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(t===ms)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],_=zg(g);if(!Ne(_))return ja.Not;if((o=w(_[i]))!=null)return o}function w(x){var S=rt(x);if(x!=null&&isFinite(x)&&x!=="")return S?ja.Might:ja.Not;if(S&&x!=="-")return ja.Must}return ja.Not}var HP=_t();function qye(e,t){ci(HP.get(e)==null&&t),HP.set(e,t)}function Qye(e,t,r){var n=HP.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var q5=Pr(),Jye=Pr(),JO=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=tn(this.get("color",!0)),i=this.get("colorLayer",!0);return VK(this,q5,a,i,t,r,n)},e.prototype.clearColorPalette=function(){t0e(this,q5)},e}();function GP(e,t,r,n){var a=tn(e.get(["aria","decal","decals"]));return VK(e,Jye,a,null,t,r,n)}function e0e(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function VK(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:e0e(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function t0e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var _b,Pm,Q5,J5="\0_ec_inner",r0e=1,zK=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new $r(i),this._locale=new $r(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=rF(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,rF(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?Q5(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&W(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=_t(),u=n&&n.replaceMergeMainTypeMap;Xye(this),W(r,function(f,d){f!=null&&(sr.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Pt(f):st(a[d],f,!0))}),u&&u.each(function(f,d){sr.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),sr.topologicalTravel(s,sr.getAllClassMainTypes(),c,this);function c(f){var d=Qye(this,f,tn(r[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=pj(h,d,v);wge(p,f,sr),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;W(p,function(w,x){var S=w.existing,T=w.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var A=f==="series",C=sr.getClass(f,w.keyInfo.subType,!A);if(!C)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===C)S.name=w.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var M=Ie({componentIndex:x},w.keyInfo);S=new C(T,this,this,M),Ie(S,M),w.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),y++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,y),f==="series"&&_b(this)}this._seriesIndices||_b(this)},t.prototype.getOption=function(){var r=Pt(this.option);return W(r,function(n,a){if(sr.hasClass(a)){for(var i=tn(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!N0(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[J5],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],W(tn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=eF("id",i,s):o!=null?l=eF("name",o,s):l=Yr(s,function(u){return!!u}),tF(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Yr(this._componentsMap.get(a),function(u){return!!u});return l(tF(o,r));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 r.filter?Yr(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(Tt(r)){var o=n,s=r;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=rt(r)?i.get(r):Mt(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=ha(r,null);return Yr(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Yr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Yr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Pm(this),W(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){W(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Pm(this),W(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return W(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Pm(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Pm(this);var a=[];W(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=_t(a)},t.prototype.restoreData=function(r){_b(this);var n=this._componentsMap,a=[];n.each(function(i,o){sr.hasClass(o)&&a.push(o)}),sr.topologicalTravel(a,sr.getAllClassMainTypes(),function(i){W(n.get(i),function(o){o&&(i!=="series"||!n0e(o,r))&&o.restoreData()})})},t.internalField=function(){_b=function(r){var n=r._seriesIndices=[];W(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=_t(n)},Pm=function(r){},Q5=function(r,n){r.option={},r.option[J5]=r0e,r._componentsMap=_t({series:[]}),r._componentsCount=_t();var a=n.aria;Mt(a)&&a.enabled==null&&(a.enabled=!0),a0e(n,r._theme.option),st(n,Kye,!1),r._mergeOption(n,null)}}(),t}($r);function n0e(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function a0e(e,t){var r=e.color&&!e.colorLayer;W(t,function(n,a){a==="colorLayer"&&r||sr.hasClass(a)||(typeof n=="object"?e[a]=e[a]?st(e[a],n,!1):Pt(n):e[a]==null&&(e[a]=n))})}function eF(e,t,r){if(Ne(t)){var n=_t();return W(t,function(i){if(i!=null){var o=ha(i,null);o!=null&&n.set(i,!0)}}),Yr(r,function(i){return i&&n.get(i[e])})}else{var a=ha(t,null);return Yr(r,function(i){return i&&a!=null&&i[e]===a})}}function tF(e,t){return t.hasOwnProperty("subType")?Yr(e,function(r){return r&&r.subType===t.subType}):e}function rF(e){var t=_t();return e&&W(tn(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Kn(zK,JO);const HK=zK;var i0e=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],o0e=function(){function e(t){W(i0e,function(r){this[r]=ot(t[r],t)},this)}return e}();const GK=o0e;var XC={},s0e=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];W(XC,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){W(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){XC[t]=r},e.get=function(t){return XC[t]},e}();const Zg=s0e;var l0e=/^(min|max)?(.+)$/,u0e=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(W(tn(t.series),function(o){o&&o.data&&so(o.data)&&M0(o.data)}),W(tn(t.dataset),function(o){o&&o.source&&so(o.source)&&M0(o.source)})),t=Pt(t);var a=this._optionBackup,i=c0e(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Pt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=Pt(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=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++)f0e(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!h0e(o,this._currentMediaIndices)&&(s=Fe(o,function(c){return Pt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function c0e(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(e.options=e.media=null),i=e),c&&Ne(u)&&W(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),d(i),W(l,function(h){return d(h)}),W(n,function(h){return d(h.option)});function d(h){W(t,function(v){v(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function f0e(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return W(e,function(i,o){var s=o.match(l0e);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();d0e(n[u],i,l)||(a=!1)}}),a}function d0e(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function h0e(e,t){return e.join(",")===t.join(",")}const v0e=u0e;var ws=W,W0=Mt,nF=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ZC(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=nF.length;r<n;r++){var a=nF[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?st(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?st(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function oi(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,yt(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function by(e){oi(e,"itemStyle"),oi(e,"lineStyle"),oi(e,"areaStyle"),oi(e,"label"),oi(e,"labelLine"),oi(e,"upperLabel"),oi(e,"edgeLabel")}function ra(e,t){var r=W0(e)&&e[t],n=W0(r)&&r.textStyle;if(n)for(var a=0,i=s5.length;a<i;a++){var o=s5[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Ho(e){e&&(by(e),ra(e,"label"),e.emphasis&&ra(e.emphasis,"label"))}function p0e(e){if(W0(e)){ZC(e),by(e),ra(e,"label"),ra(e,"upperLabel"),ra(e,"edgeLabel"),e.emphasis&&(ra(e.emphasis,"label"),ra(e.emphasis,"upperLabel"),ra(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(ZC(t),Ho(t));var r=e.markLine;r&&(ZC(r),Ho(r));var n=e.markArea;n&&Ho(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!so(i))for(var o=0;o<i.length;o++)Ho(i[o]);W(e.categories,function(u){by(u)})}if(a&&!so(a))for(var o=0;o<a.length;o++)Ho(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ho(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Ne(l[o])?(Ho(l[o][0]),Ho(l[o][1])):Ho(l[o]);e.type==="gauge"?(ra(e,"axisLabel"),ra(e,"title"),ra(e,"detail")):e.type==="treemap"?(oi(e.breadcrumb,"itemStyle"),W(e.levels,function(u){by(u)})):e.type==="tree"&&by(e.leaves)}}function ou(e){return Ne(e)?e:e?[e]:[]}function aF(e){return(Ne(e)?e[0]:e)||{}}function g0e(e,t){ws(ou(e.series),function(n){W0(n)&&p0e(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ws(r,function(n){ws(ou(e[n]),function(a){a&&(ra(a,"axisLabel"),ra(a.axisPointer,"label"))})}),ws(ou(e.parallel),function(n){var a=n&&n.parallelAxisDefault;ra(a,"axisLabel"),ra(a&&a.axisPointer,"label")}),ws(ou(e.calendar),function(n){oi(n,"itemStyle"),ra(n,"dayLabel"),ra(n,"monthLabel"),ra(n,"yearLabel")}),ws(ou(e.radar),function(n){ra(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),ws(ou(e.geo),function(n){W0(n)&&(Ho(n),ws(ou(n.regions),function(a){Ho(a)}))}),ws(ou(e.timeline),function(n){Ho(n),oi(n,"label"),oi(n,"itemStyle"),oi(n,"controlStyle",!0);var a=n.data;Ne(a)&&W(a,function(i){Mt(i)&&(oi(i,"label"),oi(i,"itemStyle"))})}),ws(ou(e.toolbox),function(n){oi(n,"iconStyle"),ws(n.feature,function(a){oi(a,"iconStyle")})}),ra(aF(e.axisPointer),"label"),ra(aF(e.tooltip).axisPointer,"label")}function m0e(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function y0e(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function iF(e){e&&W(_0e,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var _0e=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],b0e=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],qC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Lm(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<qC.length;r++){var n=qC[r][1],a=qC[r][0];t[n]!=null&&(t[a]=t[n])}}function oF(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function sF(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function w0e(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function UK(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&UK(e[r].children,t)}function $K(e,t){g0e(e,t),e.series=tn(e.series),W(e.series,function(r){if(Mt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),oF(r.label);var a=r.data;if(a&&!so(a))for(var i=0;i<a.length;i++)oF(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=m0e(r,"pointer.color");o!=null&&y0e(r,"itemStyle.color",o)}else if(n==="bar"){Lm(r),Lm(r.backgroundStyle),Lm(r.emphasis);var a=r.data;if(a&&!so(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Lm(a[i]),Lm(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),sF(r),UK(r.data,sF)}else n==="graph"||n==="sankey"?w0e(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&yt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),iF(r)}}),e.dataRange&&(e.visualMap=e.dataRange),W(b0e,function(r){var n=e[r];n&&(Ne(n)||(n=[n]),W(n,function(a){iF(a)}))})}function S0e(e){var t=_t();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(x0e)}function x0e(e){W(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=fge(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var UA=function(){function e(t){this.data=t.data||(t.sourceFormat===Jl?{}:[]),this.sourceFormat=t.sourceFormat||OK,this.seriesLayoutBy=t.seriesLayoutBy||Ol,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&BK(this,n)===ja.Must&&(a.type="ordinal")}}return e}();function ek(e){return e instanceof UA}function UP(e,t,r){r=r||WK(e);var n=t.seriesLayoutBy,a=T0e(e,r,n,t.sourceHeader,t.dimensions),i=new UA({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Pt(t)});return i}function tk(e){return new UA({data:e,sourceFormat:so(e)?cf:ms})}function A0e(e){return new UA({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Pt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function WK(e){var t=OK;if(so(e))t=cf;else if(Ne(e)){e.length===0&&(t=fi);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(Ne(a)){t=fi;break}else if(Mt(a)){t=ys;break}}}}else if(Mt(e)){for(var i in e)if(lt(e,i)&&ei(e[i])){t=Jl;break}}return t}function T0e(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:lF(a),startIndex:o,dimensionsDetectedCount:i};if(t===fi){var s=e;n==="auto"||n==null?uF(function(u){u!=null&&u!=="-"&&(rt(u)?o==null&&(o=1):o=0)},r,s,10):o=Mr(n)?n:n?1:0,!a&&o===1&&(a=[],uF(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===Xg?s.length:s[0]?s[0].length:null}else if(t===ys)a||(a=C0e(e));else if(t===Jl)a||(a=[],W(e,function(u,c){a.push(c)}));else if(t===ms){var l=zg(e[0]);i=Ne(l)&&l.length||1}return{startIndex:o,dimensionsDefine:lF(a),dimensionsDetectedCount:i}}function C0e(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return vr(r)}function lF(e){if(e){var t=_t();return Fe(e,function(r,n){r=Mt(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function uF(e,t,r,n){if(t===Xg)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function YK(e){var t=e.sourceFormat;return t===ys||t===Jl}var pd,gd,md,cF,fF,jK=function(){function e(t,r){var n=ek(t)?t:tk(t);this._source=n;var a=this._data=n.data;n.sourceFormat===cf&&(this._offset=0,this._dimSize=r,this._data=a),fF(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;fF=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=cF[rk(u,c)];if(Ie(o,h),u===cf)o.getItem=r,o.count=a,o.fillStorage=n;else{var v=KK(u,c);o.getItem=ot(v,null,s,f,d);var p=XK(u,c);o.count=ot(p,null,s,f,d)}};var r=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},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var _=c[y*f+d];m[o+y]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};cF=(t={},t[fi+"_"+Ol]={pure:!0,appendData:i},t[fi+"_"+Xg]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ys]={pure:!0,appendData:i},t[Jl]={pure:!0,appendData:function(o){var s=this._data;W(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ms]={appendData:i},t[cf]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),dF=function(e,t,r,n){return e[n]},E0e=(pd={},pd[fi+"_"+Ol]=function(e,t,r,n){return e[n+t]},pd[fi+"_"+Xg]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},pd[ys]=dF,pd[Jl]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];i[o]=l?l[n]:null}return i},pd[ms]=dF,pd);function KK(e,t){var r=E0e[rk(e,t)];return r}var hF=function(e,t,r){return e.length},M0e=(gd={},gd[fi+"_"+Ol]=function(e,t,r){return Math.max(0,e.length-t)},gd[fi+"_"+Xg]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},gd[ys]=hF,gd[Jl]=function(e,t,r){var n=r[0].name,a=e[n];return a?a.length:0},gd[ms]=hF,gd);function XK(e,t){var r=M0e[rk(e,t)];return r}var QC=function(e,t,r){return e[t]},D0e=(md={},md[fi]=QC,md[ys]=function(e,t,r){return e[r]},md[Jl]=QC,md[ms]=function(e,t,r){var n=zg(e);return n instanceof Array?n[t]:n},md[cf]=QC,md);function ZK(e){var t=D0e[e];return t}function rk(e,t){return e===fi?e+"_"+t:e}function Jp(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return ZK(i)(n,o,s)}else{var l=n;return i===ms&&(l=zg(n)),l}}}}var P0e=/\{@(.+?)\}/g,nk=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.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:r,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Ne(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Tt(i))return l.status=r,l.dimensionIndex=a,i(l);if(rt(i)){var c=HA(i,l);return c.replace(P0e,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Jp(s,t,v);if(o&&Ne(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Jp(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function vF(e){var t,r;return Mt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Zy(e){return new L0e(e)}var L0e=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var p=this._progress;if(Ne(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){pF.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:pF.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Ne(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),pF=function(){var e,t,r,n,a,i={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function ff(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Mr(e)&&e!=null&&e!=="-"&&(e=+uo(e)),e==null||e===""?NaN:+e)}var I0e=_t({number:function(e){return parseFloat(e)},time:function(e){return+uo(e)},trim:function(e){return rt(e)?Qo(e):e}});function qK(e){return I0e.get(e)}var QK={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},R0e=function(){function e(t,r){if(!Mr(r)){var n="";Gr(n)}this._opFn=QK[t],this._rvalFloat=zl(r)}return e.prototype.evaluate=function(t){return Mr(t)?this._opFn(t,this._rvalFloat):this._opFn(zl(t),this._rvalFloat)},e}(),JK=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Mr(t)?t:zl(t),a=Mr(r)?r:zl(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=rt(t),l=rt(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),O0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=zl(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=zl(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function k0e(e,t){return e==="eq"||e==="ne"?new O0e(e==="eq",t):lt(QK,e)?new R0e(e,t):null}var N0e=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return ff(t,r)},e}();function B0e(e,t){var r=new N0e,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Ol&&Gr(o);var s=[],l={},u=e.dimensionsDefine;if(u)W(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";lt(l,m)&&Gr(_),l[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=KK(a,Ol);t.__isBuiltIn&&(r.getRawDataItem=function(p){return f(n,i,s,p)},r.getRawData=ot(F0e,null,e)),r.cloneRawData=ot(V0e,null,e);var d=XK(a,Ol);r.count=ot(d,null,n,i,s);var h=ZK(a);r.retrieveValue=function(p,g){var m=f(n,i,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return r.getDimensionInfo=ot(z0e,null,s,l),r.cloneAllDimensionInfo=ot(H0e,null,s),r}function F0e(e){var t=e.sourceFormat;if(!ak(t)){var r="";Gr(r)}return e.data}function V0e(e){var t=e.sourceFormat,r=e.data;if(!ak(t)){var n="";Gr(n)}if(t===fi){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===ys){for(var a=[],i=0,o=r.length;i<o;i++)a.push(Ie({},r[i]));return a}}function z0e(e,t,r){if(r!=null){if(Mr(r)||!isNaN(r)&&!lt(t,r))return e[r];if(lt(t,r))return t[r]}}function H0e(e){return Pt(e)}var eX=_t();function G0e(e){e=Pt(e);var t=e.type,r="";t||Gr(r);var n=t.split(":");n.length!==2&&Gr(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,eX.set(t,e)}function U0e(e,t,r){var n=tn(e),a=n.length,i="";a||Gr(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=$0e(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function $0e(e,t,r,n){var a="";t.length||Gr(a),Mt(e)||Gr(a);var i=e.type,o=eX.get(i);o||Gr(a);var s=Fe(t,function(u){return B0e(u,o)}),l=tn(o.transform({upstream:s[0],upstreamList:s,config:Pt(e.config)}));return Fe(l,function(u,c){var f="";Mt(u)||Gr(f),u.data||Gr(f);var d=WK(u.data);ak(d)||Gr(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Ol,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:Ol,sourceHeader:0,dimensions:u.dimensions};return UP(u.data,h,null)})}function ak(e){return e===fi||e===ys}var $A="undefined",W0e=typeof Uint32Array===$A?Array:Uint32Array,Y0e=typeof Uint16Array===$A?Array:Uint16Array,tX=typeof Int32Array===$A?Array:Int32Array,gF=typeof Float64Array===$A?Array:Float64Array,rX={float:gF,int:tX,ordinal:Array,number:Array,time:gF},JC;function Im(e){return e>65535?W0e:Y0e}function Ev(){return[1/0,-1/0]}function j0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function mF(e,t,r,n,a){var i=rX[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var K0e=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=_t()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=JC[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],YK(a),this._dimensions=Fe(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new rX[r||"float"](this._rawCount),this._rawExtent[i]=Ev(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=Ev());for(var l=i[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var c=a[u];mF(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<i;v++){var c=a[v],p=JC.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Fe(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Ev()),mF(i,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var d=[],h=t;h<r;h++){d=a.getItem(h,d);for(var v=0;v<s;v++){var p=i[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=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=r-i[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=Im(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Im(n._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<a;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var p=f[c][v];h=r(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=vr(t),i=a.length;if(!i)return this;var o=r.count(),s=Im(r._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(i===1){for(var g=h[a[0]],m=0;m<n;m++){var y=g[m];(y>=f&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],w=t[a[1]][0],x=t[a[1]][1],m=0;m<n;m++){var y=g[m],S=_[m];(y>=f&&y<=d||isNaN(y))&&(S>=w&&S<=x||isNaN(S))&&(l[u++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),y=h[a[0]][T];(y>=f&&y<=d||isNaN(y))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var A=!0,T=r.getRawIndex(m),C=0;C<i;C++){var M=a[C],y=h[M][T];(y<t[M][0]||y>t[M][1])&&(A=!1)}A&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Ev();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=a[r[h]][d];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var c=0;c<v.length;c++){var p=r[c],g=v[c],m=u[p],y=a[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Im(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var w=this.getRawIndex(_),x=i[w];isNaN(x)||(y+=x)}y/=g-p;var S=v,T=Math.min(v+l,o),A=v-1,C=i[u];c=-1,d=S;for(var M=-1,E=0,_=S;_<T;_++){var w=this.getRawIndex(_),x=i[w];if(isNaN(x)){E++,M<0&&(M=w);continue}f=Math.abs((A-m)*(x-C)-(A-_)*(y-C)),f>c&&(c=f,d=w)}E>0&&E<T-S&&(h[s++]=Math.min(M,d),d=Math.max(M,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=i._rawExtent[t]=Ev(),d=new(Im(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(v+a(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[h++]=y}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Ev();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&Co(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?j0e(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Pt(this._extent),t._rawExtent=Pt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return ff(r[i],this._dimensions[i])}JC={arrayRows:t,objectRows:function(r,n,a,i){return ff(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return ff(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}();const $P=K0e;var nX=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(bb(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=so(s)?cf:ms,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Qt(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Qt(f.sourceHeader,d.sourceHeader),p=Qt(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[UP(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[UP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&_F(i)}var o,s=[],l=[];return W(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&_F(f),s.push(c),l.push(u._getVersionSign())}),n?o=U0e(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[A0e(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];bb(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new $P,s.initData(new jK(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(bb(t)){var r=QO(t);return r?[r.getSourceManager()]:[]}else return Fe(Zye(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(bb(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function yF(e){var t=e.option.transform;t&&M0(e.option.transform)}function bb(e){return e.mainType==="series"}function _F(e){throw new Error(e)}var aX="line-height:1";function iX(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+na(n+"")+"px;color:"+na(r)+";font-weight:"+na(a+""),valueStyle:"font-size:"+na(o+"")+"px;color:"+na(i)+";font-weight:"+na(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var X0e=[0,10,20,30],Z0e=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function La(e,t){return t.type=e,t}function WP(e){return e.type==="section"}function oX(e){return WP(e)?q0e:Q0e}function sX(e){if(WP(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return W(e.blocks,function(a){var i=sX(a);i>=t&&(t=i+ +(n&&(!i||WP(a)&&!a.noHeader)))}),t}return 0}function q0e(e,t,r,n){var a=t.noHeader,i=J0e(sX(t)),o=[],s=t.blocks||[];ci(!s||Ne(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(lt(u,l)){var c=new JK(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}W(s,function(v,p){var g=t.valueFormatter,m=oX(v)(g?Ie(Ie({},e),{valueFormatter:g}):e,v,p>0?i.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):YP(o.join(""),a?r:i.html);if(a)return f;var d=zP(t.header,"ordinal",e.useUTC),h=iX(n,e.renderMode).nameStyle;return e.renderMode==="richText"?lX(e,d,h)+i.richText+f:YP('<div style="'+h+";"+aX+';">'+na(d)+"</div>"+f,r)}function Q0e(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Ne(w)?w:[w],Fe(w,function(x,S){return zP(x,Ne(h)?h[S]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":zP(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=iX(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":lX(e,d,y))+(o?"":r_e(e,v,p,g,_)):YP((s?"":f)+(i?"":e_e(d,!s,y))+(o?"":t_e(v,p,g,_)),r)}}function bF(e,t,r,n,a,i){if(e){var o=oX(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function J0e(e){return{html:X0e[e],richText:Z0e[e]}}function YP(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+aX+';">'+e+r+"</div>"}function e_e(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+na(e)+"</span>"}function t_e(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Ne(e)?e:[e],'<span style="'+i+";"+n+'">'+Fe(e,function(o){return na(o)}).join(" ")+"</span>"}function lX(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function r_e(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ne(t)?t.join(" "):t,i)}function uX(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Hh(n)}function cX(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var eE=function(){function e(){this.richTextStyles={},this._nextStyleNameId=fj()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=XO({color:r,type:t,renderMode:n,markerId:a});return rt(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Ne(r)?W(r,function(i){return Ie(n,i)}):Ie(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function fX(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=Ne(s),u=uX(t,r),c,f,d,h;if(o>1||l&&!o){var v=n_e(s,t,r,i,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=c=Jp(a,r,i[0]),f=p.type}else h=c=l?s[0]:s;var g=EO(t),m=g&&t.name||"",y=a.getName(r),_=n?m:y;return La("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[La("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Qo(_),value:c,valueType:f})].concat(d||[])})}function n_e(e,t,r,n,a){var i=t.getData(),o=Co(e,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?W(n,function(f){c(Jp(i,r,f),f)}):W(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(La("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var mc=Pr();function wb(e,t){return e.getName(t)||e.getId(t)}var aS="__universalTransitionEnabled",WA=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Zy({count:i_e,reset:o_e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=mc(this).sourceManager=new nX(this);i.prepareSource();var o=this.getInitialData(r,a);SF(o,this),this.dataTask.context.data=o,mc(this).dataBeforeProcessed=o,wF(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=$0(this),i=a?jg(r):{},o=this.subType;sr.hasClass(o)&&(o+="Series"),st(r,n.getTheme().get(this.subType)),st(r,this.getDefaultOption()),Bh(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&_f(r,i,a)},t.prototype.mergeOption=function(r,n){r=st(this.option,r,!0),this.fillDataTextStyle(r.data);var a=$0(this);a&&_f(this.option,r,a);var i=mc(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);SF(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,mc(this).dataBeforeProcessed=o,wF(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!so(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Bh(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=jP(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return mc(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=jP(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}mc(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return _t(r)},t.prototype.getSourceManager=function(){return mc(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return mc(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return fX({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Cr.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=JO.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=wb(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=vr(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[wb(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[aS])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Mt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=wb(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=wb(r,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=r.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return sr.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(sr);Kn(WA,nk);Kn(WA,JO);bj(WA,sr);function wF(e){var t=e.name;EO(e)||(e.name=a_e(e)||t)}function a_e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return W(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function i_e(e){return e.model.getRawData().count()}function o_e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),s_e}function s_e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function SF(e,t){W(kh(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,zt(l_e,t))})}function l_e(e,t){var r=jP(e);return r&&r.setOutputEnd((t||this).count()),t}function jP(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const Ir=WA;var ik=function(){function e(){this.group=new Ot,this.uid=Yg("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();DO(ik);TA(ik);const rn=ik;function qg(){var e=Pr();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var dX=Pr(),u_e=qg(),ok=function(){function e(){this.group=new Ot,this.uid=Yg("viewChart"),this.renderTask=Zy({plan:c_e,reset:f_e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&AF(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&AF(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){Nf(this.group,t)},e.markUpdateMethod=function(t,r){dX(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function xF(e,t,r){e&&V0(e)&&(t==="emphasis"?Hu:Gu)(e,r)}function AF(e,t,r){var n=Fh(e,t),a=t&&t.highlightKey!=null?Vme(t.highlightKey):null;n!=null?W(tn(n),function(i){xF(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){xF(i,r,a)})}DO(ok);TA(ok);function c_e(e){return u_e(e.model)}function f_e(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&dX(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),d_e[l]}var d_e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const xr=ok;var xx="\0__throttleOriginMethod",TF="\0__throttleRate",CF="\0__throttleType";function YA(e,t,r){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var p=c||t,g=c||r;c=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),a=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Qg(e,t,r,n){var a=e[t];if(a){var i=a[xx]||a,o=a[CF],s=a[TF];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=YA(i,r,n==="debounce"),a[xx]=i,a[CF]=n,a[TF]=r}return a}}function Y0(e,t){var r=e[t];r&&r[xx]&&(r.clear&&r.clear(),e[t]=r[xx])}var EF=Pr(),MF={itemStyle:Vh(_K,!0),lineStyle:Vh(yK,!0)},h_e={lineStyle:"stroke",itemStyle:"fill"};function hX(e,t){var r=e.visualStyleMapper||MF[t];return r||(console.warn("Unknown style type '"+t+"'."),MF.itemStyle)}function vX(e,t){var r=e.visualDrawType||h_e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var v_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=hX(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=vX(e,n),u=o[l],c=Tt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Tt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Tt(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=Ie({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},Rm=new $r,p_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=hX(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Rm.option=l[n];var u=a(Rm),c=o.ensureUniqueItemVisual(s,"style");Ie(c,u),Rm.option.decal&&(o.setItemVisual(s,"decal",Rm.option.decal),Rm.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},g_e={performRawSeries:!0,overallReset:function(e){var t=_t();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),EF(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=EF(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=vX(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Sb=Math.PI;function m_e(e,t){t=t||{},yt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ot,n=new br({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new pr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new br({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new IA({shape:{startAngle:-Sb/2,endAngle:-Sb/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Sb*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Sb*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var y_e=function(){function e(t,r,n,a){this._stageTaskMap=_t(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=_t();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.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}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;W(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";ci(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;W(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,a.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=_t(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Zy({plan:x_e,reset:A_e,count:C_e}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||Zy({reset:__e});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=_t(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ci(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,a).each(v):(f=!1,W(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Zy({reset:b_e,onDirty:S_e})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return Tt(t)&&(t={overallReset:t,seriesType:E_e(t)}),t.uid=Yg("stageHandler"),r&&(t.visualType=r),t},e}();function __e(e){e.overallReset(e.ecModel,e.api,e.payload)}function b_e(e){return e.overallProgress&&w_e}function w_e(){this.agent.dirty(),this.getDownstream().dirty()}function S_e(){this.agent&&this.agent.dirty()}function x_e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function A_e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=tn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Fe(t,function(r,n){return pX(n)}):T_e}var T_e=pX(0);function pX(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function C_e(e){return e.data.count()}function E_e(e){Ax=null;try{e(j0,gX)}catch{}return Ax}var j0={},gX={},Ax;mX(j0,HK);mX(gX,GK);j0.eachSeriesByType=j0.eachRawSeriesByType=function(e){Ax=e};j0.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Ax=e.subType)};function mX(e,t){for(var r in t.prototype)e[r]=Wn}const yX=y_e;var DF=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const M_e={color:DF,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],DF]};var wi="#B9B8CE",PF="#100C2A",xb=function(){return{axisLine:{lineStyle:{color:wi}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},LF=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],_X={darkMode:!0,color:LF,backgroundColor:PF,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:wi}},textStyle:{color:wi},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:wi}},dataZoom:{borderColor:"#71708A",textStyle:{color:wi},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:wi}},timeline:{lineStyle:{color:wi},label:{color:wi},controlStyle:{color:wi,borderColor:wi}},calendar:{itemStyle:{color:PF},dayLabel:{color:wi},monthLabel:{color:wi},yearLabel:{color:wi}},timeAxis:xb(),logAxis:xb(),valueAxis:xb(),categoryAxis:xb(),line:{symbol:"circle"},graph:{color:LF},gauge:{title:{color:wi},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:wi},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};_X.categoryAxis.splitLine.show=!1;const D_e=_X;var P_e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(rt(t)){var i=El(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};W(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),KP=["symbol","symbolSize","symbolRotate","symbolOffset"],IF=KP.concat(["symbolKeepAspect"]),L_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<KP.length;o++){var s=KP[o],l=e.get(s);Tt(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Ie({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=vr(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:i?c:null}}},I_e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<IF.length;s++){var l=IF[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function sk(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function f1(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function bX(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function wX(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}W([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=Ie({},a),o.dispatchAction(Ie(a,{type:n[1],seriesIndex:r(i,a)}))})})}function Mv(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.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=Fh(f,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:Ne(d)?f.getName(d[0]):f.getName(d),selected:rt(l)?l:Ie({},l)})}})}function R_e(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(Mv("map","selectchanged",t,a,n),Mv("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Mv("map","selected",t,a,n),Mv("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Mv("map","unselected",t,a,n),Mv("pie","unselected",t,a,n))})}function th(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var O_e=Math.round(Math.random()*9),k_e=typeof Object.defineProperty=="function",N_e=function(){function e(){this._id="__ec_inner_"+O_e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return k_e?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const B_e=N_e;var F_e=cr.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),V_e=cr.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),z_e=cr.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),H_e=cr.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),G_e={line:Ta,rect:br,roundRect:br,square:br,circle:Qs,diamond:V_e,pin:z_e,arrow:H_e,triangle:F_e},U_e={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},Tx={};W(G_e,function(e,t){Tx[t]=new e});var $_e=cr.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=dx(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=Tx[n];a||(n="rect",a=Tx[n]),U_e[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function W_e(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function jn(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=VO(e.slice(8),new Xt(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=s1(e.slice(7),{},new Xt(t,r,n,a),o?"center":"cover"):l=new $_e({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=W_e,i&&l.setColor(i),l}function Jg(e){return Ne(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function av(e,t){if(e!=null)return Ne(e)||(e=[e,e]),[Je(e[0],t[0])||0,Je(Qt(e[1],e[0]),t[1])||0]}function rh(e){return isFinite(e)}function Y_e(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=rh(n)?n:0,a=rh(a)?a:1,i=rh(i)?i:0,o=rh(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function j_e(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=rh(o)?o:.5,s=rh(s)?s:.5,l=l>=0&&rh(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function XP(e,t,r){for(var n=t.type==="radial"?j_e(e,t,r):Y_e(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function K_e(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Ab(e){return parseInt(e,10)}function hp(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||Ab(s[n])||Ab(e.style[n]))-(Ab(s[i])||0)-(Ab(s[o])||0)|0}function X_e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Mr(e)?[e]:Ne(e)?e:null}function lk(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&X_e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=Fe(r,function(i){return i/a}),n/=a)}return[r,n]}var Z_e=new Hl(!0);function Cx(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function RF(e){return typeof e=="string"&&e!=="none"}function Ex(e){var t=e.fill;return t!=null&&t!=="none"}function OF(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function kF(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function ZP(e,t,r){var n=PO(t.image,t.__image,r);if(CA(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Vy),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function q_e(e,t,r,n){var a,i=Cx(r),o=Ex(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Z_e,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=i&&!!h.colorStops,g=o&&!!d.image,m=i&&!!h.image,y=void 0,_=void 0,w=void 0,x=void 0,S=void 0;(v||p)&&(S=t.getBoundingRect()),v&&(y=f?XP(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=f?XP(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(w=f||!t.__canvasFillPattern?ZP(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(x=f||!t.__canvasStrokePattern?ZP(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=y:g&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var A,C;e.setLineDash&&r.lineDash&&(a=lk(t),A=a[0],C=a[1]);var M=!0;(u||f&ep)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),A&&(e.setLineDash(A),e.lineDashOffset=C),n||(r.strokeFirst?(i&&kF(e,r),o&&OF(e,r)):(o&&OF(e,r),i&&kF(e,r))),A&&e.setLineDash([])}function Q_e(e,t,r){var n=t.__image=PO(r.image,t.__image,t,t.onload);if(!(!n||!CA(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function J_e(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||gf,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=lk(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Cx(r)&&e.strokeText(a,r.x,r.y),Ex(r)&&e.fillText(a,r.x,r.y)):(Ex(r)&&e.fillText(a,r.x,r.y),Cx(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var NF=["shadowBlur","shadowOffsetX","shadowOffsetY"],BF=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function SX(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Qi(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?bh.opacity:o}(n||t.blend!==r.blend)&&(i||(Qi(e,a),i=!0),e.globalCompositeOperation=t.blend||bh.blend);for(var s=0;s<NF.length;s++){var l=NF[s];(n||t[l]!==r[l])&&(i||(Qi(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(Qi(e,a),i=!0),e.shadowColor=t.shadowColor||bh.shadowColor),i}function FF(e,t,r,n,a){var i=K0(t,a.inHover),o=n?null:r&&K0(r,a.inHover)||{};if(i===o)return!1;var s=SX(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Qi(e,a),s=!0),RF(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Qi(e,a),s=!0),RF(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Qi(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Qi(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<BF.length;c++){var f=BF[c],d=f[0];(n||i[d]!==o[d])&&(s||(Qi(e,a),s=!0),e[d]=i[d]||f[1])}return s}function e1e(e,t,r,n,a){return SX(e,K0(t,a.inHover),r&&K0(r,a.inHover),n,a)}function xX(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function t1e(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),xX(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function r1e(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var VF=1,zF=2,HF=3,GF=4;function n1e(e){var t=Ex(e),r=Cx(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Qi(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function K0(e,t){return t&&e.__hoverStyle||e.style}function d1(e,t){nh(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function nh(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~_o,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||K_e(i,o))&&(o&&o.length&&(Qi(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Qi(e,r),e.save(),t1e(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof cr&&t.autoBatch&&n1e(t.style);s||r1e(a,u.transform)?(Qi(e,r),xX(e,t)):c||Qi(e,r);var f=K0(t,r.inHover);t instanceof cr?(r.lastDrawType!==VF&&(l=!0,r.lastDrawType=VF),FF(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),q_e(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof B0?(r.lastDrawType!==HF&&(l=!0,r.lastDrawType=HF),FF(e,t,u,l,r),J_e(e,t,f)):t instanceof Oa?(r.lastDrawType!==zF&&(l=!0,r.lastDrawType=zF),e1e(e,t,u,l,r),Q_e(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==GF&&(l=!0,r.lastDrawType=GF),a1e(e,t,r)),c&&n&&Qi(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function a1e(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),nh(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),nh(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var tE=new B_e,UF=new Vg(100),$F=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function eg(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&tE.delete(e);var i=tE.get(e);if(i)return i;var o=yt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,tE.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<$F.length;++d){var h=o[$F[d]];if(h!=null&&!Ne(h)&&!rt(h)&&!Mr(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var p=UF.get(v);p&&(a?u.svgElement=p:u.image=p)}var g=TX(o.dashArrayX),m=i1e(o.dashArrayY),y=AX(o.symbol),_=o1e(g),w=CX(m),x=!a&&Xs.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=C(),A;x&&(x.width=T.width*r,x.height=T.height*r,A=x.getContext("2d")),M(),f&&UF.put(v,x||S),u.image=x,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function C(){for(var E=1,D=0,P=_.length;D<P;++D)E=i5(E,_[D]);for(var L=1,D=0,P=y.length;D<P;++D)L=i5(L,y[D].length);E*=L;var I=w*_.length*y.length;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function M(){A&&(A.clearRect(0,0,x.width,x.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,x.width,x.height)));for(var E=0,D=0;D<m.length;++D)E+=m[D];if(E<=0)return;for(var P=-w,L=0,I=0,O=0;P<T.height;){if(L%2===0){for(var R=I/2%y.length,B=0,k=0,z=0;B<T.width*2;){for(var $=0,D=0;D<g[O].length;++D)$+=g[O][D];if($<=0)break;if(k%2===0){var j=(1-o.symbolSize)*.5,X=B+g[O][k]*j,Q=P+m[L]*j,se=g[O][k]*o.symbolSize,ee=m[L]*o.symbolSize,K=z/2%y[R].length;Z(X,Q,se,ee,y[R][K])}B+=g[O][k],++z,++k,k===g[O].length&&(k=0)}++O,O===g.length&&(O=0)}P+=m[L],++I,++L,L===m.length&&(L=0)}function Z(ne,re,ie,Y,q){var oe=a?1:r,ve=jn(q,ne*oe,re*oe,ie*oe,Y*oe,o.color,o.symbolKeepAspect);if(a){var _e=n.painter.renderOneToVNode(ve);_e&&S.children.push(_e)}else d1(A,ve)}}}}function AX(e){if(!e||e.length===0)return[["rect"]];if(rt(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!rt(e[r])){t=!1;break}if(t)return AX([e]);for(var n=[],r=0;r<e.length;++r)rt(e[r])?n.push([e[r]]):n.push(e[r]);return n}function TX(e){if(!e||e.length===0)return[[0,0]];if(Mr(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Mr(e[n])){r=!1;break}if(r)return TX([e]);for(var a=[],n=0;n<e.length;++n)if(Mr(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=Fe(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function i1e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Mr(e)){var t=Math.ceil(e);return[t,t]}var r=Fe(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function o1e(e){return Fe(e,function(t){return CX(t)})}function CX(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function s1e(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=eg(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=eg(a,t)}}})}var l1e=new gs;const Ds=l1e;var EX={};function u1e(e,t){EX[e]=t}function MX(e){return EX[e]}var c1e="5.4.3",f1e={zrender:"5.4.4"},d1e=1,h1e=800,v1e=900,p1e=1e3,g1e=2e3,m1e=5e3,DX=1e3,y1e=1100,uk=2e3,PX=3e3,_1e=4e3,jA=4500,b1e=4600,w1e=5e3,S1e=6e3,LX=7e3,IX={PROCESSOR:{FILTER:p1e,SERIES_FILTER:h1e,STATISTIC:m1e},VISUAL:{LAYOUT:DX,PROGRESSIVE_LAYOUT:y1e,GLOBAL:uk,CHART:PX,POST_CHART_LAYOUT:b1e,COMPONENT:_1e,BRUSH:w1e,CHART_ITEM:jA,ARIA:S1e,DECAL:LX}},ai="__flagInMainProcess",Ui="__pendingUpdate",rE="__needsUpdateStatus",WF=/^[a-zA-Z0-9_]+$/,nE="__connectUpdateStatus",YF=0,x1e=1,A1e=2;function RX(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return kX(this,e,t)}}function OX(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return kX(this,e,t)}}function kX(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),gs.prototype[t].apply(e,r)}var NX=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(gs),BX=NX.prototype;BX.on=OX("on");BX.off=OX("off");var Dv,aE,Tb,yc,iE,oE,sE,Om,km,jF,KF,lE,XF,Cb,ZF,FX,Oo,qF,Mx=function(e){De(t,e);function t(r,n,a){var i=e.call(this,new P_e)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},rt(n)&&(n=VX[n]),i._dom=r;var o="canvas",s="auto",l=!1,u=i._zr=hx(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Qt(a.useDirtyRect,l),useCoarsePointer:Qt(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=YA(ot(u.flush,u),17),n=Pt(n),n&&$K(n,!0),i._theme=n,i._locale=kye(a.locale||bK),i._coordSysMgr=new Zg;var c=i._api=ZF(i);function f(d,h){return d.__prio-h.__prio}return Yw(Px,f),Yw(qP,f),i._scheduler=new yX(i,c,qP,Px),i._messageCenter=new NX,i._initEvents(),i.resize=ot(i.resize,i),u.animation.on("frame",i._onframe,i),jF(u,i),KF(u,i),M0(i),i}return t.prototype._onframe=function(){if(!this._disposed){qF(this);var r=this._scheduler;if(this[Ui]){var n=this[Ui].silent;this[ai]=!0;try{Dv(this),yc.update.call(this,null,this[Ui].updateParams)}catch(l){throw this[ai]=!1,this[Ui]=null,l}this._zr.flush(),this[ai]=!1,this[Ui]=null,Om.call(this,n),km.call(this,n)}else if(r.unfinished){var a=d1e,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),oE(this,i),r.performVisualTasks(i),Cb(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[ai]){if(this._disposed){this.id;return}var i,o,s;if(Mt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ai]=!0,!this._model||n){var l=new v0e(this._api),u=this._theme,c=this._model=new HK;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},QP);var f={seriesTransition:s,optionChanged:!0};if(a)this[Ui]={silent:i,updateParams:f},this[ai]=!1,this.getZr().wakeUp();else{try{Dv(this),yc.update.call(this,null,f)}catch(d){throw this[Ui]=null,this[ai]=!1,d}this._ssr||this._zr.flush(),this[Ui]=null,this[ai]=!1,Om.call(this,i),km.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Cr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Cr.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return W(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;W(n,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(r).toDataURL("image/"+(r&&r.type||"png"));return W(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Lx[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();W(xh,function(_,w){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Pt(r)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Xs.createCanvas(),m=hx(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return W(d,function(_){var w=_.left-l,x=_.top-u;y+='<g transform="translate('+w+","+x+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new br({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),W(d,function(_){var w=new Oa({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return iE(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return iE(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=Wy(a,r);return W(o,function(s,l){l.indexOf("Models")>=0&&W(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=Wy(a,r,{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?sk(s,l,n):f1(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;W(T1e,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&th(s,function(v){var p=Ht(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Ie({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),W(qy,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),W(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),R_e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&mj(this.getDom(),fk,"");var n=this,a=n._api,i=n._model;W(n._componentsViews,function(o){o.dispose(i,a)}),W(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete xh[n.id]},t.prototype.resize=function(r){if(!this[ai]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[Ui]&&(i==null&&(i=this[Ui].silent),a=!0,this[Ui]=null),this[ai]=!0;try{a&&Dv(this),yc.update.call(this,{type:"resize",animation:Ie({duration:0},r&&r.animation)})}catch(o){throw this[ai]=!1,o}this[ai]=!1,Om.call(this,i),km.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Mt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!JP[r]){var a=JP[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Ie({},r);return n.type=qy[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Mt(n)||(n={silent:!!n}),!!Dx[r.type]&&this._model){if(this[ai]){this._pendingActions.push(r);return}var a=n.silent;sE.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&Cr.browser.weChat&&this._throttledZrFlush(),Om.call(this,a),km.call(this,a)}},t.prototype.updateLabelLayout=function(){Ds.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Dv=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),aE(f,!0),aE(f,!1),d.plan()},aE=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(S,T){S!=="series"&&w(T)}):h.eachSeries(w);function w(S){var T=S.__requireNewView;S.__requireNewView=!1;var A="_ec_"+S.id+"_"+S.type,C=!T&&g[A];if(!C){var M=El(S.type),E=d?rn.getClass(M.main,M.sub):xr.getClass(M.sub);C=new E,C.init(h,y),g[A]=C,p.push(C),m.add(C.group)}S.__viewId=C.__id=A,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!d&&v.prepareView(C,S,h,y)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!d&&x.renderTask.dispose(),m.remove(x.group),x.dispose(h,y),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Tb=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){W([].concat(f._componentsViews).concat(f._chartsViews),x);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var y={mainType:v,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,w;_!=null&&(w=_t(),W(tn(_),function(S){var T=ha(S,null);T!=null&&w.set(T,!0)})),g&&g.eachComponent(y,function(S){var T=w&&w.get(S.id)!=null;if(!T)if(R5(h))if(S instanceof Ir)h.type===wh&&!h.notBlur&&!S.get(["emphasis","disabled"])&&Lme(S,h,f._api);else{var A=kO(S.mainType,S.componentIndex,h.name,f._api),C=A.focusSelf,M=A.dispatchers;h.type===wh&&C&&!h.notBlur&&RP(S.mainType,S.componentIndex,f._api),M&&W(M,function(E){h.type===wh?Hu(E):Gu(E)})}else kP(h)&&S instanceof Ir&&(Ome(S,h,f._api),L5(S),Oo(f))},f),g&&g.eachComponent(y,function(S){var T=w&&w.get(S.id)!=null;T||x(f[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function x(S){S&&S.__alive&&S[d]&&S[d](S.__model,g,f._api,h)}},yc={prepareAndUpdate:function(f){Dv(this),yc.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,f),oE(this,h),g.update(h,v),r(h),m.performVisualTasks(h,f),lE(this,h,v,f,d);var y=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),Ds.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(y,h,v,f);w&&w.update&&p.push(_)}else p.push(_)}});var g=_t();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,v,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Cb(this,h,v,f,{},g),Ds.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),xr.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),lE(this,d,this._api,f,{}),Ds.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),xr.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),Ds.trigger("afterupdate",h,this._api))},updateLayout:function(f){yc.update.call(this,f)}},iE=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=Wy(p,h),_=0;_<g.length;_++){var w=g[_];if(w[d]&&(m=w[d](p,y,v))!=null)return m}},oE=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},sE=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=Dx[p],y=m.actionInfo,_=(y.update||"update").split(":"),w=_.pop(),x=_[0]!=null&&El(_[0]);this[ai]=!0;var S=[f],T=!1;f.batch&&(T=!0,S=Fe(f.batch,function(L){return L=yt(Ie({},L),f),L.batch=null,L}));var A=[],C,M=kP(f),E=R5(f);if(E&&$j(this._api),W(S,function(L){if(C=m.action(L,h._model,h._api),C=C||Ie({},L),C.type=y.event||C.type,A.push(C),E){var I=MO(f),O=I.queryOptionMap,R=I.mainTypeSpecified,B=R?O.keys()[0]:"series";Tb(h,w,L,B),Oo(h)}else M?(Tb(h,w,L,"series"),Oo(h)):x&&Tb(h,w,L,x.main,x.sub)}),w!=="none"&&!E&&!M&&!x)try{this[Ui]?(Dv(this),yc.update.call(this,f),this[Ui]=null):yc[w].call(this,f)}catch(L){throw this[ai]=!1,L}if(T?C={type:y.event||p,escapeConnect:g,batch:A}:C=A[0],this[ai]=!1,!d){var D=this._messageCenter;if(D.trigger(C.type,C),M){var P={type:"selectchanged",escapeConnect:g,selected:kme(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};D.trigger(P.type,P)}}},Om=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();sE.call(this,h,f)}},km=function(f){!f&&this.trigger("updated")},jF=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[Ui]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},KF=function(f,d){f.on("mouseover",function(h){var v=h.target,p=th(v,V0);p&&(Ime(p,h,d._api),Oo(d))}).on("mouseout",function(h){var v=h.target,p=th(v,V0);p&&(Rme(p,h,d._api),Oo(d))}).on("click",function(h){var v=h.target,p=th(v,function(y){return Ht(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Ht(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(y,_){var w=_.get("zlevel")||0,x=_.get("z")||0,S=_.getZLevelKey();v=v||!!S,(y==="series"?h:d).push({zlevel:w,z:x,idx:_.componentIndex,type:y,key:S})}),v){var p=d.concat(h),g,m;Yw(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),W(p,function(y){var _=f.getComponent(y.type,y.idx),w=y.zlevel,x=y.key;g!=null&&(w=Math.max(g,w)),x?(w===g&&x!==m&&w++,m=x):m&&(w===g&&w++,m=""),g=w,_.setZLevel(w)})}}lE=function(f,d,h,v,p){n(d),XF(f,d,h,v,p),W(f._chartsViews,function(g){g.__alive=!1}),Cb(f,d,h,v,p),W(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},XF=function(f,d,h,v,p,g){W(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),c(y,m)})},Cb=function(f,d,h,v,p,g){var m=f._scheduler;p=Ie(p||{},{updatedSeries:d.getSeries()}),Ds.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];w.__alive=!0;var x=w.renderTask;m.updatePayload(x,v),u(_,w),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(y=!0),w.group.silent=!!_.get("silent"),o(_,w),L5(_)}),m.unfinished=y||m.unfinished,Ds.trigger("series:layoutlabels",d,h,p),Ds.trigger("series:transition",d,h,p),d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];s(_,w),c(_,w)}),i(f,d),Ds.trigger("series:afterupdate",d,h,p)},Oo=function(f){f[rE]=!0,f.getZr().wakeUp()},qF=function(f){f[rE]&&(f.getZr().storage.traverse(function(d){Lp(d)||a(d)}),f[rE]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===DA&&f.states.emphasis?d.push("emphasis"):f.hoverState===a1&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Cr.node&&!Cr.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var w=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Lp(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Lp(m))return;if(m instanceof cr&&zme(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&a(m)}})}ZF=function(f){return new(function(d){De(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Hu(v,p),Oo(f)},h.prototype.leaveEmphasis=function(v,p){Gu(v,p),Oo(f)},h.prototype.enterBlur=function(v){zj(v),Oo(f)},h.prototype.leaveBlur=function(v){OO(v),Oo(f)},h.prototype.enterSelect=function(v){Hj(v),Oo(f)},h.prototype.leaveSelect=function(v){Gj(v),Oo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(GK))(f)},FX=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[nE]=v}}W(qy,function(h,v){f._messageCenter.on(v,function(p){if(Lx[f.group]&&f[nE]!==YF){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];W(xh,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,YF),W(m,function(y){y[nE]!==x1e&&y.dispatchAction(g)}),d(m,A1e)}})})}}(),t}(gs),ck=Mx.prototype;ck.on=RX("on");ck.off=RX("off");ck.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var T1e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Dx={},qy={},qP=[],QP=[],Px=[],VX={},JP={},xh={},Lx={},C1e=+new Date-0,E1e=+new Date-0,fk="_echarts_instance_";function $n(e,t,r){var n=!(r&&r.ssr);if(n){var a=dk(e);if(a)return a}var i=new Mx(e,t,r);return i.id="ec_"+C1e++,xh[i.id]=i,n&&mj(e,fk,i.id),FX(i),Ds.trigger("afterinit",i),i}function M1e(e){if(Ne(e)){var t=e;e=null,W(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+E1e++,W(t,function(r){r.group=e})}return Lx[e]=!0,e}function zX(e){Lx[e]=!1}var D1e=zX;function P1e(e){rt(e)?e=xh[e]:e instanceof Mx||(e=dk(e)),e instanceof Mx&&!e.isDisposed()&&e.dispose()}function dk(e){return xh[Cge(e,fk)]}function L1e(e){return xh[e]}function hk(e,t){VX[e]=t}function KA(e){tr(QP,e)<0&&QP.push(e)}function vk(e,t){yk(qP,e,t,g1e)}function pk(e){XA("afterinit",e)}function gk(e){XA("afterupdate",e)}function XA(e,t){Ds.on(e,t)}function il(e,t,r){Tt(t)&&(r=t,t="");var n=Mt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!qy[t]&&(ci(WF.test(n)&&WF.test(t)),Dx[n]||(Dx[n]={action:r,actionInfo:e}),qy[t]=n)}function HX(e,t){Zg.register(e,t)}function mk(e){var t=Zg.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function GX(e,t){yk(Px,e,t,DX,"layout")}function Ff(e,t){yk(Px,e,t,PX,"visual")}var QF=[];function yk(e,t,r,n,a){if((Tt(t)||Mt(t))&&(r=t,t=n),!(tr(QF,r)>=0)){QF.push(r);var i=yX.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function _k(e,t){JP[e]=t}function I1e(e){wY({createCanvas:e})}function UX(e,t,r){var n=MX("registerMap");n&&n(e,t,r)}function Ix(e){var t=MX("getMap");return t&&t(e)}var $X=G0e;Ff(uk,v_e);Ff(jA,p_e);Ff(jA,g_e);Ff(uk,L_e);Ff(jA,I_e);Ff(LX,s1e);KA($K);vk(v1e,S0e);_k("default",m_e);il({type:wh,event:wh,update:wh},Wn);il({type:Jw,event:Jw,update:Jw},Wn);il({type:Yy,event:Yy,update:Yy},Wn);il({type:eS,event:eS,update:eS},Wn);il({type:jy,event:jy,update:jy},Wn);hk("light",M_e);hk("dark",D_e);var R1e={},JF=[],O1e={registerPreprocessor:KA,registerProcessor:vk,registerPostInit:pk,registerPostUpdate:gk,registerUpdateLifecycle:XA,registerAction:il,registerCoordinateSystem:HX,registerLayout:GX,registerVisual:Ff,registerTransform:$X,registerLoading:_k,registerMap:UX,registerImpl:u1e,PRIORITY:IX,ComponentModel:sr,ComponentView:rn,SeriesModel:Ir,ChartView:xr,registerComponentModel:function(e){sr.registerClass(e)},registerComponentView:function(e){rn.registerClass(e)},registerSeriesModel:function(e){Ir.registerClass(e)},registerChartView:function(e){xr.registerClass(e)},registerSubTypeDefaulter:function(e,t){sr.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){sj(e,t)}};function Dt(e){if(Ne(e)){W(e,function(t){Dt(t)});return}tr(JF,e)>=0||(JF.push(e),Tt(e)&&(e={install:e}),e.install(O1e))}function Nm(e){return e==null?0:e.length||1}function eV(e){return e}var k1e=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||eV,this._newKeyGetter=a||eV,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Nm(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],f=Nm(u),d=Nm(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=Nm(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);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=Nm(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const Uu=k1e;var N1e=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function B1e(e,t){var r={},n=r.encode={},a=_t(),i=[],o=[],s={};W(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;uE(n,v)[p]=d,h.isExtraCoord||(a.set(v,1),F1e(h.type)&&(i[0]=d),uE(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}RK.each(function(g,m){var y=uE(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};a.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Fe(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new N1e(s,t),r}function uE(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Rx(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function F1e(e){return!(e==="ordinal"||e==="time")}var V1e=function(){function e(t){this.otherDims={},t!=null&&Ie(this,t)}return e}();const iS=V1e;var z1e=Pr(),H1e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},WX=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=KX(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Qt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=YK(this.source),n=!XX(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=H1e[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function YX(e){return e instanceof WX}function jX(e){for(var t=_t(),r=0;r<(e||[]).length;r++){var n=e[r],a=Mt(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function KX(e){var t=z1e(e);return t.dimNameMap||(t.dimNameMap=jX(e.dimensionsDefine))}function XX(e){return e>30}var Bm=Mt,_c=Fe,G1e=typeof Int32Array>"u"?Array:Int32Array,U1e="e\0\0",tV=-1,$1e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],W1e=["_approximateExtent"],rV,Eb,Fm,Vm,cE,Mb,fE,Y1e=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;YX(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=rt(f)?new iS({name:f}):f instanceof iS?f:new iS(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=_t();W(o,function(g){p.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Mr(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof $P&&(i=t),!i){var o=this.dimensions,s=ek(t)||ei(t)?new jK(t,o.length):t;i=new $P;var l=_c(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=B1e(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&fE(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==cf&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===ms;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&hge(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=ha(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=ha(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)fE(this,c);rV(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Bm(t)?Ie(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Fm(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return Eb(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return Ne(t)?a.getValues(_c(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n[r];return a==null||isNaN(a)?tV:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Tt(t)&&(n=r,r=t,t=[]);var a=n||this,i=_c(Vm(t),this._getStoreDimIndex,this);this._store.each(i,a?ot(r,a):r)},e.prototype.filterSelf=function(t,r,n){Tt(t)&&(n=r,r=t,t=[]);var a=n||this,i=_c(Vm(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ot(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=vr(t);return W(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Tt(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=_c(Vm(t),this._getStoreDimIndex,this),s=Mb(this);return s._store=this._store.map(o,i?ot(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=_c(Vm(t),this._getStoreDimIndex,this);this._store.modify(o,i?ot(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=Mb(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=Mb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new $r(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Uu(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Eb(t,n)},function(n){return Eb(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Bm(t)?Ie(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),Ne(i)?i=i.slice():Bm(i)&&(i=Ie({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Bm(r)?Ie(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Bm(t)?Ie(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Ie(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;LP(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){W(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:_c(this.dimensions,this._getDimInfo,this),this.hostModel)),cE(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Tt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(gA(arguments)))})},e.internalField=function(){rV=function(t){var r=t._invertedIndicesMap;W(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new G1e(o.categories.length);for(var l=0;l<n.length;l++)n[l]=tV;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Fm=function(t,r,n){return ha(t._getCategory(r,n),null)},Eb=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Fm(t,t._idDimIdx,r)),n==null&&(n=U1e+r),n},Vm=function(t){return Ne(t)||(t=t!=null?[t]:[]),t},Mb=function(t){var r=new e(t._schema?t._schema:_c(t.dimensions,t._getDimInfo,t),t.hostModel);return cE(r,t),r},cE=function(t,r){W($1e.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,W(W1e,function(n){t[n]=Pt(r[n])}),t._calculationInfo=Ie({},r._calculationInfo)},fE=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Fm(t,i,r)),l==null&&o!=null&&(a[r]=l=Fm(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}();const Dn=Y1e;function em(e,t){return tm(e,t).dimensions}function tm(e,t){ek(e)||(e=tk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=_t(),i=[],o=K1e(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&XX(o),l=n===e.dimensionsDefine,u=l?KX(e):jX(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=_t(c),d=new tX(o),h=0;h<d.length;h++)d[h]=-1;function v(C){var M=d[C];if(M<0){var E=n[C],D=Mt(E)?E:{name:E},P=new iS,L=D.name;L!=null&&u.get(L)!=null&&(P.name=P.displayName=L),D.type!=null&&(P.type=D.type),D.displayName!=null&&(P.displayName=D.displayName);var I=i.length;return d[C]=I,P.storeDimIndex=C,i.push(P),P}return i[M]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(C,M){var E=tn(C).slice();if(E.length===1&&!rt(E[0])&&E[0]<0){f.set(M,!1);return}var D=f.set(M,[]);W(E,function(P,L){var I=rt(P)?u.get(P):P;I!=null&&I<o&&(D[L]=I,g(v(I),M,L))})});var p=0;W(r,function(C){var M,E,D,P;if(rt(C))M=C,P={};else{P=C,M=P.name;var L=P.ordinalMeta;P.ordinalMeta=null,P=Ie({},P),P.ordinalMeta=L,E=P.dimsDef,D=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var I=f.get(M);if(I!==!1){if(I=tn(I),!I.length)for(var O=0;O<(E&&E.length||1);O++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&I.push(p++)}W(I,function(R,B){var k=v(R);if(l&&P.type!=null&&(k.type=P.type),g(yt(k,P),M,B),k.name==null&&E){var z=E[B];!Mt(z)&&(z={name:z}),k.name=k.displayName=z.name,k.defaultTooltip=z.defaultTooltip}D&&yt(k.otherDims,D)})}});function g(C,M,E){RK.get(M)!=null?C.otherDims[M]=E:(C.coordDim=M,C.coordDimIndex=E,a.set(M,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var w=m||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)W(i,function(C){x(C)}),i.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var S=0;S<o;S++){var T=v(S),A=T.coordDim;A==null&&(T.coordDim=X1e(w,a,_),T.coordDimIndex=0,(!m||y<=0)&&(T.isExtraCoord=!0),y--),x(T),T.type==null&&(BK(e,S)===ja.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return j1e(i),new WX({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function j1e(e){for(var t=_t(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function K1e(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return W(t,function(i){var o;Mt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function X1e(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Z1e=function(){function e(t){this.coordSysDims=[],this.axisMap=_t(),this.categoryAxisMap=_t(),this.coordSysName=t}return e}();function q1e(e){var t=e.get("coordinateSystem"),r=new Z1e(t),n=Q1e[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Q1e={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",ia).models[0],i=e.getReferringComponents("yAxis",ia).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Pv(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Pv(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",ia).models[0];t.coordSysDims=["single"],r.set("single",a),Pv(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",ia).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),Pv(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Pv(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();W(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Pv(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Pv(e){return e.get("type")==="category"}function ZX(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;J1e(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(W(i,function(y,_){rt(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;W(i,function(y){y.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function J1e(e){return!YX(e.schema)}function $u(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function bk(e,t){return $u(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ebe(e,t){var r=e.get("coordinateSystem"),n=Zg.get(r),a;return t&&t.coordSysDims&&(a=Fe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Rx(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function tbe(e,t,r){var n,a;return r&&W(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function eu(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=tk(e)):(a=n.getSource(),i=a.sourceFormat===ms);var o=q1e(t),s=ebe(t,o),l=r.useEncodeDefaulter,u=Tt(l)?l:l?zt(NK,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=tm(a,c),d=tbe(f.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(f),v=ZX(t,{schema:f,store:h}),p=new Dn(f,t);p.setCalculationInfo(v);var g=d!=null&&rbe(a)?function(m,y,_,w){return w===d?_:this.defaultDimValueGetter(m,y,_,w)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function rbe(e){if(e.sourceFormat===ms){var t=nbe(e.data||[]);return!Ne(zg(t))}}function nbe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var qX=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();TA(qX);const tc=qX;var abe=0,ibe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++abe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&Fe(n,obe);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!rt(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=_t(this.categories))},e}();function obe(e){return Mt(e)&&e.value!=null?e.value:e+""}const Ox=ibe;function eL(e){return e.type==="interval"||e.type==="log"}function sbe(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=TO(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=QX(o),l=a.niceTickExtent=[yn(Math.ceil(e[0]/o)*o,s),yn(Math.floor(e[1]/o)*o,s)];return lbe(l,e),a}function dE(e){var t=Math.pow(10,AA(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,yn(r*t)}function QX(e){return Ns(e)+2}function nV(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function lbe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),nV(e,0,t),nV(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ZA(e,t){return e>=t[0]&&e<=t[1]}function qA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function QA(e,t){return e*(t[1]-t[0])+t[0]}var JX=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Ox({})),Ne(a)&&(a=new Ox({categories:Fe(a,function(i){return Mt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:rt(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),ZA(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),qA(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(QA(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(tc);tc.registerClass(JX);const wk=JX;var yd=yn,eZ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return ZA(r,this._extent)},t.prototype.normalize=function(r){return qA(r,this._extent)},t.prototype.scale=function(r){return QA(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=QX(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:yd(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=yd(u+n,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&&(r?s.push({value:yd(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=yd(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Ns(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=yd(r.value,a,!0);return U0(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=sbe(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=yd(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=yd(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(tc);tc.registerClass(eZ);const bf=eZ;var tZ=typeof Float32Array<"u",ube=tZ?Float32Array:Array;function Ml(e){return Ne(e)?tZ?new Float32Array(e):e:new ube(e)}var tL="__ec_stack_";function Sk(e){return e.get("stack")||tL+e.seriesIndex}function xk(e){return e.dim+e.index}function cbe(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(yt({bandWidth:a,axisKey:n,stackId:tL+i},e));for(var o=aZ(t),s=[],i=0;i<e.count;i++){var l=o[n][tL+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function rZ(e,t){var r=[];return t.eachSeriesByType(e,function(n){sZ(n)&&r.push(n)}),r}function fbe(e){var t={};W(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];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))}r[n]=i}}return r}function nZ(e){var t=fbe(e),r=[];return W(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=Je(n.get("barWidth"),s),p=Je(n.get("barMaxWidth"),s),g=Je(n.get("barMinWidth")||(lZ(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:xk(i),stackId:Sk(n)})}),aZ(r)}function aZ(e){var t={};W(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return W(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=vr(i).length;s=Math.max(35-l*4,15)+"%"}var u=Je(s,o),c=Je(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),W(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var w=m.width;y&&(w=Math.min(w,y)),_&&(w=Math.max(w,_)),m.width=w,f-=w+c*w,d--}else{var w=h;y&&y<w&&(w=Math.min(y,f)),_&&_>w&&(w=_),w!==h&&(m.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;W(i,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;W(i,function(m,y){r[a][y]=r[a][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function dbe(e,t,r){if(e&&t){var n=e[xk(t)];return n!=null&&r!=null?n[Sk(r)]:n}}function iZ(e,t){var r=rZ(e,t),n=nZ(r);W(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Sk(a),u=n[xk(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function oZ(e){return{seriesType:e,plan:qg(),reset:function(t){if(sZ(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),f=$u(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=hbe(a,i),v=lZ(t),p=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,w){for(var x=_.count,S=v&&Ml(x*3),T=v&&l&&Ml(x*3),A=v&&Ml(x),C=n.master.getRect(),M=d?C.width:C.height,E,D=w.getStore(),P=0;(E=_.next())!=null;){var L=D.get(f?g:o,E),I=D.get(s,E),O=h,R=void 0;f&&(R=+L-D.get(o,E));var B=void 0,k=void 0,z=void 0,$=void 0;if(d){var j=n.dataToPoint([L,I]);if(f){var X=n.dataToPoint([R,I]);O=X[0]}B=O,k=j[1]+y,z=j[0]-O,$=m,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var j=n.dataToPoint([I,L]);if(f){var X=n.dataToPoint([I,R]);O=X[1]}B=j[0]+y,k=O,z=m,$=j[1]-O,Math.abs($)<p&&($=($<=0?-1:1)*p)}v?(S[P]=B,S[P+1]=k,S[P+2]=d?z:$,T&&(T[P]=d?C.x:B,T[P+1]=d?k:C.y,T[P+2]=M),A[E]=E):w.setItemLayout(E,{x:B,y:k,width:z,height:$}),P+=3}v&&w.setLayout({largePoints:S,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function sZ(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function lZ(e){return e.pipelineContext&&e.pipelineContext.large}function hbe(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var vbe=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},uZ=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return c1(r.value,K5[Fye(Ip(this._minLevelUnit))]||K5.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Vye(r,n,a,o,i)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=wbe(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Zo,n[1]+=Zo),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Zo}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Db.length,l=Math.min(vbe(Db,this._approxInterval,0,s),s-1);this._interval=Db[l][1],this._minLevelUnit=Db[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Mr(r)?r:+uo(r)},t.prototype.contain=function(r){return ZA(this.parse(r),this._extent)},t.prototype.normalize=function(r){return qA(this.parse(r),this._extent)},t.prototype.scale=function(r){return QA(r,this._extent)},t.type="time",t}(bf),Db=[["second",WO],["minute",YO],["hour",Xy],["quarter-day",Xy*6],["half-day",Xy*12],["day",Zo*1.2],["half-week",Zo*3.5],["week",Zo*7],["month",Zo*31],["quarter",Zo*95],["half-year",j5/2],["year",j5]];function pbe(e,t,r,n){var a=uo(t),i=uo(r),o=function(v){return X5(a,v,n)===X5(i,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function gbe(e,t){return e/=Zo,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function mbe(e){var t=30*Zo;return e/=t,e>6?6:e>3?3:e>2?2:1}function ybe(e){return e/=Xy,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function aV(e,t){return e/=t?YO:WO,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function _be(e){return TO(e,!0)}function bbe(e,t,r){var n=new Date(e);switch(Ip(t)){case"year":case"month":n[xK(r)](0);case"day":n[AK(r)](1);case"hour":n[TK(r)](0);case"minute":n[CK(r)](0);case"second":n[EK(r)](0),n[MK(r)](0)}return n.getTime()}function wbe(e,t,r,n){var a=1e4,i=wK,o=0;function s(M,E,D,P,L,I,O){for(var R=new Date(E),B=E,k=R[P]();B<D&&B<=n[1];)O.push({value:B}),k+=M,R[L](k),B=R.getTime();O.push({value:B,notAdd:!0})}function l(M,E,D){var P=[],L=!E.length;if(!pbe(Ip(M),n[0],n[1],r)){L&&(E=[{value:bbe(new Date(n[0]),M,r)},{value:n[1]}]);for(var I=0;I<E.length-1;I++){var O=E[I].value,R=E[I+1].value;if(O!==R){var B=void 0,k=void 0,z=void 0,$=!1;switch(M){case"year":B=Math.max(1,Math.round(t/Zo/365)),k=jO(r),z=zye(r);break;case"half-year":case"quarter":case"month":B=mbe(t),k=Rp(r),z=xK(r);break;case"week":case"half-week":case"day":B=gbe(t),k=BA(r),z=AK(r),$=!0;break;case"half-day":case"quarter-day":case"hour":B=ybe(t),k=G0(r),z=TK(r);break;case"minute":B=aV(t,!0),k=FA(r),z=CK(r);break;case"second":B=aV(t,!1),k=VA(r),z=EK(r);break;case"millisecond":B=_be(t),k=zA(r),z=MK(r);break}s(B,O,R,k,z,$,P),M==="year"&&D.length>1&&I===0&&D.unshift({value:D[0].value-B})}}for(var I=0;I<P.length;I++)D.push(P[I]);return P}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Ip(i[h]);if(Bye(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?Ip(i[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(M,E){return M.value-E.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===i[h]))break}c=[]}}}for(var w=Yr(Fe(u,function(M){return Yr(M,function(E){return E.value>=n[0]&&E.value<=n[1]&&!E.notAdd})}),function(M){return M.length>0}),x=[],S=w.length-1,h=0;h<w.length;++h)for(var T=w[h],A=0;A<T.length;++A)x.push({value:T[A].value,level:S-h});x.sort(function(M,E){return M.value-E.value});for(var C=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&C.push(x[h]);return C}tc.registerClass(uZ);const cZ=uZ;var iV=tc.prototype,Qy=bf.prototype,Sbe=yn,xbe=Math.floor,Abe=Math.ceil,Pb=Math.pow,Ss=Math.log,Ak=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new bf,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Qy.getTicks.call(this,r);return Fe(o,function(s){var l=s.value,u=yn(Pb(this.base,l));return u=l===a[0]&&this._fixMin?Lb(u,i[0]):u,u=l===a[1]&&this._fixMax?Lb(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=Ss(this.base);r=Ss(Math.max(0,r))/a,n=Ss(Math.max(0,n))/a,Qy.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=iV.getExtent.call(this);n[0]=Pb(r,n[0]),n[1]=Pb(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Lb(n[0],i[0])),this._fixMax&&(n[1]=Lb(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Ss(r[0])/Ss(n),r[1]=Ss(r[1])/Ss(n),iV.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=cj(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[yn(Abe(n[0]/i)*i),yn(xbe(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Qy.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Ss(r)/Ss(this.base),ZA(r,this._extent)},t.prototype.normalize=function(r){return r=Ss(r)/Ss(this.base),qA(r,this._extent)},t.prototype.scale=function(r){return r=QA(r,this._extent),Pb(this.base,r)},t.type="log",t}(tc),fZ=Ak.prototype;fZ.getMinorTicks=Qy.getMinorTicks;fZ.getLabel=Qy.getLabel;function Lb(e,t){return Sbe(e,Ns(t))}tc.registerClass(Ak);const Tbe=Ak;var Cbe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);Tt(i)?this._modelMinNum=Ib(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=Ib(t,i));var o=this._modelMaxRaw=r.get("max",!0);if(Tt(o)?this._modelMaxNum=Ib(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Ib(t,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=Ne(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[qs(l[0],1),qs(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Zp(s)||Zp(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[Mbe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Ebe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Ebe={min:"_determinedMin",max:"_determinedMax"},Mbe={min:"_dataMin",max:"_dataMax"};function dZ(e,t,r){var n=e.rawExtentInfo;return n||(n=new Cbe(e,t,r),e.rawExtentInfo=n,n)}function Ib(e,t){return t==null?null:Zp(t)?NaN:e.parse(t)}function hZ(e,t){var r=e.type,n=dZ(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=rZ("bar",o),l=!1;if(W(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=nZ(s),c=Dbe(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function Dbe(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=dbe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;W(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;W(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Gh(e,t){var r=t,n=hZ(e,r),a=n.extent,i=r.get("splitNumber");e instanceof Tbe&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function h1(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new wk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new cZ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(tc.getClass(t)||bf)}}function Pbe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function v1(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):rt(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):Tt(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(Tk(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Tk(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Lbe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof wk?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=v1(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=n?n[c]:{value:i[0]+c},d=s(f,c),h=o.getTextRect(d),v=Ibe(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function Ibe(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new Xt(e.x,e.y,i,o);return s}function Ck(e){var t=e.get("interval");return t??"auto"}function vZ(e){return e.type==="category"&&Ck(e.getLabelModel())===0}function kx(e,t){var r={};return W(e.mapDimensionsAll(t),function(n){r[bk(e,n)]=!0}),vr(r)}function Rbe(e,t,r){t&&W(kx(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var rm=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function pZ(e){return eu(null,e)}var JA={isDimensionStacked:$u,enableDataStack:ZX,getStackedDimension:bk};function eT(e,t){var r=t;t instanceof $r||(r=new $r(t));var n=h1(r);return n.setExtent(e[0],e[1]),Gh(n,r),n}function gZ(e){Kn(e,rm)}function Obe(e,t){return t=t||{},Xr(e,null,null,t.state!=="normal")}const kbe=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:em,createList:pZ,createScale:eT,createSymbol:jn,createTextStyle:Obe,dataStack:JA,enableHoverEmphasis:lf,getECData:Ht,getLayoutRect:kn,mixinAxisModelCommonMethods:gZ},Symbol.toStringTag,{value:"Module"}));var Nbe=1e-8;function oV(e,t){return Math.abs(e-t)<Nbe}function Ud(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=mu(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!oV(a[0],s[0])||!oV(a[1],s[1]))&&(n+=mu(a[0],a[1],s[0],s[1],t,r)),n!==0}var Bbe=[];function hE(e,t){for(var r=0;r<e.length;r++)va(e[r],e[r],t)}function sV(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Tu(t,t,i),Cu(r,r,i))}}function Fbe(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],c=i*u-l*o;t+=c,r+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var mZ=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),lV=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),uV=function(){function e(t){this.type="linestring",this.points=t}return e}(),yZ=function(e){De(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return Fbe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return W(o,function(s){s.type==="polygon"?sV(s.exterior,a,i,r):W(s.points,function(l){sV(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Xt(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[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(Ud(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Ud(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Xt(r,n,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(hE(d.exterior,u),W(d.interiors,function(h){hE(h,u)})):W(d.points,function(h){hE(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(mZ),Vbe=function(e){De(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=t1(Bbe),o=r;o&&!o.isGeoSVGGraphicRoot;)Rl(i,o.getLocalTransform(),i),o=o.parent;return kf(i,i),va(a,a,i),a},t}(mZ);function zbe(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return W(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=_Z(s,o,r);break;case"Polygon":vE(s,o,r);break;case"MultiLineString":vE(s,o,r);break;case"MultiPolygon":W(s,function(l,u){return vE(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function vE(e,t,r){for(var n=0;n<e.length;n++)e[n]=_Z(e[n],t[n],r)}function _Z(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function X0(e,t){return e=zbe(e),Fe(Yr(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new lV(o[0],o.slice(1)));break;case"MultiPolygon":W(a.coordinates,function(l){l[0]&&i.push(new lV(l[0],l.slice(1)))});break;case"LineString":i.push(new uV([a.coordinates]));break;case"MultiLineString":i.push(new uV(a.coordinates))}var s=new yZ(n[t||"name"],i,n.cp);return s.properties=n,s})}const Hbe=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:TP,asc:wo,getPercentWithPrecision:cge,getPixelPrecision:xO,getPrecision:Ns,getPrecisionSafe:xA,isNumeric:CO,isRadianAroundZero:k0,linearMap:Vr,nice:TO,numericToNumber:zl,parseDate:uo,quantile:Qw,quantity:cj,quantityExponent:AA,reformIntervals:CP,remRadian:AO,round:yn},Symbol.toStringTag,{value:"Module"})),Gbe=Object.freeze(Object.defineProperty({__proto__:null,format:c1,parse:uo},Symbol.toStringTag,{value:"Module"})),Ube=Object.freeze(Object.defineProperty({__proto__:null,Arc:IA,BezierCurve:o1,BoundingRect:Xt,Circle:Qs,CompoundPath:RA,Ellipse:LA,Group:Ot,Image:Oa,IncrementalDisplayable:lK,Line:Ta,LinearGradient:kr,Polygon:Ri,Polyline:Fi,RadialGradient:BO,Rect:br,Ring:i1,Sector:Ii,Text:pr,clipPointsByRect:HO,clipRectByRect:dK,createIcon:Ug,extendPath:cK,extendShape:eo,getShapeClass:OA,getTransform:uf,initProps:_n,makeImage:VO,makePath:s1,mergePath:bo,registerShape:zn,resizePath:zO,updateProps:Lr},Symbol.toStringTag,{value:"Module"})),$be=Object.freeze(Object.defineProperty({__proto__:null,addCommas:U0,capitalFirst:Uye,encodeHTML:na,formatTime:DK,formatTpl:HA,getTextRect:Hye,getTooltipMarker:XO,normalizeCssArray:nv,toCamelCase:KO,truncateText:wj},Symbol.toStringTag,{value:"Module"})),Wbe=Object.freeze(Object.defineProperty({__proto__:null,bind:ot,clone:Pt,curry:zt,defaults:yt,each:W,extend:Ie,filter:Yr,indexOf:tr,inherits:Q_,isArray:Ne,isFunction:Tt,isObject:Mt,isString:rt,map:Fe,merge:st,reduce:Co},Symbol.toStringTag,{value:"Module"}));var Z0=Pr();function Ybe(e){return e.type==="category"?Kbe(e):Zbe(e)}function jbe(e,t){return e.type==="category"?Xbe(e,t):{ticks:Fe(e.scale.getTicks(),function(r){return r.value})}}function Kbe(e){var t=e.getLabelModel(),r=bZ(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function bZ(e,t){var r=wZ(e,"labels"),n=Ck(t),a=SZ(r,n);if(a)return a;var i,o;return Tt(n)?i=TZ(e,n):(o=n==="auto"?qbe(e):n,i=AZ(e,o)),xZ(r,n,{labels:i,labelCategoryInterval:o})}function Xbe(e,t){var r=wZ(e,"ticks"),n=Ck(t),a=SZ(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Tt(n))i=TZ(e,n,!0);else if(n==="auto"){var s=bZ(e,e.getLabelModel());o=s.labelCategoryInterval,i=Fe(s.labels,function(l){return l.tickValue})}else o=n,i=AZ(e,o,!0);return xZ(r,n,{ticks:i,tickCategoryInterval:o})}function Zbe(e){var t=e.scale.getTicks(),r=v1(e);return{labels:Fe(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function wZ(e,t){return Z0(e)[t]||(Z0(e)[t]=[])}function SZ(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function xZ(e,t,r){return e.push({key:t,value:r}),r}function qbe(e){var t=Z0(e).autoInterval;return t??(Z0(e).autoInterval=e.calculateCategoryInterval())}function Qbe(e){var t=Jbe(e),r=v1(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=i[1];l+=s){var v=0,p=0,g=r1(r({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),w=Z0(e.model),x=e.getExtent(),S=w.lastAutoInterval,T=w.lastTickCount;return S!=null&&T!=null&&Math.abs(S-_)<=1&&Math.abs(T-o)<=1&&S>_&&w.axisExtent0===x[0]&&w.axisExtent1===x[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=x[0],w.axisExtent1=x[1]),_}function Jbe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function AZ(e,t,r){var n=v1(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=vZ(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&p(i[0]);for(var v=u;v<=i[1];v+=l)p(v);h&&v-l!==i[1]&&p(i[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function TZ(e,t,r){var n=e.scale,a=v1(e),i=[];return W(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var cV=[0,1],ewe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return xO(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),fV(n,a.count())),Vr(t,cV,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),fV(n,a.count()));var i=Vr(t,n,cV,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=jbe(this,r),a=n.ticks,i=Fe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return twe(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=Fe(n,function(i){return Fe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return Ybe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return Qbe(this)},e}();function fV(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function twe(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;W(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,v){return h=yn(h),v=yn(v),f?h>v:h<v}}const gi=ewe;function rwe(e){var t=sr.extend(e);return sr.registerClass(t),t}function nwe(e){var t=rn.extend(e);return rn.registerClass(t),t}function awe(e){var t=Ir.extend(e);return Ir.registerClass(t),t}function iwe(e){var t=xr.extend(e);return xr.registerClass(t),t}var zm=Math.PI*2,_d=Hl.CMD,owe=["top","right","bottom","left"];function swe(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function lwe(e,t,r,n,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-a)%zm<1e-4)return l[0]=c,l[1]=f,u-r;if(i){var d=n;n=Bs(a),a=Bs(d)}else n=Bs(n),a=Bs(a);n>a&&(a+=zm);var h=Math.atan2(s,o);if(h<0&&(h+=zm),h>=n&&h<=a||h+zm>=n&&h+zm<=a)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(a)+e,m=r*Math.sin(a)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Nx(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function CZ(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Ps=[];function uwe(e,t,r){var n=CZ(t.x,t.y,t.width,t.height,e.x,e.y,Ps);return r.set(Ps[0],Ps[1]),n}function cwe(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(n=c[h],a=c[h+1],i=n,o=a);var p=u;switch(v){case _d.M:i=c[h++],o=c[h++],n=i,a=o;break;case _d.L:p=Nx(n,a,c[h],c[h+1],f,d,Ps,!0),n=c[h++],a=c[h++];break;case _d.C:p=UY(n,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Ps),n=c[h++],a=c[h++];break;case _d.Q:p=WY(n,a,c[h++],c[h++],c[h],c[h+1],f,d,Ps),n=c[h++],a=c[h++];break;case _d.A:var g=c[h++],m=c[h++],y=c[h++],_=c[h++],w=c[h++],x=c[h++];h+=1;var S=!!(1-c[h++]);s=Math.cos(w)*y+g,l=Math.sin(w)*_+m,h<=1&&(i=s,o=l);var T=(f-g)*_/y+g;p=lwe(g,m,_,w,w+x,S,T,d,Ps),n=Math.cos(w+x)*y+g,a=Math.sin(w+x)*_+m;break;case _d.R:i=n=c[h++],o=a=c[h++];var A=c[h++],C=c[h++];p=CZ(i,o,A,C,f,d,Ps);break;case _d.Z:p=Nx(n,a,i,o,f,d,Ps,!0),n=i,a=o;break}p<u&&(u=p,r.set(Ps[0],Ps[1]))}return u}var Fs=new qt,fn=new qt,qn=new qt,Dl=new qt,Al=new qt;function dV(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||owe,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&kf([],c),d=t.get("length2")||0;u&&qn.copy(u);for(var h=0;h<o.length;h++){var v=o[h];swe(v,0,s,Fs,Dl),qt.scaleAndAdd(fn,Fs,Dl,d),fn.transform(f);var p=e.getBoundingRect(),g=u?u.distance(fn):e instanceof cr?cwe(fn,e.path,qn):uwe(fn,p,qn);g<l&&(l=g,fn.transform(c),qn.transform(c),qn.toArray(i[0]),fn.toArray(i[1]),Fs.toArray(i[2]))}EZ(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var Bx=[],Ai=new qt;function EZ(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Fs.fromArray(e[0]),fn.fromArray(e[1]),qn.fromArray(e[2]),qt.sub(Dl,Fs,fn),qt.sub(Al,qn,fn);var r=Dl.len(),n=Al.len();if(!(r<.001||n<.001)){Dl.scale(1/r),Al.scale(1/n);var a=Dl.dot(Al),i=Math.cos(t);if(i<a){var o=Nx(fn.x,fn.y,qn.x,qn.y,Fs.x,Fs.y,Bx,!1);Ai.fromArray(Bx),Ai.scaleAndAdd(Al,o/Math.tan(Math.PI-t));var s=qn.x!==fn.x?(Ai.x-fn.x)/(qn.x-fn.x):(Ai.y-fn.y)/(qn.y-fn.y);if(isNaN(s))return;s<0?qt.copy(Ai,fn):s>1&&qt.copy(Ai,qn),Ai.toArray(e[1])}}}}function fwe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Fs.fromArray(e[0]),fn.fromArray(e[1]),qn.fromArray(e[2]),qt.sub(Dl,fn,Fs),qt.sub(Al,qn,fn);var n=Dl.len(),a=Al.len();if(!(n<.001||a<.001)){Dl.scale(1/n),Al.scale(1/a);var i=Dl.dot(t),o=Math.cos(r);if(i<o){var s=Nx(fn.x,fn.y,qn.x,qn.y,Fs.x,Fs.y,Bx,!1);Ai.fromArray(Bx);var l=Math.PI/2,u=Math.acos(Al.dot(t)),c=l+u-r;if(c>=l)qt.copy(Ai,qn);else{Ai.scaleAndAdd(Al,s/Math.tan(Math.PI/2-c));var f=qn.x!==fn.x?(Ai.x-fn.x)/(qn.x-fn.x):(Ai.y-fn.y)/(qn.y-fn.y);if(isNaN(f))return;f<0?qt.copy(Ai,fn):f>1&&qt.copy(Ai,qn)}Ai.toArray(e[1])}}}}function hV(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function dwe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Au(n[0],n[1]),i=Au(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Hy([],n[1],n[0],o/a),l=Hy([],n[1],n[2],o/i),u=Hy([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function Ek(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<F0.length;l++){var u=F0[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Qt(a.states[u]&&a.states[u].ignore,s);if(h||!Qt(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new Fi,e.setTextGuideLine(n),!f&&(s||!o)&&hV(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),hV(n,!1,u,c)}}if(n){yt(n.style,r),n.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=dwe}}function Mk(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Li.length;n++){var a=Li[n];r[a]=e.getModel([a,t])}return r}function MZ(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.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 gx(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function DZ(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(A,C){return A.rect[t]-C.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&i&&x(-c/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&S(-m,.8),y<0&&S(y,.8),_(),w(m,y,1),w(y,m,-1),_(),m<0&&T(-m),y<0&&T(y);function _(){m=p.rect[t]-n,y=a-g.rect[t]-g.rect[r]}function w(A,C,M){if(A<0){var E=Math.min(C,-A);if(E>0){x(E*M,0,o);var D=E+A;D<0&&S(-D*M,1)}else S(-A*M,1)}}function x(A,C,M){A!==0&&(u=!0);for(var E=C;E<M;E++){var D=e[E],P=D.rect;P[t]+=A,D.label[t]+=A}}function S(A,C){for(var M=[],E=0,D=1;D<o;D++){var P=e[D-1].rect,L=Math.max(e[D].rect[t]-P[t]-P[r],0);M.push(L),E+=L}if(E){var I=Math.min(Math.abs(A)/E,C);if(A>0)for(var D=0;D<o-1;D++){var O=M[D]*I;x(O,0,D+1)}else for(var D=o-1;D>0;D--){var O=M[D-1]*I;x(-O,D,o)}}}function T(A){var C=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),E=0;E<o-1;E++)if(C>0?x(M,0,E+1):x(-M,o-E-1,o),A-=M,A<=0)return}return u}function hwe(e,t,r,n){return DZ(e,"x","width",t,r,n)}function PZ(e,t,r,n){return DZ(e,"y","height",t,r,n)}function LZ(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new Xt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=i.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new gx(v.localRect,v.transform)),f||(f=new gx(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function vwe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function pwe(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:vwe(n&&n.shape.points)}}var vV=["align","verticalAlign","width","height","fontSize"],mi=new Eu,pE=Pr(),gwe=Pr();function Rb(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var Ob=["x","y","rotation"],mwe=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Xt.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=Bs(mi.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();Xt.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.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}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(Tt(a)||vr(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Ht(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(_,w){return function(){dV(_,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;Tt(o.layoutOption)?c=o.layoutOption(pwe(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=Je(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Je(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=pE(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<vV.length;p++){var g=vV[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",a(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=MZ(this._labelList),i=Yr(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Yr(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});hwe(i,0,r),PZ(o,0,n);var s=Yr(a,function(l){return l.layoutOption.hideOverlap});LZ(s)},e.prototype.processLabelsOverall=function(){var t=this;W(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=pE(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=Ht(t),i=a.dataIndex;if(n&&i!=null){var o=r.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");Ek(t,Mk(s),l),dV(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Lp(t))){var i=pE(n),o=i.oldLayout,s=Ht(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(tr(d,"select")>=0&&n.attr(i.oldLayoutSelect),tr(d,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Lr(n,u,r,l)}else if(n.attr(u),!Wg(n).valueAnimation){var f=Qt(n.style.opacity,1);n.style.opacity=0,_n(n,{style:{opacity:f}},r,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};Rb(h,u,Ob),Rb(h,n.states.select,Ob)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Rb(v,u,Ob),Rb(v,n.states.emphasis,Ob)}mK(n,l,c,r,r)}if(a&&!a.ignore&&!a.invisible){var i=gwe(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Lr(a,{shape:p},r)):(a.setShape(p),a.style.strokePercent=0,_n(a,{style:{strokePercent:1}},r)),i.oldLayout=p}},e}();const ywe=mwe;var gE=Pr();function IZ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=gE(r).labelManager;a||(a=gE(r).labelManager=new ywe),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=gE(r).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var mE=Math.sin,yE=Math.cos,RZ=Math.PI,bd=Math.PI*2,_we=180/RZ,bwe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=jc(f-bd)||(c?u>=bd:-u>=bd),h=u>0?u%bd:u%bd+bd,v=!1;d?v=!0:jc(f)?v=!1:v=h>=RZ==!!c;var p=t+n*yE(o),g=r+a*mE(o);this._start&&this._add("M",p,g);var m=Math.round(i*_we);if(d){var y=1/this._p,_=(c?1:-1)*(bd-y);this._add("A",n,a,m,1,+c,t+n*yE(o+_),r+a*mE(o+_)),y>.01&&this._add("A",n,a,m,0,+c,p,g)}else{var w=t+n*yE(s),x=r+a*mE(s);this._add("A",n,a,m,+v,+c,w,x)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const OZ=bwe;var Jy="none",wwe=Math.round;function Swe(e){var t=e.fill;return t!=null&&t!==Jy}function xwe(e){var t=e.stroke;return t!=null&&t!==Jy}var rL=["lineCap","miterLimit","lineJoin"],Awe=Fe(rL,function(e){return"stroke-"+e.toLowerCase()});function Twe(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof Oa){e("opacity",a);return}if(Swe(t)){var i=O0(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&e("fill-opacity",o)}else e("fill",Jy);if(xwe(t)){var s=O0(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,f=t.strokeFirst;if((n||u!==1)&&e("stroke-width",u),(n||f)&&e("paint-order",f?"stroke":"fill"),(n||c<1)&&e("stroke-opacity",c),t.lineDash){var d=lk(r),h=d[0],v=d[1];h&&(v=wwe(v||0),e("stroke-dasharray",h.join(",")),(v||n)&&e("stroke-dashoffset",v))}else n&&e("stroke-dasharray",Jy);for(var p=0;p<rL.length;p++){var g=rL[p];if(n||t[g]!==vx[g]){var m=t[g]||vx[g];m&&e(Awe[p],m)}}}else n&&e("stroke",Jy)}var kZ="http://www.w3.org/2000/svg",NZ="http://www.w3.org/1999/xlink",Cwe="http://www.w3.org/2000/xmlns/",Ewe="http://www.w3.org/XML/1998/namespace";function BZ(e){return document.createElementNS(kZ,e)}function Ca(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function Mwe(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function Dwe(e){return"</"+e+">"}function Dk(e,t){t=t||{};var r=t.newline?`
|
||
`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Mwe(o,s)+(o!=="style"?na(l):l||"")+(i?""+r+Fe(i,function(u){return n(u)}).join(r)+r:"")+Dwe(o)}return n(e)}function Pwe(e,t,r){r=r||{};var n=r.newline?`
|
||
`:"",a=" {"+n,i=n+"}",o=Fe(vr(e),function(l){return l+a+Fe(vr(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=Fe(vr(t),function(l){return"@keyframes "+l+a+Fe(vr(t[l]),function(u){return u+a+Fe(vr(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function nL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function pV(e,t,r,n){return Ca("svg","root",{width:e,height:t,xmlns:kZ,"xmlns:xlink":NZ,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var gV={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"},Rd="transform-origin";function Lwe(e,t,r){var n=Ie({},e.shape);Ie(n,t),e.buildPath(r,n);var a=new OZ;return a.reset(QY(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function Iwe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Rd]=r+"px "+n+"px")}var Rwe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function FZ(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Owe(e,t,r){var n=e.shape.paths,a={},i,o;if(W(n,function(l){var u=nL(r.zrId);u.animation=!0,tT(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=vr(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var p in v){var g=v[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){t.d=!1;var s=FZ(a,r);return i.replace(o,s)}}function mV(e){return rt(e)?gV[e]?"cubic-bezier("+gV[e]+")":_O(e)?e:"":""}function tT(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof RA){var s=Owe(e,t,r);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=mV(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function p(y){var _=y[1],w=_.length,x={},S={},T={},A="animation-timing-function";function C(Z,ne,re){for(var ie=Z.getTracks(),Y=Z.getMaxTime(),q=0;q<ie.length;q++){var oe=ie[q];if(oe.needsAnimate()){var ve=oe.keyframes,_e=oe.propName;if(re&&(_e=re(_e)),_e)for(var ge=0;ge<ve.length;ge++){var Le=ve[ge],Se=Math.round(Le.time/Y*100)+"%",xe=mV(Le.easing),Te=Le.rawValue;(rt(Te)||Mr(Te))&&(ne[Se]=ne[Se]||{},ne[Se][_e]=Le.rawValue,xe&&(ne[Se][A]=xe))}}}}for(var M=0;M<w;M++){var E=_[M],D=E.targetName;D?D==="shape"&&C(E,S):!n&&C(E,x)}for(var P in x){var L={};nj(L,e),Ie(L,x[P]);var I=JY(L),O=x[P][A];T[P]=I?{transform:I}:{},Iwe(T[P],L),O&&(T[P][A]=O)}var R,B=!0;for(var P in S){T[P]=T[P]||{};var k=!R,O=S[P][A];k&&(R=new Hl);var z=R.len();R.reset(),T[P].d=Lwe(e,S[P],R);var $=R.len();if(!k&&z!==$){B=!1;break}O&&(T[P][A]=O)}if(!B)for(var P in T)delete T[P].d;if(!n)for(var M=0;M<w;M++){var E=_[M],D=E.targetName;D==="style"&&C(E,T,function(ie){return Rwe[ie]})}for(var j=vr(T),X=!0,Q,M=1;M<j.length;M++){var se=j[M-1],ee=j[M];if(T[se][Rd]!==T[ee][Rd]){X=!1;break}Q=T[se][Rd]}if(X&&Q){for(var P in T)T[P][Rd]&&delete T[P][Rd];t[Rd]=Q}if(Yr(j,function(Z){return vr(T[Z]).length>0}).length){var K=FZ(T,r);return K+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var q0=Math.round;function VZ(e){return e&&rt(e.src)}function zZ(e){return e&&Tt(e.toDataURL)}function Pk(e,t,r,n){Twe(function(a,i){var o=a==="fill"||a==="stroke";o&&qY(i)?GZ(t,e,a,n):o&&wO(i)?UZ(r,e,a,n):e[a]=i},t,r,!1),Hwe(r,e,n)}function yV(e){return jc(e[0]-1)&&jc(e[1])&&jc(e[2])&&jc(e[3]-1)}function kwe(e){return jc(e[4])&&jc(e[5])}function Lk(e,t,r){if(t&&!(kwe(t)&&yV(t))){var n=r?10:1e4;e.transform=yV(t)?"translate("+q0(t[4]*n)/n+" "+q0(t[5]*n)/n+")":Ape(t)}}function _V(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(q0(n[i][0]*r)/r),a.push(q0(n[i][1]*r)/r);t.points=a.join(" ")}function bV(e){return!e.smooth}function Nwe(e){var t=Fe(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=q0(s*a)/a)}}}var Bwe={circle:[Nwe(["cx","cy","r"])],polyline:[_V,bV],polygon:[_V,bV]};function Fwe(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function HZ(e,t){var r=e.style,n=e.shape,a=Bwe[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&QY(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&Fwe(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),v=e,p=v.__svgPathBuilder;(v.__svgPathVersion!==h||!p||l!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new OZ),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=p.getStr()}return Lk(i,e.transform),Pk(i,r,e,t),t.animation&&tT(e,i,t),Ca(s,e.id+"",i)}function Vwe(e,t){var r=e.style,n=r.image;if(n&&!rt(n)&&(VZ(n)?n=n.src:zZ(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),Lk(l,e.transform),Pk(l,r,e,t),t.animation&&tT(e,l,t),Ca("image",e.id+"",l)}}function zwe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||gf,i=r.x||0,o=Cpe(r.y||0,SA(a),r.textBaseline),s=Tpe[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(kj(r)){var u="",c=r.fontStyle,f=Oj(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||bY,h=r.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 n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Lk(l,e.transform),Pk(l,r,e,t),t.animation&&tT(e,l,t),Ca("text",e.id+"",l,void 0,n)}}function wV(e,t){if(e instanceof cr)return HZ(e,t);if(e instanceof Oa)return Vwe(e,t);if(e instanceof B0)return zwe(e,t)}function Hwe(e,t,r){var n=e.style;if(Epe(n)){var a=Mpe(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,h=O0(n.shadowColor),v=h.opacity,p=h.color,g=d/2/l,m=d/2/u,y=g+" "+m;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Ca("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Ca("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":p,"flood-opacity":v})]),i[a]=o}t.filter=bA(o)}}function GZ(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(XY(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(ZY(a))i="radialGradient",o.cx=Qt(a.x,.5),o.cy=Qt(a.y,.5),o.r=Qt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=gP(s[u].offset)*100+"%",d=s[u].color,h=O0(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(Ca("stop",u+"",g))}var m=Ca(i,"",o,l),y=Dk(m),_=n.gradientCache,w=_[y];w||(w=n.zrId+"-g"+n.gradientIdx++,_[y]=w,o.id=w,n.defs[w]=Ca(i,w,o,l)),t[r]=bA(w)}function UZ(e,t,r,n){var a=e.style[r],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(KY(a)){var d=a.imageWidth,h=a.imageHeight,v=void 0,p=a.image;if(rt(p)?v=p:VZ(p)?v=p.src:zZ(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";ci(d,g),ci(h,g)}else if(d==null||h==null){var m=function(M,E){if(M){var D=M.elm,P=d||E.width,L=h||E.height;M.tag==="pattern"&&(u?(L=1,P/=i.width):c&&(P=1,L/=i.height)),M.attrs.width=P,M.attrs.height=L,D&&(D.setAttribute("width",P),D.setAttribute("height",L))}},y=PO(v,null,e,function(M){l||m(S,M),m(f,M)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=Ca("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=Pt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,w;l?_=w=1:u?(w=1,_=o.width/i.width):c?(_=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),w!=null&&!isNaN(w)&&(o.height=w);var x=JY(a);x&&(o.patternTransform=x);var S=Ca("pattern","",o,[f]),T=Dk(S),A=n.patternCache,C=A[T];C||(C=n.zrId+"-p"+n.patternIdx++,A[T]=C,o.id=C,S=n.defs[C]=Ca("pattern",C,o,[f])),t[r]=bA(C)}}function Gwe(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=Ca("clipPath",i,o,[HZ(e,r)])}t["clip-path"]=bA(i)}function SV(e){return document.createTextNode(e)}function $d(e,t,r){e.insertBefore(t,r)}function xV(e,t){e.removeChild(t)}function AV(e,t){e.appendChild(t)}function $Z(e){return e.parentNode}function WZ(e){return e.nextSibling}function _E(e,t){e.textContent=t}var TV=58,Uwe=120,$we=Ca("","");function aL(e){return e===void 0}function yl(e){return e!==void 0}function Wwe(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function wy(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Q0(e){var t,r=e.children,n=e.tag;if(yl(n)){var a=e.elm=BZ(n);if(Ik($we,e),Ne(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&AV(a,Q0(i))}else yl(e.text)&&!Mt(e.text)&&AV(a,SV(e.text))}else e.elm=SV(e.text);return e.elm}function YZ(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&$d(e,Q0(i),t)}}function Fx(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(yl(a.tag)){var i=$Z(a.elm);xV(i,a.elm)}else xV(e,a.elm)}}function Ik(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r.charCodeAt(0)!==Uwe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(Cwe,r,o):r.charCodeAt(3)===TV?n.setAttributeNS(Ewe,r,o):r.charCodeAt(5)===TV?n.setAttributeNS(NZ,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function Ywe(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],c=r[l],f,d,h,v;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:c==null?c=r[--l]:wy(o,u)?(rp(o,u),o=t[++n],u=r[++a]):wy(s,c)?(rp(s,c),s=t[--i],c=r[--l]):wy(o,c)?(rp(o,c),$d(e,o.elm,WZ(s.elm)),o=t[++n],c=r[--l]):wy(s,u)?(rp(s,u),$d(e,s.elm,o.elm),s=t[--i],u=r[++a]):(aL(f)&&(f=Wwe(t,n,i)),d=f[u.key],aL(d)?$d(e,Q0(u),o.elm):(h=t[d],h.tag!==u.tag?$d(e,Q0(u),o.elm):(rp(h,u),t[d]=void 0,$d(e,h.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(v=r[l+1]==null?null:r[l+1].elm,YZ(e,v,r,a,l)):Fx(e,t,n,i))}function rp(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(Ik(e,t),aL(t.text)?yl(n)&&yl(a)?n!==a&&Ywe(r,n,a):yl(a)?(yl(e.text)&&_E(r,""),YZ(r,null,a,0,a.length-1)):yl(n)?Fx(r,n,0,n.length-1):yl(e.text)&&_E(r,""):e.text!==t.text&&(yl(n)&&Fx(r,n,0,n.length-1),_E(r,t.text)))}function jwe(e,t){if(wy(e,t))rp(e,t);else{var r=e.elm,n=$Z(r);Q0(t),n!==null&&($d(n,t.elm,WZ(r)),Fx(n,[e],0,0))}return t}var Kwe=0,Xwe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=CV(),this.configLayer=CV(),this.storage=r,this._opts=n=Ie({},n),this.root=t,this._id="zr"+Kwe++,this._oldVNode=pV(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=BZ("svg");Ik(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",jwe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return wV(t,nL(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=nL(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=Zwe(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Ca("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=Fe(vr(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(Ca("defs","defs",{},u)),t.animation){var c=Pwe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Ca("style","stl",{},[],c);o.push(f)}}return pV(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},Dk(this.renderToVNode({animation:Qt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Qt(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,p=void 0;for(p=Math.max(h-1,v-1);p>=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<h;m++){var y={};Gwe(d[m],y,r);var _=Ca("g","clip-g-"+u++,y,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=d;var w=wV(f,r);w&&(s?s.children:n).push(w)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=hp(a,0,n),r=hp(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}if(wO(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=Ppe(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function CV(e){return function(){}}function Zwe(e,t,r,n){var a;if(r&&r!=="none")if(a=Ca("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),qY(r))GZ({fill:r},a.attrs,"fill",n);else if(wO(r))UZ({style:{fill:r},dirty:Wn,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",n);else{var i=O0(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const qwe=Xwe;function Qwe(e){e.registerPainter("svg",qwe)}function EV(e,t,r){var n=Xs.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var Jwe=function(e){bn(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||fx,typeof r=="string"?o=EV(r,n,a):Mt(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(gO(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=EV("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Xt(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new Xt(0,0,0,0);_.copy(y),o.push(_)}else{for(var w=!1,x=1/0,S=0,T=0;T<o.length;++T){var A=o[T];if(A.intersect(y)){var C=new Xt(0,0,0,0);C.copy(A),C.union(y),o[T]=C,w=!0;break}else if(l){u.copy(y),u.union(A);var M=y.width*y.height,E=A.width*A.height,D=u.width*u.height,P=D-M-E;P<x&&(x=P,S=T)}}if(l&&(o[S].union(y),w=!0),!w){var _=new Xt(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),v=d.__isRendered&&(d.__dirty&_o||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&_o||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function v(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(J_(n)){var w=n.global||n.__width===m&&n.__height===y;_=w&&n.__canvasGradient||XP(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else TY(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=ZP(o,n,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,y),o.restore())}!a||u?v(0,0,s,l):a.length&&W(a,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(gs);const bE=Jwe;var MV=1e5,wd=314159,kb=.01,eSe=.001;function tSe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function rSe(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var nSe=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=Ie({},n||{}),this.dpr=n.devicePixelRatio||fx,this._singleCanvas=i,this.root=t;var o=t.style;o&&(gO(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new bE(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[wd]=h,h.zlevel=wd,s.push(wd),this._domRoot=t}else{this._width=hp(t,0,n),this._height=hp(t,1,n);var u=this._domRoot=rSe(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(MV)),i||(i=n.ctx,i.save()),nh(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(MV)},e.prototype.paintOne=function(t,r){d1(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;qp(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(wd).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){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||n)&&i.push(u)}for(var c=!0,f=!1,d=function(p){var g=i[p],m=g.ctx,y=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,w=!n&&g.incremental&&Date.now,x=w&&Date.now(),S=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,y);else if(_===g.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&g.clear(!1,S,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var A,C=function(P){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(A=_;A<g.__endIndex;A++){var I=t[A];if(I.__inHover&&(f=!0),a._doPaintEl(I,g,o,P,L,A===g.__endIndex-1),w){var O=Date.now()-x;if(O>15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)A=g.__endIndex;else for(var M=h.dpr,E=0;E<y.length;++E){var D=y[E];m.save(),m.beginPath(),m.rect(D.x*M,D.y*M,D.width*M,D.height*M),m.clip(),C(D),m.restore()}else m.save(),C(),m.restore();g.__drawIndex=A,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return Cr.wxa&&W(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(nh(s,t,i,o),t.setPrevPaintRect(l))}else nh(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=wd);var n=this._layers[t];return n||(n=new bE("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?st(n,this._layerConfig[t],!0):this._layerConfig[t-kb]&&st(n,this._layerConfig[t-kb],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&tSe(r)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+eSe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?kb:0),this._needsManuallyCompositing),c.__builtin__||vA("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,r(l),i=c),a.__dirty&_o&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,W(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?st(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+kb){var o=this._layers[i];st(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(tr(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=hp(i,0,a),r=hp(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(wd).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[wd].dom;var r=new bE("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.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];nh(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const aSe=nSe;function jZ(e){e.registerPainter("canvas",aSe)}var iSe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return eu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Ot,a=jn("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=jn(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ir);const oSe=iSe;function tg(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Jp(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Jp(e,t,r[o]));return i.join(" ")}}function KZ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Ne(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var sSe=function(e){De(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=jn(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=lSe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Hu(this.childAt(0))},t.prototype.downplay=function(){Gu(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,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):Lr(d,h,s,n),Js(d)}if(this._updateCommon(r,n,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,_n(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,v,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,v=i.emphasisDisabled),!i||r.hasItemOption){var y=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),p=Pa(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var x=av(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var S=r.getItemVisual(n,"style"),T=S.fill;if(s instanceof Oa){var A=s.style;s.useStyle(Ie({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},S))}else s.__isEmptyBrush?s.useStyle(Ie({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var E=o&&o.useNameLabel;ri(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:D,inheritColor:T,defaultOpacity:S.opacity});function D(I){return E?r.getName(I):tg(r,I)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),Gn(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=Ht(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&yf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();yf(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Jg(r.getItemVisual(n,"symbolSize"))},t}(Ot);function lSe(e,t){this.parent.drift(e,t)}const p1=sSe;function wE(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function DV(e){return e!=null&&!Mt(e)&&(e={isIgnore:e}),e||{}}function PV(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Pa(t),cursorStyle:t.get("cursor")}}var uSe=function(){function e(t){this.group=new Ot,this._SymbolCtor=t||p1}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=DV(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=PV(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var d=c(f);if(wE(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),v=c(f);if(!wE(t,v,f,r)){n.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):Lr(h,m,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=PV(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=DV(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(wE(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Nf(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();const g1=uSe;function XZ(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=cSe(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Fe(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return $u(t,f[0])&&(d=!0,f[0]=h),$u(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function cSe(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Mr(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function ZZ(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function fSe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function dSe(e,t,r,n,a,i,o,s){for(var l=fSe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=XZ(a,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var w=l[_],x=!0,S=void 0,T=void 0;switch(w.cmd){case"=":S=w.idx*2,T=w.idx1*2;var A=m[S],C=m[S+1],M=y[T],E=y[T+1];(isNaN(A)||isNaN(C))&&(A=M,C=E),u.push(A,C),c.push(M,E),f.push(r[S],r[S+1]),d.push(n[T],n[T+1]),p.push(t.getRawIndex(w.idx1));break;case"+":var D=w.idx,P=g.dataDimsForPoint,L=a.dataToPoint([t.get(P[0],D),t.get(P[1],D)]);T=D*2,u.push(L[0],L[1]),c.push(y[T],y[T+1]);var I=ZZ(g,a,t,D);f.push(I[0],I[1]),d.push(n[T],n[T+1]),p.push(t.getRawIndex(D));break;case"-":x=!1}x&&(h.push(w),v.push(v.length))}v.sort(function(se,ee){return p[se]-p[ee]});for(var O=u.length,R=Ml(O),B=Ml(O),k=Ml(O),z=Ml(O),$=[],_=0;_<v.length;_++){var j=v[_],X=_*2,Q=j*2;R[X]=u[Q],R[X+1]=u[Q+1],B[X]=c[Q],B[X+1]=c[Q+1],k[X]=f[Q],k[X+1]=f[Q+1],z[X]=d[Q],z[X+1]=d[Q+1],$[_]=h[j]}return{current:R,next:B,stackedOnCurrent:k,stackedOnNext:z,status:$}}var bc=Math.min,wc=Math.max;function Ah(e,t){return isNaN(e)||isNaN(t)}function iL(e,t,r,n,a,i,o,s,l){for(var u,c,f,d,h,v,p=r,g=0;g<n;g++){var m=t[p*2],y=t[p*2+1];if(p>=a||p<0)break;if(Ah(m,y)){if(l){p+=i;continue}break}if(p===r)e[i>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var _=m-u,w=y-c;if(_*_+w*w<.5){p+=i;continue}if(o>0){for(var x=p+i,S=t[x*2],T=t[x*2+1];S===m&&T===y&&g<n;)g++,x+=i,p+=i,S=t[x*2],T=t[x*2+1],m=t[p*2],y=t[p*2+1],_=m-u,w=y-c;var A=g+1;if(l)for(;Ah(S,T)&&A<n;)A++,x+=i,S=t[x*2],T=t[x*2+1];var C=.5,M=0,E=0,D=void 0,P=void 0;if(A>=n||Ah(S,T))h=m,v=y;else{M=S-u,E=T-c;var L=m-u,I=S-m,O=y-c,R=T-y,B=void 0,k=void 0;if(s==="x"){B=Math.abs(L),k=Math.abs(I);var z=M>0?1:-1;h=m-z*B*o,v=y,D=m+z*k*o,P=y}else if(s==="y"){B=Math.abs(O),k=Math.abs(R);var $=E>0?1:-1;h=m,v=y-$*B*o,D=m,P=y+$*k*o}else B=Math.sqrt(L*L+O*O),k=Math.sqrt(I*I+R*R),C=k/(k+B),h=m-M*o*(1-C),v=y-E*o*(1-C),D=m+M*o*C,P=y+E*o*C,D=bc(D,wc(S,m)),P=bc(P,wc(T,y)),D=wc(D,bc(S,m)),P=wc(P,bc(T,y)),M=D-m,E=P-y,h=m-M*B/k,v=y-E*B/k,h=bc(h,wc(u,m)),v=bc(v,wc(c,y)),h=wc(h,bc(u,m)),v=wc(v,bc(c,y)),M=m-h,E=y-v,D=m+M*k/B,P=y+E*k/B}e.bezierCurveTo(f,d,h,v,m,y),f=D,d=P}else e.lineTo(m,y)}u=m,c=y,p+=i}return g}var qZ=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),hSe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new qZ},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Ah(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ah(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=iL(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Hl.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],v=i[f++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var w=u?(v-l)*_+l:(h-s)*_+s;return u?[r,w]:[w,r]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],p=i[f++],g=i[f++],m=i[f++],y=i[f++];var x=u?ux(s,h,p,m,r,c):ux(l,v,g,y,r,c);if(x>0)for(var S=0;S<x;S++){var T=c[S];if(T<=1&&T>=0){var w=u?wa(l,v,g,y,T):wa(s,h,p,m,T);return u?[r,w]:[w,r]}}s=m,l=y;break}}},t}(cr),vSe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(qZ),QZ=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new vSe},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ah(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ah(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=iL(r,a,o,s,s,1,n.smooth,l,n.connectNulls);iL(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(cr);function JZ(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new br({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=Tt(a)?function(g){a(g,f)}:null;_n(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return f}function eq(e,t,r){var n=e.getArea(),a=yn(n.r0,1),i=yn(n.r,1),o=new Ii({shape:{cx:yn(e.cx,1),cy:yn(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,_n(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function rT(e,t,r,n,a){if(e){if(e.type==="polar")return eq(e,t,r);if(e.type==="cartesian2d")return JZ(e,t,r,n,a)}else return null;return null}function iv(e,t){return e.type===t}function LV(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function IV(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function RV(e,t){var r=IV(e),n=r[0],a=r[1],i=IV(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function OV(e){return Mr(e)?e:e?.5:0}function pSe(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Ml(n*2),i=0;i<n;i++){var o=ZZ(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Sc(e,t,r,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+c[i])/2,h=[];l[i]=h[i]=d,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function gSe(e,t){var r=[],n=e.length,a,i;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),p=bO(v,[c.color,f.color]);return{coord:d,color:p}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function mSe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=Fe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=gSe(u,a==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";W(d,function(_){_.offset=(_.coord-p)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new kr(0,0,0,0,d,!0);return y[a]=p,y[a+"2"]=g,y}}}function ySe(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&_Se(i,t))){var o=t.mapDimension(i.dim),s={};return W(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function _Se(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(p1.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function bSe(e,t){return isNaN(e)||isNaN(t)}function wSe(e){for(var t=e.length/2;t>0&&bSe(e[t*2-2],e[t*2-1]);t--);return t-1}function kV(e,t){return[e[t*2],e[t*2+1]]}function SSe(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function tq(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Li.length;t++)if(e.get([Li[t],"endLabel","show"]))return!0;return!1}function SE(e,t,r,n){if(iv(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=tq(n)?function(h,v){e._endLabelOnDuring(h,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=JZ(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.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 eq(t,r,n)}function xSe(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var ASe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Ot,n=new g1;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,v=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,y=!n.ssr&&r.isAnimationEnabled(),_=!c.isEmpty(),w=c.get("origin"),x=XZ(o,l,w),S=_&&pSe(o,l,x),T=r.get("showSymbol"),A=r.get("connectNulls"),C=T&&!d&&ySe(r,l,o),M=this._data;M&&M.eachItemGraphicEl(function(ee,K){ee.__temp&&(s.remove(ee),M.setItemGraphicEl(K,null))}),T||v.remove(),s.add(m);var E=d?!1:r.get("step"),D;o&&o.getArea&&r.get("clip",!0)&&(D=o.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var P=mSe(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&E===this._step))T&&v.updateData(l,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ee){return[f[ee*2],f[ee*2+1]]}}),y&&this._initSymbolLabelAnimation(l,o,D),E&&(f=Sc(f,o,E,A),S&&(S=Sc(S,o,E,A))),p=this._newPolyline(f),_?g=this._newPolygon(f,S):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Hh(P)),m.setClipPath(SE(this,o,!0,r));else{_&&!g?g=this._newPolygon(f,S):g&&!_&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Hh(P));var L=m.getClipPath();if(L){var I=SE(this,o,!1,r);_n(L,{shape:I.shape},r)}else m.setClipPath(SE(this,o,!0,r));T&&v.updateData(l,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ee){return[f[ee*2],f[ee*2+1]]}}),(!LV(this._stackedOnPoints,S)||!LV(this._points,f))&&(y?this._doUpdateAnimation(l,S,o,a,E,w,A):(E&&(f=Sc(f,o,E,A),S&&(S=Sc(S,o,E,A))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}var O=r.getModel("emphasis"),R=O.get("focus"),B=O.get("blurScope"),k=O.get("disabled");if(p.useStyle(yt(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),ti(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}Ht(p).seriesIndex=r.seriesIndex,Gn(p,R,B,k);var $=OV(r.get("smooth")),j=r.get("smoothMonotone");if(p.setShape({smooth:$,smoothMonotone:j,connectNulls:A}),g){var X=l.getCalculationInfo("stackedOnSeries"),Q=0;g.useStyle(yt(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),X&&(Q=OV(X.get("smooth"))),g.setShape({smooth:$,stackedOnSmooth:Q,smoothMonotone:j,connectNulls:A}),ti(g,r,"areaStyle"),Ht(g).seriesIndex=r.seriesIndex,Gn(g,R,B,k)}var se=function(ee){i._changePolyState(ee)};l.eachItemGraphicEl(function(ee){ee&&(ee.onHoverStateChange=se)}),this._polyline.onHoverStateChange=se,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){Ht(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Fh(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=r.get("zlevel")||0,h=r.get("z")||0;u=new p1(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else xr.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Fh(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 xr.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;px(this._polyline,r),n&&px(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new hSe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new QZ({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Tt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Tt(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var w=a,x=n.pointToCoord(g);i?(m=w.startAngle,y=w.endAngle,_=-x[1]/180*Math.PI):(m=w.r0,y=w.r,_=x[0])}else{var S=a;i?(m=S.x,y=S.x+S.width,_=h.x):(m=S.y+S.height,y=S.y,_=h.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var A=Tt(f)?f(v):c*T+d,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(tq(r)){var o=r.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 pr({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=wSe(l);c>=0&&(ri(s,Pa(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?KZ(o,h):tg(o,f)},enableTextSetter:!0},xSe(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=n.shape,w=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?p:0)*(y?-1:1),S=(m?0:-p)*(y?-1:1),T=m?"x":"y",A=SSe(f,w,T),C=A.range,M=C[1]-C[0],E=void 0;if(M>=1){if(M>1&&!h){var D=kV(f,C[0]);u.attr({x:D[0]+x,y:D[1]+S}),o&&(E=d.getRawValue(C[0]))}else{var D=c.getPointOn(w,T);D&&u.attr({x:D[0]+x,y:D[1]+S});var P=d.getRawValue(C[0]),L=d.getRawValue(C[1]);o&&(E=yj(a,v,P,L,A.t))}i.lastFrameIndex=C[0]}else{var I=r===1||i.lastFrameIndex>0?C[0]:0,D=kV(f,I);o&&(E=d.getRawValue(I)),u.attr({x:D[0]+x,y:D[1]+S})}if(o){var O=Wg(u);typeof O.setLabelText=="function"&&O.setLabelText(E)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=dSe(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=Sc(d.current,a,o,l),v=Sc(d.stackedOnCurrent,a,o,l),p=Sc(d.next,a,o,l),g=Sc(d.stackedOnNext,a,o,l)),RV(h,p)>3e3||c&&RV(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),Lr(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Lr(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=d.status,w=0;w<_.length;w++){var x=_[w].cmd;if(x==="="){var S=r.getItemGraphicEl(_[w].idx1);S&&y.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,A=0;A<y.length;A++){var C=y[A].el,M=y[A].ptIdx*2;C.x=T[M],C.y=T[M+1],C.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(xr);const TSe=ASe;function m1(e,t){return{seriesType:e,plan:qg(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=Fe(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");$u(n,s[0])&&(s[0]=u),$u(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var p=h.end-h.start,g=o&&Ml(p*l),m=[],y=[],_=h.start,w=0;_<h.end;_++){var x=void 0;if(l===1){var S=c.get(f,_);x=a.dataToPoint(S,null,y)}else m[0]=c.get(f,_),m[1]=c.get(d,_),x=a.dataToPoint(m,null,y);o?(g[w++]=x[0],g[w++]=x[1]):v.setItemLayout(_,x.slice())}o&&v.setLayout("points",g)}}}}}}var CSe={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},ESe=function(e){return Math.round(e.length/2)};function rq(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;rt(i)?v=CSe[i]:Tt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,ESe))}}}}}function MSe(e){e.registerChartView(TSe),e.registerSeriesModel(oSe),e.registerLayout(m1("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rq("line"))}var nq=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)W(i.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),p=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,_=1,w=0;w<v.length;w++){var x=v[w].coord,S=w===v.length-1?v[w-1].tickValue+_:v[w].tickValue;if(S===p){y=x;break}else if(S<p)m=x;else if(m!=null&&S>p){y=(x+m)/2;break}w===1&&(_=S-v[0].tickValue)}y==null&&(m?m&&(y=v[v.length-1].coord):y=v[0].coord),s[h]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ir);Ir.registerClass(nq);const Vx=nq;var DSe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return eu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Bf(Vx.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Vx);const PSe=DSe;var LSe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ISe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new LSe},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);v?(r.moveTo(p*o+a,g*o+i),r.arc(p*u+a,g*u+i,l,-Math.PI+c,c,!d)):r.moveTo(p*s+a,g*s+i),r.arc(a,i,s,c,f,!d),r.arc(m*u+a,y*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(a,i,o,f,c,d)},t}(cr);const zx=ISe;function RSe(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return dx(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,w=Math.sin,x=c+d*_(p),S=f+d*w(p),T="left",A="top";switch(s){case"startArc":x=c+(h-l)*_(m),S=f+(h-l)*w(m),T="center",A="top";break;case"insideStartArc":x=c+(h+l)*_(m),S=f+(h+l)*w(m),T="center",A="bottom";break;case"startAngle":x=c+v*_(p)+Nb(p,l+y,!1),S=f+v*w(p)+Bb(p,l+y,!1),T="right",A="middle";break;case"insideStartAngle":x=c+v*_(p)+Nb(p,-l+y,!1),S=f+v*w(p)+Bb(p,-l+y,!1),T="left",A="middle";break;case"middle":x=c+v*_(m),S=f+v*w(m),T="center",A="middle";break;case"endArc":x=c+(d+l)*_(m),S=f+(d+l)*w(m),T="center",A="bottom";break;case"insideEndArc":x=c+(d-l)*_(m),S=f+(d-l)*w(m),T="center",A="top";break;case"endAngle":x=c+v*_(g)+Nb(g,l+y,!0),S=f+v*w(g)+Bb(g,l+y,!0),T="left",A="middle";break;case"insideEndAngle":x=c+v*_(g)+Nb(g,-l+y,!0),S=f+v*w(g)+Bb(g,-l+y,!0),T="right",A="middle";break;default:return dx(n,a,i)}return n=n||{},n.x=x,n.y=S,n.align=T,n.verticalAlign=A,n}}function OSe(e,t,r,n){if(Mr(n)){e.setTextConfig({rotation:n});return}else if(Ne(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Nb(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Bb(e,t,r){return t*Math.cos(e)*(r?1:-1)}function ah(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Ne(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Fe(n,function(i){return qs(i,a)})}}var xE=Math.max,AE=Math.min;function kSe(e,t){var r=e.getArea&&e.getArea();if(iv(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var NSe=function(e){De(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Nf(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=BSe(r,u);h&&this._enableRealtimeSort(h,s,a);var v=r.get("clip",!0)||h,p=kSe(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,w=[],x=this._backgroundEls,S=i&&i.isInitSort,T=i&&i.type==="changeAxisOrder";function A(E){var D=Fb[u.type](s,E),P=$Se(u,f,D);return P.useStyle(y.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),w[E]=P,P}s.diff(l).add(function(E){var D=s.getItemModel(E),P=Fb[u.type](s,E,D);if(m&&A(E),!(!s.hasValue(E)||!zV[u.type](P))){var L=!1;v&&(L=NV[u.type](p,P));var I=BV[u.type](r,s,E,P,f,d,c.model,!1,g);h&&(I.forceLabelAnimation=!0),HV(I,s,E,D,P,r,f,u.type==="polar"),S?I.attr({shape:P}):h?FV(h,d,I,P,E,f,!1,!1):_n(I,{shape:P},r,E),s.setItemGraphicEl(E,I),o.add(I),I.ignore=L}}).update(function(E,D){var P=s.getItemModel(E),L=Fb[u.type](s,E,P);if(m){var I=void 0;x.length===0?I=A(D):(I=x[D],I.useStyle(y.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),w[E]=I);var O=Fb[u.type](s,E),R=iq(f,O,u);Lr(I,{shape:R},d,E)}var B=l.getItemGraphicEl(D);if(!s.hasValue(E)||!zV[u.type](L)){o.remove(B);return}var k=!1;if(v&&(k=NV[u.type](p,L),k&&o.remove(B)),B?Js(B):B=BV[u.type](r,s,E,L,f,d,c.model,!!B,g),h&&(B.forceLabelAnimation=!0),T){var z=B.getTextContent();if(z){var $=Wg(z);$.prevValue!=null&&($.prevValue=$.value)}}else HV(B,s,E,P,L,r,f,u.type==="polar");S?B.attr({shape:L}):h?FV(h,d,B,L,E,f,!0,T):Lr(B,{shape:L},r,E,null),s.setItemGraphicEl(E,B),B.ignore=k,o.add(B)}).remove(function(E){var D=l.getItemGraphicEl(E);D&&z0(D,r,E)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Ot);C.removeAll();for(var M=0;M<w.length;++M)C.add(w[M]);o.add(C),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),UV(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),UV(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&rT(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.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:Fe(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){z0(i,r,Ht(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(xr),NV={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=xE(t.x,e.x),s=AE(t.x+t.width,a),l=xE(t.y,e.y),u=AE(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>a?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=AE(t.r,e.r),i=xE(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},BV={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new br({shape:Ie({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?zx:Ii,c=new u({shape:n,z2:1});c.name="item";var f=aq(a);if(c.calculateTextPosition=RSe(f,{isRoundCap:u===zx}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?Lr:_n)(c,{shape:v},i)}return c}};function BSe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function FV(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Lr:_n)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?Lr:_n)(r,{shape:u},c,a)}function VV(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var FSe=["x","y","width","height"],VSe=["cx","cy","r","startAngle","endAngle"],zV={cartesian2d:function(e){return!VV(e,FSe)},polar:function(e){return!VV(e,VSe)}},Fb={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?HSe(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function zSe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function aq(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function HV(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=ah(n.getModel("itemStyle"),c,!0);Ie(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Pa(n);ri(e,v,{labelFetcher:i,labelDataIndex:r,defaultText:tg(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,OSe(e,g==="outside"?h:g,aq(o),n.get(["label","rotate"]))}gK(p,v,i.getRawValue(r),function(y){return KZ(t,y)});var m=n.getModel(["emphasis"]);Gn(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),ti(e,n),zSe(a)&&(e.style.fill="none",e.style.stroke="none",W(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function HSe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var GSe=function(){function e(){}return e}(),GV=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new GSe},t.prototype.buildPath=function(r,n){for(var a=n.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],r.rect(s[0],s[1],l[0],l[1])},t}(cr);function UV(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new GV({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new GV({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),Ht(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",$V),f.on("mousemove",$V)),r&&r.push(f)}var $V=YA(function(e){var t=this,r=USe(t,e.offsetX,e.offsetY);Ht(t).dataIndex=r>=0?r:null},30,!1);function USe(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[a]=i[d+2],s[n]=i[d+n],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function iq(e,t,r){if(iv(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function $Se(e,t,r){var n=e.type==="polar"?Ii:br;return new n({shape:iq(t,r,e),silent:!0,z2:0})}const WSe=NSe;function YSe(e){e.registerChartView(WSe),e.registerSeriesModel(PSe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,zt(iZ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oZ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,rq("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Vb=Math.PI*2,WV=Math.PI/180;function oq(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sq(e,t){var r=oq(e,t),n=e.get("center"),a=e.get("radius");Ne(a)||(a=[0,a]);var i=Je(r.width,t.getWidth()),o=Je(r.height,t.getHeight()),s=Math.min(i,o),l=Je(a[0],s/2),u=Je(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else Ne(n)||(n=[n,n]),c=Je(n[0],i)+r.x,f=Je(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function jSe(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=oq(n,r),s=sq(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*WV,h=n.get("minAngle")*WV,v=0;a.each(i,function(M){!isNaN(M)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var x=Vb,S=0,T=d,A=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(M,E){var D;if(isNaN(M)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?D=p===0&&_?g:M*g:D=Vb/v,D<h?(D=h,x-=h):S+=M;var P=T+A*D;a.setItemLayout(E,{angle:D,startAngle:T,endAngle:P,clockwise:m,cx:l,cy:u,r0:f,r:y?Vr(M,w,[f,c]):c}),T=P}),x<Vb&&v)if(x<=.001){var C=Vb/v;a.each(i,function(M,E){if(!isNaN(M)){var D=a.getItemLayout(E);D.angle=C,D.startAngle=d+A*E*C,D.endAngle=d+A*(E+1)*C}})}else g=x/S,T=d,a.each(i,function(M,E){if(!isNaN(M)){var D=a.getItemLayout(E),P=D.angle===h?h:M*g;D.startAngle=T,D.endAngle=T+A*P,T+=A*P}})})}function y1(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var KSe=Math.PI/180;function YV(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],w=Math.abs(_.label.y-r),x=n+_.len,S=x*x,T=Math.sqrt((1-Math.abs(w*w/m))*S),A=t+(T+_.len2)*a,C=A-_.label.x,M=_.targetTextWidth-C*a;lq(_,M,!0),_.label.x=A}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],w=_.label.y>r?m:g,x=Math.abs(_.label.y-r);if(x>=w.maxY){var S=_.label.x-t-_.len2*a,T=n+_.len,A=Math.abs(S)<T?Math.sqrt(x*x/(1-S*S/T/T)):T;w.rB=A,w.maxY=x}w.list.push(_)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}PZ(e,l,l+o)&&f(e)}function XSe(e,t,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;TE(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!TE(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+a-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+a-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+a-h.x-v.bleedMargin,v.targetTextWidth=g,lq(v,g)}}YV(u,t,r,n,1,a,i,o,s,f),YV(l,t,r,n,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!TE(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,w=h.style.backgroundColor?0:_,x=v.rect.width+w,S=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+a-v.edgeDistance-x-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+S),p[1][1]=p[2][1]=h.y}}}function lq(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||r){var f=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();i.width=p.width;var g=(n.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function TE(e){return e.position==="center"}function ZSe(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*KSe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}t.each(function(S){var T=t.getItemGraphicEl(S),A=T.shape,C=T.getTextContent(),M=T.getTextGuideLine(),E=t.getItemModel(S),D=E.getModel("label"),P=D.get("position")||E.get(["emphasis","label","position"]),L=D.get("distanceToLabelLine"),I=D.get("alignTo"),O=Je(D.get("edgeDistance"),u),R=D.get("bleedMargin"),B=E.getModel("labelLine"),k=B.get("length");k=Je(k,u);var z=B.get("length2");if(z=Je(z,u),Math.abs(A.endAngle-A.startAngle)<o){W(C.states,h),C.ignore=!0,M&&(W(M.states,h),M.ignore=!0);return}if(v(C)){var $=(A.startAngle+A.endAngle)/2,j=Math.cos($),X=Math.sin($),Q,se,ee,K;n=A.cx,a=A.cy;var Z=P==="inside"||P==="inner";if(P==="center")Q=A.cx,se=A.cy,K="center";else{var ne=(Z?(A.r+A.r0)/2*j:A.r*j)+n,re=(Z?(A.r+A.r0)/2*X:A.r*X)+a;if(Q=ne+j*3,se=re+X*3,!Z){var ie=ne+j*(k+l-A.r),Y=re+X*(k+l-A.r),q=ie+(j<0?-1:1)*z,oe=Y;I==="edge"?Q=j<0?c+O:c+u-O:Q=q+(j<0?-L:L),se=oe,ee=[[ne,re],[ie,Y],[q,oe]]}K=Z?"center":I==="edge"?j>0?"right":"left":j>0?"left":"right"}var ve=Math.PI,_e=0,ge=D.get("rotate");if(Mr(ge))_e=ge*(ve/180);else if(P==="center")_e=0;else if(ge==="radial"||ge===!0){var Le=j<0?-$+ve:-$;_e=Le}else if(ge==="tangential"&&P!=="outside"&&P!=="outer"){var Se=Math.atan2(j,X);Se<0&&(Se=ve*2+Se);var xe=X>0;xe&&(Se=ve+Se),_e=Se-ve}if(i=!!_e,C.x=Q,C.y=se,C.rotation=_e,C.setStyle({verticalAlign:"middle"}),Z){C.setStyle({align:K});var He=C.states.select;He&&(He.x+=C.x,He.y+=C.y)}else{var Te=C.getBoundingRect().clone();Te.applyTransform(C.getComputedTransform());var Ve=(C.style.margin||0)+2.1;Te.y-=Ve/2,Te.height+=Ve,r.push({label:C,labelLine:M,position:P,len:k,len2:z,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new qt(j,X),linePoints:ee,textAlign:K,labelDistance:L,labelAlignTo:I,edgeDistance:O,bleedMargin:R,rect:Te,unconstrainedWidth:Te.width,labelStyleWidth:C.style.width})}T.setTextConfig({inside:Z})}}),!i&&e.get("avoidLabelOverlap")&&XSe(r,n,a,l,u,d,c,f);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(W(m.states,h),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(y){var x=g.linePoints;_||!x?(W(y.states,h),y.ignore=!0):(EZ(x,g.minTurnAngle),fwe(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new qt(x[0][0],x[0][1])})}}}var qSe=function(e){De(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new pr;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=Ie(ah(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?(_n(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,_n(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),_n(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Lr(o,{shape:{endAngle:c.endAngle}},s,n))}else Js(o),Lr(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),ti(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=Ie({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},ah(u.getModel("itemStyle"),c)),Ie(o.ensureState("select"),{x:p,y:g,shape:ah(l.getModel(["select","itemStyle"]),c)}),Ie(o.ensureState("blur"),{shape:ah(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&Ie(y.ensureState("select"),{x:p,y:g}),Ie(_.ensureState("select"),{x:p,y:g}),Gn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;ri(i,Pa(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Fi,this.setTextGuideLine(h)),Ek(this,Mk(o),{stroke:u,opacity:zs(s.get(["lineStyle","opacity"]),c,1)})}},t}(Ii),QSe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.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&&r.get("showEmptyCircle")){var d=new Ii({shape:sq(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new qSe(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);z0(v,r,h)}).execute(),ZSe(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(xr);const JSe=QSe;function nm(e,t,r){t=Ne(t)&&{coordDimensions:t}||Ie({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=tm(n,t).dimensions,i=new Dn(a,e);return i.initData(n,r),i}var exe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const _1=exe;var txe=Pr(),rxe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _1(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return nm(this,{coordDimensions:["value"],encodeDefaulter:zt(qO,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=txe(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=uj(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Bh(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ir);const nxe=rxe;function axe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Mr(o)&&!isNaN(o)&&o<0)})}}}function ixe(e){e.registerChartView(JSe),e.registerSeriesModel(nxe),wX("pie",e.registerAction),e.registerLayout(zt(jSe,"pie")),e.registerProcessor(y1("pie")),e.registerProcessor(axe("pie"))}var oxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ir);const sxe=oxe;var uq=4,lxe=function(){function e(){}return e}(),uxe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new lxe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<uq,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(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,a=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){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(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var h=a[d++],v=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}r=this._rect=new Xt(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(cr),cxe=function(){function e(){this.group=new Ot}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;r=new Float32Array(r.buffer,i,a)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var a=this._newAdded[0],i=r.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new uxe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=jn(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<uq;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Ht(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const fxe=cxe;var dxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=m1("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new fxe:new g1,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(xr);const hxe=dxe;var vxe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(sr);const pxe=vxe;var oL=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ia).models[0]},t.type="cartesian2dAxis",t}(sr);Kn(oL,rm);var cq={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)"]}}},gxe=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},cq),Rk=st({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}}},cq),mxe=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Rk),yxe=yt({logBase:10},Rk);const fq={category:gxe,value:Rk,time:mxe,log:yxe};var _xe={value:1,category:1,time:1,log:1};function rg(e,t,r,n){W(_xe,function(a,i){var o=st(st({},fq[i],!0),n,!0),s=function(l){De(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=$0(this),h=d?jg(c):{},v=f.getTheme();st(c,v.get(i+"Axis")),st(c,this.getDefaultOption()),c.type=jV(c),d&&_f(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Ox.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",jV)}function jV(e){return e.type||(e.data?"category":"value")}var bxe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Fe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Yr(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const Ok=bxe;var sL=["x","y"];function KV(e){return e.type==="interval"||e.type==="time"}var wxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=sL,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!KV(r)||!KV(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=kf([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new Xt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return va(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return va(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1]),i=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-a,s=Math.max(n[0],n[1])-i;return new Xt(a,i,o,s)},t}(Ok),Sxe=function(e){De(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(gi);const xxe=Sxe;function lL(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Aa(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function XV(e){return e.get("coordinateSystem")==="cartesian2d"}function ZV(e){var t={xAxisModel:null,yAxisModel:null};return W(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,ia).models[0];t[n]=i}),t}var CE=Math.log;function dq(e,t,r){var n=bf.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=hZ(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=CE(e.base);u=[CE(u[0])/d,CE(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=dE(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=dE(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=dE(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=yn(g-y),p<0&&u[0]>=0?(p=0,g=yn(y)):g>0&&u[1]<=0&&(g=0,p=-yn(y))}var _=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;n.setExtent.call(e,p+v*_,g+v*w),n.setInterval.call(e,v),(_||w)&&n.setNiceExtent.call(e,p+v,g-v)}var Axe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sL,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=vr(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;eL(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(Gh(p,v),eL(p)&&(s=h))}c.length&&(s||(s=c.pop(),Gh(s.scale,s.model)),W(c,function(g){dq(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};W(n.x,function(o){qV(n,"y",o,i)}),W(n.y,function(o){qV(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=kn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(W(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Lbe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),W(this._coordsList,function(u){u.calcAffineTransform()});function l(){W(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),Txe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Mt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",ia).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",ia).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,tr(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,W(s.x,function(c,f){W(s.y,function(d,h){var v="x"+f+"y"+h,p=new wxe(v);p.master=a,p.model=t,a._coordsMap[v]=p,a._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(EE(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new xxe(c,h1(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){W(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(XV(a)){var i=ZV(a),o=i.xAxisModel,s=i.yAxisModel;if(!EE(o,r)||!EE(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,i){W(kx(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return W(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);tr(r,i)<0&&r.push(i),tr(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(XV(a)){var i=ZV(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=sL,e}();function EE(e,t){return e.getCoordSysModel()===t}function qV(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)QV(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&QV(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function QV(e){return e&&e.type!=="category"&&e.type!=="time"&&Pbe(e)}function Txe(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const Cxe=Axe;var Kc=Math.PI,Th=function(){function e(t,r){this.group=new Ot,this.opt=r,this.axisModel=t,yt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ot({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!JV[t]},e.prototype.add=function(t){JV[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=AO(r-t),i,o;return k0(a)?(o=n>0?"top":"bottom",i="center"):k0(a-Kc)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Kc?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),JV={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(va(s,s,o),va(l,l,o));var c=Ie({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ta({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Qp(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);rt(d)&&(d=[d,d]),(rt(h)||Mr(h))&&(h=[h,h]);var v=av(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];W([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=jn(d[y],-p/2,-g/2,p,g,c.stroke,!0),w=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+w*Math.cos(e.rotation),y:x[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=Dxe(r,n,t,e),i=Lxe(r,n,t,e);if(Mxe(t,i,a),Pxe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=MZ(Fe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));LZ(o)}},axisName:function(e,t,r,n){var a=Aa(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,tz(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Kc/180);var v;tz(i)?d=Th.innerTextLayout(e.rotation,h??e.rotation,o):(d=Exe(e.rotation,i,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Aa(e.nameTruncateMaxWidth,g.maxWidth,v),_=new pr({x:f[0],y:f[1],rotation:d.rotation,silent:Th.isLabelSilent(t),style:Xr(s,{text:a,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if($g({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var w=Th.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Ht(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function Exe(e,t,r,n){var a=AO(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return k0(a-Kc/2)?(o=l?"bottom":"top",i="center"):k0(a-Kc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Kc*1.5&&a>Kc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Mxe(e,t,r){if(!vZ(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(ko(i),ko(u)):ez(i,o)&&(n?(ko(o),ko(c)):(ko(i),ko(u))),a===!1?(ko(s),ko(f)):ez(l,s)&&(a?(ko(l),ko(d)):(ko(s),ko(f)))}}function ko(e){e&&(e.ignore=!0)}function ez(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=t1([]);return Of(a,a,-e.rotation),r.applyTransform(Rl([],a,e.getLocalTransform())),n.applyTransform(Rl([],a,t.getLocalTransform())),r.intersect(n)}}function tz(e){return e==="middle"||e==="center"}function hq(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(va(o,o,t),va(s,s,t));var c=new Ta({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Qp(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function Dxe(e,t,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=hq(u,t.transform,l,yt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function Pxe(e,t,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=yt(s.getLineStyle(),yt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=hq(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function Lxe(e,t,r,n){var a=r.axis,i=Aa(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Aa(n.labelRotate,o.get("rotate"))||0)*Kc/180,c=Th.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=Th.isLabelSilent(r),v=r.get("triggerEvent");return W(l,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,w=o;if(f&&f[m]){var x=f[m];Mt(x)&&x.textStyle&&(w=new $r(x.textStyle,o,r.ecModel))}var S=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(m),A=new pr({x:T,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:Xr(w,{text:y,align:w.getShallow("align",!0)||c.textAlign,verticalAlign:w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,fill:Tt(S)?S(a.type==="category"?_:a.type==="value"?m+"":m,g):S})});if(A.anid="label_"+m,v){var C=Th.makeAxisEventDataBase(r);C.targetType="axisLabel",C.value=_,C.tickIndex=g,a.type==="category"&&(C.dataIndex=m),Ht(A).eventData=C}t.add(A),A.updateTransform(),d.push(A),e.add(A),A.decomposeTransform()}),d}}const Wu=Th;function Ixe(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Rxe(r,e,t),r.seriesInvolved&&kxe(r,e),r}function Rxe(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];W(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=J0(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(W(s.getAxes(),zt(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&W(v.baseAxes,zt(p,h?"cross":!0,d)),h&&W(v.otherAxes,zt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",a),w=_.get("show");if(!(!w||w==="auto"&&!g&&!uL(_))){m==null&&(m=_.get("triggerTooltip")),_=g?Oxe(y,f,a,t,g,m):_;var x=_.get("snap"),S=_.get("triggerEmphasis"),T=J0(y.model),A=m||x||y.type==="category",C=e.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:S,involveSeries:A,snap:x,useHandle:uL(_),seriesModels:[],linkGroup:null};u[T]=C,e.seriesInvolved=e.seriesInvolved||A;var M=Nxe(i,y);if(M!=null){var E=o[M]||(o[M]={axesInfo:{}});E.axesInfo[T]=C,E.mapper=i[M].mapper,C.linkGroup=E}}}})}function Oxe(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};W(s,function(d){l[d]=Pt(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&yt(u,f.textStyle)}}return e.model.getModel("axisPointer",new $r(l,r,n))}function kxe(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||W(e.coordSysAxesInfo[J0(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function Nxe(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(ME(i[n+"AxisId"],r.id)||ME(i[n+"AxisIndex"],r.componentIndex)||ME(i[n+"AxisName"],r.name))return a}}function ME(e,t){return e==="all"||Ne(e)&&tr(e,t)>=0||e===t}function Bxe(e){var t=kk(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=uL(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function kk(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[J0(e)]}function Fxe(e){var t=kk(e);return t&&t.axisPointerModel}function uL(e){return!!e.get(["handle","show"])}function J0(e){return e.type+"||"+e.id}var rz={},Vxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&Bxe(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=Fxe(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){rz[r]=n},t.getAxisPointerClass=function(r){return r&&rz[r]},t.type="axis",t}(rn);const ov=Vxe;var cL=Pr();function vq(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=cL(e).splitAreaColors,d=_t(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Ne(s)?s:[s];for(var v=1;v<u.length;v++){var y=a.toGlobalCoord(u[v].coord),_=void 0,w=void 0,x=void 0,S=void 0;a.isHorizontal()?(_=g,w=l.y,x=y-_,S=l.height,g=_+x):(_=l.x,w=g,x=l.width,S=y-w,g=w+S);var T=u[v-1].tickValue;T!=null&&d.set(T,h),t.add(new br({anid:T!=null?"area_"+T:null,shape:{x:_,y:w,width:x,height:S},style:yt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}cL(e).splitAreaColors=d}}}function pq(e){cL(e).splitAreaColors=null}var zxe=["axisLine","axisTickLabel","axisName"],Hxe=["splitArea","splitLine","minorSplitLine"],gq=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ot,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=lL(s,r),u=new Wu(r,Ie({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(eL(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));W(zxe,u.add,u),this._axisGroup.add(u.getGroup()),W(Hxe,function(f){r.get([f,"show"])&&Gxe[f](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||l1(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){pq(this)},t.type="cartesianAxis",t}(ov),Gxe={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=Ne(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=a.toGlobalCoord(f[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=c++%s.length,y=f[p].tickValue,_=new Ta({anid:y!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:yt({stroke:s[m]},v),silent:!0});Qp(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=a.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new Ta({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Qp(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){vq(e,t,r,n)}},mq=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(gq),Uxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=mq.type,r}return t.type="yAxis",t}(gq),$xe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new br({shape:r.coordinateSystem.getRect(),style:yt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(rn),nz={offset:0};function yq(e){e.registerComponentView($xe),e.registerComponentModel(pxe),e.registerCoordinateSystem("cartesian2d",Cxe),rg(e,"x",oL,nz),rg(e,"y",oL,nz),e.registerComponentView(mq),e.registerComponentView(Uxe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Wxe(e){Dt(yq),e.registerSeriesModel(sxe),e.registerChartView(hxe),e.registerLayout(m1("scatter"))}function Yxe(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();W(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=az(c)?c:iz(a)})}),r.each(function(o){var s=AY(n[o],function(l){return az(l)})||iz(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function az(e){return!isNaN(e[0])&&!isNaN(e[1])}function iz(e){return[e.cx,e.cy]}function jxe(e){var t=e.polar;if(t){Ne(t)||(t=[t]);var r=[];W(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],Ne(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}W(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var Kxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(d,h){var v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var p=Jg(d.getItemVisual(h,"symbolSize")),g=jn(v,-1,-1,2,2),m=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(d,h,v,p,g,m){v.removeAll();for(var y=0;y<h.length-1;y++){var _=u(p,g);_&&(_.__dimIdx=y,d[y]?(_.setPosition(d[y]),u1[m?"initProps":"updateProps"](_,{x:h[y][0],y:h[y][1]},r,g)):_.setPosition(h[y]),v.add(_))}}function f(d){return Fe(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new Ri,p=new Fi,g={shape:{points:h}};v.shape.points=f(h),p.shape.points=f(h),_n(v,g,r,d),_n(p,g,r,d);var m=new Ot,y=new Ot;m.add(p),m.add(v),m.add(y),c(p.shape.points,h,y,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,h){var v=l.getItemGraphicEl(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),y={shape:{points:s.getItemLayout(d)}};y.shape.points&&(c(p.shape.points,y.shape.points,m,s,d,!1),Js(g),Js(p),Lr(p,y,r),Lr(g,y,r),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),y=s.getItemVisual(h,"style"),_=y.fill;o.add(d),p.useStyle(yt(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),ti(p,v,"lineStyle"),ti(g,v,"areaStyle");var w=v.getModel("areaStyle"),x=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=x,W(["emphasis","select","blur"],function(A){var C=v.getModel([A,"areaStyle"]),M=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(A).ignore=M&&x}),g.useStyle(yt(w.getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var S=v.getModel("emphasis"),T=S.getModel("itemStyle").getItemStyle();m.eachChild(function(A){if(A instanceof Oa){var C=A.style;A.useStyle(Ie({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else A.useStyle(y),A.setColor(_),A.style.strokeNoScale=!0;var M=A.ensureState("emphasis");M.style=Pt(T);var E=s.getStore().get(s.getDimensionIndex(A.__dimIdx),h);(E==null||isNaN(E))&&(E=""),ri(A,Pa(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:A.__dimIdx,defaultText:E,inheritColor:_,defaultOpacity:y.opacity})}),Gn(d,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(xr);const Xxe=Kxe;var Zxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _1(ot(this.getData,this),ot(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return nm(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=uX(this,r);return La("section",{header:u,sortBlocks:!0,blocks:Fe(s,function(f){var d=i.get(i.mapDimension(f.dim),r);return La("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(Fe(a.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Ir);const qxe=Zxe;var Hm=fq.value;function zb(e,t){return yt({show:t},e)}var Qxe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=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=Fe(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=yt({color:v.color},l));var g=st(Pt(v),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:d},!1);if(rt(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else Tt(c)&&(g.name=c(g.name,g));var y=new $r(g,null,this.ecModel);return Kn(y,rm.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:st({lineStyle:{color:"#bbb"}},Hm.axisLine),axisLabel:zb(Hm.axisLabel,!1),axisTick:zb(Hm.axisTick,!1),splitLine:zb(Hm.splitLine,!0),splitArea:zb(Hm.splitArea,!0),indicator:[]},t}(sr);const Jxe=Qxe;var e2e=["axisLine","axisTickLabel","axisName"],t2e=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=Fe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Wu(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});W(i,function(o){W(e2e,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),v=Ne(d)?d:[d],p=Ne(h)?h:[h],g=[],m=[];function y(I,O,R){var B=R%O.length;return I[B]=I[B]||[],B}if(i==="circle")for(var _=a[0].getTicksCoords(),w=n.cx,x=n.cy,S=0;S<_.length;S++){if(c){var T=y(g,v,S);g[T].push(new Qs({shape:{cx:w,cy:x,r:_[S].coord}}))}if(f&&S<_.length-1){var T=y(m,p,S);m[T].push(new i1({shape:{cx:w,cy:x,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var A,C=Fe(a,function(I,O){var R=I.getTicksCoords();return A=A==null?R.length-1:Math.min(R.length-1,A),Fe(R,function(B){return n.coordToPoint(B.coord,O)})}),M=[],S=0;S<=A;S++){for(var E=[],D=0;D<a.length;D++)E.push(C[D][S]);if(E[0]&&E.push(E[0].slice()),c){var T=y(g,v,S);g[T].push(new Fi({shape:{points:E}}))}if(f&&M){var T=y(m,p,S-1);m[T].push(new Ri({shape:{points:E.concat(M)}}))}M=E.slice().reverse()}var P=l.getLineStyle(),L=u.getAreaStyle();W(m,function(I,O){this.group.add(bo(I,{style:yt({stroke:"none",fill:p[O%p.length]},L),silent:!0}))},this),W(g,function(I,O){this.group.add(bo(I,{style:yt({fill:"none",stroke:v[O%v.length]},P),silent:!0}))},this)},t.type="radar",t}(rn);const r2e=t2e;var n2e=function(e){De(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(gi);const a2e=n2e;var i2e=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=Fe(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new a2e(o,new bf);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(r*r+n*n);r/=a,n/=a;for(var i=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight(),o=Math.min(a,i)/2;this.cx=Je(n[0],a),this.cy=Je(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(rt(s)||Mr(s))&&(s=[0,s]),this.r0=Je(s[0],o),this.r=Je(s[1],o),W(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,a=this._model;W(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();W(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new bf;o.setExtent(0,i),o.setInterval(1),W(n,function(s,l){dq(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},e.dimensions=[],e}();const o2e=i2e;function s2e(e){e.registerCoordinateSystem("radar",o2e),e.registerComponentModel(Jxe),e.registerComponentView(r2e),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function l2e(e){Dt(s2e),e.registerChartView(Xxe),e.registerSeriesModel(qxe),e.registerLayout(Yxe),e.registerProcessor(y1("radar")),e.registerPreprocessor(jxe)}var oz="\0_ec_interaction_mutex";function u2e(e,t,r){var n=Nk(e);n[t]=r}function c2e(e,t,r){var n=Nk(e),a=n[t];a===r&&(n[t]=null)}function sz(e,t){return!!Nk(e)[t]}function Nk(e){return e[oz]||(e[oz]={})}il({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Wn);var f2e=function(e){De(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=ot(n._mousedownHandler,n),i=ot(n._mousemoveHandler,n),o=ot(n._mouseupHandler,n),s=ot(n._mousewheelHandler,n),l=ot(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=yt(Pt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",i),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",i),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!BB(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!oS("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||sz(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&zu(r.event),_q(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){BB(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=oS("zoomOnMouseWheel",r,this._opt),a=oS("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;DE(this,"zoom","zoomOnMouseWheel",r,{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);DE(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!sz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;DE(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(gs);function DE(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(zu(n.event),_q(e,t,r,n,a))}function _q(e,t,r,n,a){a.isAvailableBehavior=ot(oS,null,r,n),e.trigger(t,a)}function oS(e,t,r){var n=r[e];return!e||n&&(!rt(n)||t.event[n+"Key"])}const b1=f2e;function Bk(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function Fk(e,t,r,n){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(r-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var d2e={axisPointer:1,tooltip:1,brush:1};function nT(e,t,r){var n=t.getComponentByElement(e.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!d2e.hasOwnProperty(n.mainType)&&a&&a.model!==r}function bq(e){if(rt(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var PE,Hx={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"},lz=vr(Hx),Gx={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uz=vr(Gx),h2e=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=bq(t);this._defsUsePending=[];var a=new Ot;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),vo(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;g2e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=aT(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=Sq(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=a;a=new Ot,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new br({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var c=PE[s];if(c&<(PE,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var h=cz[s];if(h&<(cz,s)){var v=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=v)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new B0({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});No(r,n),vo(t,n,this._defsUsePending,!1,!1),v2e(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.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=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){PE={g:function(t,r){var n=new Ot;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new br;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new Qs;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Ta;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new LA;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),a;n&&(a=hz(n));var i=new Ri({shape:{points:a||[]},silent:!0});return No(r,i),vo(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=hz(n));var i=new Fi({shape:{points:a||[]},silent:!0});return No(r,i),vo(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new Oa;return No(r,n),vo(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Ot;return No(r,s),vo(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Ot;return No(r,s),vo(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=Xj(n);return No(r,a),vo(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),cz={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new kr(t,r,n,a);return fz(e,i),dz(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),a=new BO(t,r,n);return fz(e,a),dz(e,a),a}};function fz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function dz(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};wq(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function No(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),yt(t.__inheritedStyle,e.__inheritedStyle))}function hz(e){for(var t=aT(e),r=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);r.push([a,i])}return r}function vo(e,t,r,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(_2e(e,t),wq(e,o,s),n||b2e(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=vz(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=vz(i,"stroke",o.stroke,r)),W(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),W(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=Fe(aT(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function v2e(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var p2e=/^url\(\s*#(.*?)\)/;function vz(e,t,r,n){var a=r&&r.match(p2e);if(a){var i=Qo(a[1]);n.push([e,t,i]);return}return r==="none"&&(r=null),r}function g2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var m2e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function aT(e){return e.match(m2e)||[]}var y2e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,LE=Math.PI/180;function _2e(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(y2e,function(f,d,h){return n.push(d,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=aT(o);switch(a=a||lo(),s){case"translate":Zs(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_A(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Of(a,a,-parseFloat(l[0])*LE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*LE);Rl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*LE);Rl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var pz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function wq(e,t,r){var n=e.getAttribute("style");if(n){pz.lastIndex=0;for(var a;(a=pz.exec(n))!=null;){var i=a[1],o=lt(Hx,i)?Hx[i]:null;o&&(t[o]=a[2]);var s=lt(Gx,i)?Gx[i]:null;s&&(r[s]=a[2])}}}function b2e(e,t,r){for(var n=0;n<lz.length;n++){var a=lz[n],i=e.getAttribute(a);i!=null&&(t[Hx[a]]=i)}for(var n=0;n<uz.length;n++){var a=uz[n],i=e.getAttribute(a);i!=null&&(r[Gx[a]]=i)}}function Sq(e,t){var r=t.width/e.width,n=t.height/e.height,a=Math.min(r,n);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function w2e(e,t){var r=new h2e;return r.parse(e,t)}var S2e=_t(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),x2e=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=_t(),this._freedGraphics=[],this._mapName=t,this._parsedXML=bq(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=T2e(t.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&w2e(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,ci(n!=null)}catch(g){throw new Error(`Invalid svg format
|
||
`+g.message)}var a=new Ot;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.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=n.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new Xt(u,c,f,d)}if(s){var v=Sq(s,l);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}a.setClipPath(new br({shape:l.plain()}));var p=[];return W(r.named,function(g){S2e.get(g.svgNodeTagLower)!=null&&(p.push(g),A2e(g.el))}),{root:a,boundingRect:l,named:p}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function A2e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function T2e(e){var t=[],r=_t();return W(e,function(n){if(n.namedFrom==null){var a=new Vbe(n.name,n.el);t.push(a),r.set(n.name,a)}}),{regions:t,regionsMap:r}}var fL=[126,25],gz="南海诸岛",Od=[[[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 Sd=0;Sd<Od.length;Sd++)for(var Lv=0;Lv<Od[Sd].length;Lv++)Od[Sd][Lv][0]/=10.5,Od[Sd][Lv][1]/=-10.5/.75,Od[Sd][Lv][0]+=fL[0],Od[Sd][Lv][1]+=fL[1];function C2e(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===gz)return;t.push(new yZ(gz,Fe(Od,function(n){return{type:"polygon",exterior:n}}),fL))}}var E2e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function xq(e,t){if(e==="china"){var r=E2e[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var M2e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function D2e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:M2e[0]})}var P2e="name",L2e=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=_t(),this._mapName=t,this._specialAreas=n,this._geoJSON=R2e(r)}return e.prototype.load=function(t,r){r=r||P2e;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:I2e(a)})}var i=_t(),o=[];return W(n.regions,function(s){var l=s.name;t&<(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Xt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,a;try{a=n?X0(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
|
||
`+i.message)}return C2e(r,a),W(a,function(i){var o=i.name;xq(r,i),D2e(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function I2e(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function R2e(e){return rt(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Gm=_t();const Yu={registerMap:function(e,t,r){if(t.svg){var n=new x2e(e,t.svg);Gm.set(e,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?r=t.specialAreas:a=t;var n=new L2e(e,a,r);Gm.set(e,n)}},getGeoResource:function(e){return Gm.get(e)},getMapForUser:function(e){var t=Gm.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Gm.get(e);if(n)return n.load(t,r)}};var Vk=["rect","circle","line","ellipse","polygon","polyline","path"],O2e=_t(Vk),k2e=_t(Vk.concat(["g"])),N2e=_t(Vk.concat(["g"])),Aq=Pr();function Hb(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function mz(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var B2e=function(){function e(t){var r=new Ot;this.uid=Yg("ec_map_draw"),this._controller=new b1(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new Ot),r.add(this._svgGroup=new Ot)}return e.prototype.draw=function(t,r,n,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===t&&(s=m.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,v=!u.childAt(0)||i;v?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):Lr(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,a)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=_t(),n=_t(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var m=c(h[g],p);m&&v.push(m)}return v}function d(h){return{shape:{points:f(h)}}}a.removeAll(),W(t.geo.regions,function(h){var v=h.name,p=r.get(v),g=n.get(v)||{},m=g.dataIdx,y=g.regionModel;p||(p=r.set(v,new Ot),a.add(p),m=s?s.indexOfName(v):null,y=t.isGeo?o.getRegionModel(v):s?s.getItemModel(m):null,n.set(v,{dataIdx:m,regionModel:y}));var _=[],w=[];W(h.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=xz(A,u)),W(A,function(M){_.push(new Ri(d(M)))})}else{var C=T.points;u&&(C=xz(C,u,!0)),W(C,function(M){w.push(new Fi(d(M)))})}});var x=c(h.getCenter(),l&&l.project);function S(T,A){if(T.length){var C=new RA({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),yz(t,C,m,y),_z(t,C,v,y,o,m,x),A&&(mz(C),W(C.states,mz))}}S(_),S(w,!0)}),r.each(function(h,v){var p=n.get(v),g=p.dataIdx,m=p.regionModel;bz(t,h,v,m,o,g),wz(t,h,v,m,o),Sz(t,h,v,m,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var a=this._svgDispatcherMap=_t(),i=!1;W(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(O2e.get(c)!=null&&f instanceof ss&&yz(t,f,d,h),f instanceof ss&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(N2e.get(c)!=null&&_z(t,f,s,h,l,d,null),bz(t,f,s,h,l,d),wz(t,f,s,h,l),k2e.get(c)!=null)){var v=Sz(t,f,s,h,l);v==="self"&&(i=!0);var p=a.get(s)||a.set(s,[]);p.push(f)}},this),this._enableBlurEntireSVG(i,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){zh(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=Yu.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=Yu.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Bk(o,u.dx,u.dy),n.dispatchAction(Ie(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Fk(o,u.scale,u.originX,u.originY),n.dispatchAction(Ie(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])&&!nT(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=Aq(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,a){var i=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function yz(e,t,r,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Hb(a),u=Hb(i),c=Hb(s),f=Hb(o),d=e.data;if(d){var h=d.getItemVisual(r,"style"),v=d.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),v&&(l.decal=eg(v,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,zh(t)}function _z(e,t,r,n,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?r:i,d=void 0;(!s||i>=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ri(t,Pa(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var v=t.getTextContent();if(v&&(Aq(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function bz(e,t,r,n,a,i){e.data?e.data.setItemGraphicEl(i,t):Ht(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function wz(e,t,r,n,a){e.data||$g({el:t,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function Sz(e,t,r,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return Gn(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&Fme(t,a,r),o}function xz(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),W(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}const Tq=B2e;var F2e=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new Tq(a);o.add(s.group),s.draw(r,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,a){var i=r.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 Qs({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Hg+1)});if(!f){var h=r.mainSeries.getData(),v=i.getName(l),p=h.indexOfName(v),g=i.getItemModel(l),m=g.getModel("label"),y=h.getItemGraphicEl(p);ri(d,Pa(g),{labelFetcher:{getFormattedLabel:function(_,w){return r.getFormattedLabel(p,w)}},defaultText:v}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),y.onHoverStateChange=function(_){px(d,_)}}o.add(d)}}})},t.type="map",t}(xr);const V2e=F2e;var z2e=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=nm(this,{coordDimensions:["value"],encodeDefaulter:zt(qO,this)}),a=_t(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=Yu.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return W(u.regions,function(c){var f=c.name;a.get(f)||i.push(f)}),n.appendValues([],i),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return La("section",{header:u.join(", "),noHeader:!u.length,blocks:[La("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=jn(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return a.setStyle(r.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ir);const H2e=z2e;function G2e(e,t){var r={};return W(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,c=0;c<u;c++)s=Math.min(s,r[i][c]),l=Math.max(l,r[i][c]),o+=r[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function U2e(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),a=n?"o"+n.id:"i"+r.getMapType();(t[a]=t[a]||[]).push(r)}),W(t,function(r,n){for(var a=G2e(Fe(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),i=0;i<r.length;i++)r[i].originalData=r[i].getData();for(var i=0;i<r.length;i++)r[i].seriesGroup=r,r[i].needsDrawMap=i===0&&!r[i].getHostGeoModel(),r[i].setData(a.cloneShallow()),r[i].mainSeries=r[0]})}function $2e(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var a={};W(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=a[f]||0,v=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:v,offset:h})}})});var i=r.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[n]=!0}})}var Az=va,W2e=function(e){De(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Eu,n._rawTransformable=new Eu,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,a,i){return this._rect=new Xt(r,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,a,i){this._transformTo(r,n,a,i),this._viewRect=new Xt(r,n,a,i)},t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Xt(r,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[Je(r[0],n.getWidth()),Je(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,a=r.y+r.height/2;return[n,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=va([],i,r),a=va([],a,r),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),yA(this.transform||(this.transform=[]),n.transform||lo()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],kf(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,a=new Eu;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?Az(a,r,i):ii(a,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?Az([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,a){var i=Tz(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=Tz(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(Eu);function Tz(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const w1=W2e;var Y2e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Cq=["lng","lat"],Eq=function(e){De(t,e);function t(r,n,a){var i=e.call(this,r)||this;i.dimensions=Cq,i.type="geo",i._nameCoordMap=_t(),i.map=n;var o=a.projection,s=Yu.load(n,a.nameMap,a.nameProperty),l=Yu.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=Y2e[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:Qt(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(r,n,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 Xt(r,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(r))return n[a]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,a){if(rt(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.projectedToPoint(r,n,a)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,a){return e.prototype.dataToPoint.call(this,r,n,a)},t.prototype.convertToPixel=function(r,n,a){var i=Cz(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=Cz(n);return i===this?i.pointToData(a):null},t}(w1);Kn(Eq,w1);function Cz(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",ia).models[0]||{}).coordinateSystem:null}const Ez=Eq;function Mz(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],a=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(S,T,A,C){for(var M=A-S,E=C-T,D=0;D<=100;D++){var P=D/100,L=i.project([S+M*P,T+E*P]);Tu(n,n,L),Cu(a,a,L)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),h=e.get("layoutSize"),v=t.getWidth(),p=t.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,y,_;d&&h&&(y=[Je(d[0],v),Je(d[1],p)],_=Je(h,Math.min(v,p)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(_)&&(m=!0));var w;if(m)w={},g>1?(w.width=_,w.height=_/g):(w.height=_,w.width=_*g),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,w=kn(x,{width:v,height:p})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function j2e(e,t){W(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var K2e=function(){function e(){this.dimensions=Cq}return e.prototype.create=function(t,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Ez(l+s,l,Ie({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Mz,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),W(i,function(o,s){var l=Fe(o,function(c){return c.get("nameMap")}),u=new Ez(s,s,Ie({nameMap:pA(l)},a(o[0])));u.zoomLimit=Aa.apply(null,Fe(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Mz,u.resize(o[0],r),W(o,function(c){c.coordinateSystem=u,j2e(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=_t(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Yu.load(r,n,a);return W(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),X2e=new K2e;const Mq=X2e;var Z2e=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=Yu.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,a),Bh(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=Mq.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=Co(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new $r(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},_t()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new $r(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var a=this.getRegionModel(r),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:r};if(Tt(i))return o.status=n,i(o);if(rt(i))return i.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(sr);const q2e=Z2e;function Dz(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function zk(e,t,r,n){var a=e.getZoom(),i=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(Dz(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(Dz(e,s),n),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var Q2e=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,a,i){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Tq(a));var o=this._mapDraw;o.draw(r,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,a)},t.prototype._handleRegionClick=function(r){var n;th(r.target,function(a){return(n=Ht(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Ht(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(rn);const J2e=Q2e;function eAe(e,t,r){Yu.registerMap(e,t,r)}function Dq(e){e.registerCoordinateSystem("geo",Mq),e.registerComponentModel(q2e),e.registerComponentView(J2e),e.registerImpl("registerMap",eAe),e.registerImpl("getMap",function(r){return Yu.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[r](a.name);var u=l.coordinateSystem;W(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];W(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,a){var i=r.componentType||"series";n.eachComponent({mainType:i,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=zk(s,r,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&W(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function tAe(e){Dt(Dq),e.registerChartView(V2e),e.registerSeriesModel(H2e),e.registerLayout($2e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,U2e),wX("map",e.registerAction)}function rAe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,a;n=r.pop();)if(a=n.children,n.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},r.push(s)}}function nAe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){oAe(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=sAe(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function aAe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Pz(e){return arguments.length?e:cAe}function Sy(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function iAe(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function oAe(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function sAe(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=IE(s),i=RE(i),s&&i;){a=IE(a),o=RE(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+n(s,i);d>0&&(uAe(lAe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!IE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!RE(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,r=e)}return r}function IE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function RE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function lAe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function uAe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function cAe(e,t){return e.parentNode===t.parentNode?1:2}var fAe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),dAe=function(e){De(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fAe},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Je(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var v=1;v<i-1;v++){var p=a[v];r.moveTo(p[0],p[1]),h[c]=p[c],r.lineTo(h[0],h[1])}},t}(cr),hAe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new Ot,r}return t.prototype.init=function(r,n){this._controller=new b1(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,a){var i=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.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(r,a),this._updateController(r,n,a);var u=this._data;i.diff(u).add(function(c){Lz(i,c)&&Iz(i,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!Lz(i,c)){d&&Oz(u,f,d,s,r);return}Iz(i,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&Oz(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=i},t.prototype._updateViewCoordSys=function(r,n){var a=r.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=[];MA(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=r.coordinateSystem=new w1;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,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)&&!nT(u,a,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Bk(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Fk(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(r),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(xr);function Lz(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function Iz(e,t,r,n,a){var i=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,p=o.getLayout();i?(r=new p1(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=v.x,r.y=v.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=p.rawX,r.__radialRawY=p.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,Lr(r,{x:p.x,y:p.y},a);var g=r.getSymbolPath();if(a.get("layout")==="radial"){var m=c.children[0],y=m.getLayout(),_=m.children.length,w=void 0,x=void 0;if(p.x===y.x&&o.isExpand===!0&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};w=Math.atan2(S.y-y.y,S.x-y.x),w<0&&(w=Math.PI*2+w),x=S.x<y.x,x&&(w=w-Math.PI)}else w=Math.atan2(p.y-y.y,p.x-y.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<y.x,x&&(w=w-Math.PI)):(x=p.x>y.x,x||(w=w-Math.PI));var T=x?"left":"right",A=s.getModel("label"),C=A.get("rotate"),M=C*(Math.PI/180),E=g.getTextContent();E&&(g.setTextConfig({position:A.get("position")||T,rotation:C==null?-w:M,origin:"center"}),E.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),P=D==="relative"?kh(o.getAncestorsIndices(),o.getDescendantIndices()):D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():null;P&&(Ht(r).focus=P),vAe(a,o,c,r,v,h,p,n),r.__edge&&(r.onHoverStateChange=function(L){if(L!=="blur"){var I=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);I&&I.hoverState===a1||px(r.__edge,L)}})}function vAe(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new o1({shape:dL(c,f,d,a,a)})),Lr(p,{shape:dL(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;y<g.length;y++){var _=g[y].getLayout();m.push([_.x,_.y])}p||(p=n.__edge=new dAe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),Lr(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(yt({strokeNoScale:!0,fill:null},v)),ti(p,l,"lineStyle"),zh(p),s.add(p))}function Rz(e,t,r,n,a){var i=t.tree.root,o=Pq(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=n.get("edgeShape"),v=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);d&&(h==="curve"?yf(d,{shape:dL(v,p,g,l,l),style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&yf(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:a}))}}function Pq(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function Oz(e,t,r,n,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=Pq(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};yf(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){Rz(u,e,n,a,l)}),Rz(i,e,n,a,l)}function dL(e,t,r,n,a){var i,o,s,l,u,c,f,d;if(e==="radial"){u=n.rawX,f=n.rawY,c=a.rawX,d=a.rawY;var h=Sy(u,f),v=Sy(u,f+(d-f)*r),p=Sy(c,d+(f-d)*r),g=Sy(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,f=n.y,c=a.x,d=a.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*r,o=f,s=c+(u-c)*r,l=d),(t==="TB"||t==="BT")&&(i=u,o=f+(d-f)*r,s=c,l=d+(f-d)*r);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const pAe=hAe;var rs=Pr();function Hk(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Lq(t,r,e),W(r,function(n){W(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,zt(gAe,e))})}),t.wrapMethod("cloneShallow",zt(yAe,e)),W(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,zt(mAe,e))}),ci(r[t.dataType]===t)}function gAe(e,t){if(wAe(this)){var r=Ie({},rs(this).datas);r[this.dataType]=t,Lq(t,r,e)}else Gk(t,this.dataType,rs(this).mainData,e);return t}function mAe(e,t){return e.struct&&e.struct.update(),t}function yAe(e,t){return W(rs(t).datas,function(r,n){r!==t&&Gk(r.cloneShallow(),n,t,e)}),t}function _Ae(e){var t=rs(this).mainData;return e==null||t==null?t:rs(t).datas[e]}function bAe(){var e=rs(this).mainData;return e==null?[{data:e}]:Fe(vr(rs(e).datas),function(t){return{type:t,data:rs(e).datas[t]}})}function wAe(e){return rs(e).mainData===e}function Lq(e,t,r){rs(e).datas={},W(t,function(n,a){Gk(n,a,e,r)})}function Gk(e,t,r,n){rs(r).datas[t]=e,rs(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=_Ae,e.getLinkedDataAll=bAe}var SAe=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){Tt(t)&&(n=r,r=t,t=null),t=t||{},rt(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,r,n);a==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>r&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),xAe=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var a=new e(r),i=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,Ne(d)?d.length:1),i.push(c);var h=new SAe(ha(c.name,""),a);f?AAe(h,f):a.root=h,a._nodes.push(h);var v=c.children;if(v)for(var p=0;p<v.length;p++)s(v[p],h)}a.root.updateDepthAndHeight(0);var l=tm(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Dn(l,r);return u.initData(i),n&&n(u),Hk({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function AAe(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}const Uk=xAe;function e_(e,t,r){if(e&&tr(t,e.type)>=0){var n=r.getData().tree.root,a=e.targetNode;if(rt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function Iq(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function $k(e,t){var r=Iq(e);return tr(r,t)>=0}function iT(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var TAe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new $r(a,this,this.ecModel),o=Uk.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return La("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=iT(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ir);const CAe=TAe;function EAe(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,r)}function Um(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function MAe(e,t){e.eachSeriesByType("tree",function(r){DAe(r,t)})}function DAe(e,t){var r=iAe(e,t);e.layoutInfo=r;var n=e.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(r.height,r.width)/2,o=Pz(function(_,w){return(_.parentNode===w.parentNode?1:2)/_.depth})):(a=r.width,i=r.height,o=Pz());var s=e.getData().tree.root,l=s.children[0];if(l){rAe(s),EAe(l,nAe,o),s.hierNode.modifier=-l.hierNode.prelim,Um(l,aAe);var u=l,c=l,f=l;Um(l,function(_){var w=_.getLayout().x;w<u.getLayout().x&&(u=_),w>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,p=0,g=0,m=0;if(n==="radial")v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Um(l,function(_){g=(_.getLayout().x+h)*v,m=(_.depth-1)*p;var w=Sy(g,m);_.setLayout({x:w.x,y:w.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Um(l,function(_){m=(_.getLayout().x+h)*p,g=y==="LR"?(_.depth-1)*v:a-(_.depth-1)*v,_.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Um(l,function(_){g=(_.getLayout().x+h)*v,m=y==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function PAe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");Ie(s,o)})})}function LAe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=zk(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function IAe(e){e.registerChartView(pAe),e.registerSeriesModel(CAe),e.registerLayout(MAe),e.registerVisual(PAe),LAe(e)}var kz=["treemapZoomToNode","treemapRender","treemapMove"];function RAe(e){for(var t=0;t<kz.length;t++)e.registerAction({type:kz[t],update:"updateView"},Wn);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=e_(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=$k(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Rq(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=GP(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var OAe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};Oq(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new $r({itemStyle:o},this,n);i=r.levels=kAe(i,n);var l=Fe(i||[],function(f){return new $r(f,s,n)},this),u=Uk.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),p=v?l[v.depth]:null;return d.parentModel=p||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return La("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=iT(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Ie(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=_t(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Rq(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ir);function Oq(e){var t=0;W(e.children,function(n){Oq(n);var a=n.value;Ne(a)&&(a=a[0]),t+=a});var r=e.value;Ne(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Ne(e.value)?e.value[0]=r:e.value=r}function kAe(e,t){var r=tn(t.get("color")),n=tn(t.get(["aria","decal","decals"]));if(r){e=e||[];var a,i;W(e,function(s){var l=new $r(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}const NAe=OAe;var BAe=8,Nz=8,OE=5,FAe=function(){function e(t){this.group=new Ot,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){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:r.getWidth(),height:r.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,a),GA(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=ha(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+BAe*2,r.emptyItemWidth);r.totalWidth+=s+Nz,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=$ye(r.pos,r.box),d=r.totalWidth,h=r.renderList,v=a.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],m=g.node,y=g.width,_=g.text;d>f.width&&(d-=y-u,y=u,_=null);var w=new Ri({shape:{points:VAe(l,0,y,c,p===h.length-1,p===0)},style:yt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new pr({style:Xr(i,{text:_})}),textConfig:{position:"inside"},z2:Hg*1e4,onclick:zt(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Xr(o,{text:_}),w.ensureState("emphasis").style=v,Gn(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),zAe(w,t,m),l+=y+Nz}},e.prototype.remove=function(){this.group.removeAll()},e}();function VAe(e,t,r,n,a,i){var o=[[a?e:e-OE,t],[e+r,t],[e+r,t+n],[a?e:e-OE,t+n]];return!i&&o.splice(2,0,[e+r+OE,t+n/2]),!a&&o.push([e,t+n/2]),o}function zAe(e,t,r){Ht(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&iT(r,t)}}const HAe=FAe;var GAe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function UAe(){return new GAe}var hL=Ot,Bz=br,Fz=3,Vz="label",zz="upperLabel",$Ae=Hg*10,WAe=Hg*2,YAe=Hg*3,kd=Vh([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Hz=function(e){var t=kd(e);return t.stroke=t.fill=t.lineWidth=null,t},Ux=Pr(),jAe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=$m(),r}return t.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(tr(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=e_(i,s,r),u=i&&i.type,c=r.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,v=this._giveContainerGroup(c),p=r.get("animation"),g=this._doRender(v,r,h);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,g,r,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new hL,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=$m(),l=$m(),u=this._storage,c=[];function f(g,m,y,_){return KAe(n,l,u,a,s,c,g,m,y,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var d=v(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:p};function h(g,m,y,_,w){_?(m=g,W(g,function(T,A){!T.isRemoved()&&S(A,A)})):new Uu(m,g,x,x).add(S).update(S).remove(zt(S,null)).execute();function x(T){return T.getId()}function S(T,A){var C=T!=null?g[T]:null,M=A!=null?m[A]:null,E=f(C,M,y,w);E&&h(C&&C.viewChildren||[],M&&M.viewChildren||[],E,_,w+1)}}function v(g){var m=$m();return g&&W(g,function(y,_){var w=m[_];W(y,function(x){x&&(w.push(x),Ux(x).willDelete=!0)})}),m}function p(){W(d,function(g){W(g,function(m){m.parent&&m.parent.remove(m)})}),W(c,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(Tt(o)?0:o)||0,u=(Tt(s)?null:s)||"cubicOut",c=UAe();W(n.willDeleteEls,function(f,d){W(f,function(h,v){if(!h.invisible){var p=h.parent,g,m=Ux(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,_=0;m.willDelete||(y=m.nodeWidth/2,_=m.nodeHeight/2),g=d==="nodeGroup"?{x:y,y:_,style:{opacity:0}}:{shape:{x:y,y:_,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),W(this._storage,function(f,d){W(f,function(h,v){var p=n.lastsForAnimation[d][v],g={};p&&(h instanceof Ot?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=Ie({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(ot(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller;n||(n=this._controller=new b1(r.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",ot(this._onPan,this)),n.on("zoom",ot(this._onZoom,this)));var a=new Xt(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},t.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>Fz||Math.abs(r.dy)>Fz)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.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 Xt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=lo();Zs(u,u,[-n,-a]),_A(u,u,[r.scale,r.scale]),Zs(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._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&&Sx(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new HAe(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&($k(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$m(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){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(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(xr);function $m(){return{nodeGroup:[],background:[],content:[]}}function KAe(e,t,r,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,v=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,w=c.upperHeight,x=_&&_.length,S=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),A=d.getModel(["blur","itemStyle"]),C=d.getModel(["select","itemStyle"]),M=S.get("borderRadius")||0,E=Q("nodeGroup",hL);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),Ux(E).nodeWidth=h,Ux(E).nodeHeight=v,c.isAboveViewRoot)return E;var D=Q("background",Bz,u,WAe);D&&k(E,D,x&&c.upperLabelHeight);var P=d.getModel("emphasis"),L=P.get("focus"),I=P.get("blurScope"),O=P.get("disabled"),R=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(x)V0(E)&&Jd(E,!1),D&&(Jd(D,!O),f.setItemGraphicEl(o.dataIndex,D),OP(D,R,I));else{var B=Q("content",Bz,u,YAe);B&&z(E,B),D.disableMorphing=!0,D&&V0(D)&&Jd(D,!1),Jd(E,!O),f.setItemGraphicEl(o.dataIndex,E),OP(E,R,I)}return E;function k(K,Z,ne){var re=Ht(Z);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,Z.setShape({x:0,y:0,width:h,height:v,r:M}),g)$(Z);else{Z.invisible=!1;var ie=o.getVisual("style"),Y=ie.stroke,q=Hz(S);q.fill=Y;var oe=kd(T);oe.fill=T.get("borderColor");var ve=kd(A);ve.fill=A.get("borderColor");var _e=kd(C);if(_e.fill=C.get("borderColor"),ne){var ge=h-2*p;j(Z,Y,ie.opacity,{x:p,y:0,width:ge,height:w})}else Z.removeTextContent();Z.setStyle(q),Z.ensureState("emphasis").style=oe,Z.ensureState("blur").style=ve,Z.ensureState("select").style=_e,zh(Z)}K.add(Z)}function z(K,Z){var ne=Ht(Z);ne.dataIndex=o.dataIndex,ne.seriesIndex=e.seriesIndex;var re=Math.max(h-2*p,0),ie=Math.max(v-2*p,0);if(Z.culling=!0,Z.setShape({x:p,y:p,width:re,height:ie,r:M}),g)$(Z);else{Z.invisible=!1;var Y=o.getVisual("style"),q=Y.fill,oe=Hz(S);oe.fill=q,oe.decal=Y.decal;var ve=kd(T),_e=kd(A),ge=kd(C);j(Z,q,Y.opacity,null),Z.setStyle(oe),Z.ensureState("emphasis").style=ve,Z.ensureState("blur").style=_e,Z.ensureState("select").style=ge,zh(Z)}K.add(Z)}function $(K){!K.invisible&&i.push(K)}function j(K,Z,ne,re){var ie=d.getModel(re?zz:Vz),Y=ha(d.get("name"),null),q=ie.getShallow("show");ri(K,Pa(d,re?zz:Vz),{defaultText:q?Y:null,inheritColor:Z,defaultOpacity:ne,labelFetcher:e,labelDataIndex:o.dataIndex});var oe=K.getTextContent();if(oe){var ve=oe.style,_e=mA(ve.padding||0);re&&(K.setTextConfig({layoutRect:re}),oe.disableLabelLayout=!0),oe.beforeUpdate=function(){var Le=Math.max((re?re.width:K.shape.width)-_e[1]-_e[3],0),Se=Math.max((re?re.height:K.shape.height)-_e[0]-_e[2],0);(ve.width!==Le||ve.height!==Se)&&oe.setStyle({width:Le,height:Se})},ve.truncateMinChar=2,ve.lineOverflow="truncate",X(ve,re,c);var ge=oe.getState("emphasis");X(ge?ge.style:null,re,c)}}function X(K,Z,ne){var re=K?K.text:null;if(!Z&&ne.isLeafRoot&&re!=null){var ie=e.get("drillDownIcon",!0);K.text=ie?ie+" "+re:re}}function Q(K,Z,ne,re){var ie=y!=null&&r[K][y],Y=a[K];return ie?(r[K][y]=null,se(Y,ie)):g||(ie=new Z,ie instanceof ss&&(ie.z2=XAe(ne,re)),ee(Y,ie)),t[K][m]=ie}function se(K,Z){var ne=K[m]={};Z instanceof hL?(ne.oldX=Z.x,ne.oldY=Z.y):ne.oldShape=Ie({},Z.shape)}function ee(K,Z){var ne=K[m]={},re=o.parentNode,ie=Z instanceof Ot;if(re&&(!n||n.direction==="drillDown")){var Y=0,q=0,oe=a.background[re.getRawIndex()];!n&&oe&&oe.oldShape&&(Y=oe.oldShape.width,q=oe.oldShape.height),ie?(ne.oldX=0,ne.oldY=q):ne.oldShape={x:Y,y:q,width:0,height:0}}ne.fadein=!ie}}function XAe(e,t){return e*$Ae+t}const ZAe=jAe;var t_=W,qAe=Mt,$x=-1,Wk=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=Pt(t);this.type=n,this.mappingMethod=r,this._normalizeData=eTe[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(kE(a),QAe(a)):r==="category"?a.categories?JAe(a):kE(a,!0):(ci(r!=="linear"||a.dataExtent),kE(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ot(this._normalizeData,this)},e.listVisualTypes=function(){return vr(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Mt(t)?W(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=Ne(t)?[]:Mt(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&t_(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Ne(t))t=t.slice();else if(qAe(t)){var r=[];t_(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var a,i=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||rt(l)&&l===t+"")return o;n&&d(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Ub(f[1],t,c[1]))return o}else if(c[1]===1/0){if(Ub(f[0],c[0],t))return o}else if(Ub(f[0],c[0],t)&&Ub(f[1],t,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:a;function d(h,v){var p=Math.abs(h-t);p<i&&(i=p,a=v)}},e.visualHandlers={color:{applyVisual:Wm("color"),getColorMapper:function(){var t=this.option;return ot(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),xy.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=Gy(r,t.parsedVisual,a),i?a:Gs(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Gs(Gy(t,this.option.parsedVisual),"rgba")},category:xy,piecewise:function(t,r){var n=pL.call(this,r);return n==null&&(n=Gs(Gy(t,this.option.parsedVisual),"rgba")),n},fixed:Nd}},colorHue:Gb(function(t,r){return Pp(t,r)}),colorSaturation:Gb(function(t,r){return Pp(t,null,r)}),colorLightness:Gb(function(t,r){return Pp(t,null,null,r)}),colorAlpha:Gb(function(t,r){return I0(t,r)}),decal:{applyVisual:Wm("decal"),_normalizedToVisual:{linear:null,category:xy,piecewise:null,fixed:null}},opacity:{applyVisual:Wm("opacity"),_normalizedToVisual:vL([0,1])},liftZ:{applyVisual:Wm("liftZ"),_normalizedToVisual:{linear:Nd,category:Nd,piecewise:Nd,fixed:Nd}},symbol:{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:Gz,category:xy,piecewise:function(t,r){var n=pL.call(this,r);return n==null&&(n=Gz.call(this,t)),n},fixed:Nd}},symbolSize:{applyVisual:Wm("symbolSize"),_normalizedToVisual:vL([0,1])}},e}();function QAe(e){var t=e.pieceList;e.hasSpecialVisual=!1,W(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function JAe(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(t_(t,function(o,s){r[o]=s}),!Ne(n)){var a=[];Mt(n)?t_(n,function(o,s){var l=r[s];a[l??$x]=o}):a[$x]=n,n=kq(e,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function kE(e,t){var r=e.visual,n=[];Mt(r)?t_(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),kq(e,n)}function Gb(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:vL([0,1])}}function Gz(e){var t=this.option.visual;return t[Math.round(Vr(e,[0,1],[0,t.length-1],!0))]||{}}function Wm(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function xy(e){var t=this.option.visual;return t[this.option.loop&&e!==$x?e%t.length:e]}function Nd(){return this.option.visual[0]}function vL(e){return{linear:function(t){return Vr(t,e,this.option.visual,!0)},category:xy,piecewise:function(t,r){var n=pL.call(this,r);return n==null&&(n=Vr(t,e,this.option.visual,!0)),n},fixed:Nd}}function pL(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=Wk.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function kq(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Fe(t,function(r){var n=Za(r);return n||[0,0,0,1]})),t}var eTe={linear:function(e){return Vr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=Wk.findPieceIndex(e,t,!0);if(r!=null)return Vr(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??$x},fixed:Wn};function Ub(e,t,r){return e?t<=r:t<r}const qa=Wk;var tTe="itemStyle",Nq=Pr();const rTe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||Bq(r,{},e.getViewRoot().getAncestors(),e)}};function Bq(e,t,r,n){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(tTe),l=nTe(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=Uz(l),c=aTe(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=Uz(l),u.fill=d;else{var v=iTe(e,a,i,s,l,h);W(h,function(p,g){if(p.depth>=r.length||p===r[p.depth]){var m=oTe(a,l,p,g,v,n);Bq(p,m,r,n)}})}}}function nTe(e,t,r){var n=Ie({},t),a=r.designatedVisualItemStyle;return W(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function Uz(e){var t=NE(e,"color");if(t){var r=NE(e,"colorAlpha"),n=NE(e,"colorSaturation");return n&&(t=Pp(t,null,null,n)),r&&(t=I0(t,r)),t}}function aTe(e,t){return t!=null?Pp(t,null,null,e):null}function NE(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function iTe(e,t,r,n,a,i){if(!(!i||!i.length)){var o=BE(t,"color")||a.color!=null&&a.color!=="none"&&(BE(t,"colorAlpha")||BE(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new qa(f);return Nq(d).drColorMappingBy=c,d}}}function BE(e,t){var r=e.get(t);return Ne(r)&&r.length?{name:t,range:r}:null}function oTe(e,t,r,n,a,i){var o=Ie({},t);if(a){var s=a.type,l=s==="color"&&Nq(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var r_=Math.max,Wx=Math.min,$z=Aa,Yk=W,Fq=["itemStyle","borderWidth"],sTe=["itemStyle","gapWidth"],lTe=["upperLabel","show"],uTe=["upperLabel","height"];const cTe={seriesType:"treemap",reset:function(e,t,r,n){var a=r.getWidth(),i=r.getHeight(),o=e.option,s=kn(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Je($z(s.width,l[0]),a),c=Je($z(s.height,l[1]),i),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=e_(n,d,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=e.getViewRoot(),g=Iq(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?gTe(e,h,p,u,c):v?[v.width,v.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(w),Vq(p,_,!1,0),w=p.getLayout(),Yk(g,function(S,T){var A=(g[T+1]||p).getValue();S.setLayout(Ie({dataExtent:[A,A],borderWidth:0,upperHeight:0},w))})}var x=e.getData().tree.root;x.setLayout(mTe(s,v,h),!0),e.setLayoutInfo(s),zq(x,new Xt(-s.x,-s.y,a,i),g,p,0)}};function Vq(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(Fq),u=s.get(sTe)/2,c=Hq(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=r_(a-2*d,0),i=r_(i-d-h,0);var v=a*i,p=fTe(e,s,v,t,r,n);if(p.length){var g={x:d,y:h,width:a,height:i},m=Wx(a,i),y=1/0,_=[];_.area=0;for(var w=0,x=p.length;w<x;){var S=p[w];_.push(S),_.area+=S.getLayout().area;var T=pTe(_,m,t.squareRatio);T<=y?(w++,y=T):(_.area-=_.pop().getLayout().area,Wz(_,m,g,u,!1),m=Wx(g.width,g.height),_.length=_.area=0,y=1/0)}if(_.length&&Wz(_,m,g,u,!0),!r){var A=s.get("childrenVisibleMin");A!=null&&v<A&&(r=!0)}for(var w=0,x=p.length;w<x;w++)Vq(p[w],t,r,n+1)}}}function fTe(e,t,r,n,a,i){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=Yr(o,function(h){return!h.isRemoved()}),hTe(o,s);var u=vTe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=dTe(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*r;o[c].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function dTe(e,t,r,n,a){if(!n)return r;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*t<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function hTe(e,t){return t&&e.sort(function(r,n){var a=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),e}function vTe(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],Yk(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function pTe(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?r_(u*n/l,l/(u*a)):1/0}function Wz(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],c=t?e.area/t:0;(a||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],v={},p=c?h.getLayout().area/c:0,g=v[l[o]]=r_(c-2*n,0),m=r[s[i]]+r[l[i]]-u,y=f===d-1||m<p?m:p,_=v[l[i]]=r_(y-2*n,0);v[s[o]]=r[s[o]]+Wx(n,g/2),v[s[i]]=u+Wx(n,_/2),u+=y,h.setLayout(v,!0)}r[s[o]]+=c,r[l[o]]-=c}function gTe(e,t,r,n,a){var i=(t||{}).node,o=[n,a];if(!i||i===r)return o;for(var s,l=n*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var v=i.getValue();if(v===0)return o;u*=c/v;var p=s.getModel(),g=p.get(Fq),m=Math.max(g,Hq(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>TP&&(u=TP),i=s}u<l&&(u=l);var y=Math.pow(u/l,.5);return[n*y,a*y]}function mTe(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var a=r.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function zq(e,t,r,n,a){var i=e.getLayout(),o=r[a],s=o&&o===e;if(!(o&&!s||a===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Xt(t.x-i.x,t.y-i.y,t.width,t.height);Yk(e.viewChildren||[],function(u){zq(u,l,r,n,a+1)})}}function Hq(e){return e.get(lTe)?e.get(uTe):0}function yTe(e){e.registerSeriesModel(NAe),e.registerChartView(ZAe),e.registerVisual(rTe),e.registerLayout(cTe),RAe(e)}function _Te(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Mr(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function bTe(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.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&&n.setItemVisual(o,c[f],d)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){rt(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Ie(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function $b(e){return e instanceof Array||(e=[e,e]),e}function wTe(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),a=$b(t.get("edgeSymbol")),i=$b(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=$b(s.getShallow("symbol",!0)),c=$b(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(Ie(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 gL="-->",oT=function(e){return e.get("autoCurveness")||null},Gq=function(e,t){var r=oT(e),n=20,a=[];if(Mr(r))n=r;else if(Ne(r)){e.__curvenessList=r;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},n_=function(e,t,r){var n=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[r.uid,n,a].join(gL)},Uq=function(e){var t=e.split(gL);return[t[0],t[2],t[1]].join(gL)},STe=function(e,t){var r=n_(e.node1,e.node2,t);return t.__edgeMap[r]},xTe=function(e,t){var r=mL(n_(e.node1,e.node2,t),t),n=mL(n_(e.node2,e.node1,t),t);return r+n},mL=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function ATe(e){oT(e)&&(e.__curvenessList=[],e.__edgeMap={},Gq(e))}function TTe(e,t,r,n){if(oT(r)){var a=n_(e,t,r),i=r.__edgeMap,o=i[Uq(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(n)}}function jk(e,t,r,n){var a=oT(t),i=Ne(a);if(!a)return null;var o=STe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=xTe(e,t);Gq(t,u),e.lineStyle=e.lineStyle||{};var c=n_(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=Uq(c),v=mL(h,t),p=f[s+v+d];return n?i?a&&a[0]===0?(v+d)%2?p:-p:((v%2?0:1)+d)%2?p:-p:(v+d)%2?p:-p:f[s+v+d]}function $q(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),Kk(r,e)}}function Kk(e,t){e.eachEdge(function(r,n){var a=zs(r.getModel().get(["lineStyle","curveness"]),-jk(r,t,n,!0),0),i=Il(r.node1.getLayout()),o=Il(r.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]),r.setLayout(s)})}function CTe(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];W(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}Kk(i.graph,r)}else(!n||n==="none")&&$q(r)})}function Ay(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*r+1;return i/n}function Ty(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Yz=Math.PI,FE=[];function Xk(e,t,r,n){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var d=a.pointToData(n),h=d[0],v=d[1],p=[h-l,v-u];tv(p,p),zy(p,p,c),r.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);Wq(r,g,l,u)}ETe[t](e,s,o,c,l,u,f),s.eachEdge(function(m,y){var _=zs(m.getModel().get(["lineStyle","curveness"]),jk(m,e,y),0),w=Il(m.node1.getLayout()),x=Il(m.node2.getLayout()),S,T=(w[0]+x[0])/2,A=(w[1]+x[1])/2;+_&&(_*=3,S=[l*_+T*(1-_),u*_+A*(1-_)]),m.setLayout([w,x,S])})}}}var ETe={value:function(e,t,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=d})},symbolSize:function(e,t,r,n,a,i,o){var s=0;FE.length=o;var l=Ay(e);t.eachNode(function(f){var d=Ty(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/n);isNaN(h)&&(h=Yz/2),FE[f.dataIndex]=h,s+=h*2});var u=(2*Yz-s)/o/2,c=0;t.eachNode(function(f){var d=u+FE[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=d})}};function Wq(e,t,r,n){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");Ie(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function MTe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&Xk(t,"symbolSize")})}var Iv=ox;function DTe(e,t,r){for(var n=e,a=t,i=r.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Rf(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Il(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,h=d,v,p;return{warmUp:function(){h=d*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(n,a);for(var m=[],y=n.length,_=0;_<a.length;_++){var w=a[_];if(!w.ignoreForceLayout){var x=w.n1,S=w.n2;$c(m,S.p,x.p);var T=D0(m)-w.d,A=S.w/(x.w+S.w);isNaN(A)&&(A=0),tv(m,m),!x.fixed&&Iv(x.p,x.p,m,A*T*h),!S.fixed&&Iv(S.p,S.p,m,-(1-A)*T*h)}}for(var _=0;_<y;_++){var C=n[_];C.fixed||($c(m,l,C.p),Iv(C.p,C.p,m,u*h))}for(var _=0;_<y;_++)for(var x=n[_],M=_+1;M<y;M++){var S=n[M];$c(m,S.p,x.p);var T=D0(m);T===0&&(PY(m,Math.random()-.5,Math.random()-.5),T=1);var E=(x.rep+S.rep)/T/T;!x.fixed&&Iv(x.pp,x.pp,m,E),!S.fixed&&Iv(S.pp,S.pp,m,-E)}for(var D=[],_=0;_<y;_++){var C=n[_];C.fixed||($c(D,C.p,C.pp),Iv(C.p,C.p,D,h),ii(C.pp,C.p))}h=h*.992;var P=h<.01;p&&p(n,a,P),g&&g(P)}}}function PTe(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var w=i.getId(_);i.setItemLayout(_,n[w]||[NaN,NaN])}):!l||l==="none"?$q(t):l==="circular"&&Xk(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=Ne(f)?f:[f,f],v=Ne(d)?d:[d,d];v=[v[1],v[0]];var p=i.mapArray("value",function(_,w){var x=i.getItemLayout(w),S=Vr(_,u,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:i.getItemModel(w).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,w){var x=a.getEdgeByIndex(w),S=Vr(_,c,v);isNaN(S)&&(S=(v[0]+v[1])/2);var T=x.getModel(),A=zs(x.getModel().get(["lineStyle","curveness"]),-jk(x,t,w,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:S,curveness:A,ignoreForceLayout:T.get("ignoreForceLayout")}}),m=r.getBoundingRect(),y=DTe(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(_,w){for(var x=0,S=_.length;x<S;x++)_[x].fixed&&ii(_[x].p,a.getNodeByIndex(x).getLayout())}),y.afterStep(function(_,w,x){for(var S=0,T=_.length;S<T;S++)_[S].fixed||a.getNodeByIndex(S).setLayout(_[S].p),n[i.getId(S)]=_[S].p;for(var S=0,T=w.length;S<T;S++){var A=w[S],C=a.getEdgeByIndex(S),M=A.n1.p,E=A.n2.p,D=C.getLayout();D=D?D.slice():[],D[0]=D[0]||[],D[1]=D[1]||[],ii(D[0],M),ii(D[1],E),+A.curveness&&(D[2]=[(M[0]+E[0])/2-(M[1]-E[1])*A.curveness,(M[1]+E[1])/2-(E[0]-M[0])*A.curveness]),C.setLayout(D)}}),t.forceLayout=y,t.preservedPoints=n,y.step()}else t.forceLayout=null})}function LTe(e,t,r){var n=Ie(e.getBoxLayoutParams(),{aspect:r});return kn(n,{width:t.getWidth(),height:t.getHeight()})}function ITe(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(g){var m=i.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];MA(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=LTe(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,v=c.height,p=n.coordinateSystem=new w1;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],f,d),p.setViewRect(c.x,c.y,h,v),p.setCenter(n.get("center"),t),p.setZoom(n.get("zoom")),r.push(p)}}),r}var jz=Ta.prototype,VE=o1.prototype,Yq=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Yq);function zE(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var RTe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yq},t.prototype.buildPath=function(r,n){zE(n)?jz.buildPath.call(this,r,n):VE.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return zE(this.shape)?jz.pointAt.call(this,r):VE.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=zE(n)?[n.x2-n.x1,n.y2-n.y1]:VE.tangentAt.call(this,r);return tv(a,a)},t}(cr);const OTe=RTe;var HE=["fromSymbol","toSymbol"];function Kz(e){return"_"+e+"Type"}function Xz(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Jg(a),u=av(o||0,l);return n+l+u+(i||"")+(s||"")}function Zz(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=Jg(a),u=av(o||0,l),c=jn(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function kTe(e){var t=new OTe({name:"line",subPixelOptimize:!0});return yL(t.shape,e),t}function yL(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var NTe=function(e){De(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=kTe(o);s.shape.percent=0,_n(s,{shape:{percent:1}},i,n),this.add(s),W(HE,function(l){var u=Zz(l,r,n);this.add(u),this[Kz(l)]=Xz(l,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};yL(l.shape,s),Lr(o,l,i,n),W(HE,function(u){var c=Xz(u,r,n),f=Kz(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Zz(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.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||r.hasItemOption){var v=r.getItemModel(n),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),d=p.get("focus"),h=p.get("blurScope"),c=Pa(v)}var g=r.getItemVisual(n,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,W(HE,function(S){var T=this.childOfName(S);if(T){T.setColor(m),T.style.opacity=g.opacity;for(var A=0;A<Li.length;A++){var C=Li[A],M=o.getState(C);if(M){var E=M.style||{},D=T.ensureState(C),P=D.style||(D.style={});E.stroke!=null&&(P[T.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(P.opacity=E.opacity)}}T.markRedraw()}},this);var y=i.getRawValue(n);ri(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,T){return i.getFormattedLabel(S,T,r.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(y==null?r.getName(n):isFinite(y)?yn(y):y)+""});var _=this.getTextContent();if(_){var w=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=w.get("position")||"middle";var x=w.get("distance");Ne(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Gn(this,d,h,f)},t.prototype.highlight=function(){Hu(this)},t.prototype.downplay=function(){Gu(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");yL(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=$c([],f,c);tv(d,d);function h(M,E){var D=M.__specifiedRotation;if(D==null){var P=l.tangentAt(E);M.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else M.attr("rotation",D)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var v=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,y=g[1]*o,_=u/2,w=l.tangentAt(_),x=[w[1],-w[0]],S=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var T=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var A=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(A=Math.PI+A),i.rotation=A}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=d[0]*m+f[0],i.y=d[1]*y+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*y+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",p=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*T+c[0],i.y=c[1]+C,v=w[0]<0?"right":"left",i.originX=-m*T,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+C,v="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*T+f[0],i.y=f[1]+C,v=w[0]>=0?"right":"left",i.originX=m*T,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},t}(Ot);const Zk=NTe;var BTe=function(){function e(t){this.group=new Ot,this._LineCtor=t||Zk}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=qz(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qz(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!FTe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(GE(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Nf(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(GE(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!GE(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function FTe(e){return e.animators&&e.animators.length>0}function qz(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Pa(t)}}function Qz(e){return isNaN(e[0])||isNaN(e[1])}function GE(e){return e&&!Qz(e[0])&&!Qz(e[1])}const qk=BTe;var UE=[],$E=[],WE=[],Rv=Fa,YE=of,Jz=Math.abs;function e6(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){UE[0]=Rv(n[0],a[0],i[0],c),UE[1]=Rv(n[1],a[1],i[1],c);var f=Jz(YE(UE,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;$E[0]=Rv(n[0],a[0],i[0],s),$E[1]=Rv(n[1],a[1],i[1],s),WE[0]=Rv(n[0],a[0],i[0],h),WE[1]=Rv(n[1],a[1],i[1],h);var f=YE($E,t)-l;if(Jz(f)<.01)break;var v=YE(WE,t)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function jE(e,t){var r=[],n=P0,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Il(u[0]),Il(u[1])],u[2]&&u.__original.push(Il(u[2])));var d=u.__original;if(u[2]!=null){if(ii(a[0],d[0]),ii(a[1],d[2]),ii(a[2],d[1]),c&&c!=="none"){var h=Ty(s.node1),v=e6(a,d[0],h*t);n(a[0][0],a[1][0],a[2][0],v,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],v,r),a[0][1]=r[3],a[1][1]=r[4]}if(f&&f!=="none"){var h=Ty(s.node2),v=e6(a,d[1],h*t);n(a[0][0],a[1][0],a[2][0],v,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],v,r),a[1][1]=r[1],a[2][1]=r[2]}ii(u[0],a[0]),ii(u[1],a[2]),ii(u[2],a[1])}else{if(ii(i[0],d[0]),ii(i[1],d[1]),$c(o,i[1],i[0]),tv(o,o),c&&c!=="none"){var h=Ty(s.node1);ox(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=Ty(s.node2);ox(i[1],i[1],o,-h*t)}ii(u[0],i[0]),ii(u[1],i[1])}})}function t6(e){return e.type==="view"}var VTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var a=new g1,i=new qk,o=this.group;this._controller=new b1(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(t6(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Lr(u,c,r)}jE(r.getGraph(),Ay(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,a),clearTimeout(this._layoutTimeout);var h=r.forceLayout,v=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var p=r.get("layout");f.graph.eachNode(function(_){var w=_.dataIndex,x=_.getGraphicEl(),S=_.getModel();if(x){x.off("drag").off("dragend");var T=S.get("draggable");T&&x.on("drag",function(C){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[x.x,x.y]);break;case"circular":f.setItemLayout(w,[x.x,x.y]),_.setLayout({fixed:!0},!0),Xk(r,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(r);break;case"none":default:f.setItemLayout(w,[x.x,x.y]),Kk(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),x.setDraggable(T,!!S.get("cursor"));var A=S.get(["emphasis","focus"]);A==="adjacency"&&(Ht(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var w=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);w&&x==="adjacency"&&(Ht(w).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(_){Wq(_,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var a=this;(function i(){r.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(r,n,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)&&!nT(u,a,r)}),!t6(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Bk(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Fk(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),jE(r.getGraph(),Ay(r)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=Ay(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){jE(r.getGraph(),Ay(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(xr);const zTe=VTe;function Ov(e){return"_EC_"+e}var HTe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Ov(t)]){var a=new Bd(t,r);return a.hostGraph=this,this.nodes.push(a),n[Ov(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Ov(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(Mr(t)&&(t=this.nodes[t]),Mr(r)&&(r=this.nodes[r]),t instanceof Bd||(t=a[Ov(t)]),r instanceof Bd||(r=a[Ov(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new jq(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Bd&&(t=t.id),r instanceof Bd&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof Bd||(r=this._nodesMap[Ov(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(a,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(s){var l=a[r.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=r.count();i<o;i++)a[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)t.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),Bd=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=_t(),r=_t(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),jq=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=_t(),r=_t();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function Kq(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Kn(Bd,Kq("hostGraph","data"));Kn(jq,Kq("hostGraph","edgeData"));const Xq=HTe;function Zq(e,t,r,n,a){for(var i=new Xq(n),o=0;o<e.length;o++)i.addNode(Aa(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(Aa(ha(c.id,null),f+" > "+d)),u++)}var h=r.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=eu(e,r);else{var p=Zg.get(h),g=p?p.dimensions||[]:[];tr(g,"value")<0&&g.concat(["value"]);var m=tm(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;v=new Dn(m,r),v.initData(e)}var y=new Dn(["value"],r);return y.initData(l,s),a&&a(v,y),Hk({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var GTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new _1(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Bh(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){ATe(this);var s=Zq(i,a,this,!0,l);return W(s.edges,function(u){TTe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var f=$r.prototype.getModel;function d(v,p){var g=f.call(this,v,p);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),La("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=fX({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Fe(this.option.categories||[],function(a){return a.value!=null?a:Ie({value:0},a)}),n=new Dn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ir);const UTe=GTe;var $Te={type:"graphRoam",event:"graphRoam",update:"none"};function WTe(e){e.registerChartView(zTe),e.registerSeriesModel(UTe),e.registerProcessor(_Te),e.registerVisual(bTe),e.registerVisual(wTe),e.registerLayout(CTe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,MTe),e.registerLayout(PTe),e.registerCoordinateSystem("graphView",{dimensions:w1.dimensions,create:ITe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Wn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Wn),e.registerAction($Te,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=zk(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var YTe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),jTe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new YTe},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,c)},t}(cr);const KTe=jTe;function XTe(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=Je(r[0],t.getWidth()),s=Je(r[1],t.getHeight()),l=Je(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Wb(e,t){var r=e==null?"":e+"";return t&&(rt(t)?r=t.replace("{value}",r):Tt(t)&&(r=t(e))),r}var ZTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=XTe(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?zx:Ii,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];Tj(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,w=[],x=0;v&&x<i.length;x++){var S=Math.min(Math.max(i[x][0],0),1);c=u+y*S;var T=new h({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});T.setStyle({fill:i[x][1]}),T.setStyle(p.getLineStyle(["color","width"])),w.push(T),_=c}w.reverse(),W(w,function(C){return s.add(C)});var A=function(C){if(C<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=C&&(M===0?0:i[M-1][0])<C)return i[M][1];return i[M-1][1]};this._renderTicks(r,n,a,A,o,u,c,l,g),this._renderTitleAndDetail(r,n,a,A,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,A,o,u,c,l,g)},t.prototype._renderTicks=function(r,n,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,v=o.r,p=+r.get("min"),g=+r.get("max"),m=r.getModel("splitLine"),y=r.getModel("axisTick"),_=r.getModel("axisLabel"),w=r.get("splitNumber"),x=y.get("splitNumber"),S=Je(m.get("length"),v),T=Je(y.get("length"),v),A=s,C=(l-s)/w,M=C/x,E=m.getModel("lineStyle").getLineStyle(),D=y.getModel("lineStyle").getLineStyle(),P=m.get("distance"),L,I,O=0;O<=w;O++){if(L=Math.cos(A),I=Math.sin(A),m.get("show")){var R=P?P+c:c,B=new Ta({shape:{x1:L*(v-R)+d,y1:I*(v-R)+h,x2:L*(v-S-R)+d,y2:I*(v-S-R)+h},style:E,silent:!0});E.stroke==="auto"&&B.setStyle({stroke:i(O/w)}),f.add(B)}if(_.get("show")){var R=_.get("distance")+P,k=Wb(yn(O/w*(g-p)+p),_.get("formatter")),z=i(O/w),$=L*(v-S-R)+d,j=I*(v-S-R)+h,X=_.get("rotate"),Q=0;X==="radial"?(Q=-A+2*Math.PI,Q>Math.PI/2&&(Q+=Math.PI)):X==="tangential"?Q=-A-Math.PI/2:Mr(X)&&(Q=X*Math.PI/180),Q===0?f.add(new pr({style:Xr(_,{text:k,x:$,y:j,verticalAlign:I<-.8?"top":I>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new pr({style:Xr(_,{text:k,x:$,y:j,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:$,originY:j,rotation:Q}))}if(y.get("show")&&O!==w){var R=y.get("distance");R=R?R+c:c;for(var se=0;se<=x;se++){L=Math.cos(A),I=Math.sin(A);var ee=new Ta({shape:{x1:L*(v-R)+d,y1:I*(v-R)+h,x2:L*(v-T-R)+d,y2:I*(v-T-R)+h},silent:!0,style:D});D.stroke==="auto"&&ee.setStyle({stroke:i((O+se/x)/w)}),f.add(ee),A+=M}A-=M}else A+=C}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],p=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),_=y.mapDimension("value"),w=+r.get("min"),x=+r.get("max"),S=[w,x],T=[s,l];function A(M,E){var D=y.getItemModel(M),P=D.getModel("pointer"),L=Je(P.get("width"),o.r),I=Je(P.get("length"),o.r),O=r.get(["pointer","icon"]),R=P.get("offsetCenter"),B=Je(R[0],o.r),k=Je(R[1],o.r),z=P.get("keepAspect"),$;return O?$=jn(O,B-L/2,k-I,L,I,null,z):$=new KTe({shape:{angle:-Math.PI/2,width:L,r:I,x:B,y:k}}),$.rotation=-(E+Math.PI/2),$.x=o.cx,$.y=o.cy,$}function C(M,E){var D=g.get("roundCap"),P=D?zx:Ii,L=g.get("overlap"),I=L?g.get("width"):c/y.count(),O=L?o.r-I:o.r-(M+1)*I,R=L?o.r:o.r-M*I,B=new P({shape:{startAngle:s,endAngle:E,cx:o.cx,cy:o.cy,clockwise:u,r0:O,r:R}});return L&&(B.z2=x-y.get(_,M)%x),B}(m||p)&&(y.diff(d).add(function(M){var E=y.get(_,M);if(p){var D=A(M,s);_n(D,{rotation:-((isNaN(+E)?T[0]:Vr(E,S,T,!0))+Math.PI/2)},r),f.add(D),y.setItemGraphicEl(M,D)}if(m){var P=C(M,s),L=g.get("clip");_n(P,{shape:{endAngle:Vr(E,S,T,L)}},r),f.add(P),LP(r.seriesIndex,y.dataType,M,P),v[M]=P}}).update(function(M,E){var D=y.get(_,M);if(p){var P=d.getItemGraphicEl(E),L=P?P.rotation:s,I=A(M,L);I.rotation=L,Lr(I,{rotation:-((isNaN(+D)?T[0]:Vr(D,S,T,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(M,I)}if(m){var O=h[E],R=O?O.shape.endAngle:s,B=C(M,R),k=g.get("clip");Lr(B,{shape:{endAngle:Vr(D,S,T,k)}},r),f.add(B),LP(r.seriesIndex,y.dataType,M,B),v[M]=B}}).execute(),y.each(function(M){var E=y.getItemModel(M),D=E.getModel("emphasis"),P=D.get("focus"),L=D.get("blurScope"),I=D.get("disabled");if(p){var O=y.getItemGraphicEl(M),R=y.getItemVisual(M,"style"),B=R.fill;if(O instanceof Oa){var k=O.style;O.useStyle(Ie({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},R))}else O.useStyle(R),O.type!=="pointer"&&O.setColor(B);O.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",i(Vr(y.get(_,M),S,[0,1],!0))),O.z2EmphasisLift=0,ti(O,E),Gn(O,P,L,I)}if(m){var z=v[M];z.useStyle(y.getItemVisual(M,"style")),z.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,ti(z,E),Gn(z,P,L,I)}}),this._progressEls=v)},t.prototype._renderAnchor=function(r,n){var a=r.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=jn(s,n.cx-o/2+Je(l[0],n.r),n.cy-o/2+Je(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Ot,h=[],v=[],p=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new pr({silent:!0}),v[m]=new pr({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],v[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),w=new Ot,x=i(Vr(_,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),A=o.cx+Je(T[0],o.r),C=o.cy+Je(T[1],o.r),M=h[m];M.attr({z2:g?0:2,style:Xr(S,{x:A,y:C,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:x})}),w.add(M)}var E=y.getModel("detail");if(E.get("show")){var D=E.get("offsetCenter"),P=o.cx+Je(D[0],o.r),L=o.cy+Je(D[1],o.r),I=Je(E.get("width"),o.r),O=Je(E.get("height"),o.r),R=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:x,M=v[m],B=E.get("formatter");M.attr({z2:g?0:2,style:Xr(E,{x:P,y:L,text:Wb(_,B),width:isNaN(I)?null:I,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:R})}),gK(M,{normal:E},_,function(z){return Wb(z,B)}),p&&mK(M,m,l,r,{getFormattedLabel:function(z,$,j,X,Q,se){return Wb(se?se.interpolatedValue:_,B)}}),w.add(M)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(xr);const qTe=ZTe;var QTe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return nm(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ir);const JTe=QTe;function eCe(e){e.registerChartView(qTe),e.registerSeriesModel(JTe)}var tCe=["itemStyle","opacity"],rCe=function(e){De(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new Fi,s=new pr;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(tCe);c=c??1,a||Js(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,_n(i,{style:{opacity:c}},o,n)):Lr(i,{style:{opacity:c},shape:{points:l.points}},o,n),ti(i,s),this._updateLabel(r,n),Gn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;ri(o,Pa(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{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 qt(h[0][0],h[0][1]):null},Lr(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Ek(a,Mk(l),{stroke:d})},t}(Ri),nCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new rCe(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);z0(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(xr);const aCe=nCe;var iCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _1(ot(this.getData,this),ot(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return nm(this,{coordDimensions:["value"],encodeDefaulter:zt(qO,this)})},t.prototype._defaultLabelLine=function(r){Bh(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ir);const oCe=iCe;function sCe(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lCe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return Tt(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function uCe(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var a=e.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,v;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,h],[d,h]];else{var p=void 0,g=void 0,m=void 0,y=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-_,d=m-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=p+_,d=m+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=g-_,h=y-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=g+_,h=y+5,f="center"):o==="rightTop"?(p=r==="horizontal"?u[3][0]:u[1][0],g=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(y=g-_,h=y-5,f="center"):(m=p+_,d=m+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],r==="horizontal"?(y=g+_,h=y+5,f="center"):(m=p+_,d=m+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(y=g-_,h=y-5,f="center"):(m=p-_,d=m-5,f="right")):o==="leftBottom"?(p=r==="horizontal"?u[1][0]:u[3][0],g=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(y=g+_,h=y+5,f="center"):(m=p-_,d=m-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,r==="horizontal"?(y=g+_,h=y+5,f="center"):(m=p+_,d=m+5,f="left")),r==="horizontal"?(m=p,d=m):(y=g,h=y),v=[[p,g],[m,y]]}l.label={linePoints:v,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function cCe(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=sCe(r,t),s=r.get("orient"),l=o.width,u=o.height,c=lCe(n,i),f=o.x,d=o.y,h=s==="horizontal"?[Je(r.get("minSize"),u),Je(r.get("maxSize"),u)]:[Je(r.get("minSize"),l),Je(r.get("maxSize"),l)],v=n.getDataExtent(a),p=r.get("min"),g=r.get("max");p==null&&(p=Math.min(v[0],0)),g==null&&(g=v[1]);var m=r.get("funnelAlign"),y=r.get("gap"),_=s==="horizontal"?l:u,w=(_-y*(n.count()-1))/n.count(),x=function(L,I){if(s==="horizontal"){var O=n.get(a,L)||0,R=Vr(O,[p,g],h,!0),B=void 0;switch(m){case"top":B=d;break;case"center":B=d+(u-R)/2;break;case"bottom":B=d+(u-R);break}return[[I,B],[I,B+R]]}var k=n.get(a,L)||0,z=Vr(k,[p,g],h,!0),$;switch(m){case"left":$=f;break;case"center":$=f+(l-z)/2;break;case"right":$=f+l-z;break}return[[$,I],[$+z,I]]};i==="ascending"&&(w=-w,y=-y,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var S=0;S<c.length;S++){var T=c[S],A=c[S+1],C=n.getItemModel(T);if(s==="horizontal"){var M=C.get(["itemStyle","width"]);M==null?M=w:(M=Je(M,l),i==="ascending"&&(M=-M));var E=x(T,f),D=x(A,f+M);f+=M+y,n.setItemLayout(T,{points:E.concat(D.slice().reverse())})}else{var P=C.get(["itemStyle","height"]);P==null?P=w:(P=Je(P,u),i==="ascending"&&(P=-P));var E=x(T,d),D=x(A,d+P);d+=P+y,n.setItemLayout(T,{points:E.concat(D.slice().reverse())})}}uCe(n)})}function fCe(e){e.registerChartView(aCe),e.registerSeriesModel(oCe),e.registerLayout(cCe),e.registerProcessor(y1("funnel"))}var dCe=.3,hCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new Ot,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=n6(r);s.diff(l).add(d).update(h).remove(v).execute();function d(g){var m=r6(s,o,g,c,u);KE(m,s,g,f)}function h(g,m){var y=l.getItemGraphicEl(m),_=qq(s,g,c,u);s.setItemGraphicEl(g,y),Lr(y,{shape:{points:_}},r,g),Js(y),KE(y,s,g,f)}function v(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=vCe(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=n6(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=r6(i,this._dataGroup,c,s,o);f.incremental=!0,KE(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(xr);function vCe(e,t,r){var n=e.model,a=e.getRect(),i=new br({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),_n(i,{shape:{width:a.width,height:a.height}},t,r),i}function qq(e,t,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=e.get(e.mapDimension(o),t);pCe(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function r6(e,t,r,n,a){var i=qq(e,r,n,a),o=new Fi({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function n6(e){var t=e.get("smooth",!0);return t===!0&&(t=dCe),t=zl(t),Zp(t)&&(t=0),{smooth:t}}function KE(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var a=t.getItemModel(r),i=a.getModel("emphasis");ti(e,a,"lineStyle"),Gn(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function pCe(e,t){return t==="category"?e==null:e==null||isNaN(e)}const gCe=hCe;var mCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{useEncodeDefaulter:ot(yCe,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){r===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Ir);function yCe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return W(t.dimensions,function(n){var a=_Ce(n);r[n]=a}),r}}function _Ce(e){return+e.replace("dim","")}const bCe=mCe;var wCe=["lineStyle","opacity"],SCe={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){r.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(wCe,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const xCe=SCe;function ACe(e){TCe(e),CCe(e)}function TCe(e){if(!e.parallel){var t=!1;W(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function CCe(e){var t=tn(e.parallelAxis);W(t,function(r){if(Mt(r)){var n=r.parallelIndex||0,a=tn(e.parallel)[n];a&&a.parallelAxisDefault&&st(r,a.parallelAxisDefault,!1)}})}var ECe=5,MCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},W(DCe,function(i,o){a.getZr().on(o,this._handlers[o]=ot(i,this))},this)),Qg(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Y0(this,"_throttledDispatchExpand"),W(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(Ie({type:"parallelAxisExpand"},r))},t.type="parallel",t}(rn),DCe={mousedown:function(e){XE(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(XE(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>ECe)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!XE(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function XE(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const PCe=MCe;var LCe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&st(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(r){W(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=Yr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);W(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(sr);const ICe=LCe;var RCe=function(e){De(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(gi);const OCe=RCe;function sv(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=kv(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=kv(s,[0,o]),a=i=kv(s,[a,i]),n=0}t[0]=kv(t[0],r),t[1]=kv(t[1],r);var l=ZE(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=kv(t[n],c);var f;return f=ZE(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=ZE(t,n),i!=null&&f.span>i&&(t[1-n]=t[n]+f.sign*i),t}function ZE(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function kv(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var qE=W,Qq=Math.min,Jq=Math.max,a6=Math.floor,kCe=Math.ceil,i6=yn,NCe=Math.PI,BCe=function(){function e(t,r,n){this.type="parallel",this._axesMap=_t(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;qE(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new OCe(o,h1(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var a=n.getData();qE(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Gh(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=kn(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,c=Yb(t.get("axisExpandWidth"),l),f=Yb(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),v;if(h)v=Yb(h[1]-h[0],l),h[1]=h[0]+v;else{v=Yb(c*(f-1),l);var p=t.get("axisExpandCenter")||a6(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var m=[a6(i6(h[0]/c,1))+1,kCe(i6(h[1]/c,1))-1],y=g/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),qE(n,function(o,s){var l=(a.axisExpandable?VCe:FCe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:NCe/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=lo();Of(h,h,d),Zs(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];W(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,v=o.length;h<v;h++){var p=l[h].getActiveState(d[h]);if(p==="inactive"){f="inactive";break}}}r(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)r.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return Us([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return Pt(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,a=r.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.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*=r.axisExpandWidth/c,l?sv(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[Jq(0,v-h/2)],a[1]=Qq(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function Yb(e,t){return Qq(Jq(e,t[0]),t[1])}function FCe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function VCe(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e<o[0]?(s=e*i,c=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-e)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const zCe=BCe;function HCe(e,t){var r=[];return e.eachComponent("parallel",function(n,a){var i=new zCe(n,e,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",ia).models[0];n.coordinateSystem=a.coordinateSystem}}),r}var GCe={create:HCe};const UCe=GCe;var eQ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return Vh([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=Pt(r);if(n)for(var a=n.length-1;a>=0;a--)wo(n[a])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=r&&r<=n[i][1])return"active";return"inactive"},t}(sr);Kn(eQ,rm);const o6=eQ;var Uh=!0,a_=Math.min,ng=Math.max,$Ce=Math.pow,WCe=1e4,YCe=6,jCe=6,s6="globalPan",KCe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},XCe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},l6={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},ZCe=0,qCe=function(e){De(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Ot,n._uid="brushController_"+ZCe++,W(aEe,function(a,i){this._handlers[i]=ot(a,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||u2e(n,s6,this._uid),W(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=st(Pt(l6),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;c2e(r,s6,this._uid),W(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};W(r,function(a){n[a.panelId]=Pt(a)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=Fe(r,function(d){return st(Pt(l6),d,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Uu(a,r,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:n+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var v=r[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var p=i[d]=h!=null?(a[h].__brushOption=v,a[h]):rQ(o,tQ(o,v));Qk(o,p)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),_L(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(gs);function tQ(e,t){var r=sT[t.brushType].createCover(e,t);return r.__brushOption=t,aQ(r,t),e.group.add(r),r}function rQ(e,t){var r=Jk(t);return r.endCreating&&(r.endCreating(e,t),aQ(t,t.__brushOption)),t}function nQ(e,t){var r=t.__brushOption;Jk(t).updateCoverShape(e,t,r.range,r)}function aQ(e,t){var r=t.z;r==null&&(r=WCe),e.traverse(function(n){n.z=r,n.z2=r})}function Qk(e,t){Jk(t).updateCommon(e,t),nQ(e,t)}function Jk(e){return sT[e.__brushOption.brushType]}function eN(e,t,r){var n=e._panels;if(!n)return Uh;var a,i=e._transform;return W(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function iQ(e,t){var r=e._panels;if(!r)return Uh;var n=t.__brushOption.panelId;return n!=null?r[n]:Uh}function _L(e){var t=e._covers,r=t.length;return W(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function $h(e,t){var r=Fe(e._covers,function(n){var a=n.__brushOption,i=Pt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function QCe(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=$Ce(a*a+i*i,.5);return o>YCe}function oQ(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function sQ(e,t,r,n){var a=new Ot;return a.add(new br({name:"main",style:tN(r),silent:!0,draggable:!0,cursor:"move",drift:zt(u6,e,t,a,["n","s","w","e"]),ondragend:zt($h,t,{isEnd:!0})})),W(n,function(i){a.add(new br({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:zt(u6,e,t,a,i),ondragend:zt($h,t,{isEnd:!0})}))}),a}function lQ(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=ng(a,jCe),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,c=r[0][1],f=r[1][1],d=c-i+a/2,h=f-i+a/2,v=c-o,p=f-s,g=v+a,m=p+a;su(e,t,"main",o,s,v,p),n.transformable&&(su(e,t,"w",l,u,i,m),su(e,t,"e",d,u,i,m),su(e,t,"n",l,u,g,i),su(e,t,"s",l,h,g,i),su(e,t,"nw",l,u,i,i),su(e,t,"ne",d,u,i,i),su(e,t,"sw",l,h,i,i),su(e,t,"se",d,h,i,i))}function bL(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(tN(r)),a.attr({silent:!n,cursor:n?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?wL(e,i[0]):eEe(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?XCe[s]+"-resize":null})})}function su(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(rEe(rN(e,t,[[n,a],[n+i,a+o]])))}function tN(e){return yt({strokeNoScale:!0},e.brushStyle)}function uQ(e,t,r,n){var a=[a_(e,r),a_(t,n)],i=[ng(e,r),ng(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function JCe(e){return uf(e.group)}function wL(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=kA(r[t],JCe(e));return n[a]}function eEe(e,t){var r=[wL(e,t[0]),wL(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function u6(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=cQ(t,a,i);W(n,function(u){var c=KCe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(uQ(s[0][0],s[1][0],s[0][1],s[1][1])),Qk(t,r),$h(t,{isEnd:!1})}function tEe(e,t,r,n){var a=t.__brushOption.range,i=cQ(e,r,n);W(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Qk(e,t),$h(e,{isEnd:!1})}function cQ(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function rN(e,t,r){var n=iQ(e,t);return n&&n!==Uh?n.clipPath(r,e._transform):Pt(r)}function rEe(e){var t=a_(e[0][0],e[1][0]),r=a_(e[0][1],e[1][1]),n=ng(e[0][0],e[1][0]),a=ng(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function nEe(e,t,r){if(!(!e._brushType||iEe(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=eN(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Uh||s.panelId===i.panelId)&&sT[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function SL(e){var t=e.event;t.preventDefault&&t.preventDefault()}function xL(e,t,r){return e.childOfName("main").contain(t,r)}function fQ(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),QCe(e)||a){if(i&&!a){o.brushMode==="single"&&_L(e);var l=Pt(o);l.brushType=c6(l.brushType,i),l.panelId=i===Uh?null:i.panelId,a=e._creatingCover=tQ(e,l),e._covers.push(a)}if(a){var u=sT[c6(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(rN(e,a,e._track)),n&&(rQ(e,a),u.updateCommon(e,a)),nQ(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&eN(e,t,r)&&_L(e)&&(s={isEnd:n,removeOnClick:!0});return s}function c6(e,t){return e==="auto"?t.defaultBrushType:e}var aEe={mousedown:function(e){if(this._dragging)f6(this,e);else if(!e.target||!e.target.draggable){SL(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=eN(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(nEe(this,e,n),this._dragging){SL(e);var a=fQ(this,e,n,!1);a&&$h(this,a)}},mouseup:function(e){f6(this,e)}};function f6(e,t){if(e._dragging){SL(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=fQ(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&$h(e,i)}}function iEe(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var sT={lineX:d6(0),lineY:d6(1),rect:{createCover:function(e,t){function r(n){return n}return sQ({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=oQ(e);return uQ(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){lQ(e,t,r,n)},updateCommon:bL,contain:xL},polygon:{createCover:function(e,t){var r=new Ot;return r.add(new Fi({name:"main",style:tN(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ri({name:"main",draggable:!0,drift:zt(tEe,e,t),ondragend:zt($h,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:rN(e,t,r)})},updateCommon:bL,contain:xL}};function d6(e){return{createCover:function(t,r){return sQ({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=oQ(t),n=a_(r[0][e],r[1][e]),a=ng(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=iQ(t,r);if(o!==Uh&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),lQ(t,r,l,a)},updateCommon:bL,contain:xL}}const nN=qCe;function dQ(e){return e=aN(e),function(t){return HO(t,e)}}function hQ(e,t){return e=aN(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function vQ(e,t,r){var n=aN(e);return function(a,i){return n.contain(i[0],i[1])&&!nT(a,t,r)}}function aN(e){return Xt.create(e)}var oEe=["axisLine","axisTickLabel","axisName"],sEe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new nN(n.getZr())).on("brush",ot(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!lEe(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ot,this.group.add(this._axisGroup),!!r.get("show")){var s=cEe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Ie({strokeContainThreshold:c},d),v=new Wu(r,h);W(oEe,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,r,s,c,a),l1(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Xt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:dQ(f),isTargetByCursor:vQ(f,s,i),getLinearBrushOtherExtent:hQ(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(uEe(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=Fe(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(rn);function lEe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function uEe(e){var t=e.axis;return Fe(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function cEe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const fEe=sEe;var dEe={type:"axisAreaSelect",event:"axisAreaSelected"};function hEe(e){e.registerAction(dEe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var vEe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function pQ(e){e.registerComponentView(PCe),e.registerComponentModel(ICe),e.registerCoordinateSystem("parallel",UCe),e.registerPreprocessor(ACe),e.registerComponentModel(o6),e.registerComponentView(fEe),rg(e,"parallel",o6,vEe),hEe(e)}function pEe(e){Dt(pQ),e.registerChartView(gCe),e.registerSeriesModel(bCe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,xCe)}var gEe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),mEe=function(e){De(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new gEe},t.prototype.buildPath=function(r,n){var a=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){Hu(this)},t.prototype.downplay=function(){Gu(this)},t}(cr),yEe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,a){var i=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var p=new mEe,g=Ht(p);g.dataIndex=v.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=v.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),w=v.node1.getLayout(),x=v.node1.getModel(),S=x.get("localX"),T=x.get("localY"),A=v.node2.getLayout(),C=v.node2.getModel(),M=C.get("localX"),E=C.get("localY"),D=v.getLayout(),P,L,I,O,R,B,k,z;p.shape.extent=Math.max(1,D.dy),p.shape.orient=h,h==="vertical"?(P=(S!=null?S*u:w.x)+D.sy,L=(T!=null?T*c:w.y)+w.dy,I=(M!=null?M*u:A.x)+D.ty,O=E!=null?E*c:A.y,R=P,B=L*(1-_)+O*_,k=I,z=L*_+O*(1-_)):(P=(S!=null?S*u:w.x)+w.dx,L=(T!=null?T*c:w.y)+D.sy,I=M!=null?M*u:A.x,O=(E!=null?E*c:A.y)+D.ty,R=P*(1-_)+I*_,B=L,k=P*_+I*(1-_),z=O),p.setShape({x1:P,y1:L,x2:I,y2:O,cpx1:R,cpy1:B,cpx2:k,cpy2:z}),p.useStyle(y.getItemStyle()),h6(p.style,h,v);var $=""+m.get("value"),j=Pa(m,"edgeLabel");ri(p,j,{labelFetcher:{getFormattedLabel:function(se,ee,K,Z,ne,re){return r.getFormattedLabel(se,ee,"edge",Z,zs(ne,j.normal&&j.normal.get("formatter"),$),re)}},labelDataIndex:v.dataIndex,defaultText:$}),p.setTextConfig({position:"inside"});var X=m.getModel("emphasis");ti(p,m,"lineStyle",function(se){var ee=se.getItemStyle();return h6(ee,h,v),ee}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var Q=X.get("focus");Gn(p,Q==="adjacency"?v.getAdjacentDataIndices():Q==="trajectory"?v.getTrajectoryDataIndices():Q,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),y=g.get("localY"),_=g.getModel("emphasis"),w=new br({shape:{x:m!=null?m*u:p.x,y:y!=null?y*c:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ri(w,Pa(g),{labelFetcher:{getFormattedLabel:function(S,T){return r.getFormattedLabel(S,T,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),w.disableLabelAnimation=!0,w.setStyle("fill",v.getVisual("color")),w.setStyle("decal",v.getVisual("style").decal),ti(w,g),s.add(w),f.setItemGraphicEl(v.dataIndex,w),Ht(w).dataType="node";var x=_.get("focus");Gn(w,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var g=f.getItemModel(p);g.get("draggable")&&(v.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(_Ee(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(xr);function h6(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),a=r.node2.getVisual("color");rt(n)&&rt(a)&&(e.fill=new kr(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function _Ee(e,t,r){var n=new br({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return _n(n,{shape:{width:e.width+20}},t,r),n}const bEe=yEe;var wEe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var a=r.edges||r.links,i=r.data||r.nodes,o=r.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 $r(o[l],this,n));if(i&&a){var u=Zq(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getData().getItemLayout(v);if(g){var m=g.depth,y=p.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(v),m=g.node1.getLayout();if(m){var y=m.depth,_=p.levelModels[y];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return La("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,a).data.name;return La("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ir);const SEe=wEe;function xEe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=AEe(r,t);r.layoutInfo=i;var o=i.width,s=i.height,l=r.getGraph(),u=l.nodes,c=l.edges;CEe(u);var f=Yr(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),v=r.get("nodeAlign");TEe(u,c,n,a,o,s,d,h,v)})}function AEe(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function TEe(e,t,r,n,a,i,o,s,l){EEe(e,t,r,a,i,s,l),LEe(e,t,i,a,n,o,s),zEe(e,s)}function CEe(e){W(e,function(t){var r=df(t.outEdges,Yx),n=df(t.inEdges,Yx),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function EEe(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var h=-1;u.length;){for(var v=0;v<u.length;v++){var p=u[v],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>h&&(h=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var y=0;y<p.outEdges.length;y++){var _=p.outEdges[y],w=t.indexOf(_);s[w]=0;var x=_.node2,S=e.indexOf(x);--l[S]===0&&c.indexOf(x)<0&&c.push(x)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var T=h>f-1?h:f-1;o&&o!=="left"&&MEe(e,o,i,T);var A=i==="vertical"?(a-r)/T:(n-r)/T;PEe(e,A,i)}function gQ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function MEe(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}W(e,function(f){gQ(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&DEe(e,n)}function DEe(e,t){W(e,function(r){!gQ(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function PEe(e,t,r){W(e,function(n){var a=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function LEe(e,t,r,n,a,i,o){var s=IEe(e,o);REe(s,t,r,n,a,o),QE(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,OEe(s,l,o),QE(s,a,r,n,o),VEe(s,l,o),QE(s,a,r,n,o)}function IEe(e,t){var r=[],n=t==="vertical"?"y":"x",a=EP(e,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),W(a.keys,function(i){r.push(a.buckets.get(i))}),r}function REe(e,t,r,n,a,i){var o=1/0;W(e,function(s){var l=s.length,u=0;W(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;c<o&&(o=c)}),W(e,function(s){W(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),W(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function QE(e,t,r,n,a){var i=a==="vertical"?"x":"y";W(e,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var v=a==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function OEe(e,t,r){W(e.slice().reverse(),function(n){W(n,function(a){if(a.outEdges.length){var i=df(a.outEdges,kEe,r)/df(a.outEdges,Yx);if(isNaN(i)){var o=a.outEdges.length;i=o?df(a.outEdges,NEe,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-wf(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-wf(a,r))*t;a.setLayout({y:l},!0)}}})})}function kEe(e,t){return wf(e.node2,t)*e.getValue()}function NEe(e,t){return wf(e.node2,t)}function BEe(e,t){return wf(e.node1,t)*e.getValue()}function FEe(e,t){return wf(e.node1,t)}function wf(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Yx(e){return e.getValue()}function df(e,t,r){for(var n=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],r);isNaN(o)||(n+=o)}return n}function VEe(e,t,r){W(e,function(n){W(n,function(a){if(a.inEdges.length){var i=df(a.inEdges,BEe,r)/df(a.inEdges,Yx);if(isNaN(i)){var o=a.inEdges.length;i=o?df(a.inEdges,FEe,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-wf(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-wf(a,r))*t;a.setLayout({y:l},!0)}}})})}function zEe(e,t){var r=t==="vertical"?"x":"y";W(e,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[r]-i.node2.getLayout()[r]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[r]-i.node1.getLayout()[r]})}),W(e,function(n){var a=0,i=0;W(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),W(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function HEe(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,a=r.edges;if(n.length){var i=1/0,o=-1/0;W(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),W(n,function(s){var l=new qa({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&W(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function GEe(e){e.registerChartView(bEe),e.registerSeriesModel(SEe),e.registerLayout(xEe),e.registerVisual(HEe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var mQ=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],v=h[c].get("type"),p=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];W(g,function(w,x){var S;Ne(w)?(S=w.slice(),w.unshift(x)):Ne(w.value)?(S=Ie({},w),S.value=S.value.slice(),w.value.unshift(x)):S=w,m.push(S)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:Rx(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Rx(p),dimsDef:y.slice()}];return nm(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:zt(NK,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),yQ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ir);Kn(yQ,mQ,!0);const UEe=yQ;var $Ee=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=v6(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?(Js(f),_Q(d,f,i,u)):f=v6(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(xr),WEe=function(){function e(){}return e}(),YEe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new WEe},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();i<a.length;i++)r.moveTo(a[i][0],a[i][1]),i++,r.lineTo(a[i][0],a[i][1])},t}(cr);function v6(e,t,r,n,a){var i=e.ends,o=new YEe({shape:{points:a?jEe(i,n,e):i}});return _Q(e,o,t,r,a),o}function _Q(e,t,r,n,a){var i=r.hostModel,o=u1[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");ti(t,s),Gn(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function jEe(e,t,r){return Fe(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}const KEe=$Ee;var e0=W;function XEe(e){var t=ZEe(e);e0(t,function(r){var n=r.seriesModels;n.length&&(qEe(r),e0(n,function(a,i){QEe(a,r.boxOffsetList[i],r.boxWidthList[i])}))})}function ZEe(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=tr(r,a);i<0&&(i=r.length,r[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function qEe(e){var t=e.axis,r=e.seriesModels,n=r.length,a=e.boxWidthList=[],i=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;e0(r,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}e0(r,function(v){var p=v.get("boxWidth");Ne(p)||(p=[p,p]),o.push([Je(p[0],s)||0,Je(p[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,h=d/2-c/2;e0(r,function(v,p){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[p][0]),o[p][1]))})}function QEe(e,t,r){var n=e.coordinateSystem,a=e.getData(),i=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),h=_(d,c[2],f),v=_(d,c[0],f),p=_(d,c[1],f),g=_(d,c[3],f),m=_(d,c[4],f),y=[];w(y,p,!1),w(y,g,!0),y.push(v,p,m,g),x(y,v),x(y,m),x(y,h),a.setItemLayout(f,{initBaseline:h[s],ends:y})}function _(S,T,A){var C=a.get(T,A),M=[];M[o]=S,M[s]=C;var E;return isNaN(S)||isNaN(C)?E=[NaN,NaN]:(E=n.dataToPoint(M),E[o]+=t),E}function w(S,T,A){var C=T.slice(),M=T.slice();C[o]+=i,M[o]-=i,A?S.push(C,M):S.push(M,C)}function x(S,T){var A=T.slice(),C=T.slice();A[o]-=i,C[o]+=i,S.push(A,C)}}function JEe(e,t){t=t||{};for(var r=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=wo(e[o].slice()),l=Qw(s,.25),u=Qw(s,.5),c=Qw(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),v=i?f:Math.max(f,l-h),p=i?d:Math.min(d,c+h),g=t.itemNameFormatter,m=Tt(g)?g({value:o}):rt(g)?g.replace("{value}",o+""):o+"";r.push([m,v,l,u,c,p]);for(var y=0;y<s.length;y++){var _=s[y];if(_<v||_>p){var w=[m,_];n.push(w)}}}return{boxData:r,outliers:n}}var eMe={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==fi){var n="";Gr(n)}var a=JEe(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function tMe(e){e.registerSeriesModel(UEe),e.registerChartView(KEe),e.registerLayout(XEe),e.registerTransform(eMe)}var rMe=["color","borderColor"],nMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Nf(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&p6(u,f))return;var d=JE(f,c,!0);_n(d,{shape:{points:f.ends}},r,c),eM(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!n.hasValue(c)){i.remove(d);return}var h=n.getItemLayout(c);if(s&&p6(u,h)){i.remove(d);return}d?(Lr(d,{shape:{points:h.ends}},r,c),Js(d)):d=JE(h),eM(d,n,c,o),i.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),g6(r,this.group);var n=r.get("clip",!0)?rT(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=a.getItemLayout(o),l=JE(s);eM(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){g6(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(xr),aMe=function(){function e(){}return e}(),iMe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new aMe},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(cr);function JE(e,t,r){var n=e.ends;return new iMe({shape:{points:r?oMe(n,e):n},z2:100})}function p6(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function eM(e,t,r,n){var a=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,ti(e,a)}function oMe(e,t){return Fe(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var sMe=function(){function e(){}return e}(),tM=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new sMe},t.prototype.buildPath=function(r,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];r.moveTo(o,a[i++]),r.lineTo(o,a[i++])}else i+=3},t}(cr);function g6(e,t,r,n){var a=e.getData(),i=a.getLayout("largePoints"),o=new tM({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new tM({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new tM({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),rM(1,o,e),rM(-1,s,e),rM(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function rM(e,t,r,n){var a=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=r.get(["itemStyle","borderColorDoji"]));var i=r.getModel("itemStyle").getItemStyle(rMe);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const lMe=nMe;var bQ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ir);Kn(bQ,mQ,!0);const uMe=bQ;function cMe(e){!e||!Ne(e.series)||W(e.series,function(t){Mt(t)&&t.type==="k"&&(t.type="candlestick")})}var fMe=["itemStyle","borderColor"],dMe=["itemStyle","borderColor0"],hMe=["itemStyle","borderColorDoji"],vMe=["itemStyle","color"],pMe=["itemStyle","color0"],gMe={seriesType:"candlestick",plan:qg(),performRawSeries:!0,reset:function(e,t){function r(i,o){return o.get(i>0?vMe:pMe)}function n(i,o){return o.get(i===0?hMe:i>0?fMe:dMe)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");Ie(f,c)}}}}}};const mMe=gMe;var yMe={seriesType:"candlestick",plan:qg(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=_Me(e,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=Fe(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:h};function h(p,g){for(var m,y=g.getStore();(m=p.next())!=null;){var _=y.get(s,m),w=y.get(u,m),x=y.get(c,m),S=y.get(f,m),T=y.get(d,m),A=Math.min(w,x),C=Math.max(w,x),M=R(A,_),E=R(C,_),D=R(S,_),P=R(T,_),L=[];B(L,E,0),B(L,M,1),L.push(z(P),z(E),z(D),z(M));var I=g.getItemModel(m),O=!!I.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:m6(y,m,w,x,c,O),initBaseline:w>x?E[i]:M[i],ends:L,brushRect:k(S,T,_)})}function R($,j){var X=[];return X[a]=j,X[i]=$,isNaN(j)||isNaN($)?[NaN,NaN]:t.dataToPoint(X)}function B($,j,X){var Q=j.slice(),se=j.slice();Q[a]=tS(Q[a]+n/2,1,!1),se[a]=tS(se[a]-n/2,1,!0),X?$.push(Q,se):$.push(se,Q)}function k($,j,X){var Q=R($,X),se=R(j,X);return Q[a]-=n/2,se[a]-=n/2,{x:Q[0],y:Q[1],width:n,height:se[1]-Q[1]}}function z($){return $[a]=tS($[a],1),$}}function v(p,g){for(var m=Ml(p.count*4),y=0,_,w=[],x=[],S,T=g.getStore(),A=!!e.get(["itemStyle","borderColorDoji"]);(S=p.next())!=null;){var C=T.get(s,S),M=T.get(u,S),E=T.get(c,S),D=T.get(f,S),P=T.get(d,S);if(isNaN(C)||isNaN(D)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=m6(T,S,M,E,c,A),w[a]=C,w[i]=D,_=t.dataToPoint(w,null,x),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,w[i]=P,_=t.dataToPoint(w,null,x),m[y++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function m6(e,t,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:t>0?e.get(a,t-1)<=n?1:-1:1,o}function _Me(e,t){var r=e.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=Je(Qt(e.get("barMaxWidth"),a),a),o=Je(Qt(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?Je(s,a):Math.max(Math.min(a/2,i),o)}const bMe=yMe;function wMe(e){e.registerChartView(lMe),e.registerSeriesModel(uMe),e.registerPreprocessor(cMe),e.registerVisual(mMe),e.registerLayout(bMe)}function y6(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var SMe=function(e){De(t,e);function t(r,n){var a=e.call(this)||this,i=new p1(r,n),o=new Ot;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=jn(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}y6(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}y6(a,r)},t.prototype.highlight=function(){Hu(this)},t.prototype.downplay=function(){Gu(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var a=this,i=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=Jg(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var h=av(r.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=r.getItemVisual(n,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/r.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,Gn(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(Ot);const xMe=SMe;var AMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new g1(xMe)},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=m1("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=RY(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(xr);const TMe=AMe;var CMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Ir);const EMe=CMe;function MMe(e){e.registerChartView(TMe),e.registerSeriesModel(EMe),e.registerLayout(m1("effectScatter"))}var DMe=function(e){De(t,e);function t(r,n,a){var i=e.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return t.prototype.createLine=function(r,n,a){return new Zk(r,n,a)},t.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Ne(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=jn(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(r,i,n))},t.prototype._updateEffectAnimation=function(r,n,a){var i=this.childAt(1);if(i){var o=r.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=Aa(n.get("delay"),function(h){return h/r.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;Tt(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,a,i,o){if(n>0){r.__t=0;var s=this,l=r.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(r)});i||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return Au(r.__p1,r.__cp1)+Au(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Fa,c=hP;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var f=r.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),d=r.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=Au(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*Au(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},t}(Ot);const wQ=DMe;var PMe=function(e){De(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createPolyline(r,n,a),i}return t.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new Fi({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Lr(o,s,i,n),this._updateCommonStl(r,n,a)},t.prototype._updateCommonStl=function(r,n,a){var i=this.childAt(0),o=r.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||r.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(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,Gn(this,l,u,c)},t.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.setShape("points",r.getItemLayout(n))},t}(Ot);const SQ=PMe;var LMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,a){return new SQ(r,n,a)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Au(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],v=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(wQ);const IMe=LMe;var RMe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),OMe=function(e){De(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new RMe},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){r.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)r.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(r.moveTo(u,c),i>0){var h=(u+f)/2-(c-d)*i,v=(c+d)/2-(f-u)*i;r.quadraticCurveTo(h,v,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],h=1;h<c;h++){var v=i[u++],p=i[u++];if(yu(f,d,v,p,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],v=i[u++],p=i[u++];if(o>0){var g=(f+v)/2-(d-p)*o,m=(d+p)/2-(v-f)*o;if(Cj(f,d,g,m,v,p,s,r,n))return l}else if(yu(f,d,v,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.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)}r=this._rect=new Xt(i,o,s,l)}return r},t}(cr),kMe=function(){function e(){this.group=new Ot}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],a=r.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new OMe({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Ht(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const NMe=kMe;var BMe={seriesType:"lines",plan:qg(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,c=a.start;c<a.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var h=e.getLineCoords(c,o);r&&(s[f++]=h);for(var v=0;v<h;v++)d=t.dataToPoint(o[v],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var p=i.getItemModel(c),h=e.getLineCoords(c,o),g=[];if(r)for(var m=0;m<h;m++)g.push(t.dataToPoint(o[m]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var y=p.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}i.setItemLayout(c,g)}}}}}};const xQ=BMe;var FMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r),s=r.get("zlevel"),l=r.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(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=r.get("clip",!0)&&rT(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=xQ.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new NMe:new qk(o?i?IMe:SQ:i?wQ:Zk),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(xr);const VMe=FMe;var zMe=typeof Uint32Array>"u"?Array:Uint32Array,HMe=typeof Float64Array>"u"?Array:Float64Array;function _6(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Fe(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),pA([a,r[0],r[1]])}))}var GMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],_6(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(_6(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=kh(this._flatCoords,n.flatCoords),this._flatCoordsOffset=kh(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Mr(r[0])){for(var a=r.length,i=new zMe(a),o=new HMe(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=r[c++];i[l++]=s+n,i[l++]=f;for(var d=0;d<f;d++){var h=r[c++],v=r[c++];o[s++]=h,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var a=new Dn(["value"],this);return a.hasItemOption=!1,a.initData(r.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),La("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ir);const UMe=GMe;function jb(e){return e instanceof Array||(e=[e,e]),e}var $Me={seriesType:"lines",reset:function(e){var t=jb(e.get("symbol")),r=jb(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=jb(s.getShallow("symbol",!0)),u=jb(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:n.hasItemOption?a:null}}};const WMe=$Me;function YMe(e){e.registerChartView(VMe),e.registerSeriesModel(UMe),e.registerLayout(xQ),e.registerVisual(WMe)}var jMe=256,KMe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Xs.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var v=0;v<h;++v){var p=t[v],g=p[0],m=p[1],y=p[2],_=a(y);d.globalAlpha=_,d.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),x=w.data,S=0,T=x.length,A=this.minOpacity,C=this.maxOpacity,M=C-A;S<T;){var _=x[S+3]/256,E=Math.floor(_*(jMe-1))*4;if(_>0){var D=o(_)?l:u;_>0&&(_=_*M+A),x[S++]=D[E],x[S++]=D[E+1],x[S++]=D[E+2],x[S++]=D[E+3]*_*256}else S+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Xs.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const XMe=KMe;function ZMe(e,t,r){var n=e[1]-e[0];t=Fe(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function qMe(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function b6(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var QMe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,a,0,r.getData().count()):b6(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(b6(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Nf(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,a,i,o){var s=r.coordinateSystem,l=iv(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var p=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),_=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),x=Pa(r),S=r.getModel("emphasis"),T=S.get("focus"),A=S.get("blurScope"),C=S.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],E=a;E<i;E++){var D=void 0,P=g.getItemVisual(E,"style");if(l){var L=g.get(M[0],E),I=g.get(M[1],E);if(isNaN(g.get(M[2],E))||isNaN(L)||isNaN(I)||L<f[0]||L>f[1]||I<d[0]||I>d[1])continue;var O=s.dataToPoint([L,I]);D=new br({shape:{x:O[0]-u/2,y:O[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(M[1],E)))continue;D=new br({z2:1,shape:s.dataToRect([g.get(M[0],E)]).contentShape,style:P})}if(g.hasItemOption){var R=g.getItemModel(E),B=R.getModel("emphasis");m=B.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),_=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),T=B.get("focus"),A=B.get("blurScope"),C=B.get("disabled"),x=Pa(R)}D.shape.r=w;var k=r.getRawValue(E),z="-";k&&k[2]!=null&&(z=k[2]+""),ri(D,x,{labelFetcher:r,labelDataIndex:E,defaultOpacity:P.opacity,defaultText:z}),D.ensureState("emphasis").style=m,D.ensureState("blur").style=y,D.ensureState("select").style=_,Gn(D,T,A,C),D.incremental=o,o&&(D.states.emphasis.hoverLayer=!0),p.add(D),g.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new XMe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=v-d,m=p-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(T,A,C){var M=r.dataToPoint([T,A]);return M[0]-=d,M[1]-=h,M.push(C),M}),w=a.getExtent(),x=a.type==="visualMap.continuous"?qMe(w,a.option.range):ZMe(w,a.getPieceList(),a.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new Oa({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(xr);const JMe=QMe;var eDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return eu(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Zg.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ir);const tDe=eDe;function rDe(e){e.registerChartView(JMe),e.registerSeriesModel(tDe)}var nDe=["itemStyle","borderWidth"],w6=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],nM=new Qs,aDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:w6[+c],categoryDim:w6[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=x6(o,h),p=S6(o,h,v,d),g=A6(o,d,p);o.setItemGraphicEl(h,g),i.add(g),C6(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=x6(o,h),m=S6(o,h,g,d),y=DQ(o,m);p&&y!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?fDe(p,d,m):p=A6(o,d,m,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=m,i.add(p),C6(p,d,m)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&T6(s,h,v.__pictorialSymbolMeta.animationModel,v)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){T6(i,Ht(o).dataIndex,r,o)}):a.removeAll()},t.type="pictorialBar",t}(xr);function S6(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};iDe(r,i,a,n,d),oDe(e,t,a,i,o,d.boundingLength,d.pxSign,c,n,d),sDe(r,d.symbolScale,u,n,d);var h=d.symbolSize,v=av(r.get("symbolOffset"),h);return lDe(r,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function iDe(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),c;if(Ne(o)){var f=[aM(s,o[0])-l,aM(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=aM(s,o)-l:t?c=n.coordSysExtent[i.index][u]-l:c=r[i.wh];a.boundingLength=c,t&&(a.repeatCutLength=r[i.wh]),a.pxSign=c>0?1:-1}function aM(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function oDe(e,t,r,n,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),v;Ne(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=Je(v[f.index],d),v[c.index]=Je(v[c.index],n?d:Math.abs(i)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function sDe(e,t,r,n,a){var i=e.get(nDe)||0;i&&(nM.attr({scaleX:t[0],scaleY:t[1],rotation:r}),nM.updateTransform(),i/=nM.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function lDe(e,t,r,n,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(n){var m=Math.abs(l),y=Aa(e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var w=Je(y,t[h.index]),x=Math.max(p+w*2,0),S=_?0:w*2,T=CO(n),A=T?n:E6((m+S)/x),C=m-A*p;w=C/2/(_?A:Math.max(A-1,1)),x=p+w*2,S=_?0:w*2,!T&&n!=="fixed"&&(A=u?E6((Math.abs(u)+S)/x):0),g=A*x-S,f.repeatTimes=A,f.symbolMargin=w}var M=v*(g/2),E=f.pathPosition=[];E[d.index]=r[d.wh]/2,E[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(E[0]+=i[0],E[1]+=i[1]);var D=f.bundlePosition=[];D[d.index]=r[d.xy],D[h.index]=r[h.xy];var P=f.barRectShape=Ie({},r);P[h.wh]=v*Math.max(Math.abs(r[h.wh]),Math.abs(E[h.index]+M)),P[d.wh]=r[d.wh];var L=f.clipShape={};L[d.xy]=-r[d.xy],L[d.wh]=c.ecSize[d.wh],L[h.xy]=0,L[h.wh]=r[h.wh]}function AQ(e){var t=e.symbolPatternSize,r=jn(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function TQ(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+r.symbolMargin*2;for(iN(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Op(p,null,v(c),r,n):Op(p,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(p)}),c++});c<u;c++){var d=AQ(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=v(c);Op(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},r,n)}function v(p){var g=s.slice(),m=r.pxSign,y=p;return(r.symbolRepeatDirection==="start"?m>0:m<0)&&(y=u-1-p),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function CQ(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Op(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=AQ(r),a.add(i),Op(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function EQ(e,t,r){var n=Ie({},t.barRectShape),a=e.__pictorialBarRect;a?Op(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new br({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function MQ(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=Ie({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)Lr(a,{shape:i},s,l);else{i[o.wh]=0,a=new br({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],u1[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function x6(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=uDe,r.isAnimationEnabled=cDe,r}function uDe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function cDe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function A6(e,t,r,n){var a=new Ot,i=new Ot;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?TQ(a,t,r):CQ(a,t,r),EQ(a,r,n),MQ(a,t,r,n),a.__pictorialShapeStr=DQ(e,r),a.__pictorialSymbolMeta=r,a}function fDe(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;Lr(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?TQ(e,t,r,!0):CQ(e,t,r,!0),EQ(e,r,!0),MQ(e,t,r,!0)}function T6(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];iN(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),W(i,function(o){yf(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function DQ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function iN(e,t,r){W(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Op(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&u1[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function C6(e,t,r){var n=r.dataIndex,a=r.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");iN(e,function(p){if(p instanceof Oa){var g=p.style;p.useStyle(Ie({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else p.useStyle(r.style);var m=p.ensureState("emphasis");m.style=o,d&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;ri(v,Pa(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:tg(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Gn(e,c,f,i.get("disabled"))}function E6(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const dDe=aDe;var hDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Bf(Vx.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Vx);const vDe=hDe;function pDe(e){e.registerChartView(dDe),e.registerSeriesModel(vDe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,zt(iZ,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oZ("pictorialBar"))}var gDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.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 Uu(this._layersSeries||[],l,d,d),v=[];h.add(ot(p,this,"add")).update(ot(p,this,"update")).remove(ot(p,this,"remove")).execute();function p(g,m,y){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var w=[],x=[],S,T=l[m].indices,A=0;A<T.length;A++){var C=i.getItemLayout(T[A]),M=C.x,E=C.y0,D=C.y;w.push(M,E),x.push(M,E+D),S=i.getItemVisual(T[A],"style")}var P,L=i.getItemLayout(T[0]),I=r.getModel("label"),O=I.get("margin"),R=r.getModel("emphasis");if(g==="add"){var B=v[m]=new Ot;P=new QZ({shape:{points:w,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),B.add(P),s.add(B),r.isAnimationEnabled()&&P.setClipPath(mDe(P.getBoundingRect(),r,function(){P.removeClipPath()}))}else{var B=_[y];P=B.childAt(0),s.add(B),v[m]=B,Lr(P,{shape:{points:w,stackedOnPoints:x}},r),Js(P)}ri(P,Pa(r),{labelDataIndex:T[A-1],defaultText:i.getName(T[A-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),P.setTextConfig({position:null,local:!0});var k=P.getTextContent();k&&(k.x=L.x-O,k.y=L.y0+L.y/2),P.useStyle(S),i.setItemGraphicEl(m,P),ti(P,r),Gn(P,R.get("focus"),R.get("blurScope"),R.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(xr);function mDe(e,t,r){var n=new br({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return _n(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}const yDe=gDe;var iM=2,_De=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new _1(ot(this.getData,this),ot(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,a={},i=EP(r,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,r[n]=[f,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",ia).models[0],i=a.get("type"),o=Yr(r.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=_t(),c=0,f=0;f<s.length;++f)l.push(s[f][iM]),u.get(s[f][iM])||(u.set(s[f][iM],c),c++);var d=tm(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Rx(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Dn(d,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),a=[],i=0;i<n;++i)a[i]=i;var o=r.mapDimension("single"),s=EP(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return r.get(o,f)-r.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,a){Ne(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,v=0;v<h;++v){var p=i.get(r[0],o[c].indices[v]),g=Math.abs(p-n);g<=f&&(u=p,f=g,d=o[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return La("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Ir);const bDe=_De;function wDe(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),a=r.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=r.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=Je(s[0],o.height),s[1]=Je(s[1],o.height);var u=o.height-s[0]-s[1];M6(n,r,u)}else{s[0]=Je(s[0],o.width),s[1]=Je(s[1],o.width);var c=o.width-s[0]-s[1];M6(n,r,c)}n.setLayout("layoutInfo",i)})}function M6(e,t,r){if(e.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=Fe(a,function(g){return Fe(g.indices,function(m){var y=n.dataToPoint(e.get(i,m));return y[1]=e.get(o,m),y})}),l=SDe(s),u=l.y0,c=r/l.max,f=a.length,d=a[0].indices.length,h,v=0;v<d;++v){h=u[v]*c,e.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*c});for(var p=1;p<f;++p)h+=s[p-1][v][1]*c,e.setItemLayout(a[p].indices[v],{layerIndex:p,x:s[p][v][0],y0:h,y:s[p][v][1]*c})}}function SDe(e){for(var t=e.length,r=e[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<r;++u)a[u]=(i-n[u])/2;i=0;for(var c=0;c<r;++c){var f=n[c]+a[c];f>i&&(i=f)}return{y0:a,max:i}}function xDe(e){e.registerChartView(yDe),e.registerSeriesModel(bDe),e.registerLayout(wDe),e.registerProcessor(y1("themeRiver"))}var ADe=2,TDe=4,CDe=function(e){De(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=ADe,o.textConfig={inside:!0},Ht(o).seriesIndex=n.seriesIndex;var s=new pr({z2:TDe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Ht(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Ie({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=eg(h,o));var v=ah(l.getModel("itemStyle"),f,!0);Ie(f,v),W(Li,function(y){var _=s.ensureState(y),w=l.getModel([y,"itemStyle"]);_.style=w.getItemStyle();var x=ah(w,f);x&&(_.shape=x)}),r?(s.setShape(f),s.shape.r=c.r0,_n(s,{shape:{r:c.r}},a,n.dataIndex)):(Lr(s,{shape:f},a),Js(s)),s.useStyle(d),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;Gn(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!p,W(F0,function(m){var y=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),_=m==="normal",w=_?d:d.ensureState(m),x=r.getFormattedLabel(h,m);_&&(x=x||n.node.name),w.style=Xr(y,{},null,m!=="normal",!0),x&&(w.style.text=x);var S=y.get("show");S!=null&&!_&&(w.ignore=!S);var T=g(y,"position"),A=_?f:f.states[m],C=A.style.fill;A.textConfig={outsideFill:y.get("color")==="inherit"?C:null,inside:T!=="outside"};var M,E=g(y,"distance")||0,D=g(y,"align");T==="outside"?(M=o.r+E,D=l>Math.PI/2?"right":"left"):!D||D==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,D="center"):D==="left"?(M=o.r0+E,l>Math.PI/2&&(D="right")):D==="right"&&(M=o.r-E,l>Math.PI/2&&(D="left")),w.style.align=D,w.style.verticalAlign=g(y,"verticalAlign")||"middle",w.x=M*u+o.cx,w.y=M*c+o.cy;var P=g(y,"rotate"),L=0;P==="radial"?(L=Bs(-l),L>Math.PI/2&&L<Math.PI*1.5&&(L+=Math.PI)):P==="tangential"?(L=Math.PI/2-l,L>Math.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):Mr(P)&&(L=P*Math.PI/180),w.rotation=Bs(L)});function g(m,y){var _=m.get(y);return _??i.get(y)}d.dirtyStyle()},t}(Ii);const D6=CDe;var AL="sunburstRootToNode",P6="sunburstHighlight",EDe="sunburstUnhighlight";function MDe(e){e.registerAction({type:AL,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=e_(t,[AL],a);if(o){var s=a.getViewRoot();s&&(t.direction=$k(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:P6,update:"none"},function(t,r,n){t=Ie({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=e_(t,[P6],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Ie(t,{type:"highlight"}))}),e.registerAction({type:EDe,update:"updateView"},function(t,r,n){t=Ie({},t),n.dispatchAction(Ie(t,{type:"downplay"}))})}var DDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];v(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function v(y,_){if(y.length===0&&_.length===0)return;new Uu(_,y,w,w).add(x).update(x).remove(zt(x,null)).execute();function w(S){return S.getId()}function x(S,T){var A=S==null?null:y[S],C=T==null?null:_[T];p(A,C)}}function p(y,_){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,r,n,a),s.setItemGraphicEl(y.dataIndex,_.piece)):g(_);else if(y){var w=new D6(y,r,n,a);c.add(w),s.setItemGraphicEl(y.dataIndex,w)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,a):(o.virtualPiece=new D6(y,r,n,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Sx(u,c)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:AL,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(xr);const PDe=DDe;var LDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};PQ(a);var i=this._levelModels=Fe(r.levels||[],function(l){return new $r(l,this,n)},this),o=Uk.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=iT(a,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){Rq(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Ir);function PQ(e){var t=0;W(e.children,function(n){PQ(n);var a=n.value;Ne(a)&&(a=a[0]),t+=a});var r=e.value;Ne(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Ne(e.value)?e.value[0]=r:e.value=r}const IDe=LDe;var L6=Math.PI/180;function RDe(e,t,r){t.eachSeriesByType(e,function(n){var a=n.get("center"),i=n.get("radius");Ne(i)||(i=[0,i]),Ne(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Je(a[0],o),c=Je(a[1],s),f=Je(i[0],l/2),d=Je(i[1],l/2),h=-n.get("startAngle")*L6,v=n.get("minAngle")*L6,p=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&LQ(g,y);var _=0;W(g.children,function(O){!isNaN(O.getValue())&&_++});var w=g.getValue(),x=Math.PI/(w||_)*2,S=g.depth>0,T=g.height-(S?-1:1),A=(d-f)/(T||1),C=n.get("clockwise"),M=n.get("stillShowZeroSum"),E=C?1:-1,D=function(O,R){if(O){var B=R;if(O!==p){var k=O.getValue(),z=w===0&&M?x:k*x;z<v&&(z=v),B=R+E*z;var $=O.depth-m-(S?-1:1),j=f+A*$,X=f+A*($+1),Q=n.getLevelModel(O);if(Q){var se=Q.get("r0",!0),ee=Q.get("r",!0),K=Q.get("radius",!0);K!=null&&(se=K[0],ee=K[1]),se!=null&&(j=Je(se,l/2)),ee!=null&&(X=Je(ee,l/2))}O.setLayout({angle:z,startAngle:R,endAngle:B,clockwise:C,cx:u,cy:c,r0:j,r:X})}if(O.children&&O.children.length){var Z=0;W(O.children,function(ne){Z+=D(ne,R+Z)})}return B-R}};if(S){var P=f,L=f+A,I=Math.PI*2;p.setLayout({angle:I,startAngle:h,endAngle:h+I,clockwise:C,cx:u,cy:c,r0:P,r:L})}D(g,h)})}function LQ(e,t){var r=e.children||[];e.children=ODe(r,t),r.length&&W(e.children,function(n){LQ(n,t)})}function ODe(e,t){if(Tt(t)){var r=Fe(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return r.sort(function(a,i){return t(a.params,i.params)}),Fe(r,function(a){return e[a.index]})}else{var n=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function kDe(e){var t={};function r(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&rt(s)&&(s=Nh(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Ie(u,l)})})}function NDe(e){e.registerChartView(PDe),e.registerSeriesModel(IDe),e.registerLayout(zt(RDe,"sunburst")),e.registerProcessor(zt(y1,"sunburst")),e.registerVisual(kDe),MDe(e)}var I6={color:"fill",borderColor:"stroke"},BDe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ou=Pr(),FDe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return eu(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Ou(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ir);const VDe=FDe;function zDe(e,t){return t=t||[0,0],Fe(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function HDe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ot(zDe,e)}}}function GDe(e,t){return t=t||[0,0],Fe([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function UDe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ot(GDe,e)}}}function $De(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function WDe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ot($De,e)}}}function YDe(e,t){return t=t||[0,0],Fe(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function jDe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ot(YDe,e)}}}function KDe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}function IQ(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||lt(e,"text")))}function RQ(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},lt(n,"text")&&(o.text=n.text),lt(n,"rich")&&(o.rich=n.rich),lt(n,"textFill")&&(o.fill=n.textFill),lt(n,"textStroke")&&(o.stroke=n.textStroke),lt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),lt(n,"fontSize")&&(o.fontSize=n.fontSize),lt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),lt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=lt(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),lt(n,"textPosition")&&(a.position=n.textPosition),lt(n,"textOffset")&&(a.offset=n.textOffset),lt(n,"textRotation")&&(a.rotation=n.textRotation),lt(n,"textDistance")&&(a.distance=n.textDistance)}return R6(o,e),W(o.rich,function(l){R6(l,l)}),{textConfig:a,textContent:i}}function R6(e,t){t&&(t.font=t.textFont||t.font,lt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),lt(t,"textAlign")&&(e.align=t.textAlign),lt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),lt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),lt(t,"textWidth")&&(e.width=t.textWidth),lt(t,"textHeight")&&(e.height=t.textHeight),lt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),lt(t,"textPadding")&&(e.padding=t.textPadding),lt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),lt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),lt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),lt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),lt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),lt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),lt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function O6(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||"#000";k6(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,W(t.rich,function(s){k6(s,s)}),n}function k6(e,t){t&&(lt(t,"fill")&&(e.textFill=t.fill),lt(t,"stroke")&&(e.textStroke=t.fill),lt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),lt(t,"font")&&(e.font=t.font),lt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),lt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),lt(t,"fontSize")&&(e.fontSize=t.fontSize),lt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),lt(t,"align")&&(e.textAlign=t.align),lt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),lt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),lt(t,"width")&&(e.textWidth=t.width),lt(t,"height")&&(e.textHeight=t.height),lt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),lt(t,"padding")&&(e.textPadding=t.padding),lt(t,"borderColor")&&(e.textBorderColor=t.borderColor),lt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),lt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),lt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),lt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),lt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),lt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),lt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),lt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),lt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),lt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var OQ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},N6=vr(OQ);Co(Vl,function(e,t){return e[t]=1,e},{});Vl.join(", ");var jx=["","style","shape","extra"],ag=Pr();function oN(e,t,r,n,a){var i=e+"Animation",o=Gg(e,n,a)||{},s=ag(t).userDuring;return o.duration>0&&(o.during=s?ot(JDe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Ie(o,r[i]),o}function sS(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ag(e),u=t.style;l.userDuring=t.during;var c={},f={};if(tPe(e,t,f),F6("shape",t,f),F6("extra",t,f),!i&&s&&(ePe(e,t,c),B6("shape",e,t,c),B6("extra",e,t,c),rPe(e,t,u,c)),f.style=u,XDe(e,f,o),qDe(e,t),s)if(i){var d={};W(jx,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),Ie(v?d[v]:d,p.enterFrom))});var h=oN("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else ZDe(e,t,a||0,r,c);kQ(e,t),u?e.dirty():e.markRedraw()}function kQ(e,t){for(var r=ag(e).leaveToProps,n=0;n<jx.length;n++){var a=jx[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=ag(e).leaveToProps={}),a&&(r[a]=r[a]||{}),Ie(a?r[a]:r,i.leaveTo))}}function lT(e,t,r,n){if(e){var a=e.parent,i=ag(e).leaveToProps;if(i){var o=oN("update",e,t,r,0);o.done=function(){a.remove(e),n&&n()},e.animateTo(i,o)}else a.remove(e),n&&n()}}function Ch(e){return e==="all"}function XDe(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function ZDe(e,t,r,n,a){if(a){var i=oN("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function qDe(e,t){lt(t,"silent")&&(e.silent=t.silent),lt(t,"ignore")&&(e.ignore=t.ignore),e instanceof ss&<(t,"invisible")&&(e.invisible=t.invisible),e instanceof cr&<(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var pl={},QDe={setTransform:function(e,t){return pl.el[e]=t,this},getTransform:function(e){return pl.el[e]},setShape:function(e,t){var r=pl.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=pl.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=pl.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=pl.el.style;if(t)return t[e]},setExtra:function(e,t){var r=pl.el.extra||(pl.el.extra={});return r[e]=t,this},getExtra:function(e){var t=pl.el.extra;if(t)return t[e]}};function JDe(){var e=this,t=e.el;if(t){var r=ag(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}pl.el=t,n(QDe)}}function B6(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),Ch(l))Ie(o,i);else for(var u=tn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Ch(s)||tr(s,e)>=0){!o&&(o=n[e]={});for(var h=vr(i),c=0;c<h.length;c++){var f=h[c],d=i[f];nPe(a[f],d)&&(o[f]=d)}}}}}function F6(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=vr(n),o=0;o<i.length;o++){var s=i[o];a[s]=Uy(n[s])}}function ePe(e,t,r){for(var n=t.transition,a=Ch(n)?Vl:tn(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function tPe(e,t,r){for(var n=0;n<N6.length;n++){var a=N6[n],i=OQ[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<Vl.length;n++){var s=Vl[n];t[s]!=null&&(r[s]=t[s])}}function rPe(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!Ch(o)){var l=tn(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(e.getAnimationStyleProps&&(Ch(s)||Ch(o)||tr(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=n.style={});for(var v=vr(r),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function nPe(e,t){return ei(e)?e!==t:e!=null&&isFinite(e)}var NQ=Pr(),aPe=["percent","easing","shape","style","extra"];function BQ(e){e.stopAnimation("keyframe"),e.attr(NQ(e))}function Kx(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Ne(t)){W(t,function(s){Kx(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=Gg("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=NQ(e);W(jx,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),W(n,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=vr(f);if(s||(d=Yr(d,function(p){return tr(aPe,p)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;W(d,function(p){v[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var ku="emphasis",Xc="normal",sN="blur",lN="select",Sf=[Xc,ku,sN,lN],oM={normal:["itemStyle"],emphasis:[ku,"itemStyle"],blur:[sN,"itemStyle"],select:[lN,"itemStyle"]},sM={normal:["label"],emphasis:[ku,"label"],blur:[sN,"label"],select:[lN,"label"]},iPe=["x","y"],oPe="e\0\0",Bo={normal:{},emphasis:{},blur:{},select:{}},sPe={cartesian2d:HDe,geo:UDe,single:WDe,polar:jDe,calendar:KDe};function TL(e){return e instanceof cr}function CL(e){return e instanceof ss}function lPe(e,t){t.copyTransform(e),CL(t)&&CL(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,TL(t)&&TL(e)&&t.setShape(e.shape))}var uPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=V6(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){lM(a,null,f,u(f,i),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&lT(d,Ou(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);lM(a,h,f,u(f,i),r,l,s)}).execute();var c=r.get("clip",!0)?rT(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=V6(n,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=lM(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){Nf(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(xr);const cPe=uPe;function uN(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=zQ(n);r=s1(i,null,a,n.layout||"center"),Ou(r).customPathData=i}else if(t==="image")r=new Oa({}),Ou(r).customImagePath=e.style.image;else if(t==="text")r=new pr({});else if(t==="group")r=new Ot;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=OA(t);if(!o){var s="";Gr(s)}r=new o}return Ou(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function cN(e,t,r,n,a,i,o){BQ(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=iPe);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;lt(u,"textFill")&&(u.fill=u.textFill),lt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=TL(t)?l.decal:null;e&&f&&(f.dirty=!0,c=eg(f,e)),l.__decalPattern=c}if(CL(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}sS(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),Kx(t,n.keyframeAnimation,i)}function FQ(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),zh(i)}}function fPe(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Sf.length;s++)dPe(n,t,Sf[s])}}function dPe(e,t,r){var n=r===Xc,a=n?t:Xx(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function V6(e,t,r,n){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):sPe[i.type](i));for(var s=yt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:S,ordinalRawValue:x,styleEmphasis:T,visual:M,barLayout:E,currentSeriesIndices:D,font:P},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:hPe(e.getData())},u,c,f={},d={},h={},v={},p=0;p<Sf.length;p++){var g=Sf[p];h[g]=e.getModel(oM[g]),v[g]=e.getModel(sM[g])}function m(L){return L===u?c||(c=t.getItemModel(L)):t.getItemModel(L)}function y(L,I){return t.hasItemOption?L===u?f[I]||(f[I]=m(L).getModel(oM[I])):m(L).getModel(oM[I]):h[I]}function _(L,I){return t.hasItemOption?L===u?d[I]||(d[I]=m(L).getModel(sM[I])):m(L).getModel(sM[I]):v[I]}return function(L,I){return u=L,c=null,f={},d={},a&&a(yt({dataIndexInside:L,dataIndex:t.getRawIndex(L),actionType:I?I.type:null},l),s)};function w(L,I){return I==null&&(I=u),t.getStore().get(t.getDimensionIndex(L||0),I)}function x(L,I){I==null&&(I=u),L=L||0;var O=t.getDimensionInfo(L);if(!O){var R=t.getDimensionIndex(L);return R>=0?t.getStore().get(R,I):void 0}var B=t.get(O.name,I),k=O&&O.ordinalMeta;return k?k.categories[B]:B}function S(L,I){I==null&&(I=u);var O=t.getItemVisual(I,"style"),R=O&&O.fill,B=O&&O.opacity,k=y(I,Xc).getItemStyle();R!=null&&(k.fill=R),B!=null&&(k.opacity=B);var z={inheritColor:rt(R)?R:"#000"},$=_(I,Xc),j=Xr($,null,z,!1,!0);j.text=$.getShallow("show")?Qt(e.getFormattedLabel(I,Xc),tg(t,I)):null;var X=_x($,z,!1);return C(L,k),k=O6(k,j,X),L&&A(k,L),k.legacy=!0,k}function T(L,I){I==null&&(I=u);var O=y(I,ku).getItemStyle(),R=_(I,ku),B=Xr(R,null,null,!0,!0);B.text=R.getShallow("show")?zs(e.getFormattedLabel(I,ku),e.getFormattedLabel(I,Xc),tg(t,I)):null;var k=_x(R,null,!0);return C(L,O),O=O6(O,B,k),L&&A(O,L),O.legacy=!0,O}function A(L,I){for(var O in I)lt(I,O)&&(L[O]=I[O])}function C(L,I){L&&(L.textFill&&(I.textFill=L.textFill),L.textPosition&&(I.textPosition=L.textPosition))}function M(L,I){if(I==null&&(I=u),lt(I6,L)){var O=t.getItemVisual(I,"style");return O?O[I6[L]]:null}if(lt(BDe,L))return t.getItemVisual(I,L)}function E(L){if(i.type==="cartesian2d"){var I=i.getBaseAxis();return cbe(yt({axis:I},L))}}function D(){return r.getCurrentSeriesIndices()}function P(L){return pK(L,r)}}function hPe(e){var t={};return W(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function lM(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=fN(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Gn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function fN(e,t,r,n,a,i){var o=-1,s=t;t&&VQ(t,n,a)&&(o=tr(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=uN(n),s&&lPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Bo.normal.cfg=Bo.normal.conOpt=Bo.emphasis.cfg=Bo.emphasis.conOpt=Bo.blur.cfg=Bo.blur.conOpt=Bo.select.cfg=Bo.select.conOpt=null,Bo.isLegacy=!1,pPe(u,r,n,a,l,Bo),vPe(u,r,n,a,l),cN(e,u,r,n,Bo,a,l),lt(n,"info")&&(Ou(u).info=n.info);for(var c=0;c<Sf.length;c++){var f=Sf[c];if(f!==Xc){var d=Xx(n,f),h=dN(n,d,f);FQ(f,u,d,h,Bo)}}return fPe(u,n,a),n.type==="group"&&gPe(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function VQ(e,t,r){var n=Ou(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&bPe(i)&&zQ(i)!==n.customPathData||a==="image"&<(o,"image")&&o.image!==n.customImagePath}function vPe(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&VQ(o,i,n)&&(o=null),o||(o=uN(i),e.setClipPath(o)),cN(null,o,t,i,null,n,a)}}function pPe(e,t,r,n,a,i){if(!e.isGroup){z6(r,null,i),z6(r,ku,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=uN(o),e.setTextContent(c)),cN(null,c,t,o,null,n,a);for(var f=o&&o.style,d=0;d<Sf.length;d++){var h=Sf[d];if(h!==Xc){var v=i[h].conOpt;FQ(h,c,v,dN(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function z6(e,t,r){var n=t?Xx(e,t):e,a=t?dN(e,n,ku):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?Xx(s,t):s:null;if(a&&(r.isLegacy||IQ(a,i,!!o,!!l))){r.isLegacy=!0;var u=RQ(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function Xx(e,t){return t?e?e[t]:null:e}function dN(e,t,r){var n=t&&t.style;return n==null&&r===ku&&e&&(n=e.styleEmphasis),n}function gPe(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){yPe({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=i[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),fN(e,d,r,f,a,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);mPe(t,v,a)}}}function mPe(e,t,r){t&&lT(t,Ou(e).option,r)}function yPe(e){new Uu(e.oldChildren,e.newChildren,H6,H6,e).add(G6).update(G6).remove(_Pe).execute()}function H6(e,t){var r=e&&e.name;return r??oPe+t}function G6(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;fN(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function _Pe(e){var t=this.context,r=t.oldChildren[e];r&&lT(r,Ou(r).option,t.seriesModel)}function zQ(e){return e&&(e.pathData||e.d)}function bPe(e){return e&&(lt(e,"pathData")||lt(e,"d"))}function wPe(e){e.registerChartView(cPe),e.registerSeriesModel(VDe)}var Wd=Pr(),U6=Pt,uM=ot,SPe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ot,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=zt($6,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Y6(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=kk(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=Wd(t).pointerEl=new u1[i.type](U6(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=Wd(t).labelEl=new pr(U6(r.label));t.add(i),W6(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=Wd(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=Wd(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),W6(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ug(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){zu(u.event)},onmousedown:uM(this._onHandleDragMove,this,0,0),drift:uM(this._onHandleDragMove,this),ondragend:uM(this._onHandleDragEnd,this)}),n.add(a)),Y6(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Ne(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Qg(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){$6(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(cM(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(cM(a)),Wd(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Y0(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function $6(e,t,r,n){HQ(Wd(r).lastProp,n)||(Wd(r).lastProp=n,t?Lr(r,n,e):(r.stopAnimation(),r.attr(n)))}function HQ(e,t){if(Mt(e)&&Mt(t)){var r=!0;return W(t,function(n,a){r=r&&HQ(e[a],n)}),!!r}else return e===t}function W6(e,t){e[t.get(["label","show"])?"show":"hide"]()}function cM(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Y6(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const hN=SPe;function vN(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function GQ(e,t,r,n,a){var i=r.get("value"),o=UQ(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=nv(s.get("padding")||0),u=s.getFont(),c=r1(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),xPe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Xr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function xPe(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function UQ(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:Tk(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};W(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),rt(o)?i=o.replace("{value}",i):Tt(o)&&(i=o(s))}return i}function pN(e,t,r){var n=lo();return Of(n,n,r.rotation),Zs(n,n,r.position),Us([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function $Q(e,t,r,n,a,i){var o=Wu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),GQ(t,n,a,i,{position:pN(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gN(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function WQ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function j6(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var APe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=K6(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=vN(i),h=TPe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=lL(l.model,a);$Q(n,r,v,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=lL(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pN(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=K6(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(hN);function K6(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var TPe={line:function(e,t,r){var n=gN([t,r[0]],[t,r[1]],X6(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:WQ([t-n/2,r[0]],[n,a],X6(e))}}};function X6(e){return e.dim==="x"?0:1}const CPe=APe;var EPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(sr);const MPe=EPe;var Mu=Pr(),DPe=W;function YQ(e,t,r){if(!Cr.node){var n=t.getZr();Mu(n).records||(Mu(n).records={}),PPe(n,t);var a=Mu(n).records[e]||(Mu(n).records[e]={});a.handler=r}}function PPe(e,t){if(Mu(e).initialized)return;Mu(e).initialized=!0,r("click",zt(Z6,"click")),r("mousemove",zt(Z6,"mousemove")),r("globalout",IPe);function r(n,a){e.on(n,function(i){var o=RPe(t);DPe(Mu(e).records,function(s){s&&a(s,i,o.dispatchAction)}),LPe(o.pendings,t)})}}function LPe(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function IPe(e,t,r){e.handler("leave",null,r)}function Z6(e,t,r,n){t.handler(e,r,n)}function RPe(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function EL(e,t){if(!Cr.node){var r=t.getZr(),n=(Mu(r).records||{})[e];n&&(Mu(r).records[e]=null)}}var OPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";YQ("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){EL("axisPointer",n)},t.prototype.dispose=function(r,n){EL("axisPointer",n)},t.type="axisPointer",t}(rn);const kPe=OPe;function jQ(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Fh(i,e);if(o==null||o<0||Ne(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(d),p=[];p[h]=i.get(v,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(i.getValues(Fe(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var q6=Pr();function NPe(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||ot(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){lS(a)&&(a=jQ({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=lS(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||lS(a),d={},h={},v={list:[],map:{}},p={showPointer:zt(FPe,h),showTooltip:zt(VPe,v)};W(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);W(s.coordSysAxesInfo[y],function(w,x){var S=w.axis,T=UPe(u,w);if(!f&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=S.pointToData(a)),A!=null&&Q6(w,A,p,!1,d)}})});var g={};return W(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&W(_.axesInfo,function(w,x){var S=h[x];if(w!==m&&S){var T=S.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,J6(w),J6(m)))),g[m.key]=T}})}),W(g,function(m,y){Q6(c[y],m,p,!0,d)}),zPe(h,c,d),HPe(v,a,e,o),GPe(c,o,r),d}}function Q6(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=BPe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Ie(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function BPe(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return W(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,a=f,i.length=0),W(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function FPe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function VPe(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=J0(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function zPe(e,t,r){var n=r.axesInfo=[];W(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function HPe(e,t,r,n){if(lS(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function GPe(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=q6(n)[a]||{},o=q6(n)[a]={};W(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&W(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];W(i,function(u,c){!o[c]&&l.push(u)}),W(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function UPe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function J6(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function lS(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function S1(e){ov.registerAxisPointerClass("CartesianAxisPointer",CPe),e.registerComponentModel(MPe),e.registerComponentView(kPe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Ne(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Ixe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},NPe)}function $Pe(e){Dt(yq),Dt(S1)}var WPe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,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(n),d=i.get("type");if(d&&d!=="none"){var h=vN(i),v=jPe[d](s,l,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var p=i.get(["label","margin"]),g=YPe(n,a,i,l,p);GQ(r,a,i,o,g)},t}(hN);function YPe(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=lo();Of(d,d,s),Zs(d,d,[n.cx,n.cy]),u=Us([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,v=Wu.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var jPe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:gN(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:j6(t.cx,t.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:j6(t.cx,t.cy,r-a/2,r+a/2,0,Math.PI*2)}}};const KPe=WPe;var XPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(sr);const ZPe=XPe;var mN=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ia).models[0]},t.type="polarAxis",t}(sr);Kn(mN,rm);var qPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(mN),QPe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(mN),yN=function(e){De(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(gi);yN.prototype.dataToRadius=gi.prototype.dataToCoord;yN.prototype.radiusToData=gi.prototype.coordToData;const JPe=yN;var eLe=Pr(),_N=function(e){De(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=r1(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),v=eLe(r.model),p=v.lastAutoInterval,g=v.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(v.lastTickCount=o,v.lastAutoInterval=h),h},t}(gi);_N.prototype.dataToAngle=gi.prototype.dataToCoord;_N.prototype.angleToData=gi.prototype.coordToData;const tLe=_N;var KQ=["radius","angle"],rLe=function(){function e(t){this.dimensions=KQ,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new JPe,this._angleAxis=new tLe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*r+this.cx,i=-Math.sin(n)*r+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var a=e8(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=e8(r);return a===this?this.pointToData(n):null},e}();function e8(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const nLe=rLe;function aLe(e,t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight();e.cx=Je(n[0],a),e.cy=Je(n[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:Ne(l)||(l=[0,l]);var u=[Je(l[0],s),Je(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function iLe(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();W(kx(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),W(kx(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Gh(n.scale,n.model),Gh(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function oLe(e){return e.mainType==="angleAxis"}function t8(e,t){if(e.type=t.get("type"),e.scale=h1(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),oLe(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var sLe={dimensions:KQ,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,a){var i=new nLe(a+"");i.update=iLe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");t8(o,l),t8(s,u),aLe(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",ia).models[0];n.coordinateSystem=a.coordinateSystem}}),r}};const lLe=sLe;var uLe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Kb(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Xb(e){var t=e.getRadiusAxis();return t.inverse?0:1}function r8(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var cLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=Fe(a.getViewLabels(),function(c){c=Pt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});r8(u),r8(s),W(uLe,function(c){r.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&fLe[c](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(ov),fLe={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=Xb(r),l=s?0:1,u;i[l]===0?u=new Qs({shape:{cx:r.cx,cy:r.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new i1({shape:{cx:r.cx,cy:r.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Xb(r)],u=Fe(n,function(c){return new Ta({shape:Kb(r,[l,l+s],c.coord)})});e.add(bo(u,{style:yt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Xb(r)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new Ta({shape:Kb(r,[u,u+l],a[f][d].coord)}));e.add(bo(c,{style:yt(s.getModel("lineStyle").getLineStyle(),yt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");W(o,function(f,d){var h=l,v=f.tickValue,p=i[Xb(r)],g=r.coordToPoint([p+u,f.coord]),m=r.cx,y=r.cy,_=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",w=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[v]){var x=s[v];Mt(x)&&x.textStyle&&(h=new $r(x.textStyle,l,l.ecModel))}var S=new pr({silent:Wu.isLabelSilent(t),style:Xr(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:w})});if(e.add(S),c){var T=Wu.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=f.rawLabel,Ht(S).eventData=T}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Ta({shape:Kb(r,i,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add(bo(c[f],{style:yt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Ta({shape:Kb(r,i,a[u][c].coord)}));e.add(bo(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,h=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,m=n.length;g<=m;g++){var y=g===m?n[0].coord:n[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new Ii({shape:{cx:r.cx,cy:r.cy,r0:h,r:v,startAngle:d,endAngle:-y*f,clockwise:p},silent:!0})),d=-y*f}for(var g=0;g<c.length;g++)e.add(bo(c[g],{style:yt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const dLe=cLe;var hLe=["axisLine","axisTickLabel","axisName"],vLe=["splitLine","splitArea","minorSplitLine"],pLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=this._axisGroup,i=this._axisGroup=new Ot;this.group.add(i);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=mLe(s,r,f),v=new Wu(r,h);W(hLe,v.add,v),i.add(v.getGroup()),l1(a,i,r),W(vLe,function(p){r.get([p,"show"])&&!o.scale.isBlank()&&gLe[p](this.group,r,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(ov),gLe={splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<i.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Qs({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)e.add(bo(c[f],{style:yt({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Qs({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add(bo(u,{style:yt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Ii({shape:{cx:r.cx,cy:r.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)e.add(bo(c[d],{style:yt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function mLe(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const yLe=pLe;function XQ(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function ZQ(e,t){return t.dim+e.model.componentIndex}function _Le(e,t,r){var n={},a=bLe(Yr(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=ZQ(s,l),c=XQ(i),f=a[u][c],d=f.offset,h=f.width,v=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,y=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var _=o.mapDimension(v.dim),w=o.mapDimension(l.dim),x=$u(o,_),S=l.dim!=="radius"||!i.get("roundCap",!0),T=v.dataToCoord(0),A=0,C=o.count();A<C;A++){var M=o.get(_,A),E=o.get(w,A),D=M>=0?"p":"n",P=T;x&&(n[c][E]||(n[c][E]={p:T,n:T}),P=n[c][E][D]);var L=void 0,I=void 0,O=void 0,R=void 0;if(v.dim==="radius"){var B=v.dataToCoord(M)-T,k=l.dataToCoord(E);Math.abs(B)<m&&(B=(B<0?-1:1)*m),L=P,I=P+B,O=k-d,R=O-h,x&&(n[c][E][D]=I)}else{var z=v.dataToCoord(M,S)-T,$=l.dataToCoord(E);Math.abs(z)<y&&(z=(z<0?-1:1)*y),L=$+d,I=L+h,O=P,R=P+z,x&&(n[c][E][D]=R)}o.setItemLayout(A,{cx:p,cy:g,r0:L,r:I,startAngle:-O*Math.PI/180,endAngle:-R*Math.PI/180,clockwise:O>=R})}}})}function bLe(e){var t={};W(e,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=ZQ(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=XQ(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=Je(n.get("barWidth"),c),p=Je(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),p&&(d[h].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return W(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=Je(n.categoryGap,o),l=Je(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),W(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;W(i,function(p,g){p.width||(p.width=f),h=p,d+=p.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;W(i,function(p,g){r[a][g]=r[a][g]||{offset:v,width:p.width},v+=p.width*(1+l)})}),r}var wLe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},SLe={splitNumber:5},xLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(rn);function ALe(e){Dt(S1),ov.registerAxisPointerClass("PolarAxisPointer",KPe),e.registerCoordinateSystem("polar",lLe),e.registerComponentModel(ZPe),e.registerComponentView(xLe),rg(e,"angle",qPe,wLe),rg(e,"radius",QPe,SLe),e.registerComponentView(dLe),e.registerComponentView(yLe),e.registerLayout(zt(_Le,"bar"))}function ML(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,a={},i=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Aa(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var TLe=["axisLine","axisTickLabel","axisName"],CLe=["splitArea","splitLine"],ELe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Ot;var l=ML(r),u=new Wu(r,l);W(TLe,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),W(CLe,function(c){r.get([c,"show"])&&MLe[c](this,this.group,this._axisGroup,r)},this),l1(s,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)},t.prototype.remove=function(){pq(this)},t.type="singleAxis",t}(ov),MLe={splitLine:function(e,t,r,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,h=a.getTicksCoords({tickModel:i}),v=[],p=[],g=0;g<h.length;++g){var m=a.toGlobalCoord(h[g].coord);c?(v[0]=m,v[1]=u.y,p[0]=m,p[1]=u.y+u.height):(v[0]=u.x,v[1]=m,p[0]=u.x+u.width,p[1]=m);var y=new Ta({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});Qp(y.shape,l);var _=d++%s.length;f[_]=f[_]||[],f[_].push(y)}for(var w=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(bo(f[g],{style:yt({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(e,t,r,n){vq(e,r,n,n)}};const DLe=ELe;var qQ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(sr);Kn(qQ,rm.prototype);const fM=qQ;var PLe=function(e){De(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(gi);const LLe=PLe;var QQ=["single"],ILe=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=QQ,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=this.dimension,i=new LLe(a,h1(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();W(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Gh(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=kn({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},t.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),a=[],i=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=r.toGlobalCoord(r.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},e.prototype.convertToPixel=function(t,r,n){var a=n8(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=n8(r);return a===this?this.pointToData(n):null},e}();function n8(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function RLe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,a){var i=new ILe(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",ia).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var OLe={create:RLe,dimensions:QQ};const kLe=OLe;var a8=["x","y"],NLe=["width","height"],BLe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=dM(l,1-Zx(s)),c=l.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var d=vN(i),h=FLe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=ML(a);$Q(n,r,v,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=ML(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pN(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=Zx(o),u=dM(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=dM(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(hN),FLe={line:function(e,t,r){var n=gN([t,r[0]],[t,r[1]],Zx(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:WQ([t-n/2,r[0]],[n,a],Zx(e))}}};function Zx(e){return e.isHorizontal()?0:1}function dM(e,t){var r=e.getRect();return[r[a8[t]],r[a8[t]]+r[NLe[t]]]}const VLe=BLe;var zLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(rn);function HLe(e){Dt(S1),ov.registerAxisPointerClass("SingleAxisPointer",VLe),e.registerComponentView(zLe),e.registerComponentView(DLe),e.registerComponentModel(fM),rg(e,"single",fM,fM.defaultOption),e.registerCoordinateSystem("single",kLe)}var GLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=jg(r);e.prototype.init.apply(this,arguments),i8(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),i8(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(sr);function i8(e,t){var r=e.cellSize,n;Ne(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=Fe([0,1],function(i){return Wye(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});_f(e,t,{type:"box",ignoreSize:a})}const ULe=GLe;var $Le=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new br({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(r,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new Fi({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return rt(r)&&r?Gye(r,n):Tt(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:v},m=this._formatterLabel(p,g),y=new pr({z2:30,style:Xr(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],a,l,s)),i.add(y)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],c=r[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.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||rt(s))&&(s&&(n=VP(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",p=0;p<f[d].length-1;p++){var g=f[d][p].slice(),m=this._firstDayOfMonth[p];if(v){var y=this._firstDayPoints[p];g[h]=(y[h]+f[0][p+1][h])/2}var _=o.get("formatter"),w=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},S=this._formatterLabel(_,x),T=new pr({z2:30,style:Ie(Xr(o,{text:S}),this._monthTextPositionControl(g,v,a,u,l))});i.add(T)}}},t.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],c=r[1],f=a==="start";return n==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,a,i,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||rt(c)){c&&(n=VP(c)||n);var h=n.get(["time","dayOfWeekShort"]);c=h||Fe(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=Je(f,Math.min(p[1],p[0])),u==="start"&&(v=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var m=l.getNextNDay(v,g),y=l.dataToRect([m.time],!1).center,_=g;_=Math.abs((g+d)%7);var w=new pr({z2:30,style:Ie(Xr(s,{text:c[_]}),this._weekTextPositionControl(y,i,u,f,p))});o.add(w)}}},t.type="calendar",t}(rn);const WLe=$Le;var hM=864e5,YLe=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=uo(t);var r=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){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 n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];W([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=kn(o,l);W([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,r){Ne(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),a=this._rangeInfo,i=n.formatedDate;if(r&&!(n.time>=a.start.time&&n.time<a.end.time+hM))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,a):this._getDateByWeeksAndDay(r,n-1,a)},e.prototype.convertToPixel=function(t,r,n){var a=o8(r);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=o8(r);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(Ne(t)&&t.length===1&&(t=t[0]),Ne(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);r=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/hM)-Math.floor(r[0].time/hM)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&r<a.fweek||t===a.weeks&&r>a.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function o8(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const jLe=YLe;function KLe(e){e.registerComponentModel(ULe),e.registerComponentView(WLe),e.registerCoordinateSystem("calendar",jLe)}function XLe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function s8(e,t){var r;return W(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function ZLe(e,t,r){var n=Ie({},r),a=e[t],i=r.$action||"merge";i==="merge"?a?(st(a,n,!0),_f(a,n,{ignoreSize:!0}),LK(r,a),Zb(r,a),Zb(r,a,"shape"),Zb(r,a,"style"),Zb(r,a,"extra"),r.clipPath=a.clipPath):e[t]=n:i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var JQ=["transition","enterFrom","leaveTo"],qLe=JQ.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Zb(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?JQ:qLe,a=0;a<n.length;a++){var i=n[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function QLe(e,t){if(e&&(e.hv=t.hv=[s8(t,["left","right"]),s8(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var JLe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=a},t.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=pj(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];W(l,function(c,f){var d=c.newOption;d&&(u.push(d),XLe(c,d),ZLe(o,f,d),QLe(o[f],d))},this),a.elements=Yr(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,a){W(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(sr),l8={path:null,compoundPath:null,group:Ot,image:Oa,text:pr},Uo=Pr(),eIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=_t()},t.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");W(n,function(l){var u=ha(l.id,null),c=u!=null?a.get(u):null,f=ha(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var p=l.textContent,g=l.textConfig;if(v&&IQ(v,h,!!g,!!p)){var m=RQ(v,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var y=tIe(l),_=l.$action||"merge",w=_==="merge",x=_==="replace";if(w){var S=!c,T=c;S?T=u8(u,d,l.type,a):(T&&(Uo(T).isNew=!1),BQ(T)),T&&(sS(T,y,r,{isInit:S}),c8(T,l,o,s))}else if(x){uS(c,l,a,r);var A=u8(u,d,l.type,a);A&&(sS(A,y,r,{isInit:!0}),c8(A,l,o,s))}else _==="remove"&&(kQ(c,l),uS(c,l,a,r));var C=a.get(u);if(C&&p)if(w){var M=C.getTextContent();M?M.attr(p):C.setTextContent(new pr(p))}else x&&C.setTextContent(new pr(p));if(C){var E=l.clipPath;if(E){var D=E.type,P=void 0,S=!1;if(w){var L=C.getClipPath();S=!L||Uo(L).type!==D,P=S?DL(D):L}else x&&(S=!0,P=DL(D));C.setClipPath(P),sS(P,E,r,{isInit:S}),Kx(P,E.keyframeAnimation,r)}var I=Uo(C);C.setTextConfig(g),I.option=l,rIe(C,r,l),$g({el:C,componentModel:r,itemName:C.name,itemTooltipOption:l.tooltip}),Kx(C,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=ha(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,p=v===i,g=Uo(h),m=Uo(v);g.width=Je(g.option.width,p?s:m.width)||0,g.height=Je(g.option.height,p?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=ha(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,m=Uo(v),y=v===i?{width:s,height:l}:{width:m.width,height:m.height},_={},w=GA(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Uo(h).isNew&&w){for(var x=f.transition,S={},T=0;T<u.length;T++){var A=u[T],C=_[A];x&&(Ch(x)||tr(x,A)>=0)?S[A]=C:h[A]=C}Lr(h,S,r,0)}else h.attr(_)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){uS(a,Uo(a).option,n,r._lastGraphicModel)}),this._elMap=_t()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(rn);function DL(e){var t=lt(l8,e)?l8[e]:OA(e),r=new t({});return Uo(r).type=e,r}function u8(e,t,r,n){var a=DL(r);return t.add(a),n.set(e,a),Uo(a).id=e,Uo(a).isNew=!0,a}function uS(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){uS(i,t,r,n)}),lT(e,t,n),r.removeKey(Uo(e).id))}function c8(e,t,r,n){e.isGroup||W([["cursor",ss.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];lt(t,i)?e[i]=Qt(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),W(vr(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Tt(i)?i:null}}),lt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function tIe(e){return e=Ie({},e),W(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(PK),function(t){delete e[t]}),e}function rIe(e,t,r){var n=Ht(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ht(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function nIe(e){e.registerComponentModel(JLe),e.registerComponentView(eIe),e.registerPreprocessor(function(t){var r=t.graphic;Ne(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var f8=["x","y","radius","angle","single"],aIe=["cartesian2d","polar","singleAxis"];function iIe(e){var t=e.get("coordinateSystem");return tr(aIe,t)>=0}function Zc(e){return e+"Axis"}function oIe(e,t){var r=_t(),n=[],a=_t();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function eJ(e){var t=e.ecModel,r={infoList:[],infoMap:_t()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(Zc(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var vM=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),sIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=d8(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=d8(r);st(this.option,r,!0),st(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=_t(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return W(f8,function(a){var i=this.getReferringComponents(Zc(a),Tge);if(i.specified){n=!0;var o=new vM;W(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="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)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new vM;if(d.add(f.componentIndex),r.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",ia).models[0];h&&W(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",ia).models[0]&&d.add(v.componentIndex)})}}}i&&W(f8,function(u){if(i){var c=a.findComponents({mainType:Zc(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new vM;f.add(c[0].componentIndex),r.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");W([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(Zc(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){W(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(Zc(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;W(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,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;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(sr);function d8(e){var t={};return W(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}const i_=sIe;var lIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(i_);const uIe=lIe;var cIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(rn);const bN=cIe;var fIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(bN);const dIe=fIe;var np=W,h8=wo,hIe=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(iIe(r)){var n=Zc(this._dimName),a=r.getReferringComponents(n,ia).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Pt(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;np(["start","end"],function(d,h){var v=t[d],p=t[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),p=a.parse(Vr(v,o,r))):(u=!0,p=p==null?r[h]:a.parse(p),v=Vr(p,r,o)),l[h]=p==null||isNaN(p)?r[h]:p,s[h]=v==null||isNaN(v)?o[h]:v}),h8(l),h8(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,h,v,p,g){var m=g?"Span":"ValueSpan";sv(0,d,v,"all",c["min"+m],c["max"+m]);for(var y=0;y<2;y++)h[y]=Vr(d[y],v,p,!0),g&&(h[y]=a.parse(h[y]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=vIe(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;np(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=Fe(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,p,g,m=0;m<c.length;m++){var y=f.get(d[m],h),_=!isNaN(y),w=y<o[0],x=y>o[1];if(_&&!w&&!x)return!0;_&&(g=!0),w&&(v=!0),x&&(p=!0)}return g&&v&&p})}else np(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});np(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;np(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Vr(n[0]+o,n,[0,100],!0):i!=null&&(o=Vr(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=xO(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function vIe(e,t,r){var n=[1/0,-1/0];np(r,function(o){Rbe(n,o.getData(),t)});var a=e.getAxisModel(),i=dZ(a.axis.scale,a,n).calculate();return[i.min,i.max]}const pIe=hIe;var gIe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Zc(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new pIe(a,i,s,e),r.push(o.__dzAxisProxy))});var n=_t();return W(r,function(a){W(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const mIe=gIe;function yIe(e){e.registerAction("dataZoom",function(t,r){var n=oIe(r,t);W(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var v8=!1;function wN(e){v8||(v8=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,mIe),yIe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function _Ie(e){e.registerComponentModel(uIe),e.registerComponentView(dIe),wN(e)}var jo=function(){function e(){}return e}(),tJ={};function ap(e,t){tJ[e]=t}function rJ(e){return tJ[e]}var bIe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;W(this.option.feature,function(n,a){var i=rJ(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),st(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(sr);const wIe=bIe;function SIe(e,t,r){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=kn(n,i,a);Sh(t.get("orient"),e,t.get("itemGap"),o.width,o.height),GA(e,n,i,a)}function nJ(e,t){var r=nv(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new br({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var xIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];W(u,function(v,p){f.push(p)}),new Uu(this._featureNames||[],f).add(d).update(d).remove(zt(d,null)).execute(),this._featureNames=f;function d(v,p){var g=f[v],m=f[p],y=u[g],_=new $r(y,r,r.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(y.title=i.newTitle),g&&!m){if(AIe(g))w={onclick:_.option.onclick,featureName:g};else{var x=rJ(g);if(!x)return;w=new x}c[g]=w}else if(w=c[m],!w)return;w.uid=Yg("toolbox-feature"),w.model=_,w.ecModel=n,w.api=a;var S=w instanceof jo;if(!g&&m){S&&w.dispose&&w.dispose(n,a);return}if(!_.get("show")||S&&w.unusable){S&&w.remove&&w.remove(n,a);return}h(_,w,g),_.setIconStatus=function(T,A){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[T]=A,M[T]&&(A==="emphasis"?Hu:Gu)(M[T])},w instanceof jo&&w.render&&w.render(_,n,a,i)}function h(v,p,g){var m=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),_=p instanceof jo&&p.getIcons?p.getIcons():v.get("icon"),w=v.get("title")||{},x,S;rt(_)?(x={},x[g]=_):x=_,rt(w)?(S={},S[g]=w):S=w;var T=v.iconPaths={};W(x,function(A,C){var M=Ug(A,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(m.getItemStyle());var E=M.ensureState("emphasis");E.style=y.getItemStyle();var D=new pr({style:{text:S[C],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});M.setTextContent(D),$g({el:M,componentModel:r,itemName:C,formatterParamsExtra:{title:S[C]}}),M.__title=S[C],M.on("mouseover",function(){var P=y.getItemStyle(),L=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),M.setTextConfig({position:y.get("textPosition")||L}),D.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),D.hide()}),(v.get(["iconStatus",C])==="emphasis"?Hu:Gu)(M),o.add(M),M.on("click",ot(p.onclick,p,n,a,C)),T[C]=M})}SIe(o,r,a),o.add(nJ(o.getBoundingRect(),r)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=v.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Tt(_)&&p){var w=_.style||(_.style={}),x=r1(p,pr.makeFont(w)),S=v.x+o.x,T=v.y+o.y+s,A=!1;T+x.height>a.getHeight()&&(m.position="top",A=!0);var C=A?-5-x.height:s+10;S+x.width/2>a.getWidth()?(m.position=["100%",C],w.align="right"):S-x.width/2<0&&(m.position=[0,C],w.align="left")}})},t.prototype.updateView=function(r,n,a,i){W(this._features,function(o){o instanceof jo&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(r,n){W(this._features,function(a){a instanceof jo&&a.remove&&a.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){W(this._features,function(a){a instanceof jo&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(rn);function AIe(e){return e.indexOf("my")===0}const TIe=xIe;var CIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Cr.browser;if(Tt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=v.length,m=new Uint8Array(g);g--;)m[g]=v.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var w=_.contentWindow,x=w.document;x.open("image/svg+xml","replace"),x.write(v),x.close(),w.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var S=a.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',A=window.open();A.document.write(T),A.document.title=i}},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(jo);const EIe=CIe;var p8="__ec_magicType_stack__",MIe=[["line","bar"],["stack"]],DIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return W(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(g8[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=g8[a](d,h,f,i);v&&(yt(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",_=f.getReferringComponents(y,ia).models[0],w=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=w;x++)s[y][w]=s[y][w]||{};s[y][w].boundaryGap=a==="bar"}}};W(MIe,function(f){tr(f,a)>=0&&W(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=st({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(jo),g8={line:function(e,t,r,n){if(e==="bar")return st({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return st({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===p8;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),st({id:t,stack:a?"":p8},n.get(["option","stack"])||{},!0)}};il({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const PIe=DIe;var uT=new Array(60).join("-"),ig=" ";function LIe(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function IIe(e){var t=[];return W(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(Fe(r.series,function(h){return h.name})),l=[a.model.getCategories()];W(r.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(ig)],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(ig))}t.push(u.join(`
|
||
`))}),t.join(`
|
||
|
||
`+uT+`
|
||
|
||
`)}function RIe(e){return Fe(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+ig:"")+a.join(ig))}),n.join(`
|
||
`)}).join(`
|
||
|
||
`+uT+`
|
||
|
||
`)}function OIe(e){var t=LIe(e);return{value:Yr([IIe(t.seriesGroupByCategoryAxis),RIe(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
||
`+uT+`
|
||
|
||
`),meta:t.meta}}function qx(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kIe(e){var t=e.slice(0,e.indexOf(`
|
||
`));if(t.indexOf(ig)>=0)return!0}var PL=new RegExp("["+ig+"]+","g");function NIe(e){for(var t=e.split(/\n+/g),r=qx(t.shift()).split(PL),n=[],a=Fe(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=qx(t[i]).split(PL);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function BIe(e){for(var t=e.split(/\n+/g),r=qx(t.shift()),n=[],a=0;a<t.length;a++){var i=qx(t[a]);if(i){var o=i.split(PL),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function FIe(e,t){var r=e.split(new RegExp(`
|
||
*`+uT+`
|
||
*`,"g")),n={series:[]};return W(r,function(a,i){if(kIe(a)){var o=NIe(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=BIe(a);n.series.push(o)}}),n}var VIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.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=OIe(r);if(Tt(f)){var v=f(n.getOption());rt(v)?u.innerHTML=v:Xp(v)&&u.appendChild(v)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var x=this;function S(){a.removeChild(o),x._dom=null}dP(_,"click",S),dP(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){S();return}var T;try{Tt(d)?T=d(u,n.getOption()):T=FIe(c.value,g)}catch(A){throw S(),new Error("Data view format error "+A)}T&&n.dispatchAction({type:"changeDataView",newOption:T}),S()}),_.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=_.style.cssText=y,!i.get("readOnly")&&m.appendChild(w),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(jo);function zIe(e,t){return Fe(e,function(r,n){var a=t&&t[n];if(Mt(a)&&!Ne(a)){var i=Mt(r)&&!Ne(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=yt(r,a),o&&delete r.name,r}else return r})}il({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];W(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(Ie({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:zIe(n.data,i)})}}),t.mergeOption(yt({series:r},e.newOption))});const HIe=VIe;var aJ=W,iJ=Pr();function GIe(e,t){var r=SN(e);aJ(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function UIe(e){var t=SN(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return aJ(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function $Ie(e){iJ(e).snapshots=null}function WIe(e){return SN(e).length}function SN(e){var t=iJ(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var YIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){$Ie(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(jo);il({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const jIe=YIe;var KIe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],XIe=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=m8(r,t);W(ZIe,function(o,s){(!n||!n.include||tr(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=pM[n.brushType](0,i,a);n.__rangeOffset={offset:w8[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){W(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&W(i.coordSyses,function(o){var s=pM[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){W(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=pM[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?w8[n.brushType](i.values,o.offset,qIe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return Fe(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:dQ(a),isTargetByCursor:vQ(a,t,n.coordSysModel),getLinearBrushOtherExtent:hQ(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&tr(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=m8(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<y8.length;l++)if(y8[l](a,o))return o}return!0},e}();function LL(e){return e[0]>e[1]&&e.reverse(),e}function m8(e,t){return Wy(e,t,{includeMainTypes:KIe})}var ZIe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=_t(),o={},s={};!r&&!n&&!a||(W(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),W(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),W(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];W(u.getCartesians(),function(f,d){(tr(r,f.getAxis("x").model)>=0||tr(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:_8.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){W(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:_8.geo})})}},y8=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],_8={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(uf(e)),t}},pM={lineX:zt(b8,0),lineY:zt(b8,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[LL([a[0],i[0]]),LL([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Fe(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);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 b8(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=LL(Fe([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var w8={lineX:zt(S8,0),lineY:zt(S8,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Fe(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function S8(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function qIe(e,t){var r=x8(e),n=x8(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function x8(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const xN=XIe;var IL=W,QIe=bge("toolbox-dataZoom_"),JIe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new nN(a.getZr()),this._brushController.on("brush",ot(this._onBrush,this)).mount()),rRe(r,n,this,i,a),tRe(r,n)},t.prototype.onclick=function(r,n,a){eRe[a].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new xN(AN(this.model),i,{include:["grid"]});o.matchOutputRanges(n,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)}}),GIe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,v=l(u,h,i),p=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=sv(0,f.slice(),d.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];IL(r,function(a,i){n.push(Pt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(jo),eRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(UIe(this.ecModel))}};function AN(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function tRe(e,t){e.setIconStatus("back",WIe(t)>1?"emphasis":"normal")}function rRe(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new xN(AN(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}qye("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=AN(n),o=Wy(e,i);IL(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),IL(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:QIe+u+f};d[c]=f,a.push(d)}return a});const nRe=JIe;function aRe(e){e.registerComponentModel(wIe),e.registerComponentView(TIe),ap("saveAsImage",EIe),ap("magicType",PIe),ap("dataView",HIe),ap("dataZoom",nRe),ap("restore",jIe),Dt(_Ie)}var iRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(sr);const oRe=iRe;function oJ(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function sJ(e){if(Cr.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var lJ=sJ(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),sRe=sJ(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function uJ(e,t){if(!e)return t;t=KO(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function lRe(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var uRe=uJ(sRe,"transition"),TN=uJ(lJ,"transform"),cRe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Cr.transform3dSupported?"will-change:transform;":"");function fRe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function dRe(e,t,r){if(!rt(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Hh(t);var i=fRe(r),o=Math.max(Math.round(a)*1.5,6),s="",l=TN+":",u;tr(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function hRe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=Cr.transformSupported?","+TN+n:",left"+n+",top"+n),uRe+":"+a}function A8(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Cr.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Cr.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+TN+":"+o+";":[["top",0],["left",0],[lJ,o]]}function vRe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),W(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function pRe(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=cX(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(hRe(a,r)),i&&n.push("background-color:"+i),W(["width","color","radius"],function(h){var v="border-"+h,p=KO(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(vRe(c)),f!=null&&n.push("padding:"+nv(f).join("px ")+"px"),n.join(";")+";"}function T8(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&Fve(e,o,document.body,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var gRe=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Cr.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;T8(this._styleCoord,i,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();zo(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=lRe(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=cRe+pRe(t,!this._firstShow,this._longHide)+A8(i[0],i[1],!0)+("border-color:"+Hh(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(rt(i)&&n.get("trigger")==="item"&&!oJ(n)&&(s=dRe(n,a,i)),rt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Ne(t)||(t=[t]);for(var l=0;l<t.length;l++)Xp(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(T8(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=A8(n[0],n[1]);W(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Cr.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ot(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const mRe=gRe;var yRe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),E8(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;Mt(t)&&Gr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new pr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:cX(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),W(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),W(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=C8(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;E8(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Ic(i.borderWidth||0),s=C8(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ot(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Ic(e){return Math.max(0,e)}function C8(e){var t=Ic(e.shadowBlur||0),r=Ic(e.shadowOffsetX||0),n=Ic(e.shadowOffsetY||0);return{left:Ic(t-r),right:Ic(t+r),top:Ic(t-n),bottom:Ic(t+n)}}function E8(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const _Re=yRe;var bRe=new br({shape:{x:-1,y:-1,width:2,height:2}}),wRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(Cr.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=Ege(a.get("renderMode"));this._tooltipContent=i==="richText"?new _Re(n):new mRe(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(r,n,a){if(!(Cr.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Qg(this,"_updatePosition",50,"fixRate"):Y0(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");YQ("itemTooltip",this._api,ot(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.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(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||Cr.node||!a.getDom())){var o=M8(i,a);this._ticket="";var s=i.dataByCoordSys,l=TRe(i,n,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=bRe;c.x=i.x,c.y=i.y,c.update(),Ht(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(r,n,a,i))return;var f=jQ(i,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,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(M8(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Ym([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){this._lastDataByCoordSys=null;var s,l;th(a,function(u){if(Ht(u).dataIndex!=null)return s=u,!0;if(Ht(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=ot(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ym([n.tooltipOption],i),l=this._renderMode,u=[],c=La("section",{blocks:[],noHeader:!0}),f=[],d=new eE;W(r,function(y){W(y.dataByAxis,function(_){var w=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!w||x==null)){var S=UQ(x,w.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=La("section",{header:S,noHeader:!Qo(S),sortBlocks:!0,blocks:[]});c.blocks.push(T),W(_.seriesDataIndices,function(A){var C=a.getSeriesByIndex(A.seriesIndex),M=A.dataIndexInside,E=C.getDataParams(M);if(!(E.dataIndex<0)){E.axisDim=_.axisDim,E.axisIndex=_.axisIndex,E.axisType=_.axisType,E.axisId=_.axisId,E.axisValue=Tk(w.axis,{value:x}),E.axisValueLabel=S,E.marker=d.makeTooltipMarker("item",Hh(E.color),l);var D=vF(C.formatTooltip(M,!0,null)),P=D.frag;if(P){var L=Ym([C],i).get("valueFormatter");T.blocks.push(L?Ie({valueFormatter:L},P):P)}D.text&&f.push(D.text),u.push(E)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),p=bF(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
|
||
|
||
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=Ht(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,p=Ym([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new eE;m.marker=y.makeTooltipMarker("item",Hh(m.color),h);var _=vF(u.formatTooltip(c,!1,f)),w=p.get("order"),x=p.get("valueFormatter"),S=_.frag,T=S?bF(x?Ie({valueFormatter:x},S):S,y,h,w,i.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,A,r.offsetX,r.offsetY,r.position,r.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=Ht(n),o=i.tooltipConfig,s=o.option||{};if(rt(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=r.positionDefault,d=Ym(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new eE;this._showOrMove(d,function(){var g=Pt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(rt(d)){var g=r.ecModel.get("useUTC"),m=Ne(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=c1(m.axisValue,h,g)),h=HA(h,a,!0)}else if(Tt(d)){var _=ot(function(w,x){w===this._ticket&&(f.setContent(x,c,r,p,l),this._updatePosition(r,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,_)}else h=d;f.setContent(h,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||Ne(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Ne(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Tt(n)&&(n=n([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Ne(n))a=Je(n[0],u),i=Je(n[1],c);else if(Mt(n)){var p=n;p.width=f[0],p.height=f[1];var g=kn(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(rt(n)&&l){var m=ARe(n,v,f,r.get("borderWidth"));a=m[0],i=m[1]}else{var m=SRe(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=D8(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=D8(h)?f[1]/2:h==="bottom"?f[1]:0),oJ(r)){var m=xRe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&W(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&W(u,function(d,h){var v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&W(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&W(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],w=i[y];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Cr.node||!n.getDom()||(Y0(this,"_updatePosition"),this._tooltipContent.dispose(),EL("itemTooltip",n))},t.type="tooltip",t}(rn);function Ym(e,t,r){var n=t.ecModel,a;r?(a=new $r(r,n,n),a=new $r(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof $r&&(o=o.get("tooltip",!0)),rt(o)&&(o={formatter:o}),o&&(a=new $r(o,a,n)))}return a}function M8(e,t){return e.dispatchAction||ot(t.dispatchAction,t)}function SRe(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function xRe(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function ARe(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function D8(e){return e==="center"||e==="middle"}function TRe(e,t,r){var n=MO(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=n1(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ht(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const CRe=wRe;function ERe(e){Dt(S1),e.registerComponentModel(oRe),e.registerComponentView(CRe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Wn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Wn)}var MRe=["rect","polygon","keep","clear"];function DRe(e,t){var r=tn(e?e.brush:[]);if(r.length){var n=[];W(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=e&&e.toolbox;Ne(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),PRe(s),t&&!s.length&&s.push.apply(s,MRe)}}function PRe(e){var t={};W(e,function(r){t[r]=1}),e.length=0,W(t,function(r,n){e.push(n)})}var P8=W;function L8(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function RL(e,t,r){var n={};return P8(t,function(i){var o=n[i]=a();P8(e[i],function(s,l){if(qa.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new qa(u),l==="opacity"&&(u=Pt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new qa(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function cJ(e,t,r){var n;W(r,function(a){t.hasOwnProperty(a)&&L8(t[a])&&(n=!0)}),n&&W(r,function(a){t.hasOwnProperty(a)&&L8(t[a])?e[a]=Pt(t[a]):delete e[a]})}function LRe(e,t,r,n,a,i){var o={};W(e,function(f){var d=qa.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return sk(r,s,f)}function u(f,d){bX(r,s,f,d)}i==null?r.each(c):r.each([i],c);function c(f,d){s=i==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),p=t[v],g=o[v],m=0,y=g.length;m<y;m++){var _=g[m];p[_]&&p[_].applyVisual(f,l,u)}}}function IRe(e,t,r,n){var a={};return W(e,function(i){var o=qa.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return sk(s,f,x)}function c(x,S){bX(s,f,x,S)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=n!=null?d.get(l,f):f,p=r(v),g=t[p],m=a[p],y=0,_=m.length;y<_;y++){var w=m[y];g[w]&&g[w].applyVisual(v,u,c)}}}}}function RRe(e){var t=e.brushType,r={point:function(n){return I8[t].point(n,r,e)},rect:function(n){return I8[t].rect(n,r,e)}};return r}var I8={lineX:R8(0),lineY:R8(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Ud(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=n[0];if(Ud(n,a,i)||Ud(n,a+o,i)||Ud(n,a,i+s)||Ud(n,a+o,i+s)||Xt.create(e).contain(l[0],l[1])||yy(a,i,a+o,i,n)||yy(a,i,a,i+s,n)||yy(a+o,i,a+o,i+s,n)||yy(a,i+s,a+o,i+s,n))return!0}}};function R8(e){var t=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[e];return jm(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),jm(s[0],o)||jm(s[1],o)||jm(o[0],s)||jm(o[1],s)}}}}function jm(e,t){return t[0]<=e&&e<=t[1]}var O8=["inBrush","outOfBrush"],gM="__ecBrushSelect",OL="__ecInBrushSelectEvent";function fJ(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new xN(t.option,e);r.setInputRanges(t.areas,e)})}function ORe(e,t,r){var n=[],a,i;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),fJ(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Pt(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],v=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=Fe(o.areas,function(x){var S=FRe[x.brushType],T=yt({boundingRect:S?S(x):void 0},x);return T.selectors=RRe(T),T}),g=RL(o.option,O8,function(x){x.mappingMethod="fixed"});Ne(c)&&W(c,function(x){f[x]=1});function m(x){return c==="all"||!!f[x]}function y(x){return!!x.length}e.eachSeries(function(x,S){var T=h[S]=[];x.subType==="parallel"?_(x,S):w(x,S,T)});function _(x,S){var T=x.coordinateSystem;v=v||T.hasAxisBrushed(),m(S)&&T.eachActiveState(x.getData(),function(A,C){A==="active"&&(d[C]=1)})}function w(x,S,T){if(!(!x.brushSelector||BRe(o,S))&&(W(p,function(C){o.brushTargetManager.controlSeries(C,x,e)&&T.push(C),v=v||y(T)}),m(S)&&y(T))){var A=x.getData();A.each(function(C){k8(x,T,A,C)&&(d[C]=1)})}}e.eachSeries(function(x,S){var T={seriesId:x.id,seriesIndex:S,seriesName:x.name,dataIndex:[]};l.selected.push(T);var A=h[S],C=x.getData(),M=m(S)?function(E){return d[E]?(T.dataIndex.push(C.getRawIndex(E)),"inBrush"):"outOfBrush"}:function(E){return k8(x,A,C,E)?(T.dataIndex.push(C.getRawIndex(E)),"inBrush"):"outOfBrush"};(m(S)?v:y(A))&&LRe(O8,g,C,M)})}),kRe(t,a,i,n,r)}function kRe(e,t,r,n,a){if(a){var i=e.getZr();if(!i[OL]){i[gM]||(i[gM]=NRe);var o=Qg(i,gM,r,t);o(e,n)}}}function NRe(e,t){if(!e.isDisposed()){var r=e.getZr();r[OL]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[OL]=!1}}function k8(e,t,r,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(n,r,o.selectors,o))return!0}}function BRe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(Ne(r)?tr(r,t)<0:t!==r)}var FRe={rect:function(e){return N8(e.range)},polygon:function(e){for(var t,r=e.range,n=0,a=r.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=r[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&N8(t)}};function N8(e){return new Xt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var VRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new nN(n.getZr())).on("brush",ot(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){fJ(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Pt(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Pt(a),$from:n})},t.type="brush",t}(rn);const zRe=VRe;var HRe="#ddd",GRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&cJ(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:HRe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Fe(r,function(n){return B8(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=B8(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(sr);function B8(e,t){return st({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new $r(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const URe=GRe;var $Re=["rect","polygon","lineX","lineY","keep","clear"],WRe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,W(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return W(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:$Re.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:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(jo);const YRe=WRe;function jRe(e){e.registerComponentView(zRe),e.registerComponentModel(URe),e.registerPreprocessor(DRe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ORe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Wn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Wn),ap("brush",YRe)}var KRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(sr),XRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Qt(r.get("textBaseline"),r.get("textVerticalAlign")),c=new pr({style:Xr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new pr({style:Xr(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){Sx(v,"_"+r.get("target"))}),p&&h.on("click",function(){Sx(p,"_"+r.get("subtarget"))}),Ht(c).eventData=Ht(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),d&&i.add(h);var m=i.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=kn(y,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=i.getBoundingRect();var x=_.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var T=new br({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(rn);function ZRe(e){e.registerComponentModel(KRe),e.registerComponentView(XRe)}var qRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],W(n,function(u,c){var f=ha(zg(u),""),d;Mt(u)?(d=Pt(u),d.value=c):d=c,o.push(d),i.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Dn([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(sr);const F8=qRe;var dJ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Bf(F8.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(F8);Kn(dJ,nk.prototype);const QRe=dJ;var JRe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(rn);const eOe=JRe;var tOe=function(e){De(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(gi);const rOe=tOe;var mM=Math.PI,V8=Pr(),nOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return La("nameValue",{noName:!0,value:c})},W(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=iOe(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":rt(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:mM/2},f=i==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),v=h?d.get("itemSize"):0,p=h?d.get("itemGap"):0,g=v+p,m=r.get(["label","rotate"])||0;m=m*mM/180;var y,_,w,x=d.get("position",!0),S=h&&d.get("showPlayBtn",!0),T=h&&d.get("showPrevBtn",!0),A=h&&d.get("showNextBtn",!0),C=0,M=f;x==="left"||x==="bottom"?(S&&(y=[0,0],C+=g),T&&(_=[C,0],C+=g),A&&(w=[M-v,0],M-=g)):(S&&(y=[M-v,0],M-=g),T&&(_=[0,0],C+=g),A&&(w=[M-v,0],M-=g));var E=[C,M];return r.get("inverse")&&E.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:_,nextBtnPosition:w,axisExtent:E,controlSize:v,controlGap:p}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=lo(),l=o.x,u=o.y+o.height;Zs(s,s,[-l,-u]),Of(s,s,-mM/2),Zs(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(a.getBoundingRect()),d=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=c[0][0];var p=r.labelPosOpt;if(p==null||rt(p)){var g=p==="+"?0:1;_(h,f,c,1,g),_(v,d,c,1,1-g)}else{var g=p>=0?0:1;_(h,f,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=r.rotation,m(a),m(i);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function _(w,x,S,T,A){w[T]+=S[T][A]-x[T][A]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=aOe(n,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 rOe("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ot;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Ta({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ie({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Ta({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:yt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],W(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:ot(o._changeTimeline,o,u.value)},g=z8(f,d,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),lf(g);var m=Ht(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],W(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new pr({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ot(o._changeTimeline,o,f),silent:!1,style:Xr(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=Xr(v),m.ensureState("progress").style=Xr(p),n.add(m),lf(m),V8(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(r.nextBtnPosition,"next",ot(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ot(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ot(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var m=qs(Qt(i.get(["controlStyle",v+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=oOe(i,v+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),lf(_)}}},t.prototype._renderCurrentPointer=function(r,n,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=ot(u._handlePointerDrag,u),f.ondragend=ot(u._handlePointerDragend,u),H8(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){H8(f,u._progressLine,s,a,i)}};this._currentPointer=z8(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=wo(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;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return Us(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<a&&(a=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<r);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",V8(a[i]).dataIndex<=r)},t.type="timeline.slider",t}(eOe);function aOe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new wk({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new cZ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new bf}}function iOe(e,t){return kn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function oOe(e,t,r,n){var a=n.style,i=Ug(e.get(["controlStyle",t]),n||{},new Xt(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function z8(e,t,r,n,a,i){var o=t.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=jn(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=st({rectHover:!0,z2:100},n,!0);var u=Jg(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=av(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function H8(e,t,r,n,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const sOe=nOe;function lOe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var a=r.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),yt({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function uOe(e){var t=e&&e.timeline;Ne(t)||(t=t?[t]:[]),W(t,function(r){r&&cOe(r)})}function cOe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),G8(e),Yd(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});Yd(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!Yd(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}W(e.data||[],function(a){Mt(a)&&!Ne(a)&&(!Yd(a,"value")&&Yd(a,"name")&&(a.value=a.name),G8(a))})}function G8(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};W(n,function(o,s){!i[s]&&!Yd(a,s)&&(a[s]=o)}),r.label&&!Yd(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function Yd(e,t){return e.hasOwnProperty(t)}function fOe(e){e.registerComponentModel(QRe),e.registerComponentView(sOe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),lOe(e),e.registerPreprocessor(uOe)}function CN(e,t){if(!e)return!1;for(var r=Ne(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function qb(e){Bh(e,"label",["show"])}var Qb=Pr(),hJ=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Cr.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Qb(s)[o];if(!l||!l.data){Qb(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&qb(l),W(l.data,function(c){c instanceof Array?(qb(c[0]),qb(c[1])):qb(c)}),u=this.createMarkerModelFromSeries(l,this,n),Ie(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Qb(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return La("section",{header:this.name,blocks:[La("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return Qb(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(sr);Kn(hJ,nk.prototype);const xf=hJ;var dOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(xf);const hOe=dOe;function kL(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function vOe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Jb(e,t,r,n,a,i){var o=[],s=$u(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=EN(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(r,c),o[i]=t.get(l,c);var f=t.get(n,c),d=Ns(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var yM={min:zt(Jb,"min"),max:zt(Jb,"max"),average:zt(Jb,"average"),median:zt(Jb,"median")};function o_(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!vOe(t)&&!Ne(t.coord)&&Ne(a)){var i=vJ(t,r,n,e);if(t=Pt(t),t.type&&yM[t.type]&&i.baseAxis&&i.valueAxis){var o=tr(a,i.baseAxis.dim),s=tr(a,i.valueAxis.dim),l=yM[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Ne(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)yM[u[c]]&&(u[c]=EN(r,r.mapDimension(a[c]),u[c]));return t}}function vJ(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(pOe(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function pOe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function s_(e,t){return e&&e.containData&&t.coord&&!kL(t)?e.containData(t.coord):!0}function gOe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!kL(t)&&!kL(r)?e.containZone(t.coord,r.coord):!0}function pJ(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return ff(o,t[i])}:function(r,n,a,i){return ff(r.value,t[i])}}function EN(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var _M=Pr(),mOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=_t()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){_M(s).keep=!1}),n.eachSeries(function(s){var l=xf.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!_M(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){_M(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;W(r,function(i){var o=xf.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?zj(l):OO(l))})}})},t.type="marker",t}(rn);const MN=mOe;function U8(e,t,r){var n=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=Je(i.get("x"),r.getWidth()),l=Je(i.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(n){var u=e.get(n.dimensions[0],a),c=e.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var yOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=xf.getMarkerModelFromSeries(i,"markPoint");o&&(U8(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new g1),f=_Oe(o,r,n);n.setData(f),U8(n.getData(),r,i),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Tt(v)||Tt(p)||Tt(g)||Tt(m)){var _=n.getRawValue(d),w=n.getDataParams(d);Tt(v)&&(v=v(_,w)),Tt(p)&&(p=p(_,w)),Tt(g)&&(g=g(_,w)),Tt(m)&&(m=m(_,w))}var x=h.getModel("itemStyle").getItemStyle(),S=f1(l,"color");x.fill||(x.fill=S),f.setItemVisual(d,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Ht(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(MN);function _Oe(e,t,r){var n;e?n=Fe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Ie(Ie({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Dn(n,r),i=Fe(r.get("data"),zt(o_,t));e&&(i=Yr(i,zt(s_,e)));var o=pJ(!!e,n);return a.initData(i,null,o),a}const bOe=yOe;function wOe(e){e.registerComponentModel(hOe),e.registerComponentView(bOe),e.registerPreprocessor(function(t){CN(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var SOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(xf);const xOe=SOe;var ew=Pr(),AOe=function(e,t,r,n){var a=e.getData(),i;if(Ne(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Aa(n.yAxis,n.xAxis);else{var u=vJ(n,a,t,e);s=u.valueAxis;var c=bk(a,u.valueDataDim);l=EN(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Pt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var p=r.get("precision");p>=0&&Mr(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[f]=v.coord[f]=l,i=[h,v,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[o_(e,i[0]),o_(e,i[1]),Ie({},i[2])];return g[2].type=g[2].type||null,st(g[2],g[0]),st(g[2],g[1]),g};function Qx(e){return!isNaN(e)&&!isFinite(e)}function $8(e,t,r,n){var a=1-e,i=n.dimensions[e];return Qx(t[a])&&Qx(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function TOe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&($8(1,r,n,e)||$8(0,r,n,e)))return!0}return s_(e,t[0])&&s_(e,t[1])}function bM(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Je(o.get("x"),a.getWidth()),u=Je(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(iv(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;Qx(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Qx(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var COe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=xf.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=ew(o).from,u=ew(o).to;l.each(function(c){bM(l,c,!0,i,a),bM(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new qk);this.group.add(c.group);var f=EOe(o,r,n),d=f.from,h=f.to,v=f.line;ew(n).from=d,ew(n).to=h,n.setData(v);var p=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Ne(p)||(p=[p,p]),Ne(g)||(g=[g,g]),Ne(m)||(m=[m,m]),Ne(y)||(y=[y,y]),f.from.each(function(w){_(d,w,!0),_(h,w,!1)}),v.each(function(w){var x=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),x.stroke==null&&(x.stroke=d.getItemVisual(w,"style").fill),v.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:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Ht(w).dataModel=n,w.traverse(function(x){Ht(x).dataModel=n})});function _(w,x,S){var T=w.getItemModel(x);bM(w,x,S,r,i);var A=T.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=f1(l,"color")),w.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Qt(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:Qt(T.get("symbolRotate",!0),m[S?0:1]),symbolSize:Qt(T.get("symbolSize"),g[S?0:1]),symbol:Qt(T.get("symbol",!0),p[S?0:1]),style:A})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(MN);function EOe(e,t,r){var n;e?n=Fe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Ie(Ie({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Dn(n,r),i=new Dn(n,r),o=new Dn([],r),s=Fe(r.get("data"),zt(AOe,t,e,r));e&&(s=Yr(s,zt(TOe,e)));var l=pJ(!!e,n);return a.initData(Fe(s,function(u){return u[0]}),null,l),i.initData(Fe(s,function(u){return u[1]}),null,l),o.initData(Fe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const MOe=COe;function gJ(e){e.registerComponentModel(xOe),e.registerComponentView(MOe),e.registerPreprocessor(function(t){CN(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var DOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(xf);const POe=DOe;var tw=Pr(),LOe=function(e,t,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=o_(e,a),s=o_(e,i),l=o.coord,u=s.coord;l[0]=Aa(l[0],-1/0),l[1]=Aa(l[1],-1/0),u[0]=Aa(u[0],1/0),u[1]=Aa(u[1],1/0);var c=pA([{},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 Jx(e){return!isNaN(e)&&!isFinite(e)}function W8(e,t,r,n){var a=1-e;return Jx(t[a])&&Jx(r[a])}function IOe(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return iv(e,"cartesian2d")?r&&n&&(W8(1,r,n)||W8(0,r,n))?!0:gOe(e,a,i):s_(e,a)||s_(e,i)}function Y8(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Je(o.get(r[0]),a.getWidth()),u=Je(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),h=i.clampData(f),v=[];r[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var p=e.get(r[0],t),g=e.get(r[1],t),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(iv(i,"cartesian2d")){var y=i.getAxis("x"),_=i.getAxis("y"),p=e.get(r[0],t),g=e.get(r[1],t);Jx(p)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):Jx(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var j8=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ROe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=xf.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Fe(j8,function(f){return Y8(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ot});this.group.add(c.group),this.markKeep(c);var f=OOe(o,r,n);n.setData(f),f.each(function(d){var h=Fe(j8,function(A){return Y8(f,d,A,r,i)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),m=p.getExtent(),y=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],_=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];wo(y),wo(_);var w=!(g[0]>y[1]||g[1]<y[0]||m[0]>_[1]||m[1]<_[0]),x=!w;f.setItemLayout(d,{points:h,allClipped:x});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),T=f1(l,"color");S.fill||(S.fill=T,rt(S.fill)&&(S.fill=I0(S.fill,.4))),S.stroke||(S.stroke=T),f.setItemVisual(d,"style",S)}),f.diff(tw(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new Ri({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=tw(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?Lr(v,{shape:{points:p.points}},n,d):v=new Ri({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=tw(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),p=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),ri(d,Pa(v),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:rt(p.fill)?I0(p.fill,1):"#000"}),ti(d,v),Gn(d,null,null,v.get(["emphasis","disabled"])),Ht(d).dataModel=n}),tw(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(MN);function OOe(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=Fe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Ie(Ie({},f),{name:u,ordinalMeta:null})});a=Fe(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new Dn(a,r)}else a=[{name:"value",type:"float"}],n=new Dn(a,r);var s=Fe(r.get("data"),zt(LOe,t,e,r));e&&(s=Yr(s,zt(IOe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return ff(h,a[d])}:function(u,c,f,d){return ff(u.value,a[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}const kOe=ROe;function NOe(e){e.registerComponentModel(POe),e.registerComponentView(kOe),e.registerPreprocessor(function(t){CN(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var BOe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},FOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Ne(n)&&W(n,function(i,o){rt(i)&&(i={type:i}),n[o]=st(i,BOe(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&EO(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=_t(),s=Fe(i,function(l){return(rt(l)||Mr(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new $r(l,this,this.ecModel))},this);this._data=Yr(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;W(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;W(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;W(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&tr(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(sr);const NL=FOe;var Nv=zt,BL=W,rw=Ot,VOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new rw),this.group.add(this._selectorGroup=new rw),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),h=kn(c,f,d),v=this.layoutInner(r,o,h,i,l,u),p=kn(yt({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=nJ(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=_t(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),BL(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
|
||
`)){var g=new rw;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),x=y.getVisual("style"),S=this._createItem(m,p,v,h,n,r,_,x,w,f,i);S.on("click",Nv(K8,p,null,i,d)).on("mouseover",Nv(FL,m.name,null,i,d)).on("mouseout",Nv(VL,m.name,null,i,d)),c.set(p,!0)}else a.eachRawSeries(function(T){if(!c.get(p)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(p))return;var C=A.indexOfName(p),M=A.getItemVisual(C,"style"),E=A.getItemVisual(C,"legendIcon"),D=Za(M.fill);D&&D[3]===0&&(D[3]=.2,M=Ie(Ie({},M),{fill:Gs(D,"rgba")}));var P=this._createItem(T,p,v,h,n,r,{},M,E,f,i);P.on("click",Nv(K8,null,p,i,d)).on("mouseover",Nv(FL,null,p,i,d)).on("mouseout",Nv(VL,null,p,i,d)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();BL(r,function(u){var c=u.type,f=new pr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);ri(f,{normal:d,emphasis:h},{defaultText:u.title}),lf(f)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var w=zOe(c,i,l,u,h,g,d),x=new rw,S=i.getModel("textStyle");if(Tt(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;x.add(HOe({itemWidth:v,itemHeight:p,icon:c,iconRotate:T,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?v+5:-5,C=s,M=o.get("formatter"),E=n;rt(M)&&M?E=M.replace("{name}",n??""):Tt(M)&&(E=M(n));var D=g?S.getTextColor():i.get("inactiveColor");x.add(new pr({style:Xr(S,{text:E,x:A,y:p/2,fill:D,align:C,verticalAlign:"middle"},{inheritColor:D})}));var P=new br({shape:x.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&$g({el:P,componentModel:o,itemName:n,itemTooltipOption:L.option}),x.add(P),x.eachChild(function(I){I.silent=!0}),P.silent=!f,this.getContentGroup().add(x),lf(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Sh(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Sh("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(rn);function zOe(e,t,r,n,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),BL(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:eg(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function HOe(e){var t=e.icon||"roundRect",r=jn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function K8(e,t,r,n){VL(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),FL(e,t,r,n)}function mJ(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function FL(e,t,r,n){mJ(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function VL(e,t,r,n){mJ(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const yJ=VOe;function GOe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Km(e,t,r){var n={},a=e==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();W(s,function(l){var u=l.get("name");if(!(u===`
|
||
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function UOe(e){e.registerAction("legendToggleSelect","legendselectchanged",zt(Km,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",zt(Km,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",zt(Km,"inverseSelect")),e.registerAction("legendSelect","legendselected",zt(Km,"select")),e.registerAction("legendUnSelect","legendunselected",zt(Km,"unSelect"))}function _J(e){e.registerComponentModel(NL),e.registerComponentView(yJ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,GOe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),UOe(e)}var $Oe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=jg(r);e.prototype.init.call(this,r,n,a),X8(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),X8(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Bf(NL.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(NL);function X8(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,_f(t,r,{type:"box",ignoreSize:!!a})}const WOe=$Oe;var Z8=Ot,wM=["width","height"],SM=["x","y"],YOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Z8),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Z8)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=Ne(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new pr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=Ug(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ot(u._pageGo,u,m,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=wM[u],f=SM[u],d=wM[1-u],h=SM[1-u];o&&Sh("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Pt(a);o&&(m[c]=a[c]-p[c]-v);var y=this._layoutContentAndController(r,i,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+v;else{var _=p[c]+v;g[u]-=_,y[f]-=_}y[c]+=p[c]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Sh(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),Sh("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=Qt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var w=r.get("pageButtonPosition",!0);w==="end"?y[i]+=a[o]-v[o]:m[i]+=v[o]+_}y[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+y[1-i]),f.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=x[s],f.setClipPath(new br({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Lr(c,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),x},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;W(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",rt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=wM[o],l=SM[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=w(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=w(c[g]),(!_&&y.e>m.s+i||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=w(c[g]),(!_||!x(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function w(S){if(S){var T=S.getBoundingRect(),A=T[l]+S[l];return{s:A,e:A+T[s],i:S.__legendDataIndex}}}function x(S,T){return S.e>=T&&S.s<=T+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(yJ);const jOe=YOe;function KOe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function XOe(e){Dt(_J),e.registerComponentModel(WOe),e.registerComponentView(jOe),KOe(e)}function ZOe(e){Dt(_J),Dt(XOe)}var qOe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Bf(i_.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(i_);const QOe=qOe;var DN=Pr();function JOe(e,t,r){DN(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function eke(e,t){for(var r=DN(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||bJ(r,o))}}}function bJ(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function tke(e,t){var r={model:t,containsPoint:zt(nke,t),dispatchAction:zt(rke,e),dataZoomInfoMap:null,controller:null},n=r.controller=new b1(e.getZr());return W(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function rke(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function nke(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function ake(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function ike(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=DN(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=_t());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=eJ(i);W(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,tke(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=_t());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){bJ(a,i);return}var c=ake(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Qg(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var oke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),JOe(a,r,{pan:ot(xM.pan,this),zoom:ot(xM.zoom,this),scrollMove:ot(xM.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){eke(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(bN),xM={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=AM[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sv(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:q8(function(e,t,r,n,a,i){var o=AM[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:q8(function(e,t,r,n,a,i){var o=AM[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function q8(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(sv(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var AM={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const ske=oke;function wJ(e){wN(e),e.registerComponentModel(QOe),e.registerComponentView(ske),ike(e)}var lke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Bf(i_.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(i_);const uke=lke;var Xm=br,Q8=7,cke=1,TM=30,fke=7,Zm="horizontal",J8="vertical",dke=5,hke=["line","bar","candlestick","scatter"],vke={easing:"cubicOut",duration:100,delay:0},pke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ot(this._onBrush,this),this._onBrushEnd=ot(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Qg(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Y0(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ot;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?fke:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Zm?{right:s.width-o.x-o.width,top:s.height-TM-Q8-i,width:o.width,height:TM}:{right:Q8,top:o.y,width:TM,height:o.height},u=jg(r.option);W(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=kn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===J8&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=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===Zm&&!o?{scaleY:l?1:-1,scaleX:1}:a===Zm&&o?{scaleY:l?1:-1,scaleX:-1}:a===J8&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Xm({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Xm({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ot(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],v=[0,n[0]],p=[[n[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),y=0,_=Math.round(o.count()/n[0]),w;o.each([l],function(C,M){if(_>0&&M%_){y+=m;return}var E=C==null||isNaN(C)||C==="",D=E?0:Vr(C,f,h,!0);E&&!w&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!E&&w&&(p.push([y,0]),g.push([y,0])),p.push([y,D]),g.push([y,D]),y+=m,w=E}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function S(C){var M=x.getModel(C?"selectedDataBackground":"dataBackground"),E=new Ot,D=new Ri({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Fi({shape:{points:c},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(D),E.add(P),E}for(var T=0;T<3;T++){var A=S(T===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();W(l,function(u){if(!a&&!(n!==!0&&tr(hke,u.get("type"))<0)){var c=i.getComponent(Zc(o),s).axis,f=gke(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.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=n.filler=new Xm({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Xm({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:cke,fill:"rgba(0,0,0,0)"}})),W([0,1],function(_){var w=l.get("handleIcon");!Tx[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var x=jn(w,-1,0,2,2,null,!0);x.attr({cursor:eH(this._orient),draggable:!0,drift:ot(this._onDragMove,this,_),ondragend:ot(this._onDragEnd,this),onmouseover:ot(this._showDataInfo,this,!0),onmouseout:ot(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Je(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),lf(x);var A=l.get("handleColor");A!=null&&(x.style.fill=A),o.add(a[_]=x);var C=l.getModel("textStyle");r.add(i[_]=new pr({silent:!0,invisible:!0,style:Xr(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=d;if(f){var v=Je(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new br({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=n.moveHandleIcon=jn(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new br({invisible:!0,shape:{y:s[1]-y,height:v+y}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:eH(this._orient),drift:ot(this._onDragMove,this,"all"),ondragstart:ot(this._showDataInfo,this,!0),ondragend:ot(this._onDragEnd,this),onmouseover:ot(this._showDataInfo,this,!0),onmouseout:ot(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Vr(r[0],[0,100],n,!0),Vr(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];sv(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Vr(s.minSpan,l,o,!0):null,s.maxSpan!=null?Vr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=wo([Vr(i[0],o,l,!0),Vr(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=wo(a.slice()),o=this._size;W([0,1],function(h){var v=n.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.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]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.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 br,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=wo(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var p=uf(a.handles[v].parent,this.group),g=kA(v===0?"right":"left",p),m=this._handleWidth/2+dke,y=Us([d[v]+(v===0?-m:m),this._size[1]/2],p);i[v].setStyle({x:y[0],y:y[1],verticalAlign:o===Zm?"middle":g,align:o===Zm?g:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Tt(i)?i(r,s):rt(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,zu(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Us([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new qt(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=wo([Vr(a.x,o,s,!0),Vr(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(zu(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Xm({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(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?vke:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=eJ(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(bN);function gke(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function eH(e){return e==="vertical"?"ns-resize":"ew-resize"}const mke=pke;function SJ(e){e.registerComponentModel(uke),e.registerComponentView(mke),wN(e)}function yke(e){Dt(wJ),Dt(SJ)}var _ke={get:function(e,t,r){var n=Pt((bke[e]||{})[t]);return r&&Ne(n)?n[n.length-1]:n}},bke={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 xJ=_ke;var tH=qa.mapVisual,wke=qa.eachVisual,Ske=Ne,rH=W,xke=wo,Ake=Vr,Tke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&cJ(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ot(r,this),this.controllerVisuals=RL(this.option.controller,n,r),this.targetVisuals=RL(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=tn(r),n},t.prototype.eachTargetSeries=function(r,n){W(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Ne(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(rt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Tt(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+c[1]:r[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=xke([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var a=r.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});st(i,a),st(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){Ske(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var v=f[d],p=f[h];v&&!p&&(p=f[h]={},rH(v,function(g,m){if(qa.isValidType(m)){var y=xJ.get(m,"inactive",s);y!=null&&(p[m]=y,m==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";rH(this.stateList,function(m){var y=this.itemSize,_=f[m];_||(_=f[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=d&&Pt(d)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&Pt(h)||(s?y[0]:[y[0],y[0]])),_.symbol=tH(_.symbol,function(S){return S==="none"?g:S});var w=_.symbolSize;if(w!=null){var x=-1/0;wke(w,function(S){S>x&&(x=S)}),_.symbolSize=tH(w,function(S){return Ake(S,[0,x],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(sr);const e2=Tke;var nH=[20,140],Cke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=nH[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=nH[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Ne(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),W(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=wo((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=r)&&(n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=aH(this,"outOfRange",this.getExtent()),a=aH(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:r(h,v)})}for(var s=0,l=0,u=a.length,c=n.length;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[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]<n[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Bf(e2.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(e2);function aH(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,a=(r[1]-r[0])/n,i=r[0],o=[],s=0;s<=n&&i<r[1];s++)o.push(i),i+=a;return o.push(r[1]),o}const Eke=Cke;var Mke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,a,i){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,a,i)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,a=nv(n.get("padding")||0),i=r.getBoundingRect();r.add(new br({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:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,v){s[h]=v}var f=o.controllerVisuals[i||o.getValueState(r)],d=qa.prepareVisualTypes(f);return W(d,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),qa.dependsOn(h,n)&&v&&v.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api;GA(r,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(r,n,a,i){},t.type="visualMap",t}(rn);const AJ=Mke;var iH=[["left","right","width"],["top","bottom","height"]];function TJ(e,t,r){var n=e.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=iH[o],l=[0,null,10],u={},c=0;c<3;c++)u[iH[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=kn(u,i,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function cS(e,t){return W(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var gl=Vr,Dke=W,oH=Math.min,CM=Math.max,Pke=12,Lke=6,Ike=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.doRender=function(r,n,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var a=r.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,a){if(n){var i=n[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 pr({style:Xr(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=TJ(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Ot;u.add(c),c.add(a.outOfRange=sH()),c.add(a.inRange=sH(null,s?uH(this._orient):null,ot(this._dragHandle,this,"all",!1),ot(this._dragHandle,this,"all",!0))),c.setClipPath(new br({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=CM(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,d,o),this._createHandle(n,u,1,i,d,o)),this._createIndicator(n,u,i,d,o),r.add(u)},t.prototype._createHandle=function(r,n,a,i,o,s){var l=ot(this._dragHandle,this,a,!1),u=ot(this._dragHandle,this,a,!0),c=qs(r.get("handleSize"),i[0]),f=jn(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=uH(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){zu(m.event)}}),f.x=i[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Jd(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,v=new pr({cursor:d,draggable:!0,drift:l,onmousemove:function(m){zu(m.event)},ondragend:u,style:Xr(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var p=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=p,g.handleLabels[a]=v},t.prototype._createIndicator=function(r,n,a,i,o){var s=qs(r.get("indicatorSize"),a[0]),l=jn(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof Oa){var c=l.style;l.useStyle(Ie({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new pr({silent:!0,invisible:!0,style:Xr(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:Lke)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():lH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[gl(n[0],a,i,!0),gl(n[1],a,i,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];sv(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[gl(i[0],o,s,!0),gl(i[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new kr(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var a=100,i=[],o=(r[1]-r[0])/a;i.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new Ot(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();Dke([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=gl(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var v=Us(a.handleLabelPoints[c],uf(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,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(r,"color",d),v=this.getControllerVisual(r,"symbolSize"),p=gl(r,s,u,!0),g=l[0]-v/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var y=Us(c.indicatorLabelPoint,uf(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:S?w:"middle",align:S?"center":w});var T={x:g,y:p,style:{fill:h}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(T,C),_.animateTo(A,C)}else f.attr(T),_.attr(A);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var E=0;E<M.length;E++)this._api.enterBlur(M[E])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,i=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);i[1]=oH(CM(0,i[1]),a[1]),r._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();r=oH(CM(o[0],r),o[1]);var l=Rke(a,s,o),u=[r-l,r+l],c=gl(r,o,s,!0),f=[gl(u[0],o,s,!0),gl(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(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=[];(n||lH(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=xge(d,h);this._dispatchHighDown("downplay",cS(v[0],a)),this._dispatchHighDown("highlight",cS(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(th(r.target,function(l){var u=Ht(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this._api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",cS(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,a,i){var o=uf(n,i?null:this.group);return Ne(r)?Us(r,o,a):kA(r,o,a)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(AJ);function sH(e,t,r,n){return new Ri({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(a){zu(a.event)},ondragend:n})}function Rke(e,t,r){var n=Pke/2,a=e.get("hoverLinkDataSize");return a&&(n=gl(a,t,r,!0)/2),n}function lH(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function uH(e){return e==="vertical"?"ns-resize":"ew-resize"}const Oke=Ike;var kke={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Nke=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},Bke=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var a=e.pipelineContext;!n.isTargetSeries(e)||a&&a.large||r.push(IRe(n.stateList,n.targetVisuals,ot(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(ot(Fke,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function Fke(e,t,r,n){for(var a=t.targetVisuals[n],i=qa.prepareVisualTypes(a),o={color:f1(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,v){o[h]=v}}var cH=W;function Vke(e){var t=e&&e.visualMap;Ne(t)||(t=t?[t]:[]),cH(t,function(r){if(r){Bv(r,"splitList")&&!Bv(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&Ne(n)&&cH(n,function(a){Mt(a)&&(Bv(a,"start")&&!Bv(a,"min")&&(a.min=a.start),Bv(a,"end")&&!Bv(a,"max")&&(a.max=a.end))})}})}function Bv(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var fH=!1;function CJ(e){fH||(fH=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(kke,Nke),W(Bke,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Vke))}function EJ(e){e.registerComponentModel(Eke),e.registerComponentView(Oke),CJ(e)}var zke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Hke[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Pt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Fe(this._pieceList,function(l){return l=Pt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=qa.listVisualTypes(),i=this.isCategory();W(r.pieces,function(s){W(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),W(n,function(s,l){var u=!1;W(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&W(this.stateList,function(c){(r[c]||(r[c]={}))[l]=xJ.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,W(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;W(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Pt(r)},t.prototype.getValueState=function(r){var n=qa.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=qa.findPieceIndex(l,a);c===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=r(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return W(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Bf(e2.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(e2),Hke={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),CP(e),W(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;W(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),dH(t,e)},pieces:function(e){var t=this.option;W(t.pieces,function(r,n){Mt(r)||(r={value:r});var a={text:"",index:n};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var i=a.value=r.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]=r[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=qa.retrieveVisuals(r),e.push(a)},this),dH(t,e),CP(e),W(e,function(r){var n=r.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function dH(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const Gke=zke;var Uke=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Aa(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),W(c.viewPieceList,function(h){var v=h.piece,p=new Ot;p.onclick=ot(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=n.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);p.add(new pr({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(p)},this),f&&this._renderEndsText(r,f[1],u,d,l),Sh(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:cS(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return TJ(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new Ot,l=this.visualMapModel.textStyleModel;s.add(new pr({style:Xr(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Fe(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a){r.add(jn(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=Pt(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,W(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(AJ);const $ke=Uke;function MJ(e){e.registerComponentModel(Gke),e.registerComponentView($ke),CJ(e)}function Wke(e){Dt(EJ),Dt(MJ)}var Yke={label:{enabled:!0},decal:{show:!1}},hH=Pr(),jke={};function Kke(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Pt(Yke);st(n.label,e.getLocaleModel().get("aria"),!1),st(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=_t();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),hH(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Tt(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=GP(d.ecModel,d.name,jke,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",w(_,y))}else{var v=d.getRawData(),p={},g=hH(d).scope;h.each(function(x){var S=h.getRawIndex(x);p[S]=x});var m=v.count();v.each(function(x){var S=p[x],T=v.getName(x)||x+"",A=GP(d.ecModel,T,g,m),C=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",w(C,A))})}function w(x,S){var T=x?Ie(Ie({},S),x):S;return T.dirty=!0,T}})}}function i(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=yt(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(d,v),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],w=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),e.eachSeries(function(A,C){if(C<p){var M=void 0,E=A.get("name"),D=E?"withName":"withoutName";M=d>1?c.get(["series","multiple",D]):c.get(["series","single",D]),M=o(M,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var P=A.getData();if(P.count()>h){var L=c.get(["data","partialData"]);M+=o(L,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var I=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),R=[],B=0;B<P.count();B++)if(B<h){var k=P.getName(B),z=P.getValues(B),$=c.get(["data",k?"withName":"withoutName"]);R.push(o($,{name:k,value:z.join(I)}))}M+=R.join(I)+O,_.push(M)}});var x=c.getModel(["series","multiple","separator"]),S=x.get("middle"),T=x.get("end");g+=_.join(S)+T,f.setAttribute("aria-label",g)}}}function o(u,c){if(!rt(u))return u;var f=u;return W(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function Xke(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},W(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function Zke(e){e.registerPreprocessor(Xke),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Kke)}var vH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},qke=function(){function e(t){var r=this._condVal=rt(t)?new RegExp(t):CY(t)?t:null;if(r==null){var n="";Gr(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return rt(r)?this._condVal.test(t):Mr(r)?this._condVal.test(t+""):!1},e}(),Qke=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Jke=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),eNe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),tNe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),rNe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function PN(e,t){if(e===!0||e===!1){var r=new Qke;return r.value=e,r}var n="";return DJ(e)||Gr(n),e.and?pH("and",e,t):e.or?pH("or",e,t):e.not?nNe(e,t):aNe(e,t)}function pH(e,t,r){var n=t[e],a="";Ne(n)||Gr(a),n.length||Gr(a);var i=e==="and"?new Jke:new eNe;return i.children=Fe(n,function(o){return PN(o,r)}),i.children.length||Gr(a),i}function nNe(e,t){var r=e.not,n="";DJ(r)||Gr(n);var a=new tNe;return a.child=PN(r,t),a.child||Gr(n),a}function aNe(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=vr(e),o=e.parser,s=o?qK(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=lt(vH,u)?vH[u]:u,f=e[u],d=s?s(f):f,h=k0e(c,d)||c==="reg"&&new qke(d);h||Gr(r),a.push(h)}}a.length||Gr(r);var v=new rNe;return v.valueGetterParam=n,v.valueParser=s,v.getValue=t.getValue,v.subCondList=a,v}function DJ(e){return Mt(e)&&!ei(e)}var iNe=function(){function e(t,r){this._cond=PN(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function oNe(e,t){return new iNe(e,t)}var sNe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=oNe(e.config,{valueGetterAttrMap:_t({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;lt(s,"dimension")||Gr(l);var c=t.getDimensionInfo(u);return c||Gr(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},lNe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=tn(r);a.length||Gr(n);var i=[];W(a,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&Gr(n),d!=="asc"&&d!=="desc"&&Gr(n),v&&v!=="min"&&v!=="max"){var p="";Gr(p)}if(d!=="asc"&&d!=="desc"){var g="";Gr(g)}var m=t.getDimensionInfo(f);m||Gr(n);var y=h?qK(h):null;h&&!y&&Gr(n),i.push({dimIdx:m.index,parser:y,comparator:new JK(d,v)})});var o=t.sourceFormat;o!==fi&&o!==ys&&Gr(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var h=i[d],v=t.retrieveValueFromItem(c,h.dimIdx),p=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),p=h.parser(p));var g=h.comparator.evaluate(v,p);if(g!==0)return g}return 0}),{data:s}}};function uNe(e){e.registerTransform(sNe),e.registerTransform(lNe)}var cNe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new nX(this),yF(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),yF(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Ol},t}(sr),fNe=function(e){De(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(rn);function PJ(e){e.registerComponentModel(cNe),e.registerComponentView(fNe)}var vl=Hl.CMD;function vp(e,t){return Math.abs(e-t)<1e-5}function zL(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(P,L){a&&a.length>2&&n.push(a),a=[P,L]}function c(P,L,I,O){vp(P,I)&&vp(L,O)||a.push(P,L,I,O,I,O)}function f(P,L,I,O,R,B){var k=Math.abs(L-P),z=Math.tan(k/4)*4/3,$=L<P?-1:1,j=Math.cos(P),X=Math.sin(P),Q=Math.cos(L),se=Math.sin(L),ee=j*R+I,K=X*B+O,Z=Q*R+I,ne=se*B+O,re=R*z*$,ie=B*z*$;a.push(ee-re*X,K+ie*j,Z+re*se,ne-ie*Q,Z,ne)}for(var d,h,v,p,g=0;g<r;){var m=t[g++],y=g===1;switch(y&&(i=t[g],o=t[g+1],s=i,l=o,(m===vl.L||m===vl.C||m===vl.Q)&&(a=[s,l])),m){case vl.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case vl.L:d=t[g++],h=t[g++],c(i,o,d,h),i=d,o=h;break;case vl.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case vl.Q:d=t[g++],h=t[g++],v=t[g++],p=t[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),v+2/3*(d-v),p+2/3*(h-p),v,p),i=v,o=p;break;case vl.A:var _=t[g++],w=t[g++],x=t[g++],S=t[g++],T=t[g++],A=t[g++]+T;g+=1;var C=!t[g++];d=Math.cos(T)*x+_,h=Math.sin(T)*S+w,y?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(A)*x+_,o=Math.sin(A)*S+w;for(var M=(C?-1:1)*Math.PI/2,E=T;C?E>A:E<A;E+=M){var D=C?Math.max(E+M,A):Math.min(E+M,A);f(E,D,_,w,x,S)}break;case vl.R:s=i=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case vl.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function HL(e,t,r,n,a,i,o,s,l,u){if(vp(e,r)&&vp(t,n)&&vp(a,o)&&vp(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var p=r-e,g=n-t,m=a-o,y=i-s,_=p*p+g*g,w=m*m+y*y;if(_<f&&w<f){l.push(o,s);return}var x=d*p+h*g,S=-d*m-h*y,T=_-x*x,A=w-S*S;if(T<f&&x>=0&&A<f&&S>=0){l.push(o,s);return}var C=[],M=[];mf(e,r,a,o,.5,C),mf(t,n,i,s,.5,M),HL(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),HL(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function dNe(e,t){var r=zL(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],h=i[u++],v=i[u++],p=i[u++];HL(s,l,c,f,d,h,v,p,o,t),s=v,l=p}n.push(o)}return n}function LJ(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function gH(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),f=LJ([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var v=(c?u:s)/f[h],p=0;p<f[h];p++){var g={};c?(g.startAngle=i+d*h,g.endAngle=i+d*(h+1),g.r0=n+v*p,g.r=n+v*(p+1)):(g.startAngle=i+v*p,g.endAngle=i+v*(p+1),g.r0=n+d*h,g.r=n+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,r.push(g)}}function hNe(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=LJ([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],v=0;v<o[d];v++){var p={};p[u]=d*f,p[c]=v*h,p[s]=f,p[l]=h,p.x+=e.x,p.y+=e.y,r.push(p)}}function mH(e,t,r,n){return e*n-r*t}function vNe(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=mH(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-a,v=t-i,p=mH(h,v,c,f)/d;return p<0||p>1?null:new qt(p*l+e,p*u+t)}function pNe(e,t,r){var n=new qt;qt.sub(n,r,t),n.normalize();var a=new qt;qt.sub(a,e,t);var i=a.dot(n);return i}function Fv(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function gNe(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=vNe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:pNe(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,m){return g.projPt-m.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],v=[d],p=[h],i=u.idx+1;i<=c.idx;i++)Fv(v,e[i].slice());Fv(v,h),Fv(v,d);for(var i=c.idx+1;i<=u.idx+n;i++)Fv(p,e[i%n].slice());return Fv(p,d),Fv(p,h),[{points:v},{points:p}]}function yH(e){var t=e.points,r=[],n=[];MA(t,r,n);var a=new Xt(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new qt,c=new qt;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),gNe(t,u,c)}function t2(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);t2(e,i[0],a,n),t2(e,i[1],r-a,n)}return n}function mNe(e,t){for(var r=[],n=0;n<t;n++)r.push(NO(e));return r}function yNe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function _Ne(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function bNe(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":hNe(n,t,r),a=br;break;case"sector":gH(n,t,r),a=Ii;break;case"circle":gH({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=Ii;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Fe(dNe(e.getUpdatedPathProxy(),o),function(m){return _Ne(m)}),l=s.length;if(l===0)t2(yH,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=Fe(s,function(m){var y=[],_=[];MA(m,y,_);var w=(_[1]-y[1])*(_[0]-y[0]);return c+=w,{poly:m,area:w}});f.sort(function(m,y){return y.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*t);v<0||(t2(yH,{points:h.poly},v,r),d-=v)}}a=Ri;break}if(!a)return mNe(e,t);for(var p=[],u=0;u<r.length;u++){var g=new a;g.setShape(r[u]),yNe(e,g),p.push(g)}return p}function wNe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var v=o[h-2],p=o[h-1],g=o[h++],m=o[h++],y=o[h++],_=o[h++],w=o[h++],x=o[h++];if(d<=0){f.push(g,m,y,_,w,x);continue}for(var S=Math.min(d,c-1)+1,T=1;T<=S;T++){var A=T/S;mf(v,g,y,w,A,a),mf(p,m,_,x,A,i),v=a[3],p=i[3],f.push(a[1],i[1],a[2],i[2],v,p),g=a[5],m=i[5],y=a[6],_=i[6]}d-=S-1}return o===e?[f,t]:[e,f]}function _H(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function SNe(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=wNe(l,u),c=r[0],f=r[1],n=c,a=f):(f=_H(a||l,l),c=l):(c=_H(n||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function bH(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],c=e[i+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function xNe(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,v=e[h]-r[0],p=e[h+1]-r[1],g=t[d]-n[0],m=t[d+1]-n[1],y=g-v,_=m-p;f+=y*y+_*_}f<i&&(i=f,o=u)}return o}function ANe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function TNe(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=bH(s),c=bH(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,p=[],g=s.length;i&&(s=ANe(s));for(var m=xNe(s,l,u,c)*6,y=g-2,_=0;_<y;_+=2){var w=(m+_)%y+2;f[_+2]=s[w]-u[0],f[_+3]=s[w+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],r>0)for(var x=n/r,S=-n/2;S<=n/2;S+=x){for(var T=Math.sin(S),A=Math.cos(S),C=0,_=0;_<s.length;_+=2){var M=f[_],E=f[_+1],D=l[_]-c[0],P=l[_+1]-c[1],L=D*A-P*T,I=D*T+P*A;p[_]=L,p[_+1]=I;var O=L-M,R=I-E;C+=O*O+R*R}if(C<v){v=C,h=S;for(var B=0;B<p.length;B++)d[B]=p[B]}}else for(var k=0;k<g;k+=2)d[k]=l[k]-c[0],d[k+1]=l[k+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function r2(e){return e.__isCombineMorphing}var IJ="__mOriginal_";function n2(e,t,r){var n=IJ+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function t0(e,t){var r=IJ+t;e[r]&&(e[t]=e[r],e[r]=null)}function wH(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function RJ(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=SNe(zL(r),zL(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&wH(i,s),l&&wH(o,l),n2(t,"updateTransform",{replace:u}),t.transform=null;var c=TNe(i,o,10,Math.PI),f=[];n2(t,"buildPath",{replace:function(d){for(var h=t.__morphT,v=1-h,p=[],g=0;g<c.length;g++){var m=c[g],y=m.from,_=m.to,w=m.rotation*h,x=m.fromCp,S=m.toCp,T=Math.sin(w),A=Math.cos(w);Hy(p,x,S,h);for(var C=0;C<y.length;C+=2){var M=y[C],E=y[C+1],D=_[C],P=_[C+1],L=M*v+D*h,I=E*v+P*h;f[C]=L*A-I*T+p[0],f[C+1]=L*T+I*A+p[1]}var O=f[0],R=f[1];d.moveTo(O,R);for(var C=2;C<y.length;){var D=f[C++],P=f[C++],B=f[C++],k=f[C++],z=f[C++],$=f[C++];O===D&&R===P&&B===z&&k===$?d.lineTo(z,$):d.bezierCurveTo(D,P,B,k,z,$),O=z,R=$}}}})}function LN(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;RJ(e,t),t.__morphT=0;function i(){t0(t,"buildPath"),t0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},yt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function CNe(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function a2(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=Fe(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=Fe(i,function(s,l){return{cp:s,z:CNe(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function OJ(e){return bNe(e.path,e.count)}function GL(){return{fromIndividuals:[],toIndividuals:[],count:0}}function ENe(e,t,r){var n=[];function a(x){for(var S=0;S<x.length;S++){var T=x[S];r2(T)?a(T.childrenRef()):T instanceof cr&&n.push(T)}}a(e);var i=n.length;if(!i)return GL();var o=r.dividePath||OJ,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),GL();n=a2(n),s=a2(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Eu,d=0;d<i;d++){var h=n[d],v=s[d];v.parent=t,v.copyTransform(f),c||RJ(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var S=0;S<s.length;S++)s[S].addSelfToZr(x)}n2(t,"addSelfToZr",{after:function(x){p(x)}}),n2(t,"removeSelfFromZr",{after:function(x){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,t0(t,"addSelfToZr"),t0(t,"removeSelfFromZr")}var m=s.length;if(c)for(var y=m,_=function(){y--,y===0&&(g(),l&&l())},d=0;d<m;d++){var w=c?yt({delay:(r.delay||0)+c(d,m,n[d],s[d]),done:_},r):r;LN(n[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},yt({during:function(x){for(var S=0;S<m;S++){var T=s[S];T.__morphT=t.__morphT,T.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<e.length;x++)t0(e[x],"updateTransform");l&&l()}},r));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:m}}function MNe(e,t,r){var n=t.length,a=[],i=r.dividePath||OJ;function o(h){for(var v=0;v<h.length;v++){var p=h[v];r2(p)?o(p.childrenRef()):p instanceof cr&&a.push(p)}}if(r2(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(NO(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),GL()}a=a2(a),t=a2(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?yt({delay:(r.delay||0)+f(u,n,a[u],t[u])},r):r;LN(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function SH(e){return Ne(e[0])}function xH(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var DNe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=NO(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function EM(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=Gg("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;SH(e)&&(u=e,c=t),SH(t)&&(u=t,c=e);function f(m,y,_,w,x){var S=m.many,T=m.one;if(S.length===1&&!x){var A=y?S[0]:T,C=y?T:S[0];if(r2(A))f({many:[A],one:C},!0,_,w,!0);else{var M=s?yt({delay:s(_,w)},l):l;LN(A,C,M),i(A,C,A,C,M)}}else for(var E=yt({dividePath:DNe[r],individualDelay:s&&function(R,B,k,z){return s(R+_,w)}},l),D=y?ENe(S,T,E):MNe(T,S,E),P=D.fromIndividuals,L=D.toIndividuals,I=P.length,O=0;O<I;O++){var M=s?yt({delay:s(O,I)},l):l;i(P[O],L[O],y?S[O]:m.one,y?m.one:S[O],M)}}for(var d=u?u===e:e.length>t.length,h=u?xH(c,u):xH(d?t:e,[d?e:t]),v=0,p=0;p<h.length;p++)v+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)f(h[p],d,g,v),g+=h[p].many.length}function Fd(e){if(!e)return[];if(Ne(e)){for(var t=[],r=0;r<e.length;r++)t.push(Fd(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof cr&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var kJ=1e4,PNe=Pr();function LNe(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function AH(e){var t=[];return W(e,function(r){var n=r.data;if(!(n.count()>kJ))for(var a=n.getIndices(),i=LNe(n),o=0;o<a.length;o++)t.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||i,divide:r.divide,dataIndex:o})}),t}function MM(e,t,r){e.traverse(function(n){n instanceof cr&&_n(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function DM(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Vv(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function INe(e,t,r){var n=Gg("update",r,t);n&&e.traverse(function(a){if(a instanceof ss){var i=gye(a);i&&a.animateFrom({style:i},n)}})}function RNe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function NJ(e,t,r){var n=AH(e),a=AH(t);function i(m,y,_,w,x){(_||m)&&y.animateFrom({style:_&&_!==m?Ie(Ie({},_.style),m.style):m.style},x)}function o(m){for(var y=0;y<m.length;y++)if(m[y].dim)return m[y].dim}var s=o(n),l=o(a),u=!1;function c(m,y){return function(_){var w=_.data,x=_.dataIndex;if(y)return w.getId(x);var S=_.dataGroupId,T=m?s||l:l||s,A=T&&w.getDimensionInfo(T),C=A&&A.ordinalMeta;if(A){var M=w.get(A.name,x);return C&&C.categories[M]||M+""}var E=w.getRawDataItem(x);return E&&E.groupId?E.groupId+"":S||w.getId(x)}}var f=RNe(n,a),d={};if(!f)for(var h=0;h<a.length;h++){var v=a[h],p=v.data.getItemGraphicEl(v.dataIndex);p&&(d[p.id]=!0)}function g(m,y){var _=n[y],w=a[m],x=w.data.hostModel,S=_.data.getItemGraphicEl(_.dataIndex),T=w.data.getItemGraphicEl(w.dataIndex);if(S===T){T&&INe(T,w.dataIndex,x);return}S&&d[S.id]||T&&(Vv(T),S?(Vv(S),DM(S),u=!0,EM(Fd(S),Fd(T),w.divide,x,m,i)):MM(T,x,m))}new Uu(n,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,y){var _=a[m],w=_.data,x=w.hostModel,S=w.getItemGraphicEl(_.dataIndex),T=Yr(Fe(y,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==S&&!d[A.id]});S&&(Vv(S),T.length?(W(T,function(A){Vv(A),DM(A)}),u=!0,EM(Fd(T),Fd(S),_.divide,x,m,i)):MM(S,x,_.dataIndex))}).updateOneToMany(function(m,y){var _=n[y],w=_.data.getItemGraphicEl(_.dataIndex);if(!(w&&d[w.id])){var x=Yr(Fe(m,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==w}),S=a[m[0]].data.hostModel;x.length&&(W(x,function(T){return Vv(T)}),w?(Vv(w),DM(w),u=!0,EM(Fd(w),Fd(x),_.divide,S,m[0],i)):W(x,function(T){return MM(T,S,m[0])}))}}).updateManyToMany(function(m,y){new Uu(y,m,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,w){g(m[_],y[w])}).execute()}).execute(),u&&W(t,function(m){var y=m.data,_=y.hostModel,w=_&&r.getViewOfSeriesModel(_),x=Gg("update",_,0);w&&_.isAnimationEnabled()&&x&&x.duration>0&&w.group.traverse(function(S){S instanceof cr&&!S.animators.length&&S.animateFrom({style:{opacity:0}},x)})})}function TH(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function CH(e){return Ne(e)?e.sort().join(","):e}function Fc(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function ONe(e,t){var r=_t(),n=_t(),a=_t();return W(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=TH(i),c=CH(u);n.set(c,{dataGroupId:s,data:l}),Ne(u)&&W(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),W(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=TH(i),u=CH(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Fc(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Fc(s),data:s}]});else if(Ne(l)){var f=[];W(l,function(v){var p=n.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Fc(p.data),data:p.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Fc(s)}]})}else{var d=a.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:Fc(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Fc(s)})}}}}),r}function EH(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function kNe(e,t,r,n){var a=[],i=[];W(tn(e.from),function(o){var s=EH(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Fc(t.oldData[s]),dim:o.dimension})}),W(tn(e.to),function(o){var s=EH(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Fc(l),dim:o.dimension})}}),a.length>0&&i.length>0&&NJ(a,i,n)}function NNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){W(tn(n.seriesTransition),function(a){W(tn(a.to),function(i){for(var o=n.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][aS]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=PNe(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)W(tn(i),function(h){kNe(h,a,n,r)});else{var o=ONe(a,n);W(o.keys(),function(h){var v=o.get(h);NJ(v.oldSeries,v.newSeries,r)})}W(n.updatedSeries,function(h){h[aS]&&(h[aS]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<kJ&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Dt([jZ]);Dt([Qwe]);Dt([MSe,YSe,ixe,Wxe,l2e,tAe,IAe,yTe,WTe,eCe,fCe,pEe,GEe,tMe,wMe,MMe,YMe,rDe,pDe,xDe,NDe,wPe]);Dt($Pe);Dt(ALe);Dt(Dq);Dt(HLe);Dt(pQ);Dt(KLe);Dt(nIe);Dt(aRe);Dt(ERe);Dt(S1);Dt(jRe);Dt(ZRe);Dt(fOe);Dt(wOe);Dt(gJ);Dt(NOe);Dt(ZOe);Dt(yke);Dt(wJ);Dt(SJ);Dt(Wke);Dt(EJ);Dt(MJ);Dt(Zke);Dt(uNe);Dt(PJ);Dt(NNe);Dt(IZ);const BNe=Object.freeze(Object.defineProperty({__proto__:null,Axis:gi,ChartView:xr,ComponentModel:sr,ComponentView:rn,List:Dn,Model:$r,PRIORITY:IX,SeriesModel:Ir,color:xpe,connect:M1e,dataTool:R1e,dependencies:f1e,disConnect:D1e,disconnect:zX,dispose:P1e,env:Cr,extendChartView:iwe,extendComponentModel:rwe,extendComponentView:nwe,extendSeriesModel:awe,format:$be,getCoordinateSystemDimensions:mk,getInstanceByDom:dk,getInstanceById:L1e,getMap:Ix,graphic:Ube,helper:kbe,init:$n,innerDrawElementOnCanvas:d1,matrix:Xve,number:Hbe,parseGeoJSON:X0,parseGeoJson:X0,registerAction:il,registerCoordinateSystem:HX,registerLayout:GX,registerLoading:_k,registerLocale:$O,registerMap:UX,registerPostInit:pk,registerPostUpdate:gk,registerPreprocessor:KA,registerProcessor:vk,registerTheme:hk,registerTransform:$X,registerUpdateLifecycle:XA,registerVisual:Ff,setCanvasCreator:I1e,setPlatformAPI:wY,throttle:YA,time:Gbe,use:Dt,util:Wbe,vector:Rve,version:c1e,zrUtil:Cve,zrender:lge},Symbol.toStringTag,{value:"Module"})),FNe="/assets/area-f229803e.png",VNe=Object.freeze(Object.defineProperty({__proto__:null,default:FNe},Symbol.toStringTag,{value:"Module"})),zNe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAAXNSR0IArs4c6QAAAFxJREFUGFd1jbENwCAQA+1HGSRFZmEFSkajCyswC2wS9B99EGU6yz7bHDZvg5WLRwOAbk8kJLObRYFWhSRgQiBVIImLWqFrN0+y/QebdnJ+DV1Tfh4Qitf3LKH5BdakME0JieNqAAAAAElFTkSuQmCC",HNe=Object.freeze(Object.defineProperty({__proto__:null,default:zNe},Symbol.toStringTag,{value:"Module"})),GNe="/assets/default-system-num-c4c4168c.png",UNe=Object.freeze(Object.defineProperty({__proto__:null,default:GNe},Symbol.toStringTag,{value:"Module"})),$Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOIAAACwCAYAAAASVrIrAAAAAXNSR0IArs4c6QAADmRJREFUeF7t3PlblOUaB/D3Tkyzso5LZZaWS5bl0VOmkWSiWSKLbIKACwgpKIqKgqAoiIJiuOHCDDOAI9vAMOygooDIomgmSRQBaqaHSqRwC4L0XHNdp3/B57mu+8sv8+P7/X6e+35fRpyhwbZWFxT8QAACQgVoiO2cusePhWbAxSHAWoBIUeileXPP9/79iDUEykNApIBZn6cUenmeTW3P370ic+DaEGAt0LePmUIv29vU9PRiEVlPAsoLFehrZqbQMEe76u7uv4QGwcUhwFmgX7+nFXrVcV5VV3c3Zwd0h4BQgf79+ik03Nn+7J9dXUKD4OIQ4CzwTP/+Cr0+377ywZ9/cnZAdwgIFXj2mWdMi+hQ+aDrIf6SKPQocHHOAs/2H0A00sWx4v5DLCLnQUB3sQLPDRhA9OYC5/K7D+7jiSj2LHB1xgIDn32OaJTb/LLOe1hExnOA6oIFXnj+eaLR7i5lf9y9i//jJvgwcHm+Ai8OHPgUjV244FRHZycWke8coLlggUEvvPAUvbXIrfRORwfeIwo+DFyer8DgQYOI3lrifvLOHSwi3zFAc9ECgwcPInp7ifvJ9vaOv0WHwfUhwFVgyJBBfegdT48Tt9vbsYhcpwC9hQsMHTKkD727dFHJr7/dxj/WCD8OBOAq8PJLQ5+iCUuXlLTd/gVPRK5TgN7CBYYNfaUP/dvbq/jWb234ZLDw40AArgLDXxpmRpO+9Cr6ua0NT0SuU4DewgVeHzasD01a5l34c9stPBGFHwcCcBV4fdhwM/rA16fg+k0sItchQG/xAm+8NtyMJq9Yln/txg08EcWfBxIwFRg1YoQZTVmxLL/1pxs9TA1QGwLCBUaPHNGXpq70zWv56ScsovDjQACuAmNGjuxLU1etyG29fhXfp8h1CtBbuMDoN0Y9TeYB/jnNLS14Igo/DgTgKjB2zJi+NC3A39jU2ownItcpQG/hAuNGj32aLNb6GxubW/ANw8KPAwG4CowfO6YfTQ8MyG74sQmLyHUK0Fu4wHtvjetHM9avNVz5oRGLKPw4EICrwIS3x/ejmesDs+qbvsN37nOdAvQWLjBx3Lv9aVZwYNblxu/wnfvCjwMBuApMGv/uMzR744bMSw1X8ETkOgXoLVzg/fcm9KcvQjdkXrzS8FBRTF/kRgpe4YA5eLJ7MHnChAE0JzRYf6G+/qHw2wICQICpwIcTJw6guZtDMs5fvoxFZDoEqC1eYOqkSQPIOiw0vfbS11hE8eeBBEwFzN//YADZhG1Or/nm4n2mBqgNAeECH/9n8nNkF7E5rerCBSyi8ONAAK4CFh9OfY7sI7ekVdbV3eOKgN4QEC0wfcqU5/9ZxLuiw+D6EOAqMH3KlIHkuCM89UxtLRaR6xSgt3CBT83NB5JzVGRKeU0VFlH4cSAAVwHLjy0Gkkv09pTTVVWdXBHQGwKiBWZZWLxAC3ZGHyutqvxDdBhcHwJcBWZbTH+R3L+K1pWUYxG5DgF6ixewspz+InmYFrHizO/i4yABBHgKWM349F/ksWeXrqSsooMnAVpDQLyA9cwZg2jJ3t1HC06dviM+DhJAgKeA7WezBpPXvtijeaWlWESeM4DWEgjMmz17MHnH7U3OOXm8XYI8iAABlgIOn88Z8v9FPHGbpQBKQ0ACAYfPvxhKXx7al5RdchyLKMGBIAJPASerOUNpefzBRENhARaR5wygtQQCzja2Q8kv/mBiZlHBbxLkQQQIsBRwsbZ9iVaqDidmFOT/wlIApSEggcACW/tXyD8hPjE9LxeLKMGBIAJPAbd59q/Qaq0qMdWY+1+eBGgNAfECHo72r9KaJI32WLYBiyj+PJCAqcAiJ+dXaV2SRqszZN9iaoDaEBAusNjZaTitS0rU6gz6m8LTIAAEmAosdnZ9jdbrkjTJmfqfmRqgNgSECyx1cX2dgo4laxIz9TeEp0EACDAVWOriOoKCU3UabUYqFpHpEKC2eAHvBR4jKDQtNUGVduwn8XGQAAI8BZa7LxpJmzLSEuJTk6/zJEBrCIgX8PXwfIPC9BkJh3VJ18THQQII8BRYsdjrTQo36NVxyVhEniOA1jIIrPL0epMijHr1gaTkVhkCIQMEOAqs9vIcTRG5BvUBjbaFIwA6Q0AGgdU+3mMoMteg3q/RNMsQCBkgwFEgwMdnLG3PM6r3qRN+5AiAzhCQQWDNsi/foqi8XPUetapJhkDIAAGOAuuWLR9HOwtz1THx8T9wBEBnCMggEOTr+zbtKsxT71Id+V6GQMgAAY4Cwcv93qHdxQXq6CMHGzkCoDMEZBAI8fMfT7HFheqowwcbZAiEDBDgKBC6wv892nO8WL3jUNwVRflbUZQ+Cl7hgDl4snuwaeWaCbS3tES1ff++KxzvROgMARkENgesmUD7T5Wqtu2PrZchEDJAgKPAloDAiRRXVqoKj8UichwAdJZDIDwwcCIdLjulCouNvSxHJKSAAD+ByMDASXS4oky1KSbmEr/6aAwBOQR2BAW9T/Fny1QhO2O+liMSUkCAn0D0xo0fkOpshSpk166L/OqjMQTkEIgODp5MCdVnVMHRURfkiIQUEOAnsCsk9EPSVp9VbdgVdZ5ffTSGgBwCu4NDp5K2plq1YUcEFlGOM0EKhgK7N22dSsnnqlWBOyJrGfZHZQhIIRC7KcycdHXnVGsjwmukSIQQEGAosHdr+Md07EKdak1EWDXD/qgMASkE9m2NnEa6i3XqtRFhZ/GZA3zm4Ml+5gDe/3gf2Br5CaV8XadetWVLpRS3BoSAAEOBuG3bplP6N3XqFVvCKxj2R2UISCFweFv4DNLXf632DQnDIkpxJAjBUSA+OtK0iN+ofUNDyjgCoDMEZBCIj4qeSVnf1quXh248LUMgZIAARwFV1M5ZZGioVy8LCTrFEQCdISCDgDo65jMyNn6r9tkYVCpDIGSAAEcBzc6Y2ZT7fYN6aVDQCY4A6AwBGQQSY2K+oNymRrX3hnXHZQiEDBDgKKDdvWcO5f/QmOAVuK6EIwA6Q0AGgaTYPVZU0NSY4Ll+TZEMgZABAhwFkvfss6ailqaExatXF3IEQGcIyCCgO3DAhoqamzRL1gTkyxAIGSDAUeDovv12VNLarFkUsDqPIwA6Q0AGgWP7D8yjE1ebNR6r1uTIEAgZIMBRIDVunwOduNasXbhqVTZHAHSGgAwCKXFxTlR6vVXrvsrfIEMgZIAAR4G0uIPOVHrjmtbd3zeLIwA6Q0AGgbSD8fOp9Pq1RNeVfnoZAiEDBDgK6A8dcaXTN68nzvfzy+AIgM4QkEEg68iRBVR260ais59PutKrKIqZouAVDpiDJ7sHhgSNG1XcupnotNwnVYY7AzJAgKNAtkrjQZVttxIdlnmlcARAZwjIIJCjTlpIlW03kxx9vHUyBEIGCHAUMGq0i6ny15vJjt4+yRwB0BkCMggYtRpPqvq1Ldnec2mSDIGQAQIcBXKTE71Mi3jUwctbyxEAnSEgg0BOktaban779ai112KNDIGQAQIcBYqSdD5Uc7tNZ+29VMURAJ0hIINAkTZxOdW039bZeHvEyxAIGSDAUaBQm+pL59vbdVaeC49wBEBnCMggUJKc4kfnOm4fm7tk8SEZAiEDBDgKHD+qW0l1HbdTrBYvPMARAJ0hIINAiS5lNdX93p5itcgDiyjDiSADS4GSY6mrqa6jI3Wup+telgIoDQEJBIqT9Wvpwh930qw83GIlyIMIEGApUJKaHkiXOjvSLD3cvmIpgNIQkECgPDV9PV2690faTBe33RLkQQQIsBQoy0zfQJc6O9NnurntYimA0hCQQKAsPT2YLt/vTLd0d42WIA8iQIClQHmaPoTq73dmzHB3jWIpgNIQkECgIk0fSpfv39Nbui6IlCAPIkCApUC5PiOM6u/dzbR0nx/BUgClISCBQHla1lb69sG9zBnuLuES5EEECLAUqEzLDKeGh/eyPp3vsIWlAEpDQAKBM1k526ih62HWDBfHzRLkQQQIsBSoyDRuNy2iwdzROZSlAEpDQAKBWqMhihq6HmSbO9qFSJAHESDAUqDWmB9NjV0PjB/NcwxiKYDSEJBA4FyeMYYaux8aze2dNkiQBxEgwFKgNjd7NzV2deWYOzkFshRAaQhIIFCbnR1reiLmmju7rpUgDyJAgKVArUG/l77v7sozd7UPYCmA0hCQQKBWn7vftIj5Hzs5+0uQBxEgwFKgJttwkL7v6c6f5my7kqUASkNAAoFqQ8EhaurpKjC3c/CTIA8iQIClQG1+zhHTIhZOc7JdxlIApSEggUB1doGamnq6i6Y52XwpQR5EgABLgerswgT6oae72MLGzpulAEpDQAKBqsJ8remJWPKJ01xPCfIgAgRYCpw1FidT86OeEos51ktYCqA0BCQQqDpedJR+7Ok5Md3ObqEEeRABAiwFKvPzU6ip96+Tlg5O7iwFUBoCEgiU52SnmX41PWnp6r5AgjyIAAGWAuX69AxqedRb+r6rtatyV1GUgYqCVzhgDp7sHlwqKdKbFvHUZEdnZ5a3IpSGgAQCF40Gg+k9YtlHbnMdJMiDCBBgKXAuvTiHWh71lE2xtrNnKYDSEJBAoK4oP9f0q2n5R/aOdopyR1GUwQpe4YA5eLJ7cC73TL5pESvMZ35mI8GNAREgwFKgtuxUIf3Y21M5w8FxDksBlIaABAIVOcbj1Pq4t/KTyVOxiBIcCCLwFDh78fxxan3Ue3bWzM9m8yRAawiIFzhddqrU9ESsGj3Xdpb4OEgAAZ4CrcUFp6nlcW/1GBc3S54EaA0B8QItmenldPXxo5pRy30/FR8HCSDAU+CqKv6MaRFrR7m4WvAkQGsIiBe4mqmvMr1HPD86Yru5+DhIAAGeAq1bN9ea3iPWjSGzj3gSoDUExAu0PO49R62PH10QHwUJIMBb4H90Kx/96qSAHAAAAABJRU5ErkJggg==",WNe=Object.freeze(Object.defineProperty({__proto__:null,default:$Ne},Symbol.toStringTag,{value:"Module"})),YNe="/assets/electricity-99376bc0.png",jNe=Object.freeze(Object.defineProperty({__proto__:null,default:YNe},Symbol.toStringTag,{value:"Module"})),KNe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARoAAAAaCAYAAABoxJMOAAAAAXNSR0IArs4c6QAABktJREFUeF7tXc1uHEUQ7upZx2vJkeBgzsndTwDizAUCj+N3ACkS4pq8QMRTkCvijAQWBiQi+RIby1p7d7pQfVU90zOza896vSCbSrTyzHb1T/VMf/t1dXU1Hbz4PAUiDvqPAzPLPcl1cY/r9lPIyvfEHAJTkD8oi/GfkKdTblsGM2VZyShZO3mtLCmDpUyRz20oZPEdGq31mWxTN1s9SFNZ1GOyojCuk1Rv9TSyjQ5aLtRUfcjqSYQU1Vn17coijZg0r6XlNuf2Jq3bZKUe6NrWaWmoWNtfyEq9lEwn0QdtE32S1s2Bk+mGUvV5qz6iN/oj6XNP8r3pmjQf2pJlkTdZ2zppyJekHFEHZVq5aJv0gfSz9bc+65DY6s1tWCab38+UVA+0U/PpMxMdVVfonURHraeW9JRUZ1xLOywvZHNa4FAT15IWRYZwr30oXSnXNRPFopyaF9IWkYsqh7YhX80UpQyVp6iyck9Uq2xt9cRa61xEprjgQJHnkBN95iGnhajpIocyqwVfx8hhLt9HDuEq0Dwy5Ko5vqPryKGqmKprpuuKZ5ALIUyumGYV02TCVM1wHeUan0v++3LCtLPDIbwPdKHXcWeH6fyc45MnXO3ucpxO+c/TUw57e1rmyYleP33K4eCAw5s3DWbQR19+Ia9aHkHrAY0NcjxoAwEZyc2g0wGoQDP4SB4bfBjYCh7Ir/cdQGiARkGgV6YChOTjAdAIAPZAIIMLBizrAMBLXwDNYKA3A7kDNBlcUG8HTFpQAiwtARr0ewMKJRCVQGPgWIChqClDXQFC9e4ADQaUdKfmBSwZuCQBMa2zBzR63wGaEFj6ZAg0lrebZmAiZdchGWAoiNuPl7WnAUn0pA70lIHJAATPxECi+SEsAAPyBlIDoEF/GKAZuAAA+yCFh56Bx+qrEwACAFUCTR+kkK9GmQpmMoAXQ6ARYBJAETAh4kUDIAsDEAEpAYcFQIwATAsFjgXxfBnQAFwEaCqmOAfQAHDkkdu9pgm4FEBTVTy7WgY0FdNs1gGaeDnhcwBNCLRzwXRhQLN7zvGsBZrJ6Sn/loFmf5/D8fFyoNmM0dgLt4zRtKxAQaFlOAY6/wGjyQytx37kpcYPewk05UDus5R7YjQt0IxnNNLVYG+jGE0LNP8eo5FBV2+N0QgoycC+kdEUQLMWo5Gy6zswmgyItzCaFmiM0YDFCNCUjEaB5kZG0wOaq6WMZgnQbJvR7J9wOL6F0WTmkRnJqKlTn9GAUZSMBgxhu4ymN13ahNEI0CRhAMMpUDnlGcloMMgNZFczGpsLGZlrp0vt1Gk5oxFJZQHbZTRgY8I7OlOnPqPR6YlOjx4RowGrsanTDYwGrGZrjCYEsB2ZLuWp050YjU6fVjKayYzjrJ06CaORqdL7EYxmsrfHv8ibvj1G08633UbjNhq30biNxm00JUtxG43baBoDs9toYM9xG809rjq5jQa2ne2uOrmNZtWqk9tozJhgq0/4tXMbTX95ed1VJ7fR6CrPA151chvN/dlojr4+TK/ePh/4u4wCGiyAuB+N+9HAH8f9aNyPZrUfzeznyF9993H68fcPbYVkDYc996NpnPTcj0aB5lGtOrkfzf350fCvgd+dT/mzl5/yX2fT9Rz24BujjnWDVSf3o8luhSs9g92PZn3PYPejMWe+wmHvQfjRCNAIlfnpjw/4xbefpCvxTHQbTX8rgfvRuB9Nd/tC4RnsfjQj/Ggy0AjYvH77LB19f4i9T26juWH/0j15BsOjD97I4z2Dfa+T73V6kHudNgIat9G4jabdM+U2Gt/rtHqv02DqJHsvRjMat9FssnvbbTRuo/nf7HUqjcHvzqa6e9ptNG6jKXab+14n2ZTdCzHhNhqEiZDd26P2Om20vO1+NLwJo3EbzfqMxuPRPNB4NEffHKbXPzz3eDQej8bj0ZgnsMejuWSPR6MG6DYa3zoR9nyvk+91uinCnsej2SzCnsejGRdhz+PRDCPseTwaj0dzW4S9UTaazSLs+V4nt9E0IUF9r5PvdfKYwZ3A4R6PxuPReDyaIji5x6PpnGyw8SkIbqNxG43baLZ3CoLbaNxGc9dTENxG4zYat9E0R7j4uU5+rpOf6+TnOvm5Tn6uUz5ADgfc2ZlUfq6THbfy+M91+gdMh7mRitGq4QAAAABJRU5ErkJggg==",XNe=Object.freeze(Object.defineProperty({__proto__:null,default:KNe},Symbol.toStringTag,{value:"Module"})),ZNe="/assets/alarm-013d0618.png",qNe=Object.freeze(Object.defineProperty({__proto__:null,default:ZNe},Symbol.toStringTag,{value:"Module"})),QNe="/assets/reminder-bg-bd6fd914.png",JNe=Object.freeze(Object.defineProperty({__proto__:null,default:QNe},Symbol.toStringTag,{value:"Module"})),e3e="/assets/stop-system-num-54044bc8.png",t3e=Object.freeze(Object.defineProperty({__proto__:null,default:e3e},Symbol.toStringTag,{value:"Module"})),r3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAUCAYAAAB7wJiVAAAAAXNSR0IArs4c6QAAAHpJREFUaEPtmUENwDAMxJJRCaxxGZvBCpQ2U1lYmovAsnOvZs96Iq4OH8DAruyZuzJfAM3vEU4Lg4DOwCCgGAfFIAaBGYDhuBCDwAzAcFyIQWAGYDguxCAwAzAcF2IQmAEYjgsxCMwADMeFGARmAIbjQphB/MLldNn1AeTyjI/h212zAAAAAElFTkSuQmCC",n3e=Object.freeze(Object.defineProperty({__proto__:null,default:r3e},Symbol.toStringTag,{value:"Module"})),a3e="/assets/system-total-5e74cbfb.png",i3e=Object.freeze(Object.defineProperty({__proto__:null,default:a3e},Symbol.toStringTag,{value:"Module"})),o3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYYAAAAfCAYAAADjnmraAAAAAXNSR0IArs4c6QAACSNJREFUeF7tXctS20oQPcIxNsbmdUNRVGXhBSuy5Af4Cb6H8D38BD/A1isWLFKVosjlDbZMjO7t7nlJiJeTkCzOlEuP1kiyZc0cnTnq7gzlkulqUUTr3p7ZpOzu2nx/X207OzpV0+nBQay3va2268NDs235A2xhOBhkn/3q5qYu3RwdWb0Nv2EDw+PjeLw+sPr1Q1z/ZPVG3xrRJoZ1ID85zYA13b5mM4xO/82AVX9wXcy/n2XAP9H2Ebg/u8iAFax46wowPhfbcqy3DNxfXLrzLpl9Cbi/vMoWdcWmMru/unb1Fsy2APy49jZn6AHt65vkd3SBHvDj5rZs61Zt8+iK7fYuqTcPzFdtAOY7mNwNQ72OnLrTwY+7dF9gkmXl6wlgMswyzNnXdzNMgMf1RnmGuXa8TrIvRpnslVofRqMM7Wq9PEOpFjDJ86zdbpWPJ+fQXaP9IR9nttrSWQ6gmefB5g8wGY8zzPo12/9hLOcFZmZbyQ2fA2OgMTtbtuXATKtVyPGt2NIM0npmbyA9ntnui6oNaLSLAqPST5S7FTNoh3P7zY1So7R9GkXaUJ0NSL43MJR6c3MFhnelE6ntrmz70OkEm9/S6MwVuJVdY90P8x1n0w1a1CZt+Sba1N6dL3CjW2JdsV37VbOPet3EdmXH7PUK2CLgFpoLPft9l2a9xCWaiwtmu/B1L9BcWjTbefqzzzG7vKT2szNvP0NzZanA97Qe0Proru1ptLdXH4oTWdWJldbag53nW1Jvfb0AvprBzeY/fSqAYxwfx3pz/X4BHJnBzbobG+7/GwAD27S8uVkc6tKhfnzpbW0VwIF+fFnd3rb99/dtJpOdnXhP7O1Z1d3daIvNPtiqDfxpYPCgIOdxwOCQQc8TgEExoQ4YthQfzgcDO4diQh0wGDoEYOgDffRx+/Xr88Cwbr83P5nReooJARjMpsXhQ/496QQ/2qbeWVLPoUMJGBw+GDBEUJCl8eVVloKCHO95YFhAr2fnvQ/A0HVfJAWBLuDMHiy60vtLqQLDvNnLYNFRsBBgUEDQ0tFPGRg6mGQRPHy9CYaZBwS/dy0w1IBKE4+B5kHB4nlgkK2TTDrtCjDAOvISMGAc6vnaDzX1Jlqvum+eCQg8AgbpTGs6/JmkwzdYyOuBodUqHG6EK95oQUEgxYFGu1Vg9AgZMNO2umm5rwOGdrvAULr+WAwEou1ZYJDdEnAwYFBjOGAuwCDltgIMaguTAAzW/98GGIjAIHYDAbVVgKEpwCAPk8F+ZcAgJQGHKjAINMwuLhQJJuguzaUENBNwmF12dgcMMmuuuM49AYd6YFgtPCqcOHBora0VARUcOLSfBAaFBploMWCQclQPDLJpYMDg/5DDBBwMGKREcAjAIGYHDp//B4Yv/gB1wCDbrKlOAwyyX2QMkSxUGMNPA4Ocp8wY+n3g9qcYQ9Lhy+GrjMEBw4uMoQQMcqAqY3BsQTa9yBgciygxhjpgkIMZOJRZxDsxBnfHpOBQDwyPn/qbjjH4e1Lmr2EMCgzy1D8FY9Bz/CxjeAQMuRKE6RmDPN1boysDw8uMwV+7emAoCqUESWm8K2OQExtDiIwh2tT+RxhDAgxPMAYEYHCMQb7si8DgAOQkkoY3MwY5TwkY3sIYhDREyvA8MOwrXfi9jEHxwIHCc4zBiEINYzC2IOUtjKEvO7jJ6xjDOvKTk8wRhb+LMTgciENJf5AxdIw7vMgY5jqYDH8hY2gLMNQMQznwEUCQjvN5xlBmEQ+OMaTW1zKGJvJMnvxTJuCHiP42xuCHncrA8jJjkP9ZWMSwbihJNlYZQ8UWGYNuKIHA04xBuIEDDAEGKclwkoKFFGUHxiKmZwzA7GLxaxhDAg4vMQY/nHTxRsbgUUGGlJ5nDPJlbDjpZcYgpMHGk0qMwSHD72UMig3UGERuoMZAjYEag3QI1BjezBioMVTFZ2oMZfH5DzIGagz6dKXMghqDp/mgxhAuxRPiMzWGeIX8W0npcNL+fkaNQS4RNQZ/o5hYXBaVqTHEZkSN4T3fSqLG4AUGagz6VhI1BtUOSq+w1ryVRI3BxrWpMVBjSN9KosYwxVtJ1Bjs8Y8aA/0Y9EagHwM1BvoxROGZfgxOfKYfQxwoqXeOox9DMpREPwb6MeibqvRjqHg+v1Z8lsZEP4a/xvOZfgzGDujHEEXq4Pkc30yiH0N8CHjawU1hgX4MMSQG/RjkjSQd/w8hMf7gW0nUGKgxiIe0FPoxRM9nagzUGBgribGSGCuJsZIAxkpKItdMAQyMlRRi6TFWUo2DG2MlubGEHA3GSmKspNogetQYtJGUo6tSY6g6uOlFYqwkTDToXfSBYKykGF3Vj1wzVpJF0ntddFX6MdCPwbcc+jEAr42uSo2BGgM1Br0HStFVqTFMMZQkF42xkujHoHkWGCuJfgzxjSRZYj6GV76VxFhJ0w4lMR9DOVEP8zH4JmdDTlKSRD3MxxB7pJCUh/kYmI+B+Rhiw3gygxvzMUydwY1+DPRjeDKDW2QN9GN4JWOQaszH4FN70o+BfgyWaIH5GGIH8pYMbszHINft6pH4LFbmY2A+BmtVzPksiZyZ81mztTHnczqW9L4Z3JiPgfkY6MdAPwbXAzHns5eemfO5mtqTOZ8B5nyOSRlwenBgwiBzPlv3yZzPYD6GZNiIOZ/DxdDUnprWU4rlaRj1uonNfBY+9HoFbFGHkaTQj4E5nzPmfJam8BveSqIfg3UyzMfAWEnMx2C4m+lzPf0YGCuJsZIYK4mxkhgrKYDClMBAjYEaAzWG8ERlaXqoMVBjWCuAb9Yy3IwaAzUGuyGWgPvLq2xRhAVfqDFQY4h3A5jzmTmfXQg9+jEwH8O189RdAP0Y6MeAEeQTCv0Y5FIYYDRFfJbAm0GUvjLxOerO9GMAcIhDmWjpbW0FBouDA7Wtbm9HG/Y1lt7nnZ3ii7/r9vZsaXc3qUeNwS7KKkCNgRoDNQZqDNQYqDEEUJCF/LvJ8Fo+OgQ+S0JnrJhtfH6RBXFh2WzMx8B8DNQY4OQFc3LzITHox0A/BoAagyEFNQZMsnJOBbks9GMIjx7UGELqHoB+DHZfzPX7BXBkK27W3dhwQzwDYGCbljc3i+C9cPg+fgz/ASBy5pdszwo7AAAAAElFTkSuQmCC",s3e=Object.freeze(Object.defineProperty({__proto__:null,default:o3e},Symbol.toStringTag,{value:"Module"})),l3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAaCAYAAAAUqxq7AAAAAXNSR0IArs4c6QAAAitJREFUWEftmU1uE0EQhbuqexIcx3akKArYF2HJCVhzF9ZciCOw4xYh2cQSjh3HCtFMVz30ekgkAiTBQax61X/VI9Wnmu6uevLuav6tvdos24vl6maxXLWLr6vN+fzy+uRsvTn9sva2dW0akRRVY5LAvqpKjKIxCqKqalKJKppiv5aSSKR9sRXRoJLYRhWJItzT2xY77uUAHJsDwR1szRzu8GwA4LAMjmHuAnE3A5xzGZ6LIdAVQwfXcqZNQDYP/JQB4l3ZF7oMqITB9NVwOJuOBsdHoxeHR6Pdw4NxM55Mdg8m47S/PxEC+vj6zQfdSXRYNe1IAdL86NP/Jok0SUNDKHSazkfOiaRbQPFnQKksEKyIiiqhSVRwH0GVhrBItodXANELJ6C+dXMQmrFT5gzBCMMd2eHIAAEaYXjfL/vK/F0bzGAE00MDug7B4G4d0Jl7buGdwa1z53fbFm8/f3r/BECiPbDfAYp9ZJUIehhQ0D6qaPdcQIygcAuIUUOHtwDkxsgirPuAMrzNTwVUI+iRX6xGUD2D6hnUnzX3D+l6BtVbjLd9vcXqO+hvH4r1HVRf0s9LNWoE1QiqESRSs3mWO2o2z/pXrQc9XDCr2XzN5ms2X7P5rUqutSb9SLmj1oNqPeg/1YN64XC1ullcFOHw+nx+uTk9W29O/pVwKCqUxYoexg51su2FQ6Eu9qBwSF2Nuhj1se6PwmFQCXvT2XAweznaO6Zo+Ktw+B3jW3SZgX43QAAAAABJRU5ErkJggg==",u3e=Object.freeze(Object.defineProperty({__proto__:null,default:l3e},Symbol.toStringTag,{value:"Module"})),c3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAaCAYAAAAUqxq7AAAAAXNSR0IArs4c6QAAAMNJREFUWEft2cEJwzAMhWHFErZDJ0ivXaTQbQqdpgO122SBEjnBCiU59ZQUdAsv4AHy81k+qLk87k+bSrVBzcaxmqpZKbV+BptUjeaZDvuFQJJSkFPLnDNLSsK5DU1OzMuJUZolUP9694eN4Pix8+3aIdBGwA6BtnlB0M71g6CdQBAEQY4njIggCIIgyFcAgnz9MIMgCIJ8BSDI1w8zCIIgyFcAgnz9MIMgCIJ8BSDI1w8z6F9B6+KwqJlicfi7OJQY5QuxMsSu5/6slQAAAABJRU5ErkJggg==",f3e=Object.freeze(Object.defineProperty({__proto__:null,default:c3e},Symbol.toStringTag,{value:"Module"})),d3e="/assets/bg-d5870666.png",h3e=Object.freeze(Object.defineProperty({__proto__:null,default:d3e},Symbol.toStringTag,{value:"Module"})),v3e="/assets/box-bg-6399141b.png",p3e=Object.freeze(Object.defineProperty({__proto__:null,default:v3e},Symbol.toStringTag,{value:"Module"})),g3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAVCAYAAACe2WqiAAAAAXNSR0IArs4c6QAADtVJREFUaEPtWglQVGe2/vrephGFAC4ouLEEFDeULWqMC6LGSCDAuIK4I4or0cS8JMZMxYoRB1ccFSUuDS6JGAkYDdGgg1tUjJGIgqhERMUVUdHuvt2vzrndTbeQmVe+evVqajxVl3v7v/96vv87y39R4E+kY+6uMQqFkGGQ9DDo9TAYDMaLGhi4lYFv8vMreXkNKBQKWY98V4B+my9BgCAIZy/YnQ/GgEW6F0ehFvXEY29mS5VCKDJI+uZ6As90EWIEZB16Lz/rVy2tNcBI1AdPQQCKIr2aeyl81Ir/EYA+u9VZBr0+Ui9JIADpgqSHnqAzMvGV/v8PNEDMM4EoKMDgGQEURLFGD3S6HB1bYTlyPQZ679w8GkCmpJOgl3QygEYzagKPOWhlOV+Z0ZeD00L9CiIZkdDEQkEGUJQZKCqVUIhiVunwuOg/BdAjM62lqBCL9DqpuV6nhUQM1Ens+/R6SXZ6zEBTF/8ewImCAImsyP+zqJRKnoFGV8+VsfmU8SMkiX0KCIIIhShAFJUQlASiDdUIvzxmwvempVgx0Dsjfbde0kVJBJ5WBzahkvSCDyTy1QfOyc4ONMGqmhoM69wF9548wYlrV9HGyYmfa7VavO3bCS72r2HrqRM8vutrjlg0NAxTd2Zg/cgYfJqbjarHNVZqHhvUE9XPapF9/py5fHnUCKw/egQXb9+qBwm9++JALo9JolKK2DgqDh9mZ+Hmo2pzfRcHB4z0D8Laf/wMSW+9ng8GDsHZij+Qd6nYqn8Xewd8NHgo5mbtQhsnZ/i1btPgljhUcpHX+6KM9A/kop2FpxtsZ8VAMqEKmX0KYqCNkgEUbWyuPanRdq6cOvWp7DWN4p2ZPtqg02XqtFoQgHoGkC7rKNQUxET5+SOyuz8aq1R4qtHgaFkpHtbWYsfpkxgVGIyb1dU4XHoJcwcORu7531BSdQvDunSDm6Mz0o4elgF0dERy5AjEbk6DevwUzN/zDW5WP7RaHNVZ+E44pm3fZgREid1TEvHe+tX1WOXfrj1GB76Bj7OzENU9wNxPLw8vPNfpUHi9nMvK7lah8I9ypESPZKD/ui/bakwa78wf5cgtqts0L86X1hLdIwDHr5RZtR3uH4TotFR0cW2NuJ5vWm8ABwf+TZvcUraePMb9cBBKkAiAoBAYQJmBIgSlksDjSxCF5NLYKR+YASTTqdSjSNJom0taDbNP0r0AIO9Sk++Td2wXtzYI69YdX/6Qgz6veyNxQCiqa5/C0a4xK/fx82do49wUSbsyMSIwGEHuXrBVKvHjhSL4urrCoZEd14vZuA4Zk6dCJdpAI+mQf+kimtk3QS9Pb6uF1mqeQ33yOJIGvY0SC/bRc0refqTFTUTygVxoJAk9Pb24bbR/IM7fqLCqX37vLo6XlfHmS+w/EKn5B3kTmuSzdyNwprwcOb/9ai6L6O6Prq3boJ9PR/xQ9BsePn0Cp8ZNeFyTiaa17Z42C2GrU7issYpMXp1EGRmYZWag7PjIpJrNqimVEGAOYhQEnkgA0qWCUmWj1dsI/mWjJhcx5j7qtCy9Thep02ghaTQMnqTVwmCMQimNgJ4Mp2XwYsDEPv1x7d4dHLrwO8+yqb093vMPRPqRfPOsPV1cUPXoER4/e4Ywvx5wdXZGWv4h2DdqBFcnZyyKiELM+lSopyZi4Z5vuC6BWqvRoF9HX/Tv4IvP92aZ2Zc+aSoOX7qAnF/Pom3TZkgYEIr5OzPg7+6BgPYeSDt8CFSH+uzerj1mD3qbn0mhM0IHI2X/vn/pDxdGRKGw/CqPYRIvFxd4urTEtAGhWPz9d/Bs4YK2zZpxf8kjx8DLpSVX3Xv2NLYU/IOfV8bEoZm9zDoSp8aN+f7wKVs/lqpH1UjarjZFMFxm6QcVgmgOYgQbGwIPSpUKgo3yWEnslD6KjuqNYwwGQwYBp+OLzCeZUZmBpkSePR+TsM5fbE+cjeLKCtx7/BgqUYne3t484cqHD6x23uHiYmzIP4iw7v5wc3LGvt/OouL+fbg6OWHZqLGIWbcaGQkzMG+HGjcf1plQBrBjJ/xtfy739253f4wI7oWDF4qw5qcD6OPTAYO7+GFh1i4s/stIVmJLR0esyTuAY5dLsHbcJEzfssncJ9Upq7rNG2xV7HiuT8qcujkNmdNmWimaTC5tIpJrd+5glnqz1XxpLcGeXlAfK7BaK9e/e6fBQGV0z95cd/uJY1ZtrAIR2Y7KIFqmESYTagRQJBAFMV7hm5F+Ua/TdtA9J/CeQyIWkg/ky5gDGk9iTFEoDdC5bTtsnpqIOdu+RvyAUMStW4MRPXtDp5eQ9ctJTAkJRdqhn6wmSmVj3+wL9dEjCOsRyKwgUxSTuhIZibPZJBH7vszOwvHSEgz164H333kXtx9VM/Ar9ucyANNCByPx642Y2D+ElbzdqER/D0/Eh4QiYdMGbJ02E+7NW+C5TssgEVuKrl9n0MZvSEX5nTtsDZaNiePxLeWzqOE4c/UKcs6esSr3bd0Gq+Mm4kJlBcpu38JbHXxhp7JF8Y0K1Dyr5br9fTtz/9FBPRHg4WnVntYnM1AOsExCY6Xs+96cRtAD5YMEoCmRJ/PJDGQW2kK0VdHzFUXHrevHGCR9AwwkAOsiUKsE3mBAStwEuLdwQdzaVUiOiUPCxvVYNX4Sm8Cl2XuwevxkTE/fgE+ihuPvefvxSeRw+Li6IqfwDNYc2MdzZwXGjkPM6hXImDkH89RbcPNBHXvfCwyGi6MjNhzMw/K4CXwnZeV++DFGrUzh8b7Y8y0r06lJE2yMn465W9M5RiZgyRrMGRrG88ie/xHCk79En46+uFdTw/1Yjm8FYPQIGUCLaJHm6ePqxptu7tav+ZkuAuPe4xrsPfUL97d+cgKP86LEDxzE9QnwxPQN/Jrm7OXSCmeulhnBY+4Zc0HIDKRIVElphDGIYQbKAAqiGC/7wE2pWXot+UAjA42RqIGTeRlE6xMYA9q3cMGMIe/g8293InnseCzZsxtJYRG8oHPXriLqjV4ouHiBGZX2049o06w5uru7w9W5Kf82Azh2AmJWpUA9Kwnzt31tBeCU0MGs7KyTx7Eufhq+3LMb5XeqMDcsgk0l9TVujXy6FNcvBJNCQlFV/ZBNHvXVy6cDhvYIwMKdmdj74ceI+GqxlV4ZQOP4li8WDh+FwitlyDlzylxs38gODnaNzPXDAgLh49oau44XYEnMOExcuwrzwyN5M+04KvtAEkqtqNypiT0WZGzBgshoFFdUsF7G9QvB3tMnsSX/0J/4QDkKlRN5GwgEno2KwRNVNsdKJib2YQA90la0VEqKIp1G05yDGK2cRpAftApkTP7PeE8eNwF/3bUDyXET2ITsKDiCCxUViO3bHwO7dsPCHZkoqbxhXkxYQBBcmzblaDYsINhsQmNX/A3qOe+bTei1O7cxe1MaVk6KR1reART9UY4ts+ZiwTZi6H34uXtg4/SZ+K+Mbcg7Jwcadra20NDG0+sZ2IdPnmD0W2+xL1IfzsfeBZ8gYskXcGzSBMGv+3A7qkdroPGHBQRxGdVfOMII4Ok6AOUNV1ef1uLT2g0p2Xsxe9i76NKuPURRQML6tdBo5UQ96HUfJIVHwFZpg/RDecg5fYrnuXXmHJ5f0uZNqKmVTS+L0f+ZE3lOIyiFoDxQTiHI9yltVVpJqw+4MjPpvNl/eq5OGaOAPoPTCItAhgEkFtIJDEWiBgMUHI8qGDgyA7Sw1B9ysL/wDIK8vTFl0NtIyd6DhCHv4IMt6awUMmthgUFwIwbmHeDfbs7OSB4/CbHLl0E9dx7mb96EygcP2Jy0cnbGuoQZiP5qMYOy79PPEb10MYgJqfHTUFxxnZU2f0s6rty6hfDgN9Cvc1e4u7gwyGv25WL5xMmIWb4M92tq8N1Hn3Jfnq1aISk8EgnrUtG2WXOsiZ+Gint38VyrxUfbNnO++NnI0ThTdhm5p0/xPI3fCqzmOywwCD5urbEqJxsJQ4Zi+Jtv4dy1K/h853Yeb274e/w+dV8OenXoiMoH91FYdhkh3fxQdusWxg0YyOBlnTjGFuup5rns9/goTU4hTP6PTagxhSAARaWYXDo9qS4PNG0Ar9XJWQadFGnKBfUUidJFQYwkH6WZPiHRnXbXugM/IK5/CPZS4DJoCLxauWKBejNu3r+Pof4BiOk7ADsKDkOltEG/zl3YNG3JP8gpJbExOW4iYlcug3r2PMzfms7taB0rJ8ajoPgCK7xLO3c8rq1FxpGfMS8iGlvzD/LCCbCFI0ZDfeRnnLt6FZQnlty8gUF+PZA4NAxfZX2LguLfzf1VVVezTy2prOQNFxHcE7OGhWP5998h5/QvZqSoz8Irl2UTakSQ+iTm0madsfHvIAaGdPVDC0cnlFbewJI932JE7z6YEDII6Yd+xDfHCuRI1AB8/JeRzEaSQ+fP8fyJgaSfqJ698UtpKTbmHZAZyBjKB9lmAIl55AM5fbApr733uFPlokXWJzFsSlesaClCUyTptM2ZhQ0CKJ+Hvijk4wZ07YadBUesQmhvNzc0c3iNfUEzBwfsLyxkRZMQm4g5mUfyMaZvf97x1cYIzd/Ti3emvZ0dGqts2bf17dwFd6qr2aSahBRKvow2hklC/brjYkUFM8skTR0c4NumLf88VVrCc6SAgvwaAWspoX49mMW/W4xDZpvWcrS4mN91c/eAV6tWqLh7F6cul1qNQyaT6pikp09HNq8nLl385zmoETzwKYxCPkYj4JiBZD5toBeE8Kuz5jd8FkoDeq9cMsYgIcN0nCZxLmiKRv/kc1IDgNZD+FVBfQ2YfJ7ZB8rpg4l9zECj+RToHFQU95TO+SDKsqMGP+h6r1yaZZCkSA5iOKG3BJC+zgMKS+fwCpyX14ARAbZpJv9HDCQTyhGonEIISvGxXtJ2Knv/k+v/EkD3pUtbqWwV5w2S1LzuQFuSj9OMn5TMnbxi38uDx6CZ/8jPDKIlgPJBNgQhqWTmvOUvDtYgA6lSh1XLYhQKhdpg/KjLR2oGygdNx2mW3wX/d2v4T28t/0+MEUzjB13TMRqlERDEXy/dfRSERfX/J+a/ARZfUmFMwFt3AAAAAElFTkSuQmCC",m3e=Object.freeze(Object.defineProperty({__proto__:null,default:g3e},Symbol.toStringTag,{value:"Module"})),y3e="/assets/carbonEmissionReduction-4ce0d59b.png",_3e=Object.freeze(Object.defineProperty({__proto__:null,default:y3e},Symbol.toStringTag,{value:"Module"})),b3e="/assets/carbonNeutralityBg-f45b004f.png",w3e=Object.freeze(Object.defineProperty({__proto__:null,default:b3e},Symbol.toStringTag,{value:"Module"})),S3e="/assets/carbonOffsettingAmount-69ea0a03.png",x3e=Object.freeze(Object.defineProperty({__proto__:null,default:S3e},Symbol.toStringTag,{value:"Module"})),A3e="/assets/totalEmissions-1e98390c.png",T3e=Object.freeze(Object.defineProperty({__proto__:null,default:A3e},Symbol.toStringTag,{value:"Module"})),C3e="/assets/drainage-item-bg-ab621891.png",E3e=Object.freeze(Object.defineProperty({__proto__:null,default:C3e},Symbol.toStringTag,{value:"Module"})),M3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAABQNJREFUSEu9lm1vFFUUx8+9dx52Zju73W2H1lLSB4liCyKuIJIoJMRAbYzGZInfAb8Ab3jwDR9A+RLuK6OEEEOCmChIVlugKxpsWmjL0m13uzvdmZ2He4/MPtCWKluN6Z1sdjI7J789/3PPuX8CL1oIBABIOpMmhXSBWGARBxwy8GAgfA6zu2dRAw0NMNDMmJhJZxAAwqjw+29XPXDTaoEgTaZhmhozBjMGDVpcIixGfRJeYYyMMlaEjMlu5NaMJaxBiw/DsMjAP4M3A+uw8ySV/YYZXQaDKEggd0pazZUJI4xSynhNqcexiIdCCI4cuRNRffBXAqhCYC1bPJv6kAOc35TtRiACSUOaTuWm2OjIKIMSKGUvUCWbaPa8vcstw0voYhxRqCGQEOoSlZTVODzWd+qPAh2duCK5kABvKjfFR0dGeQYyYr3Ea8CmjCO5Eam/q1+WI7LCKkyr/OkN14q4h7uoCIGCICAI0agCpYAECKWEMpV4kSS5H3tZmeYx7vg135tbnvNzI7lgfV3XA2kqm2LDqWHJLtsRsapGy5PVlFcR/egDxxDEm6Dni84oEAKEyMCUGJ2L749maYdb1eN6bTo7HWRTWQ4E6sENYFPKwkxBNuOm6q660aW77kHfwp3oIhdNECIllOCGMggkSIio70oaglXCZIPMd+9Tb6sdarVQLrjmoOm3pG0BaQpSzCgYqiISuveb88pqnu8HD4IQFoI69Ihmvt5xXEpASkhiBwn/a0AWeQmyT+6sXrPtmhOCQygoIHX0sknlNe0Pj5Zsy7TcLDSybPTZV2laOFiQobMzopdovPhr9X2/KiQMBIawrj6jJ7FfOT2kD5pvagfAZCYEwGHBX4BJZxLmnPlCccK9VMpXn4RQIlEiR2mQPBD9zk6IMqys1Mzbpp85lRFhi5JjcIwZYChBPojav4s99gLu4z7ysGZRTdd7jkbPvBN723xLS0GAQeMTXs37O7W7cG81V8jfsC46jmsDo8BkwvQ+cld/ld6XeqWqBZZ3Ha7zOjAFKSmytDMSxyBa+Vm866zwLvQEIid06Ig5PtTXPz5mnGyC+Bq0CeYYwE/2LVjIL15+9GPpMmEoiEKJ1smWY4foD2UiVWvd87UsZAMC54GOnBuRBooDEYbMWPreHwtswYQftg+hwyfNs2OJE707JHMdiG/IMMx2KViCX6yJ/OzV4ucIKKhMQdIp7z4qX+GEW7PJ2VruQi4IM6RjD8Zkv8uPyHbMKN60PuJVEQgeNjawofHuLz6Nn6LhNmxJGWbUkHMN7KEHN51bYvbb0md1IANgUSolDxtf+3rFkpfl2pXdV/y2wIEPkl9+Ev+YIMKmrNbqycFHDyZqk1sAtpF08ETX2cOxQ71xFod6ZrC5hiG4wisw4zzMP7xaaivpCzfNriOJ8d7e7vG96ui6DBtSPpMWApjz56GUty4/vmm12TRt2kLRVL3vveiZXVq/2SP1PNcSDXCJl6DklgoLN6oXA8dv0xZbaHyjV+3pekM7HVM6zARLgETkUFiwhVOXsuo7heKEc6ma97fQ+I1Z2na0qTrTknv143KSpqgEO8IwHuCiVxTZ4r3qNd/GLY+2fz+8WwMcCf634d3KctuOp+YRFQ7y7TuA152L22MxWqf4tpqoDdC6odoGm7jer2ybEd5sjde89IWnpu9c84ULT3v4XNNlt8zKi5z8MxPV5qX/8+e/AJ14YGHtFCsoAAAAAElFTkSuQmCC",D3e=Object.freeze(Object.defineProperty({__proto__:null,default:M3e},Symbol.toStringTag,{value:"Module"})),P3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAABHhJREFUSEu9lktsG0UYx7/Zh3f92NixvU5JSKAStKIpqKl5IyUOB6JESjkgc+HALVJPHHup1FTi0iOnSrlx4ILFASIlggMxiDdyUoHStApSRUJQHb931/auZ3YHzWJbrls7bg/ei62VZn77/39PBAM+FABdB0DXACCVTCJ2LJlK0esAcA2AIgA6yFXuwT4PWgVAc4kEF1NVzpfLcQVF4cRQyD2Hy2Ua0XWnpqrOcS7nfJdOO6v/g3vCewKZonQiwT/t9fKNQEAMiKLYkCRBoJTnTZNjQFuWHYKQ7bEsYmCMPYaB/6nX7UQ6bfdS/EggBeBgZYX/o173hE1TKvO8f9+yntEoHbcRCmJCZAYUBcHkKa2MIPTv85L0d8i2q0VZtl7yehuwtsagTrd7DwEZ7HYyKfCKInnqdd+flvXcMcbTJoBkI0TBcdq3uDI5DnhKkQxgxURx90VJ+qvh9dZsXbfOpVKkG/oAkNkIKyvCXaagVlMylvVKhZCpBqWUfardI9g84wKAByEUFISDuCT9Dj6fflYQTFhbY9B2TDuBaCuR4MOTk5JCSOBn03y9SMgURoja3ao6wC3PGJDnOBApRWFBOHhDln/RBcEoHh5a8+k0+1YX2gauAnAfLC6KciDg37btF44wvsiU4eblPlmW44oyH+G4uOA4MYQQxQjlCo6TyZTLWzWMTTeuTaUTorh9kef3TMOofra5iVeb8WwDtxIJIaaqssPzoz9Vq4t1Sj0t2HggEHvV57s8MjkZVaanQYxEgBICVjYLxt4e6Nls/lfDuHm/VjtuQb0INd70+zc52y4d53LmfDpN2gpZ7G4nkyz1/Zl6ffqIkBncVBeQZfmdkZEr0ZmZqHL+PFDbdmHub/O/cecOlPb381+XyzeYUqZSRAhNCMJO3OvdNTCunkulMIulq5DZ+WEi4SGnTys/lkrzZceJ4Wbc5lR18dmJiaXI3NwDkG5wZWcHDnK5je+LxU0WT5HjIMRxx2+Njm4J9+7pn6bTDWarC2SlkFleliORyMi3lcqyjrHUsvPdsbGrT83OjnmYjY9Q13rXKJWguLub/TKf/7hlqyKK1tvB4HqhUNDi6+smKxEX+HkyyZ+VZXkU4+BGtfpejVLqphWlKKmqn5y6dAkBpQ9ZyWBOy16MQbt1y0nl8x+xO1mp+BBCS37/FyVRrNw1TfP9VIo1g5OBsYUFRDuBXTF0VWLMEmgwYF9LVfVq9MKFMUFR+saQ6DpoR0fZrwqFky3tlzSz4fDiVCSy5D9zpm8MWYkcatrGD5o2UNL0LAsfz8sLodAVZXw82k6czuQhBLCmQa1czn+jaTdqtn1yWbA49iv8Ux5P7LVA4LJXUaJCMAiI5121jmkCMQww6/X8b7p+8z4hgxV+qxb7tTaZ5+WX/f75sCjGJQCVNcaG4+TyhGS2DWPLpPTxWhvrq4M2b1YubptCyJ0i7pR63ObdbABDHU/ulw51ALfG3FBXjA7o8JaojoE+vDWxe30Z1iLcY2168tcnbd5PfnOPk/8BYY/FSv8FeqYAAAAASUVORK5CYII=",L3e=Object.freeze(Object.defineProperty({__proto__:null,default:P3e},Symbol.toStringTag,{value:"Module"})),I3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAavSURBVEiJvZZLbyPHEcf/1T09fAxJUQ9akrlaKVntwxQcLOQAWR8NBMkXsHz2KVd/BK0+Qq6+5hAg2qORU4DV3nIxYCAQ4X0ZolaCpFAiRc4MOd093ZUDV1pBKxsLBHABBXQ3evrX/Z+uriL8vBEzY2tri3ZbLVprNAjdrmgBOK5UCAAWkoTbANBo+N1ul9fabd7c3GQiAgC+cdEbUcz0eGuLWq0WtQGJNBWRlNJbK7haFVmaEgAUo4gpjr1QyqfOOUSRbwGu3W7z481NBtF70PeAzExfbW+LP/b74igMZSOKgqG1irUOgkpFBoAMjCEAyMOQc8DlSeKoUMhrStlumuaLxrh/TU/7f2xseLoGpZtga4BEqRRMnZ6GuZRh7lT5+OTwtsntvMlt1XsuAAAE22KhMCgrdTQ32zwIpB0FzpnB3JzBeJzvAu46NLgq4xZAa4CMskzJ4bAQRFFx7/BwdZgk94y1IQDvrAWEmCzgfWCsnR0CjV6SPJip139cmZ//qXZyIlwY6rViEVsAgxkX8sqLkz4mosUXL2QyM6NKw2GRoyh63emsn8fx3dwYyr33zjliB+TE8MwgB3j2YGbPzsmx1gvpaBTVG42eyDKv63W/uLPDv//uO97Z2ZmI8lZKtFotOgpDOXV6GqooKu51Og97cbxktPU5MzMzMTN5CUGYuJcQF+M5MxttfS+Ol/Y6nYcqiopTp6fhURjKVqtFzBNRJAAiIuo2GgHCUAXeFw+OT1d78eBebnLPxOy9F4KkWFm6/flKs/nl7Y8//rI5v/Cnj2ZmW1PV2lySjQ+ttTkJYnaM3Lv6eGTyylS1b8tl1wX42ZMnvLOzgwDM2N3eprU0FVP1epClrtxLzh84ay9h1Vpt7v7yyjf3V+/M3lleRr1Wg3MOZ73+3f88f343Kpd/93K/8208HJ4KIbyz1g+z5F7umvtTSpnB+Xm+22oRmFkwgLVGgyIp5bjfV6dnh7eMteGFjMVSqXz39vJf1j/9dPbz9XXM1OtgZjAzarUaHq2v45PV1Vv3l1e+ESTfyWtteHxyeHvc76tISrnWaBADkEQkEEUyGI+VD8Pi2fn5mjam5JwjZqY7t5f//Julpc/+8PAhjM1hr3puYXOLWqWCTJuyNrbXH5wfAICUkoMwELXp6QOy1uZ57p89ecICAFoAOM9FqVAQmdZTzlrAARACpWLx7ierq9DGwBgDfcWNfteerdcxVa08ghCAA5y1MNpWS4WC4DwXratxeFypUJamVDaG4EmRlN7BETGTUupWuVSCNhq5c3DOwTkP59yVvoOUEkqpW29vMksp2XsuBMbQMAzp4v19F/i/YNoYCCI4fwHxl6ALqLH2Q5aaxOFCknDRGM7DkIUgzc6RdAARsbX2oNfvQxuDTBtobaC1htYamdHQRkMbgzhJYK09ICKWDmDnCIJtHoZcNIYXkoQvgW0AFAR+rLUPCyqWSk0i1HsM4uTfhycnN//DK+2zfh/jLHsJ7wEJSKVQLBQGY609BYFvvz2hfPr0KZ51u1RIEunzXGYjUxqZbJ6ZPQAMhvFhNYoeeeZyGIaweX7pF7e2PxhgmCQHr/Y7f3fOGSJiIYScjqLX5UKhGyhl7OJivvn1114QgN1ul1PnXGl62i7MN/dDpUxARETEnh0/7+z99eDo6OCnTgeD4RDjLMM4y5CkKc76fQyGw7OX+51vs/F4REQcEFGolJmbbR6Upqdt6pzb7XaZAEhsbdFXa2tAs0naeyp6Az22pJ2d97kHCWKdZeN+HH8vhcjT0QjJaFSO0zQfxPHef896//zx1eu/aZ2NhBCemEiFSszVZnZr1cJxLIRGGOYftdt+54svJvmQmWl7e1u001RNAcWgWCy/6HQ+68XxkrPOM717vC/qhwsjZiaiiTORVFLMVKtv7i0vf59n2WgAZK0oshtv86LA5PVGu93mRWPcYG7O2DTNVpaXf5ipVt+EBSUu5CUiFg6eMXHh4C/GAyIKC0rMVKtvVpaXf7Bpmg3m5syiMa7dbl/u891umekxQNjeDqIsU9KYgoqi4t7JyW975+cPriXgyTfeQyoFACJUytQqlRerzeYrm6aZC0OdFosWGxv5Y+CyvvngEuP07PDWyNrFTOspeJpQBOkwUHEYqJOF+eb+h5QYv3oRJa4DiYi3Nzb80dGRa0WR7QJGGzNWQTDiOE4NkPSsTXrWJgZIOI5TFQQjbcy4C5hWFNmjoyO3fQPsxhNeu4C/UiF8fQ4zGMDW1taN8zc3N5km8vws6P81wodt9j37HynlvvcKRxw8AAAAAElFTkSuQmCC",R3e=Object.freeze(Object.defineProperty({__proto__:null,default:I3e},Symbol.toStringTag,{value:"Module"})),O3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAUCAYAAAAuoXvLAAAAAXNSR0IArs4c6QAAAxNJREFUWEftl91LFGEUxp/zzoyr64Zi5pgfZBAW2UXdBEWQQViUQV14KRiIiEgo9AfsHxAoISIiJHjpRUEWJUEGUdBNXWSUBBmu5piJ0rq6zrzvKaMVC5zd2R0/Cvdy9pznPM8PZt73EHZ/rgRol487geSAwmGB8fEss7BQ+59gWrOzEhUVKwiHlVuu5IB+d1c0NGTHdD1PDwYD/zIoJxaLzzjOAvr7l1PJkTKghJhZX5+LUMgUQuSnMmCn1Cil5hGNWtbAwKIXT54BrQdFweABIbJKdCHS1vFi1mutoxQrtTLFsdhnr2ASszIOVlZXlwPTPKQBlYooy2uIzagXzCsSGINlfYwMDi5lMiNjQGvDm5qMUl2vEpp2nIFQJqbS7SWJqIJ8M+k4o+jttdPVWd/nH6CEajgsyizrGBnGaQKK/TCZTIOBabbtFxHTfJvsVEqm9ff//gNaN6GktfWIIDpPwGGvxlKpF8AHm/nJVFfX+1Tq06nZVEAJQ8VtbRWGUpcJOMVARvcpAiQDL20hHkx3do6nE9pLj3+Aqqt1VFa66pUGAqZGfA0kasDI8WIUhCXFGGbmu5PxuOXaOzbGGBlxPOlvUOwfIIDM+ptBIzearyPbcDPn6M4eIUQtgFoQ57kGYVoAMKSUGtId/burLpZtezE0bw3cigHgnQZo7epQ0tS0F4FAuZbkNFu9FgjgLBFdIWD/+kAMfGHm+wp4tnpsu4WVQBTx+MRUb+83v8CshfGD8kYaRY2NphEMHtWZS9zmsFKCNO0ECBd+1TEes5SvSQjXPckhmrJjsXczfX3ur1wGIf18xTa0YTY3F+madlITogpEIgO/ALOSSo06Ur6yenpmMtJKoXlLACV8lLW3F8C2zwlNO0OAp6WXgbiS8jkM42mko2MuhWy+lGwpoITjfS0toRxNuwjCVSL3pZdZzYNxb0nKR1+7u6O+pPYgsi2A1vzV1WWVl5qXSNJ1EB38wzfzJ2a+M2FZDzE46PqR9pDXc+n2AkrYXV1P5uZqNEE3Vh9JxbcjBQXDfq8Nnun8bPgBMX0JJO0yjmMAAAAASUVORK5CYII=",k3e=Object.freeze(Object.defineProperty({__proto__:null,default:O3e},Symbol.toStringTag,{value:"Module"})),N3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAACQVJREFUaEPdm310k9UZwO99v/ImeZM06UeSpiRtpUUoc7CKogin4s5kMpDB2gEbBY6uFt0ZZ0foPIfDp8epgHLYBEqVFeqkjgqKrB7nJjJQYQLCmAXWsn6mTdOvNMmb5M37dXdSaQ8U2iZtwTTvP8k5ufd5n999nuc+9+MJBHfqSU5WUTpdOhRFG4TQDDCQBBDSIgRUEAIy9FqIgIAg8AMIPUAGbQghByLkBt4dqAUtLf47oRocVaFZWQY1kKbJAE5BCKRiCOHDkS9DKEEI6jGALvoAexZU2buGI+d2fUYDGFJZWRNxHP4QIjAJDBNyQCAIJQTBZUlC/+Crqq4AANBI4EcEzEydOgkiaYGMQPpIlAi3LwZBLYL4B+yFC5fD7dO/3bCANffeGw8Z1WKE4FQAZQhASExo4O/CJ0IIQngBsf53vVevdkYKHjGwZtq0hyFASyEAqkhfNprtEQB+BOBB79mzX0YiN3zg7GzSQFP5AMBHZCSPNJQi0XGAthBgEAvp8XkXx5eB8+eFcISGBZwwY4YGJ/HfyABkSJKEgDyieSMcvcJrg0GA43gIu0YSpD90fPGFd6iOQwLH5eTEqSm8SJLlFJ7nQ6aNqicEQFIUhmOY3cdLW7tPnOgeTMFBgRPmz9DQErMOScjCBYPXYe/S5BThJEgrFBjE8WYO97zU8eHAlh4YODubTB1nXieJckYgyEkjy353wSkgAEqaxnEcq6lvcrw0UEwPCJyet6hQluRZ/oBPkqMlZocaNwwCRqnGMQBO1h5+vzjsldb4xT/LwQC2ys2yIkJjhfZbPAgxqGMYQhblPdfee+/EkAuP8bm5iSRNbmd9PirIC1E3SQ1l5NDvCorEGLWaFzhhzbWKivYb+9zi0lkr8n8nSmK2x+0WwxEerW20Oh1B4MT5qv1lrw4IPOVXK6YgjFjf5eriBXFM8wKSIECC3kAFZfHFy2/uv9gLfaOFYfazz2z1cf40D8uGtWqJVuv26qVlGFJFq+q+3r23qHdp2Af8/cLCqRRJbGrtaONkaUyG7i3jj+EYMCUk0bwgbvp3cfGFnkmtt9VDz6/ezAb83+tyuWPCur1cBr2OZBSq/5zesXNjH/B9hYVJWo36rZb2tlDsxoZ5rxOTBIElG5Moj9v39KXi4rYeCz/ywtpcSZbym51OLtrjcjj6WYwmGkeo7PNtr1f0AOdsXLej2+1Od3m8MeXOvYOj12rIOJ2m9sTml38LJxQVaayM8t1Gh4MPRuFuaDgW7d9HQVGY1WymGtmmxfDRLesfJCC+paax0TcawqNVRobVqhaRtAE+/sqW/CAnLG10tgaiVdnR0MtqMikVBHkQ/njr7zd4fN6HWju6gqMhOFplmBIMCq1afRrOf+3VEme3K6WzO7byb/+Bj4/TkcY4vR3+dOfrRxqcTtrr88XkDN0LrlOrSYsxiYML/7jz73WtzQIb8EvR6o6joRejVOFpJgsJ8/a+8c8ae5PPx/ExDaymFXhGSooaLi7Zfaq6uYn1c1xMA6toFZ5psTBwyVvFn/3P0cx7/dzY3gAP4fcaFU3cY7ZQcGnpm5UNrU7K5Y3NZWXf8lLDkDaTiYfLDuwra+7sTHG6XDGdh416vcISH2+Hy8pKX+70eR6udzpjeqWVajQq49XaL+Hyd94u8Ivc8iuNDexoTP/RKmOi1caoCPoAXP7O/lk4QW7/6lpNN+i5FYzBB2LggfEZcZwYWANzdmyKy7RO+uRSfT3rC8RmatIoaXxyaipT3Xj5Rz0HAAVH/vJ2c5crramjPSbj2JaQqDQb9HUlC3++rAf46cPlT4kyWvV1Xd2gV41j1dl/kHZPHIakPX/K+8W+HuDcPXssJmvysQv1tR5vjLl1yJ2npqZrWxtb5lWsWtXcd0z7678eLelgPVOutrTE1Gw9ITmZSWQ0F9/4yYKCvmPa0JcVFeUz4xjtrjO11V1BXoySmoaRBZGCIOD08ZmGbtbz3P7cJaduAg4dyq/+6FiF0+e1VTscMXG+lWk2q41qTcPOJ+bl3nLVEqJ/5ujhWQzD7P6q7prLx3FjOimraRp7IG28nmXZZ/c+uehkr6/ccl26+m+VxQFRnH6+odYzMof6bntn29K1SoI4s/PxuYU3anIL8Mry8nFJyYkf/NfplO1dnWPyJiLFEE9PMBqxtpb2BaVLljQNChz68bnKD/M0GmbLv+pqXWyooGUMPYyCxh9MS9d7veyGXXPnH+qv+oBFLWuOf/IawuATZ+rrXYIgjIlZmyRJOD01XQ9l4aPts+c8fzs7DQi8orSUTs5I/TPLCxPPNda5xSgv5SEwDN5vTdMxFHmlpab+l/tXrrxtOA5amFZw7GBCosFy0MsHU841NrilKK3oISAGs602nYZS2Gu7mpeWz1vaMVAUDll6WPDxYbNRl1Tm44WUc/YGDx9l98cUTmD3j7Np1RRpd7rb8kvmLHIMNuUMCRzqvPLQocQUq7lERGjy+aYmtzcYHQd+GgVNZI8bpyMQ/MZudxSU5uXdVKIUUQz3b5x76JAy02J8RaGg511pd3obvuOUZTMY6ImJJk0wyB2rbna+UJGXF9bWNiwL3wi/9tSnS3RqZr2LCxDfOBxeLx+U7kIdfF+pKUMp8Mkms0avVIpuH/vitpmPlUeSNSMG/jZPV9oSE/WbKYrKaXS7AjUdnb6gwN/R1KUgKZiRkKi26nRKnudPtLe7Nu6aO7chEtj+m4dI+4Kik8cf06rVa3GCnNjs8XB1rs6AmwuM6oG+jlYSafp4pUWnpSVBuOLx+bZtnTX704iVvd5hWBa+6WUIwaLTn83WKbUFJEFO9wpByeH1BltZN+8OBEUEIt2DYCBOqSBMah1l1moUGlKBC6Jwxu31lGyd+ehxAOGIPGnkwDfQP1VZaUsxGp5UUoo5OI5niQhBN8cJ3mBQZAVe4kRB5iVZ7q1HxjEMUjiG0QSJMSSFaxQKQkfTJAEhkiSpKsAHP7Y7u47uG4brDjsPD9d18o8ciLemZExTkeR9MgYzCQyzIQCScQxTYRjW81c8SZYFWZb9EIAWUZYbMBlV+wXhUpW95uz7C5dH/BedcHT9PwKK0YNJAvDCAAAAAElFTkSuQmCC",B3e=Object.freeze(Object.defineProperty({__proto__:null,default:N3e},Symbol.toStringTag,{value:"Module"})),F3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHUAAAACCAYAAABmI5PFAAAAAXNSR0IArs4c6QAAAG5JREFUOE/t0rsKgwAQRNE7GjFiIJWQxjL//0Ep04hWKSQRHxMCLtimFbc7TDPsrlr7soBvUs86ttVBGR5grqX3Jj91cA6/YLxLQ/hh51fIwhV8JE3hp13kkG7yXpLDjV0moJ+Pbv/vTcdR9/dwXzd+uevLm1eBAAAAAElFTkSuQmCC",V3e=Object.freeze(Object.defineProperty({__proto__:null,default:F3e},Symbol.toStringTag,{value:"Module"})),z3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYYAAAAfCAYAAADjnmraAAAAAXNSR0IArs4c6QAACG9JREFUeF7tXctOG0sQPWM7zHhsB4iCEBELFlEWZMkP5CfyPffme/IT/ICXlxULL9C1EIi3nwHmqqp6ngY8vgMER6dljad6qsd2q6ePq09XlYd88RBJhR6AHz88/CUnesDfTvefnz89fBdBDzjZ3/fwTc70kJQv3a6HPRH1gPODA09PdndzejeHh1b/2Q6jXk/lnR09JrqDoyPT27bDuN83eUtfdgJgdHxs9ZvWdHxSM3kjvpWdTE5Prf6j1XfOnN6HWM9Opufnprdu9b8uLr01rEFecZleeqYjZRX4dXXt5PfA+1Tv9jrV63SAX9c3abtOO1G8vRl4gJPbQKCyK+1WqjcYeoCTW8Ctyq60wuTUH45cfQiEwO0wo6dqpns3GnlNPQuBpsnJTewC5EKuXmRvnOoBCAKnN87WB7hHXg8BECDA3XiSa3/nISfDB+4mouMnX+d+MvXg+5ka6OX7gt7ddOphRZpZWz06vZrv22Cf2G3dG+qI3EMQf9wEqhsrJLoT1LCS06377gHK6Mpd6lH8YNk964EfjTE2wb3JaS0IIozTirrIGJlaRk/rtdqu1ZtN9z1GcVXSV3XE14aqneoOgWGihkYYRqk8xCSM2wEYpIqNVhhhELcbQOVsubGLjXYrupETPYhc6Ndru/iu09b21yo73U5G90rq9IB37zv2WZemt7K6GgEXacMLkS7wbk3qZeJxeuvr7jueWYV78z/cR6dx61PA//gx81tO7MoJEGxsRMCxycdAc3Mzo9dHX+r1AARbWxFwpC8pre3tjG4PPansAc2dnQg4NKVDoP35c2HcHQAHwPrurqvvAl3g096eyvvpr1ZpA98y7X/iK74ncjx/uyb5z7FpKanLP3yAl3seFBgMFKQsAgwCEf8+BAyKCQ8Ag4KCFAMGAwUpBWBQUJDigKEACnJFgcGBgshlgEGwYVISGFoXbnKvAAwd+WI5YGirHJcsMLTbgMmuLAgMAhu3CgwOKCoBg6FDHjCauMsAgIGClHy9oMV9FigUFKQUgCHwHQik/VEdGDKgILedBwx+lAMBgYwiiMhtZO6vFUDkcWAQEErRQoBBEEHn+rnAoCO7JDCIqoFFXBQItMom92kCIk8DQyNsRsn8L22dkABBIhcm/AwwyOfdlAQGOGCQt0YWGOQmDhzKAINAw2AeMMg9z4DnAQa5WR/9IjBI9dEsMEh1LwEGkQ5LAoPodvEJiwODtMyAQ1VgkNstbjEsDAzyMZUsBrMW9PF5YYuhdXHpqblQARjke5a1GKoCg86DL2kxNIsAEE/484FBvtusxeDjzstbENWBQXtBx0cli0FukLMuaDEIWjxlMSwKDLHRUAUYlstiWAQYlthiiBeUFrcYzGx4XothE+OTEy9dRpJPmF1KosVQdimpaDE0bcnpJS0Gt3o0s5SEqS4tJYtL7uThpaQ3YDHIUtT4lSwGMQ8yRsPSWAzyeF7rixaDzobFpaRFLAbga2Z5qKLFIM3JMZjtQY6BHENsh5JjIMdAjsGeBnIM2g1F8pkcAzmGFC7IMUhfNFrkGMgxlNiVRI7h+XYlkWMwYuBN7Eoix6CYuMiuJHIM83YlkWPwbEPSY7uSyDHE/0SXZ1cSOYbSu5LIMczdrqrjnxxDPA2QY9CeqLQrSW5APwb6MdCPQVnn/G5V0I8BWKEfQwZw8j41oB8DdyVVc3CjH0PRya20xRDRj2Gegxv9GOY5uC2yKynv4FZxV1LG76GC5zM5BnIMZRzcZLDSj6GMg9vyej6TYyDHoKYK/Rjmh8T4czyfyTGUthjIMZBj0BlSA2K8gucz/RgYK0lGGmMlMVaSTjnkGJbL85mxkubsSjIG+nk9nxkribGSJIjeG/B8Jscw32JgrKQ5QfTIMSwYXZWxkn6bxcBYSYyu+kR0VXIM5BjIMUgPlAi7TY5BWedy0VUZKykJp10u7PbschJjJT2wXVW66Y+OrkqOgRwDOQbbo818DOQYmI/B+SswH0Pi3Kb/lZiPwQaGS9RDjoEcw9JYDOQYyDHEbnjPk8GNHAM5hlewGGTQMh8DYyU9awY3GVRlE/UwH4PDjaoZ3JiP4WUtBvox0I/hGaOrylPPWEnxf2bGStKeYKykZEAw5zNzPseDgTmf07Se0idlUnvSj0F6ihwDOYYnyOeXtRgktTNzPmf+4oE5nyXJsyWDbrRbumbOnM/bGe7gtTyfGSsJW25fUkI+y8mmPa7jk5qnJ5bR88HUnlLbOXN6lrjt0QxuzPncRD6zG3M+lwOGfETLeuBHY4zdIE3vUAuCCJl9qctuMSwKDMz5nB1NxdSe5Bhc75BjqJqo52UtBnIM5BjIMdhk1Ue/b2fB1lYEHJlwNOvgJtW9HtDc2XGWRFnyWVp28Ql72m4/iyHYxwa+5XY1MeezdhDzMTAfA/MxMFYSQI5B5kNyDOQYZBw8EkTvZS0GcgylLQbGSmKsJP0DS47Bw550hB5wfnDweBA9Uai0K4l+DPRjoB+DrSy8reiq5BgYK0mHJfMxMB+DTVBFUjrA/XhsGwF0IZaxkgBHPzsOWrrlYfLZJnzGSroqtV1VFpMGa6u23n5uw20mtadUMlaSdc781J6i5fiLChnc5C5fut1Zi0Eu7O4mc4P+mzg8tMmiksUgNyDHQI6BHMNbsxhu9CG3R35eas/reEuS6HailEi9ktZ6KAUM5Bikp8gxkGOQcUCO4YkgeszHICtMwFAn12mz6SbdYVxlE3cYRk5FdRthMzKPBNfWCY04zHYiZyZxBQL6Mfz+XUn0Y6AfwxPAIJf84cgt4YRACNwOh+mSTigaelD/hKaehbISVPBXiCcI+jFIT1jIpAlqWGE+BuZjgO5ULW5XdTtWW9t5Bzeln//XdtXX8WP4D8BlF7VMx0wiAAAAAElFTkSuQmCC",H3e=Object.freeze(Object.defineProperty({__proto__:null,default:z3e},Symbol.toStringTag,{value:"Module"})),G3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYYAAAAgCAYAAAAWst+iAAAAAXNSR0IArs4c6QAACd9JREFUeF7tnctOG9sShr/qi20MhiQKQpEyQFFGmeYF9kvwPIjn8UvkBTJlcJRBBpEixFY2G3MxdnfXPuvS3W5jiB3IPmdQTIq1+uJ2215//+tff5UQ/gRVODkRjoHxBzk6gvNP+8IfMPk8Ej7Cu9Mt4QNcfekJ7+H2ayYcwv63THgL0++p8AbuzhLhAPbOE2Ef7v4U4TXMfyTyCpiJCC9hfiHiXnwolwJ7zGUisEsR44ArgR0KuQ4RF7cZyI2PBS4OKeVWhkDh3gdQuvMDPUIsl/rz2F/V/bGdSzw+9leI9IF2v5lAn4o7yWYi9KGaIfRcFOn52LZ9/xzp5SHio8T9kdxvnwt5js4LH9PYvtdfzIUsp4pRi0KyLKMqwnHaHFdInsf+LMPtRwZJIT5qQScmTbvdnrr9SoS0jVVZSpamaFkKaYaWhY++nxSlFLKUqigFUlLXJqOi8NFtd/tVErb7/WN0e4d22M99Zv/9NkoaY912r536a6iE5lpSkqoUkhRdilK5/fwXoPNeZKEtaapxBw2v434I/s9HUbRy/1QlkqTaREoquseGH5H/voRjF2LZabvj3I1PtXQX566hbGOSploUJZKlSlGQZJmPru36E98P4m5XAZW/ff6Gxag+1v2da1H30bbHSqbhHPFc9TklvmYVr6Fu+2uZF5S5i3Mkz330/eG35mOy8N6LZoBp+932ue/PFWYkPs6ZzyDpobiYqzJ3ER8LF/32+piezvyxPYW7GGek2tM73+77/rTZ3tc7f23hc3Jfbx8Vnbo4UGUKyQAf08FAp9NbH7m9Jd3a8nHm401o39z4L4v7ybj/Ug3nzhgqXDPVEDO2Fa7INMTpaEeZXJKNRsrlJfnuSPkbbvZUuYD8hSp/Qe+lKj9g8qpS/oT+a1XOYbBfKWdwcXCgfP/O4M0bhW9s81a/8pUtDhW+sMN7hVNe8kE/A6P4nvdjHI/HcHSknJzA8bHGoVD9j7ALDMccjcfC0RHnnz4Jf/zB5PNn4eNH3p2e3gOGw0O4XgEMBwcwXQKG0Y9EeAWzvxaA4QUM/xZhD+aXE2F3l2IykdFol/nkShjtUFxdCzsh7uxsU1zfCNt1HNK/uRWGQ4qbFijYGtK7vV0bGAYeULrA8CCAgJSzmdDvUbn4CDBkDSB0gSGtASRu17lI3gGQFjAyN/CvCQypB5guMAQAcQN3CxQOILIMqjWBIWkGU2kG2dQDRwAE9ecPwJA17cXrCP0OSDqDeqftACdsTxb7I0AkNZhsBAwJ+P0TDyhJAygB9AIwtIN4AwwJ6p8IXHSDbECXBRAJ7e6AHwYFBwjd/jAANUDigaBoAKFaCxjcYK5aFJAsD+IerxeBoT5/pqUb9TvbIpg05wjA4M7pzl0DQAsEDoz8l8WDWUKIpY/tfUvigLgKGAJghHtTA0YNBMUSMISBP4BGfc4w8AfwmDGPIFIDwoxiBTA4QJh7YPCPH81re2Doq3IHaZ8mTj0Q9JXplMQBwXT6IDA4QLi9BwwOAG640y0fa2DItod6dXVNtrOtXF2FOLkiH+3oZALZSJVLyHf158CAeyx9rXDOgH2FMy44UPjOgBYY4CtnHWDAPYf7e/CfJWBgPGa8LjAwHj+ZMawCBs8YVgLDczCGYWQQv5MxBAaScyflv8gYNgGGar4+Y9gEGNwDc1YDwQJj8AP4EjC4dhqByDMaD0gLwFAzhDhI32cMKQEEAnN4GmOogaFlP7/EGFYAwyaMocskImNIUy0XmELNHB5nDOsAQ80YMg9Av50xuMFaH2YMq4FhNWNwwFCuYgx+RiCwigAqARh+D2N4HBienzGsCQwdxrCvnJ0FxrAEDP+3jOFFnEranDGIsMuDjGHgmcNPGMNwSOmYQs0YtrZiG8qpyGAQIgOopjVDEHkqY/BTSyumkn4XY0jjgLs8lbQeYwjMoZmK8lNMj08lPcwY6qmp52MMYbpokVmEQb1hDFSd6ai2P05PxSklEbffQ4whvMY9xpCoZwpuvuFxxrCKGTzEGCLT6ADB44yBoqSMU0YtQ9iAMfipqk0YQ5iuKptpq9B201arGIM7d5giilNHz8UYIqvYhDEEgOhOJa1kDJEhzP8NxrA9VK6v2ZQx9PZULx6aStqYMbgJ+PD5PANjMI2h1iRMYzCNwTSGoHOYxmAag2kMcfrCNIYWGExjMI3BNIYgPpvG8IRVSaYxxKmlZ1iVZBpD0Bp+bVWSaQymMdSrltZdlWQaw29ZlWQaQ1i+6jQH0xhWiM+LS01XrEoyjcFN35jGsO6qJNMYHlqVZBqD+RjMx2A+BvMx+NVK5mMwH4OwbT6GRYPbequSgtFtk+WqpjGYxmAag2kM5mPwhqRl57P5GJadz+ZjqAGjTh+w2vlsPoZlg5v5GFrns/kYfuJ8Nh9Dmzrjceez+RjatBrmY1jhfDYfw33ns/kYnuJ8Nh+D+RgsV5LlSgoGN8uVZLmSYhI9y5VUA4P5GMzHYLmSLFfSchI98zGYj2Epu6ppDKYxtCK05UqK2VUtV9ITs6uaxmAaQ0y7/dTsqqYxmMbQpMhelV3VNAbTGDAfg/kYzMdgPgbzMZiPweoxWD2GVYV6zMfQFuwJhXqsHoPVY7B6DM+QXfUYq8cQ0nGbj2Exu6rVY1gu1GMag2kMz1PBzTQG0xhMY/hpBTfLlWS5kqwew4rSnlaPIdR+tprPC7Wg1yztuUkFt1ALui60YzWfQ6U4q/kc6kmbj8FqPtdu/pMT4dh8DOZjuG9ws1xJlivJciVZriTLlWQag+BrPLua92A1n+8Dg2kMpjGYxvDxI+9OT4UPcPWlJ7yH26+ZHB7C9bdMeAvT76nwBqweg9Vj0MLVgM7wNakzV2O6lCxLqTr1F1J8Er6mPkPm6zCbxmAag2kMpjEwlEuBPeYStIUiRtMYTGNwldvC3P+vVnADIuup2Y8stCVNNe7gi6abxoCaxoAyBdMYTGOQgRs/JAxCpjGYxkCCUoHlSrJcSZYrKYrP5mMwH0P9dG0aA1q5p4VAOxbYRYlpDKYxmMZgGoMbGjyjyEHK2Uzo96hcdLWdY43naoZvW81n0xjEz4A5Oh4BJU21LEv89FVZxFhS+XbdX5K4ttV8xmo+Q++lKj9g8qry36U+rxXOGbCvcMYFBwpW81lgm4Hc+Fjg4pBSbi1XkuVKslxJlivJciVZriTLlWS5ksKKpqQqhaTNkaSxbbmSMi2dkuxEswY0grhcZbXIrL6duIVjC8a22uCWZKYxmMZgGkNHfLZcSeZjEDWNwVVya4EiU+YFZe6iaQymMZjGYBqDN7xJY3xLawNchvcp4HwK0a9gPga/ztY0hngPyphqJInthFxhTuHjjLrt5tHdPuZj+N/6GP4BeJrLWk0wNugAAAAASUVORK5CYII=",U3e=Object.freeze(Object.defineProperty({__proto__:null,default:G3e},Symbol.toStringTag,{value:"Module"})),$3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH0AAAACCAYAAAB19NMxAAAAAXNSR0IArs4c6QAAAOVJREFUOE/t0bFKw1AYxfH/SdOmbQSnigoKDk4dXHwAfQkf0pfQB3Bx6OQgKKiYSTBt0qY5UvCDOBTc9S73/vi4cDif3u2dFrwvlXwf2yogD9ewPpIW4Rs7ncIw/AGrU6kOz+zBBAbhCVSSmvCjPcwh7cznktrwvZ0fgMJ70me8N/cmc7iB9lCah6/t3gWMtmW7s/vHkMX8CepzaRV+sLNd6IdvYXElrcMv9jiF5DfZXsFnP3tNChjH3xKaE6nq9J4WnV4LWE6l5bZsM6guO70+26MMep1eS0kOv9l5AtL/0v/e0r8ADRO96xMO1r4AAAAASUVORK5CYII=",W3e=Object.freeze(Object.defineProperty({__proto__:null,default:$3e},Symbol.toStringTag,{value:"Module"})),Y3e="/assets/loadClassification-14d125c1.png",j3e=Object.freeze(Object.defineProperty({__proto__:null,default:Y3e},Symbol.toStringTag,{value:"Module"})),K3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAAAmCAYAAAAIjkMFAAAAAXNSR0IArs4c6QAAB7lJREFUeF7tW11sW2cZ/r7v/NnHzvnxb5y0dux2aukYbLvYgIDUTWzTtHEDCgOxamidytop+0EMtinaElR1ZVMY7VilZioUNq2TOu2SC7gBLiZNqCpCDIU1zX+c2I5jx/Y5Pv8fcsDHTus4Llc+8vGNL/z58/M+5znf877veQ1Bh6/wiRN+OBhbBRB4O/yKu6xLGcAWnsmNvXqwGR7sFGt44tURLKu/r84tmp1+x13XfQwwsQgiAuIvc6+Nj/1fQohMjL+vpTOP6PmCK4Tuu74dI2IP7md0y/pG8dSpv9+6EF54wRvh+67L0zMYG64OOma9yxYirwd5U4m17MTP77oRWkfWEBobexQoyrvy3IJsb4AQ9H3pUAIi1NEeXcZJL8PBAALcTEAtZ+joIkbGXjmnrq0/ZOQLan0DUhQ4MizGlNmlXibVUbFDCCDGQAEQWHXg9ZxhdyGMjjJRru9q5fPrKtZNW0meVDxhVSRe3yhuU5ejmOklsDUVIISxaZWaw67nDLsKIfrSS980VfVtaXahWN8AIoT8tx+4U7o2C4CbMzhDTghBCGEVW1alDrg5Z9hdCC//7HUlk79fy+ft/IAUhCAdFA9U55fczNEZMgCQJAlsmlkAsGbbQjTCUAHx3ezJkxPthTA+TkZl+c/lmTnZMnTbV9j4nkOmrAT1wqYFtvKO2jbue9fyABFEJIGxbmxL6NgDKQ4A+K3c6dNX2woh8uKLw1hR36jML+aaqgXkP7DvsDy7aGLDcMj90NswIUEQAIJNbFj2dUReD+HbF69kTp4arrHTVgjRn/z05ep67utaLm/7CikKUUbk75IXV/Teptc50RM0TVmGMY8ty7Z3T3/YR4ripdzp06+3F8LICBGNxz8uzcyVsd7ICL3xgbtNWe3XC0X3OHCCFhCEiKahpan/aobbtz8Vwggdyb355laHcccTIfT883cDXX+tPLuQsTeAEPXdlnpUWlzRsWG4ZaMDhIBIkoIIbpi6bucHBOMh/am4lfnFGw/aleBOsfQ/99wJOV+4R13P23UnJXAxRhCGpeV0o8PoADJ6GSLhYbyWZkwDbJXtaiEc6qNF/g/ZycnJ9kIYH0fRQmGqNLdQtjTVtgB2z557jaoyqBU37RKkl0nu+tghQhTDEIZSvbLNFvalohDiZ7NnzvyjrRD6R0cPGZrx49LcwmrDFjDk9qdGKktpFeuuLXS9CAAABE1RAMENS9Wv1/ESHob0JeN0dnLyu/+r+bc+apkjRE6M/kAtFu6sZtc36xvQPD9Aidx90nLariCcQEYvY6S8XtY0jM+wYdhdYU8kzDMB4S/Zt94618xNKyHA6DPPnCwsLJctpWrbgn8w9jVT1fZqxZLSy+Q6JXYMIKK8Xsaoyp80Y+ZSQzFEEhOZs2f/2VYI0ePHU5ZmPFXcZgsIcqnE96X0ahU3dRidQkov4kQUxUBEbJia8nk9fkQzJJdM+DJnzvyo2RZaWkP/seOPKMXiQWk916gWeD7GCNwD0vKqbRW9SK6TYiZYr8/SzZotFOq4PeEgzwTFK7mzZ393Yyw3WUP02NPPbi4tVUylqVoYiH3V0tS4WtisOomMnsWKUM0WvLosfQIwtPs9fDIRsyD1dn7q19NthRB68skBbIHvFGfnGk0khCCfTDxWWVurYl13nzY6QF0ETXsQIouaUm2yBZoUkwkh8847rwDQGExpWT5Gjj49rBQ3klI212g+CHyU5rgHpPTahgM4cCECAGiW7dMNfRrrum0LbDjI0YL479z5cx+1ImmbNYSPHhspLa/Ipiw3mkiDsXssVd2rbm5KLssOYABCRLF+VpelvwFs2bYgJBJRgMCHuQsXZtoKgTt6NEAq+v2lhcX15oV9yfi3pWyuammaawsO0AFB0zQkqIpZlWftJhJNE9zQXjF7/vyvWtnCtqoheOSpLyjl4oCUW7XvfIbnQ15euK+y4tqCAzSwBZFkWZ9p6HOWptkVHhsO+728sJz9zdQfd4rDtobIE08MF9JpVa9U7Du/b0/iy1hTB+WNgmsLTlACgtDj97OqJH8GzIYt8EPxEPYyfypMTS22FUL0yBGfoYMv5uevbZtwFZL7HpIyWcXSdXf2wAFCQAxNEQSpGHI1XYeLKQqFkkNi5sLUhzvZgm0NoccfjykFSahkl+3/LVCBgODvC3yltJa2M08HcNHTECmPx6ObZhbqhn2Cs8EgS3FcPv/ebz9tR86WNQjf++FQcW3eAJuNAVX/0MBtwFCilULBnT1whLwISLMso1XkFQAbT4cD8aSgAvOqdOlSozfUIh4IDh8m2f7+iDw7a58GtXXi0NC95WxWMwx3QtUJOiAhRQCSNAyl0rB3rxeG4nFu/eLFv7azhf9aw8MPMwAABqys2Emif3CQJX387cXl+W05gxMI6VWMtQEUHWMFaJqdz/kCAYYVIlLug4vXduNl60QA5fK2xpKYOhTTVFmQNjLuI+fdGOyWz2szYxgYADQOdjGVYoFlLRUuX971YWHLwZRWOUO3xOvi6JABFgAueZAtvX+hNp2066DxzULYIWfo8OfdZV3CgF8QCMTzRuny5Y6eEd0shBY5Q5fE5sK4FQbuuIMA09NVcOVKR39Eanki3Jgz3Mrvu2u7iIEORVBD/B+3aU4VII1igAAAAABJRU5ErkJggg==",X3e=Object.freeze(Object.defineProperty({__proto__:null,default:K3e},Symbol.toStringTag,{value:"Module"})),Z3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIIAAAAmCAYAAAAIjkMFAAAAAXNSR0IArs4c6QAACChJREFUeF7tXHlsHNUdfvPm2N2xZw97b6/P+Mj6Th0rCSYQAjgVRAb+cCtVjZAQjdSCqkqkgT+qyg2iqVQiWqUqrkRBlYqCggSSW0hRQiMKBDd1ArncxPG1a6/3std7zF5zVut0xuvYXm/71448/mck683z97753ny/440RUOTPY2NjBsqqDyEAEEXeog4rUQZEUfR8WNtSlw8PKRbrwN1b3+c48Z1IOJkt9h51XOkxoDfpcC2J/m5kR9tL/5cQnpoY/yAeSz2WTGSZ0lueiqhYBqxOgwHwSN9f29ou/89COHDxYjllrwyGfNEYLwhisX9UHVdaDBAaHKu06em/7OzYcT+yoqzhyetjgxwP/ri4sByWJoAohFXu6lqIIEXNUVqUbGc06/dxLmYo6iE+ef3KnxMR+kAimoxLFJZVUAa9xeRYCtPqG0IhusptWhGADBCBIEGWYoYthbDv0iWdSYt7A3PhBZ7jeGkCW4OznmVFKpnIqEJQghAQBECIAEEAsXy4UsywpRAOjX75FMcJw6H58KxsCxDCmvb63UFflBN4WRtKoGPbYoQQQoAgaUEUExIJ+THDlkLoH/1imI7QffFIfFGagKrUWyhLxc4lf1TNIBQiLYijuCCIQSCKcvpvqKQMOkrzzkdtu35aUAitZ88SLqf9dsDjn+EYjpVtYYerk+UEEx1LcgrhYVvDRCBEMBRFOY6fySfCVmOtRlDk8XNdPaMFhXDw00/7RYE/HZj1/3vVFhC0urO5Pzi3mOZ5Xo0PFCAxFKI4goAELwp+2Ra0hMbirMQ+3tXbkvtdQSE8euHCqcRytDe6uCxPQJkrnHpr5e7wfDipAA5UiAAAnMBJXhAnRVGUn5nRbLCSBvL9T3r3vVJYCEND2MEH9l72T89PsAwn+4qjqXYvy/GWRCShlpoVIDMEQogTmIZl+a/z4TrqHS2cAJ65uH//PwsK4cDIyIOcIJzyT3mvSRMgKAprutzfCXkDcZ5lhZX3Sc4c1GvJ8gAxTIeicJljhem8bEFnqXFUnH9wf+d/n+Dm1vDwyMjPE8ux7mV/aF7OFqzmGoPd8lDIG4goYDOoEAEAhJYw8rxwUxTEqESI0WqqKtNTn1x45JGfyZt8Q7bOnkUfwrBzCzPeO2yayUhjnDsbDjBZ1h6PxGiV5dJnAKIISmg0VJZh/5GP1lnv6kIQ+OzFQ4dWbGFTa+g7c2Y3LwgnfHdnrqxmCxDWfqvjudCsb4llVyuMpU/H9kWIafAyCNFlluHGZVvQaXT2Gofr7/2H+sBKxbmAEB44c+bHiUi0PbIQ9EoD9TZzrcFh+3ZwZi6wfalV1sq1JGnmOP6qwPNLEnKTzVJdZqS++uzw4RP5q1mfPooisu/dd/8UmPLczaZSaWmw3d38OJdlnbHFZdlrlEXL9kKbqyFpy0hTJp05D0RR3vmOptoeHCd+8tnAwL8KCmHP22+3cix/fH5ictUWUIjUdXf8KOjxBTmGkSuM24taZa02FxsgGBpjMqyc9Wl0Gp2twdX4+bUbT4ChIbkDuWGMsOett47El2NNkXn/nGwLVkut3mkbCE57vGq2qIxsWVtebhM4/grLMvIZEpPTVqM3GK9/8d3BU/fLep019A4P/2ph0jPD5tmCLWcLLOOKhiKy1yhrf2wvtCiEqJYqt2aTqb8JebZQ1dLQAxHk1dEjR64WFEL3m2/WgSz7A+/tO/LrBBURpLqn64VFz9wCm2HUbqMCNIVrtXoUx+hsOv2NBFej02ntjXXuryYnj9xvC+usofvUb5+gE7G6RY/PJ01gcFqrDTbrM4Hp2UkFcKBCBACQFOVgWe4bjmVlW6hw2l2UqWL68nPP/mEjktZYQ/cbb7ywMDHly9BJOVtwtbc+ymQzVdHgYkhlufQZQFEUJalyezKZvoCssYXGLkhgw2PPP3+zoBDaX3vNJiDo097rN+/kD6zv3XU07PH52XRabTKVvg4ATmopDCNSTDpzS4KL6giiqrGxdSzoP7aRLayxhrYTJ3tTdNyx5JmWd36ZzekwOWwD/olp1RYUIIIcRNJosPAsM8FwnHyirNJhd5RXmoNfv/jD9zZbhmwN7UOvHl6YnVrM5LWXHV0dfWyWcUb9AdUWFCAEiKKw3EBZaZoeBcJq+bja3eSGqPaDay+9OFFQCI1DQ3osw+2dvnFLrh3kbtixp+d7oVlvgEmnVFtQgBC0WpJENRo2laRXW85aDV61s6X5WiL2m81sQbaGlmPH6hN01hi5Oy0fdTbWVZspq6V/YWJySgEcqBABAJSJMnIs58tkGfn7k4oqp1lvrYzdfPnl84VIWrGGpuPH3XMz/mQmGuBAKmc0ANR2dHcLGda65J+XvUZlu4QZgBAp15sMaTo+hcDVzxLtbncdJmovjf/iFbmBuGHW0Do4SNBml8t75cs1Hz40PXywP+jxRphUPAsABgDIHVhWr6XKA4rjuFanE9N0Uq7+4iSJutyNtbdE8cNCtrBiDc6jR8kUwxDRq1flZpK5s1NvtDp7PRPj8umkEt4LKjQAgK6sjOAZJs0yQK7+Wqucer3Zkh3/5ZBcYdw8WBwcJEC4DAKQ+5Ap978TZkFzT09dMpYyhoPzastZKTLLAgB5YU0LoLrdbUFJfPL2yZNb9og2PM6+UcwgxQ7q9V4MVfI8YBRsaWuouPP66zekA6pbBov5AzaLGZSyMVSc9xgwNzcT5XqHOPv7Xxd1omzdG2GjmEElV3kMuHp7NfMkmQSnTxdVA1pvDRvEDFLsoF7vxVCK4EEXFMG5c0WJICfz/wA8pjsHCqTpSAAAAABJRU5ErkJggg==",q3e=Object.freeze(Object.defineProperty({__proto__:null,default:Z3e},Symbol.toStringTag,{value:"Module"})),Q3e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAZCAYAAADaILXQAAAAAXNSR0IArs4c6QAABJRJREFUSEudVm1sU1UYfs85dcZvt6ytE4eESFAXVDK3xOgPlcSfS8zYMJj4Q1ta1EEwc52GhAZ/jC4EI5HRsm4mhkxsaQxECH6xzQ3cyiosU4L2ugQhI73t2PxA3dZzjnnPuffCkEWgSXvuvTn3eZ/zvO/7vCUDFyY+JpRIAABKqFpB/wIh+Ny60Y+u8SEgpST6BQAhhb7G218kl23bd1xSQIRIQihulWAFsgMvBC0F7paEgCT2tZSCvNP81h0KfNmKlZPAGAdKhSRE4IqBgOBqUbdXdTIKABZDgTeSAK5SUCI4BSFZdjRTrsGfqM4DZVwBMwRU4DoI6mLLZR3dUUpLQEAIBKQAggIXjHBOs6dGvBb4k6bUzBV7DcysVeVDSaZEtZOiUqEkoSiLAuecIXtcje/TFTZ4ToHPC8AEUMBTSK27FeSy+ASkIFKicMgcv5wB10GMzNAiDb6yNicp4cBoUQdAYC0PUdIQGVrvdyP7SLTTVIzxI4C0BH1uZB7piE4p5kIwBX7iuweIIYpyVd2LhV8nLswCcxVBBVHgnKD+QAVQBA+4fQ31nnhivxnZE8+hUC0Bn8ffuNrTuS9RiHTsvqhZFzGAy0gfryRfjY9vLrm1JLx2XbAwkTNnHWkY44o1UfKopLYG/e7XGuq9XclUDiX3NdR748mUGdkVnZQoi+QqoVDkLiN9bLE63tFzZ9tBwqY1/oBZmJ6ew8oBgjmwZKFEaY/qtgb8HgyA73UnU7m26J68YgycSgRGaTh3GcMWOG48buY+nJqe9q8Nvmn+fulPS3tbGmSPFURkKOD3IGN8pyu5P7ctGs9jYkE44C5kbwwPPui0Km4+MTXZdfbc+Zdfadpo/j0zV1Sl6bCnIhRcV+5rXO1BxigLniCeSJmRaCyPpSiV3shcuIyhq8AhHKbpDU2fGOPjda9uajZnisWi0pxR3vp6oMz3UqO7O5ky22KdOSQTCvi9KsmfJvOR3dGCkkWBc5cxdGw+c3yhIRwuadnQ9Nnpn35+zt/cYs4Joeo/tD5QRhkT22KdeQDMgS74UNDvAaFKEZNqaX4NWez+CMdit9etaTyUHh2tfaN1c14Q0N2r6h6bCcvTMQHsTqKrRXfnfxJ6tevt6u2985ma6q+/7OuvanmvreB4DiWCoD1c6TcgNDhWjShilzKnFBey052HD9+96vln+xMHDi7duuODi6prbe+xSlNbje0vFnMhmGqihYDt5z0jI+Urqh4e3JtI3dfeEZ3W8hDpOKY1FxxntI0L2///wFWz9PdX1tZUD3Tu7blnZ9dHvzk+r50Sp5Xt52i/WIpUGdf1gOOeRCbz0KOPLO9/Pxa/rbtn3x/YUMq6Lnu85Yx6aBiZ4YrrBkeMI9lsVeWi+3u3tG9nqc8P/YVjAgCnkuXtV0yj7MkR7w2BI8RA7vzjpXfd2/f2lq3iyDdH/wGwhjqOPZylEqcAp9nRjPuGwTHAgTM/PL108ZIvNobene37dnDGyinOfhUAdc+OnSy7KXAES54ae2H5siUHx348PQ/D/pvxVG3NLTcNrk9w5jF3aWnFQkXxLwzotbT5wnlEAAAAAElFTkSuQmCC",J3e=Object.freeze(Object.defineProperty({__proto__:null,default:Q3e},Symbol.toStringTag,{value:"Module"})),e4e="/assets/dialog-91c9f1b4.png",t4e=Object.freeze(Object.defineProperty({__proto__:null,default:e4e},Symbol.toStringTag,{value:"Module"})),r4e="/assets/lightTotal-21b2eee3.png",n4e=Object.freeze(Object.defineProperty({__proto__:null,default:r4e},Symbol.toStringTag,{value:"Module"})),a4e="/assets/lightingNum-c60feb98.png",i4e=Object.freeze(Object.defineProperty({__proto__:null,default:a4e},Symbol.toStringTag,{value:"Module"})),o4e="/assets/noLightNum-d1419daf.png",s4e=Object.freeze(Object.defineProperty({__proto__:null,default:o4e},Symbol.toStringTag,{value:"Module"})),l4e="/assets/offlineNum-8d50a3ef.png",u4e=Object.freeze(Object.defineProperty({__proto__:null,default:l4e},Symbol.toStringTag,{value:"Module"})),c4e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAY9JREFUOE+tk7EvQ1EYxc+5rwODMBgq6aC7RWIwkEgsHQwGg0TbdGOwSGwkDAZ/gpGmon8AicRi8Ad004SEsaNIQ4fXe7wrD6/cvlS44/fO93v3O9+5xD8dPpTL6wCO/sKjtUsOtBdB9lNADQBjACZTNJV+oI6AcwIrACoxZB9SHeSqB+gH0dqijMlEgOMkyJBzsnZB5ME3mBfUeHl9nR8eGrolmeu5EdCEMdPqdu/ibx88L+gQgPOlHqu+RnMFaVbkJoFi4lY/QZS2RbYTm2xJypAcf2+UCtGPlkFupIKcoYExu6G1TZLOp+TpPD0/T4yOjFyRnEkFSQohTYFciUCfpro6ySKkFsjrQcx2mqbCsABjxmjMsisEZC3sdjM05tKTqb45cr0dSMeUbt6jIC0IKHrGddoKH0ulHU8ufvtiKrxbW8tlgmDR1ykp9+ETpc14mz1SWhuq3b6gDxA/5CykbGLNLl+dKPX3k7Xa6fe+fiClzPaYr1bzg4FKpbMokFkvzJhG/uRkayDQb512+jeEUqtDpoFouwAAAABJRU5ErkJggg==",f4e=Object.freeze(Object.defineProperty({__proto__:null,default:c4e},Symbol.toStringTag,{value:"Module"})),d4e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAaVJREFUOE+tk79LW1Ecxc+5edYfU0CpETLEvYvg4KAguKQgJESHDhnc6pBF6KZQBwf/BMcMik4qolDo4uAfkM2ADg4OCVRQEBNK3j3tfSElPt+LEfu2C+d+3veec77Ef/qYqxe+Etx5D88aLTJfL3wHuNkDVIGUBJmJ05BYiQRJaII6JbjsRJIy7meSDkh+CQNjQRa2mKDxJJS7QRaapThPYqsbFgeq3P8yc8kx/xJg+vlEqD407qaSI6NXANIdWCRIwjagCskDJ+wGubMSmKGPEoBiTxCgbwIeO0kKqEHySI4FICALIE9g9ZWJnKF2QzBVgl63Fy4ENvwJDSd+kpjuDYJaMq1P9AdcYv9MFdQCUTRUTdac92M2JFQTg8rqt5IC8+1Ldtca6xnf+xHuVGz8gRdBl1AW7EW7CpoXUAw/txMIc7Wl9XAv3rouwUSfbwvpoQ9ciLpsLVyPAp9EWzIwj2GdL9syTzpjFKC9yEgJTHVidv0i1bTQ9cn40d6LNYkC5etLin2edHOcOpzsC5SrFfb/FjIVCTOqHH88XOsL9Faznf4PqvHGp2v13pwAAAAASUVORK5CYII=",h4e=Object.freeze(Object.defineProperty({__proto__:null,default:d4e},Symbol.toStringTag,{value:"Module"})),v4e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAADwMZRfAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFQSURBVDiNnZM9UsMwEIXfypLccgRxA7iBcwJSM8xgn8B4hj5JRZMmJwgFCW04AeEGuUHEDdJasr0UIQyxlZhhO+3Pp7e7Ek0Xyy0Ag/+bFb0AxroHYsQpOoANAPt4dzto+ToWgtjIldcBRTZy5eAbdh7CTZ1VSqUAro4ChMRrPWzAk16IrKoNCXETlk25cm7VCymybAf+GbaZvizff4UviizbtWtouljyb4d3dKk0RgCnATEr78pC6Xh7VonSGHmHCboDtN5RoeM4b9fI7mWcRpo/vBMDHXPODEME60qaRbpJmOnhDxBAgOZC45lrvPmqnEkpjdJyBFCoxTDkoAgCqdLx4XwyUxJozGhMOEwJ9t/CArwOZkBYajuf5q9GysoAAIkoBzAEYc11PQH276i95k47WuOeEY2PnIyERJQAQKPlGMDRq+2suEbzGZJ9Lv4FxSF4oWF6ujUAAAAASUVORK5CYII=",p4e=Object.freeze(Object.defineProperty({__proto__:null,default:v4e},Symbol.toStringTag,{value:"Module"})),g4e="/assets/bottom-ab57dd38.png",m4e=Object.freeze(Object.defineProperty({__proto__:null,default:g4e},Symbol.toStringTag,{value:"Module"})),y4e="/assets/bottom1-b95f01c2.png",_4e=Object.freeze(Object.defineProperty({__proto__:null,default:y4e},Symbol.toStringTag,{value:"Module"})),b4e="/assets/left-41881ecf.png",w4e=Object.freeze(Object.defineProperty({__proto__:null,default:b4e},Symbol.toStringTag,{value:"Module"})),S4e="/assets/left1-be6d5129.png",x4e=Object.freeze(Object.defineProperty({__proto__:null,default:S4e},Symbol.toStringTag,{value:"Module"})),A4e="/assets/right-c50698c7.png",T4e=Object.freeze(Object.defineProperty({__proto__:null,default:A4e},Symbol.toStringTag,{value:"Module"})),C4e="/assets/right1-9db1c845.png",E4e=Object.freeze(Object.defineProperty({__proto__:null,default:C4e},Symbol.toStringTag,{value:"Module"})),M4e="/assets/top-cbbfcd5a.png",D4e=Object.freeze(Object.defineProperty({__proto__:null,default:M4e},Symbol.toStringTag,{value:"Module"})),P4e="/assets/top1-4c565e60.png",L4e=Object.freeze(Object.defineProperty({__proto__:null,default:P4e},Symbol.toStringTag,{value:"Module"})),I4e="/assets/air-conditioning-select-179da0d1.png",R4e=Object.freeze(Object.defineProperty({__proto__:null,default:I4e},Symbol.toStringTag,{value:"Module"})),O4e="/assets/air-conditioning-46e250af.png",k4e=Object.freeze(Object.defineProperty({__proto__:null,default:O4e},Symbol.toStringTag,{value:"Module"})),N4e="/assets/carbon-select-1c5af9c8.png",B4e=Object.freeze(Object.defineProperty({__proto__:null,default:N4e},Symbol.toStringTag,{value:"Module"})),F4e="/assets/carbon-fd02f4f1.png",V4e=Object.freeze(Object.defineProperty({__proto__:null,default:F4e},Symbol.toStringTag,{value:"Module"})),z4e="/assets/drainage-select-d13c0286.png",H4e=Object.freeze(Object.defineProperty({__proto__:null,default:z4e},Symbol.toStringTag,{value:"Module"})),G4e="/assets/drainage-4c4440ee.png",U4e=Object.freeze(Object.defineProperty({__proto__:null,default:G4e},Symbol.toStringTag,{value:"Module"})),$4e="/assets/energy-efficiency-select-26209d6f.png",W4e=Object.freeze(Object.defineProperty({__proto__:null,default:$4e},Symbol.toStringTag,{value:"Module"})),Y4e="/assets/energy-efficiency-cde7cc7f.png",j4e=Object.freeze(Object.defineProperty({__proto__:null,default:Y4e},Symbol.toStringTag,{value:"Module"})),K4e="/assets/energy-select-4eda0b4f.png",X4e=Object.freeze(Object.defineProperty({__proto__:null,default:K4e},Symbol.toStringTag,{value:"Module"})),Z4e="/assets/energy-77b8dcc3.png",q4e=Object.freeze(Object.defineProperty({__proto__:null,default:Z4e},Symbol.toStringTag,{value:"Module"})),Q4e="/assets/lighting-select-0e0262ce.png",J4e=Object.freeze(Object.defineProperty({__proto__:null,default:Q4e},Symbol.toStringTag,{value:"Module"})),eBe="/assets/lighting-b8faa5e7.png",tBe=Object.freeze(Object.defineProperty({__proto__:null,default:eBe},Symbol.toStringTag,{value:"Module"})),rBe="/assets/overview-select-7d59d7c5.png",nBe=Object.freeze(Object.defineProperty({__proto__:null,default:rBe},Symbol.toStringTag,{value:"Module"})),aBe="/assets/overview-8d418e00.png",iBe=Object.freeze(Object.defineProperty({__proto__:null,default:aBe},Symbol.toStringTag,{value:"Module"})),oBe="/assets/screen-select-64a4d37a.png",sBe=Object.freeze(Object.defineProperty({__proto__:null,default:oBe},Symbol.toStringTag,{value:"Module"})),lBe="/assets/screen-612a856d.png",uBe=Object.freeze(Object.defineProperty({__proto__:null,default:lBe},Symbol.toStringTag,{value:"Module"})),cBe="/assets/E-502e84b2.png",fBe=Object.freeze(Object.defineProperty({__proto__:null,default:cBe},Symbol.toStringTag,{value:"Module"})),dBe="/assets/WL-2950dfd6.png",hBe=Object.freeze(Object.defineProperty({__proto__:null,default:dBe},Symbol.toStringTag,{value:"Module"})),vBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALIAAAAdCAYAAAAOwDZTAAAAAXNSR0IArs4c6QAADYdJREFUeF7tnHuMXFUdx7/nPubOPsuurYVICAGKWKIQmxQFeWhqYhA1IgXZxRBj/AOjITERDATbtZj4AAOKIREJxiAxrSaERIliZMUXJq7AH6xGIS5SKbWlndn3nZl7j/zOOffec993ZnahrZ003Tnnnnvmzsxnf/u939/vHIaCx3WrjbMtg70QDOGcv+zx9g7TqXG4+okuDDiceoJuw+GxMaaDRJvGu1hdjeYx63KOoNOo1zmgBqwCZr3OV7ESdtFQ6sPKSjiJOTAQa7eoTY+VZfFDHKfHsmzTwxoc5BDNZfHDHFRjlmSfGDM0yCHa4j/ZBrC4KPus4SE5r+gErGEetRdk5+rIsOwTbcAa0cbMA/boKAea4TQ1bOAN0ZL/R09l2z5lA69hTL3OETX1uGofluMPA87GjarvEHAIqG/apNoHxZABbOYHwhc4ABwA6qedpsbsB/bLg0Onn6765jA3BwyceaZqvwAoSobPOUf1zQKzwNjWreHnMIMZ0L+Rbduiz2Z6Wsy96Yoror59+3D+zp2ivVscnRL/sGtXNIYxOhC2RSvvcX2r+TkD+J52/GHmt+40HIe7IcgukmAbCWgJ2HYC/kywBbNy4raAOoKY+gTYGvkC4lUJcfD7UAZ2APJKDtgCanoosOmpNTjAl5JQ0wEFdgA1ARxALZ7SQzxZjEBXUNsJqFdSUGuQK7ZrGzZwgjrA2oY25qh8udqY6pNcwxn3uUBacS2hPiQPhlBLoKF+NDZv5oJmeoRQK5r3x4HGHHAwAXQEM02QBHoGM0mYMY1N0EDGPpwPCTI9BMxTU72DPOk2HwXDx4IJ4fObGNpPUvSNAnISZBcEuh6x24noTPOZ2m+TaNM5CmT6IaNzEmSoMfKKApALIaaBiYgdQCzmoAgdgzYAWUVigpgGVojOAcirQXTOhJgmW4QO8gLmYY2MyC9uXr43e1QBGYOYjiiQGxSR1ZgQYorOiuAjBDFF58OS4RBkdY5iWUbnCGQJsSK4MDLPiVFZkbm7qDwNTFeIyNCiMb1w1Yi8jXP7vHbzNYCNKJDbHOZ2y/aXCdIYyKhFIR9pkE2H81VNiiSjcQSyHBQDWZMeRr0/kJPRuBeQw+ibITOqgmyPRH8SSWasHchahM4AORmN6f0nQR7YTDIjGY1ppJQYurzoFeQRaNKCKO4NZI05IFdaTLQXLmPc/20YjYE/M791Y5msIMQDvSzP7V5WSJDVl6JAzpQVWElo7GK9TCDL4FxNL4urD/WyppXDCL0UauUAYgrCQi9r2iLUzxmygrqSWpnCsj2qInSOrECjITSy+IjXQ1YolqVWri4r6HLyI3KGrJiejutj7AP9i2nkElkhArQGauzphNv4GmPstrCTsbuZ5z5QLCuATH0ci9gkIzJu/Er1cXY0jiI43RimZUSprBBcBzIirY8FyJn6OH7Tlx2NafJifVwYjen0ivq4NhaXFXRqt/pYRmN6yBs+EbG7BLlrfZwBcrf6uAzkvzDGtgUg+wb7uNlx/9ZW7kQQbc0SWZHWxy7M2ByBPs6QFQGl4kavP1lBU8mIHLkVJ5Y+Tt7k9aqP82UFfYZSWhxb+jgX5J0LC5tqjv8q8SOAZTjs++xSuwY/cisIwLjFlpYVQBLkbBuOhLEOcjVZQWJ6rdwKepu6DSfbwY1eNVkhfu8Kb/TiN3niD0jCrSiSFTReOBaZN3rFIGe7FTTZwfBeryt9HHMraB5pwRXe6M3MxK23lFsBIGm9JWWF4JHF9HEuyDd0mtdzH49EsgKPMa91y5snK4ptN+FekL8c2cnSjUi5FUJHiLeV9JMj2y2K2PmygmZI6+MkxOKXIQA7Ux8XuBV5skKHmMYcJcvt2JcVeR5yzD/WbDfpH5fbbsGwTI082Wr+EMCN4SDGboHnPtYtyEm3QgC0Xvo4mRQR4S6eKEnJCsF1Uh+vg+1Gr9MtyGtuuyn/OMd2S+rjsoRIqX88OxtLhlAmJO4fV3ErBIHx6Juw3YpBdpuvgOE0NQv3GXtfzcJhXVaQjEjpY037bjfsjcPMG/yl5730bsMe+6jt3FMDu3AR/JFvuItfDy7A5DLDR48st4L6jaTnTI5GH7IijMg52T0RSUtkhRhD2T2VBAndCjpQIQkik3vJiFzFrcjyj9OyQrnHWmYvSoLQK4e2W2EShEZm2G5zUiUnM3vdyopS262irKCrTEXk693FdxnMey4ADWCzzHevjttu+fr4Oqu+bYtp3W4D76Q5PODF573OreeZ5hdqYJdTXwP+vU932nufttiBIAmSB3Ke7dYPyGVp6iogJ7N54vq70Me92m7VsnnjvAjkpHcsvpMgm9eLW0ETFOrjatm8UtuNcGWJCK1ATYO82viSYbBvaiA/wHz37pRbkUg5k+12LeoXbIX1YwY40fkC5v1PdVqTV1i1XwXHFsF/dBfau9ckm1dJH1d3K+ja+7PdpIks9LGqq+gqm0cnZ9luFbJ5dGqu7VYoKyK3QkTswHbLqLMolhUyJU2PoM6ikj7uob5CZywF8mS7+QQ4dgSDOHCjZbOnq2TzbsfQwzWwi3yOV8FQM4DxYJ4X4X36FLBzDR/OqGFc/YrvfetBw3s87lasfVr6ZDYvXlsRkxXUOAh05VbQOZn1FW8dsjx2GR3m3FgYtYaeCr77Zrux1YLxrDgG9vwr9syFgaxoozEy4JmXAh2A2/Nvt4Z/FxYKpdPSKbcieI0YyB/hfHC0vfAawOtyAF82uH8Rq1mtoiKhzcyoXWk6F59lmt+ns/7teze9xTDePwR2rf5bI+UDf/w77tLNy06tc6LIil708TGZzaMvqIciITrtlDNOPQcm3yK+b6/9z5Ha+D/kdz+DxdbZdzBm3CGaDF/9j/XXPUGRkNFaPNc2O1uIY8Mx/34WRl6oUiSU5CoG8sRq80pm4OfhIMaeZJ57U5Fb8WHL2bLdtB80gFOTk+e1f99Z/sCvLWtOB7mXajdpu5Vn86TyKLPdaCLNseil2q2XtHSySIgu4zjM5tU6S5f6zBd1OZ0l/tTY6KgSVQTylmcZw1Y65nPvggN/fG42sN2szuLlJusMM5jcNkemz3jd1+wf5FbzHgbcHALIcSfjrYeLsnlfcYb32sCF4g0AL5nA2xhgUfso/G/Xwc6tg31wEfyhQbCrTOD0Z732VY+afHa9ZQVdw/GezQuLNouSIPRGVZGQfpNH3c7GKtVub3I2T6uvKJAVQiLkBcdYRJ5szc8C/B3BYM7wIcti/yrSx3ucYfEnhCDe4y7u+LIzdNcAWFD6SXFtqAM8M+UuXHO7M3yfA3bJ/Vi66L+w3dJsnm5NVC3bzPCTe0tLZ2fz6L3qtpuQS1XdChqcWe2WZ7vRCUVlmydtt4DVEORP8ZUz/HbrJU1W7Geeu6MsCTLlDP/GACgB33HBn3TALku6FuJPCnCEbv5eg7/nu+g8VO5WZGfzYinpCrKiqNotq4i+P7eCLuhkkVC0KqRatVsvRUK5Gnmy1fgswMTNmorhPzH81u4ykG+w6tvPMq1bTWAsL+xTv8dx9Aj3H7mvvbRXL6KnY9n6uEKRkGa7hd7wemTz6CLlEpFU2WZuNFbRtxfbTa4EKYvGVYroi1eDrHk2D7MYQ7S0KZ3NA5CsdtNsN3rHKjVdKZun8xZG5Am38VPG2Ce0g583bfZEN9k8AWXJWj0aI0EuKaI/DrJ5XckKdeuTLtvMz+ZJlKsXCf2/ZfNSIO/k3Kx15g+By6hKMsFvt95bG3Tm16XaTas97qaI/njP5gkltG7VbmptHr1IuOA0uTaPDkbVbr2vzaN5yqrdqmTzqlS75WfzUiB/sj1/scn5H7QDM8xvTZbJin6L6Ptam9dLNo/eYE6REB3qTx9r2bw+ZAWdGltk2m+1W8UiIXrdoiL64rV5tMZUpvO6yub1Ue2mQ0zPhbS4od3czTl2BQc5w72G17o/BXKXa/NkYZFa4q8mXzN93Eu12wmzyLR4bR591GW2W1k2j+bQi+irpKWLl/5XqXYTa/671schyJOt5p8AvCcEmfNrrZrxXHeyYn3X5q23rOh5bR59aBWr3dYvm9dHkRBdf8Zq6dgi02RKWimLbqvdkkv++ykSSkXknc2Xx+3BDQcZ5yKJAYajHb99icNrXv6S/5y1eW/A3hXrlc3rr4he0lx5kekJks2LYKqwd8Uarc1LAhy02YTb2MkY2xt2MPwCXuuLJ9fmZe8sVHXJf1e2W1dF9G+8rDhW9q7Ig1jE34lW4wcM7DPhIMZvMy3jZ6W2W8kmLMfe3hWJLbJiN37xTViK966QfnLZJizle1esXTZP34RlzfeukOtMC3YTyt4aq+u9K7ooos8Cmk20ms8wjs3BQc/oXGNY5quUlpZZNNpJKNgFKBi1mrqJS65yppEm1F5twY1eWOQjO8yBjNz5ykq0no4GrSzrS/HUzkDJfdv0tly+v6Tv2UbzqIQGPS1OMSdkAjUXADvYCQgLUYnxAu1JQftPKK1AY8XTOKQUcO0NKpKG27hl7UshkxxqryBRP2GP+/Lmp3CnIDLVot2CnHC3oOD7krUUdQT7udG6j2hPN0dbGU03dWUrP2guurGbEbNW2c8tvleFOG1q6vWt3Hbx3P0oMhaYZgEc9P0PSemk8LlXDmwAAAAASUVORK5CYII=",pBe=Object.freeze(Object.defineProperty({__proto__:null,default:vBe},Symbol.toStringTag,{value:"Module"})),gBe="/assets/alarm-013d0618.png",mBe=Object.freeze(Object.defineProperty({__proto__:null,default:gBe},Symbol.toStringTag,{value:"Module"})),yBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALIAAAAdCAYAAAAOwDZTAAAAAXNSR0IArs4c6QAADfxJREFUeF7tnA+MHFUdx79vZnbn7np75Q7KSWgahLZCUQRLBFqLxEBU0BDAqr1DCTFoUIJEI0Rs01ZqoiRom0BIhCARQgxFRYLGSEIPTLUQT4uEwz8Qj1hoawvdvb0/OzO78+T33pu/OzM7u3uHLXZyuds38+bN7N7nfved7+/3HkPG9rla+QxDY694XTjn/25w51LdLHJY4RMtaDA57fF2ayaP9NFNxNrU30KtFoyj98gxvJ1aTw8HVIcaoPf08Brm/F3UlfZhbs4fRO/tjbRtatM2Nyt+iOO0zco2bUZfH4dozoofep/qMyP3iT6L+jhEW3yTbQDT03Kf0b9Ijit2AkY/D9pVubNW6pf7RBswSqE+U0BhYIADFX+YIhbzsmjJ78FL2S6csJgXMaiu85Yaeki1D8v+hwHzpJPUvkPAIaBnyRLVPii69GKY7/cvsB/YD/Sccorqsw/YJw8uWrpU7ZvE5CTQe9ppqv0KoCjpX75c7ZsAJoDBVav8z2Ec46Cv0urVwWczNibGXnLJJcG+nTtx9vr1or1FHN0qvrB5c9CHMTrgt0UrbdtgV76qAfeEjj/MXHubZprc8kG2EAdbi0FLwDox+BPBFszKgR0BdQAx7RNgh8gXENckxN7fQyuwPZDnUsAWUNOmwKaXRl8vn4lDTQcU2B7UBLAHtXhJm3gxHYCuoC7EoJ5rgjoEuWK7uHgxJ6g9rAsI9TkiL1ccVPsk1zCHXC6QVlxLqA/Jgz7UEmioH+XhYS5ops2HWtG8Lwo0JoGDMaADmGmAONDjGI/DjDEsQQhk7MTZkCDTJmDeurVzkEetyuNguNIbEC6/kcHZRdE3CMhxkC0Q6OGI7cSiM42nh/6aRJvOUSDTDxmd4yBD9ZF35IGcCTF1jEVsD2IxBkXoCLQeyCoSE8TUMUd09kCuedE5EWIabBphkKuYglEqyV/clHxvhQEFZARiOqJALlNEVn18iCk6K4LfIogpOh+WDPsgq3MUyzI6ByBLiBXBmZF5UvRKisztReUxYCxHREYoGtOF80bk1ZwXznQqbwKspEB2OPQPGwV3liCNgIxiEPLRDLJucl4LSZF4NA5Alp0iIIekh9bTHcjxaNwJyH70TZAZeUEulIJ/iSQz5g/kUIROADkejen9x0HuHSaZEY/G1FNKjLC86BTkEkLSgijuDOQQc0CqtBhxqhcz7j7jR2PgOeba17WSFYS4p5flue3LCgmy+qUokBNlBeZiGjtbLxPIMjjn08vi7n29HNLKfoSe8bWyBzEFYaGXQ9rC188JsoJ2xbUyheXCgIrQKbIC5bLQyOIjXghZoViWWjm/rKDbSY/ICbJibCyqj7ET9BXRyC1khQjQIVAjL0edyjZwfMffydhdrGHdly0rgER9HInYJCMSHvxa6uPkaBxEcHowbJYRLWWF4NqTEc36WICcqI+jD33J0ZgGz9bHmdGYTs+pj4uDUVlBp7arj2U0pk0+8ImI3SbIbevjBJDb1ceZII9Y5T8xxlZ7ILsau0qvWy87yp3woq3eQlY062MLemQMTx8nyAqPUvGg152soKFkRA7cineXPo4/5HWqj9NlBX2GUlocXfo4FeT11eqSoukeIH4EsAyHXZetKxThBm4FARi12JplBRAHOdmGI2EcBjmfrCAxPV9uBb3NsA0n296DXj5ZIf7uMh/0og954h9IzK3IkhXUXzgWiQ962SAnuxU02EH/Wa8tfRxxK2gcacFlPuiNj0ettya3AkDceovLCsEji+jjVJA31CsbNBePBLICT7CGfWsnsmKTeeKjnGORzfnev/P6Q7/UaxNhRyPsVtD1OrHdhHtB/nJgJ0s3osmtEDpCvK24nxzYbkHETpcVNEKzPo5DLP4YPLAT9XGGW0EnJ8mKMMTU5whZbke/rEjzkCP+cch2k/5xa9vN65aokUftyoMArvM7MXYrGtYT7YI8zLTi5bq5Zp/eeHUZ9JWnQr+5DPdX262Z+72x84GcQx/HkyIi3EUTJU2yQnAd18cLYLvRddoFed5tN+Ufp9hucX3cKiHS0j+emIgkQygTEvWP87gVgpJo9I3ZbtkgW5U3wHCKGoW7jH2kaOBwWFaQjIjr49vNoR8+7djfe951hGv5XlPvXe/2bOzV2BqL872/ZdaWK2DuOAL2+N1W9RciMnKZ4aMtya2g/VrccyZHowtZ4UfklOyeiKQtZIXoQ9k9lQTx3Qo6kCMJIpN78Yicx61I8o+bZYVyj0OZvSAJQlf2bbfMJAj1TLDdJqVKjmf22pUVLW23nLKC7rIpIm+wps/RWOMFj3RwvMy4fVXUdkvWx7eZQ5t0jiX32LO3XG0ULh7UjTPrLmb3NJwn1+qFa/o1tm4PnFvXovjIXdb0x2bNYt1LgqSBnGa7dQNyqzR1HpDj2Txx/23o405tt3zZvCGeBXLcO6Z797N5nbgVNECmPs6XzWtpuxGuLBahFajNINfK39I0dqcPMth9zLXuanIrYilnst1KFtM/aZrvXwljcwH4gDcGhdwXG/XR5bp+bRV8dwns/MNufdcDGv/dvGTzcunj/G4F3Xd3tps0kYU+VnUVbWXz6ORW+jglm0enptpumbIicCtExPZst4Q6i2xZIVPStHl1Frn0cQf1FQGjCRF51Kk8BY5LQxBeZxTYnjzZvGFoxa+gb6cOrApfhF47wIsvwfn2KhgbD7nuo31gS3do9bujbsX8p6WPZ/OitRURWUGNg0BbbgWdk1hfcfIio8EupsOca9UBY9GzHgMVp7zKgLZXHAN76Y3C+LmerHBQLvU29HVAHeCFqfcZ/b/3C4Wa09JNboV3jUhE/jTnfQNO9U2A98gOfFbj7gWsaNhpRUJrzeLwuTDWVBv8gK5DPx36A3GI5RtA/TE0zr8axuOvu/XvD2jsrO21+o4sfXysyIpO9PFRmc2jX1QHRUJ02gnL3rMcOl8hfvcN55+l4tA/JAfjmLbP2MSYtkk0Gb77uvHnO7wiIc2eXlnQ6yuIY83U/3Y6Sq/kKRKKMxYBeaRWuZxp+LXfibFdrGHdmOVWfNHsvehUrl1ZY/xVHTAXQ7s5CWQXOLTZql54mW6eepA3pk4omH27a/UD3VS7SdutdTZPKo9WthsNFHIsOql26yQtHS8Sots4BrN5xfrMOpe5oi6nPsOfHRwYUKKKQF6xlzH5X9rljQ/u/8MLE57tZtSnP6qzej+Dzgt6aWzZ275m9yDble0M+LoPIsc2xu2H82bzvlbou/ZkTducBHIV/Cd3WtPbvGPSdjuezWtV7eYXbWYlQehDVUVC4Yc82m2elKfa7X+czQvVV2TICvWPPYmumEYetacmAH6W15UzfMIw2L/y6GPqs1IzShsKPU9owNLw5WzwPfejcf1+a85OBzkhmxe2JvKWbSb4yZ2lpZOzeXT/YduN2rndCuqcWO2WZrvRCVllm8dtN48nX1p8gc8tcx37tZCs2Mca1qV5kyA3mL0fPxHaZc/XnR9dYJi3GODnUZyowt31GhpPr+LGloecuesneWM2X+1xchF9JCWdQ1ZkVbslFdF351bQDR0vEgpmheSrduukSChVI4/a5RsA9mM/GgM/01x7Sx6QPwVzxXkobN9dt7/8jGHtI8VwU6Hnyp869pNTcBtUX7ER/fdOgz+33Zp5sJtsXhTkIC3te8MLkc2jD0VOEWkq20yNxir6dmK7yZkgraJxniL67Nkg857NwwQGEUxtas7mAYhXu4VsN3rHKjWdK5sXhtmPyCNW+THG2DX+QR036Rp7qlU2L1p7LIuEBixNv81c9NcfWDPnzJhuPTq/L6PaLVxEfwxk89qSFerRp7lsMz2bJ1HOXyT0/5bNawJ5Ped6sT51CByDSlHXXce+qNhnTnVS7fYhpzB4hWFuvMOe/mar2uN2iuiP9WyeUEILVu2m5ubRRfwJp/G5eXQwqHbrfG4ejdOq2i1PNi9PtVt6Nq8J5M87U2t0zneHDowz1x7NIyvis6mdNorou5qb10k2j95gSpEQHepOH4eyeV3ICjo1Msm022q3nEVCdN2sIvrsuXk0x1Sm89rK5nVR7Zaoka91Kls4h2+bcabt0Bq1e5tAbnNuniwsUlP81ZXnTR93Uu32rplkmj03jz7qVrZbq2wejREuos+Tls6e+p+n2k3M+W9bH9O9Co08alX+CIYLPco55581itoL7cmKhZ2bt9CyouO5efSh5ax2W7hsXhdFQnT/CbOlI5NM4ylppSzarXaLT/nvpkioKSKP8PIg6tp/GOeGOMhwpO46a01ebKRP+U+Zm/cOrF2xUNm87oroJc25J5m+S7J5AUw51q6Yp7l5cYC9NhuxyusZY4/6Oxh+g4b9jbzZPO+843Pz1EpDnVS7tVVE/87LiqNl7Yo0iEX8HamV72ca+5LfibHbdQM/b2m7tViE5ehbuyK2RFbkwS+6CEv22hXST261CEvrtSvmL5sXXoRl3teukPNMM1YTSl4aq+21K9oook8Cmo3Ylb8wxoa9gw04n9EM/QC5EdLWpZWEvFWAvF61poe4+Cxn6qlDrdWmTgtkgdyh9yYUSc/NBfPpqNPcbHgqnloZKL5uW7gtp+/PhNdso3FUQoNeZqeYYzKBmlWg4K0EhGpQYlylNSlo/QmlFaiveBmFlAJuYbGKpP4ybknrUsgkh1orSNRPFIZc+fCTuVIQmWrBakGmv1qQ9/uStRQ98NZzo3kfwZpuZmhmND3UtZr5QWPRg924GDXPem7RtSrEaVu3vr2U22aeuh5FwgTTJIC9ff8F9YPs8FdhDbkAAAAASUVORK5CYII=",_Be=Object.freeze(Object.defineProperty({__proto__:null,default:yBe},Symbol.toStringTag,{value:"Module"})),bBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALIAAAAdCAYAAAAOwDZTAAAAAXNSR0IArs4c6QAADeRJREFUeF7tnHuMXFUdx7/n3jszu7M7W7Z2W5sQQniItkAxTQqiPP7oH4ZokGCV7moqIQQBLUmDNQFJW9rEhAR8RUhAIhpiCIUEiJogCaw8BBJXAWUx0sRtrCylBWZ2dnfm3jtzj/2dc+5z7mtmdrHU3jTdOeeee+axn/nt935/v3MYUo6vN6tnGho74A7hnP+7ze3NeqnIYQYvNKGhxKnH7dZKPDRGLyHSpvEmmk1/Hn1AzuF2agMDHFADmoA+MMCbaHhdNJT60Gh4k+iDg6G2RW06GovihzhPx6Js02GUyxyiuSh+6GU1ZkH2iTFDZQ7RFv/JNoD5edlnDA/JeUUnYAxzv12Xnc3KsOwTbcCoBMbMAYWREQ7UvGmKWMGroiX/9x/KduGUFbyIUfU8H6ipV6r2UTn+KFBatUr1HQGOAANjY6p9WAwZxBo+6z3BLDALDKxdq8YcAg7Jk0Onnqr6ZjAzAwyefrpqHwAUJcNnnaX6poFpYHTdOu9zmMIU6F9l40b/s5mcFHOPXX6537d/P9Zv2SLau8XZPeIfdu3yxzBGJ7y2aCUdW63aTRrw88D5h5lj7dNKJW56IJuIgq1FoCVg7Qj8sWALZuXEtoDah5j6BNgB8gXETQmx+33IAtsFuZEAtoCaDgU2PTTKg3whCjWdUGC7UBPALtTiIR3iwbwPuoK6EIG60QF1AHLFdnHFCk5Qu1gXEBjzoXy64qjqk1yjtNLhAmnFtYT6iDzpQS2BhvpRXbOGC5rp8KBWNB8KA40Z4HAEaB9mmiAK9BSmojBjEmMIgIz9WA8JMh0C5j17egd5wqw9AYYr3Qnh8BsZ7Oco+voBOQqyCQI9GLHtSHSm+fTAt0m06RoFMv2Q0TkKMtQY+YpckFMhpoGRiO1CLOagCB2C1gVZRWKCmAbmiM4uyE03OsdCTJPNIwhyHXMwKhX5i5uT760wooAMQUxnFMhVishqjAcxRWdF8AcEMUXno5JhD2R1jWJZRmcfZAmxIjg1Ms+IUXGRubuoPAlM5ojICERjeuK8EXkj54VP27X3AVZRINsc+iaj4CwSpCGQUfRDPjpB1kucNwNSJBqNfZDloBDIAemhDfQHcjQa9wKyF31jZEZekAsV/08iyYylAzkQoWNAjkZjev9RkAfXkMyIRmMaKSVGUF70CnIFAWlBFPcGcoA5IFFajNv1Sxl3/uhFY+BV5ljbsmQFIe7qZXlt97JCgqx+KQrkWFmBRkRjp+tlAlkG53x6Wbx6Ty8HtLIXoRc8rexCTEFY6OWAtvD0c4ysoK6oVqawXBhRETpBVqBaFRpZfMTLISsUy1Ir55cV9HKSI3KMrJicDOtj7Af9C2nkDFkhAnQA1NDDCbu2Dxy3e52M3c3a5gPpsgKI1cehiE0yIubGL1Mfx0djP4LTjWGnjMiUFYJrV0Z06mMBcqw+Dt/0xUdjmjxdH6dGY7o8pz4ujoZlBV3arT6W0ZgOecMnInaXIHetj2NA7lYfp4I8blb/zBjb6ILsaOwqvWW+ZSt3wo22eoas6NTHJvTQHK4+jpEVLqXiRq8/WUFTyYjsuxUnlj6O3uT1qo+TZQV9hlJaHF/6OBHkLfX6WLHkvEv8CGAZjjoOu6RQhOO7FQRg2GLrlBVAFOR4G46EcRDkfLKCxPRSuRX0NoM2nGy7N3r5ZIX43qXe6IVv8sQfkIhbkSYraLxwLGJv9NJBjncraLLD3r1eV/o45FbQPNKCS73Rm5oKW28dbgWAqPUWlRWCRxbSx4kgb23VtmoOfuPLCjzF2tbOXmTFedrQKZsLpW/dZc7/SETFnmRFuu0m3Avyl307WboRHW6F0BHibUX9ZN928yN2sqygGTr1cRRi8WVwwY7VxyluBV0cJyuCENOYD8lyO/5lRZKHHPKPA7ab9I+zbTd3WKxGnrBqDwHY5g1ibCfa5lNJIG/QCqOnatqqDZrx3b87rZ/+tmW+TddWYOnbS6MPGmDnPWo3LnvDadV7AzmHPo4mRUS4CydKOmSF4Dqqj5fBdqPn6RbkJbfdlH+cYLtF9XFWQiTTP56eDiVDKBMS9o/zuBWCwHD0jdhu6SCbtXfAsFbNwh3GvlA0cDQoK0hGuPr4amPg3PM1/UHGmG4DBxpwXrzHXPzZjsLgrSs0/QaaZ9Zxdt6rLTy+FoPFzW189j3uvPt02zyoc5nhoyPOraB+Leo5k6PRh6zwInJCdk9E0gxZIcZQdk8lQTy3gk7kSILI5F40IudxK+L8405ZodzjQGbPT4LQM3u2W2oShEbG2G4zUiVHM3vdyopM2y2nrKBX2RGRt5rz52us/bpLOjjeYty6Kmy7hfXxDaXBK9ZC/74OrG0BM0/b5tb1BePc06E/4M5jcuf5fWzh2lsxdMsItJsor/QyrPE/NHEwDeQk260fkLPS1HlAjmbzxBexC33cq+2WL5u3kqeBHPWO6bV72bxe3AqaIFUf58vmZdpuhCuLRGgFWCfIzer3NI3d5YEM9gBzzLs73IpAypki8mqGc1ZrxrU2+Ftz4K+OQbtVA1a683Cg9QSaF21G6eZhsHEGtB9Ca9NM01kUNRf9ZPNy6eP8bgW95v5sN2kiC32s6iq6yubRxVn6OCGbR5cm2m6pssJ3K0TEdm23mDqLdFkhU9J0uHUWufRxD/UVPqMxEXnCrj0Djs0BALcZBfZKVjZvvVasbNLKG37Varxwe3Ho4SJjFwafiB7Por3jXnPxyZsK5Stf1Kxn34Q+F3Yrlj4tfTKbF66tCMkKahwGunIr6JrY+orVQ0abXUqnOdfqI8bQ8+7vv2ZX1xnQXhPnwN58pzB1gSsrbFQrg239EqAF8MLcOcbwC16hUGdausOtcJ8jFJG/zHl5xK6/D/ABOYAvaty5kBUNK61IKGi73VwqX7Ma2t4oxNRe5PzxH1rzO+lxsLZC/FnuIpt3vMmKXvTxcZnNk9Gm6yQIXXbKaZ88Czo/W/ze2/bbleLKf0oGpjBvnXkHY9odoslw53+Mv+x1i4Q0a/5TBb11NnGslfR/nIHKgTxFQlG+QiCPN2tXMA2/8wYx9hxrmzfmtd3WlLTit1GePFYxNxYHsg387U6z/pU4kHupdpO2W3Y2TyqPLNtNfNXEdD1Xu/WSlo4WCdEL+Bhm84qthUsc5oi6nNYCf350ZESJKgL57NcYwzo65/D2htk/vT7t2m5Ga/4ynbWGGXRe0CuTpx3zNfsH2ar9mAG3eBBy7GPcejhvNm97qbztE9B+EAex+KIeuwXebdYv80E+mc3LqnbzijbTkiD0gaoioeBNHnWXVuWpdvsfZ/MC9RUpskJIhCS2QhF5wpqbBvhn3MGc4YuGwf6VpY/dss3bSkMPliB1Utxhgb+y15yfiAc5JpsX1BB5yzZj/OTe0tLx2TwRsQO2G7VzuxU0OLbaLcl2owvSyjZP2m4uZx7I3+SN0xzbOhiQFYdY29ycR1ZUTKafqekjXzKK9xeYdkESyLNOe8e99uKT+WqP47N5oZR0DlmRVu0WV0Tfn1tBL+hkkZC/KiRftVsvRUJRxjyQJ6zq9QC734vGwCOaY+3OA/KNKF89Bm37HJzHRqFtT4jGz+4156/3ozE9SlsNkqNIKGC7ed7wcmTz6KXKJSIdZZuJ0VhF315sN7kSJCsa5ymiT18NsuTZPExjFP7Sps5sHoBotVvAdqN3rFLTubJ5Qc48kMfN6mOMsau9kzq+o2vsmaRsnhzn1x5v0gqrDvL23HWFwftKzJcX5B8vAL/8NVr3zJoNK15WKNstWET/McjmdSUr1K1PZ9lmcjZPopy/SOj/LZvXAfIWzvVia+4IOEbpJMHn2NbniuXSXC/Vbte1yxev0NkZltOuv6E5r7xkWlRJJ44TyXbrBeTlq3ZTa/PoRXkLTqNr8+ikX+3W+9o8mier2i1PNi9PtVtyNq8D5GvsuYt1zl8KnJhijjWRR1ZEV1PbXRTRf+TZPHqDCUVC4u9LX0X0gWxeH7KCLg0tMu232i1nkRA9b1oRffraPFpjKtN5XWXz+qh2C0JMj4W0+IZd2805drknOdN+orWb93WA3OXaPFlYpJb4J0TkeP84hz7updrthFlkmr42jz7qLNstK5tHcwSL6POkpdOX/uepdhNr/rvWxx7IE2btZTBc5IHM+deMovZ6d7JiedfmLXc2r+e1efSh5ax2W75sXh9FQvT6Y1ZLhxaZRlPSSll0W+0WXfLfT5FQR0Qe59VRtLT3GOeGOMnwYcuxP1/ixXbykv+EtXkfwd4Vy5XN66+IXtKce5HpCZLN82HKsXfFEq3NiwLsttm4Wd3CGHvU62D4PdrWjrzZPPe6k2vz1E5DvVS7dVVE/9HLiuNl74okiEX8HW9Wf8E0dp03iLHbdAOPZ9puGZuwHH97V0S2yArd+IU3YUnfu0L6yVmbsGTvXbF02bzgJixLvneFXGeasptQ/NZYXe9d0UURfRzQbNyq/ZUxtsY92Yb9Vc3Q3yU3Qtq6tJOQuwuQO6rZcRMXXeVMI3WovdrcGz2vyEd26IMxufNGw19PR4Mai8GleGpnoOi+bcG2XL6/ENyzjeZRCQ16mJ5ijsgEataBgrsTEOp+iXGd9qSg/SeUVqCx4mEYUgq4hRUqknrbuMXtSyGTHGqvIFE/UVjpyJuf1J2CyFTzdwsqebsFub8vWUsxAHc/N1r34e/pVgqsjKabuqyVHzQX3dhNiVnz7OcW3qtCXLZnz7Gt3HbxxP0oYhaYxgHs9v0XrHXJ8EkDrOYAAAAASUVORK5CYII=",wBe=Object.freeze(Object.defineProperty({__proto__:null,default:bBe},Symbol.toStringTag,{value:"Module"})),SBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALIAAAAdCAYAAAAOwDZTAAAAAXNSR0IArs4c6QAADfVJREFUeF7tnH+MHGUZx7/vzOzO3d7tXa+0VgIhpIBC8VdSlYoWalITY0KUaIXeaSoSQVBASEBSIG2h0YQAalSIIEFNo2KFEBL9B5MeGBQTDgHDYZRojZVSW+ju7d3tzszuvPZ533d+7vza3Tst2Mnlbt533ved2d3PPvd9n+d5X4aM45JW7QxDY694TTjn/+xwZ7NuljmscEcLGkxONV61ZvJIG91ErEztLbRawTj6kBzDq9SGhjigGrQAfWiIt9D0q6gp1aHZ9AfRh4cjZZvKdDQXxR9xnY5FWabDqFQ4RHFR/NErqs2CrBNtRiocoix+yTKA+XlZZ4yOyHFFJWCM8qDckJWt6qisE2XAqIbazAGlsTEO1P1hyhjnNVGSv4NTWS6tGOdlTKj7vKGGXqnKR2T7I4C5apWqOwwcBoZWr1blQ6LJMNbwg/4NDgIHgaGTT1ZtDgAH5MWRU09Vdfuxfz8wfPrpqvwKoCgZPfNMVTcLzAIT69b578MMZkA/1fXrg/dmelqMvXrTpqBu716cu2WLKO8UV3eJH+zYEbRhjC74ZVFKO7ba9as14Puh63uYa+/WTJNbPsgW4mBrMWgJWCcGfyLYglk5sCOgDiCmOgF2iHwBcUtC7H0f8sD2QG6mgC2gpkOBTadGZZgvxKGmCwpsD2oC2INanNIhTuYD0BXUpRjUzS6oQ5Artsvj45yg9rAuIdTmqLxdeULVSa5hrnS5QFpxLaE+LC/6UEugof7U1qzhgmY6fKgVzQeiQGM/cCgGdAAzDRAHegYzcZgxjdUIgYy9OBcSZDoEzLt29Q/ylFV/DAyf9AaEy69icPaR9Q0MchxkCwR62GI7MetM4+mhb5MoUx8FMv2R1jkOMlQb+UQeyJkQU8OYxfYgFmOQhY5A64GsLDFBTA0LWGcP5JZnnRMhpsHmEQa5gTkY1ar84ObkayuNKSAjENMVBXKNLLJq40NM1lkR/AZBTNb5iGTYB1n1USxL6xyALCFWBGda5v2iVZJl7s0qTwPTBSwyQtaYblzUIq/nvHS2U38dYFUFssOhf9AouYsEaQRklAOTj26QdZPzVkiKxK1xALJsFAE5JD20ocFAjlvjfkD2rW+CzCgKcqka/EskmbF0IIcsdALIcWtMrz8O8vAakhlxa0wtpcQIy4t+Qa4iJC2I4v5ADjEHpEqLSadxAePuk741Bv7AXHtbnqwgxD29LPv2LiskyOpDUSAnygo0Yxo7Wy8TyNI4F9PL4ul9vRzSyr6FXvC1sgcxGWGhl0PawtfPCbKCquJamcxyaUxZ6BRZgVpNaGTxFi+HrFAsS61cXFbQ46Rb5ARZMT0d1cfYC/qJaOQcWSEMdAjUyOmUU98Njlv8SsbuZh3rgWxZASTq44jFJhmRMPHL1cfJ1jiw4DQx7JYRubJCcO3JiG59LEBO1MfRSV+yNabBs/VxpjWm7gX1cXkiKiuoa6/6WFpjOuSET1jsHkHuWR8ngNyrPs4EedKqPcsYW++B7GrsYr1tvewo74RnbfUcWdGtjy3okTE8fZwgKzxKxURvMFlBQ0mLHHgr3lr6OD7J61cfp8sKeg+ltDi+9HEqyFsajdVl032N+BHAMhxxXbaxVIYbeCsIwKiLrVtWAHGQk91wJIzDIBeTFSSml8pbQS8z7IaTZW+iV0xWiO9d5kQvOskT/0Bi3oosWUHthccicaKXDXKyt4IGO+TP9XrSxxFvBY0jXXCZE72ZmajrrctbASDueovLCsEji+jjVJC3tutbNRc/DWQFHmcd+6Y8WTHKHH2Rl9p+P1h4tzayYnPJ/MKd1vy3hFXsS1Zku92E94L8y4E7WXojurwVQkeIx4v7kwO3W2Cx02UFjdCtj+MQiy+DB3aiPs7wVlDnJFkRhpjaHCWX2/EvK9J8yBH/ccjtJv3H+W43r1miRp6y6z8CsM1vxNhN6FiPZ4H8Ub18ynqjdOk91sJdXr8qbP1a86QflMA3POw0N7zothseyFUwvQHeCbvdqF+y/7iAPo4HRYS5iwZKumSF4Dquj5fB7Ub36RXkJXe7Kf9xitstro/zAiK5/uPZ2UgwhCIhUf9xEW+FIClqfWNut2yQrfqrYDhZjcJdxj5SNnAkLCtIRnj6eI2pla9EZY8BrN3rtDa95LbFx3a9OfK1FWBfofODrrv9Xm3hYfLbfUw3T3m/Xrrum/b8TTqXET46krwVVK/Ffc7k0RhAVvgWOSW6JyxpjqwQbSi6p4IgvreCLhQIgsjgXtwiF/FWJPmPu2WF8h6HIntBEITu7LvdMoMg1DLB7bZfquR4ZK9XWZHrdisoK+gpuyzyVmv+PRrrvOCRDo6XGbcvjrrdovr4htLINRMau4b6/K3TueLH7ea+y8zhTadDf8Abx+LuU7vZwmXE7K3m6H1lsAt3wT7HC4KkgZzmdhsE5LwwdRGQ49E88fw96ON+3W7FonkreRbIcd8xPbsfzevHW0EDZOrjYtG8XLcb4cpiFloB1g1yq3ajprE7fZDBHmCudXeXt0KFnD+gl1ZdZJj7GGBSn8Nwd8+227/ZaJT3Hgtvr/bG4UD7MbQ2PGc5R683R64kM/xdtB9akmheIX1c3FtBzzyY2006kYU+VnkVPUXzqHOePk6J5lHXVLdbpqwIvBXCYntut4Q8i2xZIUPSdHh5FoX0cR/5FQGjCRZ5yqk/AY7NIQC3GSX2TFo07xJjaP27dONnXvsXO+2Lz9b0m8uMnRe+EZ0fgnvj96yFR716qY+X1+12IpoXza2IyAr5oaAnbwX1ScyveNuI0WEX0GXOtcaYMfKU9znXndo6A9rz4hrYS6+WZt7nyQoHtepwR98ItAFemnunMfpbP1GoOyzd5a3w7hGxyBdxXhlzGq8DfEg24Isad89jZcNOSxIaZUy/ulz5ehlYe9h1Hy2BVdZo2jfiEFN5kfNHSBfTeXyS10s073iTFf3o4+MymkcfTB9JQtRtxWlvPxM6P0t87h3nr9Xyyr9IBmYwb59xG2PabaLIcPu/jOfu8JKENHv+HSW9fRZxrJn6n9ei+kqRJKE4XxGQJ1v1TzANv/IbMbaPdayr8txuXjSPJn1fRmU6LCnCN3SAP91uNT6VBHI/2W7S7ZYfzZPKI8/tJr5qYri+s936CUvHk4ToAd6E0bxye2Gjy1yRl9Ne4E9NjI0pUUUgn/U8Y1hH11zeee/B370w67ndjPb8hTprjzLovKRXp0875tccHGS7/m0GXOfDx7GbcXtP0WjetWZl20nQbk2yxuKLemwKvNNqXBiAvLyyQtznTR7N85M2s4Ig9EJVklB4kkfV5qoi2W7/42heKL8iQ1YIiZDGVsQiT9lzswA/x2vMGT5uGOzvRbPdtpsjD5qQOinpcMCfvd2avyQZ5IRoXlhDFE3bTPAn9xeWTo7mCYsdcrtRubC3ghonZrulud2oQ1ba5gm3m8eZD/LnefM017H/EZIVB1jH2lxEVlQtGdzYbo7sMdE9yfPG9CZ7xXKPk6N5kZB0AVmRle2WlEQ/mLeCHuhEklCwKqRYtls/SUJxQ+mDPGXXvgSw+31rDPxcc+2dRUC+GSN3PWjXb5kqj10xAe3aJGtsgz95hzX/xcAa01nWapACSUIht5vvG16OaB49qlwi0pW2mWqNlfXtx+0mV4LkWeMiSfTZq0GWPJqHWUwgWNrUHc0DEM92C7nd6BWr0HShaF6YMx/kSav2S8bYp/2LOr6qa+yJtGiebGdh3BzSrkDlmj1o3gsbuLw0fJ/JAnlB/uMF4KGfoH3PQatpJ8sKtRoknET/Jojm9SQr1NSnO20zPZonUS6eJPT/Fs3rAnkL53q5PXcYHBN0keBzHftD5Yo510+22+WdyvnjOltru53Gi5r7zNOWTZl04ngrud36AXn5st3U2jx6KH/BaXxtHl0Mst36X5tH4+RluxWJ5hXJdkuP5nWBfKkzd77O+dOhCzPMtaeKyIr4amqnhyT6gdbm9RPNoxeYkiQk/r8MlEQfiuYNICuoa2SR6aDZbgWThOi+WUn02WvzaI2pDOf1FM0bINstDDGdC2nxOae+k3Ps8C5ypn1H67Tu6wK5x7V5MrFILfFPsci9ZLudWGQq30R/pTQV+lxkmhfNo6HDSfRFwtLZS/+LZLuJNf8962Mf5Cmr/nswbPBB5vyzRll7oTdZsbxr85Y7mtf32jx60wpmuy1fNG+AJCF6/oTV0pFFpvGQtFIWvWa7xZf8D5Ik1GWRJ3ltAm3t34xzQ1xkONp2nQ+bvNxJX/Kfsjbvv7B3xXJF8wZLopc0F15k+haJ5gUwFdi7YonW5sUB9sps0qptYYz9wq9g+DU69g1Fo3levxNr89ROQ/1ku/WURJ+95J8+j7xoXq+y4njZuyINYmF/J1u1HzKNXe43Ymy7buCRPLdb3iYsx9/eFbEtsugF+xO/6CYs2XtXSH9y3iYs+XtXLF00L7wJy5LvXSHXmWbsJpS8NVbPe1f0kESfBDSbtOt/ZIyt8S524HxGM/TXyBshJ1e0k5C3C5DXqtU1iYuvcqaWOtRebapbIAtkhT6cEDtvNoP1dNSouRheiqd2Borv2xYuy+X7C+E922gcFdCg0+wQc0wmULEBlLydgNAIUowbtCcF7T+htAK1FadRSMnglsaVJfW3cUval0IGOdReQWIiV1rpyslP5k5B5FQLdgsy/d2CvM9L5lIMwdvPjdZ9BHu6maGV0TSpy1v5QWPRxG5GjFpkP7foXhWi265dx7Zy28FT96NIWGCaBLBX9x+ZJMjwMTUBdwAAAABJRU5ErkJggg==",xBe=Object.freeze(Object.defineProperty({__proto__:null,default:SBe},Symbol.toStringTag,{value:"Module"})),ABe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAVCAYAAAAdHVOZAAAAAXNSR0IArs4c6QAACXdJREFUWEfNWAlQVdcZ/u7yHjVRcUEBY2LUgihqqiaOu0kTE5AICpUCikuUZWTiAjGmo1XSRktFwaWRTRm1YI2pVEzStFGpGMXdaHyCiGhICFYMqAgC726d89/7Hg/es3WmmYxn5sxdzjn3nP+73//9/zkcHlH8PtsXxXF8vqao0FQVmqYZlQ3QaJRGF/3+SSkcx+lroisH9myvPA+e578q7XR5NF5JljuumY1wKv0L93iaOd6iKaqHyoCwVWY9A6UNiScFg/brIKucgeAYGILAmpaVB0dseiwwfPfnFWiqOkNVFDAwWIWiQmUwGAx5MlFwXJUjIzgQEAYYvCg8UDUMuR42u7r9iA5W+Xy0MxLAHkVWoCqyDobhKjYgiBvtvONJcBUHknPs5zNPYTcMFF4HQ9CZIYgiOEEoqJg5J+yRYPTfk+MpcIJFlRUPVZagMGbICmmFqiq6SBAzbJ94EkBwxVEdGDsYPAeeFwwwRPAiA8TEegRfj5r/ie0L7TTDJz93v6rIoQoDQpJBbqIopBkmnoe/lzcxwlCNR3qK5db36N25C3p36eqyT9m/b6FZkqjtt28EobjyGo5dr3Dq++uRL9K7jy6ce+RcQf7D4O3u7rKdA4c/nzsNSVWIHYwVHGOGSSQwBJPpm6YHkn9NXNxDXWWM4rMnN1KT5T2yJIGBoRIYrOoC6tWlK3bPWYDPLJf0EYwUhnA7XoOHj0BkbhZ8e3ti1HP94OfpjZ6dO+MEM9bof6S8DGMH/ByZX/4Lq6cGo7iinGrHEvHiaJpk77nTjwQjIzIaF76twq3794w+bf/3nSkBCM7aiiarVXcVgYcgCODbwGBsSa2YHfOuHQzmHqIKi2KVPBTJSqxQZGcwMqLmYvq2zU7htM1tgMKEJYjP34Vb9+7BTRSRtyAeKw98DEXVMPSZvii8eAG+np5InBKI+LydWDMtBEfLy/Fsj+4I8B/ezmjPru6QVRV1jQ/avT9UZsGukhP0LnP2XKQd+geu3b6tR1OHciRxBUIytuhgGK7CMRcRRJ0dJjNEs0lSTfzIyoiFFhrum5dToMryDNkqQbFaCQhFkqAZ0YQxw7urOzKi5yNkSxomDxpM1bEUl5ei+GoZCpckIX7XDgJj8ZQANFutyCkuQiezGflxCVicvxtPmc1IfGMq9VsdEori8jIa61h8vLyxLXoeBJ7HnJxMVNfXuWRH5twFOHOjErUPGpza3wuahsD0VDS2thIYHOmGLqC8ycSAgGg2M6aUXJsdM4Hzy9sepWlaPgNBpspchLmKzgxb0uXt3g0Z8xYgJD0VMS+/SsZ9/vVFWkDg8F+Q0dlHj+Dg0uWI25mD5z16YWv0fJTWVMMsinATRCiqiu/u1iPjyCEkBQQhbud2rJkehqNXGRildmNY//RZc1B5+zaB0ad7dyzL3+0SjO1vxaKy9jbqGhud2udOnITADSkEBtqFVsYKEwQDDIEBwgux3OD83KuqLA2SWxkQrVAYO5hmUDVyDMYMd3dkzI9FyMYUxPzyNTxobsZfTupUjRw7Hl06dUJ20WEcTFqBuNxs1N6/D19vb9Q2NFD7/rOn6V3kuAk4f7MSSwPeRNyOLKwJnYmjZaUoLrtiN2ZJQBAetDSjmRkBoNvTT5O75BQddjI4P2EJVuzNQ3Vde+YwyhetTEZI+no0trQQGLaki7kIMYPY4QbBzQxRNN3g/HZnRWmK6oIZDAw9kpCbMGYsiEXIBgcwSo7rYIyboINx5BAOLv8N4rZn0vs+3XvQNXFqMPadOkFUb5UkWGUZSUHB1G9NWDgBcbRUB2Pu5FcweqAPEnKz6bus7DtVgqyF8fji8iXsM36ADZW/LltO83bUFdaeHj0fb6auQ2NrC0DRhFUWWh2ZoYPBC0Ksrhk7PixQJaYZBjOMiKJR4qUD4t2tGzIWxiNk/TrEvDoFkeMn0d9j5SmzG/adPI6cw1+gcMVKxGdvg6/3M3jZfyi1j/UdhNLqatx/2IR7TU34/KvzSJw2nfqtnhmB4isWFJdaMGviZISNGYdZm9PQbG1FxPiJNH7viS/Rs3MX5CYsRsGpk9hVXGRnSNGaD/Dp+bP6cwcBDR09FoF/+J2hGXo00TXDBJ65iMlMQAhmU8m1txIm0PD+OZs8RYWzyFarBwmopIdWphs2ESVmxMYjJGUtRg0YgFZJhuXbKlrD0Of6wc0k4nxlJQrfW4X4rG24dbfevuDMuEXY+EkhKmq+p3d9e3ogfPwEpB08gNXhOhje3XsgfNwEpBYWYMoLI6jfQE8v0plv7tTS88clx7E2KprAzDn0T5p31a/CEZGWap/LfsNxKEr+ACF/XIcma4sRWgU94WJ6QZphhuhmlhRJHXXj7cTLdiwHbE2L4qDmU2h1EFECQ1Hg5d4NWfEJiNn2J3BG2kVpg6a1SzeyFy1G7LYtqLl7FyLPo5e7O1Ki55HB7Nm7Rw+kHtiPh61WGvd+5CwUfX0J12pq0CpLpBN9PXqRTYEjRtGVGc9KVa0uqAygVlnG8umhJNwf/v3TtrSHpd+0Pg5F76/FtJTfo0WS7HrBXITyDMYKsxmCKKRWLEpsyzNsaA7cmlqgycoMW66hsojCKku6urojf0kSztozRdep+BhfP4RvTEH864GY7D8MtffvobruBxK4mvp6VNfdwZnrFVg2LYSMev2FEUjcuR2WqiqnJC5i4iTdTY4fc0ryRg4YiLR5MQhbv1bXCyMJHOvrhzGD/NCzc1cM7vssZm5MISBs4smEk4VWiiAmU1VzXeOQmuTk9hkoucumTZ4CrBZFljyIHQ5g/EwU8dqw4Th45rTtIMOZmgCCRr1ELFBUhYSSGeyqTPIfSqJ7q74eF25UuuzDDGbFVTtzK58+fXDsiqXd2H69emNov34074WbN3CnoYH2KJSKMxCMHIOFVZXng28uXu56b8K+6rM5JUpTkG9LyRXKNWxR5RFbeMcU1KVZP8HLjukn7Vz1rbudGYaL8GxfIgh/q1j6bqjjylwe7vhsXl+gKcoMElBKvhzBYKdeAOe4N/kJbH2sKYy9j6bv3yk9t23f9Uiih1VeFBpVRRpSmbTqu/8JxvPr13uZ3bjLmqJ4tG3WFEDVj/4c9vD/1WUey4Afs5PtyI9Jsx0QgxlGWGVggOcTr739TnrHqV0yg3UatGXDLI7j8jTjgIfSck3VhYrcwvFc48e06P/7ln4GauQcxvmnLRVn23fwwsXyHxpeQrLzGeh/AK1MuDN+xq4ZAAAAAElFTkSuQmCC",TBe=Object.freeze(Object.defineProperty({__proto__:null,default:ABe},Symbol.toStringTag,{value:"Module"})),CBe="/assets/room-num-7b2a192b.png",EBe=Object.freeze(Object.defineProperty({__proto__:null,default:CBe},Symbol.toStringTag,{value:"Module"})),MBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYYAAAAgCAYAAAAWst+iAAAAAXNSR0IArs4c6QAACd9JREFUeF7tnctOG9sShr/qi20MhiQKQpEyQFFGmeYF9kvwPIjn8UvkBTJlcJRBBpEixFY2G3MxdnfXPuvS3W5jiB3IPmdQTIq1+uJ2215//+tff5UQ/gRVODkRjoHxBzk6gvNP+8IfMPk8Ej7Cu9Mt4QNcfekJ7+H2ayYcwv63THgL0++p8AbuzhLhAPbOE2Ef7v4U4TXMfyTyCpiJCC9hfiHiXnwolwJ7zGUisEsR44ArgR0KuQ4RF7cZyI2PBS4OKeVWhkDh3gdQuvMDPUIsl/rz2F/V/bGdSzw+9leI9IF2v5lAn4o7yWYi9KGaIfRcFOn52LZ9/xzp5SHio8T9kdxvnwt5js4LH9PYvtdfzIUsp4pRi0KyLKMqwnHaHFdInsf+LMPtRwZJIT5qQScmTbvdnrr9SoS0jVVZSpamaFkKaYaWhY++nxSlFLKUqigFUlLXJqOi8NFtd/tVErb7/WN0e4d22M99Zv/9NkoaY912r536a6iE5lpSkqoUkhRdilK5/fwXoPNeZKEtaapxBw2v434I/s9HUbRy/1QlkqTaREoquseGH5H/voRjF2LZabvj3I1PtXQX566hbGOSploUJZKlSlGQZJmPru36E98P4m5XAZW/ff6Gxag+1v2da1H30bbHSqbhHPFc9TklvmYVr6Fu+2uZF5S5i3Mkz330/eG35mOy8N6LZoBp+932ue/PFWYkPs6ZzyDpobiYqzJ3ER8LF/32+piezvyxPYW7GGek2tM73+77/rTZ3tc7f23hc3Jfbx8Vnbo4UGUKyQAf08FAp9NbH7m9Jd3a8nHm401o39z4L4v7ybj/Ug3nzhgqXDPVEDO2Fa7INMTpaEeZXJKNRsrlJfnuSPkbbvZUuYD8hSp/Qe+lKj9g8qpS/oT+a1XOYbBfKWdwcXCgfP/O4M0bhW9s81a/8pUtDhW+sMN7hVNe8kE/A6P4nvdjHI/HcHSknJzA8bHGoVD9j7ALDMccjcfC0RHnnz4Jf/zB5PNn4eNH3p2e3gOGw0O4XgEMBwcwXQKG0Y9EeAWzvxaA4QUM/xZhD+aXE2F3l2IykdFol/nkShjtUFxdCzsh7uxsU1zfCNt1HNK/uRWGQ4qbFijYGtK7vV0bGAYeULrA8CCAgJSzmdDvUbn4CDBkDSB0gSGtASRu17lI3gGQFjAyN/CvCQypB5guMAQAcQN3CxQOILIMqjWBIWkGU2kG2dQDRwAE9ecPwJA17cXrCP0OSDqDeqftACdsTxb7I0AkNZhsBAwJ+P0TDyhJAygB9AIwtIN4AwwJ6p8IXHSDbECXBRAJ7e6AHwYFBwjd/jAANUDigaBoAKFaCxjcYK5aFJAsD+IerxeBoT5/pqUb9TvbIpg05wjA4M7pzl0DQAsEDoz8l8WDWUKIpY/tfUvigLgKGAJghHtTA0YNBMUSMISBP4BGfc4w8AfwmDGPIFIDwoxiBTA4QJh7YPCPH81re2Doq3IHaZ8mTj0Q9JXplMQBwXT6IDA4QLi9BwwOAG640y0fa2DItod6dXVNtrOtXF2FOLkiH+3oZALZSJVLyHf158CAeyx9rXDOgH2FMy44UPjOgBYY4CtnHWDAPYf7e/CfJWBgPGa8LjAwHj+ZMawCBs8YVgLDczCGYWQQv5MxBAaScyflv8gYNgGGar4+Y9gEGNwDc1YDwQJj8AP4EjC4dhqByDMaD0gLwFAzhDhI32cMKQEEAnN4GmOogaFlP7/EGFYAwyaMocskImNIUy0XmELNHB5nDOsAQ80YMg9Av50xuMFaH2YMq4FhNWNwwFCuYgx+RiCwigAqARh+D2N4HBienzGsCQwdxrCvnJ0FxrAEDP+3jOFFnEranDGIsMuDjGHgmcNPGMNwSOmYQs0YtrZiG8qpyGAQIgOopjVDEHkqY/BTSyumkn4XY0jjgLs8lbQeYwjMoZmK8lNMj08lPcwY6qmp52MMYbpokVmEQb1hDFSd6ai2P05PxSklEbffQ4whvMY9xpCoZwpuvuFxxrCKGTzEGCLT6ADB44yBoqSMU0YtQ9iAMfipqk0YQ5iuKptpq9B201arGIM7d5giilNHz8UYIqvYhDEEgOhOJa1kDJEhzP8NxrA9VK6v2ZQx9PZULx6aStqYMbgJ+PD5PANjMI2h1iRMYzCNwTSGoHOYxmAag2kMcfrCNIYWGExjMI3BNIYgPpvG8IRVSaYxxKmlZ1iVZBpD0Bp+bVWSaQymMdSrltZdlWQaw29ZlWQaQ1i+6jQH0xhWiM+LS01XrEoyjcFN35jGsO6qJNMYHlqVZBqD+RjMx2A+BvMx+NVK5mMwH4OwbT6GRYPbequSgtFtk+WqpjGYxmAag2kM5mPwhqRl57P5GJadz+ZjqAGjTh+w2vlsPoZlg5v5GFrns/kYfuJ8Nh9Dmzrjceez+RjatBrmY1jhfDYfw33ns/kYnuJ8Nh+D+RgsV5LlSgoGN8uVZLmSYhI9y5VUA4P5GMzHYLmSLFfSchI98zGYj2Epu6ppDKYxtCK05UqK2VUtV9ITs6uaxmAaQ0y7/dTsqqYxmMbQpMhelV3VNAbTGDAfg/kYzMdgPgbzMZiPweoxWD2GVYV6zMfQFuwJhXqsHoPVY7B6DM+QXfUYq8cQ0nGbj2Exu6rVY1gu1GMag2kMz1PBzTQG0xhMY/hpBTfLlWS5kqwew4rSnlaPIdR+tprPC7Wg1yztuUkFt1ALui60YzWfQ6U4q/kc6kmbj8FqPtdu/pMT4dh8DOZjuG9ws1xJlivJciVZriTLlWQag+BrPLua92A1n+8Dg2kMpjGYxvDxI+9OT4UPcPWlJ7yH26+ZHB7C9bdMeAvT76nwBqweg9Vj0MLVgM7wNakzV2O6lCxLqTr1F1J8Er6mPkPm6zCbxmAag2kMpjEwlEuBPeYStIUiRtMYTGNwldvC3P+vVnADIuup2Y8stCVNNe7gi6abxoCaxoAyBdMYTGOQgRs/JAxCpjGYxkCCUoHlSrJcSZYrKYrP5mMwH0P9dG0aA1q5p4VAOxbYRYlpDKYxmMZgGoMbGjyjyEHK2Uzo96hcdLWdY43naoZvW81n0xjEz4A5Oh4BJU21LEv89FVZxFhS+XbdX5K4ttV8xmo+Q++lKj9g8qry36U+rxXOGbCvcMYFBwpW81lgm4Hc+Fjg4pBSbi1XkuVKslxJlivJciVZriTLlWS5ksKKpqQqhaTNkaSxbbmSMi2dkuxEswY0grhcZbXIrL6duIVjC8a22uCWZKYxmMZgGkNHfLZcSeZjEDWNwVVya4EiU+YFZe6iaQymMZjGYBqDN7xJY3xLawNchvcp4HwK0a9gPga/ztY0hngPyphqJInthFxhTuHjjLrt5tHdPuZj+N/6GP4BeJrLWk0wNugAAAAASUVORK5CYII=",DBe=Object.freeze(Object.defineProperty({__proto__:null,default:MBe},Symbol.toStringTag,{value:"Module"})),PBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAgCAYAAABdP1tmAAAAAXNSR0IArs4c6QAAAUdJREFUWEfdmbtOwzAUhn2qeKqyEjsw9UITFiZm1PQSJelFSWBGPHIbV7wAynFZq05FgJw+Bf9ZPH/6/nOOLdPjqmhOp9OPACjf93s0mD7vuG0vADxCh6GkQTLdcfsJAnQnaZgkWIaGs2QPFbnhfAYG5AxxexG/QggS4j+f+jaUNEIzNFrMr4YASmtnaLnYMzMIkJY0ThcNlKFxumywDGVpwy1I5EIXudwBWYweCpWkSZ41bEGmnAolTYocC+i+yIwFiZxykYtWmWEG6SHdARUGqoei9cqwBRnbSku6AoFETrnIbdbGggCpDmjbAX0DXLaFUsqjqNwYyyBA2gFVWzBDVWnskTEiF2iPoro01oIAKe1RXJWGQQxpZyiuy4M9HiGeDyoIJMUvDugLpIduPHp4rQ8Msoe020NP728f5/MZ4jul3+/3/gC7u8sZwjy1kgAAAABJRU5ErkJggg==",LBe=Object.freeze(Object.defineProperty({__proto__:null,default:PBe},Symbol.toStringTag,{value:"Module"})),IBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAgCAYAAABdP1tmAAAAAXNSR0IArs4c6QAABapJREFUWEfFmd1rHGUUxs+Zme2FTaXNR2dalq1X3vjvRKpUMRUsKsSKKH4hgiiIICIIIl4Igpf+QyZR02ozkyap2NSL7s688pyPd9/dXM80JZ3JQmbzy3POc57zhp97f2vv0aPTltpA1IVAXSAKIVDA10QUyD7kJn7lrw50ZSLWt8IlwxUvMVPGRBkz5Uznz6/kfG17c6e+30xp1gVqO0AE6nA1KEcAqD5QbwDb5wd+aP0VKol8bVyAAUSW4XWmPCMqMq42ypECHdZTmkGdLtDMYAAgaslD7SYVq08ae7aJEqVhwj/A+CdTAagMCnFVViN+5q3N3w6aZiYKiUoAa1UplOGcRbD81zYAjtVXvCgM/ssBRExZjntAyeeVsixUoaae0rQN1AICMEFhpOyI2Nunk9LVIui7m0yd0OEHt1rHa6oQSw+NUHaAIqZRrgpdu725c1BbyZlCDChRyitNwRK1hhHITcB7BxReclAmzylEhZivVNWIJ28/v1MLUBdoipJriaEMegpOJ59szme/IcAt1HdPfAvvA5igvQN1CmaFgUJacpUB7dYNXG4mQAxlZii3ThVCL6X1Nah7z906GoP0DnoIEKwKjXBfcFWWI568c11dbtoRVOJlY9C5NGfC/SDyWIlDDS89tesFQwhmCDTKqLqMknv3+q4APZY5FBhgqo4ZA1rHHEAvfdvBcv2au9kwhUGIy8kc4jDKtOTOZaxA772wWzf1jNquwwzi1twO8wiJwRWaW1ti3z31jj9WxbG6g92aQkgImD85cchzu8+yqqoKnnzw4l59qEmBxRRkFs2tOwjYXJnh9ZnjSdwByDzuQJ0gPQSF0EMf3tirD+uZGsIykKQGuFyC0XfmSVX3/ONtG9QQEHUsv2GwikojKbmCJx/f+N2znBiCxJ8kqCLf2WhdSAl9c0WWdD4EzW0eSAt1OzcGyXKTT14CkEQfVWjJtiV5p1ZgJH0DxUBqZJ4SYsJW21aFrOQ2yoInn778hwDB4aJlm0ron451wKZ5Z6g+iuJY1hJTCCx9ZOoIEKw7l7Rd8OSzVxQoVUjWCEsKMIgFX1ucs736nIfRxBbEEHx9QPktKzT+fOvP5shczleH1OUgT5qyhyi1M76QDFfQpC4HcxhlhLIr18sRj7/Y2m9OmilNA8UewoKHXgIYG1AEWRiy/Qm0UG6+pcpwVafD1d2ugHUzlasA+vLmfnNyOEMYjbYNl0uH6plROngTefzRtcGBxBS0f0LBXK5eLnj81c395vi+mUIgGayAkbLzlcHLbsFC+1MnPtnfD5Vi6uDG44+qBBhZwcvVsuDx16/eUSBXSFbxuNzFnchLb7Bg6lQGE5JdSFRC6k5MIWcu1zYKHn9z605zYrYNVXyxE5dDL9mDI9AAwpyNp0grttxBqSQpZLIXSempQt++drd5IAolpjBfv+PpjsyiJ3io4GuEHGHZGi4xyAZrzlRegkLf3brbPDhqZbCKOn7qI2uDpYTEBIbyg8XEbaYQj7H0nMGOsmTJg0KXNnIef//6X82DI5iClBvr8ZWWm1q1JYUnsAktQ6lKZtsAyrTcJKhmVF5cL3j8wxt/N/8ctbrQdYEB4Seovn1DqaRHB+2i1Fjhaup2MS0EcbwMkFxeXM95/OOb95qHx9JDBuIqzQ8YHcfXIjxwkNKzDOlQHoWAlTEFT922SpQX1goe/7R9r/5XFNLTHsludh7nx7/x5NQPy8xK+5RKWJI5pIurvCAgPpcAhh7KmKqn13O++vP2QfPwpFUzwLk2gDrKABGNzY6yrKX65Dj7bM9xiVqMJQB4vhvpTCovrOZ89ZfbdXN6rH99iBBL7paUXAzAfZecbQzyNgsl5z1kyUH3JAms5cpazs/++tHh6eP/5PRN1EG69iCaHl/p9w9nDokZhICTTh/wSSnqn1U03zHRyrmnsv8BD/JmcD61UTEAAAAASUVORK5CYII=",RBe=Object.freeze(Object.defineProperty({__proto__:null,default:IBe},Symbol.toStringTag,{value:"Module"})),OBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALIAAAAdCAYAAAAOwDZTAAAAAXNSR0IArs4c6QAADSdJREFUeF7tnFusXFUZx/9rX2bmXOaUU1tLE9IQoaitQWIT762YEGNMvGKRnoMpifEBJUFN7ENN0xbwBa3RB0XFBx6IUauJIeoLRo4YFKNH4YGjkRpqqJTaAjPnOrNnZi/51lp777XXvs+cAwW6c9Iza+2119x+5+t//79vLYac4zOd1lWOxU4FQzjnzwx47wa7XuPo6hd2YaHOqSfotuo8Nsauw2jT+C46nWgeuyHnCDqtRoMDakAHsBsN3sFa2EVDqQ9ra+Ek9thYrO1Rm461VfFLnKdjVbbpcMbHOURzVfyyx9WYFdknxkyMc4i2+Ee2ASwvyz5nckLOKzoBZ5JH7SXZ2WlOyj7RBpymNmYRcKemONAOp6lhE2+Jlvw3eijb7mWbeA3T6nleUFNvVu0LcvwFoL5li+o7D5wHGlu3qvY5MWQM2/jZ8AnOAmeBxvbtaswZ4Iw8OXHFFarvNE6fBsauvFK1TwGKksmrr1Z9C8ACML1rV/g5zGMe9NPcsyf6bObmxNxbr78+6jt5Erv37xftY+LscfGDo0ejMYzRibAtWlnHAa/9BQv4rnb+AeZ7d1v1Ou+GIHdhgm0Z0BKwPQP+VLAFs3LinoA6gpj6BNga+QLijoQ4+HsoAjsAeS0DbAE1HQpseuiMj/EVE2o6ocAOoCaAA6jFQzrEg+UIdAW1a0C9loBag1yxXdu0iRPUAdYutDEvyqerTas+yTXqm30ukFZcS6jPy5Mh1BJoqF+tbdu4oJmOEGpF85k40DgNnDOAjmCmCUyg5zFvwow5bIUGMk5iNyTIdAiYjx8fHuTZbvuXYPh4MCF8fhtD72GKvlFANkHugkDXI3bPiM40n639NYk2XaNApl8yOpsgQ42RrygAORdiGmhE7ABiMQdF6Bi0AcgqEhPENLBEdA5A7gTRORVimmwZOshLWITTbMovblG+N3dKARmDmM4okFsUkdWYEGKKzorgFwhiis4XJMMhyOoaxbKMzhHIEmJFcG5kPi1GpUXmalF5DpgrEZGhRWN64rIReQ/n7lt67ecB1lQg9zjsdzquv0qQxkBGLQr5SIJs1znvaFLEjMYRyHJQDGRNeliN0UA2o/EwIIfRN0VmlAXZbUb/JZLMWD+QtQidArIZjen9myCPbSOZYUZjGiklhi4vhgW5CU1aEMXDgawxB2RKi5ne0j7G/d+H0Rj4M/O9g0WyghAP9LK8trqskCCrL0WBnCorsGZo7Hy9TCDL4FxOL4tXH+plTSuHEXol1MoBxBSEhV7WtEWon1NkBXWZWpnCsjulInSGrECrJTSy+Ig3QlYolqVWLi8r6OVkR+QUWTE3F9fHOAn6iWnkAlkhArQGauzhTLf1dcbY4bCTsRNs0L0vX1YAqfo4FrFJRqTc+BXq4/RoHEVwujFMyohCWSG4DmREUh8LkFP1cfymLz0a0+T5+jg3GtPlJfVxbTouK+jSqvpYRmM65A2fiNgVQa6sj1NArqqPi0D+K2NsTwCyb7FP2v3uP3rKnQiirV0gK5L6uAs7Nkegj1NkRUCpuNEbTVbQVDIiR27Fa0sfmzd5w+rjbFlBn6GUFheXPs4Eef/S0tZa3X+O+BHAMlzwfbbXrcGP3AoCMG6xJWUFYIKcbsORMNZBLicrSEyvl1tBb1O34WQ7uNErJyvE313ujV78Jk/8B2K4FXmygsYLxyL1Ri8f5HS3giY7F97rVdLHMbeC5pEWXO6N3vx83HpLuBUATOvNlBWCRxbTx5kg39JvH+A+fhzJCjzIBt6hV05W5Ntuwr0gfzmyk6UbkXArhI4Qb8v0kyPbLYrY2bKCZkjqYxNi8ccQgJ2qj3PciixZoUNMY14ky+3ilxVZHnLMP9ZsN+kfF9tuwbBUjTzrte8HcDAcxNghDLoPVgXZdCsEQBulj82kiAh38URJQlYIrk19vAG2Gz1PVZDX3XZT/nGG7Wbq46KESKF/vLAQS4ZQJiTuH5dxKwSB8ehr2G75IHfbz4Jhu5qF+4y9v+bggi4rSEYk9LGhfYtkhQCbywwfHWluBfVbpudMjsYIsiKMyBnZPRFJC2SFGEPZPZUECd0KOlEiCSKTe2ZELuNWpPnHSVmh3GMtsxclQeiZQ9stNwlCI1Nst9NSJZuZvaqyotB2Kykr6FUmIvKB7vK1Fhs8EZAOsAXmdz8Vt92K9XETzP5iffybY2AfvOD73/tWb+UHRdG4iu02CshFaeoyIJvZPPGHWEEfD2u7lcvmbeZ5IJveMb32MJs3jFtBE+Tq43LZvELbjXBlRoRWoCZB7rS+alnsHg3k+5jfPZFwK4yU85fr47fZImEnDwfs8gmwm+jxAFg40l36GIF862B832WMXfMXv/erxxx2dl2yeaX0cXm3gl7zaLabNJGFPlZ1FZWyeXRxmu1WIptHl2babrmyInIrRMQObLeUOot8WSFT0nQEdRal9PEQ9RURoykRebbXfggcNwSDOHDQcdljedm83ZbTvNltzOsTB4994PzTGBy6H6uPfAkTt74B1hEF95m74O2LuxXrn5a+lM2L11bEZAU1zgGV3Aq6JrW+4o0TzoDto9OcW0tTzsQjAQPtXmuXA+txcQ7syWfd+esCWdFDqzk2sPcCfYC7i292Jv8QFgol09IJtyJ4jlhE/ijn41O9pecB3pAD+KrF/XexmuNlFQlNMmZ/wnb3WLYVe5KBojV4IssG3wnnBIPU3j6weGfHuy5PH2dl8y42WTGMPr4os3n0xQxRJESXXbbj8qth853i+x70nmrWNv9LfvfzWPauOsKYDGBguPO/zt/uCoqELG/5Gtfu7ySOrbr9zzeheapMkZAZNGMgz3TaH2EWfh0OYuxhNujeludWfMiu7djr1H6bFo2z+uju7n++f+xer//TUardpO1WnM2TyqPIdqOJNMdimGq3YdLSZpEQvYxXYTav1l/Z6zNf1OX0V/gj01NTSlQRyDsfZwy7RADjg7ef/eMTC4Ht5vSXP2Cz/iSDzV27ObfjJV9zdJC99rcZcEcIIMfdjHsP5GXzSFZca1lvDa8ZABR99Qi9Bqxy8D6JZTqe8vtnnnTtxY2WFfRcr/ZsXli0mZcEoTeqioT0mzzqrm8pU+32CmfztPqKHFkhJEJWcIxF5FlvcQHgIZSc4cOOw57O08d3uOMHt1jW1woi8sq/B4Pb7++vhrpJlm0WZPN0DVG2bDPFTx4uLZ2ezaP3qdtu1C7tVtDg1Gq3LNuNLsgr27xkuwXchSB/lq/t8HvefzRZcYYNujcUJUEO1Bvv2ArrbQmQfWCKsX11Jm8AlsC/f093+RsiSpaqPU7P5sVS0iVkRV61W1oR/WhuBb2gS0VC0aqQctVuwxQJZWrkWa/1eYD9MBjAgZ9YvnesCGSz2k3P5t1Yb+y8Du6JAdj53/U7hx8deFS/EQOZ2umrQUoUCWm2W+gNb0Q2j16kXCKSKNvMjMYq+g5ju8mVIEXRuEwRff5qkHXP5mEB04iWNiWzeQDMajfNdqN3rFLTpbJ5OsxhRJ7ptn7OGLtRO3m77bKHNiSbl5AVynbTi+hfBdm8SrJC3fokyzazs3kS5fJFQq+3bF4C5P2c27X+4nlwTNNJDvT9nvee2nh9cUOq3bTa49dTNk8ooQ2rdlNr8+hJwgWn5to8OhlVuw2/No/mKap2K5PNK1Ptlp3NS4B8c2/xvTbnj2on5pnvzVaVFWI1SIUi+pHW5g2TzaM3mFEkRKdG08daNm8EWUGXxhaZjlrtVrJIiJ43r4g+f20erTGV6bxK2bwRqt10iOmxkBa39NrHOMfR4CRn+I418O5NgFxxbZ4sLFJL/NXk+o0edQ2tj4epdnvNLDLNX5tHn2uR7VaUzaM59CL6Mmnp/KX/ZardxJr/yvo4BHnWa/8JwLtDkDm/yalZT1STFRu7Nm+js3lDr82jD61ktdvGZfNGKBKi15+yWjq2yNRMSStlUbXazVzyP0qRUCIi728/s9kd33SOce6Ikwwv9v3e++q8Nshe8p+xNu9l2Ltio7J5oxXRS5pLLzJ9jWTzIphK7F2xTmvzTICDNpvptvYzxn4WdjD8BgPvK5fW5qXvLFR2yX8l261SEf3LLysulr0rsiAW8XfGa/2IgX0uHMT4YduxflFouxVswnLx7V1hbJEVu/GLb8KSv3eF9JOLNmEp3rti/bJ5+iYs6753hVxnmrObUPrWWJX3rqhQRJ8GNJvx2n9nHNuCkwOr/2nLsZ+jtLS0dWknoWAXoGBUJ3ETZ65yppE21F5twY1eWOQjO+yxlNz52lq0no4Gra3qS/HUzkDmvm16Wy7fX9H3bKN5VEKDHuanmA2ZQM0lwA12AsJSVGK8RHtS0P4TSivQWPEwDikFXHeTiqThNm5p+1LIJIfaK0jUT7ibfXnzk7tTEJlq0W5B9XC3oOD7krUUDQT7udG6j2hPt7q2Mppu6opWftBcdGMn63bL7OcW36tCXHb8+EtbuR3lmftRpCwwTQM46Ps/LkOQ8MXeJusAAAAASUVORK5CYII=",kBe=Object.freeze(Object.defineProperty({__proto__:null,default:OBe},Symbol.toStringTag,{value:"Module"})),NBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALIAAAAdCAYAAAAOwDZTAAAAAXNSR0IArs4c6QAADh1JREFUeF7tnAuMXFUZx//n3jtzd/ZVdm1dm9RKLBUpCTRtAiqCxFRDUINoi3QXU2NFgiE+UNGgpK2UYAwkqFESS+MjxBAKaEgwQYysELENXVpIWIygbGOh1C4ws6+ZuXfmHvnOOfc59zUzu1iwN5vunHPPPfP67df//X/fOQwpx+dq5TWGxl5wh3DO/93k9ibdLHLUgxfWocHk1ON2ayYPjdFNRNo0vo5azZ9H75FzuJ1aTw8H1IAaoPf08BqqXhcNpT5Uq94keqkUalvUpqO6IH6J83QsyDYdRm8vh2guiF96rxozL/vEmL5eDtEW/8g2gLk52Wf098l5RSdg9HO/PSs7awP9sk+0AWMgMGYGKAwOcqDiTVPEMl4WLfmv/1C2C6ct40UMqed5TU09rNrTcvw0YC5frvpOACeAnhUrVPu4GFLCCD/mPcEx4BjQs3KlGnMUOCpP9q1apfqmMDUFlE4/XbVfABQl/WecofomgUlgaN0673OYwAToZ2DjRv+zGR8Xc6+4+GK/b98+nL1li2jvFGd3iR/s2OGPYYxOeG3RSjq2WpWvaMDPAufvZo61WzNNXvdAriMKthaBloC1I/DHgi2YlRPbAmofYuoTYAfIFxDXJMTu30MW2C7I1QSwBdR0KLDpodFb4vNRqOmEAtuFmgB2oRYP6RAP5nzQFdSFCNTVFqgDkCu2i8uWcYLaxbqAwJjX5dMVh1Sf5BrmsMMF0oprCfUJedKDWgIN9as8MsIFzXR4UCuaj4aBxhRwPAK0DzNNEAV6AhNRmDGOFQiAjH04GxJkOgTMu3Z1DvJYvfJ7MFzmTgiHX8tgP0rR1w/IUZDrINCDEduORGeaTw/8NYk2XaNApl8yOkdBhhojX5ELcirENDASsV2IxRwUoUPQuiCrSEwQ08Ac0dkFueZG51iIabI5BEGexQyMgQH5xc3I91YYVECGIKYzCuQyRWQ1xoOYorMi+DWCmKLztGTYA1ldo1iW0dkHWUKsCE6NzFNiVFxkbi8qjwPjOSIyAtGYnjhvRN7IeeH9duVVgA0okG0O/Tyj4CwQpCGQUfRDPlpB1k3OawEpEo3GPshyUAjkgPTQeroDORqNOwHZi74xMiMvyIUB/79EkhmLB3IgQseAHI3G9P6jIJdGSGZEozGNlBIjKC86BXkAAWlBFHcGcoA5IFFajNqzFzHu/MWLxsAB5ljbsmQFIe7qZXlt+7JCgqy+FAVyrKxANaKx0/UygSyDcz69LF69p5cDWtmL0POeVnYhpiAs9HJAW3j6OUZWUFdUK1NYLgyqCJ0gK1AuC40sPuKlkBWKZamV88sKejnJETlGVoyPh/Ux9oF+Qho5Q1aIAB0ANfRwzK7sBsf3vE7GbmfN+p50WQHE6uNQxCYZEXPjl6mP46OxH8HpxrBVRmTKCsG1KyNa9bEAOVYfh2/64qMxTZ6uj1OjMV2eUx8Xh8Kygi5tVx/LaEyHvOETEbtNkNvWxzEgt6uPU0EerZcPMsY2uiA7Grtcb9Sfs5U74UZbPUNWtOrjOvTQHK4+jpEVLqXiRq87WUFTyYjsuxVvL30cvcnrVB8nywr6DKW0OLn0cSLIW2ZnVxRN5xXiRwDLMO047MJCEY7vVhCAYYutVVYAUZDjbTgSxkGQ88kKEtOL5VbQ2wzacLLt3ujlkxXi7y71Ri98kyf+A4m4FWmygsYLxyL2Ri8d5Hi3giY77t3rtaWPQ24FzSMtuNQbvYmJsPXW4lYAiFpvUVkheGQhfZwI8tZGZavm4Le+rMCDrGndkCQrLjCLI5eg+Lg3Hpi/rT6/cRa15jfM4a8Pgm21wA/POvyJl7Tm/vvrtefcsUG3gvo6sd2Ee0H+sm8nSzeixa0QOkI8ddRP9m03P2InywqaoVUfRyEWfwwu2LH6OMWtoIvjZEUQYhrzOlluJ7+sSPKQQ/5xwHaT/nG27eYOi9XIY1blVwC2eYMYuwHN+oNJIL9b03s3FIzVG1DYOw3n50fQPPCkZR/ZXizdYYJ9LAC4eOgAr9W588Q/HeeX9+nOIdd2SwY5hz6OJkVEuAsnSlpkheA6qo+XwHaj52kX5EW33ZR/nGC7RfVxVkIk0z+enAwlQygTEvaP87gVApdw9I3Ybukg1ysvg2GlmoU7jH24aGA6KCtIRgT18bkahjYX+g/8zq6dVwTTP26YdxYY1lvgf6UAWAT7QBToVx3n1p9ajT2umRfnVtA1WtRzJkejC1nhReSE7J6IpBmyQoyh7J5KgnhuBZ3IkQSRyb1oRM7jVsT5x62yQrnHgcyenwShZ/Zst9QkCI2Msd2mpEqOZvbalRWZtltOWUGvsiUib63PnaOx5tMedBzPMW5dHrbdWvXx9oK5aZVW+M6TDfvL5xuFvRqwiuZ4ttnYvJrpl+kaeisOP7BS037kzj0J/pl7a/bhNJCTbLduQM5KU+cBOZrNo2va0ced2m75snnDPA3kqHdMr93L5nXiVtAEqfo4XzYv03YjXFkkQiuYWkGulb+tacyDDWB7mFO/vcWtiKScv2X2fXMZ2DXBqMuBxh6rumF7sXTPccfe26PpI8PQblCRvvFrNNZP1ZwFUXPRTTYvlz7O71bQ6+vOdpMmstDHqq6irWweXZyljxOyeXRpou2WKit8t0JEbNd2i6mzSJcVMiVNh1tnkUsfd1BfEWStBeQxu/IIODa5gziwzSiw/VnZvO+bw3ctgB00wd/TC/ZZur4JTO61qldeXSw99UyzsflMXf9qD9hH6VwDmNwN65Nht2Lx09Knsnnh2oqQrKDGcaAtt4Kuia2veGef0WQXiSDFtdlBo+8xl6GKXV5nQDssAxh79uXCxHpXVtgoD5Sa+oWCCF6YOdPof9wrFGpNS7e4Fe5zhED+FOe9g/bsqwDvkQP4gsad81nRsNKKhCii3my+49CzaGzbb9nPf6FYekAH1jSAQwsOnxjU2JeCfz30eA78N7fV7J1vB1nRiT4+KbN59MV0UCREl522+l1nQOdrxffctJ8fKA7/Q37nE5iz1tzEmHaTaDL84CXjqZvdIiHNmntfQW+sJY41U//7ezHwQp4ioShPIZBHa5VLmYaHvEGMPcqa9WuzsnmfMIy15+s9D9yJhQ3H6471acM4a73es48BZvQJybGwwQ9OgN/6x1rjSDfVbtJ2y87mSeWRZbvRRAHHopNqt07S0tEiIXoZb8FsXrExf6HDHFGX05jnjw0NDipRRSCvPcwY1tE5hzfPPfbE05Ou7WY05j6is0Y/g84L+sD46jd8ze5Btip3MOBrHnwcuxm37s7K5l1nDm0e5toVu625LXQtJUGuR99Vy6HtbHAcsRg/OAu+/8VG8/BDzdq/aIz0j09l87Kq3byizbQkCH2gqkgoeJNH3ebyPNVu/+NsXqC+IkVWSGWScIQi8pg1Mwnws9yxnOESw2AvZunj75rDux0HC7fZ87e4INM152jGwDNOYzZftVtMNi9oTeQt24zxkztLS8dn8+j9BW03aud2K2hwbLVbku1GF6SVbZ6y3VxWPZA/z6urHds6EpAVR1mzvilLVlCR0E3of+gVNH+yp159WFS7tVEklOxWxBfRh1LSOWRFWrVbXBF9d24FvaBTRUL+qpB81W6dFAklauQxq3w1wH7hRWPgHs2xdmaBfLqpl76I0sRjDWvTn5vWS9HaYykjFq/aLQyyn5b2vOGlyObRm5BLRFrKNhOjsYq+ndhuciVIVjTOU0Sfvhpk0bN5mMQQ/KVNrdk8ANFqt4DtRu9YpaZzZfOCMHsRebRevo8xaZuJQ8d1usYeScvmXWOWLh10tPUDGrtqGs4PJxuNPz1s1I8GV4fkkxXKdgsW0b8FsnltyQp169NatpmczZMo5y8S+n/L5rWAvIVzvdiYOQGOITpJiQzHtj5Y7DVn0qrdbjT7bmXAoDvhgYZ9SxbI0SKhdoro3+rZPKGElqzaTa3NoyfxFpxG1+bRSb/arfO1eTRPVrVbnmxenmq35GxeC8hX2jMf0rmoiXCPCeZYY1myotsi+jc9m0fvLqFIiE51p48D2bwuZAVdGlpk2m21W84iIXretCL69LV5tMZUpvPayuZ1Ue0WhJgeC2lxlV3ZyTl2uCc5036sNWt3toDc5to8WViklvi7iiWwyJS64ss2TxXR53Ir6APscJFpVjaPpg4W0edJS6cv/c9T7SbW/Letjz2Qx+qVv4HBq07jnF9hFLWn2yuiX9q1eUstKzpem0efYs5qt6XL5nVRJESvP2a1dGiRaTQlrZRFu9Vu0SX/3RQJtUTkUV4eQkP7D+PcECcZXm849gUmLzaTl/wnrM17E/auWKpsXndF9JLm3ItM3ybZPB+mHHtXLNLavCjAbpuN1stbGGP3eh0Mf0DTuj4rm5e9d8WptXlLs3dF+pJ/+h6zsnntyoqTZe+KJIhF/B2tle9iGtvuDWLsRt3A/Wm2m1ibl7EJS8e2W5eLTJOr3SJbZIVu/MKbsKTvXSH95KxNWLL3rli8bF5wE5ZF37tCrjNN2U0ofmustveuaKOIPg5oNmpVDjHGRtyTTdibNUN/hbxgaevSTkLuLkDuqFrLTVx0lTON1KH2anNv9LwiH9mhl2Jy59Wqv56OBlUXgkvx1M5A0X3bgm25fH8+uGcbzaMSGvQwPcUckQnUnAUK7k5AmPVLjGdpTwraf0JpBRorHoYhpRqgwjIVSb1t3OL2pZBJDrVXkLiRKww78uYndacgMtX83YJMb7cg9/uStRQ9cPdzo3Uf/p5uZmBlNN3UZa38oLnoxm5CzJpnP7fwXhXisl273tjKbQdP3I8iZoFpHMBu338BXan18APaF2AAAAAASUVORK5CYII=",BBe=Object.freeze(Object.defineProperty({__proto__:null,default:NBe},Symbol.toStringTag,{value:"Module"})),FBe="/assets/page-big-box-357a5eb6.png",VBe=Object.freeze(Object.defineProperty({__proto__:null,default:FBe},Symbol.toStringTag,{value:"Module"})),zBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAAyCAYAAADMUGp0AAAAAXNSR0IArs4c6QAACz1JREFUeF7tnXt0VMUdx2c2FRGwWCiEggqJCQJCwisESIgQ8iIhkYeIYkioB0+1wOlBKoVS66MIFA/Qh1ILtCEQUjBIIE8e4WFMeCThFTmcehIRtFCCBbVCVXrYbeduNrnZJJLs3kW5+8k/u3d372TmM7/f9/7ub2buyKUFeZVCSiFsNsErHLAD/AAdQAfQAXQAHTC/DsglhbknpLAIm7AJKaSwCavgGB7YA/6AHqCHXA+4HhIPmDcekK/kZmsB4NqszVVCWIQQVlH/xzE8sAf8wUEAPUAP0AP0AD2wE7h99fDpKY8FCmkR8jc7so8LIcXarC3Vde1xtItXu97DAQ7YAX6ADqAD6AA6YAIdeHryYwEq7pMvZm89qt789e23PqBnTdCzRKxE7Nyx1I5k4M9EbERsXNfRAWcdeGry5Ae0APCFbVkVKpm5fuvWM1w3uG4QPxI/ogPoADqADqAD5tWBGZMe9Vdxn/xl1uZyFR+nbdt2hjiZ+2Xul7lfRgfQAXQAHUAHzKsDKZMm+UstANzytzIVCW7cnv1h8ybvPOnT2TT4vuGkUPg0dB3sA/vQT5rGP/APfYiJPqAP6MOtjL+mT3jETxsCnp+ZcUSh37R9+1nd8l/eQgACEIAABCAAAQiYjMCTEyb00oaA52/aeEhFgptys8+R9Cbpbd6kN4Na+Df+jX+jA+gAOvBkYlJPLQP43Pq0Q8JHiM05ueeY9GneSZ9M6mZSN/6Nf6MD6AA6gA48Hp/YU9mBnJueVqpSgVvycz8yWZaT5kAAAhCAAAQgAAEI6AhMTUi8XxsCnrNubYmQQmTl531ssQhh1WXIOYYH9lCfMcAf8Af8AX9wZNDQA/TgdtWDKXHj71Mjv3LWujfftQgpsgoK/sHIODNkmCHDDBl0AB1AB9ABdMC8OjAxPv5e1b/y2TdXF6tUYPauneebzpE6pKC5DOrNv//Fs7P79wsM7Jr63Nx9jUtpfH76ylWRp6uqLv32T6tP1XeB6//f7sqc76n+hS/2hX+hL+hLUwRufn1EP9HPW62fE2PjemhDwD9544/vqNUgOXt2nVdDwcKmq4qLx5HhYV21UmrPT5k8ZUBAr15df73ytb0tKf+Vec+PrT579tKGbVnvOX6/r6T0klH1q2uhi+3j/FoC8DPEX7An7Emvl9gD9oA91McP+IPx/pAUHdtDWwQy8w+rDqjic4uKLnxDmqzFXy2YPbt/UnTMgBaf0Iof5uzZ/d6y118/1YpT+CkEIAABCEAAAhCAQC2BxKio7irzLJ/6/QptWDa/aO8/m10e7sDW3KQA3fcHt+dO8yTlkUmJmY3q2Yr6NfkYBM63E2hB/8KvCU7YD/aD/6Af6GfTk+bQx++cPiZEjv2RGlGVKSuX71V2W7Bv/0XHiJ47rwdz8zwaAI5IHJ/pTv3UCDfn20cu4QAH7AA/QAfQAXTAu3QgNnJMN20RSPLyZUVqFfCu4gM1Kky1CauQukUTNqtVSLXevfbvZt97PgCMz3SnfjerP9+71//wgx/+qdPLVuon/oP/4D/4T1285SH9iI0Y7av+h3xiyeI9KhW0t7hECwDd/ctY/UaUu2V80/nJP51V5MnyKRsCEIAABCAAAQiYlcDYiHB7APj4ksW71Zt9pSWXzNpY2gUBCEAAAhCAAAQgIERkWLj2pBY55eWXdgopxf6DJZ8IixTCqpsN4MLxojk/C6obTZdSCJuuPAOOX/3dqsq68l2on7vt43z37AN+8MN/a2fdoV9uX2/QE/QEPWm9nowZMbKL8JFCPvrSC4UqEiw+fPhfRkTGhwp3JhtRTnNljBgXl+HJ8ikbAhCAAAQgAAEImJVAxPDhP9QygEmLFhSo9fsHyw5fVplAdzN2R3bt9mgAGBoTneHJDKO77ed8YzO+8IQn/l57h2+APuNP+BP+hD+NHBbSWXsO4PiFC/IVjkMVZZeN2Pvv0O490z0ZNYfGRG80op7sdclel9iRefe6xL/xb/wb/0YHmtaBYUOHdfZRGcCEn8/LU099OXLs2BUtcHPeurCVx0f2FDUKAHN2Fp58dcWKSlX8pjVrYgL8/H3rPrMKsej5eUFJceOCtc9eW1Gp6rNonv0z52AydGzUxgZb+7ayfu62j/NrH4Ts6Bj4N9zKEx7w0G9tij1gD9hD/WUcf/hO+EPo4MGdtCHgcfPm5qgaVZyo+NSIe8bDRUUpzkFbTkHhyfJjFTWq/NTkaUEBvfy6VZ/98GJ6RmalijhTk5N1n2VUqt+FDB7kmxQf3ygAHB4VucGIenJvxL0RdkSOBB1AB9ABdMDbdGDowIE/0IaAo+bM2qFW/x6vrPysyaFb54jd+UdO35ft298oADRySHhY5JgNDcprZf0a1YXzG96R3KR/4edEAPvBfvQZHvynIQH8A//AP5oPgb4l/xgUNOAeNRdUjpnzzHYhfERl5cnPjbgTKjvg4QBw9MNkAJvdtJc7OW+7k6O9ZLCM0G3sCDvCjrzn+hkU1K+jRfgIGfHMzG0qEjx1+vS/HXtCOsJVV47L3ilONTLj51xWyMMR6e7UT60B43w7AVf6F37YD/6D/6Af6CfXD/se0rejHvbv1/f7UmUAw2bOfFt15On33//CiE3By4oPNAoAc/ILThyuKK9R8fWMlJTgAD+/buqzsoryGnXfNXxoiG9SQvzAlgSOIRGj042oJ5tfe9fm1/Q3/Y1u2C9YcIADduDdftDnwQfvVjogQ1Onb1WPl/p7VfVVi7AIq7DqBhhbf1xe0jgDmJOfd+LlpctOqvJ/tXB+8CMJ4wfuyM87sXjp8pPq/724cEFwUsL4FgWAQ8LD0+sTta2vn7vt43z37AN+8MN/HQOu6Bd6gB6gB7deDwIDAjpIaRFyWOr0t9QtYXXVB9eMmFpWXvzujJZk8lz9TUj4qPVG1LPucS5M/WDqh/dM/WCqF/6Ov+Pv6ICX60CA/wPt1U6UcvATU7UA8MzZc9dcDcr05x0tLfVoADgkLGy9EfWkDAhAAAIQgAAEIOBtBPx79myv4j4ZPHXKZtX4cx9/9KUREI6WHvRwADiSANCIjqIMCEAAAhCAAAS8jkDP++6/S1vI1XfihEz15sKF818ZQWFLZsa4QP+AbkaU5VxG1Znqi1OnJRd6omzKhAAEIAABCEAAAmYn0L17j7ZaANg7KUELAGtqar5Sy4JtuoXNrhzHxkR3+/GM1EFGB4Eq+Etbv+H4zt27Ljo6x5X6uds+zq9f+A5/9/0Fe8Ke0DM7AfQEPUEPb40e+vr6tvVRO4EEjIvLUIsqPqm59DWLK3R7IXv5JFEWydTueYwdsGiARQMsGkAH0AET6UCXzl3vVPGe9IuJ3qjuvq5cuXzd7GlP2gcBCEAAAhCAAAS8mUCnTp3baFn3e8eM2iCkRXz+6Wf/5QmhgieE8oRQ735CKP1P//OkaK4D6ICpdaBjx3vu0FYBdx8VlqYiwS+uXr3hzRExbYcABCAAAQhAAAJmJ3B3hw4+2k4gXUKHpAn5PfGfL6/dYJDfRIP8TOJjEh+TepnUiw6gA+gAOuCkA+3uutNHxXuy09DBf1GR4NfXr1vJ/JP5J/Nv6sw/e8GyFy4zfZjpgw54uQ7c0aaN2ghEyPbB/depPXpv2G7YLEL+f2dem4oLdfGi49j51ZEv5PuG3OCH/eA/9Ysm0Qf0QX9dQR/RR/Tx29ZHm7RIi0UK2aH/Q2vNPt5N+yAAAQhAAAIQgAAE6gnIdg/1XQMQCEAAAhCAAAQgAAHvISDb9e1DAOg9/U1LIQABCEAAAhCAgJBt+/T+MxwgAAEIQAACEIAABLyHgGzbO5AA0Hv6m5ZCAAIQgAAEIAAB8T/JuZT4YTzGSwAAAABJRU5ErkJggg==",HBe=Object.freeze(Object.defineProperty({__proto__:null,default:zBe},Symbol.toStringTag,{value:"Module"})),GBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAGCAYAAACW9l3DAAAAAXNSR0IArs4c6QAAAMJJREFUOE/tlDtOQ1EQQ+358EiapGNlrJKV0YGQEsLMXCMoKRASSDSp3PrIH0KyeyCe8ZgH3EXgJRsWfr7k7PZhl8rYGF1MT8ZUp5FBMAUGOWlgDJgGxJqV4EqDh5yBWSn34FqJpaTBBLaAotT4UKgFK5iKg5Zbrel295JUq9UWXoJqSe3wUqr6os7tpur11HO71Yap89P06XisA1APQPM7wNzt4+0LIKtz/QGgAZ9mASti/gfwmuAvKnpN8LrBn53MO2uXQCV/xQgCAAAAAElFTkSuQmCC",UBe=Object.freeze(Object.defineProperty({__proto__:null,default:GBe},Symbol.toStringTag,{value:"Module"})),$Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAUCAYAAAD7s6+GAAAAAXNSR0IArs4c6QAAAb1JREFUSEtjZICCpisXani5uHJg/MFA//j5c0alpm4DyC2MIKLm/MlqFjaO9JPPn37+8e/vv8HgSA4mZiZzSWlelr9/59ToGTUxVp45UcHIwpJ+5vnTTz///Pk/GBwJcwM7CwujiaQ0H/v//3MYGy6cuX/44f33g82RyI61lVcUZKw+ffTOgbu33w2mkER3i4OyqhBj2dEDNw7fuTOoHWqroiLEWLh3x9Wjd+8OaodaKysLMWZt33TxxJ077wdz1FuoqAgypq5fdfbU3bsfBrNDzZSVBRhjly06ef7+vY+D2aGGikr8jKFzZx69+uD+p8HsUG0FRT7GgKn9B248fPSFgQFU1oMqqsFHa8jL8zC6d7Xvvvv48dfBHKLKsrLcjPa1ldsfPn/xbTA7VF5SgovRtCh/44vXr34OZodKiIqxM+okJ6x98/79r8HsUBFBQTZGpZCg5V+/f/v7/9+gaN1hhhcTEwMPJxczo5iLYxDDfwb/v38HVxMP5mJmZhZGZkbmjeCGM6+5iT/Tfwa/wRj9/xgZNn0+eQbiUBDg0tb2bW5tqkd2bG11zTl6Or65tcUI1f66xm9Xr24GiQEAZ+iyAFVuLbkAAAAASUVORK5CYII=",WBe=Object.freeze(Object.defineProperty({__proto__:null,default:$Be},Symbol.toStringTag,{value:"Module"})),YBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAUCAYAAAD7s6+GAAAAAXNSR0IArs4c6QAAAbZJREFUSEtjZICC6jWrcni4uVJg/MFA//37b0GNj98EkFsYQUTFiiVZf/79j9t68MDTr9++/R0MjuTm4mL2dnCQ5mbnXNYYFDKJsXjR/Iw/DP9jdxw8+Pzbt++DwpGwgOLi4mT2sLeX5OHgWs5YvmzJiXU7dz3+9mNwORLuWA5O5iB3N1nGwoXzjq7cuvnRYIhuXG4I9/aVY8yaNf3Quu3bnw5mhwZ5ekozpkyeeGDznt2D2qG+Lq7SjHG9XXt27N//cjCHqIejozhjRFvLzn2HD70ezA51srMTZQxsqN52+NiJt4PZobZWFsKMXmWlm0+dO/N+MDvUzMhEkNE5L3vDhYuXPw5mhxrq6/IzWqckr71+89rnwexQTXUtXkbTuOiVt+/e/TaYHaqqrMzFqB0UuPzJ0yffB7NDZaRlOBmVvNwWv3315tdgdqiwmAgbo5Sd9YLPn7/8YWD4P0jdysjAy8vDwihgaOj3n+G/79/fvwelQ5lZWRkYmRk3gxvOXNoavgwMjL6D0qUM/zd/u3oD4lCwY1VVfZo62xqQHVtTUXWWno5v6WgzRravuryq4eft21tAYgCZXpX7qC0NcgAAAABJRU5ErkJggg==",jBe=Object.freeze(Object.defineProperty({__proto__:null,default:YBe},Symbol.toStringTag,{value:"Module"})),KBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAACQCAYAAAAr8xoWAAAAAXNSR0IArs4c6QAAAHRJREFUSEtjZICCu///5oOYyozME0E0I4iACk6AqikASTKiCcIMKMAtgdMoJMunQy3PhFsO1VUPlWgclQAH193/f0eDZDQxQLLOaGJQZmQeTQyjiWG0TBzNBoiWzGgFOVomjpaJo2XiUCkTMTs/dOx5oXT7ABrDRc+F1LeoAAAAAElFTkSuQmCC",XBe=Object.freeze(Object.defineProperty({__proto__:null,default:KBe},Symbol.toStringTag,{value:"Module"})),ZBe="/assets/system-box-70ac2720.png",qBe=Object.freeze(Object.defineProperty({__proto__:null,default:ZBe},Symbol.toStringTag,{value:"Module"})),QBe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAABQCAYAAAD4K0AmAAAAAXNSR0IArs4c6QAABU1JREFUeF7tnW1rVEcUx/8zO/vokq+j0AdIaME0+EJ8ISJCK36FElqKi5R+gX1dbEFEfCEiIUZpTTA1xCD4ov0mEvfpzp0tZ+69uzfSwqUcz17oWTZkA8P5D/9fzpwzyWXGfP/X2+F8niJ4D6QBCHPEVwjZd/q4+KQfJBywZRGb/2QN0LCwzsGYBsx3f74Z/nZygvk0gU8SIPUIPsU8gpvHt75W4IAhTQNjCVYDaDi4ZhOm3cSX58/DbL89Hv7++jX8eIyQJEiTFCH1QEizVCtl3gqm//+VpEyjZLMN2IZDo9mAbTbhul18ceECzPabo+GzV0cI4zHSJEFIpghpCviAOZHTdXI1vzyW8s0CzsI2CFobjWYTttvFxU8/gdk+eTV89schkvEIYTqNWTdPPALVukW2KT1ZekVds7DWwDRdzDbbbqPZ7eHiZ59n4J4eHCCZjBGmE8ynMwQ/RwgemJeaFU09IXalZsQQOAfrDEy7BdvuoNnp4qv1dZjt48Ph7sEB/GSEMJ5my2XsMFMEyjhNNiFgH8hQiaM6R8ukoxpHy2QbrtPD1hLcPvxojHSaNSiBlkqfNydKbjXgqL7R21F9y5bKRrsL1+tia30jz7j9ffj375FOp9mWIGZdbCnjpHVHIMsu7gTii7YCFqBuMoJrw507h62NDZhvjw+HeyVwWcYtwS2gUb3T18d3wGQ1LoOXgYuNSQnc5j+Do86S/pKSZVwEp9A+PrCygrEfgMu3A3nGKThZHNXVFFx1r2o1UsHVCkf1ySi46l7VaqSCqxWO6pNRcNW9qtVIBVcrHNUno+Cqe1WrkQquVjiqT0bBVfeqViMVXK1wVJ+MgqvuVa1GKrha4ag+GQVX3atajVRwtcJRfTJVwP2w+2Rw9/59zN69gx9NEOjZkxk9ukDPVobsf+D6bGV10zlG0kOwFCc+DOtgWw6204PrddBaW8PN69dhFByH08wxFByzoVLhFJyU08w6Co7ZUKlwCk7KaWYdBcdsqFQ4BSflNLOOgmM2VCqcgpNymllHwTEbKhVOwUk5zayj4JgNlQqn4KScZtZRcMyGSoVTcFJOM+soOGZDpcIpOCmnmXUUHLOhUuEUnJTTzDoKjtlQqXAKTsppZh0Fx2yoVDgFJ+U0s46CYzZUKpyCk3KaWUfBMRsqFU7BSTnNrKPgmA2VCqfgpJxm1lFwzIZKhVNwUk4z6yg4ZkOlwik4KaeZdRQcs6FS4RSclNPMOgqO2VCpcApOymlmHQXHbKhUOAUn5TSzjoJjNlQqnIKTcppZR8ExGyoVTsFJOc2s89/ATRBmdPlf6Swvmpee58VM51/C5bcQnz3LqwXb6Zw9y+v27pPBz/EQtlP40Qh+MgFK4CIzmSmrSu7A4jppyjzngFYLLoLrobXWxy06hC2Ce/AgPz1vhDChjFuenqeZtqLfp3grcfn0vALcGm5du7YE50+XGUfg4OmCW7pqU/NtJegIGsHLjz0sMs71+zm4vZ3B3YcP41IZRqfwk6y+FTVObyaWxra8kXiRcc7BdVqwvX5cKm9evQpze29n8OujR5jlGXdmqVzcA65ZJ4svv7w93thYHDSaL5X9Pr6+cgXmzvPdwS+PH8OfZo2JnxXNCZ0OW76VWOHJwCsyLl60md2RSs1Jq5M1KP0evrl8GebOi+eDezs7i47SU0dJNS4UNU77ShlgZZX8RuLYoGQZ50qd5Y1Ll2B+fPlicG9vL3aTlHFFfYs1Tvdv8swKxWI/R0tl/kUZR/u5G5ubMD8dvRwsmhHvkRZdZKmb1EVSlt9iH0eyOcBG0WHmEP8G7W+uqlKk/2sAAAAASUVORK5CYII=",JBe=Object.freeze(Object.defineProperty({__proto__:null,default:QBe},Symbol.toStringTag,{value:"Module"})),e5e="/assets/title-c2baf93d.png",t5e=Object.freeze(Object.defineProperty({__proto__:null,default:e5e},Symbol.toStringTag,{value:"Module"})),r5e=Object.assign({"../assets/images/air-conditioning/area.png":VNe,"../assets/images/air-conditioning/close-btn.png":HNe,"../assets/images/air-conditioning/default-system-num.png":UNe,"../assets/images/air-conditioning/dialog-item-bg.png":WNe,"../assets/images/air-conditioning/electricity.png":jNe,"../assets/images/air-conditioning/electricityBg.png":XNe,"../assets/images/air-conditioning/fault.png":qNe,"../assets/images/air-conditioning/reminder-bg.png":JNe,"../assets/images/air-conditioning/stop-system-num.png":t3e,"../assets/images/air-conditioning/system-border.png":n3e,"../assets/images/air-conditioning/system-total.png":i3e,"../assets/images/air-conditioning/table-item.png":s3e,"../assets/images/air-tab-select.png":u3e,"../assets/images/air-tab.png":f3e,"../assets/images/bg.png":h3e,"../assets/images/box-bg.png":p3e,"../assets/images/carbonEmission/carbonEmission StatisticsReport.png":m3e,"../assets/images/carbonEmission/carbonEmissionReduction.png":_3e,"../assets/images/carbonEmission/carbonNeutralityBg.png":w3e,"../assets/images/carbonEmission/carbonOffsettingAmount.png":x3e,"../assets/images/carbonEmission/totalEmissions.png":T3e,"../assets/images/drainage/drainage-item-bg.png":E3e,"../assets/images/drainage/state0.png":D3e,"../assets/images/drainage/state1.png":L3e,"../assets/images/drainage/state2.png":R3e,"../assets/images/drainage/下.png":k3e,"../assets/images/drainage/序号.png":B3e,"../assets/images/drainage/短虚线.png":V3e,"../assets/images/drainage/运行状态内容.png":H3e,"../assets/images/drainage/运行状态标题.png":U3e,"../assets/images/drainage/长虚线.png":W3e,"../assets/images/energyMonitoring/loadClassification.png":j3e,"../assets/images/floor-default.png":X3e,"../assets/images/floor-select.png":q3e,"../assets/images/lighting/dialog-close.png":J3e,"../assets/images/lighting/dialog.png":t4e,"../assets/images/lighting/lightTotal.png":n4e,"../assets/images/lighting/lightingNum.png":i4e,"../assets/images/lighting/noLightNum.png":s4e,"../assets/images/lighting/offlineNum.png":u4e,"../assets/images/lighting/state0.png":f4e,"../assets/images/lighting/state1.png":h4e,"../assets/images/lighting/state2.png":p4e,"../assets/images/mask/bottom.png":m4e,"../assets/images/mask/bottom1.png":_4e,"../assets/images/mask/left.png":w4e,"../assets/images/mask/left1.png":x4e,"../assets/images/mask/right.png":T4e,"../assets/images/mask/right1.png":E4e,"../assets/images/mask/top.png":D4e,"../assets/images/mask/top1.png":L4e,"../assets/images/menu/air-conditioning-select.png":R4e,"../assets/images/menu/air-conditioning.png":k4e,"../assets/images/menu/carbon-select.png":B4e,"../assets/images/menu/carbon.png":V4e,"../assets/images/menu/drainage-select.png":H4e,"../assets/images/menu/drainage.png":U4e,"../assets/images/menu/energy-efficiency-select.png":W4e,"../assets/images/menu/energy-efficiency.png":j4e,"../assets/images/menu/energy-select.png":X4e,"../assets/images/menu/energy.png":q4e,"../assets/images/menu/lighting-select.png":J4e,"../assets/images/menu/lighting.png":tBe,"../assets/images/menu/overview-select.png":nBe,"../assets/images/menu/overview.png":iBe,"../assets/images/menu/screen-select.png":sBe,"../assets/images/menu/screen.png":uBe,"../assets/images/overview/E.png":fBe,"../assets/images/overview/WL.png":hBe,"../assets/images/overview/air.png":pBe,"../assets/images/overview/alarm.png":mBe,"../assets/images/overview/illuminance.png":_Be,"../assets/images/overview/nextMonth.png":kde,"../assets/images/overview/nextYear.png":Ode,"../assets/images/overview/prevMonth.png":Ide,"../assets/images/overview/prevYear.png":Rde,"../assets/images/overview/rain-snow.png":wBe,"../assets/images/overview/rain.png":xBe,"../assets/images/overview/returningToThisMonth.png":TBe,"../assets/images/overview/room-num.png":EBe,"../assets/images/overview/runTime.png":DBe,"../assets/images/overview/thisMonth.png":LBe,"../assets/images/overview/thisMonthAc.png":RBe,"../assets/images/overview/wind-speed.png":kBe,"../assets/images/overview/wind.png":BBe,"../assets/images/page-big-box.png":VBe,"../assets/images/picker.png":HBe,"../assets/images/rank-bg.png":UBe,"../assets/images/small-icon-select.png":WBe,"../assets/images/small-icon.png":jBe,"../assets/images/split.png":XBe,"../assets/images/system-box.png":qBe,"../assets/images/system-value-bg.png":JBe,"../assets/images/title.png":t5e}),MH={...r5e},jr={};for(const e in MH){let t=e.split("/").slice(-1)[0].split(".")[0].replace(/-/g,"");jr[t]=MH[e].default}const rc=e=>(jl("data-v-610a4ebd"),e=e(),Kl(),e),n5e={class:"page m100"},a5e={class:"page-left-box"},i5e={class:"title"},o5e=rc(()=>V("span",null,"用电量",-1)),s5e=rc(()=>V("div",{class:"margin10 box-bg",id:"power"},null,-1)),l5e=rc(()=>V("div",{class:"title margin10"},[V("span",null,"能耗日历"),V("p",null,[V("span",null,"单位:kgce")])],-1)),u5e={class:"margin10 box-bg"},c5e={class:"title margin10"},f5e=rc(()=>V("span",null,"碳排放",-1)),d5e=rc(()=>V("div",{class:"margin10 box-bg",id:"carbonEmission"},null,-1)),h5e={class:"page-right-box"},v5e=rc(()=>V("div",{class:"title"},[V("span",null,"实时负荷")],-1)),p5e={class:"margin10 box-bg"},g5e={class:"real-time-load"},m5e={class:"name"},y5e={class:"value",style:{"font-family":"D-DIN-Bold"}},_5e={class:"unit"},b5e=rc(()=>V("div",{class:"title margin10"},[V("span",null,"气象站")],-1)),w5e={class:"margin10 box-bg"},S5e={class:"weather-station"},x5e={key:0,class:"wea-value",style:{"font-family":"D-DIN-Bold","font-size":"1.625rem"}},A5e={key:1,class:"wea-value",style:{"font-family":"D-DIN-Bold","font-size":"1.125rem"}},T5e={key:2,class:"unit"},C5e=rc(()=>V("div",{class:"title margin10"},[V("span",null,"系统用电排名")],-1)),E5e=rc(()=>V("div",{class:"margin10 box-bg",id:"rank"},null,-1)),M5e={__name:"index",emits:["getHeart"],setup(e,{emit:t}){const r=t,n=G([{pic:jr.roomnum,name:"配电室数量",value:8,unit:"个"},{pic:jr.WL,name:"实时负荷",value:1465.2,unit:"kW"},{pic:jr.E,name:"今日电量",value:146,unit:"kWh"}]),a=G([{pic:jr.rain,name:"雨量",value:100},{pic:jr.rainsnow,name:"雨雪",value:"实际取值"},{pic:jr.wind,name:"风向",value:"东南风"},{pic:jr.illuminance,name:"光照度",value:101,unit:"万Lux"},{pic:jr.windspeed,name:"风速",value:"东南风3级",unit:"m/s"},{pic:jr.air,name:"空气质量",value:"优",unit:"ug/m³"}]),i=G(["北","东北","东","东南","南","西南","西","西北"]);G([]),xt(()=>{h(),v(),p(),g(),m()});const o=G("month"),s=y=>{o.value=y.srcElement.className,h()},l=G("month"),u=y=>{l.value=y.srcElement.className,m()},c=y=>{let _=document.getElementById("power");_.removeAttribute("_echarts_instance_");let w;w=$n(_);const x={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:y.map(S=>S.time)}],yAxis:[{type:"value",name:"单位:kWh",nameTextStyle:{color:"#DDFFFD",padding:[0,15,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.20)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(S){return S>=1e3?S/1e4+"万":S>=1e7?S/1e8+"亿":S}},axisTick:{show:!1}}],series:[{name:"用电量",type:"line",smooth:!0,symbol:"circle",showSymbol:!0,lineStyle:{normal:{color:"#5BFAF1"}},itemStyle:{normal:{color:"#5BFAF1"}},areaStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 0.40)"},{offset:1,color:"rgba(91, 250, 241, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20}},data:y.map(S=>S.EH)}]};w.setOption(x),window.addEventListener("resize",function(){w.resize()})},f=y=>{let _=0;y.forEach(T=>{_+=T.EH});let w=document.getElementById("rank");w.removeAttribute("_echarts_instance_");let x;x=$n(w);let S={grid:{left:"5%",right:"5%",bottom:"-10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(T){return T[0].name+"<br/><span style='display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgba(36,207,233,0.9)'></span>"+T[0].seriesName+" : "+Number(T[0].value).toLocaleString()+" kWh<br/>"}},xAxis:{show:!1,type:"value",max:_},yAxis:[{type:"category",inverse:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,show:!0,textStyle:{color:"#fff",fontSize:"14"}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},data:y.map(T=>T.name)},{type:"category",inverse:!0,axisTick:"none",axisLine:"none",show:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,textStyle:{},formatter:function(T){return"{a|"+T+"}{b|kWh}"},rich:{a:{fontSize:"16",color:"rgba(0, 255, 240, 1)",padding:[0,6,0,0]},b:{color:"#fff",fontSize:"12"}}},data:y.map(T=>T.EH)}],series:[{name:"用电",type:"bar",zlevel:1,itemStyle:{color:new kr(0,0,1,0,[{offset:0,color:"rgba(29, 169, 153, 1)"},{offset:1,color:"rgba(223, 243, 240, 1)"}])},barWidth:8,data:y.map(T=>T.EH)},{name:"背景",type:"bar",barWidth:10,barGap:"-115%",data:[_,_,_,_,_],itemStyle:{borderColor:"rgba(4, 24, 44, 1)",borderWidth:2,color:"rgba(5, 33, 31, 0.32)"}}]};x.setOption(S),window.addEventListener("resize",function(){x.resize()})};function d(y){const _=eo({shape:{x:0,y:0},buildPath:function(D,P){const L=P.xAxisPoint,I=[P.x-7,P.y],O=[P.x+7,P.y],R=[L[0]+7,L[1]],B=[L[0]-7,L[1]];D.moveTo(I[0],I[1]).lineTo(O[0],O[1]).lineTo(R[0],R[1]).lineTo(B[0],B[1]).closePath(),D.stroke()}}),w=eo({shape:{x:0,y:0},buildPath:function(D,P){const L=P.xAxisPoint,I=[P.x+7,P.y],O=[L[0]+7,L[1]],R=[L[0]+7+7,L[1]-5],B=[P.x+7+7,P.y-5];D.moveTo(I[0],I[1]).lineTo(O[0],O[1]).lineTo(R[0],R[1]).lineTo(B[0],B[1]).closePath(),D.stroke()}}),x=eo({shape:{x:0,y:0},buildPath:function(D,P){const L=[P.x-7,P.y],I=[P.x+8,P.y],O=[P.x+15,P.y-5],R=[P.x-2,P.y-5];D.moveTo(L[0],L[1]).lineTo(I[0],I[1]).lineTo(O[0],O[1]).lineTo(R[0],R[1]).closePath(),D.stroke()}});zn("CubeLeft",_),zn("CubeRight",w),zn("CubeTop",x);let S=y.map(D=>D.time),T=y.map(D=>D.CarbonEmission),A=[["rgba(0, 193, 113, 1)"],["rgba(0, 255, 140, 1)","rgba(0, 255, 140,0)"],["rgba(0, 255, 140, 1)","rgba(0, 255, 140,0)"]],C=document.getElementById("carbonEmission");C.removeAttribute("_echarts_instance_");let M;M=$n(C);const E={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(D,P,L){const I=D[1];return I.name+" : "+I.value}},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:S,axisLine:{show:!0,lineStyle:{color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:12,interval:0}},yAxis:{type:"value",name:"单位:tCO₂",nameTextStyle:{color:"#DDFFFD",padding:[0,5,0,0]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.20)"}},axisTick:{show:!1},axisLabel:{fontSize:12,color:"#DDFFFD",formatter:function(D){return D>=1e3?D/1e4+"万":D>=1e7?D/1e8+"亿":D}}},series:[{type:"custom",renderItem:(D,P)=>{const L=P.coord([P.value(0),P.value(1)]);return{type:"group",children:[{type:"CubeLeft",shape:{api:P,xValue:P.value(0),yValue:P.value(1),x:L[0],y:L[1],xAxisPoint:P.coord([P.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:A[1][0]},{offset:1,color:A[1][1]}])}},{type:"CubeRight",shape:{api:P,xValue:P.value(0),yValue:P.value(1),x:L[0],y:L[1],xAxisPoint:P.coord([P.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:A[2][0]},{offset:1,color:A[2][1]}])}},{type:"CubeTop",shape:{api:P,xValue:P.value(0),yValue:P.value(1),x:L[0],y:L[1],xAxisPoint:P.coord([P.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:A[0][0]},{offset:1,color:A[0][0]}])}}]}},data:T},{type:"bar",label:{normal:{show:!1,position:"top",formatter:D=>D.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:T}]};M.setOption(E),window.addEventListener("resize",function(){M.resize()})}const h=()=>{let y={date:o.value==="year"?"年":"月"};eve(y).then(_=>{c(_.data.slice(-10))})},v=()=>{tve().then(y=>{n.value.forEach(_=>{_.name==="配电室数量"?_.value=y.data[0].Amount:_.name==="实时负荷"?_.value=y.data[0].P:_.name==="今日电量"&&(_.value=y.data[0].EH)})})},p=()=>{ave().then(y=>{y.data.forEach(_=>{_.name==="空气温度"&&r("getHeart",_.value)}),a.value.forEach(_=>{y.data.forEach(w=>{w.name.indexOf(_.name)!==-1&&(w.name==="光照度"?_.value=(w.value/1e4).toFixed(2):_.value=w.value)})})})},g=()=>{ive().then(y=>{f(y.data)})},m=()=>{let y={date:l.value==="month"?"月":"年"};nve(y).then(_=>{d(_.data)})};return(y,_)=>(N(),U("div",n5e,[V("div",a5e,[V("div",i5e,[o5e,V("p",null,[V("span",{class:H(["year",o.value==="year"?"selectYear":""]),onClick:s},"年",2),V("span",{class:H(["month",o.value==="month"?"selectMonth":""]),onClick:s},"月",2)])]),s5e,l5e,V("div",u5e,[J(uve)]),V("div",c5e,[f5e,V("p",null,[V("span",{class:H(["year",l.value==="year"?"selectYear":""]),onClick:u},"年",2),V("span",{class:H(["month",l.value==="month"?"selectMonth":""]),onClick:u},"月",2)])]),d5e]),V("div",h5e,[v5e,V("div",p5e,[V("ul",g5e,[(N(!0),U(Be,null,ht(n.value,(w,x)=>(N(),U("li",{style:Xe("background-image:url("+w.pic+")")},[V("span",m5e,me(w.name),1),V("p",null,[V("span",y5e,me(w.value),1),V("span",_5e,me(w.unit),1)])],4))),256))])]),b5e,V("div",w5e,[V("ul",S5e,[(N(!0),U(Be,null,ht(a.value,(w,x)=>(N(),U("li",null,[V("p",{class:"img",style:Xe("background-image:url("+w.pic+")")},[V("span",null,me(w.name),1)],4),V("p",null,[w.name!=="风向"?(N(),U("span",x5e,me(w.value),1)):(N(),U("span",A5e,me(i.value[x]),1)),w.unit?(N(),U("span",T5e,me(w.unit),1)):ce("",!0)])]))),256))])]),C5e,E5e])]))}},DH=al(M5e,[["__scopeId","data-v-610a4ebd"]]);function D5e(e){return ir({url:"/api/GetTotalEnergy",method:"get",params:e})}function P5e(e){return ir({url:"/api/GetEnergyIndexing",method:"get",params:e})}function L5e(e){return ir({url:"/api/GetEnergyFlow",method:"get",params:e})}function I5e(e){return ir({url:"/api/GetSystemEnergy",method:"get",params:e})}function R5e(e){return ir({url:"/api/GetMultiRate",method:"get",params:e})}function O5e(e){return ir({url:"/api/GetElectricityRate",method:"get",params:e})}Dt(gJ);const k5e='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',N5e=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,PH=e=>Array.from(e.querySelectorAll(k5e)).filter(t=>B5e(t)&&N5e(t)),B5e=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},fS=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const a=document.createEvent(n);return a.initEvent(t,...r),e.dispatchEvent(a),e},BJ=e=>!e.getAttribute("aria-owns"),FJ=(e,t,r)=>{const{parentNode:n}=e;if(!n)return null;const a=n.querySelectorAll(r),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},dS=e=>{e&&(e.focus(),!BJ(e)&&e.click())},Mn=(e,t,{checkForDefaultPrevented:r=!0}={})=>a=>{const i=e==null?void 0:e(a);if(r===!1||!i)return t==null?void 0:t(a)},LH=e=>t=>t.pointerType==="mouse"?e(t):void 0;var F5e=Object.defineProperty,V5e=Object.defineProperties,z5e=Object.getOwnPropertyDescriptors,IH=Object.getOwnPropertySymbols,H5e=Object.prototype.hasOwnProperty,G5e=Object.prototype.propertyIsEnumerable,RH=(e,t,r)=>t in e?F5e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U5e=(e,t)=>{for(var r in t||(t={}))H5e.call(t,r)&&RH(e,r,t[r]);if(IH)for(var r of IH(t))G5e.call(t,r)&&RH(e,r,t[r]);return e},$5e=(e,t)=>V5e(e,z5e(t));function OH(e,t){var r;const n=yr();return xo(()=>{n.value=e()},$5e(U5e({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),Rg(n)}var kH;const ur=typeof window<"u",W5e=e=>typeof e<"u",Y5e=e=>typeof e=="function",j5e=e=>typeof e=="string",og=()=>{},VJ=ur&&((kH=window==null?void 0:window.navigator)==null?void 0:kH.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Af(e){return typeof e=="function"?e():b(e)}function zJ(e,t){function r(...n){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(a).catch(i)})}return r}function K5e(e,t={}){let r,n,a=og;const i=s=>{clearTimeout(s),a(),a=og};return s=>{const l=Af(e),u=Af(t.maxWait);return r&&i(r),l<=0||u!==void 0&&u<=0?(n&&(i(n),n=null),Promise.resolve(s())):new Promise((c,f)=>{a=t.rejectOnCancel?f:c,u&&!n&&(n=setTimeout(()=>{r&&i(r),n=null,c(s())},u)),r=setTimeout(()=>{n&&i(n),n=null,c(s())},l)})}}function X5e(e,t=!0,r=!0,n=!1){let a=0,i,o=!0,s=og,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=og)};return f=>{const d=Af(e),h=Date.now()-a,v=()=>l=f();return u(),d<=0?(a=Date.now(),v()):(h>d&&(r||!o)?(a=Date.now(),v()):t&&(l=new Promise((p,g)=>{s=n?g:p,i=setTimeout(()=>{a=Date.now(),o=!0,p(v()),u()},Math.max(0,d-h))})),!r&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function Z5e(e){return e}function x1(e){return QW()?(JW(e),!0):!1}function q5e(e,t=200,r={}){return zJ(K5e(t,r),e)}function Q5e(e,t=200,r={}){const n=G(e.value),a=q5e(()=>{n.value=e.value},t,r);return Ae(e,()=>a()),n}function HJ(e,t=200,r=!1,n=!0,a=!1){return zJ(X5e(t,r,n,a),e)}function IN(e,t=!0){It()?xt(e):t?e():qe(e)}function Wh(e,t,r={}){const{immediate:n=!0}=r,a=G(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},Af(t))}return n&&(a.value=!0,ur&&l()),x1(s),{isPending:Rg(a),start:l,stop:s}}function Ji(e){var t;const r=Af(e);return(t=r==null?void 0:r.$el)!=null?t:r}const lv=ur?window:void 0,J5e=ur?window.document:void 0;function dn(...e){let t,r,n,a;if(j5e(e[0])||Array.isArray(e[0])?([r,n,a]=e,t=lv):[t,r,n,a]=e,!t)return og;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);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=Ae(()=>[Ji(t),Af(a)],([c,f])=>{o(),c&&i.push(...r.flatMap(d=>n.map(h=>s(c,d,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return x1(u),u}let NH=!1;function RN(e,t,r={}){const{window:n=lv,ignore:a=[],capture:i=!0,detectIframe:o=!1}=r;if(!n)return;VJ&&!NH&&(NH=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",og)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=Ji(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[dn(n,"click",d=>{const h=Ji(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}t(d)}},{passive:!0,capture:i}),dn(n,"pointerdown",d=>{const h=Ji(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&dn(n,"blur",d=>{var h;const v=Ji(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function GJ(e,t=!1){const r=G(),n=()=>r.value=!!e();return n(),IN(n,t),r}function eFe(e){return JSON.parse(JSON.stringify(e))}const BH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},FH="__vueuse_ssr_handlers__";BH[FH]=BH[FH]||{};function tFe(e,t,{window:r=lv,initialValue:n=""}={}){const a=G(n),i=F(()=>{var o;return Ji(t)||((o=r==null?void 0:r.document)==null?void 0:o.documentElement)});return Ae([i,()=>Af(e)],([o,s])=>{var l;if(o&&r){const u=(l=r.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||n}},{immediate:!0}),Ae(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(Af(e),o)}),a}function rFe({document:e=J5e}={}){if(!e)return G("visible");const t=G(e.visibilityState);return dn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var VH=Object.getOwnPropertySymbols,nFe=Object.prototype.hasOwnProperty,aFe=Object.prototype.propertyIsEnumerable,iFe=(e,t)=>{var r={};for(var n in e)nFe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&VH)for(var n of VH(e))t.indexOf(n)<0&&aFe.call(e,n)&&(r[n]=e[n]);return r};function di(e,t,r={}){const n=r,{window:a=lv}=n,i=iFe(n,["window"]);let o;const s=GJ(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ae(()=>Ji(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return x1(c),{isSupported:s,stop:c}}function zH(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:a=!0,immediate:i=!0}=t,o=G(0),s=G(0),l=G(0),u=G(0),c=G(0),f=G(0),d=G(0),h=G(0);function v(){const p=Ji(e);if(!p){r&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=p.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,h.value=g.y}return di(e,v),Ae(()=>Ji(e),p=>!p&&v()),a&&dn("scroll",v,{capture:!0,passive:!0}),n&&dn("resize",v,{passive:!0}),IN(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var HH=Object.getOwnPropertySymbols,oFe=Object.prototype.hasOwnProperty,sFe=Object.prototype.propertyIsEnumerable,lFe=(e,t)=>{var r={};for(var n in e)oFe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&HH)for(var n of HH(e))t.indexOf(n)<0&&sFe.call(e,n)&&(r[n]=e[n]);return r};function uFe(e,t,r={}){const n=r,{window:a=lv}=n,i=lFe(n,["window"]);let o;const s=GJ(()=>a&&"MutationObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ae(()=>Ji(e),f=>{l(),s.value&&a&&f&&(o=new MutationObserver(t),o.observe(f,i))},{immediate:!0}),c=()=>{l(),u()};return x1(c),{isSupported:s,stop:c}}var GH;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(GH||(GH={}));var cFe=Object.defineProperty,UH=Object.getOwnPropertySymbols,fFe=Object.prototype.hasOwnProperty,dFe=Object.prototype.propertyIsEnumerable,$H=(e,t,r)=>t in e?cFe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hFe=(e,t)=>{for(var r in t||(t={}))fFe.call(t,r)&&$H(e,r,t[r]);if(UH)for(var r of UH(t))dFe.call(t,r)&&$H(e,r,t[r]);return e};const vFe={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]};hFe({linear:Z5e},vFe);function pFe(e,t,r,n={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=n,d=It(),h=r||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const p=m=>s?Y5e(s)?s(m):eFe(m):m,g=()=>W5e(e[t])?p(e[t]):f;if(l){const m=g(),y=G(m);return Ae(()=>e[t],_=>y.value=p(_)),Ae(y,_=>{(_!==e[t]||c)&&h(v,_)},{deep:c}),y}else return F({get(){return g()},set(m){h(v,m)}})}function gFe({window:e=lv}={}){if(!e)return G(!1);const t=G(e.document.hasFocus());return dn(e,"blur",()=>{t.value=!1}),dn(e,"focus",()=>{t.value=!0}),t}function mFe(e={}){const{window:t=lv,initialWidth:r=1/0,initialHeight:n=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=G(r),s=G(n),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),IN(l),dn("resize",l,{passive:!0}),a&&dn("orientationchange",l,{passive:!0}),{width:o,height:s}}const UJ=()=>ur&&/firefox/i.test(window.navigator.userAgent),yFe=(e,t)=>{if(!ur||!e||!t)return!1;const r=e.getBoundingClientRect();let n;return t instanceof Element?n=t.getBoundingClientRect():n={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},r.top<n.bottom&&r.bottom>n.top&&r.right>n.left&&r.left<n.right},WH=e=>{let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t},_Fe=(e,t)=>Math.abs(WH(e)-WH(t)),ON=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}};var bFe=typeof global=="object"&&global&&global.Object===Object&&global;const $J=bFe;var wFe=typeof self=="object"&&self&&self.Object===Object&&self,SFe=$J||wFe||Function("return this")();const ol=SFe;var xFe=ol.Symbol;const ls=xFe;var WJ=Object.prototype,AFe=WJ.hasOwnProperty,TFe=WJ.toString,qm=ls?ls.toStringTag:void 0;function CFe(e){var t=AFe.call(e,qm),r=e[qm];try{e[qm]=void 0;var n=!0}catch{}var a=TFe.call(e);return n&&(t?e[qm]=r:delete e[qm]),a}var EFe=Object.prototype,MFe=EFe.toString;function DFe(e){return MFe.call(e)}var PFe="[object Null]",LFe="[object Undefined]",YH=ls?ls.toStringTag:void 0;function uv(e){return e==null?e===void 0?LFe:PFe:YH&&YH in Object(e)?CFe(e):DFe(e)}function Gl(e){return e!=null&&typeof e=="object"}var IFe="[object Symbol]";function cT(e){return typeof e=="symbol"||Gl(e)&&uv(e)==IFe}function YJ(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var RFe=Array.isArray;const Oi=RFe;var OFe=1/0,jH=ls?ls.prototype:void 0,KH=jH?jH.toString:void 0;function jJ(e){if(typeof e=="string")return e;if(Oi(e))return YJ(e,jJ)+"";if(cT(e))return KH?KH.call(e):"";var t=e+"";return t=="0"&&1/e==-OFe?"-0":t}var kFe=/\s/;function NFe(e){for(var t=e.length;t--&&kFe.test(e.charAt(t)););return t}var BFe=/^\s+/;function FFe(e){return e&&e.slice(0,NFe(e)+1).replace(BFe,"")}function ki(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var XH=0/0,VFe=/^[-+]0x[0-9a-f]+$/i,zFe=/^0b[01]+$/i,HFe=/^0o[0-7]+$/i,GFe=parseInt;function UL(e){if(typeof e=="number")return e;if(cT(e))return XH;if(ki(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ki(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=FFe(e);var r=zFe.test(e);return r||HFe.test(e)?GFe(e.slice(2),r?2:8):VFe.test(e)?XH:+e}var ZH=1/0,UFe=17976931348623157e292;function $Fe(e){if(!e)return e===0?e:0;if(e=UL(e),e===ZH||e===-ZH){var t=e<0?-1:1;return t*UFe}return e===e?e:0}function WFe(e){var t=$Fe(e),r=t%1;return t===t?r?t-r:t:0}function kN(e){return e}var YFe="[object AsyncFunction]",jFe="[object Function]",KFe="[object GeneratorFunction]",XFe="[object Proxy]";function NN(e){if(!ki(e))return!1;var t=uv(e);return t==jFe||t==KFe||t==YFe||t==XFe}var ZFe=ol["__core-js_shared__"];const PM=ZFe;var qH=function(){var e=/[^.]+$/.exec(PM&&PM.keys&&PM.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qFe(e){return!!qH&&qH in e}var QFe=Function.prototype,JFe=QFe.toString;function cv(e){if(e!=null){try{return JFe.call(e)}catch{}try{return e+""}catch{}}return""}var eVe=/[\\^$.*+?()[\]{}|]/g,tVe=/^\[object .+?Constructor\]$/,rVe=Function.prototype,nVe=Object.prototype,aVe=rVe.toString,iVe=nVe.hasOwnProperty,oVe=RegExp("^"+aVe.call(iVe).replace(eVe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sVe(e){if(!ki(e)||qFe(e))return!1;var t=NN(e)?oVe:tVe;return t.test(cv(e))}function lVe(e,t){return e==null?void 0:e[t]}function fv(e,t){var r=lVe(e,t);return sVe(r)?r:void 0}var uVe=fv(ol,"WeakMap");const $L=uVe;var QH=Object.create,cVe=function(){function e(){}return function(t){if(!ki(t))return{};if(QH)return QH(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const fVe=cVe;function dVe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function hVe(){}function KJ(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var vVe=800,pVe=16,gVe=Date.now;function mVe(e){var t=0,r=0;return function(){var n=gVe(),a=pVe-(n-r);if(r=n,a>0){if(++t>=vVe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yVe(e){return function(){return e}}var _Ve=function(){try{var e=fv(Object,"defineProperty");return e({},"",{}),e}catch{}}();const i2=_Ve;var bVe=i2?function(e,t){return i2(e,"toString",{configurable:!0,enumerable:!1,value:yVe(t),writable:!0})}:kN;const wVe=bVe;var SVe=mVe(wVe);const XJ=SVe;function xVe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function ZJ(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function AVe(e){return e!==e}function TVe(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}function CVe(e,t,r){return t===t?TVe(e,t,r):ZJ(e,AVe,r)}function EVe(e,t){var r=e==null?0:e.length;return!!r&&CVe(e,t,0)>-1}var MVe=9007199254740991,DVe=/^(?:0|[1-9]\d*)$/;function fT(e,t){var r=typeof e;return t=t??MVe,!!t&&(r=="number"||r!="symbol"&&DVe.test(e))&&e>-1&&e%1==0&&e<t}function BN(e,t,r){t=="__proto__"&&i2?i2(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function A1(e,t){return e===t||e!==e&&t!==t}var PVe=Object.prototype,LVe=PVe.hasOwnProperty;function FN(e,t,r){var n=e[t];(!(LVe.call(e,t)&&A1(n,r))||r===void 0&&!(t in e))&&BN(e,t,r)}function T1(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?BN(r,s,l):FN(r,s,l)}return r}var JH=Math.max;function qJ(e,t,r){return t=JH(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=JH(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),dVe(e,this,s)}}function QJ(e,t){return XJ(qJ(e,t,kN),e+"")}var IVe=9007199254740991;function VN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=IVe}function am(e){return e!=null&&VN(e.length)&&!NN(e)}function RVe(e,t,r){if(!ki(r))return!1;var n=typeof t;return(n=="number"?am(r)&&fT(t,r.length):n=="string"&&t in r)?A1(r[t],e):!1}function OVe(e){return QJ(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&RVe(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var kVe=Object.prototype;function zN(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||kVe;return e===r}function NVe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var BVe="[object Arguments]";function eG(e){return Gl(e)&&uv(e)==BVe}var JJ=Object.prototype,FVe=JJ.hasOwnProperty,VVe=JJ.propertyIsEnumerable,zVe=eG(function(){return arguments}())?eG:function(e){return Gl(e)&&FVe.call(e,"callee")&&!VVe.call(e,"callee")};const l_=zVe;function HVe(){return!1}var eee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tG=eee&&typeof module=="object"&&module&&!module.nodeType&&module,GVe=tG&&tG.exports===eee,rG=GVe?ol.Buffer:void 0,UVe=rG?rG.isBuffer:void 0,$Ve=UVe||HVe;const u_=$Ve;var WVe="[object Arguments]",YVe="[object Array]",jVe="[object Boolean]",KVe="[object Date]",XVe="[object Error]",ZVe="[object Function]",qVe="[object Map]",QVe="[object Number]",JVe="[object Object]",eze="[object RegExp]",tze="[object Set]",rze="[object String]",nze="[object WeakMap]",aze="[object ArrayBuffer]",ize="[object DataView]",oze="[object Float32Array]",sze="[object Float64Array]",lze="[object Int8Array]",uze="[object Int16Array]",cze="[object Int32Array]",fze="[object Uint8Array]",dze="[object Uint8ClampedArray]",hze="[object Uint16Array]",vze="[object Uint32Array]",Ln={};Ln[oze]=Ln[sze]=Ln[lze]=Ln[uze]=Ln[cze]=Ln[fze]=Ln[dze]=Ln[hze]=Ln[vze]=!0;Ln[WVe]=Ln[YVe]=Ln[aze]=Ln[jVe]=Ln[ize]=Ln[KVe]=Ln[XVe]=Ln[ZVe]=Ln[qVe]=Ln[QVe]=Ln[JVe]=Ln[eze]=Ln[tze]=Ln[rze]=Ln[nze]=!1;function pze(e){return Gl(e)&&VN(e.length)&&!!Ln[uv(e)]}function HN(e){return function(t){return e(t)}}var tee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,r0=tee&&typeof module=="object"&&module&&!module.nodeType&&module,gze=r0&&r0.exports===tee,LM=gze&&$J.process,mze=function(){try{var e=r0&&r0.require&&r0.require("util").types;return e||LM&&LM.binding&&LM.binding("util")}catch{}}();const sg=mze;var nG=sg&&sg.isTypedArray,yze=nG?HN(nG):pze;const GN=yze;var _ze=Object.prototype,bze=_ze.hasOwnProperty;function ree(e,t){var r=Oi(e),n=!r&&l_(e),a=!r&&!n&&u_(e),i=!r&&!n&&!a&&GN(e),o=r||n||a||i,s=o?NVe(e.length,String):[],l=s.length;for(var u in e)(t||bze.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fT(u,l)))&&s.push(u);return s}function nee(e,t){return function(r){return e(t(r))}}var wze=nee(Object.keys,Object);const Sze=wze;var xze=Object.prototype,Aze=xze.hasOwnProperty;function Tze(e){if(!zN(e))return Sze(e);var t=[];for(var r in Object(e))Aze.call(e,r)&&r!="constructor"&&t.push(r);return t}function C1(e){return am(e)?ree(e):Tze(e)}function Cze(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Eze=Object.prototype,Mze=Eze.hasOwnProperty;function Dze(e){if(!ki(e))return Cze(e);var t=zN(e),r=[];for(var n in e)n=="constructor"&&(t||!Mze.call(e,n))||r.push(n);return r}function E1(e){return am(e)?ree(e,!0):Dze(e)}var Pze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lze=/^\w*$/;function UN(e,t){if(Oi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||cT(e)?!0:Lze.test(e)||!Pze.test(e)||t!=null&&e in Object(t)}var Ize=fv(Object,"create");const c_=Ize;function Rze(){this.__data__=c_?c_(null):{},this.size=0}function Oze(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kze="__lodash_hash_undefined__",Nze=Object.prototype,Bze=Nze.hasOwnProperty;function Fze(e){var t=this.__data__;if(c_){var r=t[e];return r===kze?void 0:r}return Bze.call(t,e)?t[e]:void 0}var Vze=Object.prototype,zze=Vze.hasOwnProperty;function Hze(e){var t=this.__data__;return c_?t[e]!==void 0:zze.call(t,e)}var Gze="__lodash_hash_undefined__";function Uze(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=c_&&t===void 0?Gze:t,this}function Yh(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yh.prototype.clear=Rze;Yh.prototype.delete=Oze;Yh.prototype.get=Fze;Yh.prototype.has=Hze;Yh.prototype.set=Uze;function $ze(){this.__data__=[],this.size=0}function dT(e,t){for(var r=e.length;r--;)if(A1(e[r][0],t))return r;return-1}var Wze=Array.prototype,Yze=Wze.splice;function jze(e){var t=this.__data__,r=dT(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Yze.call(t,r,1),--this.size,!0}function Kze(e){var t=this.__data__,r=dT(t,e);return r<0?void 0:t[r][1]}function Xze(e){return dT(this.__data__,e)>-1}function Zze(e,t){var r=this.__data__,n=dT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function nc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nc.prototype.clear=$ze;nc.prototype.delete=jze;nc.prototype.get=Kze;nc.prototype.has=Xze;nc.prototype.set=Zze;var qze=fv(ol,"Map");const f_=qze;function Qze(){this.size=0,this.__data__={hash:new Yh,map:new(f_||nc),string:new Yh}}function Jze(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hT(e,t){var r=e.__data__;return Jze(t)?r[typeof t=="string"?"string":"hash"]:r.map}function e6e(e){var t=hT(this,e).delete(e);return this.size-=t?1:0,t}function t6e(e){return hT(this,e).get(e)}function r6e(e){return hT(this,e).has(e)}function n6e(e,t){var r=hT(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ac(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ac.prototype.clear=Qze;ac.prototype.delete=e6e;ac.prototype.get=t6e;ac.prototype.has=r6e;ac.prototype.set=n6e;var a6e="Expected a function";function vT(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(a6e);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(vT.Cache||ac),r}vT.Cache=ac;var i6e=500;function o6e(e){var t=vT(e,function(n){return r.size===i6e&&r.clear(),n}),r=t.cache;return t}var s6e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l6e=/\\(\\)?/g,u6e=o6e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(s6e,function(r,n,a,i){t.push(a?i.replace(l6e,"$1"):n||r)}),t});const c6e=u6e;function f6e(e){return e==null?"":jJ(e)}function pT(e,t){return Oi(e)?e:UN(e,t)?[e]:c6e(f6e(e))}var d6e=1/0;function M1(e){if(typeof e=="string"||cT(e))return e;var t=e+"";return t=="0"&&1/e==-d6e?"-0":t}function $N(e,t){t=pT(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[M1(t[r++])];return r&&r==n?e:void 0}function gn(e,t,r){var n=e==null?void 0:$N(e,t);return n===void 0?r:n}function WN(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var aG=ls?ls.isConcatSpreadable:void 0;function h6e(e){return Oi(e)||l_(e)||!!(aG&&e&&e[aG])}function D1(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=h6e),a||(a=[]);++i<o;){var s=e[i];t>0&&r(s)?t>1?D1(s,t-1,r,n,a):WN(a,s):n||(a[a.length]=s)}return a}function aee(e){var t=e==null?0:e.length;return t?D1(e,1):[]}function v6e(e){return XJ(qJ(e,void 0,aee),e+"")}var p6e=nee(Object.getPrototypeOf,Object);const YN=p6e;var g6e="[object Object]",m6e=Function.prototype,y6e=Object.prototype,iee=m6e.toString,_6e=y6e.hasOwnProperty,b6e=iee.call(Object);function w6e(e){if(!Gl(e)||uv(e)!=g6e)return!1;var t=YN(e);if(t===null)return!0;var r=_6e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&iee.call(r)==b6e}function jh(){if(!arguments.length)return[];var e=arguments[0];return Oi(e)?e:[e]}function S6e(){this.__data__=new nc,this.size=0}function x6e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function A6e(e){return this.__data__.get(e)}function T6e(e){return this.__data__.has(e)}var C6e=200;function E6e(e,t){var r=this.__data__;if(r instanceof nc){var n=r.__data__;if(!f_||n.length<C6e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ac(n)}return r.set(e,t),this.size=r.size,this}function $s(e){var t=this.__data__=new nc(e);this.size=t.size}$s.prototype.clear=S6e;$s.prototype.delete=x6e;$s.prototype.get=A6e;$s.prototype.has=T6e;$s.prototype.set=E6e;function M6e(e,t){return e&&T1(t,C1(t),e)}function D6e(e,t){return e&&T1(t,E1(t),e)}var oee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iG=oee&&typeof module=="object"&&module&&!module.nodeType&&module,P6e=iG&&iG.exports===oee,oG=P6e?ol.Buffer:void 0,sG=oG?oG.allocUnsafe:void 0;function see(e,t){if(t)return e.slice();var r=e.length,n=sG?sG(r):new e.constructor(r);return e.copy(n),n}function L6e(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function lee(){return[]}var I6e=Object.prototype,R6e=I6e.propertyIsEnumerable,lG=Object.getOwnPropertySymbols,O6e=lG?function(e){return e==null?[]:(e=Object(e),L6e(lG(e),function(t){return R6e.call(e,t)}))}:lee;const jN=O6e;function k6e(e,t){return T1(e,jN(e),t)}var N6e=Object.getOwnPropertySymbols,B6e=N6e?function(e){for(var t=[];e;)WN(t,jN(e)),e=YN(e);return t}:lee;const uee=B6e;function F6e(e,t){return T1(e,uee(e),t)}function cee(e,t,r){var n=t(e);return Oi(e)?n:WN(n,r(e))}function WL(e){return cee(e,C1,jN)}function V6e(e){return cee(e,E1,uee)}var z6e=fv(ol,"DataView");const YL=z6e;var H6e=fv(ol,"Promise");const jL=H6e;var G6e=fv(ol,"Set");const kp=G6e;var uG="[object Map]",U6e="[object Object]",cG="[object Promise]",fG="[object Set]",dG="[object WeakMap]",hG="[object DataView]",$6e=cv(YL),W6e=cv(f_),Y6e=cv(jL),j6e=cv(kp),K6e=cv($L),Vd=uv;(YL&&Vd(new YL(new ArrayBuffer(1)))!=hG||f_&&Vd(new f_)!=uG||jL&&Vd(jL.resolve())!=cG||kp&&Vd(new kp)!=fG||$L&&Vd(new $L)!=dG)&&(Vd=function(e){var t=uv(e),r=t==U6e?e.constructor:void 0,n=r?cv(r):"";if(n)switch(n){case $6e:return hG;case W6e:return uG;case Y6e:return cG;case j6e:return fG;case K6e:return dG}return t});const d_=Vd;var X6e=Object.prototype,Z6e=X6e.hasOwnProperty;function q6e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Z6e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Q6e=ol.Uint8Array;const o2=Q6e;function KN(e){var t=new e.constructor(e.byteLength);return new o2(t).set(new o2(e)),t}function J6e(e,t){var r=t?KN(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var e8e=/\w*$/;function t8e(e){var t=new e.constructor(e.source,e8e.exec(e));return t.lastIndex=e.lastIndex,t}var vG=ls?ls.prototype:void 0,pG=vG?vG.valueOf:void 0;function r8e(e){return pG?Object(pG.call(e)):{}}function fee(e,t){var r=t?KN(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var n8e="[object Boolean]",a8e="[object Date]",i8e="[object Map]",o8e="[object Number]",s8e="[object RegExp]",l8e="[object Set]",u8e="[object String]",c8e="[object Symbol]",f8e="[object ArrayBuffer]",d8e="[object DataView]",h8e="[object Float32Array]",v8e="[object Float64Array]",p8e="[object Int8Array]",g8e="[object Int16Array]",m8e="[object Int32Array]",y8e="[object Uint8Array]",_8e="[object Uint8ClampedArray]",b8e="[object Uint16Array]",w8e="[object Uint32Array]";function S8e(e,t,r){var n=e.constructor;switch(t){case f8e:return KN(e);case n8e:case a8e:return new n(+e);case d8e:return J6e(e,r);case h8e:case v8e:case p8e:case g8e:case m8e:case y8e:case _8e:case b8e:case w8e:return fee(e,r);case i8e:return new n;case o8e:case u8e:return new n(e);case s8e:return t8e(e);case l8e:return new n;case c8e:return r8e(e)}}function dee(e){return typeof e.constructor=="function"&&!zN(e)?fVe(YN(e)):{}}var x8e="[object Map]";function A8e(e){return Gl(e)&&d_(e)==x8e}var gG=sg&&sg.isMap,T8e=gG?HN(gG):A8e;const C8e=T8e;var E8e="[object Set]";function M8e(e){return Gl(e)&&d_(e)==E8e}var mG=sg&&sg.isSet,D8e=mG?HN(mG):M8e;const P8e=D8e;var L8e=1,I8e=2,R8e=4,hee="[object Arguments]",O8e="[object Array]",k8e="[object Boolean]",N8e="[object Date]",B8e="[object Error]",vee="[object Function]",F8e="[object GeneratorFunction]",V8e="[object Map]",z8e="[object Number]",pee="[object Object]",H8e="[object RegExp]",G8e="[object Set]",U8e="[object String]",$8e="[object Symbol]",W8e="[object WeakMap]",Y8e="[object ArrayBuffer]",j8e="[object DataView]",K8e="[object Float32Array]",X8e="[object Float64Array]",Z8e="[object Int8Array]",q8e="[object Int16Array]",Q8e="[object Int32Array]",J8e="[object Uint8Array]",eHe="[object Uint8ClampedArray]",tHe="[object Uint16Array]",rHe="[object Uint32Array]",En={};En[hee]=En[O8e]=En[Y8e]=En[j8e]=En[k8e]=En[N8e]=En[K8e]=En[X8e]=En[Z8e]=En[q8e]=En[Q8e]=En[V8e]=En[z8e]=En[pee]=En[H8e]=En[G8e]=En[U8e]=En[$8e]=En[J8e]=En[eHe]=En[tHe]=En[rHe]=!0;En[B8e]=En[vee]=En[W8e]=!1;function n0(e,t,r,n,a,i){var o,s=t&L8e,l=t&I8e,u=t&R8e;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!ki(e))return e;var c=Oi(e);if(c){if(o=q6e(e),!s)return KJ(e,o)}else{var f=d_(e),d=f==vee||f==F8e;if(u_(e))return see(e,s);if(f==pee||f==hee||d&&!a){if(o=l||d?{}:dee(e),!s)return l?F6e(e,D6e(o,e)):k6e(e,M6e(o,e))}else{if(!En[f])return a?e:{};o=S8e(e,f,s)}}i||(i=new $s);var h=i.get(e);if(h)return h;i.set(e,o),P8e(e)?e.forEach(function(g){o.add(n0(g,t,r,g,e,i))}):C8e(e)&&e.forEach(function(g,m){o.set(m,n0(g,t,r,m,e,i))});var v=u?l?V6e:WL:l?E1:C1,p=c?void 0:v(e);return xVe(p||e,function(g,m){p&&(m=g,g=e[m]),FN(o,m,n0(g,t,r,m,e,i))}),o}var nHe=4;function yG(e){return n0(e,nHe)}var aHe=1,iHe=4;function s2(e){return n0(e,aHe|iHe)}var oHe="__lodash_hash_undefined__";function sHe(e){return this.__data__.set(e,oHe),this}function lHe(e){return this.__data__.has(e)}function h_(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ac;++t<r;)this.add(e[t])}h_.prototype.add=h_.prototype.push=sHe;h_.prototype.has=lHe;function uHe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function gee(e,t){return e.has(t)}var cHe=1,fHe=2;function mee(e,t,r,n,a,i){var o=r&cHe,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&fHe?new h_:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var v=e[f],p=t[f];if(n)var g=o?n(p,v,f,t,e,i):n(v,p,f,e,t,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!uHe(t,function(m,y){if(!gee(h,y)&&(v===m||a(v,m,r,n,i)))return h.push(y)})){d=!1;break}}else if(!(v===p||a(v,p,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function dHe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function XN(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var hHe=1,vHe=2,pHe="[object Boolean]",gHe="[object Date]",mHe="[object Error]",yHe="[object Map]",_He="[object Number]",bHe="[object RegExp]",wHe="[object Set]",SHe="[object String]",xHe="[object Symbol]",AHe="[object ArrayBuffer]",THe="[object DataView]",_G=ls?ls.prototype:void 0,IM=_G?_G.valueOf:void 0;function CHe(e,t,r,n,a,i,o){switch(r){case THe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case AHe:return!(e.byteLength!=t.byteLength||!i(new o2(e),new o2(t)));case pHe:case gHe:case _He:return A1(+e,+t);case mHe:return e.name==t.name&&e.message==t.message;case bHe:case SHe:return e==t+"";case yHe:var s=dHe;case wHe:var l=n&hHe;if(s||(s=XN),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=vHe,o.set(e,t);var c=mee(s(e),s(t),n,a,i,o);return o.delete(e),c;case xHe:if(IM)return IM.call(e)==IM.call(t)}return!1}var EHe=1,MHe=Object.prototype,DHe=MHe.hasOwnProperty;function PHe(e,t,r,n,a,i){var o=r&EHe,s=WL(e),l=s.length,u=WL(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:DHe.call(t,d)))return!1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var p=!0;i.set(e,t),i.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],y=t[d];if(n)var _=o?n(y,m,d,t,e,i):n(m,y,d,e,t,i);if(!(_===void 0?m===y||a(m,y,r,n,i):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(p=!1)}return i.delete(e),i.delete(t),p}var LHe=1,bG="[object Arguments]",wG="[object Array]",nw="[object Object]",IHe=Object.prototype,SG=IHe.hasOwnProperty;function RHe(e,t,r,n,a,i){var o=Oi(e),s=Oi(t),l=o?wG:d_(e),u=s?wG:d_(t);l=l==bG?nw:l,u=u==bG?nw:u;var c=l==nw,f=u==nw,d=l==u;if(d&&u_(e)){if(!u_(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new $s),o||GN(e)?mee(e,t,r,n,a,i):CHe(e,t,l,r,n,a,i);if(!(r&LHe)){var h=c&&SG.call(e,"__wrapped__"),v=f&&SG.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return i||(i=new $s),a(p,g,r,n,i)}}return d?(i||(i=new $s),PHe(e,t,r,n,a,i)):!1}function gT(e,t,r,n,a){return e===t?!0:e==null||t==null||!Gl(e)&&!Gl(t)?e!==e&&t!==t:RHe(e,t,r,n,gT,a)}var OHe=1,kHe=2;function NHe(e,t,r,n){var a=r.length,i=a,o=!n;if(e==null)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=r[a];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new $s;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?gT(c,u,OHe|kHe,n,f):d))return!1}}return!0}function yee(e){return e===e&&!ki(e)}function BHe(e){for(var t=C1(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,yee(a)]}return t}function _ee(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function FHe(e){var t=BHe(e);return t.length==1&&t[0][2]?_ee(t[0][0],t[0][1]):function(r){return r===e||NHe(r,e,t)}}function VHe(e,t){return e!=null&&t in Object(e)}function zHe(e,t,r){t=pT(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=M1(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&VN(a)&&fT(o,a)&&(Oi(e)||l_(e)))}function bee(e,t){return e!=null&&zHe(e,t,VHe)}var HHe=1,GHe=2;function UHe(e,t){return UN(e)&&yee(t)?_ee(M1(e),t):function(r){var n=gn(r,e);return n===void 0&&n===t?bee(r,e):gT(t,n,HHe|GHe)}}function $He(e){return function(t){return t==null?void 0:t[e]}}function WHe(e){return function(t){return $N(t,e)}}function YHe(e){return UN(e)?$He(M1(e)):WHe(e)}function wee(e){return typeof e=="function"?e:e==null?kN:typeof e=="object"?Oi(e)?UHe(e[0],e[1]):FHe(e):YHe(e)}function jHe(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(r(i[l],l,i)===!1)break}return t}}var KHe=jHe();const See=KHe;function XHe(e,t){return e&&See(e,t,C1)}function ZHe(e,t){return function(r,n){if(r==null)return r;if(!am(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&n(o[i],i,o)!==!1;);return r}}var qHe=ZHe(XHe);const QHe=qHe;var JHe=function(){return ol.Date.now()};const RM=JHe;var eGe="Expected a function",tGe=Math.max,rGe=Math.min;function Ni(e,t,r){var n,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(eGe);t=UL(t)||0,ki(r)&&(c=!!r.leading,f="maxWait"in r,i=f?tGe(UL(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(S){var T=n,A=a;return n=a=void 0,u=S,o=e.apply(A,T),o}function v(S){return u=S,s=setTimeout(m,t),c?h(S):o}function p(S){var T=S-l,A=S-u,C=t-T;return f?rGe(C,i-A):C}function g(S){var T=S-l,A=S-u;return l===void 0||T>=t||T<0||f&&A>=i}function m(){var S=RM();if(g(S))return y(S);s=setTimeout(m,p(S))}function y(S){return s=void 0,d&&n?h(S):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function w(){return s===void 0?o:y(RM())}function x(){var S=RM(),T=g(S);if(n=arguments,a=this,l=S,T){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return x.cancel=_,x.flush=w,x}function KL(e,t,r){(r!==void 0&&!A1(e[t],r)||r===void 0&&!(t in e))&&BN(e,t,r)}function xee(e){return Gl(e)&&am(e)}function XL(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function nGe(e){return T1(e,E1(e))}function aGe(e,t,r,n,a,i,o){var s=XL(e,r),l=XL(t,r),u=o.get(l);if(u){KL(e,r,u);return}var c=i?i(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=Oi(l),h=!d&&u_(l),v=!d&&!h&&GN(l);c=l,d||h||v?Oi(s)?c=s:xee(s)?c=KJ(s):h?(f=!1,c=see(l,!0)):v?(f=!1,c=fee(l,!0)):c=[]:w6e(l)||l_(l)?(c=s,l_(s)?c=nGe(s):(!ki(s)||NN(s))&&(c=dee(l))):f=!1}f&&(o.set(l,c),a(c,l,n,i,o),o.delete(l)),KL(e,r,c)}function Aee(e,t,r,n,a){e!==t&&See(t,function(i,o){if(a||(a=new $s),ki(i))aGe(e,t,o,r,Aee,n,a);else{var s=n?n(XL(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),KL(e,o,s)}},E1)}function iGe(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}var oGe=Math.max,sGe=Math.min;function lGe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=n-1;return r!==void 0&&(a=WFe(r),a=r<0?oGe(n+a,0):sGe(a,n-1)),ZJ(e,wee(t),a,!0)}function uGe(e,t){var r=-1,n=am(e)?Array(e.length):[];return QHe(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function cGe(e,t){var r=Oi(e)?YJ:uGe;return r(e,wee(t))}function fGe(e,t){return D1(cGe(e,t),1)}var dGe=1/0;function hGe(e){var t=e==null?0:e.length;return t?D1(e,dGe):[]}function l2(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var a=e[t];n[a[0]]=a[1]}return n}function to(e,t){return gT(e,t)}function Qn(e){return e==null}function Tee(e){return e===void 0}var vGe=OVe(function(e,t,r){Aee(e,t,r)});const Cee=vGe;function Eee(e,t,r,n){if(!ki(e))return e;t=pT(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=M1(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=n?n(c,l,s):void 0,u===void 0&&(u=ki(c)?c:fT(t[a+1])?[]:{})}FN(s,l,u),s=s[l]}return e}function pGe(e,t,r){for(var n=-1,a=t.length,i={};++n<a;){var o=t[n],s=$N(e,o);r(s,o)&&Eee(i,pT(o,e),s)}return i}function gGe(e,t){return pGe(e,t,function(r,n){return bee(e,n)})}var mGe=v6e(function(e,t){return e==null?{}:gGe(e,t)});const Du=mGe;function yGe(e,t,r){return e==null?e:Eee(e,t,r)}var _Ge="Expected a function";function Eh(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(_Ge);return ki(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Ni(e,t,{leading:n,maxWait:t,trailing:a})}var bGe=1/0,wGe=kp&&1/XN(new kp([,-0]))[1]==bGe?function(e){return new kp(e)}:hVe;const SGe=wGe;var xGe=200;function AGe(e,t,r){var n=-1,a=EVe,i=e.length,o=!0,s=[],l=s;if(r)o=!1,a=iGe;else if(i>=xGe){var u=t?null:SGe(e);if(u)return XN(u);o=!1,a=gee,l=new h_}else l=t?[]:s;e:for(;++n<i;){var c=e[n],f=t?t(c):c;if(c=r||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else a(l,f,r)||(l!==s&&l.push(f),s.push(c))}return s}var TGe=QJ(function(e){return AGe(D1(e,1,xee,!0))});const OM=TGe,oa=e=>e===void 0,la=e=>typeof e=="boolean",ct=e=>typeof e=="number",qo=e=>!e&&e!==0||We(e)&&e.length===0||Vt(e)&&!Object.keys(e).length,us=e=>typeof Element>"u"?!1:e instanceof Element,CGe=e=>Qn(e),EGe=e=>wt(e)?!Number.isNaN(Number(e)):!1,Mee=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Tl=e=>$_(e),v_=e=>Object.keys(e),MGe=e=>Object.entries(e),hS=(e,t,r)=>({get value(){return gn(e,t,r)},set value(n){yGe(e,t,n)}});class DGe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ua(e,t){throw new DGe(`[${e}] ${t}`)}const Dee=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ws=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Pl=(e,t)=>{!e||!t.trim()||e.classList.add(...Dee(t))},ro=(e,t)=>{!e||!t.trim()||e.classList.remove(...Dee(t))},Hc=(e,t)=>{var r;if(!ur||!e||!t)return"";let n=os(t);n==="float"&&(n="cssFloat");try{const a=e.style[n];if(a)return a;const i=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return i?i[n]:""}catch{return e.style[n]}};function Hn(e,t="px"){if(!e)return"";if(ct(e)||EGe(e))return`${e}${t}`;if(wt(e))return e}const PGe=(e,t)=>{if(!ur)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],n=Hc(e,r);return["scroll","auto","overlay"].some(a=>n.includes(a))},ZN=(e,t)=>{if(!ur)return;let r=e;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(PGe(r,t))return r;r=r.parentNode}return r};let aw;const Pee=e=>{var t;if(!ur)return 0;if(aw!==void 0)return aw;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const n=r.offsetWidth;r.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",r.appendChild(a);const i=a.offsetWidth;return(t=r.parentNode)==null||t.removeChild(r),aw=n-i,aw};function Lee(e,t){if(!ur)return;if(!t){e.scrollTop=0;return}const r=[];let n=t.offsetParent;for(;n!==null&&e!==n&&e.contains(n);)r.push(n),n=n.offsetParent;const a=t.offsetTop+r.reduce((l,u)=>l+u.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;a<o?e.scrollTop=a:i>s&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var LGe=te({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),Vf=LGe,IGe=te({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),Tf=IGe,RGe=te({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),Mi=RGe,OGe=te({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),mT=OGe,kGe=te({name:"Back",__name:"back",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),V("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),NGe=kGe,BGe=te({name:"Calendar",__name:"calendar",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),FGe=BGe,VGe=te({name:"CaretRight",__name:"caret-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Iee=VGe,zGe=te({name:"CaretTop",__name:"caret-top",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),HGe=zGe,GGe=te({name:"Check",__name:"check",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),P1=GGe,UGe=te({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),$Ge=UGe,WGe=te({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),V("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"})]))}}),qN=WGe,YGe=te({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),QN=YGe,jGe=te({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),V("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),zf=jGe,KGe=te({name:"Clock",__name:"clock",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),V("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),V("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Ree=KGe,XGe=te({name:"Close",__name:"close",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),el=XGe,ZGe=te({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),lg=ZGe,qGe=te({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),ug=qGe,QGe=te({name:"Delete",__name:"delete",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),JGe=QGe,eUe=te({name:"Document",__name:"document",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),tUe=eUe,rUe=te({name:"FullScreen",__name:"full-screen",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),nUe=rUe,aUe=te({name:"Hide",__name:"hide",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),V("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"})]))}}),iUe=aUe,oUe=te({name:"InfoFilled",__name:"info-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),JN=oUe,sUe=te({name:"Loading",__name:"loading",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Hf=sUe,lUe=te({name:"Minus",__name:"minus",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),uUe=lUe,cUe=te({name:"MoreFilled",__name:"more-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),xG=cUe,fUe=te({name:"More",__name:"more",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),dUe=fUe,hUe=te({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),vUe=hUe,pUe=te({name:"Plus",__name:"plus",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Oee=pUe,gUe=te({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),mUe=gUe,yUe=te({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),_Ue=yUe,bUe=te({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),wUe=bUe,SUe=te({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),xUe=SUe,AUe=te({name:"Search",__name:"search",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),TUe=AUe,CUe=te({name:"SortDown",__name:"sort-down",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),EUe=CUe,MUe=te({name:"SortUp",__name:"sort-up",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),DUe=MUe,PUe=te({name:"StarFilled",__name:"star-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("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"})]))}}),iw=PUe,LUe=te({name:"Star",__name:"star",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),IUe=LUe,RUe=te({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),kee=RUe,OUe=te({name:"View",__name:"view",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),kUe=OUe,NUe=te({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),yT=NUe,BUe=te({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Nee=BUe,FUe=te({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,r)=>(N(),U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[V("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),VUe=FUe;const Bee="__epPropKey",fe=e=>e,zUe=e=>Vt(e)&&!!e[Bee],sl=(e,t)=>{if(!Vt(e)||zUe(e))return e;const{values:r,required:n,default:a,type:i,validator:o}=e,l={type:i,required:!!n,validator:r||o?u=>{let c=!1,f=[];if(r&&(f=Array.from(r),or(e,"default")&&f.push(a),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");Joe(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[Bee]:!0};return or(e,"default")&&(l.default=a),l},Oe=e=>l2(Object.entries(e).map(([t,r])=>[t,sl(r,t)])),Zr=fe([String,Object,Function]),Fee={Close:el},e3={Close:el,SuccessFilled:kee,InfoFilled:JN,WarningFilled:yT,CircleCloseFilled:QN},Cf={success:kee,warning:yT,error:QN,info:JN},t3={validating:Hf,success:qN,error:zf},kt=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},Vee=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),HUe=(e,t)=>(e.install=r=>{r.directive(t,e)},e),Pn=e=>(e.install=zr,e),_T=(...e)=>t=>{e.forEach(r=>{dt(r)?r(t):r.value=t})},Qe={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"},GUe=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],kM=["sun","mon","tue","wed","thu","fri","sat"],Nt="update:modelValue",ln="change",Di="input",AG=Symbol("INSTALLED_KEY"),tu=["","default","small","large"],UUe={large:40,default:32,small:24},$Ue=e=>UUe[e||"default"],r3=e=>["",...tu].includes(e);var $o=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))($o||{});function ZL(e){return hn(e)&&e.type===Be}function WUe(e){return hn(e)&&e.type===Ei}function YUe(e){return hn(e)&&!ZL(e)&&!WUe(e)}const jUe=e=>{if(!hn(e))return{};const t=e.props||{},r=(hn(e.type)?e.type.props:void 0)||{},n={};return Object.keys(r).forEach(a=>{or(r[a],"default")&&(n[a]=r[a].default)}),Object.keys(t).forEach(a=>{n[os(a)]=t[a]}),n},KUe=e=>{if(!We(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Mh=e=>{const t=We(e)?e:[e],r=[];return t.forEach(n=>{var a;We(n)?r.push(...Mh(n)):hn(n)&&We(n.children)?r.push(...Mh(n.children)):(r.push(n),hn(n)&&((a=n.component)!=null&&a.subTree)&&r.push(...Mh(n.component.subTree)))}),r},TG=e=>[...new Set(e)],Nu=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],bT=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),cg=e=>ur?window.requestAnimationFrame(e):setTimeout(e,16),wT=e=>ur?window.cancelAnimationFrame(e):clearTimeout(e),ST=()=>Math.floor(Math.random()*1e4),mn=e=>e,XUe=["class","style"],ZUe=/^on[A-Z]/,n3=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,n=F(()=>((r==null?void 0:r.value)||[]).concat(XUe)),a=It();return F(a?()=>{var i;return l2(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!n.value.includes(o)&&!(t&&ZUe.test(o))))}:()=>({}))},Ul=({from:e,replacement:t,scope:r,version:n,ref:a,type:i="API"},o)=>{Ae(()=>b(o),s=>{},{immediate:!0})},zee=(e,t,r)=>{let n={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=n,d=e.value.getBoundingClientRect(),h=d.left,v=d.top,p=d.width,g=d.height,m=document.documentElement.clientWidth,y=document.documentElement.clientHeight,_=-h+c,w=-v+f,x=m-h-p+c,S=y-v-g+f,T=C=>{const M=Math.min(Math.max(c+C.clientX-l,_),x),E=Math.min(Math.max(f+C.clientY-u,w),S);n={offsetX:M,offsetY:E},e.value&&(e.value.style.transform=`translate(${Hn(M)}, ${Hn(E)})`)},A=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",A)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",A)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};xt(()=>{xo(()=>{r.value?i():o()})}),un(()=>{o()})};var qUe={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 QUe=e=>(t,r)=>JUe(t,r,b(e)),JUe=(e,t,r)=>gn(r,e,e).replace(/\{(\w+)\}/g,(n,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),e$e=e=>{const t=F(()=>b(e).name),r=Qr(e)?e:G(e);return{lang:t,locale:r,t:QUe(e)}},Hee=Symbol("localeContextKey"),fr=e=>{const t=e||Ye(Hee,G());return e$e(F(()=>t.value||qUe))},a0="el",t$e="is-",xd=(e,t,r,n,a)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),a&&(i+=`--${a}`),i},Gee=Symbol("namespaceContextKey"),a3=e=>{const t=e||(It()?Ye(Gee,G(a0)):G(a0));return F(()=>b(t)||a0)},Ce=(e,t)=>{const r=a3(t);return{namespace:r,b:(p="")=>xd(r.value,e,p,"",""),e:p=>p?xd(r.value,e,"",p,""):"",m:p=>p?xd(r.value,e,"","",p):"",be:(p,g)=>p&&g?xd(r.value,e,p,g,""):"",em:(p,g)=>p&&g?xd(r.value,e,"",p,g):"",bm:(p,g)=>p&&g?xd(r.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?xd(r.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${t$e}${p}`:""},cssVar:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${m}`]=p[m]);return g},cssVarName:p=>`--${r.value}-${p}`,cssVarBlock:p=>{const g={};for(const m in p)p[m]&&(g[`--${r.value}-${e}-${m}`]=p[m]);return g},cssVarBlockName:p=>`--${r.value}-${e}-${p}`}},Uee=(e,t={})=>{Qr(e)||ua("[useLockscreen]","You need to pass a ref param to this function");const r=t.ns||Ce("popup"),n=p9(()=>r.bm("parent","hidden"));if(!ur||Ws(document.body,n.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{ro(document==null?void 0:document.body,n.value),i&&document&&(document.body.style.width=o)},200)};Ae(e,l=>{if(!l){s();return}i=!Ws(document.body,n.value),i&&(o=document.body.style.width),a=Pee(r.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Hc(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),Pl(document.body,n.value)}),JW(()=>s())},r$e=sl({type:fe(Boolean),default:null}),n$e=sl({type:fe(Function)}),$ee=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],a={[e]:r$e,[r]:n$e};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=It(),{emit:h}=d,v=d.props,p=F(()=>dt(v[r])),g=F(()=>v[e]===null),m=T=>{o.value!==!0&&(o.value=!0,s&&(s.value=T),dt(c)&&c(T))},y=T=>{o.value!==!1&&(o.value=!1,s&&(s.value=T),dt(f)&&f(T))},_=T=>{if(v.disabled===!0||dt(u)&&!u())return;const A=p.value&&ur;A&&h(t,!0),(g.value||!A)&&m(T)},w=T=>{if(v.disabled===!0||!ur)return;const A=p.value&&ur;A&&h(t,!1),(g.value||!A)&&y(T)},x=T=>{la(T)&&(v.disabled&&T?p.value&&h(t,!1):o.value!==T&&(T?m():y()))},S=()=>{o.value?w():_()};return Ae(()=>v[e],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Ae(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),xt(()=>{x(v[e])}),{hide:w,show:_,toggle:S,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:n}};$ee("modelValue");const Wee=e=>{const t=It();return F(()=>{var r,n;return(n=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:n[e]})};var no="top",cs="bottom",fs="right",ao="left",i3="auto",L1=[no,cs,fs,ao],fg="start",p_="end",a$e="clippingParents",Yee="viewport",Qm="popper",i$e="reference",CG=L1.reduce(function(e,t){return e.concat([t+"-"+fg,t+"-"+p_])},[]),dv=[].concat(L1,[i3]).reduce(function(e,t){return e.concat([t,t+"-"+fg,t+"-"+p_])},[]),o$e="beforeRead",s$e="read",l$e="afterRead",u$e="beforeMain",c$e="main",f$e="afterMain",d$e="beforeWrite",h$e="write",v$e="afterWrite",p$e=[o$e,s$e,l$e,u$e,c$e,f$e,d$e,h$e,v$e];function $l(e){return e?(e.nodeName||"").toLowerCase():null}function ll(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dg(e){var t=ll(e).Element;return e instanceof t||e instanceof Element}function ns(e){var t=ll(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o3(e){if(typeof ShadowRoot>"u")return!1;var t=ll(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g$e(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!ns(i)||!$l(i)||(Object.assign(i.style,n),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function m$e(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],i=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!ns(a)||!$l(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var jee={name:"applyStyles",enabled:!0,phase:"write",fn:g$e,effect:m$e,requires:["computeStyles"]};function kl(e){return e.split("-")[0]}var Dh=Math.max,u2=Math.min,hg=Math.round;function vg(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,a=1;if(ns(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(n=hg(r.width)/o||1),i>0&&(a=hg(r.height)/i||1)}return{width:r.width/n,height:r.height/a,top:r.top/a,right:r.right/n,bottom:r.bottom/a,left:r.left/n,x:r.left/n,y:r.top/a}}function s3(e){var t=vg(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Kee(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&o3(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ju(e){return ll(e).getComputedStyle(e)}function y$e(e){return["table","td","th"].indexOf($l(e))>=0}function Gf(e){return((dg(e)?e.ownerDocument:e.document)||window.document).documentElement}function xT(e){return $l(e)==="html"?e:e.assignedSlot||e.parentNode||(o3(e)?e.host:null)||Gf(e)}function EG(e){return!ns(e)||ju(e).position==="fixed"?null:e.offsetParent}function _$e(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&ns(e)){var n=ju(e);if(n.position==="fixed")return null}var a=xT(e);for(o3(a)&&(a=a.host);ns(a)&&["html","body"].indexOf($l(a))<0;){var i=ju(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function I1(e){for(var t=ll(e),r=EG(e);r&&y$e(r)&&ju(r).position==="static";)r=EG(r);return r&&($l(r)==="html"||$l(r)==="body"&&ju(r).position==="static")?t:r||_$e(e)||t}function l3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function i0(e,t,r){return Dh(e,u2(t,r))}function b$e(e,t,r){var n=i0(e,t,r);return n>r?r:n}function Xee(){return{top:0,right:0,bottom:0,left:0}}function Zee(e){return Object.assign({},Xee(),e)}function qee(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var w$e=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Zee(typeof e!="number"?e:qee(e,L1))};function S$e(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=kl(r.placement),l=l3(s),u=[ao,fs].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=w$e(a.padding,r),d=s3(i),h=l==="y"?no:ao,v=l==="y"?cs:fs,p=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=I1(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,w=f[h],x=y-d[c]-f[v],S=y/2-d[c]/2+_,T=i0(w,S,x),A=l;r.modifiersData[n]=(t={},t[A]=T,t.centerOffset=T-S,t)}}function x$e(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Kee(t.elements.popper,a)||(t.elements.arrow=a))}var A$e={name:"arrow",enabled:!0,phase:"main",fn:S$e,effect:x$e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pg(e){return e.split("-")[1]}var T$e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C$e(e){var t=e.x,r=e.y,n=window,a=n.devicePixelRatio||1;return{x:hg(t*a)/a||0,y:hg(r*a)/a||0}}function MG(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=ao,w=no,x=window;if(u){var S=I1(r),T="clientHeight",A="clientWidth";if(S===ll(r)&&(S=Gf(r),ju(S).position!=="static"&&s==="absolute"&&(T="scrollHeight",A="scrollWidth")),S=S,a===no||(a===ao||a===fs)&&i===p_){w=cs;var C=f&&S===x&&x.visualViewport?x.visualViewport.height:S[T];p-=C-n.height,p*=l?1:-1}if(a===ao||(a===no||a===cs)&&i===p_){_=fs;var M=f&&S===x&&x.visualViewport?x.visualViewport.width:S[A];h-=M-n.width,h*=l?1:-1}}var E=Object.assign({position:s},u&&T$e),D=c===!0?C$e({x:h,y:p}):{x:h,y:p};if(h=D.x,p=D.y,l){var P;return Object.assign({},E,(P={},P[w]=y?"0":"",P[_]=m?"0":"",P.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",P))}return Object.assign({},E,(t={},t[w]=y?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function E$e(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:kl(t.placement),variation:pg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,MG(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,MG(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Qee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:E$e,data:{}},ow={passive:!0};function M$e(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,s=o===void 0?!0:o,l=ll(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,ow)}),s&&l.addEventListener("resize",r.update,ow),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,ow)}),s&&l.removeEventListener("resize",r.update,ow)}}var Jee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M$e,data:{}},D$e={left:"right",right:"left",bottom:"top",top:"bottom"};function vS(e){return e.replace(/left|right|bottom|top/g,function(t){return D$e[t]})}var P$e={start:"end",end:"start"};function DG(e){return e.replace(/start|end/g,function(t){return P$e[t]})}function u3(e){var t=ll(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function c3(e){return vg(Gf(e)).left+u3(e).scrollLeft}function L$e(e){var t=ll(e),r=Gf(e),n=t.visualViewport,a=r.clientWidth,i=r.clientHeight,o=0,s=0;return n&&(a=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:a,height:i,x:o+c3(e),y:s}}function I$e(e){var t,r=Gf(e),n=u3(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Dh(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Dh(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+c3(e),l=-n.scrollTop;return ju(a||r).direction==="rtl"&&(s+=Dh(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function f3(e){var t=ju(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function ete(e){return["html","body","#document"].indexOf($l(e))>=0?e.ownerDocument.body:ns(e)&&f3(e)?e:ete(xT(e))}function o0(e,t){var r;t===void 0&&(t=[]);var n=ete(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=ll(n),o=a?[i].concat(i.visualViewport||[],f3(n)?n:[]):n,s=t.concat(o);return a?s:s.concat(o0(xT(o)))}function qL(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R$e(e){var t=vg(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function PG(e,t){return t===Yee?qL(L$e(e)):dg(t)?R$e(t):qL(I$e(Gf(e)))}function O$e(e){var t=o0(xT(e)),r=["absolute","fixed"].indexOf(ju(e).position)>=0,n=r&&ns(e)?I1(e):e;return dg(n)?t.filter(function(a){return dg(a)&&Kee(a,n)&&$l(a)!=="body"}):[]}function k$e(e,t,r){var n=t==="clippingParents"?O$e(e):[].concat(t),a=[].concat(n,[r]),i=a[0],o=a.reduce(function(s,l){var u=PG(e,l);return s.top=Dh(u.top,s.top),s.right=u2(u.right,s.right),s.bottom=u2(u.bottom,s.bottom),s.left=Dh(u.left,s.left),s},PG(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function tte(e){var t=e.reference,r=e.element,n=e.placement,a=n?kl(n):null,i=n?pg(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(a){case no:l={x:o,y:t.y-r.height};break;case cs:l={x:o,y:t.y+t.height};break;case fs:l={x:t.x+t.width,y:s};break;case ao:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?l3(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case fg:l[u]=l[u]-(t[c]/2-r[c]/2);break;case p_:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function g_(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.boundary,o=i===void 0?a$e:i,s=r.rootBoundary,l=s===void 0?Yee:s,u=r.elementContext,c=u===void 0?Qm:u,f=r.altBoundary,d=f===void 0?!1:f,h=r.padding,v=h===void 0?0:h,p=Zee(typeof v!="number"?v:qee(v,L1)),g=c===Qm?i$e:Qm,m=e.rects.popper,y=e.elements[d?g:c],_=k$e(dg(y)?y:y.contextElement||Gf(e.elements.popper),o,l),w=vg(e.elements.reference),x=tte({reference:w,element:m,strategy:"absolute",placement:a}),S=qL(Object.assign({},m,x)),T=c===Qm?S:w,A={top:_.top-T.top+p.top,bottom:T.bottom-_.bottom+p.bottom,left:_.left-T.left+p.left,right:T.right-_.right+p.right},C=e.modifiersData.offset;if(c===Qm&&C){var M=C[a];Object.keys(A).forEach(function(E){var D=[fs,cs].indexOf(E)>=0?1:-1,P=[no,cs].indexOf(E)>=0?"y":"x";A[E]+=M[P]*D})}return A}function N$e(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?dv:l,c=pg(n),f=c?s?CG:CG.filter(function(v){return pg(v)===c}):L1,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=g_(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[kl(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function B$e(e){if(kl(e)===i3)return[];var t=vS(e);return[DG(e),t,DG(t)]}function F$e(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=kl(g),y=m===g,_=l||(y||!v?[vS(g)]:B$e(g)),w=[g].concat(_).reduce(function(Q,se){return Q.concat(kl(se)===i3?N$e(t,{placement:se,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):se)},[]),x=t.rects.reference,S=t.rects.popper,T=new Map,A=!0,C=w[0],M=0;M<w.length;M++){var E=w[M],D=kl(E),P=pg(E)===fg,L=[no,cs].indexOf(D)>=0,I=L?"width":"height",O=g_(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),R=L?P?fs:ao:P?cs:no;x[I]>S[I]&&(R=vS(R));var B=vS(R),k=[];if(i&&k.push(O[D]<=0),s&&k.push(O[R]<=0,O[B]<=0),k.every(function(Q){return Q})){C=E,A=!1;break}T.set(E,k)}if(A)for(var z=v?3:1,$=function(Q){var se=w.find(function(ee){var K=T.get(ee);if(K)return K.slice(0,Q).every(function(Z){return Z})});if(se)return C=se,"break"},j=z;j>0;j--){var X=$(j);if(X==="break")break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}}var V$e={name:"flip",enabled:!0,phase:"main",fn:F$e,requiresIfExists:["offset"],data:{_skip:!1}};function LG(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function IG(e){return[no,fs,cs,ao].some(function(t){return e[t]>=0})}function z$e(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=g_(t,{elementContext:"reference"}),s=g_(t,{altBoundary:!0}),l=LG(o,n),u=LG(s,a,i),c=IG(l),f=IG(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var H$e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z$e};function G$e(e,t,r){var n=kl(e),a=[ao,no].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[ao,fs].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function U$e(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=dv.reduce(function(c,f){return c[f]=G$e(f,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var $$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:U$e};function W$e(e){var t=e.state,r=e.name;t.modifiersData[r]=tte({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var rte={name:"popperOffsets",enabled:!0,phase:"read",fn:W$e,data:{}};function Y$e(e){return e==="x"?"y":"x"}function j$e(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=g_(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=kl(t.placement),y=pg(t.placement),_=!y,w=l3(m),x=Y$e(w),S=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,C=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,M=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(S){if(i){var P,L=w==="y"?no:ao,I=w==="y"?cs:fs,O=w==="y"?"height":"width",R=S[w],B=R+g[L],k=R-g[I],z=h?-A[O]/2:0,$=y===fg?T[O]:A[O],j=y===fg?-A[O]:-T[O],X=t.elements.arrow,Q=h&&X?s3(X):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xee(),ee=se[L],K=se[I],Z=i0(0,T[O],Q[O]),ne=_?T[O]/2-z-Z-ee-M.mainAxis:$-Z-ee-M.mainAxis,re=_?-T[O]/2+z+Z+K+M.mainAxis:j+Z+K+M.mainAxis,ie=t.elements.arrow&&I1(t.elements.arrow),Y=ie?w==="y"?ie.clientTop||0:ie.clientLeft||0:0,q=(P=E==null?void 0:E[w])!=null?P:0,oe=R+ne-q-Y,ve=R+re-q,_e=i0(h?u2(B,oe):B,R,h?Dh(k,ve):k);S[w]=_e,D[w]=_e-R}if(s){var ge,Le=w==="x"?no:ao,Se=w==="x"?cs:fs,xe=S[x],Te=x==="y"?"height":"width",Ve=xe+g[Le],He=xe-g[Se],je=[no,ao].indexOf(m)!==-1,Pe=(ge=E==null?void 0:E[x])!=null?ge:0,Ue=je?Ve:xe-T[Te]-A[Te]-Pe+M.altAxis,gt=je?xe+T[Te]+A[Te]-Pe-M.altAxis:He,At=h&&je?b$e(Ue,xe,gt):i0(h?Ue:Ve,xe,h?gt:He);S[x]=At,D[x]=At-xe}t.modifiersData[n]=D}}var K$e={name:"preventOverflow",enabled:!0,phase:"main",fn:j$e,requiresIfExists:["offset"]};function X$e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z$e(e){return e===ll(e)||!ns(e)?u3(e):X$e(e)}function q$e(e){var t=e.getBoundingClientRect(),r=hg(t.width)/e.offsetWidth||1,n=hg(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Q$e(e,t,r){r===void 0&&(r=!1);var n=ns(t),a=ns(t)&&q$e(t),i=Gf(t),o=vg(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(($l(t)!=="body"||f3(i))&&(s=Z$e(t)),ns(t)?(l=vg(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=c3(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function J$e(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&a(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function eWe(e){var t=J$e(e);return p$e.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function tWe(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function rWe(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var RG={placement:"bottom",modifiers:[],strategy:"absolute"};function OG(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function d3(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?RG:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},RG,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:dg(o)?o0(o):o.contextElement?o0(o.contextElement):[],popper:o0(s)};var m=eWe(rWe([].concat(n,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,m=p.popper;if(OG(g,m)){u.rects={reference:Q$e(g,I1(m),u.options.strategy==="fixed"),popper:s3(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(A){return u.modifiersData[A.name]=Object.assign({},A.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var _=u.orderedModifiers[y],w=_.fn,x=_.options,S=x===void 0?{}:x,T=_.name;typeof w=="function"&&(u=w({state:u,options:S,name:T,instance:d})||u)}}}},update:tWe(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!OG(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,y=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var w=_({state:u,name:g,instance:d,options:y}),x=function(){};c.push(w||x)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}d3();var nWe=[Jee,rte,Qee,jee];d3({defaultModifiers:nWe});var aWe=[Jee,rte,Qee,jee,$$e,V$e,K$e,A$e,H$e],nte=d3({defaultModifiers:aWe});const iWe=(e,t,r={})=>{const n={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=oWe(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=F(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=b(r);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],n,{name:"applyStyles",enabled:!1}]}}),i=yr(),o=G({styles:{popper:{position:b(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Ae(a,l=>{const u=b(i);u&&u.setOptions(l)},{deep:!0}),Ae([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=nte(l,u,b(a)))}),un(()=>{s()}),{state:F(()=>{var l;return{...((l=b(i))==null?void 0:l.state)||{}}}),styles:F(()=>b(o).styles),attributes:F(()=>b(o).attributes),update:()=>{var l;return(l=b(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=b(i))==null?void 0:l.forceUpdate()},instanceRef:F(()=>b(i))}};function oWe(e){const t=Object.keys(e.elements),r=l2(t.map(a=>[a,e.styles[a]||{}])),n=l2(t.map(a=>[a,e.attributes[a]]));return{styles:r,attributes:n}}const h3=e=>{if(!e)return{onClick:zr,onMousedown:zr,onMouseup:zr};let t=!1,r=!1;return{onClick:o=>{t&&r&&e(o),t=r=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{r=o.target===o.currentTarget}}},sWe=(e,t=0)=>{if(t===0)return e;const r=G(!1);let n=0;const a=()=>{n&&clearTimeout(n),n=window.setTimeout(()=>{r.value=e.value},t)};return xt(a),Ae(()=>e.value,i=>{i?a():r.value=i}),r};function kG(){let e;const t=(n,a)=>{r(),e=window.setTimeout(n,a)},r=()=>window.clearTimeout(e);return x1(()=>r()),{registerTimeout:t,cancelTimeout:r}}const NG={prefix:Math.floor(Math.random()*1e4),current:0},lWe=Symbol("elIdInjection"),ate=()=>It()?Ye(lWe,NG):NG,co=e=>{const t=ate(),r=a3();return F(()=>b(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let ip=[];const BG=e=>{const t=e;t.key===Qe.esc&&ip.forEach(r=>r(t))},uWe=e=>{xt(()=>{ip.length===0&&document.addEventListener("keydown",BG),ur&&ip.push(e)}),un(()=>{ip=ip.filter(t=>t!==e),ip.length===0&&ur&&document.removeEventListener("keydown",BG)})};let FG;const ite=()=>{const e=a3(),t=ate(),r=F(()=>`${e.value}-popper-container-${t.prefix}`),n=F(()=>`#${r.value}`);return{id:r,selector:n}},cWe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},fWe=()=>{const{id:e,selector:t}=ite();return Y2(()=>{ur&&!FG&&!document.body.querySelector(t.value)&&(FG=cWe(e.value))}),{id:e,selector:t}},dWe=Oe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),ote=({showAfter:e,hideAfter:t,autoClose:r,open:n,close:a})=>{const{registerTimeout:i}=kG(),{registerTimeout:o,cancelTimeout:s}=kG();return{onOpen:c=>{i(()=>{n(c);const f=b(r);ct(f)&&f>0&&o(()=>{a(c)},f)},b(e))},onClose:c=>{s(),i(()=>{a(c)},b(t))}}},ste=Symbol("elForwardRef"),hWe=e=>{Wt(ste,{setForwardRef:r=>{e.value=r}})},vWe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),VG=G(0),lte=2e3,ute=Symbol("zIndexContextKey"),im=e=>{const t=e||(It()?Ye(ute,void 0):void 0),r=F(()=>{const i=b(t);return ct(i)?i:lte}),n=F(()=>r.value+VG.value);return{initialZIndex:r,currentZIndex:n,nextZIndex:()=>(VG.value++,n.value)}},m_=Math.min,Np=Math.max,c2=Math.round,Ef=e=>({x:e,y:e});function pWe(e,t,r){return Np(e,m_(t,r))}function cte(e,t){return typeof e=="function"?e(t):e}function v3(e){return e.split("-")[0]}function p3(e){return e.split("-")[1]}function gWe(e){return e==="x"?"y":"x"}function fte(e){return e==="y"?"height":"width"}function g3(e){return["top","bottom"].includes(v3(e))?"y":"x"}function dte(e){return gWe(g3(e))}function mWe(e){return{top:0,right:0,bottom:0,left:0,...e}}function yWe(e){return typeof e!="number"?mWe(e):{top:e,right:e,bottom:e,left:e}}function hte(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function zG(e,t,r){let{reference:n,floating:a}=e;const i=g3(t),o=dte(t),s=fte(o),l=v3(t),u=i==="y",c=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,d=n[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:n.y-a.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-a.width,y:f};break;default:h={x:n.x,y:n.y}}switch(p3(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const _We=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:o}=r,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:f}=zG(u,n,l),d=n,h={},v=0;for(let p=0;p<s.length;p++){const{name:g,fn:m}=s[p],{x:y,y:_,data:w,reset:x}=await m({x:c,y:f,initialPlacement:n,placement:d,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=y??c,f=_??f,h={...h,[g]:{...h[g],...w}},x&&v<=50){v++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(u=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:c,y:f}=zG(u,d,l)),p=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},bWe=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=cte(e,t)||{};if(u==null)return{};const f=yWe(c),d={x:r,y:n},h=dte(a),v=fte(h),p=await o.getDimensions(u),g=h==="y",m=g?"top":"left",y=g?"bottom":"right",_=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[h]-d[h]-i.floating[v],x=d[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let T=S?S[_]:0;(!T||!await(o.isElement==null?void 0:o.isElement(S)))&&(T=s.floating[_]||i.floating[v]);const A=w/2-x/2,C=T/2-p[v]/2-1,M=m_(f[m],C),E=m_(f[y],C),D=M,P=T-p[v]-E,L=T/2-p[v]/2+A,I=pWe(D,L,P),O=!l.arrow&&p3(a)!=null&&L!=I&&i.reference[v]/2-(L<D?M:E)-p[v]/2<0,R=O?L<D?L-D:L-P:0;return{[h]:d[h]+R,data:{[h]:I,centerOffset:L-I-R,...O&&{alignmentOffset:R}},reset:O}}});async function wWe(e,t){const{placement:r,platform:n,elements:a}=e,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),o=v3(r),s=p3(r),l=g3(r)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=cte(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const SWe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await wWe(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}};function Mf(e){return vte(e)?(e.nodeName||"").toLowerCase():"#document"}function To(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uf(e){var t;return(t=(vte(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vte(e){return e instanceof Node||e instanceof To(e).Node}function Ku(e){return e instanceof Element||e instanceof To(e).Element}function Wl(e){return e instanceof HTMLElement||e instanceof To(e).HTMLElement}function HG(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof To(e).ShadowRoot}function R1(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function xWe(e){return["table","td","th"].includes(Mf(e))}function m3(e){const t=y3(),r=ds(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function AWe(e){let t=gg(e);for(;Wl(t)&&!AT(t);){if(m3(t))return t;t=gg(t)}return null}function y3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function AT(e){return["html","body","#document"].includes(Mf(e))}function ds(e){return To(e).getComputedStyle(e)}function TT(e){return Ku(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gg(e){if(Mf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||HG(e)&&e.host||Uf(e);return HG(t)?t.host:t}function pte(e){const t=gg(e);return AT(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wl(t)&&R1(t)?t:pte(t)}function QL(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=pte(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=To(a);return i?t.concat(o,o.visualViewport||[],R1(a)?a:[],o.frameElement&&r?QL(o.frameElement):[]):t.concat(a,QL(a,[],r))}function gte(e){const t=ds(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=Wl(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=c2(r)!==i||c2(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function mte(e){return Ku(e)?e:e.contextElement}function Bp(e){const t=mte(e);if(!Wl(t))return Ef(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=gte(t);let o=(i?c2(r.width):r.width)/n,s=(i?c2(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const TWe=Ef(0);function yte(e){const t=To(e);return!y3()||!t.visualViewport?TWe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CWe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==To(e)?!1:t}function y_(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),i=mte(e);let o=Ef(1);t&&(n?Ku(n)&&(o=Bp(n)):o=Bp(e));const s=CWe(i,r,n)?yte(i):Ef(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=To(i),h=n&&Ku(n)?To(n):n;let v=d.frameElement;for(;v&&n&&h!==d;){const p=Bp(v),g=v.getBoundingClientRect(),m=ds(v),y=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*p.x,_=g.top+(v.clientTop+parseFloat(m.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=y,u+=_,v=To(v).frameElement}}return hte({width:c,height:f,x:l,y:u})}function EWe(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=Wl(r),i=Uf(r);if(r===i)return t;let o={scrollLeft:0,scrollTop:0},s=Ef(1);const l=Ef(0);if((a||!a&&n!=="fixed")&&((Mf(r)!=="body"||R1(i))&&(o=TT(r)),Wl(r))){const u=y_(r);s=Bp(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}}function MWe(e){return Array.from(e.getClientRects())}function _te(e){return y_(Uf(e)).left+TT(e).scrollLeft}function DWe(e){const t=Uf(e),r=TT(e),n=e.ownerDocument.body,a=Np(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Np(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+_te(e);const s=-r.scrollTop;return ds(n).direction==="rtl"&&(o+=Np(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:o,y:s}}function PWe(e,t){const r=To(e),n=Uf(e),a=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=y3();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function LWe(e,t){const r=y_(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=Wl(e)?Bp(e):Ef(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=n*i.y;return{width:o,height:s,x:l,y:u}}function GG(e,t,r){let n;if(t==="viewport")n=PWe(e,r);else if(t==="document")n=DWe(Uf(e));else if(Ku(t))n=LWe(t,r);else{const a=yte(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return hte(n)}function bte(e,t){const r=gg(e);return r===t||!Ku(r)||AT(r)?!1:ds(r).position==="fixed"||bte(r,t)}function IWe(e,t){const r=t.get(e);if(r)return r;let n=QL(e,[],!1).filter(s=>Ku(s)&&Mf(s)!=="body"),a=null;const i=ds(e).position==="fixed";let o=i?gg(e):e;for(;Ku(o)&&!AT(o);){const s=ds(o),l=m3(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||R1(o)&&!l&&bte(e,o))?n=n.filter(c=>c!==o):a=s,o=gg(o)}return t.set(e,n),n}function RWe(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const o=[...r==="clippingAncestors"?IWe(t,this._c):[].concat(r),n],s=o[0],l=o.reduce((u,c)=>{const f=GG(t,c,a);return u.top=Np(f.top,u.top),u.right=m_(f.right,u.right),u.bottom=m_(f.bottom,u.bottom),u.left=Np(f.left,u.left),u},GG(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function OWe(e){return gte(e)}function kWe(e,t,r){const n=Wl(t),a=Uf(t),i=r==="fixed",o=y_(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ef(0);if(n||!n&&!i)if((Mf(t)!=="body"||R1(a))&&(s=TT(t)),n){const u=y_(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else a&&(l.x=_te(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function UG(e,t){return!Wl(e)||ds(e).position==="fixed"?null:t?t(e):e.offsetParent}function wte(e,t){const r=To(e);if(!Wl(e))return r;let n=UG(e,t);for(;n&&xWe(n)&&ds(n).position==="static";)n=UG(n,t);return n&&(Mf(n)==="html"||Mf(n)==="body"&&ds(n).position==="static"&&!m3(n))?r:n||AWe(e)||r}const NWe=async function(e){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||wte,i=this.getDimensions;return{reference:kWe(t,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function BWe(e){return ds(e).direction==="rtl"}const FWe={convertOffsetParentRelativeRectToViewportRelativeRect:EWe,getDocumentElement:Uf,getClippingRect:RWe,getOffsetParent:wte,getElementRects:NWe,getClientRects:MWe,getDimensions:OWe,getScale:Bp,isElement:Ku,isRTL:BWe},VWe=(e,t,r)=>{const n=new Map,a={platform:FWe,...r},i={...a.platform,_c:n};return _We(e,t,{...a,platform:i})};Oe({});const zWe=e=>{if(!ur)return;if(!e)return e;const t=Ji(e);return t||(Qr(e)?t:e)},HWe=({middleware:e,placement:t,strategy:r})=>{const n=G(),a=G(),i=G(),o=G(),s=G({}),l={x:i,y:o,placement:t,strategy:r,middlewareData:s},u=async()=>{if(!ur)return;const c=zWe(n),f=Ji(a);if(!c||!f)return;const d=await VWe(c,f,{placement:b(t),strategy:b(r),middleware:b(e)});v_(l).forEach(h=>{l[h].value=d[h]})};return xt(()=>{xo(()=>{u()})}),{...l,update:u,referenceRef:n,contentRef:a}},GWe=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(r){const n=b(e);return n?bWe({element:n,padding:t}).fn(r):{}}});function UWe(e){const t=G();function r(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function n(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t.value;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[r,n]}const $We=(e,t,r)=>Mh(e.subTree).filter(i=>{var o;return hn(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>r[i]).filter(i=>!!i),_3=(e,t)=>{const r={},n=yr([]);return{children:n,addChild:o=>{r[o.uid]=o,n.value=$We(e,t,r)},removeChild:o=>{delete r[o],n.value=n.value.filter(s=>s.uid!==o)}}},Ga=sl({type:String,values:tu,required:!1}),Ste=Symbol("size"),WWe=()=>{const e=Ye(Ste,{});return F(()=>b(e.size)||"")};function xte(e,{afterFocus:t,beforeBlur:r,afterBlur:n}={}){const a=It(),{emit:i}=a,o=yr(),s=G(!1),l=f=>{s.value||(s.value=!0,i("focus",f),t==null||t())},u=f=>{var d;dt(r)&&r(f)||f.relatedTarget&&((d=o.value)!=null&&d.contains(f.relatedTarget))||(s.value=!1,i("blur",f),n==null||n())},c=()=>{var f;(f=e.value)==null||f.focus()};return Ae(o,f=>{f&&f.setAttribute("tabindex","-1")}),dn(o,"click",c),{wrapperRef:o,isFocused:s,handleFocus:l,handleBlur:u}}const Ate=Symbol(),f2=G();function CT(e,t=void 0){const r=It()?Ye(Ate,f2):f2;return e?F(()=>{var n,a;return(a=(n=r.value)==null?void 0:n[e])!=null?a:t}):r}function ET(e,t){const r=CT(),n=Ce(e,F(()=>{var s;return((s=r.value)==null?void 0:s.namespace)||a0})),a=fr(F(()=>{var s;return(s=r.value)==null?void 0:s.locale})),i=im(F(()=>{var s;return((s=r.value)==null?void 0:s.zIndex)||lte})),o=F(()=>{var s;return b(t)||((s=r.value)==null?void 0:s.size)||""});return b3(F(()=>b(r)||{})),{ns:n,locale:a,zIndex:i,size:o}}const b3=(e,t,r=!1)=>{var n;const a=!!It(),i=a?CT():void 0,o=(n=t==null?void 0:t.provide)!=null?n:a?Wt:void 0;if(!o)return;const s=F(()=>{const l=b(e);return i!=null&&i.value?YWe(i.value,l):l});return o(Ate,s),o(Hee,F(()=>s.value.locale)),o(Gee,F(()=>s.value.namespace)),o(ute,F(()=>s.value.zIndex)),o(Ste,{size:F(()=>s.value.size||"")}),(r||!f2.value)&&(f2.value=s.value),s},YWe=(e,t)=>{var r;const n=[...new Set([...v_(e),...v_(t)])],a={};for(const i of n)a[i]=(r=t[i])!=null?r:e[i];return a},jWe=Oe({a11y:{type:Boolean,default:!0},locale:{type:fe(Object)},size:Ga,button:{type:fe(Object)},experimentalFeatures:{type:fe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:fe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),JL={},KWe=te({name:"ElConfigProvider",props:jWe,setup(e,{slots:t}){Ae(()=>e.message,n=>{Object.assign(JL,n??{})},{immediate:!0,deep:!0});const r=b3(e);return()=>ye(t,"default",{config:r==null?void 0:r.value})}}),XWe=kt(KWe),ZWe="2.4.3",qWe=(e=[])=>({version:ZWe,install:(r,n)=>{r[AG]||(r[AG]=!0,e.forEach(a=>r.use(a)),n&&b3(n,r,!0))}}),QWe=Oe({zIndex:{type:fe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),JWe={scroll:({scrollTop:e,fixed:t})=>ct(e)&&la(t),[ln]:e=>la(e)};var ke=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r};const Tte="ElAffix",e9e=te({name:Tte}),t9e=te({...e9e,props:QWe,emits:JWe,setup(e,{expose:t,emit:r}){const n=e,a=Ce("affix"),i=yr(),o=yr(),s=yr(),{height:l}=mFe(),{height:u,width:c,top:f,bottom:d,update:h}=zH(o,{windowScroll:!1}),v=zH(i),p=G(!1),g=G(0),m=G(0),y=F(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),_=F(()=>{if(!p.value)return{};const S=n.offset?Hn(n.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:n.position==="top"?S:"",bottom:n.position==="bottom"?S:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:n.zIndex}}),w=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,n.position==="top")if(n.target){const S=v.bottom.value-n.offset-u.value;p.value=n.offset>f.value&&v.bottom.value>0,m.value=S<0?S:0}else p.value=n.offset>f.value;else if(n.target){const S=l.value-v.top.value-n.offset-u.value;p.value=l.value-n.offset<d.value&&l.value>v.top.value,m.value=S<0?-S:0}else p.value=l.value-n.offset<d.value},x=()=>{h(),r("scroll",{scrollTop:g.value,fixed:p.value})};return Ae(p,S=>r("change",S)),xt(()=>{var S;n.target?(i.value=(S=document.querySelector(n.target))!=null?S:void 0,i.value||ua(Tte,`Target is not existed: ${n.target}`)):i.value=document.documentElement,s.value=ZN(o.value,!0),h()}),dn(s,"scroll",x),xo(w),t({update:w,updateRoot:h}),(S,T)=>(N(),U("div",{ref_key:"root",ref:o,class:H(b(a).b()),style:Xe(b(y))},[V("div",{class:H({[b(a).m("fixed")]:p.value}),style:Xe(b(_))},[ye(S.$slots,"default")],6)],6))}});var r9e=ke(t9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const n9e=kt(r9e),a9e=Oe({size:{type:fe([Number,String])},color:{type:String}}),i9e=te({name:"ElIcon",inheritAttrs:!1}),o9e=te({...i9e,props:a9e,setup(e){const t=e,r=Ce("icon"),n=F(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:oa(a)?void 0:Hn(a),"--color":i}});return(a,i)=>(N(),U("i",Ut({class:b(r).b(),style:b(n)},a.$attrs),[ye(a.$slots,"default")],16))}});var s9e=ke(o9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ze=kt(s9e),l9e=["light","dark"],u9e=Oe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:v_(Cf),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:l9e,default:"light"}}),c9e={close:e=>e instanceof MouseEvent},f9e=te({name:"ElAlert"}),d9e=te({...f9e,props:u9e,emits:c9e,setup(e,{emit:t}){const r=e,{Close:n}=e3,a=$a(),i=Ce("alert"),o=G(!0),s=F(()=>Cf[r.type]),l=F(()=>[i.e("icon"),{[i.is("big")]:!!r.description||!!a.default}]),u=F(()=>({[i.is("bold")]:r.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>(N(),he(Yn,{name:b(i).b("fade"),persisted:""},{default:le(()=>[Ct(V("div",{class:H([b(i).b(),b(i).m(f.type),b(i).is("center",f.center),b(i).is(f.effect)]),role:"alert"},[f.showIcon&&b(s)?(N(),he(b(Ze),{key:0,class:H(b(l))},{default:le(()=>[(N(),he(Ft(b(s))))]),_:1},8,["class"])):ce("v-if",!0),V("div",{class:H(b(i).e("content"))},[f.title||f.$slots.title?(N(),U("span",{key:0,class:H([b(i).e("title"),b(u)])},[ye(f.$slots,"title",{},()=>[nr(me(f.title),1)])],2)):ce("v-if",!0),f.$slots.default||f.description?(N(),U("p",{key:1,class:H(b(i).e("description"))},[ye(f.$slots,"default",{},()=>[nr(me(f.description),1)])],2)):ce("v-if",!0),f.closable?(N(),U(Be,{key:2},[f.closeText?(N(),U("div",{key:0,class:H([b(i).e("close-btn"),b(i).is("customed")]),onClick:c},me(f.closeText),3)):(N(),he(b(Ze),{key:1,class:H(b(i).e("close-btn")),onClick:c},{default:le(()=>[J(b(n))]),_:1},8,["class"]))],64)):ce("v-if",!0)],2)],2),[[hr,o.value]])]),_:3},8,["name"]))}});var h9e=ke(d9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const v9e=kt(h9e),hv=Symbol("formContextKey"),Yl=Symbol("formItemContextKey"),ca=(e,t={})=>{const r=G(void 0),n=t.prop?r:Wee("size"),a=t.global?r:WWe(),i=t.form?{size:void 0}:Ye(hv,void 0),o=t.formItem?{size:void 0}:Ye(Yl,void 0);return F(()=>n.value||b(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},ho=e=>{const t=Wee("disabled"),r=Ye(hv,void 0);return F(()=>t.value||b(e)||(r==null?void 0:r.disabled)||!1)},Vi=()=>{const e=Ye(hv,void 0),t=Ye(Yl,void 0);return{form:e,formItem:t}},$f=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=G(!1)),n||(n=G(!1));const a=G();let i;const o=F(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return xt(()=>{i=Ae([Sn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:co().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),Xl(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},p9e=Oe({size:{type:String,values:tu},disabled:Boolean}),g9e=Oe({...p9e,model:Object,rules:{type:fe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),m9e={validate:(e,t,r)=>(We(e)||wt(e))&&la(t)&&wt(r)};function y9e(){const e=G([]),t=F(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function r(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function n(i,o){if(i&&o){const s=r(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=r(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:a}}const sw=(e,t)=>{const r=jh(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},_9e="ElForm",b9e=te({name:_9e}),w9e=te({...b9e,props:g9e,emits:m9e,setup(e,{expose:t,emit:r}){const n=e,a=[],i=ca(),o=Ce("form"),s=F(()=>{const{labelPosition:y,inline:_}=n;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:_}]}),l=y=>{a.push(y)},u=y=>{y.prop&&a.splice(a.indexOf(y),1)},c=(y=[])=>{n.model&&sw(a,y).forEach(_=>_.resetField())},f=(y=[])=>{sw(a,y).forEach(_=>_.clearValidate())},d=F(()=>!!n.model),h=y=>{if(a.length===0)return[];const _=sw(a,y);return _.length?_:[]},v=async y=>g(void 0,y),p=async(y=[])=>{if(!d.value)return!1;const _=h(y);if(_.length===0)return!0;let w={};for(const x of _)try{await x.validate("")}catch(S){w={...w,...S}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(y=[],_)=>{const w=!dt(_);try{const x=await p(y);return x===!0&&(_==null||_(x)),x}catch(x){if(x instanceof Error)throw x;const S=x;return n.scrollToError&&m(Object.keys(S)[0]),_==null||_(!1,S),w&&Promise.reject(S)}},m=y=>{var _;const w=sw(a,y)[0];w&&((_=w.$el)==null||_.scrollIntoView(n.scrollIntoViewOptions))};return Ae(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),Wt(hv,Ar({...Da(n),emit:r,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...y9e()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(y,_)=>(N(),U("form",{class:H(b(s))},[ye(y.$slots,"default")],2))}});var S9e=ke(w9e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function ih(){return ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ih.apply(this,arguments)}function x9e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,__(e,t)}function eI(e){return eI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eI(e)}function __(e,t){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},__(e,t)}function A9e(){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 pS(e,t,r){return A9e()?pS=Reflect.construct.bind():pS=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&__(u,o.prototype),u},pS.apply(null,arguments)}function T9e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function tI(e){var t=typeof Map=="function"?new Map:void 0;return tI=function(n){if(n===null||!T9e(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return pS(n,arguments,eI(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),__(a,n)},tI(e)}var C9e=/%[sdj%]/g,E9e=function(){};function rI(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function So(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(C9e,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function M9e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ia(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||M9e(t)&&typeof e=="string"&&!e)}function D9e(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,s||[]),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function $G(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<a?t(e[s],i):r([])}i([])}function P9e(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var WG=function(e){x9e(t,e);function t(r,n){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=r,a.fields=n,a}return t}(tI(Error));function L9e(e,t,r,n,a){if(t.first){var i=new Promise(function(d,h){var v=function(m){return n(m),m.length?h(new WG(m,rI(m))):d(a)},p=P9e(e);$G(p,r,v)});return i.catch(function(d){return d}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],f=new Promise(function(d,h){var v=function(g){if(c.push.apply(c,g),u++,u===l)return n(c),c.length?h(new WG(c,rI(c))):d(a)};s.length||(n(c),d(a)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?$G(g,r,v):D9e(g,r,v)})});return f.catch(function(d){return d}),f}function I9e(e){return!!(e&&e.message!==void 0)}function R9e(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function YG(e,t){return function(r){var n;return e.fullFields?n=R9e(t,e.fullFields):n=t[r.field||e.fullField],I9e(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function jG(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=ih({},e[r],n):e[r]=n}}return e}var Cte=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||Ia(r,o||t.type))&&a.push(So(i.messages.required,t.fullField))},O9e=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(So(i.messages.whitespace,t.fullField))},lw,k9e=function(){if(lw)return lw;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?: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}",n="[a-fA-F\\d]{1,4}",a=(`
|
||
(?:
|
||
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 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
|
||
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){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
|
||
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){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
|
||
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){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
|
||
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+r+t(w)+")|(?:"+t(w)+a+t(w)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+r+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+a+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+m;return lw=new RegExp("(?:^"+y+"$)","i"),lw},KG={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},Cy={integer:function(t){return Cy.number(t)&&parseInt(t,10)===t},float:function(t){return Cy.number(t)&&!Cy.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Cy.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(KG.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(k9e())},hex:function(t){return typeof t=="string"&&!!t.match(KG.hex)}},N9e=function(t,r,n,a,i){if(t.required&&r===void 0){Cte(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Cy[s](r)||a.push(So(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&a.push(So(i.messages.types[s],t.fullField,t.type))},B9e=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,f=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&a.push(So(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(So(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(So(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(So(i.messages[f].range,t.fullField,t.min,t.max))},zv="enum",F9e=function(t,r,n,a,i){t[zv]=Array.isArray(t[zv])?t[zv]:[],t[zv].indexOf(r)===-1&&a.push(So(i.messages[zv],t.fullField,t[zv].join(", ")))},V9e=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(So(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(So(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ur={required:Cte,whitespace:O9e,type:N9e,range:B9e,enum:F9e,pattern:V9e},z9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r,"string")&&!t.required)return n();Ur.required(t,r,a,o,i,"string"),Ia(r,"string")||(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i),Ur.pattern(t,r,a,o,i),t.whitespace===!0&&Ur.whitespace(t,r,a,o,i))}n(o)},H9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur.type(t,r,a,o,i)}n(o)},G9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},U9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur.type(t,r,a,o,i)}n(o)},$9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),Ia(r)||Ur.type(t,r,a,o,i)}n(o)},W9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},Y9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},j9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Ur.required(t,r,a,o,i,"array"),r!=null&&(Ur.type(t,r,a,o,i),Ur.range(t,r,a,o,i))}n(o)},K9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur.type(t,r,a,o,i)}n(o)},X9e="enum",Z9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i),r!==void 0&&Ur[X9e](t,r,a,o,i)}n(o)},q9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r,"string")&&!t.required)return n();Ur.required(t,r,a,o,i),Ia(r,"string")||Ur.pattern(t,r,a,o,i)}n(o)},Q9e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r,"date")&&!t.required)return n();if(Ur.required(t,r,a,o,i),!Ia(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ur.type(t,l,a,o,i),l&&Ur.range(t,l.getTime(),a,o,i)}}n(o)},J9e=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":typeof r;Ur.required(t,r,a,o,i,s),n(o)},NM=function(t,r,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ia(r,o)&&!t.required)return n();Ur.required(t,r,a,s,i,o),Ia(r,o)||Ur.type(t,r,a,s,i)}n(s)},e7e=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Ia(r)&&!t.required)return n();Ur.required(t,r,a,o,i)}n(o)},s0={string:z9e,method:H9e,number:G9e,boolean:U9e,regexp:$9e,integer:W9e,float:Y9e,array:j9e,object:K9e,enum:Z9e,pattern:q9e,date:Q9e,url:NM,hex:NM,email:NM,required:J9e,any:e7e};function nI(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var aI=nI(),O1=function(){function e(r){this.rules=null,this._messages=aI,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=jG(nI(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=n,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var g=[],m={};function y(w){if(Array.isArray(w)){var x;g=(x=g).concat.apply(x,w)}else g.push(w)}for(var _=0;_<p.length;_++)y(p[_]);g.length?(m=rI(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===aI&&(f=nI()),jG(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],m=s[p];g.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=ih({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=ih({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),d[p]=d[p]||[],d[p].push({rule:_,value:m,source:s,field:p}))})});var v={};return L9e(d,l,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function _(S,T){return ih({},T,{fullField:m.fullField+"."+S,fullFields:m.fullFields?[].concat(m.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var T=Array.isArray(S)?S:[S];!l.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&m.message!==void 0&&(T=[].concat(m.message));var A=T.map(YG(m,s));if(l.first&&A.length)return v[m.field]=1,g(A);if(!y)g(A);else{if(m.required&&!p.value)return m.message!==void 0?A=[].concat(m.message).map(YG(m,s)):l.error&&(A=[l.error(m,So(l.messages.required,m.field))]),g(A);var C={};m.defaultField&&Object.keys(p.value).map(function(D){C[D]=m.defaultField}),C=ih({},C,p.rule.fields);var M={};Object.keys(C).forEach(function(D){var P=C[D],L=Array.isArray(P)?P:[P];M[D]=L.map(_.bind(null,D))});var E=new e(M);E.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),E.validate(p.value,p.rule.options||l,function(D){var P=[];A&&A.length&&P.push.apply(P,A),D&&D.length&&P.push.apply(P,D),g(P.length?P:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,p.value,w,p.source,l);else if(m.validator){try{x=m.validator(m,p.value,w,p.source,l)}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}x===!0?w():x===!1?w(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message)}x&&x.then&&x.then(function(){return w()},function(S){return w(S)})},function(p){c(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!s0.hasOwnProperty(n.type))throw new Error(So("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?s0.required:s0[this.getType(n)]||void 0},e}();O1.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");s0[t]=r};O1.warning=E9e;O1.messages=aI;O1.validators=s0;const t7e=["","error","validating","success"],r7e=Oe({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:fe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:fe([Object,Array])},error:String,validateStatus:{type:String,values:t7e},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:tu}}),XG="ElLabelWrap";var n7e=te({name:XG,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Ye(hv,void 0),n=Ye(Yl);n||ua(XG,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Ce("form"),i=G(),o=G(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{qe(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return xt(()=>{u()}),un(()=>{l("remove")}),qu(()=>u()),Ae(o,(c,f)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,f))}),di(F(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return J("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return J(Be,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const a7e=["role","aria-labelledby"],i7e=te({name:"ElFormItem"}),o7e=te({...i7e,props:r7e,setup(e,{expose:t}){const r=e,n=$a(),a=Ye(hv,void 0),i=Ye(Yl,void 0),o=ca(void 0,{formItem:!1}),s=Ce("form-item"),l=co().value,u=G([]),c=G(""),f=Q5e(c,100),d=G(""),h=G();let v,p=!1;const g=F(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const K=Hn(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return K?{width:K}:{}}),m=F(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!r.label&&!r.labelWidth&&C)return{};const K=Hn(r.labelWidth||(a==null?void 0:a.labelWidth)||"");return!r.label&&!n.label?{marginLeft:K}:{}}),y=F(()=>[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",L.value||r.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}]),_=F(()=>la(r.inlineMessage)?r.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=F(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),x=F(()=>r.prop?wt(r.prop)?r.prop:r.prop.join("."):""),S=F(()=>!!(r.label||n.label)),T=F(()=>r.for||(u.value.length===1?u.value[0]:void 0)),A=F(()=>!T.value&&S.value),C=!!i,M=F(()=>{const K=a==null?void 0:a.model;if(!(!K||!r.prop))return hS(K,r.prop).value}),E=F(()=>{const{required:K}=r,Z=[];r.rules&&Z.push(...jh(r.rules));const ne=a==null?void 0:a.rules;if(ne&&r.prop){const re=hS(ne,r.prop).value;re&&Z.push(...jh(re))}if(K!==void 0){const re=Z.map((ie,Y)=>[ie,Y]).filter(([ie])=>Object.keys(ie).includes("required"));if(re.length>0)for(const[ie,Y]of re)ie.required!==K&&(Z[Y]={...ie,required:K});else Z.push({required:K})}return Z}),D=F(()=>E.value.length>0),P=K=>E.value.filter(ne=>!ne.trigger||!K?!0:Array.isArray(ne.trigger)?ne.trigger.includes(K):ne.trigger===K).map(({trigger:ne,...re})=>re),L=F(()=>E.value.some(K=>K.required)),I=F(()=>{var K;return f.value==="error"&&r.showMessage&&((K=a==null?void 0:a.showMessage)!=null?K:!0)}),O=F(()=>`${r.label||""}${(a==null?void 0:a.labelSuffix)||""}`),R=K=>{c.value=K},B=K=>{var Z,ne;const{errors:re,fields:ie}=K;(!re||!ie)&&console.error(K),R("error"),d.value=re?(ne=(Z=re==null?void 0:re[0])==null?void 0:Z.message)!=null?ne:`${r.prop} is required`:"",a==null||a.emit("validate",r.prop,!1,d.value)},k=()=>{R("success"),a==null||a.emit("validate",r.prop,!0,"")},z=async K=>{const Z=x.value;return new O1({[Z]:K}).validate({[Z]:M.value},{firstFields:!0}).then(()=>(k(),!0)).catch(re=>(B(re),Promise.reject(re)))},$=async(K,Z)=>{if(p||!r.prop)return!1;const ne=dt(Z);if(!D.value)return Z==null||Z(!1),!1;const re=P(K);return re.length===0?(Z==null||Z(!0),!0):(R("validating"),z(re).then(()=>(Z==null||Z(!0),!0)).catch(ie=>{const{fields:Y}=ie;return Z==null||Z(!1,Y),ne?!1:Promise.reject(Y)}))},j=()=>{R(""),d.value="",p=!1},X=async()=>{const K=a==null?void 0:a.model;if(!K||!r.prop)return;const Z=hS(K,r.prop);p=!0,Z.value=yG(v),await qe(),j(),p=!1},Q=K=>{u.value.includes(K)||u.value.push(K)},se=K=>{u.value=u.value.filter(Z=>Z!==K)};Ae(()=>r.error,K=>{d.value=K||"",R(K?"error":"")},{immediate:!0}),Ae(()=>r.validateStatus,K=>R(K||""));const ee=Ar({...Da(r),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:A,hasLabel:S,addInputId:Q,removeInputId:se,resetField:X,clearValidate:j,validate:$});return Wt(Yl,ee),xt(()=>{r.prop&&(a==null||a.addField(ee),v=yG(M.value))}),un(()=>{a==null||a.removeField(ee)}),t({size:o,validateMessage:d,validateState:c,validate:$,clearValidate:j,resetField:X}),(K,Z)=>{var ne;return N(),U("div",{ref_key:"formItemRef",ref:h,class:H(b(y)),role:b(A)?"group":void 0,"aria-labelledby":b(A)?b(l):void 0},[J(b(n7e),{"is-auto-width":b(g).width==="auto","update-all":((ne=b(a))==null?void 0:ne.labelWidth)==="auto"},{default:le(()=>[b(S)?(N(),he(Ft(b(T)?"label":"div"),{key:0,id:b(l),for:b(T),class:H(b(s).e("label")),style:Xe(b(g))},{default:le(()=>[ye(K.$slots,"label",{label:b(O)},()=>[nr(me(b(O)),1)])]),_:3},8,["id","for","class","style"])):ce("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),V("div",{class:H(b(s).e("content")),style:Xe(b(m))},[ye(K.$slots,"default"),J(Q9,{name:`${b(s).namespace.value}-zoom-in-top`},{default:le(()=>[b(I)?ye(K.$slots,"error",{key:0,error:d.value},()=>[V("div",{class:H(b(w))},me(d.value),3)]):ce("v-if",!0)]),_:3},8,["name"])],6)],10,a7e)}}});var Ete=ke(o7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const s7e=kt(S9e,{FormItem:Ete}),l7e=Pn(Ete);let xs;const u7e=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
${UJ()?"":"overflow:hidden !important;"}
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,c7e=["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 f7e(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:c7e.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:n,borderSize:a,boxSizing:r}}function ZG(e,t=1,r){var n;xs||(xs=document.createElement("textarea"),document.body.appendChild(xs));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=f7e(e);xs.setAttribute("style",`${s};${u7e}`),xs.value=e.value||e.placeholder||"";let l=xs.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),xs.value="";const c=xs.scrollHeight-a;if(ct(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(ct(r)){let f=c*r;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(n=xs.parentNode)==null||n.removeChild(xs),xs=void 0,u}const d7e=Oe({id:{type:String,default:void 0},size:Ga,disabled:Boolean,modelValue:{type:fe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:fe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Zr},prefixIcon:{type:Zr},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:fe([Object,Array,String]),default:()=>mn({})},autofocus:{type:Boolean,default:!1}}),h7e={[Nt]:e=>wt(e),input:e=>wt(e),change:e=>wt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},v7e=["role"],p7e=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],g7e=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],m7e=te({name:"ElInput",inheritAttrs:!1}),y7e=te({...m7e,props:d7e,emits:h7e,setup(e,{expose:t,emit:r}){const n=e,a=Jh(),i=$a(),o=F(()=>{const Pe={};return n.containerRole==="combobox"&&(Pe["aria-haspopup"]=a["aria-haspopup"],Pe["aria-owns"]=a["aria-owns"],Pe["aria-expanded"]=a["aria-expanded"]),Pe}),s=F(()=>[n.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",Q.value),{[p.b("group")]:i.prepend||i.append,[p.bm("group","append")]:i.append,[p.bm("group","prepend")]:i.prepend,[p.m("prefix")]:i.prefix||n.prefixIcon,[p.m("suffix")]:i.suffix||n.suffixIcon||n.clearable||n.showPassword,[p.bm("suffix","password-clear")]:z.value&&$.value},a.class]),l=F(()=>[p.e("wrapper"),p.is("focus",M.value)]),u=n3({excludeKeys:F(()=>Object.keys(o.value))}),{form:c,formItem:f}=Vi(),{inputId:d}=$f(n,{formItemContext:f}),h=ca(),v=ho(),p=Ce("input"),g=Ce("textarea"),m=yr(),y=yr(),_=G(!1),w=G(!1),x=G(!1),S=G(),T=yr(n.inputStyle),A=F(()=>m.value||y.value),{wrapperRef:C,isFocused:M,handleFocus:E,handleBlur:D}=xte(A,{afterBlur(){var Pe;n.validateEvent&&((Pe=f==null?void 0:f.validate)==null||Pe.call(f,"blur").catch(Ue=>void 0))}}),P=F(()=>{var Pe;return(Pe=c==null?void 0:c.statusIcon)!=null?Pe:!1}),L=F(()=>(f==null?void 0:f.validateState)||""),I=F(()=>L.value&&t3[L.value]),O=F(()=>x.value?kUe:iUe),R=F(()=>[a.style,n.inputStyle]),B=F(()=>[n.inputStyle,T.value,{resize:n.resize}]),k=F(()=>Qn(n.modelValue)?"":String(n.modelValue)),z=F(()=>n.clearable&&!v.value&&!n.readonly&&!!k.value&&(M.value||_.value)),$=F(()=>n.showPassword&&!v.value&&!n.readonly&&!!k.value&&(!!k.value||M.value)),j=F(()=>n.showWordLimit&&!!u.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!v.value&&!n.readonly&&!n.showPassword),X=F(()=>k.value.length),Q=F(()=>!!j.value&&X.value>Number(u.value.maxlength)),se=F(()=>!!i.suffix||!!n.suffixIcon||z.value||n.showPassword||j.value||!!L.value&&P.value),[ee,K]=UWe(m);di(y,Pe=>{if(re(),!j.value||n.resize!=="both")return;const Ue=Pe[0],{width:gt}=Ue.contentRect;S.value={right:`calc(100% - ${gt+15+6}px)`}});const Z=()=>{const{type:Pe,autosize:Ue}=n;if(!(!ur||Pe!=="textarea"||!y.value))if(Ue){const gt=Vt(Ue)?Ue.minRows:void 0,At=Vt(Ue)?Ue.maxRows:void 0,Gt=ZG(y.value,gt,At);T.value={overflowY:"hidden",...Gt},qe(()=>{y.value.offsetHeight,T.value=Gt})}else T.value={minHeight:ZG(y.value).minHeight}},re=(Pe=>{let Ue=!1;return()=>{var gt;if(Ue||!n.autosize)return;((gt=y.value)==null?void 0:gt.offsetParent)===null||(Pe(),Ue=!0)}})(Z),ie=()=>{const Pe=A.value,Ue=n.formatter?n.formatter(k.value):k.value;!Pe||Pe.value===Ue||(Pe.value=Ue)},Y=async Pe=>{ee();let{value:Ue}=Pe.target;if(n.formatter&&(Ue=n.parser?n.parser(Ue):Ue),!w.value){if(Ue===k.value){ie();return}r(Nt,Ue),r("input",Ue),await qe(),ie(),K()}},q=Pe=>{r("change",Pe.target.value)},oe=Pe=>{r("compositionstart",Pe),w.value=!0},ve=Pe=>{var Ue;r("compositionupdate",Pe);const gt=(Ue=Pe.target)==null?void 0:Ue.value,At=gt[gt.length-1]||"";w.value=!bT(At)},_e=Pe=>{r("compositionend",Pe),w.value&&(w.value=!1,Y(Pe))},ge=()=>{x.value=!x.value,Le()},Le=async()=>{var Pe;await qe(),(Pe=A.value)==null||Pe.focus()},Se=()=>{var Pe;return(Pe=A.value)==null?void 0:Pe.blur()},xe=Pe=>{_.value=!1,r("mouseleave",Pe)},Te=Pe=>{_.value=!0,r("mouseenter",Pe)},Ve=Pe=>{r("keydown",Pe)},He=()=>{var Pe;(Pe=A.value)==null||Pe.select()},je=()=>{r(Nt,""),r("change",""),r("clear"),r("input","")};return Ae(()=>n.modelValue,()=>{var Pe;qe(()=>Z()),n.validateEvent&&((Pe=f==null?void 0:f.validate)==null||Pe.call(f,"change").catch(Ue=>void 0))}),Ae(k,()=>ie()),Ae(()=>n.type,async()=>{await qe(),ie(),Z()}),xt(()=>{!n.formatter&&n.parser,ie(),qe(Z)}),t({input:m,textarea:y,ref:A,textareaStyle:B,autosize:Sn(n,"autosize"),focus:Le,blur:Se,select:He,clear:je,resizeTextarea:Z}),(Pe,Ue)=>Ct((N(),U("div",Ut(b(o),{class:b(s),style:b(R),role:Pe.containerRole,onMouseenter:Te,onMouseleave:xe}),[ce(" input "),Pe.type!=="textarea"?(N(),U(Be,{key:0},[ce(" prepend slot "),Pe.$slots.prepend?(N(),U("div",{key:0,class:H(b(p).be("group","prepend"))},[ye(Pe.$slots,"prepend")],2)):ce("v-if",!0),V("div",{ref_key:"wrapperRef",ref:C,class:H(b(l))},[ce(" prefix slot "),Pe.$slots.prefix||Pe.prefixIcon?(N(),U("span",{key:0,class:H(b(p).e("prefix"))},[V("span",{class:H(b(p).e("prefix-inner"))},[ye(Pe.$slots,"prefix"),Pe.prefixIcon?(N(),he(b(Ze),{key:0,class:H(b(p).e("icon"))},{default:le(()=>[(N(),he(Ft(Pe.prefixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0),V("input",Ut({id:b(d),ref_key:"input",ref:m,class:b(p).e("inner")},b(u),{type:Pe.showPassword?x.value?"text":"password":Pe.type,disabled:b(v),formatter:Pe.formatter,parser:Pe.parser,readonly:Pe.readonly,autocomplete:Pe.autocomplete,tabindex:Pe.tabindex,"aria-label":Pe.label,placeholder:Pe.placeholder,style:Pe.inputStyle,form:n.form,autofocus:n.autofocus,onCompositionstart:oe,onCompositionupdate:ve,onCompositionend:_e,onInput:Y,onFocus:Ue[0]||(Ue[0]=(...gt)=>b(E)&&b(E)(...gt)),onBlur:Ue[1]||(Ue[1]=(...gt)=>b(D)&&b(D)(...gt)),onChange:q,onKeydown:Ve}),null,16,p7e),ce(" suffix slot "),b(se)?(N(),U("span",{key:1,class:H(b(p).e("suffix"))},[V("span",{class:H(b(p).e("suffix-inner"))},[!b(z)||!b($)||!b(j)?(N(),U(Be,{key:0},[ye(Pe.$slots,"suffix"),Pe.suffixIcon?(N(),he(b(Ze),{key:0,class:H(b(p).e("icon"))},{default:le(()=>[(N(),he(Ft(Pe.suffixIcon)))]),_:1},8,["class"])):ce("v-if",!0)],64)):ce("v-if",!0),b(z)?(N(),he(b(Ze),{key:1,class:H([b(p).e("icon"),b(p).e("clear")]),onMousedown:it(b(zr),["prevent"]),onClick:je},{default:le(()=>[J(b(zf))]),_:1},8,["class","onMousedown"])):ce("v-if",!0),b($)?(N(),he(b(Ze),{key:2,class:H([b(p).e("icon"),b(p).e("password")]),onClick:ge},{default:le(()=>[(N(),he(Ft(b(O))))]),_:1},8,["class"])):ce("v-if",!0),b(j)?(N(),U("span",{key:3,class:H(b(p).e("count"))},[V("span",{class:H(b(p).e("count-inner"))},me(b(X))+" / "+me(b(u).maxlength),3)],2)):ce("v-if",!0),b(L)&&b(I)&&b(P)?(N(),he(b(Ze),{key:4,class:H([b(p).e("icon"),b(p).e("validateIcon"),b(p).is("loading",b(L)==="validating")])},{default:le(()=>[(N(),he(Ft(b(I))))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)):ce("v-if",!0)],2),ce(" append slot "),Pe.$slots.append?(N(),U("div",{key:1,class:H(b(p).be("group","append"))},[ye(Pe.$slots,"append")],2)):ce("v-if",!0)],64)):(N(),U(Be,{key:1},[ce(" textarea "),V("textarea",Ut({id:b(d),ref_key:"textarea",ref:y,class:b(g).e("inner")},b(u),{tabindex:Pe.tabindex,disabled:b(v),readonly:Pe.readonly,autocomplete:Pe.autocomplete,style:b(B),"aria-label":Pe.label,placeholder:Pe.placeholder,form:n.form,autofocus:n.autofocus,onCompositionstart:oe,onCompositionupdate:ve,onCompositionend:_e,onInput:Y,onFocus:Ue[2]||(Ue[2]=(...gt)=>b(E)&&b(E)(...gt)),onBlur:Ue[3]||(Ue[3]=(...gt)=>b(D)&&b(D)(...gt)),onChange:q,onKeydown:Ve}),null,16,g7e),b(j)?(N(),U("span",{key:0,style:Xe(S.value),class:H(b(p).e("count"))},me(b(X))+" / "+me(b(u).maxlength),7)):ce("v-if",!0)],64))],16,v7e)),[[hr,Pe.type!=="hidden"]])}});var _7e=ke(y7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const li=kt(_7e),pp=4,Mte={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"}},b7e=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),Dte=Symbol("scrollbarContextKey"),w7e=Oe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),S7e="Thumb",x7e=te({__name:"thumb",props:w7e,setup(e){const t=e,r=Ye(Dte),n=Ce("scrollbar");r||ua(S7e,"can not inject scrollbar context");const a=G(),i=G(),o=G({}),s=G(!1);let l=!1,u=!1,c=ur?document.onselectstart:null;const f=F(()=>Mte[t.vertical?"vertical":"horizontal"]),d=F(()=>b7e({size:t.size,move:t.move,bar:f.value})),h=F(()=>a.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=S=>{var T;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(T=window.getSelection())==null||T.removeAllRanges(),g(S);const A=S.currentTarget;A&&(o.value[f.value.axis]=A[f.value.offset]-(S[f.value.client]-A.getBoundingClientRect()[f.value.direction]))},p=S=>{if(!i.value||!a.value||!r.wrapElement)return;const T=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),A=i.value[f.value.offset]/2,C=(T-A)*100*h.value/a.value[f.value.offset];r.wrapElement[f.value.scroll]=C*r.wrapElement[f.value.scrollSize]/100},g=S=>{S.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=S=>{if(!a.value||!i.value||l===!1)return;const T=o.value[f.value.axis];if(!T)return;const A=(a.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,C=i.value[f.value.offset]-T,M=(A-C)*100*h.value/a.value[f.value.offset];r.wrapElement[f.value.scroll]=M*r.wrapElement[f.value.scrollSize]/100},y=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},w=()=>{u=!0,s.value=l};un(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return dn(Sn(r,"scrollbarElement"),"mousemove",_),dn(Sn(r,"scrollbarElement"),"mouseleave",w),(S,T)=>(N(),he(Yn,{name:b(n).b("fade"),persisted:""},{default:le(()=>[Ct(V("div",{ref_key:"instance",ref:a,class:H([b(n).e("bar"),b(n).is(b(f).key)]),onMousedown:p},[V("div",{ref_key:"thumb",ref:i,class:H(b(n).e("thumb")),style:Xe(b(d)),onMousedown:v},null,38)],34),[[hr,S.always||s.value]])]),_:1},8,["name"]))}});var qG=ke(x7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const A7e=Oe({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),T7e=te({__name:"bar",props:A7e,setup(e,{expose:t}){const r=e,n=G(0),a=G(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-pp,l=o.offsetWidth-pp;a.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(N(),U(Be,null,[J(qG,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),J(qG,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var C7e=ke(T7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const E7e=Oe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:fe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),M7e={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ct)},D7e="ElScrollbar",P7e=te({name:D7e}),L7e=te({...P7e,props:E7e,emits:M7e,setup(e,{expose:t,emit:r}){const n=e,a=Ce("scrollbar");let i,o;const s=G(),l=G(),u=G(),c=G("0"),f=G("0"),d=G(),h=G(1),v=G(1),p=F(()=>{const T={};return n.height&&(T.height=Hn(n.height)),n.maxHeight&&(T.maxHeight=Hn(n.maxHeight)),[n.wrapStyle,T]}),g=F(()=>[n.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!n.native}]),m=F(()=>[a.e("view"),n.viewClass]),y=()=>{var T;l.value&&((T=d.value)==null||T.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(T,A){Vt(T)?l.value.scrollTo(T):ct(T)&&ct(A)&&l.value.scrollTo(T,A)}const w=T=>{ct(T)&&(l.value.scrollTop=T)},x=T=>{ct(T)&&(l.value.scrollLeft=T)},S=()=>{if(!l.value)return;const T=l.value.offsetHeight-pp,A=l.value.offsetWidth-pp,C=T**2/l.value.scrollHeight,M=A**2/l.value.scrollWidth,E=Math.max(C,n.minSize),D=Math.max(M,n.minSize);h.value=C/(T-C)/(E/(T-E)),v.value=M/(A-M)/(D/(A-D)),f.value=E+pp<T?`${E}px`:"",c.value=D+pp<A?`${D}px`:""};return Ae(()=>n.noresize,T=>{T?(i==null||i(),o==null||o()):({stop:i}=di(u,S),o=dn("resize",S))},{immediate:!0}),Ae(()=>[n.maxHeight,n.height],()=>{n.native||qe(()=>{var T;S(),l.value&&((T=d.value)==null||T.handleScroll(l.value))})}),Wt(Dte,Ar({scrollbarElement:s,wrapElement:l})),xt(()=>{n.native||qe(()=>{S()})}),qu(()=>S()),t({wrapRef:l,update:S,scrollTo:_,setScrollTop:w,setScrollLeft:x,handleScroll:y}),(T,A)=>(N(),U("div",{ref_key:"scrollbarRef",ref:s,class:H(b(a).b())},[V("div",{ref_key:"wrapRef",ref:l,class:H(b(g)),style:Xe(b(p)),onScroll:y},[(N(),he(Ft(T.tag),{id:T.id,ref_key:"resizeRef",ref:u,class:H(b(m)),style:Xe(T.viewStyle),role:T.role,"aria-label":T.ariaLabel,"aria-orientation":T.ariaOrientation},{default:le(()=>[ye(T.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),T.native?ce("v-if",!0):(N(),he(C7e,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:T.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var I7e=ke(L7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ic=kt(I7e),w3=Symbol("popper"),Pte=Symbol("popperContent"),R7e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Lte=Oe({role:{type:String,values:R7e,default:"tooltip"}}),O7e=te({name:"ElPopper",inheritAttrs:!1}),k7e=te({...O7e,props:Lte,setup(e,{expose:t}){const r=e,n=G(),a=G(),i=G(),o=G(),s=F(()=>r.role),l={triggerRef:n,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),Wt(w3,l),(u,c)=>ye(u.$slots,"default")}});var N7e=ke(k7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Ite=Oe({arrowOffset:{type:Number,default:5}}),B7e=te({name:"ElPopperArrow",inheritAttrs:!1}),F7e=te({...B7e,props:Ite,setup(e,{expose:t}){const r=e,n=Ce("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Ye(Pte,void 0);return Ae(()=>r.arrowOffset,s=>{a.value=s}),un(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(N(),U("span",{ref_key:"arrowRef",ref:i,class:H(b(n).e("arrow")),style:Xe(b(o)),"data-popper-arrow":""},null,6))}});var V7e=ke(F7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const z7e="ElOnlyChild",Rte=te({name:z7e,setup(e,{slots:t,attrs:r}){var n;const a=Ye(ste),i=vWe((n=a==null?void 0:a.setForwardRef)!=null?n:zr);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=Ote(s);return l?Ct(Fu(l,r),[[i]]):null}}});function Ote(e){if(!e)return null;const t=e;for(const r of t){if(Vt(r))switch(r.type){case Ei:continue;case Og:case"svg":return QG(r);case Be:return Ote(r.children);default:return r}return QG(r)}return null}function QG(e){const t=Ce("only-child");return J("span",{class:t.e("content")},[e])}const kte=Oe({virtualRef:{type:fe(Object)},virtualTriggering:Boolean,onMouseenter:{type:fe(Function)},onMouseleave:{type:fe(Function)},onClick:{type:fe(Function)},onKeydown:{type:fe(Function)},onFocus:{type:fe(Function)},onBlur:{type:fe(Function)},onContextmenu:{type:fe(Function)},id:String,open:Boolean}),H7e=te({name:"ElPopperTrigger",inheritAttrs:!1}),G7e=te({...H7e,props:kte,setup(e,{expose:t}){const r=e,{role:n,triggerRef:a}=Ye(w3,void 0);hWe(a);const i=F(()=>s.value?r.id:void 0),o=F(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=F(()=>{if(n&&n.value!=="tooltip")return n.value}),l=F(()=>s.value?`${r.open}`:void 0);let u;return xt(()=>{Ae(()=>r.virtualRef,c=>{c&&(a.value=Ji(c))},{immediate:!0}),Ae(a,(c,f)=>{u==null||u(),u=void 0,us(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=Ae([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{Qn(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),us(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),un(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?ce("v-if",!0):(N(),he(b(Rte),Ut({key:0},c.$attrs,{"aria-controls":b(i),"aria-describedby":b(o),"aria-expanded":b(l),"aria-haspopup":b(s)}),{default:le(()=>[ye(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var U7e=ke(G7e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const BM="focus-trap.focus-after-trapped",FM="focus-trap.focus-after-released",$7e="focus-trap.focusout-prevented",JG={cancelable:!0,bubbles:!1},W7e={cancelable:!0,bubbles:!1},eU="focusAfterTrapped",tU="focusAfterReleased",S3=Symbol("elFocusTrap"),x3=G(),MT=G(0),A3=G(0);let uw=0;const Nte=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},rU=(e,t)=>{for(const r of e)if(!Y7e(r,t))return r},Y7e=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},j7e=e=>{const t=Nte(e),r=rU(t,e),n=rU(t.reverse(),e);return[r,n]},K7e=e=>e instanceof HTMLInputElement&&"select"in e,Rc=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),A3.value=window.performance.now(),e!==r&&K7e(e)&&t&&e.select()}};function nU(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const X7e=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=nU(e,n),e.unshift(n)},remove:n=>{var a,i;e=nU(e,n),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},Z7e=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Rc(n,t),document.activeElement!==r)return},aU=X7e(),q7e=()=>MT.value>A3.value,cw=()=>{x3.value="pointer",MT.value=window.performance.now()},iU=()=>{x3.value="keyboard",MT.value=window.performance.now()},Q7e=()=>(xt(()=>{uw===0&&(document.addEventListener("mousedown",cw),document.addEventListener("touchstart",cw),document.addEventListener("keydown",iU)),uw++}),un(()=>{uw--,uw<=0&&(document.removeEventListener("mousedown",cw),document.removeEventListener("touchstart",cw),document.removeEventListener("keydown",iU))}),{focusReason:x3,lastUserFocusTimestamp:MT,lastAutomatedFocusTimestamp:A3}),fw=e=>new CustomEvent($7e,{...W7e,detail:e}),J7e=te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[eU,tU,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=G();let n,a;const{focusReason:i}=Q7e();uWe(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:y,currentTarget:_,shiftKey:w}=v,{loop:x}=e,S=p===Qe.tab&&!g&&!m&&!y,T=document.activeElement;if(S&&T){const A=_,[C,M]=j7e(A);if(C&&M){if(!w&&T===M){const D=fw({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(v.preventDefault(),x&&Rc(C,!0))}else if(w&&[C,A].includes(T)){const D=fw({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(v.preventDefault(),x&&Rc(M,!0))}}else if(T===A){const D=fw({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||v.preventDefault()}}};Wt(S3,{focusTrapRef:r,onKeydown:s}),Ae(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),Ae([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(eU,v)},u=v=>t(tU,v),c=v=>{const p=b(r);if(!p)return;const g=v.target,m=v.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?a=g:Rc(a,!0))},f=v=>{const p=b(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!Qn(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=fw({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||Rc(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await qe();const v=b(r);if(v){aU.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(BM,JG);v.addEventListener(BM,l),v.dispatchEvent(m),m.defaultPrevented||qe(()=>{let y=e.focusStartEl;wt(y)||(Rc(y),document.activeElement!==y&&(y="first")),y==="first"&&Z7e(Nte(v),!0),(document.activeElement===p||y==="container")&&Rc(v)})}}}function h(){const v=b(r);if(v){v.removeEventListener(BM,l);const p=new CustomEvent(FM,{...JG,detail:{focusReason:i.value}});v.addEventListener(FM,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!q7e()||v.contains(document.activeElement))&&Rc(n??document.body),v.removeEventListener(FM,u),aU.remove(o)}}return xt(()=>{e.trapped&&d(),Ae(()=>e.trapped,v=>{v?d():h()})}),un(()=>{e.trapped&&h()}),{onKeydown:s}}});function eYe(e,t,r,n,a,i){return ye(e.$slots,"default",{handleKeydown:e.onKeydown})}var DT=ke(J7e,[["render",eYe],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const tYe=["fixed","absolute"],rYe=Oe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:fe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:dv,default:"bottom"},popperOptions:{type:fe(Object),default:()=>({})},strategy:{type:String,values:tYe,default:"absolute"}}),Bte=Oe({...rYe,id:String,style:{type:fe([String,Array,Object])},className:{type:fe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:fe([String,Array,Object])},popperStyle:{type:fe([String,Array,Object])},referenceEl:{type:fe(Object)},triggerTargetEl:{type:fe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),nYe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},aYe=(e,t=[])=>{const{placement:r,strategy:n,popperOptions:a}=e,i={placement:r,strategy:n,...a,modifiers:[...oYe(e),...t]};return sYe(i,a==null?void 0:a.modifiers),i},iYe=e=>{if(ur)return Ji(e)};function oYe(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function sYe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const lYe=0,uYe=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:n,role:a}=Ye(w3,void 0),i=G(),o=G(),s=F(()=>({name:"eventListeners",enabled:!!e.visible})),l=F(()=>{var m;const y=b(i),_=(m=b(o))!=null?m:lYe;return{name:"arrow",enabled:!Tee(y),options:{element:y,padding:_}}}),u=F(()=>({onFirstUpdate:()=>{v()},...aYe(e,[b(l),b(s)])})),c=F(()=>iYe(e.referenceEl)||b(n)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=iWe(c,r,u);return Ae(g,m=>t.value=m),xt(()=>{Ae(()=>{var m;return(m=b(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:i,contentRef:r,instanceRef:g,state:d,styles:h,role:a,forceUpdate:p,update:v}},cYe=(e,{attributes:t,styles:r,role:n})=>{const{nextZIndex:a}=im(),i=Ce("popper"),o=F(()=>b(t).popper),s=G(ct(e.zIndex)?e.zIndex:a()),l=F(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=F(()=>[{zIndex:b(s)},b(r).popper,e.popperStyle||{}]),c=F(()=>n.value==="dialog"?"false":void 0),f=F(()=>b(r).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=ct(e.zIndex)?e.zIndex:a()}}},fYe=(e,t)=>{const r=G(!1),n=G();return{focusStartRef:n,trapped:r,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(n.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!r.value&&(u.target&&(n.value=u.target),r.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},dYe=te({name:"ElPopperContent"}),hYe=te({...dYe,props:Bte,emits:nYe,setup(e,{expose:t,emit:r}){const n=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=fYe(n,r),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=uYe(n),{ariaModal:y,arrowStyle:_,contentAttrs:w,contentClass:x,contentStyle:S,updateZIndex:T}=cYe(n,{styles:v,attributes:f,role:g}),A=Ye(Yl,void 0),C=G();Wt(Pte,{arrowStyle:_,arrowRef:d,arrowOffset:C}),A&&(A.addInputId||A.removeInputId)&&Wt(Yl,{...A,addInputId:zr,removeInputId:zr});let M;const E=(P=!0)=>{m(),P&&T()},D=()=>{E(!1),n.visible&&n.focusOnShow?i.value=!0:n.visible===!1&&(i.value=!1)};return xt(()=>{Ae(()=>n.triggerTargetEl,(P,L)=>{M==null||M(),M=void 0;const I=b(P||h.value),O=b(L||h.value);us(I)&&(M=Ae([g,()=>n.ariaLabel,y,()=>n.id],R=>{["role","aria-label","aria-modal","id"].forEach((B,k)=>{Qn(R[k])?I.removeAttribute(B):I.setAttribute(B,R[k])})},{immediate:!0})),O!==I&&us(O)&&["role","aria-label","aria-modal","id"].forEach(R=>{O.removeAttribute(R)})},{immediate:!0}),Ae(()=>n.visible,D,{immediate:!0})}),un(()=>{M==null||M(),M=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:E,contentStyle:S}),(P,L)=>(N(),U("div",Ut({ref_key:"contentRef",ref:h},b(w),{style:b(S),class:b(x),tabindex:"-1",onMouseenter:L[0]||(L[0]=I=>P.$emit("mouseenter",I)),onMouseleave:L[1]||(L[1]=I=>P.$emit("mouseleave",I))}),[J(b(DT),{trapped:b(i),"trap-on-focus-in":!0,"focus-trap-el":b(h),"focus-start-el":b(a),onFocusAfterTrapped:b(s),onFocusAfterReleased:b(o),onFocusin:b(l),onFocusoutPrevented:b(u),onReleaseRequested:b(c)},{default:le(()=>[ye(P.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var vYe=ke(hYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Fte=kt(N7e),PT=Symbol("elTooltip"),Va=Oe({...dWe,...Bte,appendTo:{type:fe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:fe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),b_=Oe({...kte,disabled:Boolean,trigger:{type:fe([String,Array]),default:"hover"},triggerKeys:{type:fe(Array),default:()=>[Qe.enter,Qe.space]}}),{useModelToggleProps:pYe,useModelToggleEmits:gYe,useModelToggle:mYe}=$ee("visible"),yYe=Oe({...Lte,...pYe,...Va,...b_,...Ite,showArrow:{type:Boolean,default:!0}}),_Ye=[...gYe,"before-show","before-hide","show","hide","open","close"],bYe=(e,t)=>We(e)?e.includes(t):e===t,Hv=(e,t,r)=>n=>{bYe(b(e),t)&&r(n)},wYe=te({name:"ElTooltipTrigger"}),SYe=te({...wYe,props:b_,setup(e,{expose:t}){const r=e,n=Ce("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Ye(PT,void 0),c=G(null),f=()=>{if(b(a)||r.disabled)return!0},d=Sn(r,"trigger"),h=Mn(f,Hv(d,"hover",s)),v=Mn(f,Hv(d,"hover",l)),p=Mn(f,Hv(d,"click",w=>{w.button===0&&u(w)})),g=Mn(f,Hv(d,"focus",s)),m=Mn(f,Hv(d,"focus",l)),y=Mn(f,Hv(d,"contextmenu",w=>{w.preventDefault(),u(w)})),_=Mn(f,w=>{const{code:x}=w;r.triggerKeys.includes(x)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,x)=>(N(),he(b(U7e),{id:b(i),"virtual-ref":w.virtualRef,open:b(o),"virtual-triggering":w.virtualTriggering,class:H(b(n).e("trigger")),onBlur:b(m),onClick:b(p),onContextmenu:b(y),onFocus:b(g),onMouseenter:b(h),onMouseleave:b(v),onKeydown:b(_)},{default:le(()=>[ye(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var xYe=ke(SYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const AYe=te({name:"ElTooltipContent",inheritAttrs:!1}),TYe=te({...AYe,props:Va,setup(e,{expose:t}){const r=e,{selector:n}=ite(),a=Ce("tooltip"),i=G(null),o=G(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Ye(PT,void 0),m=F(()=>r.transition||`${a.namespace.value}-fade-in-linear`),y=F(()=>r.persistent);un(()=>{o.value=!0});const _=F(()=>b(y)?!0:b(u)),w=F(()=>r.disabled?!1:b(u)),x=F(()=>r.appendTo||n.value),S=F(()=>{var R;return(R=r.style)!=null?R:{}}),T=F(()=>!b(u)),A=()=>{v()},C=()=>{if(b(s))return!0},M=Mn(C,()=>{r.enterable&&b(c)==="hover"&&d()}),E=Mn(C,()=>{b(c)==="hover"&&f()}),D=()=>{var R,B;(B=(R=i.value)==null?void 0:R.updatePopper)==null||B.call(R),p==null||p()},P=()=>{g==null||g()},L=()=>{h(),O=RN(F(()=>{var R;return(R=i.value)==null?void 0:R.popperContentRef}),()=>{if(b(s))return;b(c)!=="hover"&&f()})},I=()=>{r.virtualTriggering||f()};let O;return Ae(()=>b(u),R=>{R||O==null||O()},{flush:"post"}),Ae(()=>r.content,()=>{var R,B;(B=(R=i.value)==null?void 0:R.updatePopper)==null||B.call(R)}),t({contentRef:i}),(R,B)=>(N(),he(W_,{disabled:!R.teleported,to:b(x)},[J(Yn,{name:b(m),onAfterLeave:A,onBeforeEnter:D,onAfterEnter:L,onBeforeLeave:P},{default:le(()=>[b(_)?Ct((N(),he(b(vYe),Ut({key:0,id:b(l),ref_key:"contentRef",ref:i},R.$attrs,{"aria-label":R.ariaLabel,"aria-hidden":b(T),"boundaries-padding":R.boundariesPadding,"fallback-placements":R.fallbackPlacements,"gpu-acceleration":R.gpuAcceleration,offset:R.offset,placement:R.placement,"popper-options":R.popperOptions,strategy:R.strategy,effect:R.effect,enterable:R.enterable,pure:R.pure,"popper-class":R.popperClass,"popper-style":[R.popperStyle,b(S)],"reference-el":R.referenceEl,"trigger-target-el":R.triggerTargetEl,visible:b(w),"z-index":R.zIndex,onMouseenter:b(M),onMouseleave:b(E),onBlur:I,onClose:b(f)}),{default:le(()=>[o.value?ce("v-if",!0):ye(R.$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"])),[[hr,b(w)]]):ce("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var CYe=ke(TYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const EYe=["innerHTML"],MYe={key:1},DYe=te({name:"ElTooltip"}),PYe=te({...DYe,props:yYe,emits:_Ye,setup(e,{expose:t,emit:r}){const n=e;fWe();const a=co(),i=G(),o=G(),s=()=>{var m;const y=b(i);y&&((m=y.popperInstanceRef)==null||m.update())},l=G(!1),u=G(),{show:c,hide:f,hasUpdateHandler:d}=mYe({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=ote({showAfter:Sn(n,"showAfter"),hideAfter:Sn(n,"hideAfter"),autoClose:Sn(n,"autoClose"),open:c,close:f}),p=F(()=>la(n.visible)&&!d.value);Wt(PT,{controlled:p,id:a,open:Rg(l),trigger:Sn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{b(l)?v(m):h(m)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),Ae(()=>n.disabled,m=>{m&&l.value&&(l.value=!1)});const g=m=>{var y,_;const w=(_=(y=o.value)==null?void 0:y.contentRef)==null?void 0:_.popperContentRef,x=(m==null?void 0:m.relatedTarget)||document.activeElement;return w&&w.contains(x)};return C9(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,y)=>(N(),he(b(Fte),{ref_key:"popperRef",ref:i,role:m.role},{default:le(()=>[J(xYe,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:le(()=>[m.$slots.default?ye(m.$slots,"default",{key:0}):ce("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),J(CYe,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:le(()=>[ye(m.$slots,"content",{},()=>[m.rawContent?(N(),U("span",{key:0,innerHTML:m.content},null,8,EYe)):(N(),U("span",MYe,me(m.content),1))]),m.showArrow?(N(),he(b(V7e),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):ce("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 LYe=ke(PYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Bi=kt(LYe),IYe=Oe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:fe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:fe([Function,Array]),default:zr},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Va.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),RYe={[Nt]:e=>wt(e),[Di]:e=>wt(e),[ln]:e=>wt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Vt(e)},OYe=["aria-expanded","aria-owns"],kYe={key:0},NYe=["id","aria-selected","onClick"],Vte="ElAutocomplete",BYe=te({name:Vte,inheritAttrs:!1}),FYe=te({...BYe,props:IYe,emits:RYe,setup(e,{expose:t,emit:r}){const n=e,a=n3(),i=Jh(),o=ho(),s=Ce("autocomplete"),l=G(),u=G(),c=G(),f=G();let d=!1,h=!1;const v=G([]),p=G(-1),g=G(""),m=G(!1),y=G(!1),_=G(!1),w=F(()=>s.b(String(ST()))),x=F(()=>i.style),S=F(()=>(v.value.length>0||_.value)&&m.value),T=F(()=>!n.hideLoading&&_.value),A=F(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),C=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},M=()=>{p.value=-1},D=Ni(async ee=>{if(y.value)return;const K=Z=>{_.value=!1,!y.value&&(We(Z)?(v.value=Z,p.value=n.highlightFirstItem?0:-1):ua(Vte,"autocomplete suggestions must be an array"))};if(_.value=!0,We(n.fetchSuggestions))K(n.fetchSuggestions);else{const Z=await n.fetchSuggestions(ee,K);We(Z)&&K(Z)}},n.debounce),P=ee=>{const K=!!ee;if(r(Di,ee),r(Nt,ee),y.value=!1,m.value||(m.value=K),!n.triggerOnFocus&&!ee){y.value=!0,v.value=[];return}D(ee)},L=ee=>{var K;o.value||(((K=ee.target)==null?void 0:K.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(m.value=!0)},I=ee=>{r(ln,ee)},O=ee=>{h?h=!1:(m.value=!0,r("focus",ee),n.triggerOnFocus&&!d&&D(String(n.modelValue)))},R=ee=>{setTimeout(()=>{var K;if((K=c.value)!=null&&K.isFocusInsideContent()){h=!0;return}m.value&&$(),r("blur",ee)})},B=()=>{m.value=!1,r(Nt,""),r("clear")},k=async()=>{S.value&&p.value>=0&&p.value<v.value.length?Q(v.value[p.value]):n.selectWhenUnmatched&&(r("select",{value:n.modelValue}),v.value=[],p.value=-1)},z=ee=>{S.value&&(ee.preventDefault(),ee.stopPropagation(),$())},$=()=>{m.value=!1},j=()=>{var ee;(ee=l.value)==null||ee.focus()},X=()=>{var ee;(ee=l.value)==null||ee.blur()},Q=async ee=>{r(Di,ee[n.valueKey]),r(Nt,ee[n.valueKey]),r("select",ee),v.value=[],p.value=-1},se=ee=>{if(!S.value||_.value)return;if(ee<0){p.value=-1;return}ee>=v.value.length&&(ee=v.value.length-1);const K=u.value.querySelector(`.${s.be("suggestion","wrap")}`),ne=K.querySelectorAll(`.${s.be("suggestion","list")} li`)[ee],re=K.scrollTop,{offsetTop:ie,scrollHeight:Y}=ne;ie+Y>re+K.clientHeight&&(K.scrollTop+=Y),ie<re&&(K.scrollTop-=Y),p.value=ee,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${p.value}`)};return RN(f,()=>{S.value&&$()}),xt(()=>{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-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:m,loading:_,inputRef:l,popperRef:c,suggestions:v,handleSelect:Q,handleKeyEnter:k,focus:j,blur:X,close:$,highlight:se}),(ee,K)=>(N(),he(b(Bi),{ref_key:"popperRef",ref:c,visible:b(S),placement:ee.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[b(s).e("popper"),ee.popperClass],teleported:ee.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${b(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:C,onHide:M},{content:le(()=>[V("div",{ref_key:"regionRef",ref:u,class:H([b(s).b("suggestion"),b(s).is("loading",b(T))]),style:Xe({[ee.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[J(b(ic),{id:b(w),tag:"ul","wrap-class":b(s).be("suggestion","wrap"),"view-class":b(s).be("suggestion","list"),role:"listbox"},{default:le(()=>[b(T)?(N(),U("li",kYe,[J(b(Ze),{class:H(b(s).is("loading"))},{default:le(()=>[J(b(Hf))]),_:1},8,["class"])])):(N(!0),U(Be,{key:1},ht(v.value,(Z,ne)=>(N(),U("li",{id:`${b(w)}-item-${ne}`,key:ne,class:H({highlighted:p.value===ne}),role:"option","aria-selected":p.value===ne,onClick:re=>Q(Z)},[ye(ee.$slots,"default",{item:Z},()=>[nr(me(Z[ee.valueKey]),1)])],10,NYe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:le(()=>[V("div",{ref_key:"listboxRef",ref:f,class:H([b(s).b(),ee.$attrs.class]),style:Xe(b(x)),role:"combobox","aria-haspopup":"listbox","aria-expanded":b(S),"aria-owns":b(w)},[J(b(li),Ut({ref_key:"inputRef",ref:l},b(a),{clearable:ee.clearable,disabled:b(o),name:ee.name,"model-value":ee.modelValue,onInput:P,onChange:I,onFocus:O,onBlur:R,onClear:B,onKeydown:[K[0]||(K[0]=dr(it(Z=>se(p.value-1),["prevent"]),["up"])),K[1]||(K[1]=dr(it(Z=>se(p.value+1),["prevent"]),["down"])),dr(k,["enter"]),dr($,["tab"]),dr(z,["esc"])],onMousedown:L}),Bl({_:2},[ee.$slots.prepend?{name:"prepend",fn:le(()=>[ye(ee.$slots,"prepend")])}:void 0,ee.$slots.append?{name:"append",fn:le(()=>[ye(ee.$slots,"append")])}:void 0,ee.$slots.prefix?{name:"prefix",fn:le(()=>[ye(ee.$slots,"prefix")])}:void 0,ee.$slots.suffix?{name:"suffix",fn:le(()=>[ye(ee.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,OYe)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var VYe=ke(FYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const zYe=kt(VYe),HYe=Oe({size:{type:[Number,String],values:tu,default:"",validator:e=>ct(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Zr},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:fe(String),default:"cover"}}),GYe={error:e=>e instanceof Event},UYe=["src","alt","srcset"],$Ye=te({name:"ElAvatar"}),WYe=te({...$Ye,props:HYe,emits:GYe,setup(e,{emit:t}){const r=e,n=Ce("avatar"),a=G(!1),i=F(()=>{const{size:u,icon:c,shape:f}=r,d=[n.b()];return wt(u)&&d.push(n.m(u)),c&&d.push(n.m("icon")),f&&d.push(n.m(f)),d}),o=F(()=>{const{size:u}=r;return ct(u)?n.cssVarBlock({size:Hn(u)||""}):void 0}),s=F(()=>({objectFit:r.fit}));Ae(()=>r.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(N(),U("span",{class:H(b(i)),style:Xe(b(o))},[(u.src||u.srcSet)&&!a.value?(N(),U("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Xe(b(s)),onError:l},null,44,UYe)):u.icon?(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(u.icon)))]),_:1})):ye(u.$slots,"default",{key:2})],6))}});var YYe=ke(WYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const jYe=kt(YYe),KYe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},XYe={click:e=>e instanceof MouseEvent},ZYe=(e,t,r)=>{const n=yr(),a=yr(),i=G(!1),o=()=>{n.value&&(i.value=n.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=n.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=HJ(o,300,!0);return dn(a,"scroll",l),xt(()=>{var u;a.value=document,n.value=document.documentElement,e.target&&(n.value=(u=document.querySelector(e.target))!=null?u:void 0,n.value||ua(r,`target does not exist: ${e.target}`),a.value=n.value),o()}),{visible:i,handleClick:s}},zte="ElBacktop",qYe=te({name:zte}),QYe=te({...qYe,props:KYe,emits:XYe,setup(e,{emit:t}){const r=e,n=Ce("backtop"),{handleClick:a,visible:i}=ZYe(r,t,zte),o=F(()=>({right:`${r.right}px`,bottom:`${r.bottom}px`}));return(s,l)=>(N(),he(Yn,{name:`${b(n).namespace.value}-fade-in`},{default:le(()=>[b(i)?(N(),U("div",{key:0,style:Xe(b(o)),class:H(b(n).b()),onClick:l[0]||(l[0]=it((...u)=>b(a)&&b(a)(...u),["stop"]))},[ye(s.$slots,"default",{},()=>[J(b(Ze),{class:H(b(n).e("icon"))},{default:le(()=>[J(b(HGe))]),_:1},8,["class"])])],6)):ce("v-if",!0)]),_:3},8,["name"]))}});var JYe=ke(QYe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const eje=kt(JYe),tje=Oe({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"}}),rje=["textContent"],nje=te({name:"ElBadge"}),aje=te({...nje,props:tje,setup(e,{expose:t}){const r=e,n=Ce("badge"),a=F(()=>r.isDot?"":ct(r.value)&&ct(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:a}),(i,o)=>(N(),U("div",{class:H(b(n).b())},[ye(i.$slots,"default"),J(Yn,{name:`${b(n).namespace.value}-zoom-in-center`,persisted:""},{default:le(()=>[Ct(V("sup",{class:H([b(n).e("content"),b(n).em("content",i.type),b(n).is("fixed",!!i.$slots.default),b(n).is("dot",i.isDot)]),textContent:me(b(a))},null,10,rje),[[hr,!i.hidden&&(b(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var ije=ke(aje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Hte=kt(ije),Gte=Symbol("breadcrumbKey"),oje=Oe({separator:{type:String,default:"/"},separatorIcon:{type:Zr}}),sje=te({name:"ElBreadcrumb"}),lje=te({...sje,props:oje,setup(e){const t=e,r=Ce("breadcrumb"),n=G();return Wt(Gte,t),xt(()=>{const a=n.value.querySelectorAll(`.${r.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(N(),U("div",{ref_key:"breadcrumb",ref:n,class:H(b(r).b()),"aria-label":"Breadcrumb",role:"navigation"},[ye(a.$slots,"default")],2))}});var uje=ke(lje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const cje=Oe({to:{type:fe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),fje=te({name:"ElBreadcrumbItem"}),dje=te({...fje,props:cje,setup(e){const t=e,r=It(),n=Ye(Gte,void 0),a=Ce("breadcrumb"),i=r.appContext.config.globalProperties.$router,o=G(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return N(),U("span",{class:H(b(a).e("item"))},[V("span",{ref_key:"link",ref:o,class:H([b(a).e("inner"),b(a).is("link",!!l.to)]),role:"link",onClick:s},[ye(l.$slots,"default")],2),(c=b(n))!=null&&c.separatorIcon?(N(),he(b(Ze),{key:0,class:H(b(a).e("separator"))},{default:le(()=>[(N(),he(Ft(b(n).separatorIcon)))]),_:1},8,["class"])):(N(),U("span",{key:1,class:H(b(a).e("separator")),role:"presentation"},me((f=b(n))==null?void 0:f.separator),3))],2)}}});var Ute=ke(dje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const hje=kt(uje,{BreadcrumbItem:Ute}),vje=Pn(Ute),$te=Symbol("buttonGroupContextKey"),pje=(e,t)=>{Ul({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},F(()=>e.type==="text"));const r=Ye($te,void 0),n=CT("button"),{form:a}=Vi(),i=ca(F(()=>r==null?void 0:r.size)),o=ho(),s=G(),l=$a(),u=F(()=>e.type||(r==null?void 0:r.type)||""),c=F(()=>{var v,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(v=n.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=F(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=F(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(c.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===Og){const m=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(m.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:v=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",v)}}},iI=["default","primary","success","warning","info","danger","text",""],gje=["button","submit","reset"],oI=Oe({size:Ga,disabled:Boolean,type:{type:String,values:iI,default:""},icon:{type:Zr},nativeType:{type:String,values:gje,default:"button"},loading:Boolean,loadingIcon:{type:Zr,default:()=>Hf},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:fe([String,Object]),default:"button"}}),mje={click:e=>e instanceof MouseEvent};function Qa(e,t){yje(e)&&(e="100%");var r=_je(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function dw(e){return Math.min(1,Math.max(0,e))}function yje(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function _je(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Wte(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function hw(e){return e<=1?"".concat(Number(e)*100,"%"):e}function oh(e){return e.length===1?"0"+e:String(e)}function bje(e,t,r){return{r:Qa(e,255)*255,g:Qa(t,255)*255,b:Qa(r,255)*255}}function oU(e,t,r){e=Qa(e,255),t=Qa(t,255),r=Qa(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,s=(n+a)/2;if(n===a)o=0,i=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function VM(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function wje(e,t,r){var n,a,i;if(e=Qa(e,360),t=Qa(t,100),r=Qa(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=VM(s,o,e+1/3),a=VM(s,o,e),i=VM(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function sU(e,t,r){e=Qa(e,255),t=Qa(t,255),r=Qa(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function Sje(e,t,r){e=Qa(e,360)*6,t=Qa(t,100),r=Qa(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,o,i,i,s,r][l],c=[s,r,r,o,i,i][l],f=[i,i,s,r,r,o][l];return{r:u*255,g:c*255,b:f*255}}function lU(e,t,r,n){var a=[oh(Math.round(e).toString(16)),oh(Math.round(t).toString(16)),oh(Math.round(r).toString(16))];return n&&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 xje(e,t,r,n,a){var i=[oh(Math.round(e).toString(16)),oh(Math.round(t).toString(16)),oh(Math.round(r).toString(16)),oh(Aje(n))];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 Aje(e){return Math.round(parseFloat(e)*255).toString(16)}function uU(e){return po(e)/255}function po(e){return parseInt(e,16)}function Tje(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var sI={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 Cje(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=Dje(e)),typeof e=="object"&&(lu(e.r)&&lu(e.g)&&lu(e.b)?(t=bje(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):lu(e.h)&&lu(e.s)&&lu(e.v)?(n=hw(e.s),a=hw(e.v),t=Sje(e.h,n,a),o=!0,s="hsv"):lu(e.h)&&lu(e.s)&&lu(e.l)&&(n=hw(e.s),i=hw(e.l),t=wje(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Wte(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Eje="[-\\+]?\\d+%?",Mje="[-\\+]?\\d*\\.\\d+%?",qc="(?:".concat(Mje,")|(?:").concat(Eje,")"),zM="[\\s|\\(]+(".concat(qc,")[,|\\s]+(").concat(qc,")[,|\\s]+(").concat(qc,")\\s*\\)?"),HM="[\\s|\\(]+(".concat(qc,")[,|\\s]+(").concat(qc,")[,|\\s]+(").concat(qc,")[,|\\s]+(").concat(qc,")\\s*\\)?"),Cs={CSS_UNIT:new RegExp(qc),rgb:new RegExp("rgb"+zM),rgba:new RegExp("rgba"+HM),hsl:new RegExp("hsl"+zM),hsla:new RegExp("hsla"+HM),hsv:new RegExp("hsv"+zM),hsva:new RegExp("hsva"+HM),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 Dje(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(sI[e])e=sI[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Cs.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Cs.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Cs.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Cs.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Cs.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Cs.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Cs.hex8.exec(e),r?{r:po(r[1]),g:po(r[2]),b:po(r[3]),a:uU(r[4]),format:t?"name":"hex8"}:(r=Cs.hex6.exec(e),r?{r:po(r[1]),g:po(r[2]),b:po(r[3]),format:t?"name":"hex"}:(r=Cs.hex4.exec(e),r?{r:po(r[1]+r[1]),g:po(r[2]+r[2]),b:po(r[3]+r[3]),a:uU(r[4]+r[4]),format:t?"name":"hex8"}:(r=Cs.hex3.exec(e),r?{r:po(r[1]+r[1]),g:po(r[2]+r[2]),b:po(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function lu(e){return!!Cs.CSS_UNIT.exec(String(e))}var Yte=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=Tje(t)),this.originalInput=t;var a=Cje(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Wte(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=sU(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=sU(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=oU(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=oU(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),lU(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),xje(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Qa(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Qa(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+lU(this.r,this.g,this.b,!1),r=0,n=Object.entries(sI);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=dw(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=dw(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=dw(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=dw(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(n+o*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function xc(e,t=20){return e.mix("#141414",t).toString()}function Pje(e){const t=ho(),r=Ce("button");return F(()=>{let n={};const a=e.color;if(a){const i=new Yte(a),o=e.dark?i.tint(20).toString():xc(i,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?xc(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?xc(i,50):i.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?xc(i,90):i.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?xc(i,50):i.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?xc(i,80):i.tint(80).toString());else{const s=e.dark?xc(i,30):i.tint(30).toString(),l=i.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":a,"text-color":l,"border-color":a,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?xc(i,50):i.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const Lje=te({name:"ElButton"}),Ije=te({...Lje,props:oI,emits:mje,setup(e,{expose:t,emit:r}){const n=e,a=Pje(n),i=Ce("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=pje(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>(N(),he(Ft(h.tag),Ut({ref_key:"_ref",ref:o},b(c),{class:[b(i).b(),b(i).m(b(l)),b(i).m(b(s)),b(i).is("disabled",b(u)),b(i).is("loading",h.loading),b(i).is("plain",h.plain),b(i).is("round",h.round),b(i).is("circle",h.circle),b(i).is("text",h.text),b(i).is("link",h.link),b(i).is("has-bg",h.bg)],style:b(a),onClick:b(d)}),{default:le(()=>[h.loading?(N(),U(Be,{key:0},[h.$slots.loading?ye(h.$slots,"loading",{key:0}):(N(),he(b(Ze),{key:1,class:H(b(i).is("loading"))},{default:le(()=>[(N(),he(Ft(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(N(),he(b(Ze),{key:1},{default:le(()=>[h.icon?(N(),he(Ft(h.icon),{key:0})):ye(h.$slots,"icon",{key:1})]),_:3})):ce("v-if",!0),h.$slots.default?(N(),U("span",{key:2,class:H({[b(i).em("text","expand")]:b(f)})},[ye(h.$slots,"default")],2)):ce("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Rje=ke(Ije,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Oje={size:oI.size,type:oI.type},kje=te({name:"ElButtonGroup"}),Nje=te({...kje,props:Oje,setup(e){const t=e;Wt($te,Ar({size:Sn(t,"size"),type:Sn(t,"type")}));const r=Ce("button");return(n,a)=>(N(),U("div",{class:H(`${b(r).b("group")}`)},[ye(n.$slots,"default")],2))}});var jte=ke(Nje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Ja=kt(Rje,{ButtonGroup:jte}),Kte=Pn(jte);var oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ru(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xte={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={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(L){var I=["th","st","nd","rd"],O=L%100;return"["+L+(I[(O-20)%10]||I[O]||I[0])+"]"}},_=function(L,I,O){var R=String(L);return!R||R.length>=I?L:""+Array(I+1-R.length).join(O)+L},w={s:_,z:function(L){var I=-L.utcOffset(),O=Math.abs(I),R=Math.floor(O/60),B=O%60;return(I<=0?"+":"-")+_(R,2,"0")+":"+_(B,2,"0")},m:function L(I,O){if(I.date()<O.date())return-L(O,I);var R=12*(O.year()-I.year())+(O.month()-I.month()),B=I.clone().add(R,f),k=O-B<0,z=I.clone().add(R+(k?-1:1),f);return+(-(R+(O-B)/(k?B-z:z-B))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:d}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},x="en",S={};S[x]=y;var T="$isDayjsObject",A=function(L){return L instanceof D||!(!L||!L[T])},C=function L(I,O,R){var B;if(!I)return x;if(typeof I=="string"){var k=I.toLowerCase();S[k]&&(B=k),O&&(S[k]=O,B=k);var z=I.split("-");if(!B&&z.length>1)return L(z[0])}else{var $=I.name;S[$]=I,B=$}return!R&&B&&(x=B),B||!R&&x},M=function(L,I){if(A(L))return L.clone();var O=typeof I=="object"?I:{};return O.date=L,O.args=arguments,new D(O)},E=w;E.l=C,E.i=A,E.w=function(L,I){return M(L,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var D=function(){function L(O){this.$L=C(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[T]=!0}var I=L.prototype;return I.parse=function(O){this.$d=function(R){var B=R.date,k=R.utc;if(B===null)return new Date(NaN);if(E.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var z=B.match(g);if(z){var $=z[2]-1||0,j=(z[7]||"0").substring(0,3);return k?new Date(Date.UTC(z[1],$,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)):new Date(z[1],$,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)}}return new Date(B)}(O),this.init()},I.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},I.$utils=function(){return E},I.isValid=function(){return this.$d.toString()!==p},I.isSame=function(O,R){var B=M(O);return this.startOf(R)<=B&&B<=this.endOf(R)},I.isAfter=function(O,R){return M(O)<this.startOf(R)},I.isBefore=function(O,R){return this.endOf(R)<M(O)},I.$g=function(O,R,B){return E.u(O)?this[R]:this.set(B,O)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(O,R){var B=this,k=!!E.u(R)||R,z=E.p(O),$=function(ne,re){var ie=E.w(B.$u?Date.UTC(B.$y,re,ne):new Date(B.$y,re,ne),B);return k?ie:ie.endOf(u)},j=function(ne,re){return E.w(B.toDate()[ne].apply(B.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(re)),B)},X=this.$W,Q=this.$M,se=this.$D,ee="set"+(this.$u?"UTC":"");switch(z){case h:return k?$(1,0):$(31,11);case f:return k?$(1,Q):$(0,Q+1);case c:var K=this.$locale().weekStart||0,Z=(X<K?X+7:X)-K;return $(k?se-Z:se+(6-Z),Q);case u:case v:return j(ee+"Hours",0);case l:return j(ee+"Minutes",1);case s:return j(ee+"Seconds",2);case o:return j(ee+"Milliseconds",3);default:return this.clone()}},I.endOf=function(O){return this.startOf(O,!1)},I.$set=function(O,R){var B,k=E.p(O),z="set"+(this.$u?"UTC":""),$=(B={},B[u]=z+"Date",B[v]=z+"Date",B[f]=z+"Month",B[h]=z+"FullYear",B[l]=z+"Hours",B[s]=z+"Minutes",B[o]=z+"Seconds",B[i]=z+"Milliseconds",B)[k],j=k===u?this.$D+(R-this.$W):R;if(k===f||k===h){var X=this.clone().set(v,1);X.$d[$](j),X.init(),this.$d=X.set(v,Math.min(this.$D,X.daysInMonth())).$d}else $&&this.$d[$](j);return this.init(),this},I.set=function(O,R){return this.clone().$set(O,R)},I.get=function(O){return this[E.p(O)]()},I.add=function(O,R){var B,k=this;O=Number(O);var z=E.p(R),$=function(Q){var se=M(k);return E.w(se.date(se.date()+Math.round(Q*O)),k)};if(z===f)return this.set(f,this.$M+O);if(z===h)return this.set(h,this.$y+O);if(z===u)return $(1);if(z===c)return $(7);var j=(B={},B[s]=n,B[l]=a,B[o]=r,B)[z]||1,X=this.$d.getTime()+O*j;return E.w(X,this)},I.subtract=function(O,R){return this.add(-1*O,R)},I.format=function(O){var R=this,B=this.$locale();if(!this.isValid())return B.invalidDate||p;var k=O||"YYYY-MM-DDTHH:mm:ssZ",z=E.z(this),$=this.$H,j=this.$m,X=this.$M,Q=B.weekdays,se=B.months,ee=B.meridiem,K=function(re,ie,Y,q){return re&&(re[ie]||re(R,k))||Y[ie].slice(0,q)},Z=function(re){return E.s($%12||12,re,"0")},ne=ee||function(re,ie,Y){var q=re<12?"AM":"PM";return Y?q.toLowerCase():q};return k.replace(m,function(re,ie){return ie||function(Y){switch(Y){case"YY":return String(R.$y).slice(-2);case"YYYY":return E.s(R.$y,4,"0");case"M":return X+1;case"MM":return E.s(X+1,2,"0");case"MMM":return K(B.monthsShort,X,se,3);case"MMMM":return K(se,X);case"D":return R.$D;case"DD":return E.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return K(B.weekdaysMin,R.$W,Q,2);case"ddd":return K(B.weekdaysShort,R.$W,Q,3);case"dddd":return Q[R.$W];case"H":return String($);case"HH":return E.s($,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return ne($,j,!0);case"A":return ne($,j,!1);case"m":return String(j);case"mm":return E.s(j,2,"0");case"s":return String(R.$s);case"ss":return E.s(R.$s,2,"0");case"SSS":return E.s(R.$ms,3,"0");case"Z":return z}return null}(re)||z.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(O,R,B){var k,z=this,$=E.p(R),j=M(O),X=(j.utcOffset()-this.utcOffset())*n,Q=this-j,se=function(){return E.m(z,j)};switch($){case h:k=se()/12;break;case f:k=se();break;case d:k=se()/3;break;case c:k=(Q-X)/6048e5;break;case u:k=(Q-X)/864e5;break;case l:k=Q/a;break;case s:k=Q/n;break;case o:k=Q/r;break;default:k=Q}return B?k:E.a(k)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return S[this.$L]},I.locale=function(O,R){if(!O)return this.$L;var B=this.clone(),k=C(O,R,!0);return k&&(B.$L=k),B},I.clone=function(){return E.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},L}(),P=D.prototype;return M.prototype=P,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(L){P[L[1]]=function(I){return this.$g(I,L[0],L[1])}}),M.extend=function(L,I){return L.$i||(L(I,D,M),L.$i=!0),M},M.locale=C,M.isDayjs=A,M.unix=function(L){return M(1e3*L)},M.en=S[x],M.Ls=S,M.p={},M})})(Xte);var Bje=Xte.exports;const Rt=ru(Bje);var Zte={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){var r={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(g){this[p]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var m=g.match(/([+-]|\d\d)/g),y=60*m[1]+(+m[2]||0);return y===0?0:m[0]==="+"?-y:y}(p)}],f=function(p){var g=s[p];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(p,g){var m,y=s.meridiem;if(y){for(var _=1;_<=24;_+=1)if(p.indexOf(y(_,0,g))>-1){m=_>12;break}}else m=p===(g?"pm":"PM");return m},h={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(p){var g=s.ordinal,m=p.match(/\d+/);if(this.day=m[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===p&&(this.day=y)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(p){var g=f("months"),m=(f("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[o,function(p){var g=f("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(p){var g,m;g=p,m=s&&s.formats;for(var y=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,M,E){var D=E&&E.toUpperCase();return M||m[E]||r[E]||m[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,L,I){return L||I.slice(1)})})).match(n),_=y.length,w=0;w<_;w+=1){var x=y[w],S=h[x],T=S&&S[0],A=S&&S[1];y[w]=A?{regex:T,parser:A}:x.replace(/^\[|\]$/g,"")}return function(C){for(var M={},E=0,D=0;E<_;E+=1){var P=y[E];if(typeof P=="string")D+=P.length;else{var L=P.regex,I=P.parser,O=C.slice(D),R=L.exec(O)[0];I.call(M,R),C=C.replace(R,"")}}return function(B){var k=B.afternoon;if(k!==void 0){var z=B.hours;k?z<12&&(B.hours+=12):z===12&&(B.hours=0),delete B.afternoon}}(M),M}}return function(p,g,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var y=g.prototype,_=y.parse;y.parse=function(w){var x=w.date,S=w.utc,T=w.args;this.$u=S;var A=T[1];if(typeof A=="string"){var C=T[2]===!0,M=T[3]===!0,E=C||M,D=T[2];M&&(D=T[2]),s=this.$locale(),!C&&D&&(s=m.Ls[D]),this.$d=function(O,R,B){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*O);var k=v(R)(O),z=k.year,$=k.month,j=k.day,X=k.hours,Q=k.minutes,se=k.seconds,ee=k.milliseconds,K=k.zone,Z=new Date,ne=j||(z||$?1:Z.getDate()),re=z||Z.getFullYear(),ie=0;z&&!$||(ie=$>0?$-1:Z.getMonth());var Y=X||0,q=Q||0,oe=se||0,ve=ee||0;return K?new Date(Date.UTC(re,ie,ne,Y,q,oe,ve+60*K.offset*1e3)):B?new Date(Date.UTC(re,ie,ne,Y,q,oe,ve)):new Date(re,ie,ne,Y,q,oe,ve)}catch{return new Date("")}}(x,A,S),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),E&&x!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var P=A.length,L=1;L<=P;L+=1){T[1]=A[L-1];var I=m.apply(this,T);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}L===P&&(this.$d=new Date(""))}else _.call(this,w)}}})})(Zte);var Fje=Zte.exports;const T3=ru(Fje),cU=["hours","minutes","seconds"],lI="HH:mm:ss",op="YYYY-MM-DD",Vje={date:op,dates:op,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${op} ${lI}`,monthrange:"YYYY-MM",daterange:op,datetimerange:`${op} ${lI}`},GM=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],hf=e=>Array.from(Array.from({length:e}).keys()),qte=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Qte=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),fU=function(e,t){const r=Rh(e),n=Rh(t);return r&&n?e.getTime()===t.getTime():!r&&!n?e===t:!1},dU=function(e,t){const r=We(e),n=We(t);return r&&n?e.length!==t.length?!1:e.every((a,i)=>fU(a,t[i])):!r&&!n?fU(e,t):!1},hU=function(e,t,r){const n=qo(t)||t==="x"?Rt(e).locale(r):Rt(e,t).locale(r);return n.isValid()?n:void 0},vU=function(e,t,r){return qo(t)?e:t==="x"?+e:Rt(e).locale(r).format(t)},UM=(e,t)=>{var r;const n=[],a=t==null?void 0:t();for(let i=0;i<e;i++)n.push((r=a==null?void 0:a.includes(i))!=null?r:!1);return n},Jte=Oe({disabledHours:{type:fe(Function)},disabledMinutes:{type:fe(Function)},disabledSeconds:{type:fe(Function)}}),ere=Oe({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),C3=Oe({id:{type:fe([Array,String])},name:{type:fe([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:fe([String,Object]),default:zf},editable:{type:Boolean,default:!0},prefixIcon:{type:fe([String,Object]),default:""},size:Ga,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:fe(Object),default:()=>({})},modelValue:{type:fe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:fe([Date,Array])},defaultTime:{type:fe([Date,Array])},isRange:Boolean,...Jte,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:fe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),zje=["id","name","placeholder","value","disabled","readonly"],Hje=["id","name","placeholder","value","disabled","readonly"],Gje=te({name:"Picker"}),Uje=te({...Gje,props:C3,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:r}){const n=e,a=Jh(),{lang:i}=fr(),o=Ce("date"),s=Ce("input"),l=Ce("range"),{form:u,formItem:c}=Vi(),f=Ye("ElPopperOptions",{}),d=G(),h=G(),v=G(!1),p=G(!1),g=G(null);let m=!1,y=!1;const _=F(()=>[o.b("editor"),o.bm("editor",n.type),s.e("wrapper"),o.is("disabled",j.value),o.is("active",v.value),l.b("editor"),ge?l.bm("editor",ge.value):"",a.class]),w=F(()=>[s.e("icon"),l.e("close-icon"),ne.value?"":l.e("close-icon--hidden")]);Ae(v,ae=>{ae?qe(()=>{ae&&(g.value=n.modelValue)}):(xe.value=null,qe(()=>{x(n.modelValue)}))});const x=(ae,Ge)=>{(Ge||!dU(ae,g.value))&&(r("change",ae),n.validateEvent&&(c==null||c.validate("change").catch(St=>void 0)))},S=ae=>{if(!dU(n.modelValue,ae)){let Ge;We(ae)?Ge=ae.map(St=>vU(St,n.valueFormat,i.value)):ae&&(Ge=vU(ae,n.valueFormat,i.value)),r("update:modelValue",ae&&Ge,i.value)}},T=ae=>{r("keydown",ae)},A=F(()=>{if(h.value){const ae=_e.value?h.value:h.value.$el;return Array.from(ae.querySelectorAll("input"))}return[]}),C=(ae,Ge,St)=>{const Kt=A.value;Kt.length&&(!St||St==="min"?(Kt[0].setSelectionRange(ae,Ge),Kt[0].focus()):St==="max"&&(Kt[1].setSelectionRange(ae,Ge),Kt[1].focus()))},M=()=>{B(!0,!0),qe(()=>{y=!1})},E=(ae="",Ge=!1)=>{Ge||(y=!0),v.value=Ge;let St;We(ae)?St=ae.map(Kt=>Kt.toDate()):St=ae&&ae.toDate(),xe.value=null,S(St)},D=()=>{p.value=!0},P=()=>{r("visible-change",!0)},L=ae=>{(ae==null?void 0:ae.key)===Qe.esc&&B(!0,!0)},I=()=>{p.value=!1,v.value=!1,y=!1,r("visible-change",!1)},O=()=>{v.value=!0},R=()=>{v.value=!1},B=(ae=!0,Ge=!1)=>{y=Ge;const[St,Kt]=b(A);let Xn=St;!ae&&_e.value&&(Xn=Kt),Xn&&Xn.focus()},k=ae=>{n.readonly||j.value||v.value||y||(v.value=!0,r("focus",ae))};let z;const $=ae=>{const Ge=async()=>{setTimeout(()=>{var St;z===Ge&&(!((St=d.value)!=null&&St.isFocusInsideContent()&&!m)&&A.value.filter(Kt=>Kt.contains(document.activeElement)).length===0&&(Te(),v.value=!1,r("blur",ae),n.validateEvent&&(c==null||c.validate("blur").catch(Kt=>void 0))),m=!1)},0)};z=Ge,Ge()},j=F(()=>n.disabled||(u==null?void 0:u.disabled)),X=F(()=>{let ae;if(ie.value?be.value.getDefaultValue&&(ae=be.value.getDefaultValue()):We(n.modelValue)?ae=n.modelValue.map(Ge=>hU(Ge,n.valueFormat,i.value)):ae=hU(n.modelValue,n.valueFormat,i.value),be.value.getRangeAvailableTime){const Ge=be.value.getRangeAvailableTime(ae);to(Ge,ae)||(ae=Ge,S(We(ae)?ae.map(St=>St.toDate()):ae.toDate()))}return We(ae)&&ae.some(Ge=>!Ge)&&(ae=[]),ae}),Q=F(()=>{if(!be.value.panelReady)return"";const ae=He(X.value);return We(xe.value)?[xe.value[0]||ae&&ae[0]||"",xe.value[1]||ae&&ae[1]||""]:xe.value!==null?xe.value:!ee.value&&ie.value||!v.value&&ie.value?"":ae?K.value?ae.join(", "):ae:""}),se=F(()=>n.type.includes("time")),ee=F(()=>n.type.startsWith("time")),K=F(()=>n.type==="dates"),Z=F(()=>n.prefixIcon||(se.value?Ree:FGe)),ne=G(!1),re=ae=>{n.readonly||j.value||ne.value&&(ae.stopPropagation(),M(),S(null),x(null,!0),ne.value=!1,v.value=!1,be.value.handleClear&&be.value.handleClear())},ie=F(()=>{const{modelValue:ae}=n;return!ae||We(ae)&&!ae.filter(Boolean).length}),Y=async ae=>{var Ge;n.readonly||j.value||(((Ge=ae.target)==null?void 0:Ge.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(v.value=!0)},q=()=>{n.readonly||j.value||!ie.value&&n.clearable&&(ne.value=!0)},oe=()=>{ne.value=!1},ve=ae=>{var Ge;n.readonly||j.value||(((Ge=ae.touches[0].target)==null?void 0:Ge.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(v.value=!0)},_e=F(()=>n.type.includes("range")),ge=ca(),Le=F(()=>{var ae,Ge;return(Ge=(ae=b(d))==null?void 0:ae.popperRef)==null?void 0:Ge.contentRef}),Se=F(()=>{var ae;return b(_e)?b(h):(ae=b(h))==null?void 0:ae.$el});RN(Se,ae=>{const Ge=b(Le),St=b(Se);Ge&&(ae.target===Ge||ae.composedPath().includes(Ge))||ae.target===St||ae.composedPath().includes(St)||(v.value=!1)});const xe=G(null),Te=()=>{if(xe.value){const ae=Ve(Q.value);ae&&je(ae)&&(S(We(ae)?ae.map(Ge=>Ge.toDate()):ae.toDate()),xe.value=null)}xe.value===""&&(S(null),x(null),xe.value=null)},Ve=ae=>ae?be.value.parseUserInput(ae):null,He=ae=>ae?be.value.formatToString(ae):null,je=ae=>be.value.isValidValue(ae),Pe=async ae=>{if(n.readonly||j.value)return;const{code:Ge}=ae;if(T(ae),Ge===Qe.esc){v.value===!0&&(v.value=!1,ae.preventDefault(),ae.stopPropagation());return}if(Ge===Qe.down&&(be.value.handleFocusPicker&&(ae.preventDefault(),ae.stopPropagation()),v.value===!1&&(v.value=!0,await qe()),be.value.handleFocusPicker)){be.value.handleFocusPicker();return}if(Ge===Qe.tab){m=!0;return}if(Ge===Qe.enter||Ge===Qe.numpadEnter){(xe.value===null||xe.value===""||je(Ve(Q.value)))&&(Te(),v.value=!1),ae.stopPropagation();return}if(xe.value){ae.stopPropagation();return}be.value.handleKeydownInput&&be.value.handleKeydownInput(ae)},Ue=ae=>{xe.value=ae,v.value||(v.value=!0)},gt=ae=>{const Ge=ae.target;xe.value?xe.value=[Ge.value,xe.value[1]]:xe.value=[Ge.value,null]},At=ae=>{const Ge=ae.target;xe.value?xe.value=[xe.value[0],Ge.value]:xe.value=[null,Ge.value]},Gt=()=>{var ae;const Ge=xe.value,St=Ve(Ge&&Ge[0]),Kt=b(X);if(St&&St.isValid()){xe.value=[He(St),((ae=Q.value)==null?void 0:ae[1])||null];const Xn=[St,Kt&&(Kt[1]||null)];je(Xn)&&(S(Xn),xe.value=null)}},tt=()=>{var ae;const Ge=b(xe),St=Ve(Ge&&Ge[1]),Kt=b(X);if(St&&St.isValid()){xe.value=[((ae=b(Q))==null?void 0:ae[0])||null,He(St)];const Xn=[Kt&&Kt[0],St];je(Xn)&&(S(Xn),xe.value=null)}},be=G({}),pe=ae=>{be.value[ae[0]]=ae[1],be.value.panelReady=!0},de=ae=>{r("calendar-change",ae)},Me=(ae,Ge,St)=>{r("panel-change",ae,Ge,St)};return Wt("EP_PICKER_BASE",{props:n}),t({focus:B,handleFocusInput:k,handleBlurInput:$,handleOpen:O,handleClose:R,onPick:E}),(ae,Ge)=>(N(),he(b(Bi),Ut({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},ae.$attrs,{role:"dialog",teleported:"",transition:`${b(o).namespace.value}-zoom-in-top`,"popper-class":[`${b(o).namespace.value}-picker__popper`,ae.popperClass],"popper-options":b(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:D,onShow:P,onHide:I}),{default:le(()=>[b(_e)?(N(),U("div",{key:1,ref_key:"inputRef",ref:h,class:H(b(_)),style:Xe(ae.$attrs.style),onClick:k,onMouseenter:q,onMouseleave:oe,onTouchstart:ve,onKeydown:Pe},[b(Z)?(N(),he(b(Ze),{key:0,class:H([b(s).e("icon"),b(l).e("icon")]),onMousedown:it(Y,["prevent"]),onTouchstart:ve},{default:le(()=>[(N(),he(Ft(b(Z))))]),_:1},8,["class","onMousedown"])):ce("v-if",!0),V("input",{id:ae.id&&ae.id[0],autocomplete:"off",name:ae.name&&ae.name[0],placeholder:ae.startPlaceholder,value:b(Q)&&b(Q)[0],disabled:b(j),readonly:!ae.editable||ae.readonly,class:H(b(l).b("input")),onMousedown:Y,onInput:gt,onChange:Gt,onFocus:k,onBlur:$},null,42,zje),ye(ae.$slots,"range-separator",{},()=>[V("span",{class:H(b(l).b("separator"))},me(ae.rangeSeparator),3)]),V("input",{id:ae.id&&ae.id[1],autocomplete:"off",name:ae.name&&ae.name[1],placeholder:ae.endPlaceholder,value:b(Q)&&b(Q)[1],disabled:b(j),readonly:!ae.editable||ae.readonly,class:H(b(l).b("input")),onMousedown:Y,onFocus:k,onBlur:$,onInput:At,onChange:tt},null,42,Hje),ae.clearIcon?(N(),he(b(Ze),{key:1,class:H(b(w)),onClick:re},{default:le(()=>[(N(),he(Ft(ae.clearIcon)))]),_:1},8,["class"])):ce("v-if",!0)],38)):(N(),he(b(li),{key:0,id:ae.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":b(Q),name:ae.name,size:b(ge),disabled:b(j),placeholder:ae.placeholder,class:H([b(o).b("editor"),b(o).bm("editor",ae.type),ae.$attrs.class]),style:Xe(ae.$attrs.style),readonly:!ae.editable||ae.readonly||b(K)||ae.type==="week",label:ae.label,tabindex:ae.tabindex,"validate-event":!1,onInput:Ue,onFocus:k,onBlur:$,onKeydown:Pe,onChange:Te,onMousedown:Y,onMouseenter:q,onMouseleave:oe,onTouchstart:ve,onClick:Ge[0]||(Ge[0]=it(()=>{},["stop"]))},{prefix:le(()=>[b(Z)?(N(),he(b(Ze),{key:0,class:H(b(s).e("icon")),onMousedown:it(Y,["prevent"]),onTouchstart:ve},{default:le(()=>[(N(),he(Ft(b(Z))))]),_:1},8,["class","onMousedown"])):ce("v-if",!0)]),suffix:le(()=>[ne.value&&ae.clearIcon?(N(),he(b(Ze),{key:0,class:H(`${b(s).e("icon")} clear-icon`),onClick:it(re,["stop"])},{default:le(()=>[(N(),he(Ft(ae.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:le(()=>[ye(ae.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:b(X),format:ae.format,dateFormat:ae.dateFormat,timeFormat:ae.timeFormat,unlinkPanels:ae.unlinkPanels,type:ae.type,defaultValue:ae.defaultValue,onPick:E,onSelectRange:C,onSetPickerOption:pe,onCalendarChange:de,onPanelChange:Me,onKeydown:L,onMousedown:Ge[1]||(Ge[1]=it(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var tre=ke(Uje,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const $je=Oe({...ere,datetimeRole:String,parsedValue:{type:fe(Object)}}),rre=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:r})=>{const n=(o,s,l,u)=>{const c={hour:e,minute:t,second:r};let f=o;return["hour","minute","second"].forEach(d=>{if(c[d]){let h;const v=c[d];switch(d){case"minute":{h=v(f.hour(),s,u);break}case"second":{h=v(f.hour(),f.minute(),s,u);break}default:{h=v(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const p=l?0:h.length-1;f=f[d](h[p])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:n,onSetOption:([o,s])=>{a[o]=s}}},$M=e=>{const t=(n,a)=>n||a,r=n=>n!==!0;return e.map(t).filter(r)},nre=(e,t,r)=>({getHoursList:(o,s)=>UM(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>UM(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>UM(60,r&&(()=>r==null?void 0:r(o,s,l,u)))}),are=(e,t,r)=>{const{getHoursList:n,getMinutesList:a,getSecondsList:i}=nre(e,t,r);return{getAvailableHours:(u,c)=>$M(n(u,c)),getAvailableMinutes:(u,c,f)=>$M(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>$M(i(u,c,f,d))}},ire=e=>{const t=G(e.parsedValue);return Ae(()=>e.visible,r=>{r||(t.value=e.parsedValue)}),t},Oc=new Map;let pU;ur&&(document.addEventListener("mousedown",e=>pU=e),document.addEventListener("mouseup",e=>{for(const t of Oc.values())for(const{documentHandler:r}of t)r(e,pU)}));function gU(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:us(t.arg)&&r.push(t.arg),function(n,a){const i=t.instance.popperRef,o=n.target,s=a==null?void 0:a.target,l=!t||!t.instance,u=!o||!s,c=e.contains(o)||e.contains(s),f=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||t.value(n,a)}}const Df={beforeMount(e,t){Oc.has(e)||Oc.set(e,[]),Oc.get(e).push({documentHandler:gU(e,t),bindingFn:t.value})},updated(e,t){Oc.has(e)||Oc.set(e,[]);const r=Oc.get(e),n=r.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:gU(e,t),bindingFn:t.value};n>=0?r.splice(n,1,a):r.push(a)},unmounted(e){Oc.delete(e)}},Wje=100,Yje=600,d2={beforeMount(e,t){const r=t.value,{interval:n=Wje,delay:a=Yje}=dt(r)?{}:r;let i,o;const s=()=>dt(r)?r():r.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},n)},a))})}},uI="_trap-focus-children",sh=[],mU=e=>{if(sh.length===0)return;const t=sh[sh.length-1][uI];if(t.length>0&&e.code===Qe.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const r=e.shiftKey,n=e.target===t[0],a=e.target===t[t.length-1];n&&r&&(e.preventDefault(),t[t.length-1].focus()),a&&!r&&(e.preventDefault(),t[0].focus())}},jje={beforeMount(e){e[uI]=PH(e),sh.push(e),sh.length<=1&&document.addEventListener("keydown",mU)},updated(e){qe(()=>{e[uI]=PH(e)})},unmounted(){sh.shift(),sh.length===0&&document.removeEventListener("keydown",mU)}};var yU=!1,jd,cI,fI,gS,mS,ore,yS,dI,hI,vI,sre,pI,gI,lre,ure;function $i(){if(!yU){yU=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(pI=/\b(iPhone|iP[ao]d)/.exec(e),gI=/\b(iP[ao]d)/.exec(e),vI=/Android/i.exec(e),lre=/FBAN\/\w+;/i.exec(e),ure=/Mobile/i.exec(e),sre=!!/Win64/.exec(e),t){jd=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,jd&&document&&document.documentMode&&(jd=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);ore=n?parseFloat(n[1])+4:jd,cI=t[2]?parseFloat(t[2]):NaN,fI=t[3]?parseFloat(t[3]):NaN,gS=t[4]?parseFloat(t[4]):NaN,gS?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),mS=t&&t[1]?parseFloat(t[1]):NaN):mS=NaN}else jd=cI=fI=mS=gS=NaN;if(r){if(r[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);yS=a?parseFloat(a[1].replace("_",".")):!0}else yS=!1;dI=!!r[2],hI=!!r[3]}else yS=dI=hI=!1}}var mI={ie:function(){return $i()||jd},ieCompatibilityMode:function(){return $i()||ore>jd},ie64:function(){return mI.ie()&&sre},firefox:function(){return $i()||cI},opera:function(){return $i()||fI},webkit:function(){return $i()||gS},safari:function(){return mI.webkit()},chrome:function(){return $i()||mS},windows:function(){return $i()||dI},osx:function(){return $i()||yS},linux:function(){return $i()||hI},iphone:function(){return $i()||pI},mobile:function(){return $i()||pI||gI||vI||ure},nativeApp:function(){return $i()||lre},android:function(){return $i()||vI},ipad:function(){return $i()||gI}},Kje=mI,vw=!!(typeof window<"u"&&window.document&&window.document.createElement),Xje={canUseDOM:vw,canUseWorkers:typeof Worker<"u",canUseEventListeners:vw&&!!(window.addEventListener||window.attachEvent),canUseViewport:vw&&!!window.screen,isInWorker:!vw},cre=Xje,fre;cre.canUseDOM&&(fre=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Zje(e,t){if(!cre.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var a=document.createElement("div");a.setAttribute(r,"return;"),n=typeof a[r]=="function"}return!n&&fre&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var qje=Zje,_U=10,bU=40,wU=800;function dre(e){var t=0,r=0,n=0,a=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*_U,a=r*_U,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||a)&&e.deltaMode&&(e.deltaMode==1?(n*=bU,a*=bU):(n*=wU,a*=wU)),n&&!t&&(t=n<1?-1:1),a&&!r&&(r=a<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:a}}dre.getEventType=function(){return Kje.firefox()?"DOMMouseScroll":qje("wheel")?"wheel":"mousewheel"};var Qje=dre;/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/const Jje=function(e,t){if(e&&e.addEventListener){const r=function(n){const a=Qje(n);t&&Reflect.apply(t,this,[n,a])};e.addEventListener("wheel",r,{passive:!0})}},eKe={beforeMount(e,t){Jje(e,t.value)}},tKe=Oe({role:{type:String,required:!0},spinnerDate:{type:fe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:fe(String),default:""},...Jte}),rKe=["onClick"],nKe=["onMouseenter"],aKe=te({__name:"basic-time-spinner",props:tKe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const r=e,n=Ce("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=nre(r.disabledHours,r.disabledMinutes,r.disabledSeconds);let s=!1;const l=G(),u=G(),c=G(),f=G(),d={hours:u,minutes:c,seconds:f},h=F(()=>r.showSeconds?cU:cU.slice(0,2)),v=F(()=>{const{spinnerDate:k}=r,z=k.hour(),$=k.minute(),j=k.second();return{hours:z,minutes:$,seconds:j}}),p=F(()=>{const{hours:k,minutes:z}=b(v);return{hours:a(r.role),minutes:i(k,r.role),seconds:o(k,z,r.role)}}),g=F(()=>{const{hours:k,minutes:z,seconds:$}=b(v);return{hours:GM(k,23),minutes:GM(z,59),seconds:GM($,59)}}),m=Ni(k=>{s=!1,w(k)},200),y=k=>{if(!!!r.amPmMode)return"";const $=r.amPmMode==="A";let j=k<12?" am":" pm";return $&&(j=j.toUpperCase()),j},_=k=>{let z;switch(k){case"hours":z=[0,2];break;case"minutes":z=[3,5];break;case"seconds":z=[6,8];break}const[$,j]=z;t("select-range",$,j),l.value=k},w=k=>{T(k,b(v)[k])},x=()=>{w("hours"),w("minutes"),w("seconds")},S=k=>k.querySelector(`.${n.namespace.value}-scrollbar__wrap`),T=(k,z)=>{if(r.arrowControl)return;const $=b(d[k]);$&&$.$el&&(S($.$el).scrollTop=Math.max(0,z*A(k)))},A=k=>{const z=b(d[k]),$=z==null?void 0:z.$el.querySelector("li");return $&&Number.parseFloat(Hc($,"height"))||0},C=()=>{E(1)},M=()=>{E(-1)},E=k=>{l.value||_("hours");const z=l.value,$=b(v)[z],j=l.value==="hours"?24:60,X=D(z,$,k,j);P(z,X),T(z,X),qe(()=>_(z))},D=(k,z,$,j)=>{let X=(z+$+j)%j;const Q=b(p)[k];for(;Q[X]&&X!==z;)X=(X+$+j)%j;return X},P=(k,z)=>{if(b(p)[k][z])return;const{hours:X,minutes:Q,seconds:se}=b(v);let ee;switch(k){case"hours":ee=r.spinnerDate.hour(z).minute(Q).second(se);break;case"minutes":ee=r.spinnerDate.hour(X).minute(z).second(se);break;case"seconds":ee=r.spinnerDate.hour(X).minute(Q).second(z);break}t("change",ee)},L=(k,{value:z,disabled:$})=>{$||(P(k,z),_(k),T(k,z))},I=k=>{s=!0,m(k);const z=Math.min(Math.round((S(b(d[k]).$el).scrollTop-(O(k)*.5-10)/A(k)+3)/A(k)),k==="hours"?23:59);P(k,z)},O=k=>b(d[k]).$el.offsetHeight,R=()=>{const k=z=>{const $=b(d[z]);$&&$.$el&&(S($.$el).onscroll=()=>{I(z)})};k("hours"),k("minutes"),k("seconds")};xt(()=>{qe(()=>{!r.arrowControl&&R(),x(),r.role==="start"&&_("hours")})});const B=(k,z)=>{d[z].value=k};return t("set-option",[`${r.role}_scrollDown`,E]),t("set-option",[`${r.role}_emitSelectRange`,_]),Ae(()=>r.spinnerDate,()=>{s||x()}),(k,z)=>(N(),U("div",{class:H([b(n).b("spinner"),{"has-seconds":k.showSeconds}])},[k.arrowControl?ce("v-if",!0):(N(!0),U(Be,{key:0},ht(b(h),$=>(N(),he(b(ic),{key:$,ref_for:!0,ref:j=>B(j,$),class:H(b(n).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":b(n).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:j=>_($),onMousemove:j=>w($)},{default:le(()=>[(N(!0),U(Be,null,ht(b(p)[$],(j,X)=>(N(),U("li",{key:X,class:H([b(n).be("spinner","item"),b(n).is("active",X===b(v)[$]),b(n).is("disabled",j)]),onClick:Q=>L($,{value:X,disabled:j})},[$==="hours"?(N(),U(Be,{key:0},[nr(me(("0"+(k.amPmMode?X%12||12:X)).slice(-2))+me(y(X)),1)],64)):(N(),U(Be,{key:1},[nr(me(("0"+X).slice(-2)),1)],64))],10,rKe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),k.arrowControl?(N(!0),U(Be,{key:1},ht(b(h),$=>(N(),U("div",{key:$,class:H([b(n).be("spinner","wrapper"),b(n).is("arrow")]),onMouseenter:j=>_($)},[Ct((N(),he(b(Ze),{class:H(["arrow-up",b(n).be("spinner","arrow")])},{default:le(()=>[J(b(mT))]),_:1},8,["class"])),[[b(d2),M]]),Ct((N(),he(b(Ze),{class:H(["arrow-down",b(n).be("spinner","arrow")])},{default:le(()=>[J(b(Vf))]),_:1},8,["class"])),[[b(d2),C]]),V("ul",{class:H(b(n).be("spinner","list"))},[(N(!0),U(Be,null,ht(b(g)[$],(j,X)=>(N(),U("li",{key:X,class:H([b(n).be("spinner","item"),b(n).is("active",j===b(v)[$]),b(n).is("disabled",b(p)[$][j])])},[typeof j=="number"?(N(),U(Be,{key:0},[$==="hours"?(N(),U(Be,{key:0},[nr(me(("0"+(k.amPmMode?j%12||12:j)).slice(-2))+me(y(j)),1)],64)):(N(),U(Be,{key:1},[nr(me(("0"+j).slice(-2)),1)],64))],64)):ce("v-if",!0)],2))),128))],2)],42,nKe))),128)):ce("v-if",!0)],2))}});var yI=ke(aKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const iKe=te({__name:"panel-time-pick",props:$je,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const r=e,n=Ye("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=n.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=are(i,o,s),d=Ce("time"),{t:h,lang:v}=fr(),p=G([0,2]),g=ire(r),m=F(()=>oa(r.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),y=F(()=>r.format.includes("ss")),_=F(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),w=B=>{const k=Rt(B).locale(v.value),z=L(k);return k.isSame(z)},x=()=>{t("pick",g.value,!1)},S=(B=!1,k=!1)=>{k||t("pick",r.parsedValue,B)},T=B=>{if(!r.visible)return;const k=L(B).millisecond(0);t("pick",k,!0)},A=(B,k)=>{t("select-range",B,k),p.value=[B,k]},C=B=>{const k=[0,3].concat(y.value?[6]:[]),z=["hours","minutes"].concat(y.value?["seconds"]:[]),j=(k.indexOf(p.value[0])+B+k.length)%k.length;E.start_emitSelectRange(z[j])},M=B=>{const k=B.code,{left:z,right:$,up:j,down:X}=Qe;if([z,$].includes(k)){C(k===z?-1:1),B.preventDefault();return}if([j,X].includes(k)){const Q=k===j?-1:1;E.start_scrollDown(Q),B.preventDefault();return}},{timePickerOptions:E,onSetOption:D,getAvailableTime:P}=rre({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),L=B=>P(B,r.datetimeRole||"",!0),I=B=>B?Rt(B,r.format).locale(v.value):null,O=B=>B?B.format(r.format):null,R=()=>Rt(l).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",O]),t("set-picker-option",["parseUserInput",I]),t("set-picker-option",["handleKeydownInput",M]),t("set-picker-option",["getRangeAvailableTime",L]),t("set-picker-option",["getDefaultValue",R]),(B,k)=>(N(),he(Yn,{name:b(m)},{default:le(()=>[B.actualVisible||B.visible?(N(),U("div",{key:0,class:H(b(d).b("panel"))},[V("div",{class:H([b(d).be("panel","content"),{"has-seconds":b(y)}])},[J(yI,{ref:"spinner",role:B.datetimeRole||"start","arrow-control":b(a),"show-seconds":b(y),"am-pm-mode":b(_),"spinner-date":B.parsedValue,"disabled-hours":b(i),"disabled-minutes":b(o),"disabled-seconds":b(s),onChange:T,onSetOption:b(D),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),V("div",{class:H(b(d).be("panel","footer"))},[V("button",{type:"button",class:H([b(d).be("panel","btn"),"cancel"]),onClick:x},me(b(h)("el.datepicker.cancel")),3),V("button",{type:"button",class:H([b(d).be("panel","btn"),"confirm"]),onClick:k[0]||(k[0]=z=>S())},me(b(h)("el.datepicker.confirm")),3)],2)],2)):ce("v-if",!0)]),_:1},8,["name"]))}});var h2=ke(iKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const oKe=Oe({...ere,parsedValue:{type:fe(Array)}}),sKe=["disabled"],lKe=te({__name:"panel-time-range",props:oKe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const r=e,n=(ie,Y)=>{const q=[];for(let oe=ie;oe<=Y;oe++)q.push(oe);return q},{t:a,lang:i}=fr(),o=Ce("time"),s=Ce("picker"),l=Ye("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=F(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),p=F(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),g=F(()=>r.parsedValue[0]),m=F(()=>r.parsedValue[1]),y=ire(r),_=()=>{t("pick",y.value,!1)},w=F(()=>r.format.includes("ss")),x=F(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),S=(ie=!1)=>{t("pick",[g.value,m.value],ie)},T=ie=>{M(ie.millisecond(0),m.value)},A=ie=>{M(g.value,ie.millisecond(0))},C=ie=>{const Y=ie.map(oe=>Rt(oe).locale(i.value)),q=$(Y);return Y[0].isSame(q[0])&&Y[1].isSame(q[1])},M=(ie,Y)=>{t("pick",[ie,Y],!0)},E=F(()=>g.value>m.value),D=G([0,2]),P=(ie,Y)=>{t("select-range",ie,Y,"min"),D.value=[ie,Y]},L=F(()=>w.value?11:8),I=(ie,Y)=>{t("select-range",ie,Y,"max");const q=b(L);D.value=[ie+q,Y+q]},O=ie=>{const Y=w.value?[0,3,6,11,14,17]:[0,3,8,11],q=["hours","minutes"].concat(w.value?["seconds"]:[]),ve=(Y.indexOf(D.value[0])+ie+Y.length)%Y.length,_e=Y.length/2;ve<_e?se.start_emitSelectRange(q[ve]):se.end_emitSelectRange(q[ve-_e])},R=ie=>{const Y=ie.code,{left:q,right:oe,up:ve,down:_e}=Qe;if([q,oe].includes(Y)){O(Y===q?-1:1),ie.preventDefault();return}if([ve,_e].includes(Y)){const ge=Y===ve?-1:1,Le=D.value[0]<L.value?"start":"end";se[`${Le}_scrollDown`](ge),ie.preventDefault();return}},B=(ie,Y)=>{const q=c?c(ie):[],oe=ie==="start",_e=(Y||(oe?m.value:g.value)).hour(),ge=oe?n(_e+1,23):n(0,_e-1);return OM(q,ge)},k=(ie,Y,q)=>{const oe=f?f(ie,Y):[],ve=Y==="start",_e=q||(ve?m.value:g.value),ge=_e.hour();if(ie!==ge)return oe;const Le=_e.minute(),Se=ve?n(Le+1,59):n(0,Le-1);return OM(oe,Se)},z=(ie,Y,q,oe)=>{const ve=d?d(ie,Y,q):[],_e=q==="start",ge=oe||(_e?m.value:g.value),Le=ge.hour(),Se=ge.minute();if(ie!==Le||Y!==Se)return ve;const xe=ge.second(),Te=_e?n(xe+1,59):n(0,xe-1);return OM(ve,Te)},$=([ie,Y])=>[ee(ie,"start",!0,Y),ee(Y,"end",!1,ie)],{getAvailableHours:j,getAvailableMinutes:X,getAvailableSeconds:Q}=are(B,k,z),{timePickerOptions:se,getAvailableTime:ee,onSetOption:K}=rre({getAvailableHours:j,getAvailableMinutes:X,getAvailableSeconds:Q}),Z=ie=>ie?We(ie)?ie.map(Y=>Rt(Y,r.format).locale(i.value)):Rt(ie,r.format).locale(i.value):null,ne=ie=>ie?We(ie)?ie.map(Y=>Y.format(r.format)):ie.format(r.format):null,re=()=>{if(We(h))return h.map(Y=>Rt(Y).locale(i.value));const ie=Rt(h).locale(i.value);return[ie,ie.add(60,"m")]};return t("set-picker-option",["formatToString",ne]),t("set-picker-option",["parseUserInput",Z]),t("set-picker-option",["isValidValue",C]),t("set-picker-option",["handleKeydownInput",R]),t("set-picker-option",["getDefaultValue",re]),t("set-picker-option",["getRangeAvailableTime",$]),(ie,Y)=>ie.actualVisible?(N(),U("div",{key:0,class:H([b(o).b("range-picker"),b(s).b("panel")])},[V("div",{class:H(b(o).be("range-picker","content"))},[V("div",{class:H(b(o).be("range-picker","cell"))},[V("div",{class:H(b(o).be("range-picker","header"))},me(b(a)("el.datepicker.startTime")),3),V("div",{class:H(b(v))},[J(yI,{ref:"minSpinner",role:"start","show-seconds":b(w),"am-pm-mode":b(x),"arrow-control":b(u),"spinner-date":b(g),"disabled-hours":B,"disabled-minutes":k,"disabled-seconds":z,onChange:T,onSetOption:b(K),onSelectRange:P},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),V("div",{class:H(b(o).be("range-picker","cell"))},[V("div",{class:H(b(o).be("range-picker","header"))},me(b(a)("el.datepicker.endTime")),3),V("div",{class:H(b(p))},[J(yI,{ref:"maxSpinner",role:"end","show-seconds":b(w),"am-pm-mode":b(x),"arrow-control":b(u),"spinner-date":b(m),"disabled-hours":B,"disabled-minutes":k,"disabled-seconds":z,onChange:A,onSetOption:b(K),onSelectRange:I},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),V("div",{class:H(b(o).be("panel","footer"))},[V("button",{type:"button",class:H([b(o).be("panel","btn"),"cancel"]),onClick:Y[0]||(Y[0]=q=>_())},me(b(a)("el.datepicker.cancel")),3),V("button",{type:"button",class:H([b(o).be("panel","btn"),"confirm"]),disabled:b(E),onClick:Y[1]||(Y[1]=q=>S())},me(b(a)("el.datepicker.confirm")),11,sKe)],2)],2)):ce("v-if",!0)}});var uKe=ke(lKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Rt.extend(T3);var cKe=te({name:"ElTimePicker",install:null,props:{...C3,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const r=G(),[n,a]=e.isRange?["timerange",uKe]:["time",h2],i=o=>t.emit("update:modelValue",o);return Wt("ElPopperOptions",e.popperOptions),t.expose({focus:o=>{var s;(s=r.value)==null||s.handleFocusInput(o)},blur:o=>{var s;(s=r.value)==null||s.handleBlurInput(o)},handleOpen:()=>{var o;(o=r.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=r.value)==null||o.handleClose()}}),()=>{var o;const s=(o=e.format)!=null?o:lI;return J(tre,Ut(e,{ref:r,type:n,format:s,"onUpdate:modelValue":i}),{default:l=>J(a,l,null)})}}});const _S=cKe;_S.install=e=>{e.component(_S.name,_S)};const fKe=_S,dKe=(e,t)=>{const r=e.subtract(1,"month").endOf("month").date();return hf(t).map((n,a)=>r-(t-a-1))},hKe=e=>{const t=e.daysInMonth();return hf(t).map((r,n)=>n+1)},vKe=e=>hf(e.length/7).map(t=>{const r=t*7;return e.slice(r,r+7)}),pKe=Oe({selectedDay:{type:fe(Object)},range:{type:fe(Array)},date:{type:fe(Object),required:!0},hideHeader:{type:Boolean}}),gKe={pick:e=>Vt(e)};var hre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n,a){var i=n.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,v,p){var g=f.name?f:f.$locale(),m=o(g[d]),y=o(g[h]),_=m||y.map(function(x){return x.slice(0,v)});if(!p)return _;var w=g.weekStart;return _.map(function(x,S){return _[(S+(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(v,p,g){return p||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(hre);var mKe=hre.exports;const vre=ru(mKe),yKe=(e,t)=>{Rt.extend(vre);const r=Rt.localeData().firstDayOfWeek(),{t:n,lang:a}=fr(),i=Rt().locale(a.value),o=F(()=>!!e.range&&!!e.range.length),s=F(()=>{let d=[];if(o.value){const[h,v]=e.range,p=hf(v.date()-h.date()+1).map(y=>({text:h.date()+y,type:"current"}));let g=p.length%7;g=g===0?0:7-g;const m=hf(g).map((y,_)=>({text:_+1,type:"next"}));d=p.concat(m)}else{const h=e.date.startOf("month").day(),v=dKe(e.date,(h-r+7)%7).map(y=>({text:y,type:"prev"})),p=hKe(e.date).map(y=>({text:y,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),m=hf(g).map((y,_)=>({text:_+1,type:"next"}));d=d.concat(m)}return vKe(d)}),l=F(()=>{const d=r;return d===0?kM.map(h=>n(`el.datepicker.weeks.${h}`)):kM.slice(d).concat(kM.slice(0,d)).map(h=>n(`el.datepicker.weeks.${h}`))}),u=(d,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(d);case"next":return e.date.startOf("month").add(1,"month").date(d);case"current":return e.date.date(d)}};return{now:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:h})=>{const v=u(d,h);t("pick",v)},getSlotData:({text:d,type:h})=>{const v=u(d,h);return{isSelected:v.isSame(e.selectedDay),type:`${h}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},_Ke={key:0},bKe=["onClick"],wKe=te({name:"DateTable"}),SKe=te({...wKe,props:pKe,emits:gKe,setup(e,{expose:t,emit:r}){const n=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=yKe(n,r),f=Ce("calendar-table"),d=Ce("calendar-day"),h=({text:v,type:p})=>{const g=[p];if(p==="current"){const m=l(v,p);m.isSame(n.selectedDay,"day")&&g.push(d.is("selected")),m.isSame(i,"day")&&g.push(d.is("today"))}return g};return t({getFormattedDate:l}),(v,p)=>(N(),U("table",{class:H([b(f).b(),b(f).is("range",b(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?ce("v-if",!0):(N(),U("thead",_Ke,[(N(!0),U(Be,null,ht(b(s),g=>(N(),U("th",{key:g},me(g),1))),128))])),V("tbody",null,[(N(!0),U(Be,null,ht(b(o),(g,m)=>(N(),U("tr",{key:m,class:H({[b(f).e("row")]:!0,[b(f).em("row","hide-border")]:m===0&&v.hideHeader})},[(N(!0),U(Be,null,ht(g,(y,_)=>(N(),U("td",{key:_,class:H(h(y)),onClick:w=>b(u)(y)},[V("div",{class:H(b(d).b())},[ye(v.$slots,"date-cell",{data:b(c)(y)},()=>[V("span",null,me(y.text),1)])],2)],10,bKe))),128))],2))),128))])],2))}});var SU=ke(SKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const xKe=(e,t)=>{const r=e.endOf("month"),n=t.startOf("month"),i=r.isSame(n,"week")?n.add(1,"week"):n;return[[e,r],[i.startOf("week"),t]]},AKe=(e,t)=>{const r=e.endOf("month"),n=e.add(1,"month").startOf("month"),a=r.isSame(n,"week")?n.add(1,"week"):n,i=a.endOf("month"),o=t.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[e,r],[a.startOf("week"),i],[s.startOf("week"),t]]},TKe=(e,t,r)=>{const n=$a(),{lang:a}=fr(),i=G(),o=Rt().locale(a.value),s=F({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const y=m.toDate();t(Di,y),t(Nt,y)}}),l=F(()=>{if(!e.range)return[];const m=e.range.map(w=>Rt(w).locale(a.value)),[y,_]=m;return y.isAfter(_)?[]:y.isSame(_,"month")?v(y,_):y.add(1,"month").month()!==_.month()?[]:v(y,_)}),u=F(()=>e.modelValue?Rt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=F(()=>u.value.subtract(1,"month").date(1)),f=F(()=>u.value.add(1,"month").date(1)),d=F(()=>u.value.subtract(1,"year").date(1)),h=F(()=>u.value.add(1,"year").date(1)),v=(m,y)=>{const _=m.startOf("week"),w=y.endOf("week"),x=_.get("month"),S=w.get("month");return x===S?[[_,w]]:(x+1)%12===S?xKe(_,w):x+2===S||(x+1)%11===S?AKe(_,w):[]},p=m=>{s.value=m},g=m=>{const _={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[m];_.isSame(u.value,"day")||p(_)};return Ul({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},F(()=>!!n.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},CKe=e=>We(e)&&e.length===2&&e.every(t=>Rh(t)),EKe=Oe({modelValue:{type:Date},range:{type:fe(Array),validator:CKe}}),MKe={[Nt]:e=>Rh(e),[Di]:e=>Rh(e)},DKe="ElCalendar",PKe=te({name:DKe}),LKe=te({...PKe,props:EKe,emits:MKe,setup(e,{expose:t,emit:r}){const n=e,a=Ce("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=TKe(n,r),{t:f}=fr(),d=F(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,v)=>(N(),U("div",{class:H(b(a).b())},[V("div",{class:H(b(a).e("header"))},[ye(h.$slots,"header",{date:b(d)},()=>[V("div",{class:H(b(a).e("title"))},me(b(d)),3),b(c).length===0?(N(),U("div",{key:0,class:H(b(a).e("button-group"))},[J(b(Kte),null,{default:le(()=>[J(b(Ja),{size:"small",onClick:v[0]||(v[0]=p=>b(u)("prev-month"))},{default:le(()=>[nr(me(b(f)("el.datepicker.prevMonth")),1)]),_:1}),J(b(Ja),{size:"small",onClick:v[1]||(v[1]=p=>b(u)("today"))},{default:le(()=>[nr(me(b(f)("el.datepicker.today")),1)]),_:1}),J(b(Ja),{size:"small",onClick:v[2]||(v[2]=p=>b(u)("next-month"))},{default:le(()=>[nr(me(b(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ce("v-if",!0)])],2),b(c).length===0?(N(),U("div",{key:0,class:H(b(a).e("body"))},[J(SU,{date:b(o),"selected-day":b(l),onPick:b(s)},Bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:le(p=>[h.$slots["date-cell"]?ye(h.$slots,"date-cell",Rs(Ut({key:0},p))):ye(h.$slots,"dateCell",Rs(Ut({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(N(),U("div",{key:1,class:H(b(a).e("body"))},[(N(!0),U(Be,null,ht(b(c),(p,g)=>(N(),he(SU,{key:g,date:p[0],"selected-day":b(l),range:p,"hide-header":g!==0,onPick:b(s)},Bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:le(m=>[h.$slots["date-cell"]?ye(h.$slots,"date-cell",Rs(Ut({key:0},m))):ye(h.$slots,"dateCell",Rs(Ut({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var IKe=ke(LKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const RKe=kt(IKe),OKe=Oe({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:fe([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),kKe=te({name:"ElCard"}),NKe=te({...kKe,props:OKe,setup(e){const t=Ce("card");return(r,n)=>(N(),U("div",{class:H([b(t).b(),b(t).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(N(),U("div",{key:0,class:H(b(t).e("header"))},[ye(r.$slots,"header",{},()=>[nr(me(r.header),1)])],2)):ce("v-if",!0),V("div",{class:H([b(t).e("body"),r.bodyClass]),style:Xe(r.bodyStyle)},[ye(r.$slots,"default")],6),r.$slots.footer||r.footer?(N(),U("div",{key:1,class:H(b(t).e("footer"))},[ye(r.$slots,"footer",{},()=>[nr(me(r.footer),1)])],2)):ce("v-if",!0)],2))}});var BKe=ke(NKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const FKe=kt(BKe),VKe=Oe({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}}),zKe={change:(e,t)=>[e,t].every(ct)},pre=Symbol("carouselContextKey"),xU=300,HKe=(e,t,r)=>{const{children:n,addChild:a,removeChild:i}=_3(It(),"ElCarouselItem"),o=$a(),s=G(-1),l=G(null),u=G(!1),c=G(),f=G(0),d=G(!0),h=F(()=>e.arrow!=="never"&&!b(g)),v=F(()=>n.value.some(X=>X.props.label.toString().length>0)),p=F(()=>e.type==="card"),g=F(()=>e.direction==="vertical"),m=F(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),y=Eh(X=>{A(X)},xU,{trailing:!0}),_=Eh(X=>{O(X)},xU),w=X=>d.value?s.value<=1?X<=1:X>1:!0;function x(){l.value&&(clearInterval(l.value),l.value=null)}function S(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>T(),e.interval))}const T=()=>{s.value<n.value.length-1?s.value=s.value+1:e.loop&&(s.value=0)};function A(X){if(wt(X)){const ee=n.value.filter(K=>K.props.name===X);ee.length>0&&(X=n.value.indexOf(ee[0]))}if(X=Number(X),Number.isNaN(X)||X!==Math.floor(X))return;const Q=n.value.length,se=s.value;X<0?s.value=e.loop?Q-1:0:X>=Q?s.value=e.loop?0:Q-1:s.value=X,se===s.value&&C(se),k()}function C(X){n.value.forEach((Q,se)=>{Q.translateItem(se,s.value,X)})}function M(X,Q){var se,ee,K,Z;const ne=b(n),re=ne.length;if(re===0||!X.states.inStage)return!1;const ie=Q+1,Y=Q-1,q=re-1,oe=ne[q].states.active,ve=ne[0].states.active,_e=(ee=(se=ne[ie])==null?void 0:se.states)==null?void 0:ee.active,ge=(Z=(K=ne[Y])==null?void 0:K.states)==null?void 0:Z.active;return Q===q&&ve||_e?"left":Q===0&&oe||ge?"right":!1}function E(){u.value=!0,e.pauseOnHover&&x()}function D(){u.value=!1,S()}function P(X){b(g)||n.value.forEach((Q,se)=>{X===M(Q,se)&&(Q.states.hover=!0)})}function L(){b(g)||n.value.forEach(X=>{X.states.hover=!1})}function I(X){s.value=X}function O(X){e.trigger==="hover"&&X!==s.value&&(s.value=X)}function R(){A(s.value-1)}function B(){A(s.value+1)}function k(){x(),e.pauseOnHover||S()}function z(X){e.height==="auto"&&(f.value=X)}function $(){var X;const Q=(X=o.default)==null?void 0:X.call(o);if(!Q)return null;const se=Mh(Q),ee="ElCarouselItem",K=se.filter(Z=>hn(Z)&&Z.type.name===ee);return(K==null?void 0:K.length)===2&&e.loop&&!p.value?(d.value=!0,K):(d.value=!1,null)}Ae(()=>s.value,(X,Q)=>{C(Q),d.value&&(X=X%2,Q=Q%2),Q>-1&&t("change",X,Q)}),Ae(()=>e.autoplay,X=>{X?S():x()}),Ae(()=>e.loop,()=>{A(s.value)}),Ae(()=>e.interval,()=>{k()});const j=yr();return xt(()=>{Ae(()=>n.value,()=>{n.value.length>0&&A(e.initialIndex)},{immediate:!0}),j.value=di(c.value,()=>{C()}),S()}),un(()=>{x(),c.value&&j.value&&j.value.stop()}),Wt(pre,{root:c,isCardType:p,isVertical:g,items:n,loop:e.loop,addItem:a,removeItem:i,setActiveItem:A,setContainerHeight:z}),{root:c,activeIndex:s,arrowDisplay:h,hasLabel:v,hover:u,isCardType:p,items:n,isVertical:g,containerStyle:m,isItemsTwoLength:d,handleButtonEnter:P,handleButtonLeave:L,handleIndicatorClick:I,handleMouseEnter:E,handleMouseLeave:D,setActiveItem:A,prev:R,next:B,PlaceholderItem:$,isTwoLengthShow:w,throttledArrowClick:y,throttledIndicatorHover:_}},GKe=["onMouseenter","onClick"],UKe={key:0},$Ke="ElCarousel",WKe=te({name:$Ke}),YKe=te({...WKe,props:VKe,emits:zKe,setup(e,{expose:t,emit:r}){const n=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:p,handleMouseEnter:g,handleMouseLeave:m,setActiveItem:y,prev:_,next:w,PlaceholderItem:x,isTwoLengthShow:S,throttledArrowClick:T,throttledIndicatorHover:A}=HKe(n,r),C=Ce("carousel"),M=F(()=>{const D=[C.b(),C.m(n.direction)];return b(u)&&D.push(C.m("card")),D}),E=F(()=>{const D=[C.e("indicators"),C.em("indicators",n.direction)];return b(s)&&D.push(C.em("indicators","labels")),n.indicatorPosition==="outside"&&D.push(C.em("indicators","outside")),b(f)&&D.push(C.em("indicators","right")),D});return t({setActiveItem:y,prev:_,next:w}),(D,P)=>(N(),U("div",{ref_key:"root",ref:a,class:H(b(M)),onMouseenter:P[6]||(P[6]=it((...L)=>b(g)&&b(g)(...L),["stop"])),onMouseleave:P[7]||(P[7]=it((...L)=>b(m)&&b(m)(...L),["stop"]))},[V("div",{class:H(b(C).e("container")),style:Xe(b(d))},[b(o)?(N(),he(Yn,{key:0,name:"carousel-arrow-left",persisted:""},{default:le(()=>[Ct(V("button",{type:"button",class:H([b(C).e("arrow"),b(C).em("arrow","left")]),onMouseenter:P[0]||(P[0]=L=>b(h)("left")),onMouseleave:P[1]||(P[1]=(...L)=>b(v)&&b(v)(...L)),onClick:P[2]||(P[2]=it(L=>b(T)(b(i)-1),["stop"]))},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],34),[[hr,(D.arrow==="always"||b(l))&&(n.loop||b(i)>0)]])]),_:1})):ce("v-if",!0),b(o)?(N(),he(Yn,{key:1,name:"carousel-arrow-right",persisted:""},{default:le(()=>[Ct(V("button",{type:"button",class:H([b(C).e("arrow"),b(C).em("arrow","right")]),onMouseenter:P[3]||(P[3]=L=>b(h)("right")),onMouseleave:P[4]||(P[4]=(...L)=>b(v)&&b(v)(...L)),onClick:P[5]||(P[5]=it(L=>b(T)(b(i)+1),["stop"]))},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],34),[[hr,(D.arrow==="always"||b(l))&&(n.loop||b(i)<b(c).length-1)]])]),_:1})):ce("v-if",!0),J(b(x)),ye(D.$slots,"default")],6),D.indicatorPosition!=="none"?(N(),U("ul",{key:0,class:H(b(E))},[(N(!0),U(Be,null,ht(b(c),(L,I)=>Ct((N(),U("li",{key:I,class:H([b(C).e("indicator"),b(C).em("indicator",D.direction),b(C).is("active",I===b(i))]),onMouseenter:O=>b(A)(I),onClick:it(O=>b(p)(I),["stop"])},[V("button",{class:H(b(C).e("button"))},[b(s)?(N(),U("span",UKe,me(L.props.label),1)):ce("v-if",!0)],2)],42,GKe)),[[hr,b(S)(I)]])),128))],2)):ce("v-if",!0)],34))}});var jKe=ke(YKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const KKe=Oe({name:{type:String,default:""},label:{type:[String,Number],default:""}}),XKe=(e,t)=>{const r=Ye(pre),n=It(),a=.83,i=G(),o=G(!1),s=G(0),l=G(1),u=G(!1),c=G(!1),f=G(!1),d=G(!1),{isCardType:h,isVertical:v}=r;function p(w,x,S){const T=S-1,A=x-1,C=x+1,M=S/2;return x===0&&w===T?-1:x===T&&w===0?S:w<A&&x-w>=M?S+1:w>C&&w-x>=M?-2:w}function g(w,x){var S,T;const A=b(v)?((S=r.root.value)==null?void 0:S.offsetHeight)||0:((T=r.root.value)==null?void 0:T.offsetWidth)||0;return f.value?A*((2-a)*(w-x)+1)/4:w<x?-(1+a)*A/4:(3+a)*A/4}function m(w,x,S){const T=r.root.value;return T?((S?T.offsetHeight:T.offsetWidth)||0)*(w-x):0}const y=(w,x,S)=>{var T;const A=b(h),C=(T=r.items.value.length)!=null?T:Number.NaN,M=w===x;!A&&!oa(S)&&(d.value=M||w===S),!M&&C>2&&r.loop&&(w=p(w,x,C));const E=b(v);u.value=M,A?(f.value=Math.round(Math.abs(w-x))<=1,s.value=g(w,x),l.value=b(u)?1:a):s.value=m(w,x,E),c.value=!0,M&&i.value&&r.setContainerHeight(i.value.offsetHeight)};function _(){if(r&&b(h)){const w=r.items.value.findIndex(({uid:x})=>x===n.uid);r.setActiveItem(w)}}return xt(()=>{r.addItem({props:e,states:Ar({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:n.uid,translateItem:y})}),Xl(()=>{r.removeItem(n.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:v,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:_}},ZKe=te({name:"ElCarouselItem"}),qKe=te({...ZKe,props:KKe,setup(e){const t=e,r=Ce("carousel"),{carouselItemRef:n,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=XKe(t),v=F(()=>{const g=`${`translate${b(l)?"Y":"X"}`}(${b(u)}px)`,m=`scale(${b(f)})`;return{transform:[g,m].join(" ")}});return(p,g)=>Ct((N(),U("div",{ref_key:"carouselItemRef",ref:n,class:H([b(r).e("item"),b(r).is("active",b(a)),b(r).is("in-stage",b(s)),b(r).is("hover",b(o)),b(r).is("animating",b(i)),{[b(r).em("item","card")]:b(c),[b(r).em("item","card-vertical")]:b(c)&&b(l)}]),style:Xe(b(v)),onClick:g[0]||(g[0]=(...m)=>b(h)&&b(h)(...m))},[b(c)?Ct((N(),U("div",{key:0,class:H(b(r).e("mask"))},null,2)),[[hr,!b(a)]]):ce("v-if",!0),ye(p.$slots,"default")],6)),[[hr,b(d)]])}});var gre=ke(qKe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const QKe=kt(jKe,{CarouselItem:gre}),JKe=Pn(gre),mre={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},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:Ga,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},yre={[Nt]:e=>wt(e)||ct(e)||la(e),change:e=>wt(e)||ct(e)||la(e)},om=Symbol("checkboxGroupContextKey"),eXe=({model:e,isChecked:t})=>{const r=Ye(om,void 0),n=F(()=>{var i,o;const s=(i=r==null?void 0:r.max)==null?void 0:i.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!oa(s)&&e.value.length>=s&&!t.value||!oa(l)&&e.value.length<=l&&t.value});return{isDisabled:ho(F(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},tXe=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:a,isLabeledByFormItem:i})=>{const o=Ye(om,void 0),{formItem:s}=Vi(),{emit:l}=It();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function f(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!a.value&&i.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await qe(),c(t.value,v)))}const h=F(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ae(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},rXe=e=>{const t=G(!1),{emit:r}=It(),n=Ye(om,void 0),a=F(()=>oa(n)===!1),i=G(!1);return{model:F({get(){var s,l;return a.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&We(s)?(i.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),i.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(Nt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},nXe=(e,t,{model:r})=>{const n=Ye(om,void 0),a=G(!1),i=F(()=>{const u=r.value;return la(u)?u:We(u)?Vt(e.label)?u.map(Er).some(c=>to(c,e.label)):u.map(Er).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=ca(F(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=ca(F(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=F(()=>!!t.default||!Qn(e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},aXe=(e,{model:t})=>{function r(){We(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},_re=(e,t)=>{const{formItem:r}=Vi(),{model:n,isGroup:a,isLimitExceeded:i}=rXe(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=nXe(e,t,{model:n}),{isDisabled:f}=eXe({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=$f(e,{formItemContext:r,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=tXe(e,{model:n,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return aXe(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:n,handleChange:v,onClickRoot:p}},iXe=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],oXe=["id","indeterminate","disabled","value","name","tabindex"],sXe=te({name:"ElCheckbox"}),lXe=te({...sXe,props:mre,emits:yre,setup(e){const t=e,r=$a(),{inputId:n,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=_re(t,r),h=Ce("checkbox"),v=F(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),p=F(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(N(),he(Ft(!b(u)&&b(a)?"span":"label"),{class:H(b(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:b(d)},{default:le(()=>[V("span",{class:H(b(p))},[g.trueLabel||g.falseLabel?Ct((N(),U("input",{key:0,id:b(n),"onUpdate:modelValue":m[0]||(m[0]=y=>Qr(c)?c.value=y:null),class:H(b(h).e("original")),type:"checkbox",indeterminate:g.indeterminate,name:g.name,tabindex:g.tabindex,disabled:b(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>b(f)&&b(f)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1),onClick:m[4]||(m[4]=it(()=>{},["stop"]))},null,42,iXe)),[[qS,b(c)]]):Ct((N(),U("input",{key:1,id:b(n),"onUpdate:modelValue":m[5]||(m[5]=y=>Qr(c)?c.value=y:null),class:H(b(h).e("original")),type:"checkbox",indeterminate:g.indeterminate,disabled:b(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[6]||(m[6]=(...y)=>b(f)&&b(f)(...y)),onFocus:m[7]||(m[7]=y=>s.value=!0),onBlur:m[8]||(m[8]=y=>s.value=!1),onClick:m[9]||(m[9]=it(()=>{},["stop"]))},null,42,oXe)),[[qS,b(c)]]),V("span",{class:H(b(h).e("inner"))},null,2)],2),b(u)?(N(),U("span",{key:0,class:H(b(h).e("label"))},[ye(g.$slots,"default"),g.$slots.default?ce("v-if",!0):(N(),U(Be,{key:0},[nr(me(g.label),1)],64))],2)):ce("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var uXe=ke(lXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const cXe=["name","tabindex","disabled","true-value","false-value"],fXe=["name","tabindex","disabled","value"],dXe=te({name:"ElCheckboxButton"}),hXe=te({...dXe,props:mre,emits:yre,setup(e){const t=e,r=$a(),{isFocused:n,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=_re(t,r),u=Ye(om,void 0),c=Ce("checkbox"),f=F(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=F(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",n.value)]);return(h,v)=>(N(),U("label",{class:H(b(d))},[h.trueLabel||h.falseLabel?Ct((N(),U("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Qr(s)?s.value=p:null),class:H(b(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:b(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>b(l)&&b(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1),onClick:v[4]||(v[4]=it(()=>{},["stop"]))},null,42,cXe)),[[qS,b(s)]]):Ct((N(),U("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>Qr(s)?s.value=p:null),class:H(b(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:b(i),value:h.label,onChange:v[6]||(v[6]=(...p)=>b(l)&&b(l)(...p)),onFocus:v[7]||(v[7]=p=>n.value=!0),onBlur:v[8]||(v[8]=p=>n.value=!1),onClick:v[9]||(v[9]=it(()=>{},["stop"]))},null,42,fXe)),[[qS,b(s)]]),h.$slots.default||h.label?(N(),U("span",{key:2,class:H(b(c).be("button","inner")),style:Xe(b(a)?b(f):void 0)},[ye(h.$slots,"default",{},()=>[nr(me(h.label),1)])],6)):ce("v-if",!0)],2))}});var bre=ke(hXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const vXe=Oe({modelValue:{type:fe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ga,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),pXe={[Nt]:e=>We(e),change:e=>We(e)},gXe=te({name:"ElCheckboxGroup"}),mXe=te({...gXe,props:vXe,emits:pXe,setup(e,{emit:t}){const r=e,n=Ce("checkbox"),{formItem:a}=Vi(),{inputId:i,isLabeledByFormItem:o}=$f(r,{formItemContext:a}),s=async u=>{t(Nt,u),await qe(),t("change",u)},l=F({get(){return r.modelValue},set(u){s(u)}});return Wt(om,{...Du(Da(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ae(()=>r.modelValue,()=>{r.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return N(),he(Ft(u.tag),{id:b(i),class:H(b(n).b("group")),role:"group","aria-label":b(o)?void 0:u.label||"checkbox-group","aria-labelledby":b(o)?(f=b(a))==null?void 0:f.labelId:void 0},{default:le(()=>[ye(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var wre=ke(mXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const hs=kt(uXe,{CheckboxButton:bre,CheckboxGroup:wre}),yXe=Pn(bre),Sre=Pn(wre),xre=Oe({size:Ga,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),_Xe=Oe({...xre,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Are={[Nt]:e=>wt(e)||ct(e)||la(e),[ln]:e=>wt(e)||ct(e)||la(e)},Tre=Symbol("radioGroupKey"),Cre=(e,t)=>{const r=G(),n=Ye(Tre,void 0),a=F(()=>!!n),i=F({get(){return a.value?n.modelValue:e.modelValue},set(c){a.value?n.changeEvent(c):t&&t(Nt,c),r.value.checked=e.modelValue===e.label}}),o=ca(F(()=>n==null?void 0:n.size)),s=ho(F(()=>n==null?void 0:n.disabled)),l=G(!1),u=F(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:r,isGroup:a,radioGroup:n,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},bXe=["value","name","disabled"],wXe=te({name:"ElRadio"}),SXe=te({...wXe,props:_Xe,emits:Are,setup(e,{emit:t}){const r=e,n=Ce("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=Cre(r,t);function c(){qe(()=>t("change",u.value))}return(f,d)=>{var h;return N(),U("label",{class:H([b(n).b(),b(n).is("disabled",b(l)),b(n).is("focus",b(o)),b(n).is("bordered",f.border),b(n).is("checked",b(u)===f.label),b(n).m(b(s))])},[V("span",{class:H([b(n).e("input"),b(n).is("disabled",b(l)),b(n).is("checked",b(u)===f.label)])},[Ct(V("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>Qr(u)?u.value=v:null),class:H(b(n).e("original")),value:f.label,name:f.name||((h=b(i))==null?void 0:h.name),disabled:b(l),type:"radio",onFocus:d[1]||(d[1]=v=>o.value=!0),onBlur:d[2]||(d[2]=v=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=it(()=>{},["stop"]))},null,42,bXe),[[J9,b(u)]]),V("span",{class:H(b(n).e("inner"))},null,2)],2),V("span",{class:H(b(n).e("label")),onKeydown:d[4]||(d[4]=it(()=>{},["stop"]))},[ye(f.$slots,"default",{},()=>[nr(me(f.label),1)])],34)],2)}}});var xXe=ke(SXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const AXe=Oe({...xre,name:{type:String,default:""}}),TXe=["value","name","disabled"],CXe=te({name:"ElRadioButton"}),EXe=te({...CXe,props:AXe,setup(e){const t=e,r=Ce("radio"),{radioRef:n,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=Cre(t),u=F(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,f)=>{var d;return N(),U("label",{class:H([b(r).b("button"),b(r).is("active",b(s)===c.label),b(r).is("disabled",b(o)),b(r).is("focus",b(a)),b(r).bm("button",b(i))])},[Ct(V("input",{ref_key:"radioRef",ref:n,"onUpdate:modelValue":f[0]||(f[0]=h=>Qr(s)?s.value=h:null),class:H(b(r).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=b(l))==null?void 0:d.name),disabled:b(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=it(()=>{},["stop"]))},null,42,TXe),[[J9,b(s)]]),V("span",{class:H(b(r).be("button","inner")),style:Xe(b(s)===c.label?b(u):{}),onKeydown:f[4]||(f[4]=it(()=>{},["stop"]))},[ye(c.$slots,"default",{},()=>[nr(me(c.label),1)])],38)],2)}}});var Ere=ke(EXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const MXe=Oe({id:{type:String,default:void 0},size:Ga,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}}),DXe=Are,PXe=["id","aria-label","aria-labelledby"],LXe=te({name:"ElRadioGroup"}),IXe=te({...LXe,props:MXe,emits:DXe,setup(e,{emit:t}){const r=e,n=Ce("radio"),a=co(),i=G(),{formItem:o}=Vi(),{inputId:s,isLabeledByFormItem:l}=$f(r,{formItemContext:o}),u=f=>{t(Nt,f),qe(()=>t("change",f))};xt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=F(()=>r.name||a.value);return Wt(Tre,Ar({...Da(r),changeEvent:u,name:c})),Ae(()=>r.modelValue,()=>{r.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(N(),U("div",{id:b(s),ref_key:"radioGroupRef",ref:i,class:H(b(n).b("group")),role:"radiogroup","aria-label":b(l)?void 0:f.label||"radio-group","aria-labelledby":b(l)?b(o).labelId:void 0},[ye(f.$slots,"default")],10,PXe))}});var Mre=ke(IXe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Dre=kt(xXe,{RadioButton:Ere,RadioGroup:Mre}),RXe=Pn(Mre),OXe=Pn(Ere);var kXe=te({name:"NodeContent",setup(){return{ns:Ce("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:r}=this.$parent,{data:n,label:a}=t,{renderLabelFn:i}=r;return et("span",{class:e.e("label")},i?i({node:t,data:n}):a)}});const E3=Symbol(),NXe=te({name:"ElCascaderNode",components:{ElCheckbox:hs,ElRadio:Dre,NodeContent:kXe,ElIcon:Ze,Check:P1,Loading:Hf,ArrowRight:Mi},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const r=Ye(E3),n=Ce("cascader-node"),a=F(()=>r.isHoverMenu),i=F(()=>r.config.multiple),o=F(()=>r.config.checkStrictly),s=F(()=>{var S;return(S=r.checkedNodes[0])==null?void 0:S.uid}),l=F(()=>e.node.isDisabled),u=F(()=>e.node.isLeaf),c=F(()=>o.value&&!u.value||!l.value),f=F(()=>h(r.expandingNode)),d=F(()=>o.value&&r.checkedNodes.some(h)),h=S=>{var T;const{level:A,uid:C}=e.node;return((T=S==null?void 0:S.pathNodes[A-1])==null?void 0:T.uid)===C},v=()=>{f.value||r.expandNode(e.node)},p=S=>{const{node:T}=e;S!==T.checked&&r.handleCheckChange(T,S)},g=()=>{r.lazyLoad(e.node,()=>{u.value||v()})},m=S=>{a.value&&(y(),!u.value&&t("expand",S))},y=()=>{const{node:S}=e;!c.value||S.loading||(S.loaded?v():g())},_=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?x(!0):y())},w=S=>{o.value?(p(S),e.node.loaded&&v()):x(S)},x=S=>{e.node.loaded?(p(S),!o.value&&v()):g()};return{panel:r,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:n,handleHoverExpand:m,handleExpand:y,handleClick:_,handleCheck:x,handleSelectCheck:w}}}),BXe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],FXe=V("span",null,null,-1);function VXe(e,t,r,n,a,i){const o=bt("el-checkbox"),s=bt("el-radio"),l=bt("check"),u=bt("el-icon"),c=bt("node-content"),f=bt("loading"),d=bt("arrow-right");return N(),U("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:H([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[ce(" prefix "),e.multiple?(N(),he(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(N(),he(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=it(()=>{},["stop"]))},{default:le(()=>[ce(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),FXe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(N(),he(u,{key:2,class:H(e.ns.e("prefix"))},{default:le(()=>[J(l)]),_:1},8,["class"])):ce("v-if",!0),ce(" content "),J(c),ce(" postfix "),e.isLeaf?ce("v-if",!0):(N(),U(Be,{key:3},[e.node.loading?(N(),he(u,{key:0,class:H([e.ns.is("loading"),e.ns.e("postfix")])},{default:le(()=>[J(f)]),_:1},8,["class"])):(N(),he(u,{key:1,class:H(["arrow-right",e.ns.e("postfix")])},{default:le(()=>[J(d)]),_:1},8,["class"]))],64))],42,BXe)}var zXe=ke(NXe,[["render",VXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const HXe=te({name:"ElCascaderMenu",components:{Loading:Hf,ElIcon:Ze,ElScrollbar:ic,ElCascaderNode:zXe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=It(),r=Ce("cascader-menu"),{t:n}=fr(),a=ST();let i=null,o=null;const s=Ye(E3),l=G(null),u=F(()=>!e.nodes.length),c=F(()=>!s.initialLoaded),f=F(()=>`cascader-menu-${a}-${e.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const m=t.vnode.el,{left:y}=m.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=m,x=g.clientX-y,S=i.offsetTop,T=S+i.offsetHeight;l.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${x} ${S} L${_} 0 V${S} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${x} ${T} L${_} ${w} V${T} Z" />
|
||
`}else o||(o=window.setTimeout(p,s.config.hoverThreshold))},v=()=>{o&&(clearTimeout(o),o=null)},p=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:r,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:n,handleExpand:d,handleMouseMove:h,clearHoverZone:p}}});function GXe(e,t,r,n,a,i){const o=bt("el-cascader-node"),s=bt("loading"),l=bt("el-icon"),u=bt("el-scrollbar");return N(),he(u,{key:e.menuId,tag:"ul",role:"menu",class:H(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:le(()=>{var c;return[(N(!0),U(Be,null,ht(e.nodes,f=>(N(),he(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(N(),U("div",{key:0,class:H(e.ns.e("empty-text"))},[J(l,{size:"14",class:H(e.ns.is("loading"))},{default:le(()=>[J(s)]),_:1},8,["class"]),nr(" "+me(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(N(),U("div",{key:1,class:H(e.ns.e("empty-text"))},me(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(N(),U("svg",{key:2,ref:"hoverZone",class:H(e.ns.e("hover-zone"))},null,2)):ce("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var UXe=ke(HXe,[["render",GXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let $Xe=0;const WXe=e=>{const t=[e];let{parent:r}=e;for(;r;)t.unshift(r),r=r.parent;return t};let _I=class bI{constructor(t,r,n,a=!1){this.data=t,this.config=r,this.parent=n,this.root=a,this.uid=$Xe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=r,l=t[s],u=WXe(this);this.level=a?0:n?n.level+1:1,this.value=t[i],this.label=t[o],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new bI(c,r,this)),this.loaded=!r.lazy||this.isLeaf||!qo(l)}get isDisabled(){const{data:t,parent:r,config:n}=this,{disabled:a,checkStrictly:i}=n;return(dt(a)?a(t,this):!!t[a])||!i&&(r==null?void 0:r.isDisabled)}get isLeaf(){const{data:t,config:r,childrenData:n,loaded:a}=this,{lazy:i,leaf:o}=r,s=dt(o)?o(t,this):t[o];return oa(s)?i&&!a?!1:!(Array.isArray(n)&&n.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:r,children:n}=this,a=new bI(t,this.config,this);return Array.isArray(r)?r.push(t):this.childrenData=[t],n.push(a),a}calcText(t,r){const n=t?this.pathLabels.join(r):this.label;return this.text=n,n}broadcast(t,...r){const n=`onParent${Tl(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...r),a[n]&&a[n](...r))})}emit(t,...r){const{parent:n}=this,a=`onChild${Tl(t)}`;n&&(n[a]&&n[a](...r),n.emit(t,...r))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,r=t.filter(a=>!a.isDisabled),n=r.length?r.every(a=>a.checked):!1;this.setCheckState(n)}setCheckState(t){const r=this.children.length,n=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&n!==r&&n>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:r,multiple:n}=this.config;r||!n?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const wI=(e,t)=>e.reduce((r,n)=>(n.isLeaf?r.push(n):(!t&&r.push(n),r=r.concat(wI(n.children,t))),r),[]);class AU{constructor(t,r){this.config=r;const n=(t||[]).map(a=>new _I(a,this.config));this.nodes=n,this.allNodes=wI(n,!1),this.leafNodes=wI(n,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,r){const n=r?r.appendChild(t):new _I(t,this.config);r||this.nodes.push(n),this.allNodes.push(n),n.isLeaf&&this.leafNodes.push(n)}appendNodes(t,r){t.forEach(n=>this.appendNode(n,r))}getNodeByValue(t,r=!1){return!t&&t!==0?null:this.getFlattedNodes(r).find(a=>to(a.value,t)||to(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:n,level:a})=>to(t.value,n)&&t.level===a)||null}}const Pre=Oe({modelValue:{type:fe([Number,String,Array])},options:{type:fe(Array),default:()=>[]},props:{type:fe(Object),default:()=>({})}}),YXe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:zr,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},jXe=e=>F(()=>({...YXe,...e.props})),TU=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},KXe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():BJ(e)&&e.click()},XXe=(e,t)=>{const r=t.slice(0),n=r.map(i=>i.uid),a=e.reduce((i,o)=>{const s=n.indexOf(o.uid);return s>-1&&(i.push(o),r.splice(s,1),n.splice(s,1)),i},[]);return a.push(...r),a},ZXe=te({name:"ElCascaderPanel",components:{ElCascaderMenu:UXe},props:{...Pre,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Nt,ln,"close","expand-change"],setup(e,{emit:t,slots:r}){let n=!1;const a=Ce("cascader"),i=jXe(e);let o=null;const s=G(!0),l=G([]),u=G(null),c=G([]),f=G(null),d=G([]),h=F(()=>i.value.expandTrigger==="hover"),v=F(()=>e.renderLabel||r.default),p=()=>{const{options:D}=e,P=i.value;n=!1,o=new AU(D,P),c.value=[o.getNodes()],P.lazy&&qo(e.options)?(s.value=!1,g(void 0,L=>{L&&(o=new AU(L,P),c.value=[o.getNodes()]),s.value=!0,A(!1,!0)})):A(!1,!0)},g=(D,P)=>{const L=i.value;D=D||new _I({},L,void 0,!0),D.loading=!0;const I=O=>{const R=D,B=R.root?null:R;O&&(o==null||o.appendNodes(O,B)),R.loading=!1,R.loaded=!0,R.childrenData=R.childrenData||[],P&&P(O)};L.lazyLoad(D,I)},m=(D,P)=>{var L;const{level:I}=D,O=c.value.slice(0,I);let R;D.isLeaf?R=D.pathNodes[I-2]:(R=D,O.push(D.children)),((L=f.value)==null?void 0:L.uid)!==(R==null?void 0:R.uid)&&(f.value=D,c.value=O,!P&&t("expand-change",(D==null?void 0:D.pathValues)||[]))},y=(D,P,L=!0)=>{const{checkStrictly:I,multiple:O}=i.value,R=d.value[0];n=!0,!O&&(R==null||R.doCheck(!1)),D.doCheck(P),T(),L&&!O&&!I&&t("close"),!L&&!O&&!I&&_(D)},_=D=>{D&&(D=D.parent,_(D),D&&m(D))},w=D=>o==null?void 0:o.getFlattedNodes(D),x=D=>{var P;return(P=w(D))==null?void 0:P.filter(L=>L.checked!==!1)},S=()=>{d.value.forEach(D=>D.doCheck(!1)),T(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},T=()=>{var D;const{checkStrictly:P,multiple:L}=i.value,I=d.value,O=x(!P),R=XXe(I,O),B=R.map(k=>k.valueByOption);d.value=R,u.value=L?B:(D=B[0])!=null?D:null},A=(D=!1,P=!1)=>{const{modelValue:L}=e,{lazy:I,multiple:O,checkStrictly:R}=i.value,B=!R;if(!(!s.value||n||!P&&to(L,u.value)))if(I&&!D){const z=TG(hGe(Nu(L))).map($=>o==null?void 0:o.getNodeByValue($)).filter($=>!!$&&!$.loaded&&!$.loading);z.length?z.forEach($=>{g($,()=>A(!1,P))}):A(!0,P)}else{const k=O?Nu(L):[L],z=TG(k.map($=>o==null?void 0:o.getNodeByValue($,B)));C(z,P),u.value=s2(L)}},C=(D,P=!0)=>{const{checkStrictly:L}=i.value,I=d.value,O=D.filter(k=>!!k&&(L||k.isLeaf)),R=o==null?void 0:o.getSameNode(f.value),B=P&&R||O[0];B?B.pathNodes.forEach(k=>m(k,!0)):f.value=null,I.forEach(k=>k.doCheck(!1)),e.props.multiple?Ar(O).forEach(k=>k.doCheck(!0)):O.forEach(k=>k.doCheck(!0)),d.value=O,qe(M)},M=()=>{ur&&l.value.forEach(D=>{const P=D==null?void 0:D.$el;if(P){const L=P.querySelector(`.${a.namespace.value}-scrollbar__wrap`),I=P.querySelector(`.${a.b("node")}.${a.is("active")}`)||P.querySelector(`.${a.b("node")}.in-active-path`);Lee(L,I)}})},E=D=>{const P=D.target,{code:L}=D;switch(L){case Qe.up:case Qe.down:{D.preventDefault();const I=L===Qe.up?-1:1;dS(FJ(P,I,`.${a.b("node")}[tabindex="-1"]`));break}case Qe.left:{D.preventDefault();const I=l.value[TU(P)-1],O=I==null?void 0:I.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);dS(O);break}case Qe.right:{D.preventDefault();const I=l.value[TU(P)+1],O=I==null?void 0:I.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);dS(O);break}case Qe.enter:KXe(P);break}};return Wt(E3,Ar({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:m,handleCheckChange:y})),Ae([i,()=>e.options],p,{deep:!0,immediate:!0}),Ae(()=>e.modelValue,()=>{n=!1,A()},{deep:!0}),Ae(()=>u.value,D=>{to(D,e.modelValue)||(t(Nt,D),t(ln,D))}),M9(()=>l.value=[]),xt(()=>!qo(e.modelValue)&&A()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:E,handleCheckChange:y,getFlattedNodes:w,getCheckedNodes:x,clearCheckedNodes:S,calculateCheckedValue:T,scrollToExpandingNode:M}}});function qXe(e,t,r,n,a,i){const o=bt("el-cascader-menu");return N(),U("div",{class:H([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(N(!0),U(Be,null,ht(e.menus,(s,l)=>(N(),he(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var bS=ke(ZXe,[["render",qXe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);bS.install=e=>{e.component(bS.name,bS)};const Lre=bS,QXe=Lre,M3=Oe({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}),JXe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},eZe=te({name:"ElTag"}),tZe=te({...eZe,props:M3,emits:JXe,setup(e,{emit:t}){const r=e,n=ca(),a=Ce("tag"),i=F(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=r;return[a.b(),a.is("closable",f),a.m(l),a.m(n.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(N(),U("span",{key:0,class:H(b(i)),style:Xe({backgroundColor:l.color}),onClick:s},[V("span",{class:H(b(a).e("content"))},[ye(l.$slots,"default")],2),l.closable?(N(),he(b(Ze),{key:0,class:H(b(a).e("close")),onClick:it(o,["stop"])},{default:le(()=>[J(b(el))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)):(N(),he(Yn,{key:1,name:`${b(a).namespace.value}-zoom-in-center`,appear:""},{default:le(()=>[V("span",{class:H(b(i)),style:Xe({backgroundColor:l.color}),onClick:s},[V("span",{class:H(b(a).e("content"))},[ye(l.$slots,"default")],2),l.closable?(N(),he(b(Ze),{key:0,class:H(b(a).e("close")),onClick:it(o,["stop"])},{default:le(()=>[J(b(el))]),_:1},8,["class","onClick"])):ce("v-if",!0)],6)]),_:3},8,["name"]))}});var rZe=ke(tZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const w_=kt(rZe),nZe=Oe({...Pre,size:Ga,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:fe(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:fe(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Va.teleported,tagType:{...M3.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),aZe={[Nt]:e=>!!e||e===null,[ln]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>la(e),expandChange:e=>!!e,removeTag:e=>!!e},iZe={key:0},oZe=["placeholder","onKeydown"],sZe=["onClick"],lZe="ElCascader",uZe=te({name:lZe}),cZe=te({...uZe,props:nZe,emits:aZe,setup(e,{expose:t,emit:r}){const n=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:pe})=>{const{modifiersData:de,placement:Me}=pe;["right","left","bottom","top"].includes(Me)||(de.arrow.x=35)},requires:["arrow"]}]},i=Jh();let o=0,s=0;const l=Ce("cascader"),u=Ce("input"),{t:c}=fr(),{form:f,formItem:d}=Vi(),h=G(null),v=G(null),p=G(null),g=G(null),m=G(null),y=G(!1),_=G(!1),w=G(!1),x=G(!1),S=G(""),T=G(""),A=G([]),C=G([]),M=G([]),E=G(!1),D=F(()=>i.style),P=F(()=>n.disabled||(f==null?void 0:f.disabled)),L=F(()=>n.placeholder||c("el.cascader.placeholder")),I=F(()=>T.value||A.value.length>0||E.value?"":L.value),O=ca(),R=F(()=>["small"].includes(O.value)?"small":"default"),B=F(()=>!!n.props.multiple),k=F(()=>!n.filterable||B.value),z=F(()=>B.value?T.value:S.value),$=F(()=>{var pe;return((pe=g.value)==null?void 0:pe.checkedNodes)||[]}),j=F(()=>!n.clearable||P.value||w.value||!_.value?!1:!!$.value.length),X=F(()=>{const{showAllLevels:pe,separator:de}=n,Me=$.value;return Me.length?B.value?"":Me[0].calcText(pe,de):""}),Q=F({get(){return s2(n.modelValue)},set(pe){r(Nt,pe),r(ln,pe),n.validateEvent&&(d==null||d.validate("change").catch(de=>void 0))}}),se=F(()=>[l.b(),l.m(O.value),l.is("disabled",P.value),i.class]),ee=F(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",y.value)]),K=F(()=>l.is("focus",y.value||x.value)),Z=F(()=>{var pe,de;return(de=(pe=h.value)==null?void 0:pe.popperRef)==null?void 0:de.contentRef}),ne=pe=>{var de,Me,ae;P.value||(pe=pe??!y.value,pe!==y.value&&(y.value=pe,(Me=(de=v.value)==null?void 0:de.input)==null||Me.setAttribute("aria-expanded",`${pe}`),pe?(re(),qe((ae=g.value)==null?void 0:ae.scrollToExpandingNode)):n.filterable&&He(),r("visibleChange",pe)))},re=()=>{qe(()=>{var pe;(pe=h.value)==null||pe.updatePopper()})},ie=()=>{w.value=!1},Y=pe=>{const{showAllLevels:de,separator:Me}=n;return{node:pe,key:pe.uid,text:pe.calcText(de,Me),hitState:!1,closable:!P.value&&!pe.isDisabled,isCollapseTag:!1}},q=pe=>{var de;const Me=pe.node;Me.doCheck(!1),(de=g.value)==null||de.calculateCheckedValue(),r("removeTag",Me.valueByOption)},oe=()=>{if(!B.value)return;const pe=$.value,de=[],Me=[];if(pe.forEach(ae=>Me.push(Y(ae))),C.value=Me,pe.length){pe.slice(0,n.maxCollapseTags).forEach(St=>de.push(Y(St)));const ae=pe.slice(n.maxCollapseTags),Ge=ae.length;Ge&&(n.collapseTags?de.push({key:-1,text:`+ ${Ge}`,closable:!1,isCollapseTag:!0}):ae.forEach(St=>de.push(Y(St))))}A.value=de},ve=()=>{var pe,de;const{filterMethod:Me,showAllLevels:ae,separator:Ge}=n,St=(de=(pe=g.value)==null?void 0:pe.getFlattedNodes(!n.props.checkStrictly))==null?void 0:de.filter(Kt=>Kt.isDisabled?!1:(Kt.calcText(ae,Ge),Me(Kt,z.value)));B.value&&(A.value.forEach(Kt=>{Kt.hitState=!1}),C.value.forEach(Kt=>{Kt.hitState=!1})),w.value=!0,M.value=St,re()},_e=()=>{var pe;let de;w.value&&m.value?de=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):de=(pe=g.value)==null?void 0:pe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),de&&(de.focus(),!w.value&&de.click())},ge=()=>{var pe,de;const Me=(pe=v.value)==null?void 0:pe.input,ae=p.value,Ge=(de=m.value)==null?void 0:de.$el;if(!(!ur||!Me)){if(Ge){const St=Ge.querySelector(`.${l.e("suggestion-list")}`);St.style.minWidth=`${Me.offsetWidth}px`}if(ae){const{offsetHeight:St}=ae,Kt=A.value.length>0?`${Math.max(St+6,o)}px`:`${o}px`;Me.style.height=Kt,re()}}},Le=pe=>{var de;return(de=g.value)==null?void 0:de.getCheckedNodes(pe)},Se=pe=>{re(),r("expandChange",pe)},xe=pe=>{var de;const Me=(de=pe.target)==null?void 0:de.value;if(pe.type==="compositionend")E.value=!1,qe(()=>tt(Me));else{const ae=Me[Me.length-1]||"";E.value=!bT(ae)}},Te=pe=>{if(!E.value)switch(pe.code){case Qe.enter:ne();break;case Qe.down:ne(!0),qe(_e),pe.preventDefault();break;case Qe.esc:y.value===!0&&(pe.preventDefault(),pe.stopPropagation(),ne(!1));break;case Qe.tab:ne(!1);break}},Ve=()=>{var pe;(pe=g.value)==null||pe.clearCheckedNodes(),!y.value&&n.filterable&&He(),ne(!1)},He=()=>{const{value:pe}=X;S.value=pe,T.value=pe},je=pe=>{var de,Me;const{checked:ae}=pe;B.value?(de=g.value)==null||de.handleCheckChange(pe,!ae,!1):(!ae&&((Me=g.value)==null||Me.handleCheckChange(pe,!0,!1)),ne(!1))},Pe=pe=>{const de=pe.target,{code:Me}=pe;switch(Me){case Qe.up:case Qe.down:{const ae=Me===Qe.up?-1:1;dS(FJ(de,ae,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Qe.enter:de.click();break}},Ue=()=>{const pe=A.value,de=pe[pe.length-1];s=T.value?0:s+1,!(!de||!s||n.collapseTags&&pe.length>1)&&(de.hitState?q(de):de.hitState=!0)},gt=pe=>{const de=pe.target,Me=l.e("search-input");de.className===Me&&(x.value=!0),r("focus",pe)},At=pe=>{x.value=!1,r("blur",pe)},Gt=Ni(()=>{const{value:pe}=z;if(!pe)return;const de=n.beforeFilter(pe);p0(de)?de.then(ve).catch(()=>{}):de!==!1?ve():ie()},n.debounce),tt=(pe,de)=>{!y.value&&ne(!0),!(de!=null&&de.isComposing)&&(pe?Gt():ie())},be=pe=>Number.parseFloat(tFe(u.cssVarName("input-height"),pe).value)-2;return Ae(w,re),Ae([$,P],oe),Ae(A,()=>{qe(()=>ge())}),Ae(O,async()=>{await qe();const pe=v.value.input;o=be(pe)||o,ge()}),Ae(X,He,{immediate:!0}),xt(()=>{const pe=v.value.input,de=be(pe);o=pe.offsetHeight||de,di(pe,ge)}),t({getCheckedNodes:Le,cascaderPanelRef:g,togglePopperVisible:ne,contentRef:Z}),(pe,de)=>(N(),he(b(Bi),{ref_key:"tooltipRef",ref:h,visible:y.value,teleported:pe.teleported,"popper-class":[b(l).e("dropdown"),pe.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:`${b(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ie},{default:le(()=>[Ct((N(),U("div",{class:H(b(se)),style:Xe(b(D)),onClick:de[5]||(de[5]=()=>ne(b(k)?void 0:!0)),onKeydown:Te,onMouseenter:de[6]||(de[6]=Me=>_.value=!0),onMouseleave:de[7]||(de[7]=Me=>_.value=!1)},[J(b(li),{ref_key:"input",ref:v,modelValue:S.value,"onUpdate:modelValue":de[1]||(de[1]=Me=>S.value=Me),placeholder:b(I),readonly:b(k),disabled:b(P),"validate-event":!1,size:b(O),class:H(b(K)),tabindex:b(B)&&pe.filterable&&!b(P)?-1:void 0,onCompositionstart:xe,onCompositionupdate:xe,onCompositionend:xe,onFocus:gt,onBlur:At,onInput:tt},{suffix:le(()=>[b(j)?(N(),he(b(Ze),{key:"clear",class:H([b(u).e("icon"),"icon-circle-close"]),onClick:it(Ve,["stop"])},{default:le(()=>[J(b(zf))]),_:1},8,["class","onClick"])):(N(),he(b(Ze),{key:"arrow-down",class:H(b(ee)),onClick:de[0]||(de[0]=it(Me=>ne(),["stop"]))},{default:le(()=>[J(b(Vf))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),b(B)?(N(),U("div",{key:0,ref_key:"tagWrapper",ref:p,class:H(b(l).e("tags"))},[(N(!0),U(Be,null,ht(A.value,Me=>(N(),he(b(w_),{key:Me.key,type:pe.tagType,size:b(R),hit:Me.hitState,closable:Me.closable,"disable-transitions":"",onClose:ae=>q(Me)},{default:le(()=>[Me.isCollapseTag===!1?(N(),U("span",iZe,me(Me.text),1)):(N(),he(b(Bi),{key:1,disabled:y.value||!pe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:le(()=>[V("span",null,me(Me.text),1)]),content:le(()=>[V("div",{class:H(b(l).e("collapse-tags"))},[(N(!0),U(Be,null,ht(C.value.slice(pe.maxCollapseTags),(ae,Ge)=>(N(),U("div",{key:Ge,class:H(b(l).e("collapse-tag"))},[(N(),he(b(w_),{key:ae.key,class:"in-tooltip",type:pe.tagType,size:b(R),hit:ae.hitState,closable:ae.closable,"disable-transitions":"",onClose:St=>q(ae)},{default:le(()=>[V("span",null,me(ae.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),pe.filterable&&!b(P)?Ct((N(),U("input",{key:0,"onUpdate:modelValue":de[2]||(de[2]=Me=>T.value=Me),type:"text",class:H(b(l).e("search-input")),placeholder:b(X)?"":b(L),onInput:de[3]||(de[3]=Me=>tt(T.value,Me)),onClick:de[4]||(de[4]=it(Me=>ne(!0),["stop"])),onKeydown:dr(Ue,["delete"]),onCompositionstart:xe,onCompositionupdate:xe,onCompositionend:xe,onFocus:gt,onBlur:At},null,42,oZe)),[[VR,T.value]]):ce("v-if",!0)],2)):ce("v-if",!0)],38)),[[b(Df),()=>ne(!1),b(Z)]])]),content:le(()=>[Ct(J(b(Lre),{ref_key:"cascaderPanelRef",ref:g,modelValue:b(Q),"onUpdate:modelValue":de[8]||(de[8]=Me=>Qr(Q)?Q.value=Me:null),options:pe.options,props:n.props,border:!1,"render-label":pe.$slots.default,onExpandChange:Se,onClose:de[9]||(de[9]=Me=>pe.$nextTick(()=>ne(!1)))},null,8,["modelValue","options","props","render-label"]),[[hr,!w.value]]),pe.filterable?Ct((N(),he(b(ic),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:H(b(l).e("suggestion-panel")),"view-class":b(l).e("suggestion-list"),onKeydown:Pe},{default:le(()=>[M.value.length?(N(!0),U(Be,{key:0},ht(M.value,Me=>(N(),U("li",{key:Me.uid,class:H([b(l).e("suggestion-item"),b(l).is("checked",Me.checked)]),tabindex:-1,onClick:ae=>je(Me)},[V("span",null,me(Me.text),1),Me.checked?(N(),he(b(Ze),{key:0},{default:le(()=>[J(b(P1))]),_:1})):ce("v-if",!0)],10,sZe))),128)):ye(pe.$slots,"empty",{key:1},()=>[V("li",{class:H(b(l).e("empty-text"))},me(b(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[hr,w.value]]):ce("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var wS=ke(cZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);wS.install=e=>{e.component(wS.name,wS)};const fZe=wS,dZe=fZe,hZe=Oe({checked:{type:Boolean,default:!1}}),vZe={"update:checked":e=>la(e),[ln]:e=>la(e)},pZe=te({name:"ElCheckTag"}),gZe=te({...pZe,props:hZe,emits:vZe,setup(e,{emit:t}){const r=e,n=Ce("check-tag"),a=F(()=>[n.b(),n.is("checked",r.checked)]),i=()=>{const o=!r.checked;t(ln,o),t("update:checked",o)};return(o,s)=>(N(),U("span",{class:H(b(a)),onClick:i},[ye(o.$slots,"default")],2))}});var mZe=ke(gZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const yZe=kt(mZe),Ire=Symbol("rowContextKey"),_Ze=["start","center","end","space-around","space-between","space-evenly"],bZe=["top","middle","bottom"],wZe=Oe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:_Ze,default:"start"},align:{type:String,values:bZe}}),SZe=te({name:"ElRow"}),xZe=te({...SZe,props:wZe,setup(e){const t=e,r=Ce("row"),n=F(()=>t.gutter);Wt(Ire,{gutter:n});const a=F(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=F(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,!!t.align)]);return(o,s)=>(N(),he(Ft(o.tag),{class:H(b(i)),style:Xe(b(a))},{default:le(()=>[ye(o.$slots,"default")]),_:3},8,["class","style"]))}});var AZe=ke(xZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const TZe=kt(AZe),CZe=Oe({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:fe([Number,Object]),default:()=>mn({})},sm:{type:fe([Number,Object]),default:()=>mn({})},md:{type:fe([Number,Object]),default:()=>mn({})},lg:{type:fe([Number,Object]),default:()=>mn({})},xl:{type:fe([Number,Object]),default:()=>mn({})}}),EZe=te({name:"ElCol"}),MZe=te({...EZe,props:CZe,setup(e){const t=e,{gutter:r}=Ye(Ire,{gutter:F(()=>0)}),n=Ce("col"),a=F(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),i=F(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];ct(c)&&(u==="span"?o.push(n.b(`${t[u]}`)):c>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{ct(t[u])?o.push(n.b(`${u}-${t[u]}`)):Vt(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?n.b(`${u}-${c}-${f}`):n.b(`${u}-${f}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(N(),he(Ft(o.tag),{class:H(b(i)),style:Xe(b(a))},{default:le(()=>[ye(o.$slots,"default")]),_:3},8,["class","style"]))}});var DZe=ke(MZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const PZe=kt(DZe),CU=e=>typeof ct(e),LZe=Oe({accordion:Boolean,modelValue:{type:fe([Array,String,Number]),default:()=>mn([])}}),IZe={[Nt]:CU,[ln]:CU},Rre=Symbol("collapseContextKey"),RZe=(e,t)=>{const r=G(jh(e.modelValue)),n=i=>{r.value=i;const o=e.accordion?r.value[0]:r.value;t(Nt,o),t(ln,o)},a=i=>{if(e.accordion)n([r.value[0]===i?"":i]);else{const o=[...r.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),n(o)}};return Ae(()=>e.modelValue,()=>r.value=jh(e.modelValue),{deep:!0}),Wt(Rre,{activeNames:r,handleItemClick:a}),{activeNames:r,setActiveNames:n}},OZe=()=>{const e=Ce("collapse");return{rootKls:F(()=>e.b())}},kZe=te({name:"ElCollapse"}),NZe=te({...kZe,props:LZe,emits:IZe,setup(e,{expose:t,emit:r}){const n=e,{activeNames:a,setActiveNames:i}=RZe(n,r),{rootKls:o}=OZe();return t({activeNames:a,setActiveNames:i}),(s,l)=>(N(),U("div",{class:H(b(o))},[ye(s.$slots,"default")],2))}});var BZe=ke(NZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const FZe=te({name:"ElCollapseTransition"}),VZe=te({...FZe,setup(e){const t=Ce("collapse-transition"),r=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},n={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){r(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){r(a)},leaveCancelled(a){r(a)}};return(a,i)=>(N(),he(Yn,Ut({name:b(t).b()},Sse(n)),{default:le(()=>[ye(a.$slots,"default")]),_:3},16,["name"]))}});var SS=ke(VZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);SS.install=e=>{e.component(SS.name,SS)};const LT=SS,zZe=LT,HZe=Oe({title:{type:String,default:""},name:{type:fe([String,Number]),default:()=>ST()},disabled:Boolean}),GZe=e=>{const t=Ye(Rre),r=G(!1),n=G(!1),a=G(ST()),i=F(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:r,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{n.value?n.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),r.value=!1,n.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},UZe=(e,{focusing:t,isActive:r,id:n})=>{const a=Ce("collapse"),i=F(()=>[a.b("item"),a.is("active",b(r)),a.is("disabled",e.disabled)]),o=F(()=>[a.be("item","header"),a.is("active",b(r)),{focusing:b(t)&&!e.disabled}]),s=F(()=>[a.be("item","arrow"),a.is("active",b(r))]),l=F(()=>a.be("item","wrap")),u=F(()=>a.be("item","content")),c=F(()=>a.b(`content-${b(n)}`)),f=F(()=>a.b(`head-${b(n)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},$Ze=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],WZe=["id","aria-hidden","aria-labelledby"],YZe=te({name:"ElCollapseItem"}),jZe=te({...YZe,props:HZe,setup(e,{expose:t}){const r=e,{focusing:n,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=GZe(r),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=UZe(r,{focusing:n,isActive:i,id:a});return t({isActive:i}),(g,m)=>(N(),U("div",{class:H(b(f))},[V("button",{id:b(p),class:H(b(c)),"aria-expanded":b(i),"aria-controls":b(v),"aria-describedby":b(v),tabindex:g.disabled?-1:0,type:"button",onClick:m[0]||(m[0]=(...y)=>b(s)&&b(s)(...y)),onKeydown:m[1]||(m[1]=dr(it((...y)=>b(l)&&b(l)(...y),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(...y)=>b(o)&&b(o)(...y)),onBlur:m[3]||(m[3]=y=>n.value=!1)},[ye(g.$slots,"title",{},()=>[nr(me(g.title),1)]),J(b(Ze),{class:H(b(u))},{default:le(()=>[J(b(Mi))]),_:1},8,["class"])],42,$Ze),J(b(LT),null,{default:le(()=>[Ct(V("div",{id:b(v),role:"region",class:H(b(d)),"aria-hidden":!b(i),"aria-labelledby":b(p)},[V("div",{class:H(b(h))},[ye(g.$slots,"default")],2)],10,WZe),[[hr,b(i)]])]),_:3})],2))}});var Ore=ke(jZe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const KZe=kt(BZe,{CollapseItem:Ore}),XZe=Pn(Ore),ZZe=Oe({color:{type:fe(Object),required:!0},vertical:{type:Boolean,default:!1}});let WM=!1;function S_(e,t){if(!ur)return;const r=function(i){var o;(o=t.drag)==null||o.call(t,i)},n=function(i){var o;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",n),document.onselectstart=null,document.ondragstart=null,WM=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;WM||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",n),document.addEventListener("touchmove",r),document.addEventListener("touchend",n),WM=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const qZe=e=>{const t=It(),r=yr(),n=yr();function a(o){o.target!==r.value&&i(o)}function i(o){if(!n.value||!r.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=ON(o);if(e.vertical){let f=c-l.top;f=Math.max(r.value.offsetHeight/2,f),f=Math.min(f,l.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((f-r.value.offsetHeight/2)/(l.height-r.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(r.value.offsetWidth/2,f),f=Math.min(f,l.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((f-r.value.offsetWidth/2)/(l.width-r.value.offsetWidth)*100))}}return{thumb:r,bar:n,handleDrag:i,handleClick:a}},QZe=(e,{bar:t,thumb:r,handleDrag:n})=>{const a=It(),i=Ce("color-alpha-slider"),o=G(0),s=G(0),l=G();function u(){if(!r.value||e.vertical)return 0;const y=a.vnode.el,_=e.color.get("alpha");return y?Math.round(_*(y.offsetWidth-r.value.offsetWidth/2)/100):0}function c(){if(!r.value)return 0;const y=a.vnode.el;if(!e.vertical)return 0;const _=e.color.get("alpha");return y?Math.round(_*(y.offsetHeight-r.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:y,g:_,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${_}, ${w}, 0) 0%, rgba(${y}, ${_}, ${w}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}xt(()=>{if(!t.value||!r.value)return;const y={drag:_=>{n(_)},end:_=>{n(_)}};S_(t.value,y),S_(r.value,y),d()}),Ae(()=>e.color.get("alpha"),()=>d()),Ae(()=>e.color.value,()=>d());const h=F(()=>[i.b(),i.is("vertical",e.vertical)]),v=F(()=>i.e("bar")),p=F(()=>i.e("thumb")),g=F(()=>({background:l.value})),m=F(()=>({left:Hn(o.value),top:Hn(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:m,update:d}},JZe="ElColorAlphaSlider",eqe=te({name:JZe}),tqe=te({...eqe,props:ZZe,setup(e,{expose:t}){const r=e,{bar:n,thumb:a,handleDrag:i,handleClick:o}=qZe(r),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=QZe(r,{bar:n,thumb:a,handleDrag:i});return t({update:d,bar:n,thumb:a}),(h,v)=>(N(),U("div",{class:H(b(s))},[V("div",{ref_key:"bar",ref:n,class:H(b(l)),style:Xe(b(u)),onClick:v[0]||(v[0]=(...p)=>b(o)&&b(o)(...p))},null,6),V("div",{ref_key:"thumb",ref:a,class:H(b(c)),style:Xe(b(f))},null,6)],2))}});var rqe=ke(tqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const nqe=te({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ce("color-hue-slider"),r=It(),n=G(),a=G(),i=G(0),o=G(0),s=F(()=>e.color.get("hue"));Ae(()=>s.value,()=>{d()});function l(h){h.target!==n.value&&u(h)}function u(h){if(!a.value||!n.value)return;const p=r.vnode.el.getBoundingClientRect(),{clientX:g,clientY:m}=ON(h);let y;if(e.vertical){let _=m-p.top;_=Math.min(_,p.height-n.value.offsetHeight/2),_=Math.max(n.value.offsetHeight/2,_),y=Math.round((_-n.value.offsetHeight/2)/(p.height-n.value.offsetHeight)*360)}else{let _=g-p.left;_=Math.min(_,p.width-n.value.offsetWidth/2),_=Math.max(n.value.offsetWidth/2,_),y=Math.round((_-n.value.offsetWidth/2)/(p.width-n.value.offsetWidth)*360)}e.color.set("hue",y)}function c(){if(!n.value)return 0;const h=r.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetWidth-n.value.offsetWidth/2)/360):0}function f(){if(!n.value)return 0;const h=r.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetHeight-n.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return xt(()=>{if(!a.value||!n.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};S_(a.value,h),S_(n.value,h),d()}),{bar:a,thumb:n,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function aqe(e,t,r,n,a,i){return N(),U("div",{class:H([e.ns.b(),e.ns.is("vertical",e.vertical)])},[V("div",{ref:"bar",class:H(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),V("div",{ref:"thumb",class:H(e.ns.e("thumb")),style:Xe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var iqe=ke(nqe,[["render",aqe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const oqe=Oe({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Ga,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:fe(Array)},validateEvent:{type:Boolean,default:!0}}),sqe={[Nt]:e=>wt(e)||Qn(e),[ln]:e=>wt(e)||Qn(e),activeChange:e=>wt(e)||Qn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},kre=Symbol("colorPickerContextKey"),EU=function(e,t,r){return[e,t*r/((e=(2-t)*r)<1?e:2-e)||0,e/2]},lqe=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},uqe=function(e){return typeof e=="string"&&e.includes("%")},Fp=function(e,t){lqe(e)&&(e="100%");const r=uqe(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},MU={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},xS=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),r=e%16;return`${MU[t]||t}${MU[r]||r}`},DU=function({r:e,g:t,b:r}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+r)?"":`#${xS(e)}${xS(t)}${xS(r)}`},YM={A:10,B:11,C:12,D:13,E:14,F:15},Ad=function(e){return e.length===2?(YM[e[0].toUpperCase()]||+e[0])*16+(YM[e[1].toUpperCase()]||+e[1]):YM[e[1].toUpperCase()]||+e[1]},cqe=function(e,t,r){t=t/100,r=r/100;let n=t;const a=Math.max(r,.01);r*=2,t*=r<=1?r:2-r,n*=a<=1?a:2-a;const i=(r+t)/2,o=r===0?2*n/(a+n):2*t/(r+t);return{h:e,s:o*100,v:i*100}},PU=(e,t,r)=>{e=Fp(e,255),t=Fp(t,255),r=Fp(r,255);const n=Math.max(e,t,r),a=Math.min(e,t,r);let i;const o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:{i=(t-r)/s+(t<r?6:0);break}case t:{i=(r-e)/s+2;break}case r:{i=(e-t)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:o*100}},Jm=function(e,t,r){e=Fp(e,360)*6,t=Fp(t,100),r=Fp(r,100);const n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,u=[r,o,i,i,s,r][l],c=[s,r,r,o,i,i][l],f=[i,i,s,r,r,o][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class l0{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const r in t)or(t,r)&&(this[r]=t[r]);t.value?this.fromString(t.value):this.doOnChange()}set(t,r){if(arguments.length===1&&typeof t=="object"){for(const n in t)or(t,n)&&this.set(n,t[n]);return}this[`_${t}`]=r,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Jm(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const r=(n,a,i)=>{this._hue=Math.max(0,Math.min(360,n)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const n=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3){const{h:a,s:i,v:o}=cqe(n[0],n[1],n[2]);r(a,i,o)}}else if(t.includes("hsv")){const n=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3&&r(n[0],n[1],n[2])}else if(t.includes("rgb")){const n=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(n.length===4?this._alpha=Number.parseFloat(n[3])*100:n.length===3&&(this._alpha=100),n.length>=3){const{h:a,s:i,v:o}=PU(n[0],n[1],n[2]);r(a,i,o)}}else if(t.includes("#")){const n=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let a,i,o;n.length===3?(a=Ad(n[0]+n[0]),i=Ad(n[1]+n[1]),o=Ad(n[2]+n[2])):(n.length===6||n.length===8)&&(a=Ad(n.slice(0,2)),i=Ad(n.slice(2,4)),o=Ad(n.slice(4,6))),n.length===8?this._alpha=Ad(n.slice(6))/255*100:(n.length===3||n.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=PU(a,i,o);r(s,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:r,_value:n,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=EU(t,r/100,n/100);this.value=`hsla(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(r)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${DU(Jm(t,r,n))}${xS(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=Jm(t,r,n);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=EU(t,r/100,n/100);this.value=`hsl(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(r)}%, ${Math.round(n)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=Jm(t,r,n);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=DU(Jm(t,r,n))}}}const fqe=te({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ce("color-predefine"),{currentColor:r}=Ye(kre),n=G(i(e.colors,e.color));Ae(()=>r.value,o=>{const s=new l0;s.fromString(o),n.value.forEach(l=>{l.selected=s.compare(l)})}),xo(()=>{n.value=i(e.colors,e.color)});function a(o){e.color.fromString(e.colors[o])}function i(o,s){return o.map(l=>{const u=new l0;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:n,handleSelect:a,ns:t}}}),dqe=["onClick"];function hqe(e,t,r,n,a,i){return N(),U("div",{class:H(e.ns.b())},[V("div",{class:H(e.ns.e("colors"))},[(N(!0),U(Be,null,ht(e.rgbaColors,(o,s)=>(N(),U("div",{key:e.colors[s],class:H([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[V("div",{style:Xe({backgroundColor:o.value})},null,4)],10,dqe))),128))],2)],2)}var vqe=ke(fqe,[["render",hqe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const pqe=te({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ce("color-svpanel"),r=It(),n=G(0),a=G(0),i=G("hsl(0, 100%, 50%)"),o=F(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),f=r.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,n.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=r.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=ON(u);let v=d-f.left,p=h-f.top;v=Math.max(0,v),v=Math.min(v,f.width),p=Math.max(0,p),p=Math.min(p,f.height),a.value=v,n.value=p,e.color.set({saturation:v/f.width*100,value:100-p/f.height*100})}return Ae(()=>o.value,()=>{s()}),xt(()=>{S_(r.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:n,cursorLeft:a,background:i,colorValue:o,handleDrag:l,update:s,ns:t}}}),gqe=V("div",null,null,-1),mqe=[gqe];function yqe(e,t,r,n,a,i){return N(),U("div",{class:H(e.ns.b()),style:Xe({backgroundColor:e.background})},[V("div",{class:H(e.ns.e("white"))},null,2),V("div",{class:H(e.ns.e("black"))},null,2),V("div",{class:H(e.ns.e("cursor")),style:Xe({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},mqe,6)],6)}var _qe=ke(pqe,[["render",yqe],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const bqe=["onKeydown"],wqe=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],Sqe=te({name:"ElColorPicker"}),xqe=te({...Sqe,props:oqe,emits:sqe,setup(e,{expose:t,emit:r}){const n=e,{t:a}=fr(),i=Ce("color"),{formItem:o}=Vi(),s=ca(),l=ho(),{inputId:u,isLabeledByFormItem:c}=$f(n,{formItemContext:o}),f=G(),d=G(),h=G(),v=G(),p=G(),g=G(),{isFocused:m,handleFocus:y,handleBlur:_}=xte(p,{beforeBlur(re){var ie;return(ie=v.value)==null?void 0:ie.isFocusInsideContent(re)},afterBlur(){O(!1),z()}}),w=re=>{if(l.value)return ne();y(re)};let x=!0;const S=Ar(new l0({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue})),T=G(!1),A=G(!1),C=G(""),M=F(()=>!n.modelValue&&!A.value?"transparent":I(S,n.showAlpha)),E=F(()=>!n.modelValue&&!A.value?"":S.value),D=F(()=>c.value?void 0:n.label||a("el.colorpicker.defaultLabel")),P=F(()=>c.value?o==null?void 0:o.labelId:void 0),L=F(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value),i.is("focused",m.value)]);function I(re,ie){if(!(re instanceof l0))throw new TypeError("color should be instance of _color Class");const{r:Y,g:q,b:oe}=re.toRgb();return ie?`rgba(${Y}, ${q}, ${oe}, ${re.get("alpha")/100})`:`rgb(${Y}, ${q}, ${oe})`}function O(re){T.value=re}const R=Ni(O,100,{leading:!0});function B(){l.value||O(!0)}function k(){R(!1),z()}function z(){qe(()=>{n.modelValue?S.fromString(n.modelValue):(S.value="",qe(()=>{A.value=!1}))})}function $(){l.value||R(!T.value)}function j(){S.fromString(C.value)}function X(){const re=S.value;r(Nt,re),r("change",re),n.validateEvent&&(o==null||o.validate("change").catch(ie=>void 0)),R(!1),qe(()=>{const ie=new l0({enableAlpha:n.showAlpha,format:n.colorFormat||"",value:n.modelValue});S.compare(ie)||z()})}function Q(){R(!1),r(Nt,null),r("change",null),n.modelValue!==null&&n.validateEvent&&(o==null||o.validate("change").catch(re=>void 0)),z()}function se(re){if(T.value&&(k(),m.value)){const ie=new FocusEvent("focus",re);_(ie)}}function ee(re){re.preventDefault(),re.stopPropagation(),O(!1),z()}function K(re){switch(re.code){case Qe.enter:case Qe.space:re.preventDefault(),re.stopPropagation(),B(),g.value.focus();break;case Qe.esc:ee(re);break}}function Z(){p.value.focus()}function ne(){p.value.blur()}return xt(()=>{n.modelValue&&(C.value=E.value)}),Ae(()=>n.modelValue,re=>{re?re&&re!==S.value&&(x=!1,S.fromString(re)):A.value=!1}),Ae(()=>E.value,re=>{C.value=re,x&&r("activeChange",re),x=!0}),Ae(()=>S.value,()=>{!n.modelValue&&!A.value&&(A.value=!0)}),Ae(()=>T.value,()=>{qe(()=>{var re,ie,Y;(re=f.value)==null||re.update(),(ie=d.value)==null||ie.update(),(Y=h.value)==null||Y.update()})}),Wt(kre,{currentColor:E}),t({color:S,show:B,hide:k,focus:Z,blur:ne}),(re,ie)=>(N(),he(b(Bi),{ref_key:"popper",ref:v,visible:T.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[b(i).be("picker","panel"),b(i).b("dropdown"),re.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${b(i).namespace.value}-zoom-in-top`,persistent:"",onHide:ie[2]||(ie[2]=Y=>O(!1))},{content:le(()=>[Ct((N(),U("div",{onKeydown:dr(ee,["esc"])},[V("div",{class:H(b(i).be("dropdown","main-wrapper"))},[J(iqe,{ref_key:"hue",ref:f,class:"hue-slider",color:b(S),vertical:""},null,8,["color"]),J(_qe,{ref_key:"sv",ref:d,color:b(S)},null,8,["color"])],2),re.showAlpha?(N(),he(rqe,{key:0,ref_key:"alpha",ref:h,color:b(S)},null,8,["color"])):ce("v-if",!0),re.predefine?(N(),he(vqe,{key:1,ref:"predefine",color:b(S),colors:re.predefine},null,8,["color","colors"])):ce("v-if",!0),V("div",{class:H(b(i).be("dropdown","btns"))},[V("span",{class:H(b(i).be("dropdown","value"))},[J(b(li),{ref_key:"inputRef",ref:g,modelValue:C.value,"onUpdate:modelValue":ie[0]||(ie[0]=Y=>C.value=Y),"validate-event":!1,size:"small",onKeyup:dr(j,["enter"]),onBlur:j},null,8,["modelValue","onKeyup"])],2),J(b(Ja),{class:H(b(i).be("dropdown","link-btn")),text:"",size:"small",onClick:Q},{default:le(()=>[nr(me(b(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),J(b(Ja),{plain:"",size:"small",class:H(b(i).be("dropdown","btn")),onClick:X},{default:le(()=>[nr(me(b(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,bqe)),[[b(Df),se]])]),default:le(()=>[V("div",{id:b(u),ref_key:"triggerRef",ref:p,class:H(b(L)),role:"button","aria-label":b(D),"aria-labelledby":b(P),"aria-description":b(a)("el.colorpicker.description",{color:re.modelValue||""}),"aria-disabled":b(l),tabindex:b(l)?-1:re.tabindex,onKeydown:K,onFocus:w,onBlur:ie[1]||(ie[1]=(...Y)=>b(_)&&b(_)(...Y))},[b(l)?(N(),U("div",{key:0,class:H(b(i).be("picker","mask"))},null,2)):ce("v-if",!0),V("div",{class:H(b(i).be("picker","trigger")),onClick:$},[V("span",{class:H([b(i).be("picker","color"),b(i).is("alpha",re.showAlpha)])},[V("span",{class:H(b(i).be("picker","color-inner")),style:Xe({backgroundColor:b(M)})},[Ct(J(b(Ze),{class:H([b(i).be("picker","icon"),b(i).is("icon-arrow-down")])},{default:le(()=>[J(b(Vf))]),_:1},8,["class"]),[[hr,re.modelValue||A.value]]),Ct(J(b(Ze),{class:H([b(i).be("picker","empty"),b(i).is("icon-close")])},{default:le(()=>[J(b(el))]),_:1},8,["class"]),[[hr,!re.modelValue&&!A.value]])],6)],2)],2)],42,wqe)]),_:1},8,["visible","popper-class","transition"]))}});var Aqe=ke(xqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Tqe=kt(Aqe),Cqe=te({name:"ElContainer"}),Eqe=te({...Cqe,props:{direction:{type:String}},setup(e){const t=e,r=$a(),n=Ce("container"),a=F(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:r&&r.default?r.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(N(),U("section",{class:H([b(n).b(),b(n).is("vertical",b(a))])},[ye(i.$slots,"default")],2))}});var Mqe=ke(Eqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Dqe=te({name:"ElAside"}),Pqe=te({...Dqe,props:{width:{type:String,default:null}},setup(e){const t=e,r=Ce("aside"),n=F(()=>t.width?r.cssVarBlock({width:t.width}):{});return(a,i)=>(N(),U("aside",{class:H(b(r).b()),style:Xe(b(n))},[ye(a.$slots,"default")],6))}});var Nre=ke(Pqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Lqe=te({name:"ElFooter"}),Iqe=te({...Lqe,props:{height:{type:String,default:null}},setup(e){const t=e,r=Ce("footer"),n=F(()=>t.height?r.cssVarBlock({height:t.height}):{});return(a,i)=>(N(),U("footer",{class:H(b(r).b()),style:Xe(b(n))},[ye(a.$slots,"default")],6))}});var Bre=ke(Iqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Rqe=te({name:"ElHeader"}),Oqe=te({...Rqe,props:{height:{type:String,default:null}},setup(e){const t=e,r=Ce("header"),n=F(()=>t.height?r.cssVarBlock({height:t.height}):{});return(a,i)=>(N(),U("header",{class:H(b(r).b()),style:Xe(b(n))},[ye(a.$slots,"default")],6))}});var Fre=ke(Oqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const kqe=te({name:"ElMain"}),Nqe=te({...kqe,setup(e){const t=Ce("main");return(r,n)=>(N(),U("main",{class:H(b(t).b())},[ye(r.$slots,"default")],2))}});var Vre=ke(Nqe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Bqe=kt(Mqe,{Aside:Nre,Footer:Bre,Header:Fre,Main:Vre}),Fqe=Pn(Nre),Vqe=Pn(Bre),zqe=Pn(Fre),Hqe=Pn(Vre);var zre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){var a=n.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)}}})})(zre);var Gqe=zre.exports;const Uqe=ru(Gqe);var Hre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){var r="week",n="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(n).add(1,n).date(u),f=o(this).endOf(r);if(c.isBefore(f))return 1}var d=o(this).startOf(n).date(u).startOf(r).subtract(1,"millisecond"),h=this.diff(d,r,!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)}}})})(Hre);var $qe=Hre.exports;const Wqe=ru($qe);var Gre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){n.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}}})})(Gre);var Yqe=Gre.exports;const jqe=ru(Yqe);var Ure={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n,a){n.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")}}})})(Ure);var Kqe=Ure.exports;const Xqe=ru(Kqe);var $re={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})($re);var Zqe=$re.exports;const qqe=ru(Zqe);var Wre={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(oc,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(Wre);var Qqe=Wre.exports;const Jqe=ru(Qqe),D3=Symbol(),eQe=Oe({...C3,type:{type:fe(String),default:"date"}}),tQe=["date","dates","year","month","week","range"],P3=Oe({disabledDate:{type:fe(Function)},date:{type:fe(Object),required:!0},minDate:{type:fe(Object)},maxDate:{type:fe(Object)},parsedValue:{type:fe([Object,Array])},rangeState:{type:fe(Object),default:()=>({endDate:null,selecting:!1})}}),Yre=Oe({type:{type:fe(String),required:!0,values:GUe},dateFormat:String,timeFormat:String}),jre=Oe({unlinkPanels:Boolean,parsedValue:{type:fe(Array)}}),Kre=e=>({type:String,values:tQe,default:e}),rQe=Oe({...Yre,parsedValue:{type:fe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),nQe=Oe({...P3,cellClassName:{type:fe(Function)},showWeekNumber:Boolean,selectionMode:Kre("date")}),aQe=["changerange","pick","select"],SI=e=>{if(!We(e))return!1;const[t,r]=e;return Rt.isDayjs(t)&&Rt.isDayjs(r)&&t.isSameOrBefore(r)},Xre=(e,{lang:t,unit:r,unlinkPanels:n})=>{let a;if(We(e)){let[i,o]=e.map(s=>Rt(s).locale(t));return n||(o=i.add(1,r)),[i,o]}else e?a=Rt(e):a=Rt();return a=a.locale(t),[a,a.add(1,r)]},iQe=(e,t,{columnIndexOffset:r,startDate:n,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const f=t[c];for(let d=0;d<e.column;d++){let h=f[d+r];h||(h={row:c,column:d,type:"normal",inRange:!1,start:!1,end:!1});const v=c*e.column+d,p=s(v);h.dayjs=p,h.date=p.toDate(),h.timestamp=p.valueOf(),h.type="normal",h.inRange=!!(n&&p.isSameOrAfter(n,o)&&a&&p.isSameOrBefore(a,o))||!!(n&&p.isSameOrBefore(n,o)&&a&&p.isSameOrAfter(a,o)),n!=null&&n.isSameOrAfter(a)?(h.start=!!a&&p.isSame(a,o),h.end=n&&p.isSame(n,o)):(h.start=!!n&&p.isSame(n,o),h.end=!!a&&p.isSame(a,o)),p.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:d}),f[d+r]=h}u==null||u(f)}},xI=(e="")=>["normal","today"].includes(e),oQe=(e,t)=>{const{lang:r}=fr(),n=G(),a=G(),i=G(),o=G(),s=G([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(k=>k.toLowerCase()),f=F(()=>u>3?7-u:-u),d=F(()=>{const k=e.date.startOf("month");return k.subtract(k.day()||7,"day")}),h=F(()=>c.concat(c).slice(u,u+7)),v=F(()=>aee(b(w)).some(k=>k.isCurrent)),p=F(()=>{const k=e.date.startOf("month"),z=k.day()||7,$=k.daysInMonth(),j=k.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:$,dateCountOfLastMonth:j}}),g=F(()=>e.selectionMode==="dates"?Nu(e.parsedValue):[]),m=(k,{count:z,rowIndex:$,columnIndex:j})=>{const{startOfMonthDay:X,dateCountOfMonth:Q,dateCountOfLastMonth:se}=b(p),ee=b(f);if($>=0&&$<=1){const K=X+ee<0?7+X+ee:X+ee;if(j+$*7>=K)return k.text=z,!0;k.text=se-(K-j%7)+1+$*7,k.type="prev-month"}else return z<=Q?k.text=z:(k.text=z-Q,k.type="next-month"),!0;return!1},y=(k,{columnIndex:z,rowIndex:$},j)=>{const{disabledDate:X,cellClassName:Q}=e,se=b(g),ee=m(k,{count:j,rowIndex:$,columnIndex:z}),K=k.dayjs.toDate();return k.selected=se.find(Z=>Z.valueOf()===k.dayjs.valueOf()),k.isSelected=!!k.selected,k.isCurrent=S(k),k.disabled=X==null?void 0:X(K),k.customClass=Q==null?void 0:Q(K),ee},_=k=>{if(e.selectionMode==="week"){const[z,$]=e.showWeekNumber?[1,7]:[0,6],j=B(k[z+1]);k[z].inRange=j,k[z].start=j,k[$].inRange=j,k[$].end=j}},w=F(()=>{const{minDate:k,maxDate:z,rangeState:$,showWeekNumber:j}=e,X=b(f),Q=b(s),se="day";let ee=1;if(j)for(let K=0;K<6;K++)Q[K][0]||(Q[K][0]={type:"week",text:b(d).add(K*7+1,se).week()});return iQe({row:6,column:7},Q,{startDate:k,columnIndexOffset:j?1:0,nextEndDate:$.endDate||z||$.selecting&&k||null,now:Rt().locale(b(r)).startOf(se),unit:se,relativeDateGetter:K=>b(d).add(K-X,se),setCellMetadata:(...K)=>{y(...K,ee)&&(ee+=1)},setRowMetadata:_}),Q});Ae(()=>e.date,async()=>{var k;(k=b(n))!=null&&k.contains(document.activeElement)&&(await qe(),await x())});const x=async()=>{var k;return(k=b(a))==null?void 0:k.focus()},S=k=>e.selectionMode==="date"&&xI(k.type)&&T(k,e.parsedValue),T=(k,z)=>z?Rt(z).locale(b(r)).isSame(e.date.date(Number(k.text)),"day"):!1,A=(k,z)=>{const $=k*7+(z-(e.showWeekNumber?1:0))-b(f);return b(d).add($,"day")},C=k=>{var z;if(!e.rangeState.selecting)return;let $=k.target;if($.tagName==="SPAN"&&($=(z=$.parentNode)==null?void 0:z.parentNode),$.tagName==="DIV"&&($=$.parentNode),$.tagName!=="TD")return;const j=$.parentNode.rowIndex-1,X=$.cellIndex;b(w)[j][X].disabled||(j!==b(i)||X!==b(o))&&(i.value=j,o.value=X,t("changerange",{selecting:!0,endDate:A(j,X)}))},M=k=>!b(v)&&(k==null?void 0:k.text)===1&&k.type==="normal"||k.isCurrent,E=k=>{l||b(v)||e.selectionMode!=="date"||R(k,!0)},D=k=>{k.target.closest("td")&&(l=!0)},P=k=>{k.target.closest("td")&&(l=!1)},L=k=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:k,maxDate:null}),t("select",!0)):(k>=e.minDate?t("pick",{minDate:e.minDate,maxDate:k}):t("pick",{minDate:k,maxDate:e.minDate}),t("select",!1))},I=k=>{const z=k.week(),$=`${k.year()}w${z}`;t("pick",{year:k.year(),week:z,value:$,date:k.startOf("week")})},O=(k,z)=>{const $=z?Nu(e.parsedValue).filter(j=>(j==null?void 0:j.valueOf())!==k.valueOf()):Nu(e.parsedValue).concat([k]);t("pick",$)},R=(k,z=!1)=>{const $=k.target.closest("td");if(!$)return;const j=$.parentNode.rowIndex-1,X=$.cellIndex,Q=b(w)[j][X];if(Q.disabled||Q.type==="week")return;const se=A(j,X);switch(e.selectionMode){case"range":{L(se);break}case"date":{t("pick",se,z);break}case"week":{I(se);break}case"dates":{O(se,!!Q.selected);break}}},B=k=>{if(e.selectionMode!=="week")return!1;let z=e.date.startOf("day");if(k.type==="prev-month"&&(z=z.subtract(1,"month")),k.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(k.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const $=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract($,"day").isSame(z,"day")}return!1};return{WEEKS:h,rows:w,tbodyRef:n,currentCellRef:a,focus:x,isCurrent:S,isWeekActive:B,isSelectedCell:M,handlePickDate:R,handleMouseUp:P,handleMouseDown:D,handleMouseMove:C,handleFocus:E}},sQe=(e,{isCurrent:t,isWeekActive:r})=>{const n=Ce("date-table"),{t:a}=fr(),i=F(()=>[n.b(),{"is-week-mode":e.selectionMode==="week"}]),o=F(()=>a("el.datepicker.dateTablePrompt")),s=F(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return xI(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(xI(c.type)||e.selectionMode==="week")&&(f.push("in-range"),c.start&&f.push("start-date"),c.end&&f.push("end-date")),c.disabled&&f.push("disabled"),c.selected&&f.push("selected"),c.customClass&&f.push(c.customClass),f.join(" ")},getRowKls:c=>[n.e("row"),{current:r(c)}],t:a}},lQe=Oe({cell:{type:fe(Object)}});var uQe=te({name:"ElDatePickerCell",props:lQe,setup(e){const t=Ce("date-table-cell"),{slots:r}=Ye(D3);return()=>{const{cell:n}=e;if(r.default){const a=r.default(n).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)"&&i.type.toString()!=="Symbol(v-cmt)");if(a.length)return a}return J("div",{class:t.b()},[J("span",{class:t.e("text")},[n==null?void 0:n.text])])}}});const cQe=["aria-label"],fQe={key:0,scope:"col"},dQe=["aria-label"],hQe=["aria-current","aria-selected","tabindex"],vQe=te({__name:"basic-date-table",props:nQe,emits:aQe,setup(e,{expose:t,emit:r}){const n=e,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:d,handleMouseUp:h,handleMouseDown:v,handleMouseMove:p,handleFocus:g}=oQe(n,r),{tableLabel:m,tableKls:y,weekLabel:_,getCellClasses:w,getRowKls:x,t:S}=sQe(n,{isCurrent:u,isWeekActive:c});return t({focus:l}),(T,A)=>(N(),U("table",{"aria-label":b(m),class:H(b(y)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:A[1]||(A[1]=(...C)=>b(d)&&b(d)(...C)),onMousemove:A[2]||(A[2]=(...C)=>b(p)&&b(p)(...C)),onMousedown:A[3]||(A[3]=it((...C)=>b(v)&&b(v)(...C),["prevent"])),onMouseup:A[4]||(A[4]=(...C)=>b(h)&&b(h)(...C))},[V("tbody",{ref_key:"tbodyRef",ref:o},[V("tr",null,[T.showWeekNumber?(N(),U("th",fQe,me(b(_)),1)):ce("v-if",!0),(N(!0),U(Be,null,ht(b(a),(C,M)=>(N(),U("th",{key:M,"aria-label":b(S)("el.datepicker.weeksFull."+C),scope:"col"},me(b(S)("el.datepicker.weeks."+C)),9,dQe))),128))]),(N(!0),U(Be,null,ht(b(i),(C,M)=>(N(),U("tr",{key:M,class:H(b(x)(C[1]))},[(N(!0),U(Be,null,ht(C,(E,D)=>(N(),U("td",{key:`${M}.${D}`,ref_for:!0,ref:P=>b(f)(E)&&(s.value=P),class:H(b(w)(E)),"aria-current":E.isCurrent?"date":void 0,"aria-selected":E.isCurrent,tabindex:b(f)(E)?0:-1,onFocus:A[0]||(A[0]=(...P)=>b(g)&&b(g)(...P))},[J(b(uQe),{cell:E},null,8,["cell"])],42,hQe))),128))],2))),128))],512)],42,cQe))}});var AI=ke(vQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const pQe=Oe({...P3,selectionMode:Kre("month")}),gQe=["aria-label"],mQe=["aria-selected","aria-label","tabindex","onKeydown"],yQe={class:"cell"},_Qe=te({__name:"basic-month-table",props:pQe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:r}){const n=e,a=(w,x,S)=>{const T=Rt().locale(S).startOf("month").month(x).year(w),A=T.daysInMonth();return hf(A).map(C=>T.add(C,"day").toDate())},i=Ce("month-table"),{t:o,lang:s}=fr(),l=G(),u=G(),c=G(n.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=G([[],[],[]]),d=G(),h=G(),v=F(()=>{var w,x;const S=f.value,T=Rt().locale(s.value).startOf("month");for(let A=0;A<3;A++){const C=S[A];for(let M=0;M<4;M++){const E=C[M]||(C[M]={row:A,column:M,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});E.type="normal";const D=A*4+M,P=n.date.startOf("year").month(D),L=n.rangeState.endDate||n.maxDate||n.rangeState.selecting&&n.minDate||null;E.inRange=!!(n.minDate&&P.isSameOrAfter(n.minDate,"month")&&L&&P.isSameOrBefore(L,"month"))||!!(n.minDate&&P.isSameOrBefore(n.minDate,"month")&&L&&P.isSameOrAfter(L,"month")),(w=n.minDate)!=null&&w.isSameOrAfter(L)?(E.start=!!(L&&P.isSame(L,"month")),E.end=n.minDate&&P.isSame(n.minDate,"month")):(E.start=!!(n.minDate&&P.isSame(n.minDate,"month")),E.end=!!(L&&P.isSame(L,"month"))),T.isSame(P)&&(E.type="today"),E.text=D,E.disabled=((x=n.disabledDate)==null?void 0:x.call(n,P.toDate()))||!1}}return S}),p=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const x={},S=n.date.year(),T=new Date,A=w.text;return x.disabled=n.disabledDate?a(S,A,s.value).every(n.disabledDate):!1,x.current=Nu(n.parsedValue).findIndex(C=>Rt.isDayjs(C)&&C.year()===S&&C.month()===A)>=0,x.today=T.getFullYear()===S&&T.getMonth()===A,w.inRange&&(x["in-range"]=!0,w.start&&(x["start-date"]=!0),w.end&&(x["end-date"]=!0)),x},m=w=>{const x=n.date.year(),S=w.text;return Nu(n.date).findIndex(T=>T.year()===x&&T.month()===S)>=0},y=w=>{var x;if(!n.rangeState.selecting)return;let S=w.target;if(S.tagName==="A"&&(S=(x=S.parentNode)==null?void 0:x.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const T=S.parentNode.rowIndex,A=S.cellIndex;v.value[T][A].disabled||(T!==d.value||A!==h.value)&&(d.value=T,h.value=A,r("changerange",{selecting:!0,endDate:n.date.startOf("year").month(T*4+A)}))},_=w=>{var x;const S=(x=w.target)==null?void 0:x.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Ws(S,"disabled"))return;const T=S.cellIndex,C=S.parentNode.rowIndex*4+T,M=n.date.startOf("year").month(C);n.selectionMode==="range"?n.rangeState.selecting?(n.minDate&&M>=n.minDate?r("pick",{minDate:n.minDate,maxDate:M}):r("pick",{minDate:M,maxDate:n.minDate}),r("select",!1)):(r("pick",{minDate:M,maxDate:null}),r("select",!0)):r("pick",C)};return Ae(()=>n.date,async()=>{var w,x;(w=l.value)!=null&&w.contains(document.activeElement)&&(await qe(),(x=u.value)==null||x.focus())}),t({focus:p}),(w,x)=>(N(),U("table",{role:"grid","aria-label":b(o)("el.datepicker.monthTablePrompt"),class:H(b(i).b()),onClick:_,onMousemove:y},[V("tbody",{ref_key:"tbodyRef",ref:l},[(N(!0),U(Be,null,ht(b(v),(S,T)=>(N(),U("tr",{key:T},[(N(!0),U(Be,null,ht(S,(A,C)=>(N(),U("td",{key:C,ref_for:!0,ref:M=>m(A)&&(u.value=M),class:H(g(A)),"aria-selected":`${m(A)}`,"aria-label":b(o)(`el.datepicker.month${+A.text+1}`),tabindex:m(A)?0:-1,onKeydown:[dr(it(_,["prevent","stop"]),["space"]),dr(it(_,["prevent","stop"]),["enter"])]},[V("div",null,[V("span",yQe,me(b(o)("el.datepicker.months."+c.value[A.text])),1)])],42,mQe))),128))]))),128))],512)],42,gQe))}});var TI=ke(_Qe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:bQe,disabledDate:wQe,parsedValue:SQe}=P3,xQe=Oe({date:bQe,disabledDate:wQe,parsedValue:SQe}),AQe=["aria-label"],TQe=["aria-selected","tabindex","onKeydown"],CQe={class:"cell"},EQe={key:1},MQe=te({__name:"basic-year-table",props:xQe,emits:["pick"],setup(e,{expose:t,emit:r}){const n=e,a=(p,g)=>{const m=Rt(String(p)).locale(g).startOf("year"),_=m.endOf("year").dayOfYear();return hf(_).map(w=>m.add(w,"day").toDate())},i=Ce("year-table"),{t:o,lang:s}=fr(),l=G(),u=G(),c=F(()=>Math.floor(n.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},m=Rt().locale(s.value);return g.disabled=n.disabledDate?a(p,s.value).every(n.disabledDate):!1,g.current=Nu(n.parsedValue).findIndex(y=>y.year()===p)>=0,g.today=m.year()===p,g},h=p=>p===c.value&&n.date.year()<c.value&&n.date.year()>c.value+9||Nu(n.date).findIndex(g=>g.year()===p)>=0,v=p=>{const m=p.target.closest("td");if(m&&m.textContent){if(Ws(m,"disabled"))return;const y=m.textContent||m.innerText;r("pick",Number(y))}};return Ae(()=>n.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await qe(),(g=u.value)==null||g.focus())}),t({focus:f}),(p,g)=>(N(),U("table",{role:"grid","aria-label":b(o)("el.datepicker.yearTablePrompt"),class:H(b(i).b()),onClick:v},[V("tbody",{ref_key:"tbodyRef",ref:l},[(N(),U(Be,null,ht(3,(m,y)=>V("tr",{key:y},[(N(),U(Be,null,ht(4,(_,w)=>(N(),U(Be,{key:y+"_"+w},[y*4+w<10?(N(),U("td",{key:0,ref_for:!0,ref:x=>h(b(c)+y*4+w)&&(u.value=x),class:H(["available",d(b(c)+y*4+w)]),"aria-selected":`${h(b(c)+y*4+w)}`,tabindex:h(b(c)+y*4+w)?0:-1,onKeydown:[dr(it(v,["prevent","stop"]),["space"]),dr(it(v,["prevent","stop"]),["enter"])]},[V("span",CQe,me(b(c)+y*4+w),1)],42,TQe)):(N(),U("td",EQe))],64))),64))])),64))],512)],10,AQe))}});var DQe=ke(MQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const PQe=["onClick"],LQe=["aria-label"],IQe=["aria-label"],RQe=["aria-label"],OQe=["aria-label"],kQe=te({__name:"panel-date-pick",props:rQe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const r=e,n=(be,pe,de)=>!0,a=Ce("picker-panel"),i=Ce("date-picker"),o=Jh(),s=$a(),{t:l,lang:u}=fr(),c=Ye("EP_PICKER_BASE"),f=Ye(PT),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=Sn(c.props,"defaultValue"),m=G(),y=G(Rt().locale(u.value)),_=G(!1);let w=!1;const x=F(()=>Rt(p).locale(u.value)),S=F(()=>y.value.month()),T=F(()=>y.value.year()),A=G([]),C=G(null),M=G(null),E=be=>A.value.length>0?n(be,A.value,r.format||"HH:mm:ss"):!0,D=be=>p&&!oe.value&&!_.value&&!w?x.value.year(be.year()).month(be.month()).date(be.date()):ee.value?be.millisecond(0):be.startOf("day"),P=(be,...pe)=>{if(!be)t("pick",be,...pe);else if(We(be)){const de=be.map(D);t("pick",de,...pe)}else t("pick",D(be),...pe);C.value=null,M.value=null,_.value=!1,w=!1},L=(be,pe)=>{if(z.value==="date"){be=be;let de=r.parsedValue?r.parsedValue.year(be.year()).month(be.month()).date(be.date()):be;E(de)||(de=A.value[0][0].year(be.year()).month(be.month()).date(be.date())),y.value=de,P(de,ee.value||pe)}else z.value==="week"?P(be.date):z.value==="dates"&&P(be,!0)},I=be=>{const pe=be?"add":"subtract";y.value=y.value[pe](1,"month"),tt("month")},O=be=>{const pe=y.value,de=be?"add":"subtract";y.value=R.value==="year"?pe[de](10,"year"):pe[de](1,"year"),tt("year")},R=G("date"),B=F(()=>{const be=l("el.datepicker.year");if(R.value==="year"){const pe=Math.floor(T.value/10)*10;return be?`${pe} ${be} - ${pe+9} ${be}`:`${pe} - ${pe+9}`}return`${T.value} ${be}`}),k=be=>{const pe=dt(be.value)?be.value():be.value;if(pe){w=!0,P(Rt(pe).locale(u.value));return}be.onClick&&be.onClick({attrs:o,slots:s,emit:t})},z=F(()=>{const{type:be}=r;return["week","month","year","dates"].includes(be)?be:"date"}),$=F(()=>z.value==="date"?R.value:z.value),j=F(()=>!!d.length),X=async be=>{y.value=y.value.startOf("month").month(be),z.value==="month"?P(y.value,!1):(R.value="date",["month","year","date","week"].includes(z.value)&&(P(y.value,!0),await qe(),gt())),tt("month")},Q=async be=>{z.value==="year"?(y.value=y.value.startOf("year").year(be),P(y.value,!1)):(y.value=y.value.year(be),R.value="month",["month","year","date","week"].includes(z.value)&&(P(y.value,!0),await qe(),gt())),tt("year")},se=async be=>{R.value=be,await qe(),gt()},ee=F(()=>r.type==="datetime"||r.type==="datetimerange"),K=F(()=>ee.value||z.value==="dates"),Z=F(()=>h?r.parsedValue?We(r.parsedValue)?h(r.parsedValue[0].toDate()):h(r.parsedValue.toDate()):!0:!1),ne=()=>{if(z.value==="dates")P(r.parsedValue);else{let be=r.parsedValue;if(!be){const pe=Rt(p).locale(u.value),de=Ue();be=pe.year(de.year()).month(de.month()).date(de.date())}y.value=be,P(be)}},re=F(()=>h?h(Rt().locale(u.value).toDate()):!1),ie=()=>{const pe=Rt().locale(u.value).toDate();_.value=!0,(!h||!h(pe))&&E(pe)&&(y.value=Rt().locale(u.value),P(y.value))},Y=F(()=>r.timeFormat||Qte(r.format)),q=F(()=>r.dateFormat||qte(r.format)),oe=F(()=>{if(M.value)return M.value;if(!(!r.parsedValue&&!g.value))return(r.parsedValue||y.value).format(Y.value)}),ve=F(()=>{if(C.value)return C.value;if(!(!r.parsedValue&&!g.value))return(r.parsedValue||y.value).format(q.value)}),_e=G(!1),ge=()=>{_e.value=!0},Le=()=>{_e.value=!1},Se=be=>({hour:be.hour(),minute:be.minute(),second:be.second(),year:be.year(),month:be.month(),date:be.date()}),xe=(be,pe,de)=>{const{hour:Me,minute:ae,second:Ge}=Se(be),St=r.parsedValue?r.parsedValue.hour(Me).minute(ae).second(Ge):be;y.value=St,P(y.value,!0),de||(_e.value=pe)},Te=be=>{const pe=Rt(be,Y.value).locale(u.value);if(pe.isValid()&&E(pe)){const{year:de,month:Me,date:ae}=Se(y.value);y.value=pe.year(de).month(Me).date(ae),M.value=null,_e.value=!1,P(y.value,!0)}},Ve=be=>{const pe=Rt(be,q.value).locale(u.value);if(pe.isValid()){if(h&&h(pe.toDate()))return;const{hour:de,minute:Me,second:ae}=Se(y.value);y.value=pe.hour(de).minute(Me).second(ae),C.value=null,P(y.value,!0)}},He=be=>Rt.isDayjs(be)&&be.isValid()&&(h?!h(be.toDate()):!0),je=be=>z.value==="dates"?be.map(pe=>pe.format(r.format)):be.format(r.format),Pe=be=>Rt(be,r.format).locale(u.value),Ue=()=>{const be=Rt(g.value).locale(u.value);if(!g.value){const pe=x.value;return Rt().hour(pe.hour()).minute(pe.minute()).second(pe.second()).locale(u.value)}return be},gt=async()=>{var be;["week","month","year","date"].includes(z.value)&&((be=m.value)==null||be.focus(),z.value==="week"&&Gt(Qe.down))},At=be=>{const{code:pe}=be;[Qe.up,Qe.down,Qe.left,Qe.right,Qe.home,Qe.end,Qe.pageUp,Qe.pageDown].includes(pe)&&(Gt(pe),be.stopPropagation(),be.preventDefault()),[Qe.enter,Qe.space,Qe.numpadEnter].includes(pe)&&C.value===null&&M.value===null&&(be.preventDefault(),P(y.value,!1))},Gt=be=>{var pe;const{up:de,down:Me,left:ae,right:Ge,home:St,end:Kt,pageUp:Xn,pageDown:An}=Qe,Io={year:{[de]:-4,[Me]:4,[ae]:-1,[Ge]:1,offset:(we,ze)=>we.setFullYear(we.getFullYear()+ze)},month:{[de]:-4,[Me]:4,[ae]:-1,[Ge]:1,offset:(we,ze)=>we.setMonth(we.getMonth()+ze)},week:{[de]:-1,[Me]:1,[ae]:-1,[Ge]:1,offset:(we,ze)=>we.setDate(we.getDate()+ze*7)},date:{[de]:-7,[Me]:7,[ae]:-1,[Ge]:1,[St]:we=>-we.getDay(),[Kt]:we=>-we.getDay()+6,[Xn]:we=>-new Date(we.getFullYear(),we.getMonth(),0).getDate(),[An]:we=>new Date(we.getFullYear(),we.getMonth()+1,0).getDate(),offset:(we,ze)=>we.setDate(we.getDate()+ze)}},Ya=y.value.toDate();for(;Math.abs(y.value.diff(Ya,"year",!0))<1;){const we=Io[$.value];if(!we)return;if(we.offset(Ya,dt(we[be])?we[be](Ya):(pe=we[be])!=null?pe:0),h&&h(Ya))break;const ze=Rt(Ya).locale(u.value);y.value=ze,t("pick",ze,!0);break}},tt=be=>{t("panel-change",y.value.toDate(),be,R.value)};return Ae(()=>z.value,be=>{if(["month","year"].includes(be)){R.value=be;return}R.value="date"},{immediate:!0}),Ae(()=>R.value,()=>{f==null||f.updatePopper()}),Ae(()=>g.value,be=>{be&&(y.value=Ue())},{immediate:!0}),Ae(()=>r.parsedValue,be=>{if(be){if(z.value==="dates"||Array.isArray(be))return;y.value=be}else y.value=Ue()},{immediate:!0}),t("set-picker-option",["isValidValue",He]),t("set-picker-option",["formatToString",je]),t("set-picker-option",["parseUserInput",Pe]),t("set-picker-option",["handleFocusPicker",gt]),(be,pe)=>(N(),U("div",{class:H([b(a).b(),b(i).b(),{"has-sidebar":be.$slots.sidebar||b(j),"has-time":b(ee)}])},[V("div",{class:H(b(a).e("body-wrapper"))},[ye(be.$slots,"sidebar",{class:H(b(a).e("sidebar"))}),b(j)?(N(),U("div",{key:0,class:H(b(a).e("sidebar"))},[(N(!0),U(Be,null,ht(b(d),(de,Me)=>(N(),U("button",{key:Me,type:"button",class:H(b(a).e("shortcut")),onClick:ae=>k(de)},me(de.text),11,PQe))),128))],2)):ce("v-if",!0),V("div",{class:H(b(a).e("body"))},[b(ee)?(N(),U("div",{key:0,class:H(b(i).e("time-header"))},[V("span",{class:H(b(i).e("editor-wrap"))},[J(b(li),{placeholder:b(l)("el.datepicker.selectDate"),"model-value":b(ve),size:"small","validate-event":!1,onInput:pe[0]||(pe[0]=de=>C.value=de),onChange:Ve},null,8,["placeholder","model-value"])],2),Ct((N(),U("span",{class:H(b(i).e("editor-wrap"))},[J(b(li),{placeholder:b(l)("el.datepicker.selectTime"),"model-value":b(oe),size:"small","validate-event":!1,onFocus:ge,onInput:pe[1]||(pe[1]=de=>M.value=de),onChange:Te},null,8,["placeholder","model-value"]),J(b(h2),{visible:_e.value,format:b(Y),"parsed-value":y.value,onPick:xe},null,8,["visible","format","parsed-value"])],2)),[[b(Df),Le]])],2)):ce("v-if",!0),Ct(V("div",{class:H([b(i).e("header"),(R.value==="year"||R.value==="month")&&b(i).e("header--bordered")])},[V("span",{class:H(b(i).e("prev-btn"))},[V("button",{type:"button","aria-label":b(l)("el.datepicker.prevYear"),class:H(["d-arrow-left",b(a).e("icon-btn")]),onClick:pe[2]||(pe[2]=de=>O(!1))},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,LQe),Ct(V("button",{type:"button","aria-label":b(l)("el.datepicker.prevMonth"),class:H([b(a).e("icon-btn"),"arrow-left"]),onClick:pe[3]||(pe[3]=de=>I(!1))},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],10,IQe),[[hr,R.value==="date"]])],2),V("span",{role:"button",class:H(b(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:pe[4]||(pe[4]=dr(de=>se("year"),["enter"])),onClick:pe[5]||(pe[5]=de=>se("year"))},me(b(B)),35),Ct(V("span",{role:"button","aria-live":"polite",tabindex:"0",class:H([b(i).e("header-label"),{active:R.value==="month"}]),onKeydown:pe[6]||(pe[6]=dr(de=>se("month"),["enter"])),onClick:pe[7]||(pe[7]=de=>se("month"))},me(b(l)(`el.datepicker.month${b(S)+1}`)),35),[[hr,R.value==="date"]]),V("span",{class:H(b(i).e("next-btn"))},[Ct(V("button",{type:"button","aria-label":b(l)("el.datepicker.nextMonth"),class:H([b(a).e("icon-btn"),"arrow-right"]),onClick:pe[8]||(pe[8]=de=>I(!0))},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],10,RQe),[[hr,R.value==="date"]]),V("button",{type:"button","aria-label":b(l)("el.datepicker.nextYear"),class:H([b(a).e("icon-btn"),"d-arrow-right"]),onClick:pe[9]||(pe[9]=de=>O(!0))},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,OQe)],2)],2),[[hr,R.value!=="time"]]),V("div",{class:H(b(a).e("content")),onKeydown:At},[R.value==="date"?(N(),he(AI,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":b(z),date:y.value,"parsed-value":be.parsedValue,"disabled-date":b(h),"cell-class-name":b(v),onPick:L},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ce("v-if",!0),R.value==="year"?(N(),he(DQe,{key:1,ref_key:"currentViewRef",ref:m,date:y.value,"disabled-date":b(h),"parsed-value":be.parsedValue,onPick:Q},null,8,["date","disabled-date","parsed-value"])):ce("v-if",!0),R.value==="month"?(N(),he(TI,{key:2,ref_key:"currentViewRef",ref:m,date:y.value,"parsed-value":be.parsedValue,"disabled-date":b(h),onPick:X},null,8,["date","parsed-value","disabled-date"])):ce("v-if",!0)],34)],2)],2),Ct(V("div",{class:H(b(a).e("footer"))},[Ct(J(b(Ja),{text:"",size:"small",class:H(b(a).e("link-btn")),disabled:b(re),onClick:ie},{default:le(()=>[nr(me(b(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[hr,b(z)!=="dates"]]),J(b(Ja),{plain:"",size:"small",class:H(b(a).e("link-btn")),disabled:b(Z),onClick:ne},{default:le(()=>[nr(me(b(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[hr,b(K)&&R.value==="date"]])],2))}});var NQe=ke(kQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const BQe=Oe({...Yre,...jre}),FQe=e=>{const{emit:t}=It(),r=Jh(),n=$a();return i=>{const o=dt(i.value)?i.value():i.value;if(o){t("pick",[Rt(o[0]).locale(e.value),Rt(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:r,slots:n,emit:t})}},Zre=(e,{defaultValue:t,leftDate:r,rightDate:n,unit:a,onParsedValueChanged:i})=>{const{emit:o}=It(),{pickerNs:s}=Ye(D3),l=Ce("date-range-picker"),{t:u,lang:c}=fr(),f=FQe(c),d=G(),h=G(),v=G({endDate:null,selecting:!1}),p=_=>{v.value=_},g=(_=!1)=>{const w=b(d),x=b(h);SI([w,x])&&o("pick",[w,x],_)},m=_=>{v.value.selecting=_,_||(v.value.endDate=null)},y=()=>{const[_,w]=Xre(b(t),{lang:b(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,r.value=_,n.value=w};return Ae(t,_=>{_&&y()},{immediate:!0}),Ae(()=>e.parsedValue,_=>{if(We(_)&&_.length===2){const[w,x]=_;d.value=w,r.value=w,h.value=x,i(b(d),b(h))}else y()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:v,lang:c,ppNs:s,drpNs:l,handleChangeRange:p,handleRangeConfirm:g,handleShortcutClick:f,onSelect:m,t:u}},VQe=["onClick"],zQe=["aria-label"],HQe=["aria-label"],GQe=["disabled","aria-label"],UQe=["disabled","aria-label"],$Qe=["disabled","aria-label"],WQe=["disabled","aria-label"],YQe=["aria-label"],jQe=["aria-label"],pw="month",KQe=te({__name:"panel-date-range",props:BQe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const r=e,n=Ye("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=n.props,u=Sn(n.props,"shortcuts"),c=Sn(n.props,"defaultValue"),{lang:f}=fr(),d=G(Rt().locale(f.value)),h=G(Rt().locale(f.value).add(1,pw)),{minDate:v,maxDate:p,rangeState:g,ppNs:m,drpNs:y,handleChangeRange:_,handleRangeConfirm:w,handleShortcutClick:x,onSelect:S,t:T}=Zre(r,{defaultValue:c,leftDate:d,rightDate:h,unit:pw,onParsedValueChanged:pe}),A=G({min:null,max:null}),C=G({min:null,max:null}),M=F(()=>`${d.value.year()} ${T("el.datepicker.year")} ${T(`el.datepicker.month${d.value.month()+1}`)}`),E=F(()=>`${h.value.year()} ${T("el.datepicker.year")} ${T(`el.datepicker.month${h.value.month()+1}`)}`),D=F(()=>d.value.year()),P=F(()=>d.value.month()),L=F(()=>h.value.year()),I=F(()=>h.value.month()),O=F(()=>!!u.value.length),R=F(()=>A.value.min!==null?A.value.min:v.value?v.value.format(j.value):""),B=F(()=>A.value.max!==null?A.value.max:p.value||v.value?(p.value||v.value).format(j.value):""),k=F(()=>C.value.min!==null?C.value.min:v.value?v.value.format($.value):""),z=F(()=>C.value.max!==null?C.value.max:p.value||v.value?(p.value||v.value).format($.value):""),$=F(()=>r.timeFormat||Qte(o)),j=F(()=>r.dateFormat||qte(o)),X=de=>SI(de)&&(a?!a(de[0].toDate())&&!a(de[1].toDate()):!0),Q=()=>{d.value=d.value.subtract(1,"year"),r.unlinkPanels||(h.value=d.value.add(1,"month")),Y("year")},se=()=>{d.value=d.value.subtract(1,"month"),r.unlinkPanels||(h.value=d.value.add(1,"month")),Y("month")},ee=()=>{r.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),Y("year")},K=()=>{r.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),Y("month")},Z=()=>{d.value=d.value.add(1,"year"),Y("year")},ne=()=>{d.value=d.value.add(1,"month"),Y("month")},re=()=>{h.value=h.value.subtract(1,"year"),Y("year")},ie=()=>{h.value=h.value.subtract(1,"month"),Y("month")},Y=de=>{t("panel-change",[d.value.toDate(),h.value.toDate()],de)},q=F(()=>{const de=(P.value+1)%12,Me=P.value+1>=12?1:0;return r.unlinkPanels&&new Date(D.value+Me,de)<new Date(L.value,I.value)}),oe=F(()=>r.unlinkPanels&&L.value*12+I.value-(D.value*12+P.value+1)>=12),ve=F(()=>!(v.value&&p.value&&!g.value.selecting&&SI([v.value,p.value]))),_e=F(()=>r.type==="datetime"||r.type==="datetimerange"),ge=(de,Me)=>{if(de)return s?Rt(s[Me]||s).locale(f.value).year(de.year()).month(de.month()).date(de.date()):de},Le=(de,Me=!0)=>{const ae=de.minDate,Ge=de.maxDate,St=ge(ae,0),Kt=ge(Ge,1);p.value===Kt&&v.value===St||(t("calendar-change",[ae.toDate(),Ge&&Ge.toDate()]),p.value=Kt,v.value=St,!(!Me||_e.value)&&w())},Se=G(!1),xe=G(!1),Te=()=>{Se.value=!1},Ve=()=>{xe.value=!1},He=(de,Me)=>{A.value[Me]=de;const ae=Rt(de,j.value).locale(f.value);if(ae.isValid()){if(a&&a(ae.toDate()))return;Me==="min"?(d.value=ae,v.value=(v.value||d.value).year(ae.year()).month(ae.month()).date(ae.date()),!r.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=ae.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=ae,p.value=(p.value||h.value).year(ae.year()).month(ae.month()).date(ae.date()),!r.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=ae.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},je=(de,Me)=>{A.value[Me]=null},Pe=(de,Me)=>{C.value[Me]=de;const ae=Rt(de,$.value).locale(f.value);ae.isValid()&&(Me==="min"?(Se.value=!0,v.value=(v.value||d.value).hour(ae.hour()).minute(ae.minute()).second(ae.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(xe.value=!0,p.value=(p.value||h.value).hour(ae.hour()).minute(ae.minute()).second(ae.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},Ue=(de,Me)=>{C.value[Me]=null,Me==="min"?(d.value=v.value,Se.value=!1):(h.value=p.value,xe.value=!1)},gt=(de,Me,ae)=>{C.value.min||(de&&(d.value=de,v.value=(v.value||d.value).hour(de.hour()).minute(de.minute()).second(de.second())),ae||(Se.value=Me),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=de))},At=(de,Me,ae)=>{C.value.max||(de&&(h.value=de,p.value=(p.value||h.value).hour(de.hour()).minute(de.minute()).second(de.second())),ae||(xe.value=Me),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},Gt=()=>{d.value=Xre(b(c),{lang:b(f),unit:"month",unlinkPanels:r.unlinkPanels})[0],h.value=d.value.add(1,"month"),t("pick",null)},tt=de=>We(de)?de.map(Me=>Me.format(o)):de.format(o),be=de=>We(de)?de.map(Me=>Rt(Me,o).locale(f.value)):Rt(de,o).locale(f.value);function pe(de,Me){if(r.unlinkPanels&&Me){const ae=(de==null?void 0:de.year())||0,Ge=(de==null?void 0:de.month())||0,St=Me.year(),Kt=Me.month();h.value=ae===St&&Ge===Kt?Me.add(1,pw):Me}else h.value=d.value.add(1,pw),Me&&(h.value=h.value.hour(Me.hour()).minute(Me.minute()).second(Me.second()))}return t("set-picker-option",["isValidValue",X]),t("set-picker-option",["parseUserInput",be]),t("set-picker-option",["formatToString",tt]),t("set-picker-option",["handleClear",Gt]),(de,Me)=>(N(),U("div",{class:H([b(m).b(),b(y).b(),{"has-sidebar":de.$slots.sidebar||b(O),"has-time":b(_e)}])},[V("div",{class:H(b(m).e("body-wrapper"))},[ye(de.$slots,"sidebar",{class:H(b(m).e("sidebar"))}),b(O)?(N(),U("div",{key:0,class:H(b(m).e("sidebar"))},[(N(!0),U(Be,null,ht(b(u),(ae,Ge)=>(N(),U("button",{key:Ge,type:"button",class:H(b(m).e("shortcut")),onClick:St=>b(x)(ae)},me(ae.text),11,VQe))),128))],2)):ce("v-if",!0),V("div",{class:H(b(m).e("body"))},[b(_e)?(N(),U("div",{key:0,class:H(b(y).e("time-header"))},[V("span",{class:H(b(y).e("editors-wrap"))},[V("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",disabled:b(g).selecting,placeholder:b(T)("el.datepicker.startDate"),class:H(b(y).e("editor")),"model-value":b(R),"validate-event":!1,onInput:Me[0]||(Me[0]=ae=>He(ae,"min")),onChange:Me[1]||(Me[1]=ae=>je(ae,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Ct((N(),U("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",class:H(b(y).e("editor")),disabled:b(g).selecting,placeholder:b(T)("el.datepicker.startTime"),"model-value":b(k),"validate-event":!1,onFocus:Me[2]||(Me[2]=ae=>Se.value=!0),onInput:Me[3]||(Me[3]=ae=>Pe(ae,"min")),onChange:Me[4]||(Me[4]=ae=>Ue(ae,"min"))},null,8,["class","disabled","placeholder","model-value"]),J(b(h2),{visible:Se.value,format:b($),"datetime-role":"start","parsed-value":d.value,onPick:gt},null,8,["visible","format","parsed-value"])],2)),[[b(Df),Te]])],2),V("span",null,[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})]),V("span",{class:H([b(y).e("editors-wrap"),"is-right"])},[V("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",class:H(b(y).e("editor")),disabled:b(g).selecting,placeholder:b(T)("el.datepicker.endDate"),"model-value":b(B),readonly:!b(v),"validate-event":!1,onInput:Me[5]||(Me[5]=ae=>He(ae,"max")),onChange:Me[6]||(Me[6]=ae=>je(ae,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ct((N(),U("span",{class:H(b(y).e("time-picker-wrap"))},[J(b(li),{size:"small",class:H(b(y).e("editor")),disabled:b(g).selecting,placeholder:b(T)("el.datepicker.endTime"),"model-value":b(z),readonly:!b(v),"validate-event":!1,onFocus:Me[7]||(Me[7]=ae=>b(v)&&(xe.value=!0)),onInput:Me[8]||(Me[8]=ae=>Pe(ae,"max")),onChange:Me[9]||(Me[9]=ae=>Ue(ae,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),J(b(h2),{"datetime-role":"end",visible:xe.value,format:b($),"parsed-value":h.value,onPick:At},null,8,["visible","format","parsed-value"])],2)),[[b(Df),Ve]])],2)],2)):ce("v-if",!0),V("div",{class:H([[b(m).e("content"),b(y).e("content")],"is-left"])},[V("div",{class:H(b(y).e("header"))},[V("button",{type:"button",class:H([b(m).e("icon-btn"),"d-arrow-left"]),"aria-label":b(T)("el.datepicker.prevYear"),onClick:Q},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,zQe),V("button",{type:"button",class:H([b(m).e("icon-btn"),"arrow-left"]),"aria-label":b(T)("el.datepicker.prevMonth"),onClick:se},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],10,HQe),de.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(oe),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(oe)}],"d-arrow-right"]),"aria-label":b(T)("el.datepicker.nextYear"),onClick:Z},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,GQe)):ce("v-if",!0),de.unlinkPanels?(N(),U("button",{key:1,type:"button",disabled:!b(q),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(q)}],"arrow-right"]),"aria-label":b(T)("el.datepicker.nextMonth"),onClick:ne},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],10,UQe)):ce("v-if",!0),V("div",null,me(b(M)),1)],2),J(AI,{"selection-mode":"range",date:d.value,"min-date":b(v),"max-date":b(p),"range-state":b(g),"disabled-date":b(a),"cell-class-name":b(i),onChangerange:b(_),onPick:Le,onSelect:b(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),V("div",{class:H([[b(m).e("content"),b(y).e("content")],"is-right"])},[V("div",{class:H(b(y).e("header"))},[de.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(oe),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(oe)}],"d-arrow-left"]),"aria-label":b(T)("el.datepicker.prevYear"),onClick:re},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,$Qe)):ce("v-if",!0),de.unlinkPanels?(N(),U("button",{key:1,type:"button",disabled:!b(q),class:H([[b(m).e("icon-btn"),{"is-disabled":!b(q)}],"arrow-left"]),"aria-label":b(T)("el.datepicker.prevMonth"),onClick:ie},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],10,WQe)):ce("v-if",!0),V("button",{type:"button","aria-label":b(T)("el.datepicker.nextYear"),class:H([b(m).e("icon-btn"),"d-arrow-right"]),onClick:ee},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,YQe),V("button",{type:"button",class:H([b(m).e("icon-btn"),"arrow-right"]),"aria-label":b(T)("el.datepicker.nextMonth"),onClick:K},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],10,jQe),V("div",null,me(b(E)),1)],2),J(AI,{"selection-mode":"range",date:h.value,"min-date":b(v),"max-date":b(p),"range-state":b(g),"disabled-date":b(a),"cell-class-name":b(i),onChangerange:b(_),onPick:Le,onSelect:b(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),b(_e)?(N(),U("div",{key:0,class:H(b(m).e("footer"))},[b(l)?(N(),he(b(Ja),{key:0,text:"",size:"small",class:H(b(m).e("link-btn")),onClick:Gt},{default:le(()=>[nr(me(b(T)("el.datepicker.clear")),1)]),_:1},8,["class"])):ce("v-if",!0),J(b(Ja),{plain:"",size:"small",class:H(b(m).e("link-btn")),disabled:b(ve),onClick:Me[10]||(Me[10]=ae=>b(w)(!1))},{default:le(()=>[nr(me(b(T)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ce("v-if",!0)],2))}});var XQe=ke(KQe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const ZQe=Oe({...jre}),qQe=["pick","set-picker-option","calendar-change"],QQe=({unlinkPanels:e,leftDate:t,rightDate:r})=>{const{t:n}=fr(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(r.value=r.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),r.value=r.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},s=()=>{r.value=r.value.subtract(1,"year")},l=F(()=>`${t.value.year()} ${n("el.datepicker.year")}`),u=F(()=>`${r.value.year()} ${n("el.datepicker.year")}`),c=F(()=>t.value.year()),f=F(()=>r.value.year()===t.value.year()?t.value.year()+1:r.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},JQe=["onClick"],eJe=["disabled"],tJe=["disabled"],gw="year",rJe=te({name:"DatePickerMonthRange"}),nJe=te({...rJe,props:ZQe,emits:qQe,setup(e,{emit:t}){const r=e,{lang:n}=fr(),a=Ye("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Sn(a.props,"defaultValue"),u=G(Rt().locale(n.value)),c=G(Rt().locale(n.value).add(1,gw)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:y,onSelect:_}=Zre(r,{defaultValue:l,leftDate:u,rightDate:c,unit:gw,onParsedValueChanged:O}),w=F(()=>!!i.length),{leftPrevYear:x,rightNextYear:S,leftNextYear:T,rightPrevYear:A,leftLabel:C,rightLabel:M,leftYear:E,rightYear:D}=QQe({unlinkPanels:Sn(r,"unlinkPanels"),leftDate:u,rightDate:c}),P=F(()=>r.unlinkPanels&&D.value>E.value+1),L=(R,B=!0)=>{const k=R.minDate,z=R.maxDate;d.value===z&&f.value===k||(t("calendar-change",[k.toDate(),z&&z.toDate()]),d.value=z,f.value=k,B&&m())},I=R=>R.map(B=>B.format(s));function O(R,B){if(r.unlinkPanels&&B){const k=(R==null?void 0:R.year())||0,z=B.year();c.value=k===z?B.add(1,gw):B}else c.value=u.value.add(1,gw)}return t("set-picker-option",["formatToString",I]),(R,B)=>(N(),U("div",{class:H([b(v).b(),b(p).b(),{"has-sidebar":!!R.$slots.sidebar||b(w)}])},[V("div",{class:H(b(v).e("body-wrapper"))},[ye(R.$slots,"sidebar",{class:H(b(v).e("sidebar"))}),b(w)?(N(),U("div",{key:0,class:H(b(v).e("sidebar"))},[(N(!0),U(Be,null,ht(b(i),(k,z)=>(N(),U("button",{key:z,type:"button",class:H(b(v).e("shortcut")),onClick:$=>b(y)(k)},me(k.text),11,JQe))),128))],2)):ce("v-if",!0),V("div",{class:H(b(v).e("body"))},[V("div",{class:H([[b(v).e("content"),b(p).e("content")],"is-left"])},[V("div",{class:H(b(p).e("header"))},[V("button",{type:"button",class:H([b(v).e("icon-btn"),"d-arrow-left"]),onClick:B[0]||(B[0]=(...k)=>b(x)&&b(x)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],2),R.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(P),class:H([[b(v).e("icon-btn"),{[b(v).is("disabled")]:!b(P)}],"d-arrow-right"]),onClick:B[1]||(B[1]=(...k)=>b(T)&&b(T)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],10,eJe)):ce("v-if",!0),V("div",null,me(b(C)),1)],2),J(TI,{"selection-mode":"range",date:u.value,"min-date":b(f),"max-date":b(d),"range-state":b(h),"disabled-date":b(o),onChangerange:b(g),onPick:L,onSelect:b(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),V("div",{class:H([[b(v).e("content"),b(p).e("content")],"is-right"])},[V("div",{class:H(b(p).e("header"))},[R.unlinkPanels?(N(),U("button",{key:0,type:"button",disabled:!b(P),class:H([[b(v).e("icon-btn"),{"is-disabled":!b(P)}],"d-arrow-left"]),onClick:B[2]||(B[2]=(...k)=>b(A)&&b(A)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(lg))]),_:1})],10,tJe)):ce("v-if",!0),V("button",{type:"button",class:H([b(v).e("icon-btn"),"d-arrow-right"]),onClick:B[3]||(B[3]=(...k)=>b(S)&&b(S)(...k))},[J(b(Ze),null,{default:le(()=>[J(b(ug))]),_:1})],2),V("div",null,me(b(M)),1)],2),J(TI,{"selection-mode":"range",date:c.value,"min-date":b(f),"max-date":b(d),"range-state":b(h),"disabled-date":b(o),onChangerange:b(g),onPick:L,onSelect:b(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var aJe=ke(nJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const iJe=function(e){switch(e){case"daterange":case"datetimerange":return XQe;case"monthrange":return aJe;default:return NQe}};Rt.extend(vre);Rt.extend(Uqe);Rt.extend(T3);Rt.extend(Wqe);Rt.extend(jqe);Rt.extend(Xqe);Rt.extend(qqe);Rt.extend(Jqe);var oJe=te({name:"ElDatePicker",install:null,props:eQe,emits:["update:modelValue"],setup(e,{expose:t,emit:r,slots:n}){const a=Ce("picker-panel");Wt("ElPopperOptions",Ar(Sn(e,"popperOptions"))),Wt(D3,{slots:n,pickerNs:a});const i=G();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{r("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:Vje[e.type]||op,c=iJe(e.type);return J(tre,Ut(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>J(c,f,null),"range-separator":n["range-separator"]})}}});const AS=oJe;AS.install=e=>{e.component(AS.name,AS)};const sJe=AS,L3=Symbol("elDescriptions");var ey=te({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Ye(L3,{})}},render(){var e,t,r,n,a,i,o;const s=jUe(this.cell),l=(((e=this.cell)==null?void 0:e.dirs)||[]).map(x=>{const{dir:S,arg:T,modifiers:A,value:C}=x;return[S,C,T,A]}),{border:u,direction:c}=this.descriptions,f=c==="vertical",d=((n=(r=(t=this.cell)==null?void 0:t.children)==null?void 0:r.label)==null?void 0:n.call(r))||s.label,h=(o=(i=(a=this.cell)==null?void 0:a.children)==null?void 0:i.default)==null?void 0:o.call(i),v=s.span,p=s.align?`is-${s.align}`:"",g=s.labelAlign?`is-${s.labelAlign}`:p,m=s.className,y=s.labelClassName,_={width:Hn(s.width),minWidth:Hn(s.minWidth)},w=Ce("descriptions");switch(this.type){case"label":return Ct(et(this.tag,{style:_,class:[w.e("cell"),w.e("label"),w.is("bordered-label",u),w.is("vertical-label",f),g,y],colSpan:f?v:1},d),l);case"content":return Ct(et(this.tag,{style:_,class:[w.e("cell"),w.e("content"),w.is("bordered-content",u),w.is("vertical-content",f),p,m],colSpan:f?v:v*2-1},h),l);default:return Ct(et("td",{style:_,class:[w.e("cell"),p],colSpan:v},[Qn(d)?void 0:et("span",{class:[w.e("label"),y]},d),et("span",{class:[w.e("content"),m]},h)]),l)}}});const lJe=Oe({row:{type:fe(Array),default:()=>[]}}),uJe={key:1},cJe=te({name:"ElDescriptionsRow"}),fJe=te({...cJe,props:lJe,setup(e){const t=Ye(L3,{});return(r,n)=>b(t).direction==="vertical"?(N(),U(Be,{key:0},[V("tr",null,[(N(!0),U(Be,null,ht(r.row,(a,i)=>(N(),he(b(ey),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),V("tr",null,[(N(!0),U(Be,null,ht(r.row,(a,i)=>(N(),he(b(ey),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(N(),U("tr",uJe,[(N(!0),U(Be,null,ht(r.row,(a,i)=>(N(),U(Be,{key:`tr3-${i}`},[b(t).border?(N(),U(Be,{key:0},[J(b(ey),{cell:a,tag:"td",type:"label"},null,8,["cell"]),J(b(ey),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(N(),he(b(ey),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var dJe=ke(fJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const hJe=Oe({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Ga,title:{type:String,default:""},extra:{type:String,default:""}}),vJe=te({name:"ElDescriptions"}),pJe=te({...vJe,props:hJe,setup(e){const t=e,r=Ce("descriptions"),n=ca(),a=$a();Wt(L3,t);const i=F(()=>[r.b(),r.m(n.value)]),o=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{if(!a.default)return[];const l=Mh(a.default()).filter(h=>{var v;return((v=h==null?void 0:h.type)==null?void 0:v.name)==="ElDescriptionsItem"}),u=[];let c=[],f=t.column,d=0;return l.forEach((h,v)=>{var p;const g=((p=h.props)==null?void 0:p.span)||1;if(v<l.length-1&&(d+=g>f?f:g),v===l.length-1){const m=t.column-d%t.column;c.push(o(h,m,f,!0)),u.push(c);return}g<f?(f-=g,c.push(h)):(c.push(o(h,g,f)),u.push(c),f=t.column,c=[])}),u};return(l,u)=>(N(),U("div",{class:H(b(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(N(),U("div",{key:0,class:H(b(r).e("header"))},[V("div",{class:H(b(r).e("title"))},[ye(l.$slots,"title",{},()=>[nr(me(l.title),1)])],2),V("div",{class:H(b(r).e("extra"))},[ye(l.$slots,"extra",{},()=>[nr(me(l.extra),1)])],2)],2)):ce("v-if",!0),V("div",{class:H(b(r).e("body"))},[V("table",{class:H([b(r).e("table"),b(r).is("bordered",l.border)])},[V("tbody",null,[(N(!0),U(Be,null,ht(s(),(c,f)=>(N(),he(dJe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var gJe=ke(pJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]);const mJe=Oe({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:""}}),qre=te({name:"ElDescriptionsItem",props:mJe}),yJe=kt(gJe,{DescriptionsItem:qre}),_Je=Pn(qre),bJe=Oe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:fe([String,Array,Object])},zIndex:{type:fe([String,Number])}}),wJe={click:e=>e instanceof MouseEvent},SJe="overlay";var xJe=te({name:"ElOverlay",props:bJe,emits:wJe,setup(e,{slots:t,emit:r}){const n=Ce(SJe),a=l=>{r("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=h3(e.customMaskEvent?void 0:a);return()=>e.mask?J("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[ye(t,"default")],$o.STYLE|$o.CLASS|$o.PROPS,["onClick","onMouseup","onMousedown"]):et("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ye(t,"default")])}});const I3=xJe,Qre=Symbol("dialogInjectionKey"),Jre=Oe({center:Boolean,alignCenter:Boolean,closeIcon:{type:Zr},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),AJe={close:()=>!0},TJe=["aria-level"],CJe=["aria-label"],EJe=["id"],MJe=te({name:"ElDialogContent"}),DJe=te({...MJe,props:Jre,emits:AJe,setup(e){const t=e,{t:r}=fr(),{Close:n}=Fee,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=Ye(Qre),{focusTrapRef:u}=Ye(S3),c=F(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),f=_T(u,a),d=F(()=>t.draggable);return zee(a,i,d),(h,v)=>(N(),U("div",{ref:b(f),class:H(b(c)),style:Xe(b(l)),tabindex:"-1"},[V("header",{ref_key:"headerRef",ref:i,class:H(b(s).e("header"))},[ye(h.$slots,"header",{},()=>[V("span",{role:"heading","aria-level":h.ariaLevel,class:H(b(s).e("title"))},me(h.title),11,TJe)]),h.showClose?(N(),U("button",{key:0,"aria-label":b(r)("el.dialog.close"),class:H(b(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[J(b(Ze),{class:H(b(s).e("close"))},{default:le(()=>[(N(),he(Ft(h.closeIcon||b(n))))]),_:1},8,["class"])],10,CJe)):ce("v-if",!0)],2),V("div",{id:b(o),class:H(b(s).e("body"))},[ye(h.$slots,"default")],10,EJe),h.$slots.footer?(N(),U("footer",{key:0,class:H(b(s).e("footer"))},[ye(h.$slots,"footer")],2)):ce("v-if",!0)],6))}});var PJe=ke(DJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const ene=Oe({...Jre,appendToBody:Boolean,appendTo:{type:fe(String),default:"body"},beforeClose:{type:fe(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),tne={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Nt]:e=>la(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},rne=(e,t)=>{var r;const a=It().emit,{nextZIndex:i}=im();let o="";const s=co(),l=co(),u=G(!1),c=G(!1),f=G(!1),d=G((r=e.zIndex)!=null?r:i());let h,v;const p=CT("namespace",a0),g=F(()=>{const I={},O=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(I[`${O}-margin-top`]=e.top),e.width&&(I[`${O}-width`]=Hn(e.width))),I}),m=F(()=>e.alignCenter?{display:"flex"}:{});function y(){a("opened")}function _(){a("closed"),a(Nt,!1),e.destroyOnClose&&(f.value=!1)}function w(){a("close")}function x(){v==null||v(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Wh(()=>C(),e.openDelay):C()}function S(){h==null||h(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=Wh(()=>M(),e.closeDelay):M()}function T(){function I(O){O||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(I):S()}function A(){e.closeOnClickModal&&T()}function C(){ur&&(u.value=!0)}function M(){u.value=!1}function E(){a("openAutoFocus")}function D(){a("closeAutoFocus")}function P(I){var O;((O=I.detail)==null?void 0:O.focusReason)==="pointer"&&I.preventDefault()}e.lockScroll&&Uee(u);function L(){e.closeOnPressEscape&&T()}return Ae(()=>e.modelValue,I=>{I?(c.value=!1,x(),f.value=!0,d.value=Tee(e.zIndex)?i():d.value++,qe(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):u.value&&S()}),Ae(()=>e.fullscreen,I=>{t.value&&(I?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),xt(()=>{e.modelValue&&(u.value=!0,f.value=!0,x())}),{afterEnter:y,afterLeave:_,beforeLeave:w,handleClose:T,onModalClick:A,close:S,doClose:M,onOpenAutoFocus:E,onCloseAutoFocus:D,onCloseRequested:L,onFocusoutPrevented:P,titleId:s,bodyId:l,closed:c,style:g,overlayDialogStyle:m,rendered:f,visible:u,zIndex:d}},LJe=["aria-label","aria-labelledby","aria-describedby"],IJe=te({name:"ElDialog",inheritAttrs:!1}),RJe=te({...IJe,props:ene,emits:tne,setup(e,{expose:t}){const r=e,n=$a();Ul({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"},F(()=>!!n.title)),Ul({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"},F(()=>!!r.customClass));const a=Ce("dialog"),i=G(),o=G(),s=G(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:m,handleClose:y,onModalClick:_,onOpenAutoFocus:w,onCloseAutoFocus:x,onCloseRequested:S,onFocusoutPrevented:T}=rne(r,i);Wt(Qre,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const A=h3(_),C=F(()=>r.draggable&&!r.fullscreen);return t({visible:l,dialogContentRef:s}),(M,E)=>(N(),he(W_,{to:M.appendTo,disabled:M.appendTo!=="body"?!1:!M.appendToBody},[J(Yn,{name:"dialog-fade",onAfterEnter:b(p),onAfterLeave:b(g),onBeforeLeave:b(m),persisted:""},{default:le(()=>[Ct(J(b(I3),{"custom-mask-event":"",mask:M.modal,"overlay-class":M.modalClass,"z-index":b(v)},{default:le(()=>[V("div",{role:"dialog","aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:b(u),"aria-describedby":b(c),class:H(`${b(a).namespace.value}-overlay-dialog`),style:Xe(b(d)),onClick:E[0]||(E[0]=(...D)=>b(A).onClick&&b(A).onClick(...D)),onMousedown:E[1]||(E[1]=(...D)=>b(A).onMousedown&&b(A).onMousedown(...D)),onMouseup:E[2]||(E[2]=(...D)=>b(A).onMouseup&&b(A).onMouseup(...D))},[J(b(DT),{loop:"",trapped:b(l),"focus-start-el":"container",onFocusAfterTrapped:b(w),onFocusAfterReleased:b(x),onFocusoutPrevented:b(T),onReleaseRequested:b(S)},{default:le(()=>[b(h)?(N(),he(PJe,Ut({key:0,ref_key:"dialogContentRef",ref:s},M.$attrs,{"custom-class":M.customClass,center:M.center,"align-center":M.alignCenter,"close-icon":M.closeIcon,draggable:b(C),fullscreen:M.fullscreen,"show-close":M.showClose,title:M.title,"aria-level":M.headerAriaLevel,onClose:b(y)}),Bl({header:le(()=>[M.$slots.title?ye(M.$slots,"title",{key:1}):ye(M.$slots,"header",{key:0,close:b(y),titleId:b(u),titleClass:b(a).e("title")})]),default:le(()=>[ye(M.$slots,"default")]),_:2},[M.$slots.footer?{name:"footer",fn:le(()=>[ye(M.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):ce("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,LJe)]),_:3},8,["mask","overlay-class","z-index"]),[[hr,b(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var OJe=ke(RJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const kJe=kt(OJe),NJe=Oe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:fe(String),default:"solid"}}),BJe=te({name:"ElDivider"}),FJe=te({...BJe,props:NJe,setup(e){const t=e,r=Ce("divider"),n=F(()=>r.cssVar({"border-style":t.borderStyle}));return(a,i)=>(N(),U("div",{class:H([b(r).b(),b(r).m(a.direction)]),style:Xe(b(n)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(N(),U("div",{key:0,class:H([b(r).e("text"),b(r).is(a.contentPosition)])},[ye(a.$slots,"default")],2)):ce("v-if",!0)],6))}});var VJe=ke(FJe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const nne=kt(VJe),zJe=Oe({...ene,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"}}),HJe=tne,GJe=te({name:"ElDrawer",components:{ElOverlay:I3,ElFocusTrap:DT,ElIcon:Ze,Close:el},inheritAttrs:!1,props:zJe,emits:HJe,setup(e,{slots:t}){Ul({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"},F(()=>!!t.title)),Ul({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"},F(()=>!!e.customClass));const r=G(),n=G(),a=Ce("drawer"),{t:i}=fr(),o=F(()=>e.direction==="rtl"||e.direction==="ltr"),s=F(()=>Hn(e.size));return{...rne(e,r),drawerRef:r,focusStartRef:n,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),UJe=["aria-label","aria-labelledby","aria-describedby"],$Je=["id","aria-level"],WJe=["aria-label"],YJe=["id"];function jJe(e,t,r,n,a,i){const o=bt("close"),s=bt("el-icon"),l=bt("el-focus-trap"),u=bt("el-overlay");return N(),he(W_,{to:"body",disabled:!e.appendToBody},[J(Yn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:le(()=>[Ct(J(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:le(()=>[J(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:le(()=>[V("div",Ut({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=it(()=>{},["stop"]))}),[V("span",{ref:"focusStartRef",class:H(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(N(),U("header",{key:0,class:H(e.ns.e("header"))},[e.$slots.title?ye(e.$slots,"title",{key:1},()=>[ce(" DEPRECATED SLOT ")]):ye(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ce("v-if",!0):(N(),U("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:H(e.ns.e("title"))},me(e.title),11,$Je))]),e.showClose?(N(),U("button",{key:2,"aria-label":e.t("el.drawer.close"),class:H(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[J(s,{class:H(e.ns.e("close"))},{default:le(()=>[J(o)]),_:1},8,["class"])],10,WJe)):ce("v-if",!0)],2)):ce("v-if",!0),e.rendered?(N(),U("div",{key:1,id:e.bodyId,class:H(e.ns.e("body"))},[ye(e.$slots,"default")],10,YJe)):ce("v-if",!0),e.$slots.footer?(N(),U("div",{key:2,class:H(e.ns.e("footer"))},[ye(e.$slots,"footer")],2)):ce("v-if",!0)],16,UJe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[hr,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var KJe=ke(GJe,[["render",jJe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const XJe=kt(KJe),ZJe=te({inheritAttrs:!1});function qJe(e,t,r,n,a,i){return ye(e.$slots,"default")}var QJe=ke(ZJe,[["render",qJe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const JJe=te({name:"ElCollectionItem",inheritAttrs:!1});function eet(e,t,r,n,a,i){return ye(e.$slots,"default")}var tet=ke(JJe,[["render",eet],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const ane="data-el-collection-item",ine=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),a=Symbol(r),i={...QJe,name:t,setup(){const s=G(null),l=new Map;Wt(n,{itemMap:l,getItems:()=>{const c=b(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${ane}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...tet,name:r,setup(s,{attrs:l}){const u=G(null),c=Ye(n,void 0);Wt(a,{collectionItemRef:u}),xt(()=>{const f=b(u);f&&c.itemMap.set(f,{ref:f,...l})}),un(()=>{const f=b(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},ret=Oe({style:{type:fe([String,Array,Object])},currentTabId:{type:fe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:fe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:net,ElCollectionItem:aet,COLLECTION_INJECTION_KEY:R3,COLLECTION_ITEM_INJECTION_KEY:iet}=ine("RovingFocusGroup"),O3=Symbol("elRovingFocusGroup"),one=Symbol("elRovingFocusGroupItem"),oet={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},set=(e,t)=>{if(t!=="rtl")return e;switch(e){case Qe.right:return Qe.left;case Qe.left:return Qe.right;default:return e}},uet=(e,t,r)=>{const n=set(e.key,r);if(!(t==="vertical"&&[Qe.left,Qe.right].includes(n))&&!(t==="horizontal"&&[Qe.up,Qe.down].includes(n)))return oet[n]},cet=(e,t)=>e.map((r,n)=>e[(n+t)%e.length]),k3=e=>{const{activeElement:t}=document;for(const r of e)if(r===t||(r.focus(),t!==document.activeElement))return},LU="currentTabIdChange",IU="rovingFocusGroup.entryFocus",fet={bubbles:!1,cancelable:!0},det=te({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ret,emits:[LU,"entryFocus"],setup(e,{emit:t}){var r;const n=G((r=e.currentTabId||e.defaultCurrentTabId)!=null?r:null),a=G(!1),i=G(!1),o=G(null),{getItems:s}=Ye(R3,void 0),l=F(()=>[{outline:"none"},e.style]),u=p=>{t(LU,p)},c=()=>{a.value=!0},f=Mn(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{i.value=!0}),d=Mn(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!b(i),{target:m,currentTarget:y}=p;if(m===y&&g&&!b(a)){const _=new Event(IU,fet);if(y==null||y.dispatchEvent(_),!_.defaultPrevented){const w=s().filter(C=>C.focusable),x=w.find(C=>C.active),S=w.find(C=>C.id===b(n)),A=[x,S,...w].filter(Boolean).map(C=>C.ref);k3(A)}}i.value=!1}),h=Mn(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{a.value=!1}),v=(...p)=>{t("entryFocus",...p)};Wt(O3,{currentTabbedId:Rg(n),loop:Sn(e,"loop"),tabIndex:F(()=>b(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Sn(e,"orientation"),dir:Sn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Ae(()=>e.currentTabId,p=>{n.value=p??null}),dn(o,IU,v)}});function het(e,t,r,n,a,i){return ye(e.$slots,"default")}var vet=ke(det,[["render",het],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const pet=te({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:net,ElRovingFocusGroupImpl:vet}});function get(e,t,r,n,a,i){const o=bt("el-roving-focus-group-impl"),s=bt("el-focus-group-collection");return N(),he(s,null,{default:le(()=>[J(o,Rs(K2(e.$attrs)),{default:le(()=>[ye(e.$slots,"default")]),_:3},16)]),_:3})}var met=ke(pet,[["render",get],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const yet=te({components:{ElRovingFocusCollectionItem:aet},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:r,loop:n,onItemFocus:a,onItemShiftTab:i}=Ye(O3,void 0),{getItems:o}=Ye(R3,void 0),s=co(),l=G(null),u=Mn(h=>{t("mousedown",h)},h=>{e.focusable?a(b(s)):h.preventDefault()}),c=Mn(h=>{t("focus",h)},()=>{a(b(s))}),f=Mn(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:m}=h;if(v===Qe.tab&&p){i();return}if(g!==m)return;const y=uet(h);if(y){h.preventDefault();let w=o().filter(x=>x.focusable).map(x=>x.ref);switch(y){case"last":{w.reverse();break}case"prev":case"next":{y==="prev"&&w.reverse();const x=w.indexOf(m);w=n.value?cet(w,x+1):w.slice(x+1);break}}qe(()=>{k3(w)})}}),d=F(()=>r.value===b(s));return Wt(one,{rovingFocusGroupItemRef:l,tabIndex:F(()=>b(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function _et(e,t,r,n,a,i){const o=bt("el-roving-focus-collection-item");return N(),he(o,{id:e.id,focusable:e.focusable,active:e.active},{default:le(()=>[ye(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var bet=ke(yet,[["render",_et],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const TS=Oe({trigger:b_.trigger,effect:{...Va.effect,default:"light"},type:{type:fe(String)},placement:{type:fe(String),default:"bottom"},popperOptions:{type:fe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:fe([Number,String]),default:0},maxHeight:{type:fe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:fe(Object)},teleported:Va.teleported}),sne=Oe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Zr}}),wet=Oe({onKeydown:{type:fe(Function)}}),xet=[Qe.down,Qe.pageDown,Qe.home],lne=[Qe.up,Qe.pageUp,Qe.end],Aet=[...xet,...lne],{ElCollection:Tet,ElCollectionItem:Cet,COLLECTION_INJECTION_KEY:Eet,COLLECTION_ITEM_INJECTION_KEY:Met}=ine("Dropdown"),IT=Symbol("elDropdown"),{ButtonGroup:Det}=Ja,Pet=te({name:"ElDropdown",components:{ElButton:Ja,ElButtonGroup:Det,ElScrollbar:ic,ElDropdownCollection:Tet,ElTooltip:Bi,ElRovingFocusGroup:met,ElOnlyChild:Rte,ElIcon:Ze,ArrowDown:Vf},props:TS,emits:["visible-change","click","command"],setup(e,{emit:t}){const r=It(),n=Ce("dropdown"),{t:a}=fr(),i=G(),o=G(),s=G(null),l=G(null),u=G(null),c=G(null),f=G(!1),d=[Qe.enter,Qe.space,Qe.down],h=F(()=>({maxHeight:Hn(e.maxHeight)})),v=F(()=>[n.m(x.value)]),p=F(()=>jh(e.trigger)),g=co().value,m=F(()=>e.id||g);Ae([i,p],([R,B],[k])=>{var z,$,j;(z=k==null?void 0:k.$el)!=null&&z.removeEventListener&&k.$el.removeEventListener("pointerenter",T),($=R==null?void 0:R.$el)!=null&&$.removeEventListener&&R.$el.removeEventListener("pointerenter",T),(j=R==null?void 0:R.$el)!=null&&j.addEventListener&&B.includes("hover")&&R.$el.addEventListener("pointerenter",T)},{immediate:!0}),un(()=>{var R,B;(B=(R=i.value)==null?void 0:R.$el)!=null&&B.removeEventListener&&i.value.$el.removeEventListener("pointerenter",T)});function y(){_()}function _(){var R;(R=s.value)==null||R.onClose()}function w(){var R;(R=s.value)==null||R.onOpen()}const x=ca();function S(...R){t("command",...R)}function T(){var R,B;(B=(R=i.value)==null?void 0:R.$el)==null||B.focus()}function A(){}function C(){const R=b(l);p.value.includes("hover")&&(R==null||R.focus()),c.value=null}function M(R){c.value=R}function E(R){f.value||(R.preventDefault(),R.stopImmediatePropagation())}function D(){t("visible-change",!0)}function P(R){(R==null?void 0:R.type)==="keydown"&&l.value.focus()}function L(){t("visible-change",!1)}return Wt(IT,{contentRef:l,role:F(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:A,onItemLeave:C}),Wt("elDropdown",{instance:r,dropdownSize:x,handleClick:y,commandHandler:S,trigger:Sn(e,"trigger"),hideOnClick:Sn(e,"hideOnClick")}),{t:a,ns:n,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:x,triggerId:m,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:M,handlerMainButtonClick:R=>{t("click",R)},handleEntryFocus:E,handleClose:_,handleOpen:w,handleBeforeShowTooltip:D,handleShowTooltip:P,handleBeforeHideTooltip:L,onFocusAfterTrapped:R=>{var B,k;R.preventDefault(),(k=(B=l.value)==null?void 0:B.focus)==null||k.call(B,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function Let(e,t,r,n,a,i){var o;const s=bt("el-dropdown-collection"),l=bt("el-roving-focus-group"),u=bt("el-scrollbar"),c=bt("el-only-child"),f=bt("el-tooltip"),d=bt("el-button"),h=bt("arrow-down"),v=bt("el-icon"),p=bt("el-button-group");return N(),U("div",{class:H([e.ns.b(),e.ns.is("disabled",e.disabled)])},[J(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(o=e.referenceElementRef)==null?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Bl({content:le(()=>[J(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:le(()=>[J(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:le(()=>[J(s,null,{default:le(()=>[ye(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:le(()=>[J(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:le(()=>[ye(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(N(),he(p,{key:0},{default:le(()=>[J(d,Ut({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),J(d,Ut({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:le(()=>[J(v,{class:H(e.ns.e("icon"))},{default:le(()=>[J(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ce("v-if",!0)],2)}var Iet=ke(Pet,[["render",Let],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Ret=te({name:"DropdownItemImpl",components:{ElIcon:Ze},props:sne,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const r=Ce("dropdown"),{role:n}=Ye(IT,void 0),{collectionItemRef:a}=Ye(Met,void 0),{collectionItemRef:i}=Ye(iet,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ye(one,void 0),f=_T(a,i,o),d=F(()=>n.value==="menu"?"menuitem":n.value==="navigation"?"link":"button"),h=Mn(v=>{const{code:p}=v;if(p===Qe.enter||p===Qe.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:r,itemRef:f,dataset:{[ane]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),Oet=["aria-disabled","tabindex","role"];function ket(e,t,r,n,a,i){const o=bt("el-icon");return N(),U(Be,null,[e.divided?(N(),U("li",Ut({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ce("v-if",!0),V("li",Ut({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=it((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon?(N(),he(o,{key:0},{default:le(()=>[(N(),he(Ft(e.icon)))]),_:1})):ce("v-if",!0),ye(e.$slots,"default")],16,Oet)],64)}var Net=ke(Ret,[["render",ket],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const une=()=>{const e=Ye("elDropdown",{}),t=F(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Bet=te({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Cet,ElRovingFocusItem:bet,ElDropdownItemImpl:Net},inheritAttrs:!1,props:sne,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:r}){const{elDropdown:n}=une(),a=It(),i=G(null),o=F(()=>{var h,v;return(v=(h=b(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=Ye(IT,void 0),u=Mn(h=>(t("pointermove",h),h.defaultPrevented),LH(h=>{if(e.disabled){l(h);return}const v=h.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(h),h.defaultPrevented||v==null||v.focus())})),c=Mn(h=>(t("pointerleave",h),h.defaultPrevented),LH(h=>{l(h)})),f=Mn(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,p,g;if(e.disabled){h.stopImmediatePropagation();return}(v=n==null?void 0:n.hideOnClick)!=null&&v.value&&((p=n.handleClick)==null||p.call(n)),(g=n.commandHandler)==null||g.call(n,e.command,a,h)}),d=F(()=>({...e,...r}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function Fet(e,t,r,n,a,i){var o;const s=bt("el-dropdown-item-impl"),l=bt("el-roving-focus-item"),u=bt("el-dropdown-collection-item");return N(),he(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:le(()=>[J(l,{focusable:!e.disabled},{default:le(()=>[J(s,Ut(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:le(()=>[ye(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var cne=ke(Bet,[["render",Fet],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const Vet=te({name:"ElDropdownMenu",props:wet,setup(e){const t=Ce("dropdown"),{_elDropdownSize:r}=une(),n=r.value,{focusTrapRef:a,onKeydown:i}=Ye(S3,void 0),{contentRef:o,role:s,triggerId:l}=Ye(IT,void 0),{collectionRef:u,getItems:c}=Ye(Eet,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=Ye(O3,void 0),{collectionRef:m}=Ye(R3,void 0),y=F(()=>[t.b("menu"),t.bm("menu",n==null?void 0:n.value)]),_=_T(o,u,a,f,m),w=Mn(S=>{var T;(T=e.onKeydown)==null||T.call(e,S)},S=>{const{currentTarget:T,code:A,target:C}=S;if(T.contains(C),Qe.tab===A&&S.stopImmediatePropagation(),S.preventDefault(),C!==b(o)||!Aet.includes(A))return;const E=c().filter(D=>!D.disabled).map(D=>D.ref);lne.includes(A)&&E.reverse(),k3(E)});return{size:n,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:y,role:s,triggerId:l,dropdownListWrapperRef:_,handleKeydown:S=>{w(S),i(S)},onBlur:v,onFocus:p,onMousedown:g}}}),zet=["role","aria-labelledby"];function Het(e,t,r,n,a,i){return N(),U("ul",{ref:e.dropdownListWrapperRef,class:H(e.dropdownKls),style:Xe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...o)=>e.onBlur&&e.onBlur(...o)),onFocus:t[1]||(t[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onKeydown:t[2]||(t[2]=it((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=it((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[ye(e.$slots,"default")],46,zet)}var fne=ke(Vet,[["render",Het],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const Get=kt(Iet,{DropdownItem:cne,DropdownMenu:fne}),Uet=Pn(cne),$et=Pn(fne),Wet={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Yet=["id"],jet=["stop-color"],Ket=["stop-color"],Xet=["id"],Zet=["stop-color"],qet=["stop-color"],Qet=["id"],Jet={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},ett={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},ttt={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},rtt=["fill"],ntt=["fill"],att={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)"},itt=["fill"],ott=["fill"],stt=["fill"],ltt=["fill"],utt=["fill"],ctt={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},ftt=["fill","xlink:href"],dtt=["fill","mask"],htt=["fill"],vtt=te({name:"ImgEmpty"}),ptt=te({...vtt,setup(e){const t=Ce("empty"),r=co();return(n,a)=>(N(),U("svg",Wet,[V("defs",null,[V("linearGradient",{id:`linearGradient-1-${b(r)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,jet),V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Ket)],8,Yet),V("linearGradient",{id:`linearGradient-2-${b(r)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Zet),V("stop",{"stop-color":`var(${b(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,qet)],8,Xet),V("rect",{id:`path-3-${b(r)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Qet)]),V("g",Jet,[V("g",ett,[V("g",ttt,[V("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(${b(t).cssVarBlockName("fill-color-3")})`},null,8,rtt),V("polygon",{id:"Rectangle-Copy-14",fill:`var(${b(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,ntt),V("g",att,[V("polygon",{id:"Rectangle-Copy-10",fill:`var(${b(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,itt),V("polygon",{id:"Rectangle-Copy-11",fill:`var(${b(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,ott),V("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${b(r)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,stt),V("polygon",{id:"Rectangle-Copy-13",fill:`var(${b(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,ltt)]),V("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${b(r)})`,x:"13",y:"45",width:"40",height:"36"},null,8,utt),V("g",ctt,[V("use",{id:"Mask",fill:`var(${b(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${b(r)}`},null,8,ftt),V("polygon",{id:"Rectangle-Copy",fill:`var(${b(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${b(r)})`,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,dtt)]),V("polygon",{id:"Rectangle-Copy-18",fill:`var(${b(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,htt)])])])]))}});var gtt=ke(ptt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const mtt=Oe({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),ytt=["src"],_tt={key:1},btt=te({name:"ElEmpty"}),wtt=te({...btt,props:mtt,setup(e){const t=e,{t:r}=fr(),n=Ce("empty"),a=F(()=>t.description||r("el.table.emptyText")),i=F(()=>({width:Hn(t.imageSize)}));return(o,s)=>(N(),U("div",{class:H(b(n).b())},[V("div",{class:H(b(n).e("image")),style:Xe(b(i))},[o.image?(N(),U("img",{key:0,src:o.image,ondragstart:"return false"},null,8,ytt)):ye(o.$slots,"image",{key:1},()=>[J(gtt)])],6),V("div",{class:H(b(n).e("description"))},[o.$slots.description?ye(o.$slots,"description",{key:0}):(N(),U("p",_tt,me(b(a)),1))],2),o.$slots.default?(N(),U("div",{key:0,class:H(b(n).e("bottom"))},[ye(o.$slots,"default")],2)):ce("v-if",!0)],2))}});var Stt=ke(wtt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const dne=kt(Stt),xtt=Oe({urlList:{type:fe(Array),default:()=>mn([])},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},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),Att={close:()=>!0,switch:e=>ct(e),rotate:e=>ct(e)},Ttt=["src"],Ctt=te({name:"ElImageViewer"}),Ett=te({...Ctt,props:xtt,emits:Att,setup(e,{expose:t,emit:r}){const n=e,a={CONTAIN:{name:"contain",icon:gh(nUe)},ORIGINAL:{name:"original",icon:gh(xUe)}},{t:i}=fr(),o=Ce("image-viewer"),{nextZIndex:s}=im(),l=G(),u=G([]),c=Toe(),f=G(!0),d=G(n.initialIndex),h=yr(a.CONTAIN),v=G({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=F(()=>{const{urlList:k}=n;return k.length<=1}),g=F(()=>d.value===0),m=F(()=>d.value===n.urlList.length-1),y=F(()=>n.urlList[d.value]),_=F(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!n.infinite&&g.value)]),w=F(()=>[o.e("btn"),o.e("next"),o.is("disabled",!n.infinite&&m.value)]),x=F(()=>{const{scale:k,deg:z,offsetX:$,offsetY:j,enableTransition:X}=v.value;let Q=$/k,se=j/k;switch(z%360){case 90:case-270:[Q,se]=[se,-Q];break;case 180:case-180:[Q,se]=[-Q,-se];break;case 270:case-90:[Q,se]=[-se,Q];break}const ee={transform:`scale(${k}) rotate(${z}deg) translate(${Q}px, ${se}px)`,transition:X?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(ee.maxWidth=ee.maxHeight="100%"),ee}),S=F(()=>ct(n.zIndex)?n.zIndex:s());function T(){C(),r("close")}function A(){const k=Eh($=>{switch($.code){case Qe.esc:n.closeOnPressEscape&&T();break;case Qe.space:L();break;case Qe.left:O();break;case Qe.up:B("zoomIn");break;case Qe.right:R();break;case Qe.down:B("zoomOut");break}}),z=Eh($=>{const j=$.deltaY||$.deltaX;B(j<0?"zoomIn":"zoomOut",{zoomRate:n.zoomRate,enableTransition:!1})});c.run(()=>{dn(document,"keydown",k),dn(document,"wheel",z)})}function C(){c.stop()}function M(){f.value=!1}function E(k){f.value=!1,k.target.alt=i("el.image.error")}function D(k){if(f.value||k.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:z,offsetY:$}=v.value,j=k.pageX,X=k.pageY,Q=Eh(ee=>{v.value={...v.value,offsetX:z+ee.pageX-j,offsetY:$+ee.pageY-X}}),se=dn(document,"mousemove",Q);dn(document,"mouseup",()=>{se()}),k.preventDefault()}function P(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function L(){if(f.value)return;const k=v_(a),z=Object.values(a),$=h.value.name,X=(z.findIndex(Q=>Q.name===$)+1)%k.length;h.value=a[k[X]],P()}function I(k){const z=n.urlList.length;d.value=(k+z)%z}function O(){g.value&&!n.infinite||I(d.value-1)}function R(){m.value&&!n.infinite||I(d.value+1)}function B(k,z={}){if(f.value)return;const{minScale:$,maxScale:j}=n,{zoomRate:X,rotateDeg:Q,enableTransition:se}={zoomRate:n.zoomRate,rotateDeg:90,enableTransition:!0,...z};switch(k){case"zoomOut":v.value.scale>$&&(v.value.scale=Number.parseFloat((v.value.scale/X).toFixed(3)));break;case"zoomIn":v.value.scale<j&&(v.value.scale=Number.parseFloat((v.value.scale*X).toFixed(3)));break;case"clockwise":v.value.deg+=Q,r("rotate",v.value.deg);break;case"anticlockwise":v.value.deg-=Q,r("rotate",v.value.deg);break}v.value.enableTransition=se}return Ae(y,()=>{qe(()=>{const k=u.value[0];k!=null&&k.complete||(f.value=!0)})}),Ae(d,k=>{P(),r("switch",k)}),xt(()=>{var k,z;A(),(z=(k=l.value)==null?void 0:k.focus)==null||z.call(k)}),t({setActiveItem:I}),(k,z)=>(N(),he(W_,{to:"body",disabled:!k.teleported},[J(Yn,{name:"viewer-fade",appear:""},{default:le(()=>[V("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:H(b(o).e("wrapper")),style:Xe({zIndex:b(S)})},[V("div",{class:H(b(o).e("mask")),onClick:z[0]||(z[0]=it($=>k.hideOnClickModal&&T(),["self"]))},null,2),ce(" CLOSE "),V("span",{class:H([b(o).e("btn"),b(o).e("close")]),onClick:T},[J(b(Ze),null,{default:le(()=>[J(b(el))]),_:1})],2),ce(" ARROW "),b(p)?ce("v-if",!0):(N(),U(Be,{key:0},[V("span",{class:H(b(_)),onClick:O},[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1})],2),V("span",{class:H(b(w)),onClick:R},[J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})],2)],64)),ce(" ACTIONS "),V("div",{class:H([b(o).e("btn"),b(o).e("actions")])},[V("div",{class:H(b(o).e("actions__inner"))},[J(b(Ze),{onClick:z[1]||(z[1]=$=>B("zoomOut"))},{default:le(()=>[J(b(VUe))]),_:1}),J(b(Ze),{onClick:z[2]||(z[2]=$=>B("zoomIn"))},{default:le(()=>[J(b(Nee))]),_:1}),V("i",{class:H(b(o).e("actions__divider"))},null,2),J(b(Ze),{onClick:L},{default:le(()=>[(N(),he(Ft(b(h).icon)))]),_:1}),V("i",{class:H(b(o).e("actions__divider"))},null,2),J(b(Ze),{onClick:z[3]||(z[3]=$=>B("anticlockwise"))},{default:le(()=>[J(b(_Ue))]),_:1}),J(b(Ze),{onClick:z[4]||(z[4]=$=>B("clockwise"))},{default:le(()=>[J(b(wUe))]),_:1})],2)],2),ce(" CANVAS "),V("div",{class:H(b(o).e("canvas"))},[(N(!0),U(Be,null,ht(k.urlList,($,j)=>Ct((N(),U("img",{ref_for:!0,ref:X=>u.value[j]=X,key:$,src:$,style:Xe(b(x)),class:H(b(o).e("img")),onLoad:M,onError:E,onMousedown:D},null,46,Ttt)),[[hr,j===d.value]])),128))],2),ye(k.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Mtt=ke(Ett,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const hne=kt(Mtt),Dtt=Oe({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:fe([String,Object])},previewSrcList:{type:fe(Array),default:()=>mn([])},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},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),Ptt={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ct(e),close:()=>!0,show:()=>!0},Ltt=["src","loading"],Itt={key:0},Rtt=te({name:"ElImage",inheritAttrs:!1}),Ott=te({...Rtt,props:Dtt,emits:Ptt,setup(e,{emit:t}){const r=e;let n="";const{t:a}=fr(),i=Ce("image"),o=Jh(),s=n3(),l=G(),u=G(!1),c=G(!0),f=G(!1),d=G(),h=G(),v=ur&&"loading"in HTMLImageElement.prototype;let p,g;const m=F(()=>[i.e("inner"),w.value&&i.e("preview"),c.value&&i.is("loading")]),y=F(()=>o.style),_=F(()=>{const{fit:B}=r;return ur&&B?{objectFit:B}:{}}),w=F(()=>{const{previewSrcList:B}=r;return Array.isArray(B)&&B.length>0}),x=F(()=>{const{previewSrcList:B,initialIndex:k}=r;let z=k;return k>B.length-1&&(z=0),z}),S=F(()=>r.loading==="eager"?!1:!v&&r.loading==="lazy"||r.lazy),T=()=>{ur&&(c.value=!0,u.value=!1,l.value=r.src)};function A(B){c.value=!1,u.value=!1,t("load",B)}function C(B){c.value=!1,u.value=!0,t("error",B)}function M(){yFe(d.value,h.value)&&(T(),P())}const E=HJ(M,200,!0);async function D(){var B;if(!ur)return;await qe();const{scrollContainer:k}=r;us(k)?h.value=k:wt(k)&&k!==""?h.value=(B=document.querySelector(k))!=null?B:void 0:d.value&&(h.value=ZN(d.value)),h.value&&(p=dn(h,"scroll",E),setTimeout(()=>M(),100))}function P(){!ur||!h.value||!E||(p==null||p(),h.value=void 0)}function L(B){if(B.ctrlKey){if(B.deltaY<0)return B.preventDefault(),!1;if(B.deltaY>0)return B.preventDefault(),!1}}function I(){w.value&&(g=dn("wheel",L,{passive:!1}),n=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function O(){g==null||g(),document.body.style.overflow=n,f.value=!1,t("close")}function R(B){t("switch",B)}return Ae(()=>r.src,()=>{S.value?(c.value=!0,u.value=!1,P(),D()):T()}),xt(()=>{S.value?D():T()}),(B,k)=>(N(),U("div",{ref_key:"container",ref:d,class:H([b(i).b(),B.$attrs.class]),style:Xe(b(y))},[u.value?ye(B.$slots,"error",{key:0},()=>[V("div",{class:H(b(i).e("error"))},me(b(a)("el.image.error")),3)]):(N(),U(Be,{key:1},[l.value!==void 0?(N(),U("img",Ut({key:0},b(s),{src:l.value,loading:B.loading,style:b(_),class:b(m),onClick:I,onLoad:A,onError:C}),null,16,Ltt)):ce("v-if",!0),c.value?(N(),U("div",{key:1,class:H(b(i).e("wrapper"))},[ye(B.$slots,"placeholder",{},()=>[V("div",{class:H(b(i).e("placeholder"))},null,2)])],2)):ce("v-if",!0)],64)),b(w)?(N(),U(Be,{key:2},[f.value?(N(),he(b(hne),{key:0,"z-index":B.zIndex,"initial-index":b(x),infinite:B.infinite,"zoom-rate":B.zoomRate,"min-scale":B.minScale,"max-scale":B.maxScale,"url-list":B.previewSrcList,"hide-on-click-modal":B.hideOnClickModal,teleported:B.previewTeleported,"close-on-press-escape":B.closeOnPressEscape,onClose:O,onSwitch:R},{default:le(()=>[B.$slots.viewer?(N(),U("div",Itt,[ye(B.$slots,"viewer")])):ce("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ce("v-if",!0)],64)):ce("v-if",!0)],6))}});var ktt=ke(Ott,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Ntt=kt(ktt),Btt=Oe({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:Ga,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ct(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Ftt={[ln]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Di]:e=>ct(e)||Qn(e),[Nt]:e=>ct(e)||Qn(e)},Vtt=["aria-label","onKeydown"],ztt=["aria-label","onKeydown"],Htt=te({name:"ElInputNumber"}),Gtt=te({...Htt,props:Btt,emits:Ftt,setup(e,{expose:t,emit:r}){const n=e,{t:a}=fr(),i=Ce("input-number"),o=G(),s=Ar({currentValue:n.modelValue,userInput:null}),{formItem:l}=Vi(),u=F(()=>ct(n.modelValue)&&n.modelValue<=n.min),c=F(()=>ct(n.modelValue)&&n.modelValue>=n.max),f=F(()=>{const P=m(n.step);return oa(n.precision)?Math.max(m(n.modelValue),P):(P>n.precision,n.precision)}),d=F(()=>n.controls&&n.controlsPosition==="right"),h=ca(),v=ho(),p=F(()=>{if(s.userInput!==null)return s.userInput;let P=s.currentValue;if(Qn(P))return"";if(ct(P)){if(Number.isNaN(P))return"";oa(n.precision)||(P=P.toFixed(n.precision))}return P}),g=(P,L)=>{if(oa(L)&&(L=f.value),L===0)return Math.round(P);let I=String(P);const O=I.indexOf(".");if(O===-1||!I.replace(".","").split("")[O+L])return P;const k=I.length;return I.charAt(k-1)==="5"&&(I=`${I.slice(0,Math.max(0,k-1))}6`),Number.parseFloat(Number(I).toFixed(L))},m=P=>{if(Qn(P))return 0;const L=P.toString(),I=L.indexOf(".");let O=0;return I!==-1&&(O=L.length-I-1),O},y=(P,L=1)=>ct(P)?g(P+n.step*L):s.currentValue,_=()=>{if(n.readonly||v.value||c.value)return;const P=Number(p.value)||0,L=y(P);S(L),r(Di,s.currentValue)},w=()=>{if(n.readonly||v.value||u.value)return;const P=Number(p.value)||0,L=y(P,-1);S(L),r(Di,s.currentValue)},x=(P,L)=>{const{max:I,min:O,step:R,precision:B,stepStrictly:k,valueOnClear:z}=n;I<O&&ua("InputNumber","min should not be greater than max.");let $=Number(P);if(Qn(P)||Number.isNaN($))return null;if(P===""){if(z===null)return null;$=wt(z)?{min:O,max:I}[z]:z}return k&&($=g(Math.round($/R)*R,B)),oa(B)||($=g($,B)),($>I||$<O)&&($=$>I?I:O,L&&r(Nt,$)),$},S=(P,L=!0)=>{var I;const O=s.currentValue,R=x(P);if(!L){r(Nt,R);return}O!==R&&(s.userInput=null,r(Nt,R),r(ln,R,O),n.validateEvent&&((I=l==null?void 0:l.validate)==null||I.call(l,"change").catch(B=>void 0)),s.currentValue=R)},T=P=>{s.userInput=P;const L=P===""?null:Number(P);r(Di,L),S(L,!1)},A=P=>{const L=P!==""?Number(P):"";(ct(L)&&!Number.isNaN(L)||P==="")&&S(L),s.userInput=null},C=()=>{var P,L;(L=(P=o.value)==null?void 0:P.focus)==null||L.call(P)},M=()=>{var P,L;(L=(P=o.value)==null?void 0:P.blur)==null||L.call(P)},E=P=>{r("focus",P)},D=P=>{var L;r("blur",P),n.validateEvent&&((L=l==null?void 0:l.validate)==null||L.call(l,"blur").catch(I=>void 0))};return Ae(()=>n.modelValue,P=>{const L=x(s.userInput),I=x(P,!0);!ct(L)&&(!L||L!==I)&&(s.currentValue=I,s.userInput=null)},{immediate:!0}),xt(()=>{var P;const{min:L,max:I,modelValue:O}=n,R=(P=o.value)==null?void 0:P.input;if(R.setAttribute("role","spinbutton"),Number.isFinite(I)?R.setAttribute("aria-valuemax",String(I)):R.removeAttribute("aria-valuemax"),Number.isFinite(L)?R.setAttribute("aria-valuemin",String(L)):R.removeAttribute("aria-valuemin"),R.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),R.setAttribute("aria-disabled",String(v.value)),!ct(O)&&O!=null){let B=Number(O);Number.isNaN(B)&&(B=null),r(Nt,B)}}),qu(()=>{var P,L;const I=(P=o.value)==null?void 0:P.input;I==null||I.setAttribute("aria-valuenow",`${(L=s.currentValue)!=null?L:""}`)}),t({focus:C,blur:M}),(P,L)=>(N(),U("div",{class:H([b(i).b(),b(i).m(b(h)),b(i).is("disabled",b(v)),b(i).is("without-controls",!P.controls),b(i).is("controls-right",b(d))]),onDragstart:L[1]||(L[1]=it(()=>{},["prevent"]))},[P.controls?Ct((N(),U("span",{key:0,role:"button","aria-label":b(a)("el.inputNumber.decrease"),class:H([b(i).e("decrease"),b(i).is("disabled",b(u))]),onKeydown:dr(w,["enter"])},[J(b(Ze),null,{default:le(()=>[b(d)?(N(),he(b(Vf),{key:0})):(N(),he(b(uUe),{key:1}))]),_:1})],42,Vtt)),[[b(d2),w]]):ce("v-if",!0),P.controls?Ct((N(),U("span",{key:1,role:"button","aria-label":b(a)("el.inputNumber.increase"),class:H([b(i).e("increase"),b(i).is("disabled",b(c))]),onKeydown:dr(_,["enter"])},[J(b(Ze),null,{default:le(()=>[b(d)?(N(),he(b(mT),{key:0})):(N(),he(b(Oee),{key:1}))]),_:1})],42,ztt)),[[b(d2),_]]):ce("v-if",!0),J(b(li),{id:P.id,ref_key:"input",ref:o,type:"number",step:P.step,"model-value":b(p),placeholder:P.placeholder,readonly:P.readonly,disabled:b(v),size:b(h),max:P.max,min:P.min,name:P.name,label:P.label,"validate-event":!1,onWheel:L[0]||(L[0]=it(()=>{},["prevent"])),onKeydown:[dr(it(_,["prevent"]),["up"]),dr(it(w,["prevent"]),["down"])],onBlur:D,onFocus:E,onInput:T,onChange:A},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Utt=ke(Gtt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const vne=kt(Utt),$tt=Oe({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:Zr}}),Wtt={click:e=>e instanceof MouseEvent},Ytt=["href"],jtt=te({name:"ElLink"}),Ktt=te({...jtt,props:$tt,emits:Wtt,setup(e,{emit:t}){const r=e,n=Ce("link"),a=F(()=>[n.b(),n.m(r.type),n.is("disabled",r.disabled),n.is("underline",r.underline&&!r.disabled)]);function i(o){r.disabled||t("click",o)}return(o,s)=>(N(),U("a",{class:H(b(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(o.icon)))]),_:1})):ce("v-if",!0),o.$slots.default?(N(),U("span",{key:1,class:H(b(n).e("inner"))},[ye(o.$slots,"default")],2)):ce("v-if",!0),o.$slots.icon?ye(o.$slots,"icon",{key:2}):ce("v-if",!0)],10,Ytt))}});var Xtt=ke(Ktt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const Ztt=kt(Xtt);let qtt=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let a=!1;switch(n.code){case Qe.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case Qe.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case Qe.tab:{fS(t,"mouseleave");break}case Qe.enter:case Qe.space:{a=!0,n.currentTarget.click();break}}return a&&(n.preventDefault(),n.stopPropagation()),!1})})}},Qtt=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new qtt(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Qe.down:{fS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Qe.up:{fS(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Qe.tab:{fS(t.currentTarget,"mouseleave");break}case Qe.enter:case Qe.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},Jtt=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new Qtt(n,t)})}};const ert=te({name:"ElMenuCollapseTransition",setup(){const e=Ce("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Pl(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){ro(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Ws(r,e.m("collapse"))?(ro(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Pl(r,e.m("collapse"))):(Pl(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),ro(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Pl(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function trt(e,t,r,n,a,i){return N(),he(Yn,Ut({mode:"out-in"},e.listeners),{default:le(()=>[ye(e.$slots,"default")]),_:3},16)}var rrt=ke(ert,[["render",trt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function pne(e,t){const r=F(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:F(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:r}}function nrt(e){return F(()=>{const r=e.backgroundColor;return r?new Yte(r).shade(20).toString():""})}const gne=(e,t)=>{const r=Ce("menu");return F(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":nrt(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},art=Oe({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:Zr},expandOpenIcon:{type:Zr},collapseCloseIcon:{type:Zr},collapseOpenIcon:{type:Zr}}),mw="ElSubMenu";var N3=te({name:mw,props:art,setup(e,{slots:t,expose:r}){Ul({from:"popper-append-to-body",replacement:"teleported",scope:mw,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},F(()=>e.popperAppendToBody!==void 0));const n=It(),{indexPath:a,parentMenu:i}=pne(n,F(()=>e.index)),o=Ce("menu"),s=Ce("sub-menu"),l=Ye("rootMenu");l||ua(mw,"can not inject root menu");const u=Ye(`subMenu:${i.value.uid}`);u||ua(mw,"can not inject sub menu");const c=G({}),f=G({});let d;const h=G(!1),v=G(),p=G(null),g=F(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=F(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:Vf:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:Mi),y=F(()=>u.level===0),_=F(()=>{var O;const R=(O=e.teleported)!=null?O:e.popperAppendToBody;return R===void 0?y.value:R}),w=F(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=F(()=>A.value==="horizontal"&&y.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"]),S=F(()=>l.openedMenus.includes(e.index)),T=F(()=>{let O=!1;return Object.values(c.value).forEach(R=>{R.active&&(O=!0)}),Object.values(f.value).forEach(R=>{R.active&&(O=!0)}),O}),A=F(()=>l.props.mode),C=Ar({index:e.index,indexPath:a,active:T}),M=gne(l.props,u.level+1),E=()=>{var O,R,B;return(B=(R=(O=p.value)==null?void 0:O.popperRef)==null?void 0:R.popperInstanceRef)==null?void 0:B.destroy()},D=O=>{O||E()},P=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:T.value})},L=(O,R=e.showTimeout)=>{var B;O.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Wh(()=>{l.openMenu(e.index,a.value)},R),_.value&&((B=i.value.vnode.el)==null||B.dispatchEvent(new MouseEvent("mouseenter")))))},I=(O=!1)=>{var R,B;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Wh(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),_.value&&O&&((R=n.parent)==null?void 0:R.type.name)==="ElSubMenu"&&((B=u.handleMouseleave)==null||B.call(u,!0)))};Ae(()=>l.props.collapse,O=>D(!!O));{const O=B=>{f.value[B.index]=B},R=B=>{delete f.value[B.index]};Wt(`subMenu:${n.uid}`,{addSubMenu:O,removeSubMenu:R,handleMouseleave:I,mouseInChild:h,level:u.level+1})}return r({opened:S}),xt(()=>{l.addSubMenu(C),u.addSubMenu(C)}),un(()=>{u.removeSubMenu(C),l.removeSubMenu(C)}),()=>{var O;const R=[(O=t.title)==null?void 0:O.call(t),et(Ze,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>wt(m.value)?et(n.appContext.components[m.value]):et(m.value)})],B=l.isMenuPopup?et(Bi,{ref:p,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:x.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var k;return et("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:z=>L(z,100),onMouseleave:()=>I(!0),onFocus:z=>L(z,100)},[et("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:M.value},[(k=t.default)==null?void 0:k.call(t)])])},default:()=>et("div",{class:s.e("title"),onClick:P},R)}):et(Be,{},[et("div",{class:s.e("title"),ref:v,onClick:P},R),et(LT,{},{default:()=>{var k;return Ct(et("ul",{role:"menu",class:[o.b(),o.m("inline")],style:M.value},[(k=t.default)==null?void 0:k.call(t)]),[[hr,S.value]])}})]);return et("li",{class:[s.b(),s.is("active",T.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:L,onMouseleave:()=>I(!0),onFocus:L},[B])}}});const irt=Oe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:fe(Array),default:()=>mn([])},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"}}),jM=e=>Array.isArray(e)&&e.every(t=>wt(t)),ort={close:(e,t)=>wt(e)&&jM(t),open:(e,t)=>wt(e)&&jM(t),select:(e,t,r,n)=>wt(e)&&jM(t)&&Vt(r)&&(n===void 0||n instanceof Promise)};var srt=te({name:"ElMenu",props:irt,emits:ort,setup(e,{emit:t,slots:r,expose:n}){const a=It(),i=a.appContext.config.globalProperties.$router,o=G(),s=Ce("menu"),l=Ce("sub-menu"),u=G(-1),c=G(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=G(e.defaultActive),d=G({}),h=G({}),v=F(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=f.value&&d.value[f.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(P=>{const L=h.value[P];L&&g(P,L.indexPath)})},g=(E,D)=>{c.value.includes(E)||(e.uniqueOpened&&(c.value=c.value.filter(P=>D.includes(P))),c.value.push(E),t("open",E,D))},m=E=>{const D=c.value.indexOf(E);D!==-1&&c.value.splice(D,1)},y=(E,D)=>{m(E),t("close",E,D)},_=({index:E,indexPath:D})=>{c.value.includes(E)?y(E,D):g(E,D)},w=E=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:D,indexPath:P}=E;if(!(Qn(D)||Qn(P)))if(e.router&&i){const L=E.route||D,I=i.push(L).then(O=>(O||(f.value=D),O));t("select",D,P,{index:D,indexPath:P,route:L},I)}else f.value=D,t("select",D,P,{index:D,indexPath:P})},x=E=>{const D=d.value,P=D[E]||f.value&&D[f.value]||D[e.defaultActive];P?f.value=P.index:f.value=E},S=()=>{var E,D;if(!o.value)return-1;const P=Array.from((D=(E=o.value)==null?void 0:E.childNodes)!=null?D:[]).filter(z=>z.nodeName!=="#comment"&&(z.nodeName!=="#text"||z.nodeValue)),L=64,I=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),O=Number.parseInt(getComputedStyle(o.value).paddingRight,10),R=o.value.clientWidth-I-O;let B=0,k=0;return P.forEach((z,$)=>{B+=z.offsetWidth||0,B<=R-L&&(k=$+1)}),k===P.length?-1:k},T=(E,D=33.34)=>{let P;return()=>{P&&clearTimeout(P),P=setTimeout(()=>{E()},D)}};let A=!0;const C=()=>{const E=()=>{u.value=-1,qe(()=>{u.value=S()})};A?E():T(E)(),A=!1};Ae(()=>e.defaultActive,E=>{d.value[E]||(f.value=""),x(E)}),Ae(()=>e.collapse,E=>{E&&(c.value=[])}),Ae(d.value,p);let M;xo(()=>{e.mode==="horizontal"&&e.ellipsis?M=di(o,C).stop:M==null||M()});{const E=I=>{h.value[I.index]=I},D=I=>{delete h.value[I.index]};Wt("rootMenu",Ar({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:I=>{d.value[I.index]=I},removeMenuItem:I=>{delete d.value[I.index]},addSubMenu:E,removeSubMenu:D,openMenu:g,closeMenu:y,handleMenuItemClick:w,handleSubMenuClick:_})),Wt(`subMenu:${a.uid}`,{addSubMenu:E,removeSubMenu:D,mouseInChild:G(!1),level:0})}return xt(()=>{e.mode==="horizontal"&&new Jtt(a.vnode.el,s.namespace.value)}),n({open:D=>{const{indexPath:P}=h.value[D];P.forEach(L=>g(L,P))},close:m,handleResize:C}),()=>{var E,D;let P=(D=(E=r.default)==null?void 0:E.call(r))!=null?D:[];const L=[];if(e.mode==="horizontal"&&o.value){const R=Mh(P),B=u.value===-1?R:R.slice(0,u.value),k=u.value===-1?[]:R.slice(u.value);k!=null&&k.length&&e.ellipsis&&(P=B,L.push(et(N3,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>et(Ze,{class:l.e("icon-more")},{default:()=>et(dUe)}),default:()=>k})))}const I=gne(e,0),O=et("ul",{key:String(e.collapse),role:"menubar",ref:o,style:I.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...P,...L]);return e.collapseTransition&&e.mode==="vertical"?et(rrt,()=>O):O}}});const lrt=Oe({index:{type:fe([String,null]),default:null},route:{type:fe([String,Object])},disabled:Boolean}),urt={click:e=>wt(e.index)&&Array.isArray(e.indexPath)},KM="ElMenuItem",crt=te({name:KM,components:{ElTooltip:Bi},props:lrt,emits:urt,setup(e,{emit:t}){const r=It(),n=Ye("rootMenu"),a=Ce("menu"),i=Ce("menu-item");n||ua(KM,"can not inject root menu");const{parentMenu:o,indexPath:s}=pne(r,Sn(e,"index")),l=Ye(`subMenu:${o.value.uid}`);l||ua(KM,"can not inject sub menu");const u=F(()=>e.index===n.activeIndex),c=Ar({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return xt(()=>{l.addSubMenu(c),n.addMenuItem(c)}),un(()=>{l.removeSubMenu(c),n.removeMenuItem(c)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function frt(e,t,r,n,a,i){const o=bt("el-tooltip");return N(),U("li",{class:H([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(N(),he(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:le(()=>[ye(e.$slots,"title")]),default:le(()=>[V("div",{class:H(e.nsMenu.be("tooltip","trigger"))},[ye(e.$slots,"default")],2)]),_:3},8,["effect"])):(N(),U(Be,{key:1},[ye(e.$slots,"default"),ye(e.$slots,"title")],64))],2)}var mne=ke(crt,[["render",frt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const drt={title:String},hrt="ElMenuItemGroup",vrt=te({name:hrt,props:drt,setup(){return{ns:Ce("menu-item-group")}}});function prt(e,t,r,n,a,i){return N(),U("li",{class:H(e.ns.b())},[V("div",{class:H(e.ns.e("title"))},[e.$slots.title?ye(e.$slots,"title",{key:1}):(N(),U(Be,{key:0},[nr(me(e.title),1)],64))],2),V("ul",null,[ye(e.$slots,"default")])],2)}var yne=ke(vrt,[["render",prt],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const grt=kt(srt,{MenuItem:mne,MenuItemGroup:yne,SubMenu:N3}),mrt=Pn(mne),yrt=Pn(yne),_rt=Pn(N3),brt=Oe({icon:{type:Zr,default:()=>NGe},title:String,content:{type:String,default:""}}),wrt={back:()=>!0},Srt=["aria-label"],xrt=te({name:"ElPageHeader"}),Art=te({...xrt,props:brt,emits:wrt,setup(e,{emit:t}){const r=$a(),{t:n}=fr(),a=Ce("page-header"),i=F(()=>[a.b(),{[a.m("has-breadcrumb")]:!!r.breadcrumb,[a.m("has-extra")]:!!r.extra,[a.is("contentful")]:!!r.default}]);function o(){t("back")}return(s,l)=>(N(),U("div",{class:H(b(i))},[s.$slots.breadcrumb?(N(),U("div",{key:0,class:H(b(a).e("breadcrumb"))},[ye(s.$slots,"breadcrumb")],2)):ce("v-if",!0),V("div",{class:H(b(a).e("header"))},[V("div",{class:H(b(a).e("left"))},[V("div",{class:H(b(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(N(),U("div",{key:0,"aria-label":s.title||b(n)("el.pageHeader.title"),class:H(b(a).e("icon"))},[ye(s.$slots,"icon",{},()=>[s.icon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(s.icon)))]),_:1})):ce("v-if",!0)])],10,Srt)):ce("v-if",!0),V("div",{class:H(b(a).e("title"))},[ye(s.$slots,"title",{},()=>[nr(me(s.title||b(n)("el.pageHeader.title")),1)])],2)],2),J(b(nne),{direction:"vertical"}),V("div",{class:H(b(a).e("content"))},[ye(s.$slots,"content",{},()=>[nr(me(s.content),1)])],2)],2),s.$slots.extra?(N(),U("div",{key:0,class:H(b(a).e("extra"))},[ye(s.$slots,"extra")],2)):ce("v-if",!0)],2),s.$slots.default?(N(),U("div",{key:1,class:H(b(a).e("main"))},[ye(s.$slots,"default")],2)):ce("v-if",!0)],2))}});var Trt=ke(Art,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const Crt=kt(Trt),_ne=Symbol("elPaginationKey"),Ert=Oe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Zr}}),Mrt={click:e=>e instanceof MouseEvent},Drt=["disabled","aria-label","aria-disabled"],Prt={key:0},Lrt=te({name:"ElPaginationPrev"}),Irt=te({...Lrt,props:Ert,emits:Mrt,setup(e){const t=e,{t:r}=fr(),n=F(()=>t.disabled||t.currentPage<=1);return(a,i)=>(N(),U("button",{type:"button",class:"btn-prev",disabled:b(n),"aria-label":a.prevText||b(r)("el.pagination.prev"),"aria-disabled":b(n),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(N(),U("span",Prt,me(a.prevText),1)):(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(a.prevIcon)))]),_:1}))],8,Drt))}});var Rrt=ke(Irt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Ort=Oe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Zr}}),krt=["disabled","aria-label","aria-disabled"],Nrt={key:0},Brt=te({name:"ElPaginationNext"}),Frt=te({...Brt,props:Ort,emits:["click"],setup(e){const t=e,{t:r}=fr(),n=F(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(N(),U("button",{type:"button",class:"btn-next",disabled:b(n),"aria-label":a.nextText||b(r)("el.pagination.next"),"aria-disabled":b(n),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(N(),U("span",Nrt,me(a.nextText),1)):(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(a.nextIcon)))]),_:1}))],8,krt))}});var Vrt=ke(Frt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const bne=Symbol("ElSelectGroup"),k1=Symbol("ElSelect");function zrt(e,t){const r=Ye(k1),n=Ye(bne,{disabled:!1}),a=F(()=>Vt(e.value)),i=F(()=>r.props.multiple?f(r.props.modelValue,e.value):d(e.value,r.props.modelValue)),o=F(()=>{if(r.props.multiple){const p=r.props.modelValue||[];return!i.value&&p.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),s=F(()=>e.label||(a.value?"":e.value)),l=F(()=>e.value||e.label||""),u=F(()=>e.disabled||t.groupDisabled||o.value),c=It(),f=(p=[],g)=>{if(a.value){const m=r.props.valueKey;return p&&p.some(y=>Er(gn(y,m))===gn(g,m))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:m}=r.props;return gn(p,m)===gn(g,m)}else return p===g},h=()=>{!e.disabled&&!n.disabled&&(r.hoverIndex=r.optionsArray.indexOf(c.proxy))};Ae(()=>s.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),Ae(()=>e.value,(p,g)=>{const{remote:m,valueKey:y}=r.props;if(Object.is(p,g)||(r.onOptionDestroy(g,c.proxy),r.onOptionCreate(c.proxy)),!e.created&&!m){if(y&&Vt(p)&&Vt(g)&&p[y]===g[y])return;r.setSelected()}}),Ae(()=>n.disabled,()=>{t.groupDisabled=n.disabled},{immediate:!0});const{queryChange:v}=Er(r);return Ae(v,p=>{const{query:g}=b(p),m=new RegExp(Mee(g),"i");t.visible=m.test(s.value)||e.created,t.visible||r.filteredOptionsCount--},{immediate:!0}),{select:r,currentLabel:s,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:h}}const Hrt=te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Ce("select"),r=co(),n=F(()=>[t.be("dropdown","item"),t.is("disabled",b(s)),{selected:b(o),hover:b(f)}]),a=Ar({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u}=zrt(e,a),{visible:c,hover:f}=Da(a),d=It().proxy;l.onOptionCreate(d),un(()=>{const v=d.value,{selected:p}=l,m=(l.props.multiple?p:[p]).some(y=>y.value===d.value);qe(()=>{l.cachedOptions.get(v)===d&&!m&&l.cachedOptions.delete(v)}),l.onOptionDestroy(v,d)});function h(){e.disabled!==!0&&a.groupDisabled!==!0&&l.handleOptionSelect(d)}return{ns:t,id:r,containerKls:n,currentLabel:i,itemSelected:o,isDisabled:s,select:l,hoverItem:u,visible:c,hover:f,selectOptionClick:h,states:a}}}),Grt=["id","aria-disabled","aria-selected"];function Urt(e,t,r,n,a,i){return Ct((N(),U("li",{id:e.id,class:H(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=it((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[ye(e.$slots,"default",{},()=>[V("span",null,me(e.currentLabel),1)])],42,Grt)),[[hr,e.visible]])}var B3=ke(Hrt,[["render",Urt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const $rt=te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ye(k1),t=Ce("select"),r=F(()=>e.props.popperClass),n=F(()=>e.props.multiple),a=F(()=>e.props.fitInputWidth),i=G("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return xt(()=>{o(),di(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:r,isMultiple:n,isFitInputWidth:a}}});function Wrt(e,t,r,n,a,i){return N(),U("div",{class:H([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Xe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(N(),U("div",{key:0,class:H(e.ns.be("dropdown","header"))},[ye(e.$slots,"header")],2)):ce("v-if",!0),ye(e.$slots,"default"),e.$slots.footer?(N(),U("div",{key:1,class:H(e.ns.be("dropdown","footer"))},[ye(e.$slots,"footer")],2)):ce("v-if",!0)],6)}var Yrt=ke($rt,[["render",Wrt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function jrt(e){const{t}=fr();return Ar({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const Krt=(e,t,r)=>{const{t:n}=fr(),a=Ce("select");Ul({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},F(()=>e.suffixTransition===!1));const i=G(null),o=G(null),s=G(null),l=G(null),u=G(null),c=G(null),f=G(null),d=G(null),h=G(),v=yr({query:""}),p=yr(""),g=G([]);let m=0;const{form:y,formItem:_}=Vi(),w=F(()=>!e.filterable||e.multiple||!t.visible),x=F(()=>e.disabled||(y==null?void 0:y.disabled)),S=F(()=>{const we=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!x.value&&t.inputHovering&&we}),T=F(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),A=F(()=>a.is("reverse",T.value&&t.visible&&e.suffixTransition)),C=F(()=>(y==null?void 0:y.statusIcon)&&(_==null?void 0:_.validateState)&&t3[_==null?void 0:_.validateState]),M=F(()=>e.remote?300:0),E=F(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||n("el.select.noMatch"):t.options.size===0?e.noDataText||n("el.select.noData"):null),D=F(()=>{const we=Array.from(t.options.values()),ze=[];return g.value.forEach(pt=>{const lr=we.findIndex(ba=>ba.currentLabel===pt);lr>-1&&ze.push(we[lr])}),ze.length>=we.length?ze:we}),P=F(()=>Array.from(t.cachedOptions.values())),L=F(()=>{const we=D.value.filter(ze=>!ze.created).some(ze=>ze.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!we}),I=ca(),O=F(()=>["small"].includes(I.value)?"small":"default"),R=F({get(){return t.visible&&E.value!==!1},set(we){t.visible=we}});Ae([()=>x.value,()=>I.value,()=>y==null?void 0:y.size],()=>{qe(()=>{B()})}),Ae(()=>e.placeholder,we=>{t.cachedPlaceHolder=t.currentPlaceholder=we,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Ae(()=>e.modelValue,(we,ze)=>{e.multiple&&(B(),we&&we.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",k(t.query))),j(),e.filterable&&!e.multiple&&(t.inputLength=20),!to(we,ze)&&e.validateEvent&&(_==null||_.validate("change").catch(pt=>void 0))},{flush:"post",deep:!0}),Ae(()=>t.visible,we=>{var ze,pt,lr,ba,Re;we?((pt=(ze=l.value)==null?void 0:ze.updatePopper)==null||pt.call(ze),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(ba=(lr=s.value)==null?void 0:lr.focus)==null||ba.call(lr),e.multiple?(Re=o.value)==null||Re.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),k(t.query),!e.multiple&&!e.remote&&(v.value.query="",gm(v),gm(p)))):(e.filterable&&(dt(e.filterMethod)&&e.filterMethod(""),dt(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,Q(),qe(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),r.emit("visible-change",we)}),Ae(()=>t.options.entries(),()=>{var we,ze,pt;if(!ur)return;(ze=(we=l.value)==null?void 0:we.updatePopper)==null||ze.call(we),e.multiple&&B();const lr=((pt=f.value)==null?void 0:pt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!oa(e.modelValue)||!Array.from(lr).includes(document.activeElement))&&j(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&$()},{flush:"post"}),Ae(()=>t.hoverIndex,we=>{ct(we)&&we>-1?h.value=D.value[we]||{}:h.value={},D.value.forEach(ze=>{ze.hover=h.value===ze})});const B=()=>{qe(()=>{var we,ze;if(!i.value)return;const pt=i.value.$el.querySelector("input");m=m||(pt.clientHeight>0?pt.clientHeight+2:0);const lr=c.value,ba=getComputedStyle(pt).getPropertyValue(a.cssVarName("input-height")),Re=Number.parseFloat(ba)||$Ue(I.value||(y==null?void 0:y.size)),ft=I.value||Re===m||m<=0?Re:m;!(pt.offsetParent===null)&&(pt.style.height=`${(t.selected.length===0?ft:Math.max(lr?lr.clientHeight+(lr.clientHeight>ft?6:0):0,ft))-2}px`),t.visible&&E.value!==!1&&((ze=(we=l.value)==null?void 0:we.updatePopper)==null||ze.call(we))})},k=async we=>{if(!(t.previousQuery===we||t.isOnComposition)){if(t.previousQuery===null&&(dt(e.filterMethod)||dt(e.remoteMethod))){t.previousQuery=we;return}t.previousQuery=we,qe(()=>{var ze,pt;t.visible&&((pt=(ze=l.value)==null?void 0:ze.updatePopper)==null||pt.call(ze))}),t.hoverIndex=-1,e.multiple&&e.filterable&&qe(()=>{if(!x.value){const ze=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,ze):ze,z()}B()}),e.remote&&dt(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(we)):dt(e.filterMethod)?(e.filterMethod(we),gm(p)):(t.filteredOptionsCount=t.optionsCount,v.value.query=we,gm(v),gm(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await qe(),$())}},z=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},$=()=>{const we=D.value.filter(lr=>lr.visible&&!lr.disabled&&!lr.states.groupDisabled),ze=we.find(lr=>lr.created),pt=we[0];t.hoverIndex=_e(D.value,ze||pt)},j=()=>{var we;if(e.multiple)t.selectedLabel="";else{const pt=X(e.modelValue);(we=pt.props)!=null&&we.created?(t.createdLabel=pt.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=pt.currentLabel,t.selected=pt,e.filterable&&(t.query=t.selectedLabel);return}const ze=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(pt=>{ze.push(X(pt))}),t.selected=ze,qe(()=>{B()})},X=we=>{let ze;const pt=Ow(we).toLowerCase()==="object",lr=Ow(we).toLowerCase()==="null",ba=Ow(we).toLowerCase()==="undefined";for(let Yt=t.cachedOptions.size-1;Yt>=0;Yt--){const gr=P.value[Yt];if(pt?gn(gr.value,e.valueKey)===gn(we,e.valueKey):gr.value===we){ze={value:we,currentLabel:gr.currentLabel,isDisabled:gr.isDisabled};break}}if(ze)return ze;const Re=pt?we.label:!lr&&!ba?we:"",ft={value:we,currentLabel:Re};return e.multiple&&(ft.hitState=!1),ft},Q=()=>{setTimeout(()=>{const we=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(ze=>D.value.findIndex(pt=>gn(pt,we)===gn(ze,we)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(ze=>Me(ze)===Me(t.selected))},300)},se=()=>{var we,ze;ee(),(ze=(we=l.value)==null?void 0:we.updatePopper)==null||ze.call(we),e.multiple&&B()},ee=()=>{var we;t.inputWidth=(we=i.value)==null?void 0:we.$el.offsetWidth},K=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,k(t.query))},Z=Ni(()=>{K()},M.value),ne=Ni(we=>{k(we.target.value)},M.value),re=we=>{to(e.modelValue,we)||r.emit(ln,we)},ie=we=>lGe(we,ze=>!t.disabledOptions.has(ze)),Y=we=>{if(we.code!==Qe.delete){if(we.target.value.length<=0&&!Ve()){const ze=e.modelValue.slice(),pt=ie(ze);if(pt<0)return;ze.splice(pt,1),r.emit(Nt,ze),re(ze)}we.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},q=(we,ze)=>{const pt=t.selected.indexOf(ze);if(pt>-1&&!x.value){const lr=e.modelValue.slice();lr.splice(pt,1),r.emit(Nt,lr),re(lr),r.emit("remove-tag",ze.value)}we.stopPropagation(),Ue()},oe=we=>{we.stopPropagation();const ze=e.multiple?[]:"";if(!wt(ze))for(const pt of t.selected)pt.isDisabled&&ze.push(pt.value);r.emit(Nt,ze),re(ze),t.hoverIndex=-1,t.visible=!1,r.emit("clear"),Ue()},ve=we=>{var ze;if(e.multiple){const pt=(e.modelValue||[]).slice(),lr=_e(pt,we.value);lr>-1?pt.splice(lr,1):(e.multipleLimit<=0||pt.length<e.multipleLimit)&&pt.push(we.value),r.emit(Nt,pt),re(pt),we.created&&(t.query="",k(""),t.inputLength=20),e.filterable&&((ze=o.value)==null||ze.focus())}else r.emit(Nt,we.value),re(we.value),t.visible=!1;ge(),!t.visible&&qe(()=>{Le(we)})},_e=(we=[],ze)=>{if(!Vt(ze))return we.indexOf(ze);const pt=e.valueKey;let lr=-1;return we.some((ba,Re)=>Er(gn(ba,pt))===gn(ze,pt)?(lr=Re,!0):!1),lr},ge=()=>{const we=o.value||i.value;we&&(we==null||we.focus())},Le=we=>{var ze,pt,lr,ba,Re;const ft=Array.isArray(we)?we[0]:we;let Yt=null;if(ft!=null&&ft.value){const gr=D.value.filter(ka=>ka.value===ft.value);gr.length>0&&(Yt=gr[0].$el)}if(l.value&&Yt){const gr=(ba=(lr=(pt=(ze=l.value)==null?void 0:ze.popperRef)==null?void 0:pt.contentRef)==null?void 0:lr.querySelector)==null?void 0:ba.call(lr,`.${a.be("dropdown","wrap")}`);gr&&Lee(gr,Yt)}(Re=d.value)==null||Re.handleScroll()},Se=we=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(we.value,we),t.cachedOptions.set(we.value,we),we.disabled&&t.disabledOptions.set(we.value,we)},xe=(we,ze)=>{t.options.get(we)===ze&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(we))},Te=we=>{we.code!==Qe.backspace&&Ve(!1),t.inputLength=o.value.value.length*15+20,B()},Ve=we=>{if(!Array.isArray(t.selected))return;const ze=ie(t.selected.map(lr=>lr.value)),pt=t.selected[ze];if(pt)return we===!0||we===!1?(pt.hitState=we,we):(pt.hitState=!pt.hitState,pt.hitState)},He=we=>{const ze=we.target.value;if(we.type==="compositionend")t.isOnComposition=!1,qe(()=>k(ze));else{const pt=ze[ze.length-1]||"";t.isOnComposition=!bT(pt)}},je=()=>{qe(()=>Le(t.selected))},Pe=we=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,r.emit("focus",we))},Ue=()=>{var we,ze;t.visible?(we=o.value||i.value)==null||we.focus():(ze=i.value)==null||ze.focus()},gt=()=>{var we,ze,pt;t.visible=!1,(we=i.value)==null||we.blur(),(pt=(ze=s.value)==null?void 0:ze.blur)==null||pt.call(ze)},At=we=>{var ze,pt,lr;(ze=l.value)!=null&&ze.isFocusInsideContent(we)||(pt=u.value)!=null&&pt.isFocusInsideContent(we)||(lr=f.value)!=null&&lr.contains(we.relatedTarget)||(t.visible&&tt(),t.focused=!1,r.emit("blur",we))},Gt=we=>{oe(we)},tt=()=>{t.visible=!1},be=we=>{t.visible&&(we.preventDefault(),we.stopPropagation(),t.visible=!1)},pe=we=>{we&&!t.mouseEnter||x.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),Ue())},de=()=>{t.visible?D.value[t.hoverIndex]&&ve(D.value[t.hoverIndex]):pe()},Me=we=>Vt(we.value)?gn(we.value,e.valueKey):we.value,ae=F(()=>D.value.filter(we=>we.visible).every(we=>we.disabled)),Ge=F(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),St=F(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),Kt=we=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!ae.value){we==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):we==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const ze=D.value[t.hoverIndex];(ze.disabled===!0||ze.states.groupDisabled===!0||!ze.visible)&&Kt(we),qe(()=>Le(h.value))}},Xn=()=>{t.mouseEnter=!0},An=()=>{t.mouseEnter=!1},Io=(we,ze)=>{var pt,lr;q(we,ze),(lr=(pt=u.value)==null?void 0:pt.updatePopper)==null||lr.call(pt)},Ya=F(()=>({maxWidth:`${b(t.inputWidth)-32-(C.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:D,hoverOption:h,selectSize:I,handleResize:se,debouncedOnInputChange:Z,debouncedQueryChange:ne,deletePrevTag:Y,deleteTag:q,deleteSelected:oe,handleOptionSelect:ve,scrollToOption:Le,readonly:w,resetInputHeight:B,showClose:S,iconComponent:T,iconReverse:A,showNewOption:L,collapseTagSize:O,setSelected:j,managePlaceholder:z,selectDisabled:x,emptyText:E,toggleLastOptionHitState:Ve,resetInputState:Te,handleComposition:He,onOptionCreate:Se,onOptionDestroy:xe,handleMenuEnter:je,handleFocus:Pe,focus:Ue,blur:gt,handleBlur:At,handleClearClick:Gt,handleClose:tt,handleKeydownEscape:be,toggleMenu:pe,selectOption:de,getValueKey:Me,navigateOptions:Kt,handleDeleteTooltipTag:Io,dropMenuVisible:R,queryChange:v,groupQueryChange:p,showTagList:Ge,collapseTagList:St,selectTagsStyle:Ya,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:Xn,handleMouseLeave:An}};var Xrt=te({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:r}){let n=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=t.default)==null?void 0:i.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,v,p;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!wt(f.children)&&!Array.isArray(f.children)&&dt((h=f.children)==null?void 0:h.default)?(v=f.children)==null?void 0:v.default():f.children):g==="ElOption"?l.push((p=f.props)==null?void 0:p.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,n)||(n=l,r("update-options",l)),s}}});const RU="ElSelect",Zrt=te({name:RU,componentName:RU,components:{ElInput:li,ElSelectMenu:Yrt,ElOption:B3,ElOptions:Xrt,ElTag:w_,ElScrollbar:ic,ElTooltip:Bi,ElIcon:Ze},directives:{ClickOutside:Df},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:r3},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:Va.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Zr,default:zf},fitInputWidth:Boolean,suffixIcon:{type:Zr,default:Vf},tagType:{...M3.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:dv,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Nt,ln,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=Ce("select"),n=Ce("input"),{t:a}=fr(),i=co(),o=jrt(e),{optionList:s,optionsArray:l,hoverOption:u,selectSize:c,readonly:f,handleResize:d,collapseTagSize:h,debouncedOnInputChange:v,debouncedQueryChange:p,deletePrevTag:g,deleteTag:m,deleteSelected:y,handleOptionSelect:_,scrollToOption:w,setSelected:x,resetInputHeight:S,managePlaceholder:T,showClose:A,selectDisabled:C,iconComponent:M,iconReverse:E,showNewOption:D,emptyText:P,toggleLastOptionHitState:L,resetInputState:I,handleComposition:O,onOptionCreate:R,onOptionDestroy:B,handleMenuEnter:k,handleFocus:z,focus:$,blur:j,handleBlur:X,handleClearClick:Q,handleClose:se,handleKeydownEscape:ee,toggleMenu:K,selectOption:Z,getValueKey:ne,navigateOptions:re,handleDeleteTooltipTag:ie,dropMenuVisible:Y,reference:q,input:oe,iOSInput:ve,tooltipRef:_e,tagTooltipRef:ge,tags:Le,selectWrapper:Se,scrollbar:xe,queryChange:Te,groupQueryChange:Ve,handleMouseEnter:He,handleMouseLeave:je,showTagList:Pe,collapseTagList:Ue,selectTagsStyle:gt}=Krt(e,o,t),{inputWidth:At,selected:Gt,inputLength:tt,filteredOptionsCount:be,visible:pe,selectedLabel:de,hoverIndex:Me,query:ae,inputHovering:Ge,currentPlaceholder:St,menuVisibleOnFocus:Kt,isOnComposition:Xn,options:An,cachedOptions:Io,optionsCount:Ya,prefixWidth:we}=Da(o),ze=F(()=>{const Na=[r.b()],Kf=b(c);return Kf&&Na.push(r.m(Kf)),e.disabled&&Na.push(r.m("disabled")),Na}),pt=F(()=>[r.e("tags"),r.is("disabled",b(C))]),lr=F(()=>[r.b("tags-wrapper"),{"has-prefix":b(we)&&b(Gt).length}]),ba=F(()=>[r.e("input"),r.is(b(c)),r.is("disabled",b(C))]),Re=F(()=>[r.e("input"),r.is(b(c)),r.em("input","iOS")]),ft=F(()=>[r.is("empty",!e.allowCreate&&!!b(ae)&&b(be)===0)]),Yt=F(()=>({maxWidth:`${b(At)>123&&b(Gt).length>e.maxCollapseTags?b(At)-123:b(At)-75}px`})),gr=F(()=>({marginLeft:`${b(we)}px`,flexGrow:1,width:`${b(tt)/(b(At)-32)}%`,maxWidth:`${b(At)-42}px`}));Wt(k1,Ar({props:e,options:An,optionsArray:l,cachedOptions:Io,optionsCount:Ya,filteredOptionsCount:be,hoverIndex:Me,handleOptionSelect:_,onOptionCreate:R,onOptionDestroy:B,selectWrapper:Se,selected:Gt,setSelected:x,queryChange:Te,groupQueryChange:Ve})),xt(()=>{o.cachedPlaceHolder=St.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(St.value=""),di(Se,d),e.remote&&e.multiple&&S(),qe(()=>{const Na=q.value&&q.value.$el;if(Na&&(At.value=Na.getBoundingClientRect().width,t.slots.prefix)){const Kf=Na.querySelector(`.${n.e("prefix")}`);we.value=Math.max(Kf.getBoundingClientRect().width+11,30)}}),x()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Nt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Nt,"");const ka=F(()=>{var Na,Kf;return(Kf=(Na=_e.value)==null?void 0:Na.popperRef)==null?void 0:Kf.contentRef});return{isIOS:VJ,onOptionsRendered:Na=>{s.value=Na},prefixWidth:we,selectSize:c,readonly:f,handleResize:d,collapseTagSize:h,debouncedOnInputChange:v,debouncedQueryChange:p,deletePrevTag:g,deleteTag:m,handleDeleteTooltipTag:ie,deleteSelected:y,handleOptionSelect:_,scrollToOption:w,inputWidth:At,selected:Gt,inputLength:tt,filteredOptionsCount:be,visible:pe,selectedLabel:de,hoverIndex:Me,query:ae,inputHovering:Ge,currentPlaceholder:St,menuVisibleOnFocus:Kt,isOnComposition:Xn,options:An,resetInputHeight:S,managePlaceholder:T,showClose:A,selectDisabled:C,iconComponent:M,iconReverse:E,showNewOption:D,emptyText:P,toggleLastOptionHitState:L,resetInputState:I,handleComposition:O,handleMenuEnter:k,handleFocus:z,focus:$,blur:j,handleBlur:X,handleClearClick:Q,handleClose:se,handleKeydownEscape:ee,toggleMenu:K,selectOption:Z,getValueKey:ne,navigateOptions:re,dropMenuVisible:Y,reference:q,input:oe,iOSInput:ve,tooltipRef:_e,popperPaneRef:ka,tags:Le,selectWrapper:Se,scrollbar:xe,wrapperKls:ze,tagsKls:pt,tagWrapperKls:lr,inputKls:ba,iOSInputKls:Re,scrollbarKls:ft,selectTagsStyle:gt,nsSelect:r,tagTextStyle:Yt,inputStyle:gr,handleMouseEnter:He,handleMouseLeave:je,showTagList:Pe,collapseTagList:Ue,tagTooltipRef:ge,contentId:i,hoverOption:u}}}),qrt=["disabled","autocomplete","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Qrt=["disabled"],Jrt={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function ent(e,t,r,n,a,i){const o=bt("el-tag"),s=bt("el-tooltip"),l=bt("el-icon"),u=bt("el-input"),c=bt("el-option"),f=bt("el-options"),d=bt("el-scrollbar"),h=bt("el-select-menu"),v=_0("click-outside");return Ct((N(),U("div",{ref:"selectWrapper",class:H(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...p)=>e.handleMouseEnter&&e.handleMouseEnter(...p)),onMouseleave:t[23]||(t[23]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p)),onClick:t[24]||(t[24]=it((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[J(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:le(()=>{var p,g;return[V("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=m=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=m=>e.inputHovering=!1)},[e.multiple?(N(),U("div",{key:0,ref:"tags",tabindex:"-1",class:H(e.tagsKls),style:Xe(e.selectTagsStyle),onClick:t[15]||(t[15]=(...m)=>e.focus&&e.focus(...m))},[e.collapseTags&&e.selected.length?(N(),he(Yn,{key:0,onAfterLeave:e.resetInputHeight},{default:le(()=>[V("span",{class:H(e.tagWrapperKls)},[(N(!0),U(Be,null,ht(e.showTagList,m=>(N(),he(o,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text")),style:Xe(e.tagTextStyle)},me(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(N(),he(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:le(()=>[e.collapseTagsTooltip?(N(),he(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text"))},"+ "+me(e.selected.length-e.maxCollapseTags),3)]),content:le(()=>[V("div",{class:H(e.nsSelect.e("collapse-tags"))},[(N(!0),U(Be,null,ht(e.collapseTagList,m=>(N(),U("div",{key:e.getValueKey(m),class:H(e.nsSelect.e("collapse-tag"))},[J(o,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.handleDeleteTooltipTag(y,m)},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},me(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(N(),U("span",{key:1,class:H(e.nsSelect.e("tags-text"))},"+ "+me(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ce("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ce("v-if",!0),e.collapseTags?ce("v-if",!0):(N(),he(Yn,{key:1,onAfterLeave:e.resetInputHeight},{default:le(()=>[V("span",{class:H(e.tagWrapperKls),style:Xe(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(N(!0),U(Be,null,ht(e.selected,m=>(N(),he(o,{key:e.getValueKey(m),closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,hit:m.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:le(()=>[V("span",{class:H(e.nsSelect.e("tags-text")),style:Xe({maxWidth:e.inputWidth-75+"px"})},me(m.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?Ct((N(),U("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=m=>e.query=m),type:"text",class:H(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Xe(e.inputStyle),role:"combobox","aria-activedescendant":((p=e.hoverOption)==null?void 0:p.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[2]||(t[2]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeyup:t[3]||(t[3]=(...m)=>e.managePlaceholder&&e.managePlaceholder(...m)),onKeydown:[t[4]||(t[4]=(...m)=>e.resetInputState&&e.resetInputState(...m)),t[5]||(t[5]=dr(it(m=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=dr(it(m=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=dr((...m)=>e.handleKeydownEscape&&e.handleKeydownEscape(...m),["esc"])),t[8]||(t[8]=dr(it((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[9]||(t[9]=dr((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["delete"])),t[10]||(t[10]=dr(m=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionupdate:t[12]||(t[12]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onCompositionend:t[13]||(t[13]=(...m)=>e.handleComposition&&e.handleComposition(...m)),onInput:t[14]||(t[14]=(...m)=>e.debouncedQueryChange&&e.debouncedQueryChange(...m))},null,46,qrt)),[[VR,e.query]]):ce("v-if",!0)],6)):ce("v-if",!0),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(N(),U("input",{key:1,ref:"iOSInput",class:H(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,Qrt)):ce("v-if",!0),J(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=m=>e.selectedLabel=m),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:H([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,role:"combobox","aria-activedescendant":((g=e.hoverOption)==null?void 0:g.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,label:e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=dr(it(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=dr(it(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),dr(it(e.selectOption,["stop","prevent"]),["enter"]),dr(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=dr(m=>e.visible=!1,["tab"]))]},Bl({suffix:le(()=>[e.iconComponent&&!e.showClose?(N(),he(l,{key:0,class:H([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),e.showClose&&e.clearIcon?(N(),he(l,{key:1,class:H([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:le(()=>[(N(),he(Ft(e.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:le(()=>[V("div",Jrt,[ye(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","aria-activedescendant","aria-controls","aria-expanded","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]}),content:le(()=>[J(h,null,Bl({default:le(()=>[Ct(J(d,{id:e.contentId,ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:H(e.scrollbarKls),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:le(()=>[e.showNewOption?(N(),he(c,{key:0,value:e.query,created:!0},null,8,["value"])):ce("v-if",!0),J(f,{onUpdateOptions:e.onOptionsRendered},{default:le(()=>[ye(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[hr,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(N(),U(Be,{key:0},[e.$slots.empty?ye(e.$slots,"empty",{key:0}):(N(),U("p",{key:1,class:H(e.nsSelect.be("dropdown","empty"))},me(e.emptyText),3))],64)):ce("v-if",!0)]),_:2},[e.$slots.header?{name:"header",fn:le(()=>[ye(e.$slots,"header")])}:void 0,e.$slots.footer?{name:"footer",fn:le(()=>[ye(e.$slots,"footer")])}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var tnt=ke(Zrt,[["render",ent],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const rnt=te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ce("select"),r=G(!0),n=It(),a=G([]);Wt(bne,Ar({...Da(e)}));const i=Ye(k1);xt(()=>{a.value=o(n.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}=Er(i);return Ae(s,()=>{r.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:r,ns:t}}});function nnt(e,t,r,n,a,i){return Ct((N(),U("ul",{class:H(e.ns.be("group","wrap"))},[V("li",{class:H(e.ns.be("group","title"))},me(e.label),3),V("li",null,[V("ul",{class:H(e.ns.b("group"))},[ye(e.$slots,"default")],2)])],2)),[[hr,e.visible]])}var wne=ke(rnt,[["render",nnt],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Kh=kt(tnt,{Option:B3,OptionGroup:wne}),v2=Pn(B3),ant=Pn(wne),F3=()=>Ye(_ne,{}),int=Oe({pageSize:{type:Number,required:!0},pageSizes:{type:fe(Array),default:()=>mn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:tu}}),ont=te({name:"ElPaginationSizes"}),snt=te({...ont,props:int,emits:["page-size-change"],setup(e,{emit:t}){const r=e,{t:n}=fr(),a=Ce("pagination"),i=F3(),o=G(r.pageSize);Ae(()=>r.pageSizes,(u,c)=>{if(!to(u,c)&&Array.isArray(u)){const f=u.includes(r.pageSize)?r.pageSize:r.pageSizes[0];t("page-size-change",f)}}),Ae(()=>r.pageSize,u=>{o.value=u});const s=F(()=>r.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(N(),U("span",{class:H(b(a).e("sizes"))},[J(b(Kh),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:le(()=>[(N(!0),U(Be,null,ht(b(s),f=>(N(),he(b(v2),{key:f,value:f,label:f+b(n)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var lnt=ke(snt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const unt=Oe({size:{type:String,values:tu}}),cnt=["disabled"],fnt=te({name:"ElPaginationJumper"}),dnt=te({...fnt,props:unt,setup(e){const{t}=fr(),r=Ce("pagination"),{pageCount:n,disabled:a,currentPage:i,changeEvent:o}=F3(),s=G(),l=F(()=>{var f;return(f=s.value)!=null?f:i==null?void 0:i.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),o==null||o(f),s.value=void 0}return(f,d)=>(N(),U("span",{class:H(b(r).e("jump")),disabled:b(a)},[V("span",{class:H([b(r).e("goto")])},me(b(t)("el.pagination.goto")),3),J(b(li),{size:f.size,class:H([b(r).e("editor"),b(r).is("in-pagination")]),min:1,max:b(n),disabled:b(a),"model-value":b(l),"validate-event":!1,label:b(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),V("span",{class:H([b(r).e("classifier")])},me(b(t)("el.pagination.pageClassifier")),3)],10,cnt))}});var hnt=ke(dnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const vnt=Oe({total:{type:Number,default:1e3}}),pnt=["disabled"],gnt=te({name:"ElPaginationTotal"}),mnt=te({...gnt,props:vnt,setup(e){const{t}=fr(),r=Ce("pagination"),{disabled:n}=F3();return(a,i)=>(N(),U("span",{class:H(b(r).e("total")),disabled:b(n)},me(b(t)("el.pagination.total",{total:a.total})),11,pnt))}});var ynt=ke(mnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const _nt=Oe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),bnt=["onKeyup"],wnt=["aria-current","aria-label","tabindex"],Snt=["tabindex","aria-label"],xnt=["aria-current","aria-label","tabindex"],Ant=["tabindex","aria-label"],Tnt=["aria-current","aria-label","tabindex"],Cnt=te({name:"ElPaginationPager"}),Ent=te({...Cnt,props:_nt,emits:["change"],setup(e,{emit:t}){const r=e,n=Ce("pager"),a=Ce("icon"),{t:i}=fr(),o=G(!1),s=G(!1),l=G(!1),u=G(!1),c=G(!1),f=G(!1),d=F(()=>{const w=r.pagerCount,x=(w-1)/2,S=Number(r.currentPage),T=Number(r.pageCount);let A=!1,C=!1;T>w&&(S>w-x&&(A=!0),S<T-x&&(C=!0));const M=[];if(A&&!C){const E=T-(w-2);for(let D=E;D<T;D++)M.push(D)}else if(!A&&C)for(let E=2;E<w;E++)M.push(E);else if(A&&C){const E=Math.floor(w/2)-1;for(let D=S-E;D<=S+E;D++)M.push(D)}else for(let E=2;E<T;E++)M.push(E);return M}),h=F(()=>["more","btn-quickprev",a.b(),n.is("disabled",r.disabled)]),v=F(()=>["more","btn-quicknext",a.b(),n.is("disabled",r.disabled)]),p=F(()=>r.disabled?-1:0);xo(()=>{const w=(r.pagerCount-1)/2;o.value=!1,s.value=!1,r.pageCount>r.pagerCount&&(r.currentPage>r.pagerCount-w&&(o.value=!0),r.currentPage<r.pageCount-w&&(s.value=!0))});function g(w=!1){r.disabled||(w?l.value=!0:u.value=!0)}function m(w=!1){w?c.value=!0:f.value=!0}function y(w){const x=w.target;if(x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("number")){const S=Number(x.textContent);S!==r.currentPage&&t("change",S)}else x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("more")&&_(w)}function _(w){const x=w.target;if(x.tagName.toLowerCase()==="ul"||r.disabled)return;let S=Number(x.textContent);const T=r.pageCount,A=r.currentPage,C=r.pagerCount-2;x.className.includes("more")&&(x.className.includes("quickprev")?S=A-C:x.className.includes("quicknext")&&(S=A+C)),Number.isNaN(+S)||(S<1&&(S=1),S>T&&(S=T)),S!==A&&t("change",S)}return(w,x)=>(N(),U("ul",{class:H(b(n).b()),onClick:_,onKeyup:dr(y,["enter"])},[w.pageCount>0?(N(),U("li",{key:0,class:H([[b(n).is("active",w.currentPage===1),b(n).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":b(i)("el.pagination.currentPage",{pager:1}),tabindex:b(p)}," 1 ",10,wnt)):ce("v-if",!0),o.value?(N(),U("li",{key:1,class:H(b(h)),tabindex:b(p),"aria-label":b(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:x[0]||(x[0]=S=>g(!0)),onMouseleave:x[1]||(x[1]=S=>l.value=!1),onFocus:x[2]||(x[2]=S=>m(!0)),onBlur:x[3]||(x[3]=S=>c.value=!1)},[(l.value||c.value)&&!w.disabled?(N(),he(b(lg),{key:0})):(N(),he(b(xG),{key:1}))],42,Snt)):ce("v-if",!0),(N(!0),U(Be,null,ht(b(d),S=>(N(),U("li",{key:S,class:H([[b(n).is("active",w.currentPage===S),b(n).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===S,"aria-label":b(i)("el.pagination.currentPage",{pager:S}),tabindex:b(p)},me(S),11,xnt))),128)),s.value?(N(),U("li",{key:2,class:H(b(v)),tabindex:b(p),"aria-label":b(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:x[4]||(x[4]=S=>g()),onMouseleave:x[5]||(x[5]=S=>u.value=!1),onFocus:x[6]||(x[6]=S=>m()),onBlur:x[7]||(x[7]=S=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(N(),he(b(ug),{key:0})):(N(),he(b(xG),{key:1}))],42,Ant)):ce("v-if",!0),w.pageCount>1?(N(),U("li",{key:3,class:H([[b(n).is("active",w.currentPage===w.pageCount),b(n).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":b(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:b(p)},me(w.pageCount),11,Tnt)):ce("v-if",!0)],42,bnt))}});var Mnt=ke(Ent,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const yi=e=>typeof e!="number",Dnt=Oe({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>ct(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:fe(Array),default:()=>mn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Zr,default:()=>Tf},nextText:{type:String,default:""},nextIcon:{type:Zr,default:()=>Mi},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Pnt={"update:current-page":e=>ct(e),"update:page-size":e=>ct(e),"size-change":e=>ct(e),"current-change":e=>ct(e),"prev-click":e=>ct(e),"next-click":e=>ct(e)},OU="ElPagination";var Lnt=te({name:OU,props:Dnt,emits:Pnt,setup(e,{emit:t,slots:r}){const{t:n}=fr(),a=Ce("pagination"),i=It().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=F(()=>{if(yi(e.total)&&yi(e.pageCount)||!yi(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(yi(e.pageCount)){if(!yi(e.total)&&!yi(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=G(yi(e.defaultPageSize)?10:e.defaultPageSize),c=G(yi(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=F({get(){return yi(e.pageSize)?u.value:e.pageSize},set(_){yi(e.pageSize)&&(u.value=_),s&&(t("update:page-size",_),t("size-change",_))}}),d=F(()=>{let _=0;return yi(e.pageCount)?yi(e.total)||(_=Math.max(1,Math.ceil(e.total/f.value))):_=e.pageCount,_}),h=F({get(){return yi(e.currentPage)?c.value:e.currentPage},set(_){let w=_;_<1?w=1:_>d.value&&(w=d.value),yi(e.currentPage)&&(c.value=w),o&&(t("update:current-page",w),t("current-change",w))}});Ae(d,_=>{h.value>_&&(h.value=_)});function v(_){h.value=_}function p(_){f.value=_;const w=d.value;h.value>w&&(h.value=w)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function m(){e.disabled||(h.value+=1,t("next-click",h.value))}function y(_,w){_&&(_.props||(_.props={}),_.props.class=[_.props.class,w].join(" "))}return Wt(_ne,{pageCount:d,disabled:F(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var _,w;if(!l.value)return n("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const x=[],S=[],T=et("div",{class:a.e("rightwrapper")},S),A={prev:et(Rrt,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:et(hnt,{size:e.small?"small":"default"}),pager:et(Mnt,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:et(Vrt,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:et(lnt,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(w=(_=r==null?void 0:r.default)==null?void 0:_.call(r))!=null?w:null,total:et(ynt,{total:yi(e.total)?0:e.total})},C=e.layout.split(",").map(E=>E.trim());let M=!1;return C.forEach(E=>{if(E==="->"){M=!0;return}M?S.push(A[E]):x.push(A[E])}),y(x[0],a.is("first")),y(x[x.length-1],a.is("last")),M&&S.length>0&&(y(S[0],a.is("first")),y(S[S.length-1],a.is("last")),x.push(T)),et("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},x)}}});const Int=kt(Lnt),Rnt=Oe({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:iI,default:"primary"},cancelButtonType:{type:String,values:iI,default:"text"},icon:{type:Zr,default:()=>mUe},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Va.teleported,persistent:Va.persistent,width:{type:[String,Number],default:150}}),Ont={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},knt=te({name:"ElPopconfirm"}),Nnt=te({...knt,props:Rnt,emits:Ont,setup(e,{emit:t}){const r=e,{t:n}=fr(),a=Ce("popconfirm"),i=G(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=F(()=>({width:Hn(r.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=F(()=>r.confirmButtonText||n("el.popconfirm.confirmButtonText")),f=F(()=>r.cancelButtonText||n("el.popconfirm.cancelButtonText"));return(d,h)=>(N(),he(b(Bi),Ut({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${b(a).namespace.value}-popover`,"popper-style":b(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:le(()=>[V("div",{class:H(b(a).b())},[V("div",{class:H(b(a).e("main"))},[!d.hideIcon&&d.icon?(N(),he(b(Ze),{key:0,class:H(b(a).e("icon")),style:Xe({color:d.iconColor})},{default:le(()=>[(N(),he(Ft(d.icon)))]),_:1},8,["class","style"])):ce("v-if",!0),nr(" "+me(d.title),1)],2),V("div",{class:H(b(a).e("action"))},[J(b(Ja),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:le(()=>[nr(me(b(f)),1)]),_:1},8,["type","text"]),J(b(Ja),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:le(()=>[nr(me(b(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:le(()=>[d.$slots.reference?ye(d.$slots,"reference",{key:0}):ce("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Bnt=ke(Nnt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const Fnt=kt(Bnt),Vnt=Oe({trigger:b_.trigger,placement:TS.placement,disabled:b_.disabled,visible:Va.visible,transition:Va.transition,popperOptions:TS.popperOptions,tabindex:TS.tabindex,content:Va.content,popperStyle:Va.popperStyle,popperClass:Va.popperClass,enterable:{...Va.enterable,default:!0},effect:{...Va.effect,default:"light"},teleported:Va.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}}),znt={"update:visible":e=>la(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Hnt="onUpdate:visible",Gnt=te({name:"ElPopover"}),Unt=te({...Gnt,props:Vnt,emits:znt,setup(e,{expose:t,emit:r}){const n=e,a=F(()=>n[Hnt]),i=Ce("popover"),o=G(),s=F(()=>{var g;return(g=b(o))==null?void 0:g.popperRef}),l=F(()=>[{width:Hn(n.width)},n.popperStyle]),u=F(()=>[i.b(),n.popperClass,{[i.m("plain")]:!!n.content}]),c=F(()=>n.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{r("before-enter")},h=()=>{r("before-leave")},v=()=>{r("after-enter")},p=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(N(),he(b(Bi),Ut({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":b(u),"popper-style":b(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":b(c),"onUpdate:visible":b(a),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:le(()=>[g.title?(N(),U("div",{key:0,class:H(b(i).e("title")),role:"title"},me(g.title),3)):ce("v-if",!0),ye(g.$slots,"default",{},()=>[nr(me(g.content),1)])]),default:le(()=>[g.$slots.reference?ye(g.$slots,"reference",{key:0}):ce("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 $nt=ke(Unt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const kU=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var Wnt={mounted(e,t){kU(e,t)},updated(e,t){kU(e,t)}};const Ynt="popover",Sne=HUe(Wnt,Ynt),jnt=kt($nt,{directive:Sne}),Knt=Oe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:fe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:fe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:fe(Function),default:e=>`${e}%`}}),Xnt=["aria-valuenow"],Znt={viewBox:"0 0 100 100"},qnt=["d","stroke","stroke-linecap","stroke-width"],Qnt=["d","stroke","opacity","stroke-linecap","stroke-width"],Jnt={key:0},eat=te({name:"ElProgress"}),tat=te({...eat,props:Knt,setup(e){const t=e,r={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=Ce("progress"),a=F(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:y(t.percentage)})),i=F(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=F(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=F(()=>{const _=o.value,w=t.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${w?"":"-"}${_}
|
||
a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2}
|
||
a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2}
|
||
`}),l=F(()=>2*Math.PI*o.value),u=F(()=>t.type==="dashboard"?.75:1),c=F(()=>`${-1*l.value*(1-u.value)/2}px`),f=F(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=F(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=F(()=>{let _;return t.color?_=y(t.percentage):_=r[t.status]||r.default,_}),v=F(()=>t.status==="warning"?yT:t.type==="line"?t.status==="success"?qN:zf:t.status==="success"?P1:el),p=F(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=F(()=>t.format(t.percentage));function m(_){const w=100/_.length;return _.map((S,T)=>wt(S)?{color:S,percentage:(T+1)*w}:S).sort((S,T)=>S.percentage-T.percentage)}const y=_=>{var w;const{color:x}=t;if(dt(x))return x(_);if(wt(x))return x;{const S=m(x);for(const T of S)if(T.percentage>_)return T.color;return(w=S[S.length-1])==null?void 0:w.color}};return(_,w)=>(N(),U("div",{class:H([b(n).b(),b(n).m(_.type),b(n).is(_.status),{[b(n).m("without-text")]:!_.showText,[b(n).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(N(),U("div",{key:0,class:H(b(n).b("bar"))},[V("div",{class:H(b(n).be("bar","outer")),style:Xe({height:`${_.strokeWidth}px`})},[V("div",{class:H([b(n).be("bar","inner"),{[b(n).bem("bar","inner","indeterminate")]:_.indeterminate},{[b(n).bem("bar","inner","striped")]:_.striped},{[b(n).bem("bar","inner","striped-flow")]:_.stripedFlow}]),style:Xe(b(a))},[(_.showText||_.$slots.default)&&_.textInside?(N(),U("div",{key:0,class:H(b(n).be("bar","innerText"))},[ye(_.$slots,"default",{percentage:_.percentage},()=>[V("span",null,me(b(g)),1)])],2)):ce("v-if",!0)],6)],6)],2)):(N(),U("div",{key:1,class:H(b(n).b("circle")),style:Xe({height:`${_.width}px`,width:`${_.width}px`})},[(N(),U("svg",Znt,[V("path",{class:H(b(n).be("circle","track")),d:b(s),stroke:`var(${b(n).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":_.strokeLinecap,"stroke-width":b(i),fill:"none",style:Xe(b(f))},null,14,qnt),V("path",{class:H(b(n).be("circle","path")),d:b(s),stroke:b(h),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":b(i),style:Xe(b(d))},null,14,Qnt)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(N(),U("div",{key:2,class:H(b(n).e("text")),style:Xe({fontSize:`${b(p)}px`})},[ye(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(b(v))))]),_:1})):(N(),U("span",Jnt,me(b(g)),1))])],6)):ce("v-if",!0)],10,Xnt))}});var rat=ke(tat,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const xne=kt(rat),nat=Oe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:fe([Array,Object]),default:()=>mn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:fe([Array,Object]),default:()=>[iw,iw,iw]},voidIcon:{type:Zr,default:()=>IUe},disabledVoidIcon:{type:Zr,default:()=>iw},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:fe(Array),default:()=>mn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Ga,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),aat={[ln]:e=>ct(e),[Nt]:e=>ct(e)},iat=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],oat=["onMousemove","onClick"],sat=te({name:"ElRate"}),lat=te({...sat,props:nat,emits:aat,setup(e,{expose:t,emit:r}){const n=e;function a(O,R){const B=$=>Vt($),k=Object.keys(R).map($=>+$).filter($=>{const j=R[$];return(B(j)?j.excluded:!1)?O<$:O<=$}).sort(($,j)=>$-j),z=R[k[0]];return B(z)&&z.value||z}const i=Ye(hv,void 0),o=Ye(Yl,void 0),s=ca(),l=Ce("rate"),{inputId:u,isLabeledByFormItem:c}=$f(n,{formItemContext:o}),f=G(n.modelValue),d=G(-1),h=G(!0),v=F(()=>[l.b(),l.m(s.value)]),p=F(()=>n.disabled||(i==null?void 0:i.disabled)),g=F(()=>l.cssVarBlock({"void-color":n.voidColor,"disabled-void-color":n.disabledVoidColor,"fill-color":w.value})),m=F(()=>{let O="";return n.showScore?O=n.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${n.modelValue}`:`${f.value}`):n.showText&&(O=n.texts[Math.ceil(f.value)-1]),O}),y=F(()=>n.modelValue*100-Math.floor(n.modelValue)*100),_=F(()=>We(n.colors)?{[n.lowThreshold]:n.colors[0],[n.highThreshold]:{value:n.colors[1],excluded:!0},[n.max]:n.colors[2]}:n.colors),w=F(()=>{const O=a(f.value,_.value);return Vt(O)?"":O}),x=F(()=>{let O="";return p.value?O=`${y.value}%`:n.allowHalf&&(O="50%"),{color:w.value,width:O}}),S=F(()=>{let O=We(n.icons)?[...n.icons]:{...n.icons};return O=gh(O),We(O)?{[n.lowThreshold]:O[0],[n.highThreshold]:{value:O[1],excluded:!0},[n.max]:O[2]}:O}),T=F(()=>a(n.modelValue,S.value)),A=F(()=>p.value?wt(n.disabledVoidIcon)?n.disabledVoidIcon:gh(n.disabledVoidIcon):wt(n.voidIcon)?n.voidIcon:gh(n.voidIcon)),C=F(()=>a(f.value,S.value));function M(O){const R=p.value&&y.value>0&&O-1<n.modelValue&&O>n.modelValue,B=n.allowHalf&&h.value&&O-.5<=f.value&&O>f.value;return R||B}function E(O){n.clearable&&O===n.modelValue&&(O=0),r(Nt,O),n.modelValue!==O&&r("change",O)}function D(O){p.value||(n.allowHalf&&h.value?E(f.value):E(O))}function P(O){if(p.value)return;let R=f.value;const B=O.code;return B===Qe.up||B===Qe.right?(n.allowHalf?R+=.5:R+=1,O.stopPropagation(),O.preventDefault()):(B===Qe.left||B===Qe.down)&&(n.allowHalf?R-=.5:R-=1,O.stopPropagation(),O.preventDefault()),R=R<0?0:R,R=R>n.max?n.max:R,r(Nt,R),r("change",R),R}function L(O,R){if(!p.value){if(n.allowHalf&&R){let B=R.target;Ws(B,l.e("item"))&&(B=B.querySelector(`.${l.e("icon")}`)),(B.clientWidth===0||Ws(B,l.e("decimal")))&&(B=B.parentNode),h.value=R.offsetX*2<=B.clientWidth,f.value=h.value?O-.5:O}else f.value=O;d.value=O}}function I(){p.value||(n.allowHalf&&(h.value=n.modelValue!==Math.floor(n.modelValue)),f.value=n.modelValue,d.value=-1)}return Ae(()=>n.modelValue,O=>{f.value=O,h.value=n.modelValue!==Math.floor(n.modelValue)}),n.modelValue||r(Nt,0),t({setCurrentValue:L,resetCurrentValue:I}),(O,R)=>{var B;return N(),U("div",{id:b(u),class:H([b(v),b(l).is("disabled",b(p))]),role:"slider","aria-label":b(c)?void 0:O.label||"rating","aria-labelledby":b(c)?(B=b(o))==null?void 0:B.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":b(m)||void 0,"aria-valuemin":"0","aria-valuemax":O.max,tabindex:"0",style:Xe(b(g)),onKeydown:P},[(N(!0),U(Be,null,ht(O.max,(k,z)=>(N(),U("span",{key:z,class:H(b(l).e("item")),onMousemove:$=>L(k,$),onMouseleave:I,onClick:$=>D(k)},[J(b(Ze),{class:H([b(l).e("icon"),{hover:d.value===k},b(l).is("active",k<=f.value)])},{default:le(()=>[M(k)?ce("v-if",!0):(N(),U(Be,{key:0},[Ct((N(),he(Ft(b(C)),null,null,512)),[[hr,k<=f.value]]),Ct((N(),he(Ft(b(A)),null,null,512)),[[hr,!(k<=f.value)]])],64)),M(k)?(N(),U(Be,{key:1},[(N(),he(Ft(b(A)),{class:H([b(l).em("decimal","box")])},null,8,["class"])),J(b(Ze),{style:Xe(b(x)),class:H([b(l).e("icon"),b(l).e("decimal")])},{default:le(()=>[(N(),he(Ft(b(T))))]),_:1},8,["style","class"])],64)):ce("v-if",!0)]),_:2},1032,["class"])],42,oat))),128)),O.showText||O.showScore?(N(),U("span",{key:0,class:H(b(l).e("text")),style:Xe({color:O.textColor})},me(b(m)),7)):ce("v-if",!0)],46,iat)}}});var uat=ke(lat,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const cat=kt(uat),gp={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},NU={[gp.success]:$Ge,[gp.warning]:yT,[gp.error]:QN,[gp.info]:JN},fat=Oe({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),dat=te({name:"ElResult"}),hat=te({...dat,props:fat,setup(e){const t=e,r=Ce("result"),n=F(()=>{const a=t.icon,i=a&&gp[a]?gp[a]:"icon-info",o=NU[i]||NU["icon-info"];return{class:i,component:o}});return(a,i)=>(N(),U("div",{class:H(b(r).b())},[V("div",{class:H(b(r).e("icon"))},[ye(a.$slots,"icon",{},()=>[b(n).component?(N(),he(Ft(b(n).component),{key:0,class:H(b(n).class)},null,8,["class"])):ce("v-if",!0)])],2),a.title||a.$slots.title?(N(),U("div",{key:0,class:H(b(r).e("title"))},[ye(a.$slots,"title",{},()=>[V("p",null,me(a.title),1)])],2)):ce("v-if",!0),a.subTitle||a.$slots["sub-title"]?(N(),U("div",{key:1,class:H(b(r).e("subtitle"))},[ye(a.$slots,"sub-title",{},()=>[V("p",null,me(a.subTitle),1)])],2)):ce("v-if",!0),a.$slots.extra?(N(),U("div",{key:2,class:H(b(r).e("extra"))},[ye(a.$slots,"extra")],2)):ce("v-if",!0)],2))}});var vat=ke(hat,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const pat=kt(vat);var BU=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function gat(e,t){return!!(e===t||BU(e)&&BU(t))}function mat(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!gat(e[r],t[r]))return!1;return!0}function yat(e,t){t===void 0&&(t=mat);var r=null;function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(r&&r.lastThis===this&&t(a,r.lastArgs))return r.lastResult;var o=e.apply(this,a);return r={lastResult:o,lastArgs:a,lastThis:this},o}return n.clear=function(){r=null},n}const Ane=()=>{const t=It().proxy.$props;return F(()=>{const r=(n,a,i)=>({});return t.perfMode?vT(r):yat(r)})},CI=50,p2="itemRendered",g2="scroll",mp="forward",m2="backward",Jo="auto",RT="smart",x_="start",Ll="center",A_="end",mg="horizontal",V3="vertical",_at="ltr",Vp="rtl",T_="negative",z3="positive-ascending",H3="positive-descending",bat={[mg]:"left",[V3]:"top"},wat=20,Sat={[mg]:"deltaX",[V3]:"deltaY"},xat=({atEndEdge:e,atStartEdge:t,layout:r},n)=>{let a,i=0;const o=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:o,onWheel:l=>{wT(a);const u=l[Sat[r.value]];o(i)&&o(i+u)||(i+=u,UJ()||l.preventDefault(),a=cg(()=>{n(i),i=0}))}}},EI=sl({type:fe([Number,Function]),required:!0}),MI=sl({type:Number}),DI=sl({type:Number,default:2}),Aat=sl({type:String,values:["ltr","rtl"],default:"ltr"}),PI=sl({type:Number,default:0}),y2=sl({type:Number,required:!0}),Tne=sl({type:String,values:["horizontal","vertical"],default:V3}),Cne=Oe({className:{type:String,default:""},containerElement:{type:fe([String,Object]),default:"div"},data:{type:fe(Array),default:()=>mn([])},direction:Aat,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:fe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Ene=Oe({cache:DI,estimatedItemSize:MI,layout:Tne,initScrollOffset:PI,total:y2,itemSize:EI,...Cne}),LI={type:Number,default:6},Mne={type:Number,default:0},Dne={type:Number,default:2},Ph=Oe({columnCache:DI,columnWidth:EI,estimatedColumnWidth:MI,estimatedRowHeight:MI,initScrollLeft:PI,initScrollTop:PI,itemKey:{type:fe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:DI,rowHeight:EI,totalColumn:y2,totalRow:y2,hScrollbarSize:LI,vScrollbarSize:LI,scrollbarStartGap:Mne,scrollbarEndGap:Dne,role:String,...Cne}),Pne=Oe({alwaysOn:Boolean,class:String,layout:Tne,total:y2,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:LI,startGap:Mne,endGap:Dne,visible:Boolean}),lh=(e,t)=>e<t?mp:m2,C_=e=>e===_at||e===Vp||e===mg,FU=e=>e===Vp;let Gv=null;function _2(e=!1){if(Gv===null||e){const t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";const n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Gv=H3:(t.scrollLeft=1,t.scrollLeft===0?Gv=T_:Gv=z3),document.body.removeChild(t),Gv}return Gv}function Tat({move:e,size:t,bar:r},n){const a={},i=`translate${r.axis}(${e}px)`;return a[r.size]=t,a.transform=i,a.msTransform=i,a.webkitTransform=i,n==="horizontal"?a.height="100%":a.width="100%",a}const II=te({name:"ElVirtualScrollBar",props:Pne,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const r=F(()=>e.startGap+e.endGap),n=Ce("virtual-scrollbar"),a=Ce("scrollbar"),i=G(),o=G();let s=null,l=null;const u=Ar({isDragging:!1,traveled:0}),c=F(()=>Mte[e.layout]),f=F(()=>e.clientSize-b(r)),d=F(()=>({position:"absolute",width:`${mg===e.layout?f.value:e.scrollbarSize}px`,height:`${mg===e.layout?e.scrollbarSize:f.value}px`,[bat[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=F(()=>{const S=e.ratio,T=e.clientSize;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*T/100;const A=T/3;return Math.floor(Math.min(Math.max(S*T,wat),A))}),v=F(()=>{if(!Number.isFinite(h.value))return{display:"none"};const S=`${h.value}px`;return Tat({bar:c.value,size:S,move:u.traveled},e.layout)}),p=F(()=>Math.floor(e.clientSize-h.value-b(r))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",_);const S=b(o);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",w),S.addEventListener("touchend",_))},m=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const S=b(o);S&&(S.removeEventListener("touchmove",w),S.removeEventListener("touchend",_))},y=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[c.value.axis]=S.currentTarget[c.value.offset]-(S[c.value.client]-S.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},_=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},w=S=>{const{isDragging:T}=u;if(!T||!o.value||!i.value)return;const A=u[c.value.axis];if(!A)return;wT(s);const C=(i.value.getBoundingClientRect()[c.value.direction]-S[c.value.client])*-1,M=o.value[c.value.offset]-A,E=C-M;s=cg(()=>{u.traveled=Math.max(e.startGap,Math.min(E,p.value)),t("scroll",E,p.value)})},x=S=>{const T=Math.abs(S.target.getBoundingClientRect()[c.value.direction]-S[c.value.client]),A=o.value[c.value.offset]/2,C=T-A;u.traveled=Math.max(0,Math.min(C,p.value)),t("scroll",C,p.value)};return Ae(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*p.value))}),un(()=>{m()}),()=>et("div",{role:"presentation",ref:i,class:[n.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:it(x,["stop","prevent"]),onTouchstartPrevent:y},et("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:y},[]))}}),Lne=({name:e,getOffset:t,getItemSize:r,getItemOffset:n,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>te({name:e??"ElVirtualList",props:Ene,emits:[p2,g2],setup(c,{emit:f,expose:d}){u(c);const h=It(),v=Ce("vl"),p=G(s(c,h)),g=Ane(),m=G(),y=G(),_=G(),w=G({isScrolling:!1,scrollDir:"forward",scrollOffset:ct(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),x=F(()=>{const{total:X,cache:Q}=c,{isScrolling:se,scrollDir:ee,scrollOffset:K}=b(w);if(X===0)return[0,0,0,0];const Z=i(c,K,b(p)),ne=o(c,Z,K,b(p)),re=!se||ee===m2?Math.max(1,Q):1,ie=!se||ee===mp?Math.max(1,Q):1;return[Math.max(0,Z-re),Math.max(0,Math.min(X-1,ne+ie)),Z,ne]}),S=F(()=>a(c,b(p))),T=F(()=>C_(c.layout)),A=F(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:ct(c.height)?`${c.height}px`:c.height,width:ct(c.width)?`${c.width}px`:c.width},c.style]),C=F(()=>{const X=b(S),Q=b(T);return{height:Q?"100%":`${X}px`,pointerEvents:b(w).isScrolling?"none":void 0,width:Q?`${X}px`:"100%"}}),M=F(()=>T.value?c.width:c.height),{onWheel:E}=xat({atStartEdge:F(()=>w.value.scrollOffset<=0),atEndEdge:F(()=>w.value.scrollOffset>=S.value),layout:F(()=>c.layout)},X=>{var Q,se;(se=(Q=_.value).onMouseUp)==null||se.call(Q),R(Math.min(w.value.scrollOffset+X,S.value-M.value))}),D=()=>{const{total:X}=c;if(X>0){const[K,Z,ne,re]=b(x);f(p2,K,Z,ne,re)}const{scrollDir:Q,scrollOffset:se,updateRequested:ee}=b(w);f(g2,Q,se,ee)},P=X=>{const{clientHeight:Q,scrollHeight:se,scrollTop:ee}=X.currentTarget,K=b(w);if(K.scrollOffset===ee)return;const Z=Math.max(0,Math.min(ee,se-Q));w.value={...K,isScrolling:!0,scrollDir:lh(K.scrollOffset,Z),scrollOffset:Z,updateRequested:!1},qe(z)},L=X=>{const{clientWidth:Q,scrollLeft:se,scrollWidth:ee}=X.currentTarget,K=b(w);if(K.scrollOffset===se)return;const{direction:Z}=c;let ne=se;if(Z===Vp)switch(_2()){case T_:{ne=-se;break}case H3:{ne=ee-Q-se;break}}ne=Math.max(0,Math.min(ne,ee-Q)),w.value={...K,isScrolling:!0,scrollDir:lh(K.scrollOffset,ne),scrollOffset:ne,updateRequested:!1},qe(z)},I=X=>{b(T)?L(X):P(X),D()},O=(X,Q)=>{const se=(S.value-M.value)/Q*X;R(Math.min(S.value-M.value,se))},R=X=>{X=Math.max(X,0),X!==b(w).scrollOffset&&(w.value={...b(w),scrollOffset:X,scrollDir:lh(b(w).scrollOffset,X),updateRequested:!0},qe(z))},B=(X,Q=Jo)=>{const{scrollOffset:se}=b(w);X=Math.max(0,Math.min(X,c.total-1)),R(t(c,X,Q,se,b(p)))},k=X=>{const{direction:Q,itemSize:se,layout:ee}=c,K=g.value(l&&se,l&&ee,l&&Q);let Z;if(or(K,String(X)))Z=K[X];else{const ne=n(c,X,b(p)),re=r(c,X,b(p)),ie=b(T),Y=Q===Vp,q=ie?ne:0;K[X]=Z={position:"absolute",left:Y?void 0:`${q}px`,right:Y?`${q}px`:void 0,top:ie?0:`${ne}px`,height:ie?"100%":`${re}px`,width:ie?`${re}px`:"100%"}}return Z},z=()=>{w.value.isScrolling=!1,qe(()=>{g.value(-1,null,null)})},$=()=>{const X=m.value;X&&(X.scrollTop=0)};xt(()=>{if(!ur)return;const{initScrollOffset:X}=c,Q=b(m);ct(X)&&Q&&(b(T)?Q.scrollLeft=X:Q.scrollTop=X),D()}),qu(()=>{const{direction:X,layout:Q}=c,{scrollOffset:se,updateRequested:ee}=b(w),K=b(m);if(ee&&K)if(Q===mg)if(X===Vp)switch(_2()){case T_:{K.scrollLeft=-se;break}case z3:{K.scrollLeft=se;break}default:{const{clientWidth:Z,scrollWidth:ne}=K;K.scrollLeft=ne-Z-se;break}}else K.scrollLeft=se;else K.scrollTop=se});const j={ns:v,clientSize:M,estimatedTotalSize:S,windowStyle:A,windowRef:m,innerRef:y,innerStyle:C,itemsToRender:x,scrollbarRef:_,states:w,getItemStyle:k,onScroll:I,onScrollbarScroll:O,onWheel:E,scrollTo:R,scrollToItem:B,resetScrollTop:$};return d({windowRef:m,innerRef:y,getItemStyleCache:g,scrollTo:R,scrollToItem:B,resetScrollTop:$,states:w}),j},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:m,innerElement:y,itemsToRender:_,innerStyle:w,layout:x,total:S,onScroll:T,onScrollbarScroll:A,onWheel:C,states:M,useIsScrolling:E,windowStyle:D,ns:P}=c,[L,I]=_,O=Ft(p),R=Ft(y),B=[];if(S>0)for(let j=L;j<=I;j++)B.push((f=d.default)==null?void 0:f.call(d,{data:g,key:j,index:j,isScrolling:E?M.isScrolling:void 0,style:m(j)}));const k=[et(R,{style:w,ref:"innerRef"},wt(R)?B:{default:()=>B})],z=et(II,{ref:"scrollbarRef",clientSize:v,layout:x,onScroll:A,ratio:v*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-v),total:S}),$=et(O,{class:[P.e("window"),h],style:D,onScroll:T,onWheel:C,ref:"windowRef",key:0},wt(O)?[k]:{default:()=>[k]});return et("div",{key:0,class:[P.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[$,z])}}),Ine=Lne({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:r,layout:n,width:a},i,o,s)=>{const l=C_(n)?a:e,u=Math.max(0,t*r-l),c=Math.min(u,i*r),f=Math.max(0,(i+1)*r-l);switch(o===RT&&(s>=f-l&&s<=c+l?o=Jo:o=Ll),o){case x_:return c;case A_:return f;case Ll:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Jo:default:return s>=f&&s<=c?s:s<f?f:c}},getStartIndexForOffset:({total:e,itemSize:t},r)=>Math.max(0,Math.min(e-1,Math.floor(r/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:r,layout:n,width:a},i,o)=>{const s=i*r,l=C_(n)?a:e,u=Math.ceil((l+o-s)/r);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),yp=(e,t,r)=>{const{itemSize:n}=e,{items:a,lastVisitedIndex:i}=r;if(t>i){let o=0;if(i>=0){const s=a[i];o=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=n(s);a[s]={offset:o,size:l},o+=l}r.lastVisitedIndex=t}return a[t]},Cat=(e,t,r)=>{const{items:n,lastVisitedIndex:a}=t;return(a>0?n[a].offset:0)>=r?Rne(e,t,0,a,r):Eat(e,t,Math.max(0,a),r)},Rne=(e,t,r,n,a)=>{for(;r<=n;){const i=r+Math.floor((n-r)/2),o=yp(e,i,t).offset;if(o===a)return i;o<a?r=i+1:o>a&&(n=i-1)}return Math.max(0,r-1)},Eat=(e,t,r,n)=>{const{total:a}=e;let i=1;for(;r<a&&yp(e,r,t).offset<n;)r+=i,i*=2;return Rne(e,t,Math.floor(r/2),Math.min(r,a-1),n)},VU=({total:e},{items:t,estimatedItemSize:r,lastVisitedIndex:n})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const s=t[n];a=s.offset+s.size}const o=(e-n-1)*r;return a+o},Mat=Lne({name:"ElDynamicSizeList",getItemOffset:(e,t,r)=>yp(e,t,r).offset,getItemSize:(e,t,{items:r})=>r[t].size,getEstimatedTotalSize:VU,getOffset:(e,t,r,n,a)=>{const{height:i,layout:o,width:s}=e,l=C_(o)?s:i,u=yp(e,t,a),c=VU(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(r===RT&&(n>=d-l&&n<=f+l?r=Jo:r=Ll),r){case x_:return f;case A_:return d;case Ll:return Math.round(d+(f-d)/2);case Jo:default:return n>=d&&n<=f?n:n<d?d:f}},getStartIndexForOffset:(e,t,r)=>Cat(e,r,t),getStopIndexForStartIndex:(e,t,r,n)=>{const{height:a,total:i,layout:o,width:s}=e,l=C_(o)?s:a,u=yp(e,t,n),c=r+l;let f=u.offset+u.size,d=t;for(;d<i-1&&f<c;)d++,f+=yp(e,d,n).size;return d},initCache({estimatedItemSize:e=CI},t){const r={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return r.clearCacheAfterIndex=(n,a=!0)=>{var i,o;r.lastVisitedIndex=Math.min(r.lastVisitedIndex,n-1),(i=t.exposed)==null||i.getItemStyleCache(-1),a&&((o=t.proxy)==null||o.$forceUpdate())},r},clearCache:!1,validateProps:({itemSize:e})=>{}}),Dat=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:r,atYStartEdge:n},a)=>{let i=null,o=0,s=0;const l=(c,f)=>{const d=c<=0&&t.value||c>=0&&e.value,h=f<=0&&n.value||f>=0&&r.value;return d&&h};return{hasReachedEdge:l,onWheel:c=>{wT(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=cg(()=>{a(o,s),o=0,s=0}))}}},One=({name:e,clearCache:t,getColumnPosition:r,getColumnStartIndexForOffset:n,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:v})=>te({name:e??"ElVirtualList",props:Ph,emits:[p2,g2],setup(p,{emit:g,expose:m,slots:y}){const _=Ce("vl");v(p);const w=It(),x=G(d(p,w));h==null||h(w,x);const S=G(),T=G(),A=G(),C=G(null),M=G({isScrolling:!1,scrollLeft:ct(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:ct(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:mp,yAxisScrollDir:mp}),E=Ane(),D=F(()=>Number.parseInt(`${p.height}`,10)),P=F(()=>Number.parseInt(`${p.width}`,10)),L=F(()=>{const{totalColumn:ge,totalRow:Le,columnCache:Se}=p,{isScrolling:xe,xAxisScrollDir:Te,scrollLeft:Ve}=b(M);if(ge===0||Le===0)return[0,0,0,0];const He=n(p,Ve,b(x)),je=a(p,He,Ve,b(x)),Pe=!xe||Te===m2?Math.max(1,Se):1,Ue=!xe||Te===mp?Math.max(1,Se):1;return[Math.max(0,He-Pe),Math.max(0,Math.min(ge-1,je+Ue)),He,je]}),I=F(()=>{const{totalColumn:ge,totalRow:Le,rowCache:Se}=p,{isScrolling:xe,yAxisScrollDir:Te,scrollTop:Ve}=b(M);if(ge===0||Le===0)return[0,0,0,0];const He=c(p,Ve,b(x)),je=f(p,He,Ve,b(x)),Pe=!xe||Te===m2?Math.max(1,Se):1,Ue=!xe||Te===mp?Math.max(1,Se):1;return[Math.max(0,He-Pe),Math.max(0,Math.min(Le-1,je+Ue)),He,je]}),O=F(()=>i(p,b(x))),R=F(()=>o(p,b(x))),B=F(()=>{var ge;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:ct(p.height)?`${p.height}px`:p.height,width:ct(p.width)?`${p.width}px`:p.width},(ge=p.style)!=null?ge:{}]}),k=F(()=>{const ge=`${b(R)}px`;return{height:`${b(O)}px`,pointerEvents:b(M).isScrolling?"none":void 0,width:ge}}),z=()=>{const{totalColumn:ge,totalRow:Le}=p;if(ge>0&&Le>0){const[je,Pe,Ue,gt]=b(L),[At,Gt,tt,be]=b(I);g(p2,{columnCacheStart:je,columnCacheEnd:Pe,rowCacheStart:At,rowCacheEnd:Gt,columnVisibleStart:Ue,columnVisibleEnd:gt,rowVisibleStart:tt,rowVisibleEnd:be})}const{scrollLeft:Se,scrollTop:xe,updateRequested:Te,xAxisScrollDir:Ve,yAxisScrollDir:He}=b(M);g(g2,{xAxisScrollDir:Ve,scrollLeft:Se,yAxisScrollDir:He,scrollTop:xe,updateRequested:Te})},$=ge=>{const{clientHeight:Le,clientWidth:Se,scrollHeight:xe,scrollLeft:Te,scrollTop:Ve,scrollWidth:He}=ge.currentTarget,je=b(M);if(je.scrollTop===Ve&&je.scrollLeft===Te)return;let Pe=Te;if(FU(p.direction))switch(_2()){case T_:Pe=-Te;break;case H3:Pe=He-Se-Te;break}M.value={...je,isScrolling:!0,scrollLeft:Pe,scrollTop:Math.max(0,Math.min(Ve,xe-Le)),updateRequested:!0,xAxisScrollDir:lh(je.scrollLeft,Pe),yAxisScrollDir:lh(je.scrollTop,Ve)},qe(()=>Z()),ne(),z()},j=(ge,Le)=>{const Se=b(D),xe=(O.value-Se)/Le*ge;se({scrollTop:Math.min(O.value-Se,xe)})},X=(ge,Le)=>{const Se=b(P),xe=(R.value-Se)/Le*ge;se({scrollLeft:Math.min(R.value-Se,xe)})},{onWheel:Q}=Dat({atXStartEdge:F(()=>M.value.scrollLeft<=0),atXEndEdge:F(()=>M.value.scrollLeft>=R.value-b(P)),atYStartEdge:F(()=>M.value.scrollTop<=0),atYEndEdge:F(()=>M.value.scrollTop>=O.value-b(D))},(ge,Le)=>{var Se,xe,Te,Ve;(xe=(Se=T.value)==null?void 0:Se.onMouseUp)==null||xe.call(Se),(Ve=(Te=A.value)==null?void 0:Te.onMouseUp)==null||Ve.call(Te);const He=b(P),je=b(D);se({scrollLeft:Math.min(M.value.scrollLeft+ge,R.value-He),scrollTop:Math.min(M.value.scrollTop+Le,O.value-je)})}),se=({scrollLeft:ge=M.value.scrollLeft,scrollTop:Le=M.value.scrollTop})=>{ge=Math.max(ge,0),Le=Math.max(Le,0);const Se=b(M);Le===Se.scrollTop&&ge===Se.scrollLeft||(M.value={...Se,xAxisScrollDir:lh(Se.scrollLeft,ge),yAxisScrollDir:lh(Se.scrollTop,Le),scrollLeft:ge,scrollTop:Le,updateRequested:!0},qe(()=>Z()),ne(),z())},ee=(ge=0,Le=0,Se=Jo)=>{const xe=b(M);Le=Math.max(0,Math.min(Le,p.totalColumn-1)),ge=Math.max(0,Math.min(ge,p.totalRow-1));const Te=Pee(_.namespace.value),Ve=b(x),He=i(p,Ve),je=o(p,Ve);se({scrollLeft:s(p,Le,Se,xe.scrollLeft,Ve,je>p.width?Te:0),scrollTop:l(p,ge,Se,xe.scrollTop,Ve,He>p.height?Te:0)})},K=(ge,Le)=>{const{columnWidth:Se,direction:xe,rowHeight:Te}=p,Ve=E.value(t&&Se,t&&Te,t&&xe),He=`${ge},${Le}`;if(or(Ve,He))return Ve[He];{const[,je]=r(p,Le,b(x)),Pe=b(x),Ue=FU(xe),[gt,At]=u(p,ge,Pe),[Gt]=r(p,Le,Pe);return Ve[He]={position:"absolute",left:Ue?void 0:`${je}px`,right:Ue?`${je}px`:void 0,top:`${At}px`,height:`${gt}px`,width:`${Gt}px`},Ve[He]}},Z=()=>{M.value.isScrolling=!1,qe(()=>{E.value(-1,null,null)})};xt(()=>{if(!ur)return;const{initScrollLeft:ge,initScrollTop:Le}=p,Se=b(S);Se&&(ct(ge)&&(Se.scrollLeft=ge),ct(Le)&&(Se.scrollTop=Le)),z()});const ne=()=>{const{direction:ge}=p,{scrollLeft:Le,scrollTop:Se,updateRequested:xe}=b(M),Te=b(S);if(xe&&Te){if(ge===Vp)switch(_2()){case T_:{Te.scrollLeft=-Le;break}case z3:{Te.scrollLeft=Le;break}default:{const{clientWidth:Ve,scrollWidth:He}=Te;Te.scrollLeft=He-Ve-Le;break}}else Te.scrollLeft=Math.max(0,Le);Te.scrollTop=Math.max(0,Se)}},{resetAfterColumnIndex:re,resetAfterRowIndex:ie,resetAfter:Y}=w.proxy;m({windowRef:S,innerRef:C,getItemStyleCache:E,scrollTo:se,scrollToItem:ee,states:M,resetAfterColumnIndex:re,resetAfterRowIndex:ie,resetAfter:Y});const q=()=>{const{scrollbarAlwaysOn:ge,scrollbarStartGap:Le,scrollbarEndGap:Se,totalColumn:xe,totalRow:Te}=p,Ve=b(P),He=b(D),je=b(R),Pe=b(O),{scrollLeft:Ue,scrollTop:gt}=b(M),At=et(II,{ref:T,alwaysOn:ge,startGap:Le,endGap:Se,class:_.e("horizontal"),clientSize:Ve,layout:"horizontal",onScroll:X,ratio:Ve*100/je,scrollFrom:Ue/(je-Ve),total:Te,visible:!0}),Gt=et(II,{ref:A,alwaysOn:ge,startGap:Le,endGap:Se,class:_.e("vertical"),clientSize:He,layout:"vertical",onScroll:j,ratio:He*100/Pe,scrollFrom:gt/(Pe-He),total:xe,visible:!0});return{horizontalScrollbar:At,verticalScrollbar:Gt}},oe=()=>{var ge;const[Le,Se]=b(L),[xe,Te]=b(I),{data:Ve,totalColumn:He,totalRow:je,useIsScrolling:Pe,itemKey:Ue}=p,gt=[];if(je>0&&He>0)for(let At=xe;At<=Te;At++)for(let Gt=Le;Gt<=Se;Gt++)gt.push((ge=y.default)==null?void 0:ge.call(y,{columnIndex:Gt,data:Ve,key:Ue({columnIndex:Gt,data:Ve,rowIndex:At}),isScrolling:Pe?b(M).isScrolling:void 0,style:K(At,Gt),rowIndex:At}));return gt},ve=()=>{const ge=Ft(p.innerElement),Le=oe();return[et(ge,{style:b(k),ref:C},wt(ge)?Le:{default:()=>Le})]};return()=>{const ge=Ft(p.containerElement),{horizontalScrollbar:Le,verticalScrollbar:Se}=q(),xe=ve();return et("div",{key:0,class:_.e("wrapper"),role:p.role},[et(ge,{class:p.className,style:b(B),onScroll:$,onWheel:Q,ref:S},wt(ge)?xe:{default:()=>xe}),Le,Se])}}}),Pat=One({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:r},n,a,i,o,s)=>{r=Number(r);const l=Math.max(0,e*t-r),u=Math.min(l,n*t),c=Math.max(0,n*t-r+s+t);switch(a==="smart"&&(i>=c-r&&i<=u+r?a=Jo:a=Ll),a){case x_:return u;case A_:return c;case Ll:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(r/2)?0:f>l+Math.floor(r/2)?l:f}case Jo:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:e,height:t,totalRow:r},n,a,i,o,s)=>{t=Number(t);const l=Math.max(0,r*e-t),u=Math.min(l,n*e),c=Math.max(0,n*e-t+s+e);switch(a===RT&&(i>=c-t&&i<=u+t?a=Jo:a=Ll),a){case x_:return u;case A_:return c;case Ll:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Jo:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},r)=>Math.max(0,Math.min(t-1,Math.floor(r/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:r},n,a)=>{const i=n*e,o=Math.ceil((r+a-i)/e);return Math.max(0,Math.min(t-1,n+o-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},r)=>Math.max(0,Math.min(t-1,Math.floor(r/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:r},n,a)=>{const i=n*e,o=Math.ceil((r+a-i)/e);return Math.max(0,Math.min(t-1,n+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:b2,min:kne,floor:Nne}=Math,Lat={column:"columnWidth",row:"rowHeight"},RI={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},_u=(e,t,r,n)=>{const[a,i,o]=[r[n],e[Lat[n]],r[RI[n]]];if(t>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=t;l++){const u=i(l);a[l]={offset:s,size:u},s+=u}r[RI[n]]=t}return a[t]},Bne=(e,t,r,n,a,i)=>{for(;r<=n;){const o=r+Nne((n-r)/2),s=_u(e,o,t,i).offset;if(s===a)return o;s<a?r=o+1:n=o-1}return b2(0,r-1)},Iat=(e,t,r,n,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;r<i&&_u(e,r,t,a).offset<n;)r+=o,o*=2;return Bne(e,t,Nne(r/2),kne(r,i-1),n,a)},zU=(e,t,r,n)=>{const[a,i]=[t[n],t[RI[n]]];return(i>0?a[i].offset:0)>=r?Bne(e,t,0,i,r,n):Iat(e,t,b2(0,i),r,n)},Fne=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:r,row:n})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const s=n[r];a=s.offset+s.size}const o=(e-r-1)*t;return a+o},Vne=({totalColumn:e},{column:t,estimatedColumnWidth:r,lastVisitedColumnIndex:n})=>{let a=0;if(n>e&&(n=e-1),n>=0){const s=t[n];a=s.offset+s.size}const o=(e-n-1)*r;return a+o},Rat={column:Vne,row:Fne},HU=(e,t,r,n,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,Rat[i]],u=_u(e,t,a,i),c=l(e,a),f=b2(0,kne(c-s,u.offset)),d=b2(0,u.offset-s+o+u.size);switch(r===RT&&(n>=d-s&&n<=f+s?r=Jo:r=Ll),r){case x_:return f;case A_:return d;case Ll:return Math.round(d+(f-d)/2);case Jo:default:return n>=d&&n<=f?n:d>f||n<d?d:f}},Oat=One({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,r)=>{const n=_u(e,t,r,"column");return[n.size,n.offset]},getRowPosition:(e,t,r)=>{const n=_u(e,t,r,"row");return[n.size,n.offset]},getColumnOffset:(e,t,r,n,a,i)=>HU(e,t,r,n,a,"column",i),getRowOffset:(e,t,r,n,a,i)=>HU(e,t,r,n,a,"row",i),getColumnStartIndexForOffset:(e,t,r)=>zU(e,r,t,"column"),getColumnStopIndexForStartIndex:(e,t,r,n)=>{const a=_u(e,t,n,"column"),i=r+e.width;let o=a.offset+a.size,s=t;for(;s<e.totalColumn-1&&o<i;)s++,o+=_u(e,t,n,"column").size;return s},getEstimatedTotalHeight:Fne,getEstimatedTotalWidth:Vne,getRowStartIndexForOffset:(e,t,r)=>zU(e,r,t,"row"),getRowStopIndexForStartIndex:(e,t,r,n)=>{const{totalRow:a,height:i}=e,o=_u(e,t,n,"row"),s=r+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=_u(e,u,n,"row").size;return u},injectToInstance:(e,t)=>{const r=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=oa(s)?!0:s,ct(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),ct(o)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,o-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},n=(i,o)=>{r({columnIndex:i},o)},a=(i,o)=>{r({rowIndex:i},o)};Object.assign(e.proxy,{resetAfterColumnIndex:n,resetAfterRowIndex:a,resetAfter:r})},initCache:({estimatedColumnWidth:e=CI,estimatedRowHeight:t=CI})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),kat=te({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Ce("select")}}});function Nat(e,t,r,n,a,i){return e.item.isTitle?(N(),U("div",{key:0,class:H(e.ns.be("group","title")),style:Xe([e.style,{lineHeight:`${e.height}px`}])},me(e.item.label),7)):(N(),U("div",{key:1,class:H(e.ns.be("group","split")),style:Xe(e.style)},[V("span",{class:H(e.ns.be("group","split-dash")),style:Xe({top:`${e.height/2}px`})},null,6)],6))}var Bat=ke(kat,[["render",Nat],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function Fat(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const zne={label:"label",value:"value",disabled:"disabled",options:"options"};function OT(e){const t=F(()=>({...zne,...e.props}));return{aliasProps:t,getLabel:o=>gn(o,t.value.label),getValue:o=>gn(o,t.value.value),getDisabled:o=>gn(o,t.value.disabled),getOptions:o=>gn(o,t.value.options)}}const Vat=Oe({allowCreate:Boolean,autocomplete:{type:fe(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Zr,default:zf},effect:{type:fe(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:{type:fe([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:fe(Array),required:!0},placeholder:{type:String},teleported:Va.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:fe(Object),default:()=>({})},remote:Boolean,size:Ga,props:{type:fe(Object),default:()=>zne},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:fe(String),values:dv,default:"bottom-start"}}),zat=Oe({data:Array,disabled:Boolean,hovering:Boolean,item:{type:fe(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),G3=Symbol("ElSelectV2Injection"),Hat=te({props:zat,emits:["select","hover"],setup(e,{emit:t}){const r=Ye(G3),n=Ce("select"),{hoverItem:a,selectOptionClick:i}=Fat(e,{emit:t}),{getLabel:o}=OT(r.props);return{ns:n,hoverItem:a,selectOptionClick:i,getLabel:o}}}),Gat=["aria-selected"];function Uat(e,t,r,n,a,i){return N(),U("li",{"aria-selected":e.selected,style:Xe(e.style),class:H([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=it((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[ye(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[V("span",null,me(e.getLabel(e.item)),1)])],46,Gat)}var $at=ke(Hat,[["render",Uat],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]),Wat=te({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:r}){const n=Ye(G3),a=Ce("select"),{getLabel:i,getValue:o,getDisabled:s}=OT(n.props),l=G([]),u=G(),c=F(()=>e.data.length);Ae(()=>c.value,()=>{var E,D;(D=(E=n.popper.value).updatePopper)==null||D.call(E)});const f=F(()=>oa(n.props.estimatedOptionHeight)),d=F(()=>f.value?{itemSize:n.props.itemHeight}:{estimatedSize:n.props.estimatedOptionHeight,itemSize:E=>l.value[E]}),h=(E=[],D)=>{const{props:{valueKey:P}}=n;return Vt(D)?E&&E.some(L=>Er(gn(L,P))===gn(D,P)):E.includes(D)},v=(E,D)=>{if(Vt(D)){const{valueKey:P}=n.props;return gn(E,P)===gn(D,P)}else return E===D},p=(E,D)=>n.props.multiple?h(E,o(D)):v(E,o(D)),g=(E,D)=>{const{disabled:P,multiple:L,multipleLimit:I}=n.props;return P||!D&&(L?I>0&&E.length>=I:!1)},m=E=>e.hoveringIndex===E;r({listRef:u,isSized:f,isItemDisabled:g,isItemHovering:m,isItemSelected:p,scrollToItem:E=>{const D=u.value;D&&D.scrollToItem(E)},resetScrollTop:()=>{const E=u.value;E&&E.resetScrollTop()}});const w=E=>{const{index:D,data:P,style:L}=E,I=b(f),{itemSize:O,estimatedSize:R}=b(d),{modelValue:B}=n.props,{onSelect:k,onHover:z}=n,$=P[D];if($.type==="Group")return J(Bat,{item:$,style:L,height:I?O:R},null);const j=p(B,$),X=g(B,j),Q=m(D);return J($at,Ut(E,{selected:j,disabled:s($)||X,created:!!$.created,hovering:Q,item:$,onSelect:k,onHover:z}),{default:se=>{var ee;return((ee=t.default)==null?void 0:ee.call(t,se))||J("span",null,[i($)])}})},{onKeyboardNavigate:x,onKeyboardSelect:S}=n,T=()=>{x("forward")},A=()=>{x("backward")},C=()=>{n.expanded=!1},M=E=>{const{code:D}=E,{tab:P,esc:L,down:I,up:O,enter:R}=Qe;switch(D!==P&&(E.preventDefault(),E.stopPropagation()),D){case P:case L:{C();break}case I:{T();break}case O:{A();break}case R:{S();break}}};return()=>{var E;const{data:D,width:P}=e,{height:L,multiple:I,scrollbarAlwaysOn:O}=n.props;if(D.length===0)return J("div",{class:a.b("dropdown"),style:{width:`${P}px`}},[(E=t.empty)==null?void 0:E.call(t)]);const R=b(f)?Ine:Mat;return J("div",{class:[a.b("dropdown"),a.is("multiple",I)]},[J(R,Ut({ref:u},b(d),{className:a.be("dropdown","list"),scrollbarAlwaysOn:O,data:D,height:L,width:P,total:D.length,onKeydown:M}),{default:B=>J(w,B,null)})])}}});function Yat(e,t){const{aliasProps:r,getLabel:n,getValue:a}=OT(e),i=G(0),o=G(null),s=F(()=>e.allowCreate&&e.filterable);function l(h){const v=p=>a(p)===h;return e.options&&e.options.some(v)||t.createdOptions.some(v)}function u(h){s.value&&(e.multiple&&h.created?i.value++:o.value=h)}function c(h){if(s.value)if(h&&h.length>0&&!l(h)){const v={[r.value.value]:h,[r.value.label]:h,created:!0,[r.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=v:t.createdOptions.push(v)}else if(e.multiple)t.createdOptions.length=i.value;else{const v=o.value;t.createdOptions.length=0,v&&v.created&&t.createdOptions.push(v)}}function f(h){if(!s.value||!h||!h.created||h.created&&e.reserveKeyword&&t.inputValue===n(h))return;const v=t.createdOptions.findIndex(p=>a(p)===a(h));~v&&(t.createdOptions.splice(v,1),i.value--)}function d(){s.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:c,removeNewOption:f,selectNewOption:u,clearAllNewOption:d}}function jat(e){const t=G(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!bT(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,dt(e)&&e(i))}}}const GU="",UU=11,Kat={larget:51,default:42,small:33},Xat=(e,t)=>{const{t:r}=fr(),n=Ce("select-v2"),a=Ce("input"),{form:i,formItem:o}=Vi(),{getLabel:s,getValue:l,getDisabled:u,getOptions:c}=OT(e),f=Ar({inputValue:GU,displayInputValue:GU,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}),d=G(-1),h=G(-1),v=G(null),p=G(null),g=G(null),m=G(null),y=G(null),_=G(null),w=G(null),x=G(!1),S=F(()=>e.disabled||(i==null?void 0:i.disabled)),T=F(()=>{const Re=O.value.length*34;return Re>e.height?e.height:Re}),A=F(()=>!Qn(e.modelValue)),C=F(()=>{const Re=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:A.value;return e.clearable&&!S.value&&f.comboBoxHovering&&Re}),M=F(()=>e.remote&&e.filterable?"":mT),E=F(()=>M.value&&n.is("reverse",x.value)),D=F(()=>(o==null?void 0:o.validateState)||""),P=F(()=>t3[D.value]),L=F(()=>e.remote?300:0),I=F(()=>{const Re=O.value;return e.loading?e.loadingText||r("el.select.loading"):e.remote&&f.inputValue===""&&Re.length===0?!1:e.filterable&&f.inputValue&&Re.length>0?e.noMatchText||r("el.select.noMatch"):Re.length===0?e.noDataText||r("el.select.noData"):null}),O=F(()=>{const Re=ft=>{const Yt=f.inputValue,gr=new RegExp(Mee(Yt),"i");return Yt?gr.test(s(ft)||""):!0};return e.loading?[]:[...e.options,...f.createdOptions].reduce((ft,Yt)=>{const gr=c(Yt);if(We(gr)){const ka=gr.filter(Re);ka.length>0&&ft.push({label:s(Yt),isTitle:!0,type:"Group"},...ka,{type:"Group"})}else(e.remote||Re(Yt))&&ft.push(Yt);return ft},[])}),R=F(()=>{const Re=new Map;return O.value.forEach((ft,Yt)=>{Re.set(Ue(l(ft)),{option:ft,index:Yt})}),Re}),B=F(()=>O.value.every(Re=>u(Re))),k=ca(),z=F(()=>k.value==="small"?"small":"default"),$=F(()=>{const Re=_.value,ft=z.value||"default",Yt=Re?Number.parseInt(getComputedStyle(Re).paddingLeft):0,gr=Re?Number.parseInt(getComputedStyle(Re).paddingRight):0;return f.selectWidth-gr-Yt-Kat[ft]}),j=()=>{var Re;h.value=((Re=y.value)==null?void 0:Re.offsetWidth)||200},X=F(()=>({width:`${f.calculatedWidth===0?UU:Math.ceil(f.calculatedWidth)+UU}px`})),Q=F(()=>We(e.modelValue)?e.modelValue.length===0&&!f.displayInputValue:e.filterable?f.displayInputValue.length===0:!0),se=F(()=>{const Re=e.placeholder||r("el.select.placeholder");return e.multiple||Qn(e.modelValue)?Re:f.selectedLabel}),ee=F(()=>{var Re,ft;return(ft=(Re=m.value)==null?void 0:Re.popperRef)==null?void 0:ft.contentRef}),K=F(()=>{if(e.multiple){const Re=e.modelValue.length;if(e.modelValue.length>0&&R.value.has(e.modelValue[Re-1])){const{index:ft}=R.value.get(e.modelValue[Re-1]);return ft}}else if(e.modelValue&&R.value.has(e.modelValue)){const{index:Re}=R.value.get(e.modelValue);return Re}return-1}),Z=F({get(){return x.value&&I.value!==!1},set(Re){x.value=Re}}),ne=F(()=>f.cachedOptions.slice(0,e.maxCollapseTags)),re=F(()=>f.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:ie,removeNewOption:Y,selectNewOption:q,clearAllNewOption:oe}=Yat(e,f),{handleCompositionStart:ve,handleCompositionUpdate:_e,handleCompositionEnd:ge}=jat(Re=>we(Re)),Le=()=>{var Re,ft,Yt;(ft=(Re=p.value)==null?void 0:Re.focus)==null||ft.call(Re),(Yt=m.value)==null||Yt.updatePopper()},Se=()=>{if(!e.automaticDropdown&&!S.value)return f.isComposing&&(f.softFocus=!0),qe(()=>{var Re,ft;x.value=!x.value,(ft=(Re=p.value)==null?void 0:Re.focus)==null||ft.call(Re)})},xe=()=>(e.filterable&&f.inputValue!==f.selectedLabel&&(f.query=f.selectedLabel),Ve(f.inputValue),qe(()=>{ie(f.inputValue)})),Te=Ni(xe,L.value),Ve=Re=>{f.previousQuery!==Re&&(f.previousQuery=Re,e.filterable&&dt(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&dt(e.remoteMethod)&&e.remoteMethod(Re))},He=Re=>{to(e.modelValue,Re)||t(ln,Re)},je=Re=>{t(Nt,Re),He(Re),f.previousValue=String(Re)},Pe=(Re=[],ft)=>{if(!Vt(ft))return Re.indexOf(ft);const Yt=e.valueKey;let gr=-1;return Re.some((ka,bs)=>gn(ka,Yt)===gn(ft,Yt)?(gr=bs,!0):!1),gr},Ue=Re=>Vt(Re)?gn(Re,e.valueKey):Re,gt=()=>qe(()=>{var Re,ft;if(!p.value)return;const Yt=_.value;y.value.height=Yt.offsetHeight,x.value&&I.value!==!1&&((ft=(Re=m.value)==null?void 0:Re.updatePopper)==null||ft.call(Re))}),At=()=>{var Re,ft;if(Gt(),j(),(ft=(Re=m.value)==null?void 0:Re.updatePopper)==null||ft.call(Re),e.multiple)return gt()},Gt=()=>{const Re=_.value;Re&&(f.selectWidth=Re.getBoundingClientRect().width)},tt=(Re,ft,Yt=!0)=>{var gr,ka;if(e.multiple){let bs=e.modelValue.slice();const Na=Pe(bs,l(Re));Na>-1?(bs=[...bs.slice(0,Na),...bs.slice(Na+1)],f.cachedOptions.splice(Na,1),Y(Re)):(e.multipleLimit<=0||bs.length<e.multipleLimit)&&(bs=[...bs,l(Re)],f.cachedOptions.push(Re),q(Re),An(ft)),je(bs),Re.created&&(f.query="",Ve(""),f.inputLength=20),e.filterable&&!e.reserveKeyword&&((ka=(gr=p.value).focus)==null||ka.call(gr),St("")),e.filterable&&(f.calculatedWidth=w.value.getBoundingClientRect().width),gt(),Ya()}else d.value=ft,f.selectedLabel=s(Re),je(l(Re)),x.value=!1,f.isComposing=!1,f.isSilentBlur=Yt,q(Re),Re.created||oe(),An(ft)},be=(Re,ft)=>{let Yt=e.modelValue.slice();const gr=Pe(Yt,l(ft));if(gr>-1&&!S.value)return Yt=[...e.modelValue.slice(0,gr),...e.modelValue.slice(gr+1)],f.cachedOptions.splice(gr,1),je(Yt),t("remove-tag",l(ft)),f.softFocus=!0,Y(ft),qe(Le);Re.stopPropagation()},pe=Re=>{const ft=f.isComposing;f.isComposing=!0,f.softFocus?f.softFocus=!1:ft||t("focus",Re)},de=Re=>(f.softFocus=!1,qe(()=>{var ft,Yt;(Yt=(ft=p.value)==null?void 0:ft.blur)==null||Yt.call(ft),w.value&&(f.calculatedWidth=w.value.getBoundingClientRect().width),f.isSilentBlur?f.isSilentBlur=!1:f.isComposing&&t("blur",Re),f.isComposing=!1})),Me=()=>{f.displayInputValue.length>0?St(""):x.value=!1},ae=Re=>{if(f.displayInputValue.length===0){Re.preventDefault();const ft=e.modelValue.slice();ft.pop(),Y(f.cachedOptions.pop()),je(ft)}},Ge=()=>{let Re;return We(e.modelValue)?Re=[]:Re=void 0,f.softFocus=!0,e.multiple?f.cachedOptions=[]:f.selectedLabel="",x.value=!1,je(Re),t("clear"),oe(),qe(Le)},St=Re=>{f.displayInputValue=Re,f.inputValue=Re},Kt=(Re,ft=void 0)=>{const Yt=O.value;if(!["forward","backward"].includes(Re)||S.value||Yt.length<=0||B.value)return;if(!x.value)return Se();ft===void 0&&(ft=f.hoveringIndex);let gr=-1;Re==="forward"?(gr=ft+1,gr>=Yt.length&&(gr=0)):Re==="backward"&&(gr=ft-1,(gr<0||gr>=Yt.length)&&(gr=Yt.length-1));const ka=Yt[gr];if(u(ka)||ka.type==="Group")return Kt(Re,gr);An(gr),lr(gr)},Xn=()=>{if(x.value)~f.hoveringIndex&&O.value[f.hoveringIndex]&&tt(O.value[f.hoveringIndex],f.hoveringIndex,!1);else return Se()},An=Re=>{f.hoveringIndex=Re},Io=()=>{f.hoveringIndex=-1},Ya=()=>{var Re;const ft=p.value;ft&&((Re=ft.focus)==null||Re.call(ft))},we=Re=>{const ft=Re.target.value;if(St(ft),f.displayInputValue.length>0&&!x.value&&(x.value=!0),f.calculatedWidth=w.value.getBoundingClientRect().width,e.multiple&>(),e.remote)Te();else return xe()},ze=()=>(x.value=!1,de()),pt=()=>(f.inputValue=f.displayInputValue,qe(()=>{~K.value&&(An(K.value),lr(f.hoveringIndex))})),lr=Re=>{g.value.scrollToItem(Re)},ba=()=>{if(Io(),e.multiple)if(e.modelValue.length>0){let Re=!1;f.cachedOptions.length=0,f.previousValue=e.modelValue.toString();for(const ft of e.modelValue){const Yt=Ue(ft);if(R.value.has(Yt)){const{index:gr,option:ka}=R.value.get(Yt);f.cachedOptions.push(ka),Re||An(gr),Re=!0}}}else f.cachedOptions=[],f.previousValue=void 0;else if(A.value){f.previousValue=e.modelValue;const Re=O.value,ft=Re.findIndex(Yt=>Ue(l(Yt))===Ue(e.modelValue));~ft?(f.selectedLabel=s(Re[ft]),An(ft)):f.selectedLabel=Ue(e.modelValue)}else f.selectedLabel="",f.previousValue=void 0;oe(),j()};return Ae(x,Re=>{var ft,Yt;t("visible-change",Re),Re?(Yt=(ft=m.value).update)==null||Yt.call(ft):(f.displayInputValue="",f.previousQuery=null,ie(""))}),Ae(()=>e.modelValue,(Re,ft)=>{var Yt;(!Re||Re.toString()!==f.previousValue)&&ba(),!to(Re,ft)&&e.validateEvent&&((Yt=o==null?void 0:o.validate)==null||Yt.call(o,"change").catch(gr=>void 0))},{deep:!0}),Ae(()=>e.options,()=>{const Re=p.value;(!Re||Re&&document.activeElement!==Re)&&ba()},{deep:!0}),Ae(O,()=>g.value&&qe(g.value.resetScrollTop)),Ae(()=>Z.value,Re=>{Re||Io()}),xt(()=>{ba()}),di(y,At),{collapseTagSize:z,currentPlaceholder:se,expanded:x,emptyText:I,popupHeight:T,debounce:L,filteredOptions:O,iconComponent:M,iconReverse:E,inputWrapperStyle:X,popperSize:h,dropdownMenuVisible:Z,hasModelValue:A,shouldShowPlaceholder:Q,selectDisabled:S,selectSize:k,showClearBtn:C,states:f,tagMaxWidth:$,nsSelectV2:n,nsInput:a,calculatorRef:w,controlRef:v,inputRef:p,menuRef:g,popper:m,selectRef:y,selectionRef:_,popperRef:ee,validateState:D,validateIcon:P,showTagList:ne,collapseTagList:re,debouncedOnInputChange:Te,deleteTag:be,getLabel:s,getValue:l,getDisabled:u,getValueKey:Ue,handleBlur:de,handleClear:Ge,handleClickOutside:ze,handleDel:ae,handleEsc:Me,handleFocus:pe,handleMenuEnter:pt,handleResize:At,toggleMenu:Se,scrollTo:lr,onInput:we,onKeyboardNavigate:Kt,onKeyboardSelect:Xn,onSelect:tt,onHover:An,onUpdateInputValue:St,handleCompositionStart:ve,handleCompositionEnd:ge,handleCompositionUpdate:_e}},Zat=te({name:"ElSelectV2",components:{ElSelectMenu:Wat,ElTag:w_,ElTooltip:Bi,ElIcon:Ze},directives:{ClickOutside:Df,ModelText:VR},props:Vat,emits:[Nt,ln,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const r=F(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return We(a)?i?a:o:i?o:a}),n=Xat(Ar({...Da(e),modelValue:r}),t);return Wt(G3,{props:Ar({...Da(e),height:n.popupHeight,modelValue:r}),popper:n.popper,onSelect:n.onSelect,onHover:n.onHover,onKeyboardNavigate:n.onKeyboardNavigate,onKeyboardSelect:n.onKeyboardSelect}),{...n,modelValue:r}}}),qat={key:0},Qat=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Jat=["textContent"],eit=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],tit=["textContent"];function rit(e,t,r,n,a,i){const o=bt("el-tag"),s=bt("el-tooltip"),l=bt("el-icon"),u=bt("el-select-menu"),c=_0("model-text"),f=_0("click-outside");return Ct((N(),U("div",{ref:"selectRef",class:H([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=it((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"])),onMouseenter:t[25]||(t[25]=d=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=d=>e.states.comboBoxHovering=!1)},[J(s,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=d=>e.states.inputValue=e.states.displayInputValue)},{default:le(()=>[V("div",{ref:"selectionRef",class:H([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(N(),U("div",qat,[ye(e.$slots,"prefix")])):ce("v-if",!0),e.multiple?(N(),U("div",{key:1,class:H(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(N(),U(Be,{key:0},[(N(!0),U(Be,null,ht(e.showTagList,d=>(N(),U("div",{key:e.getValueKey(e.getValue(d)),class:H(e.nsSelectV2.e("selected-item"))},[J(o,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),V("div",{class:H(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(N(),he(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:le(()=>[e.collapseTagsTooltip?(N(),he(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})}," + "+me(e.modelValue.length-e.maxCollapseTags),7)]),content:le(()=>[V("div",{class:H(e.nsSelectV2.e("selection"))},[(N(!0),U(Be,null,ht(e.collapseTagList,d=>(N(),U("div",{key:e.getValueKey(e.getValue(d)),class:H(e.nsSelectV2.e("selected-item"))},[J(o,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(N(),U("span",{key:1,class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})}," + "+me(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):ce("v-if",!0)],2)],64)):(N(!0),U(Be,{key:1},ht(e.states.cachedOptions,d=>(N(),U("div",{key:e.getValueKey(e.getValue(d)),class:H(e.nsSelectV2.e("selected-item"))},[J(o,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:le(()=>[V("span",{class:H(e.nsSelectV2.e("tags-text")),style:Xe({maxWidth:`${e.tagMaxWidth}px`})},me(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),V("div",{class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Xe(e.inputWrapperStyle)},[Ct(V("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:H([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[3]||(t[3]=(...d)=>e.onInput&&e.onInput(...d)),onCompositionstart:t[4]||(t[4]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[5]||(t[5]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[6]||(t[6]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onKeydown:[t[7]||(t[7]=dr(it(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=dr(it(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=dr(it((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=dr(it((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=dr(it((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,Qat),[[c,e.states.displayInputValue]]),e.filterable?(N(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:H(e.nsSelectV2.e("input-calculator")),textContent:me(e.states.displayInputValue)},null,10,Jat)):ce("v-if",!0)],6)],2)):(N(),U(Be,{key:2},[V("div",{class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[Ct(V("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:H(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[13]||(t[13]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[14]||(t[14]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onFocus:t[15]||(t[15]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[16]||(t[16]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[17]||(t[17]=(...d)=>e.onInput&&e.onInput(...d)),onKeydown:[t[18]||(t[18]=dr(it(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=dr(it(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=dr(it((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=dr(it((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,eit),[[c,e.states.displayInputValue]])],2),e.filterable?(N(),U("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:me(e.states.displayInputValue)},null,10,tit)):ce("v-if",!0)],64)),e.shouldShowPlaceholder?(N(),U("span",{key:3,class:H([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},me(e.currentPlaceholder),3)):ce("v-if",!0),V("span",{class:H(e.nsSelectV2.e("suffix"))},[e.iconComponent?Ct((N(),he(l,{key:0,class:H([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])),[[hr,!e.showClearBtn]]):ce("v-if",!0),e.showClearBtn&&e.clearIcon?(N(),he(l,{key:1,class:H([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:it(e.handleClear,["prevent","stop"])},{default:le(()=>[(N(),he(Ft(e.clearIcon)))]),_:1},8,["class","onClick"])):ce("v-if",!0),e.validateState&&e.validateIcon?(N(),he(l,{key:2,class:H([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:le(()=>[(N(),he(Ft(e.validateIcon)))]),_:1},8,["class"])):ce("v-if",!0)],2)],2)]),content:le(()=>[J(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:le(d=>[ye(e.$slots,"default",Rs(K2(d)))]),empty:le(()=>[ye(e.$slots,"empty",{},()=>[V("p",{class:H(e.nsSelectV2.e("empty"))},me(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var CS=ke(Zat,[["render",rit],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);CS.install=e=>{e.component(CS.name,CS)};const nit=CS,ait=nit,iit=Oe({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),oit=Oe({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),sit=te({name:"ElSkeletonItem"}),lit=te({...sit,props:oit,setup(e){const t=Ce("skeleton");return(r,n)=>(N(),U("div",{class:H([b(t).e("item"),b(t).e(r.variant)])},[r.variant==="image"?(N(),he(b(vUe),{key:0})):ce("v-if",!0)],2))}});var w2=ke(lit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const uit=te({name:"ElSkeleton"}),cit=te({...uit,props:iit,setup(e,{expose:t}){const r=e,n=Ce("skeleton"),a=sWe(Sn(r,"loading"),r.throttle);return t({uiLoading:a}),(i,o)=>b(a)?(N(),U("div",Ut({key:0,class:[b(n).b(),b(n).is("animated",i.animated)]},i.$attrs),[(N(!0),U(Be,null,ht(i.count,s=>(N(),U(Be,{key:s},[i.loading?ye(i.$slots,"template",{key:s},()=>[J(w2,{class:H(b(n).is("first")),variant:"p"},null,8,["class"]),(N(!0),U(Be,null,ht(i.rows,l=>(N(),he(w2,{key:l,class:H([b(n).e("paragraph"),b(n).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ce("v-if",!0)],64))),128))],16)):ye(i.$slots,"default",Rs(Ut({key:1},i.$attrs)))}});var fit=ke(cit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const dit=kt(fit,{SkeletonItem:w2}),hit=Pn(w2),Hne=Symbol("sliderContextKey"),vit=Oe({modelValue:{type:fe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Ga,inputSize:Ga,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:fe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:fe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:dv,default:"top"},marks:{type:fe(Object)},validateEvent:{type:Boolean,default:!0}}),XM=e=>ct(e)||We(e)&&e.every(ct),pit={[Nt]:XM,[Di]:XM,[ln]:XM},git=(e,t,r)=>{const n=G();return xt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),dn(window,"resize",r),await qe(),r()}),{sliderWrapper:n}},mit=e=>F(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((r,n)=>r-n).filter(r=>r<=e.max&&r>=e.min).map(r=>({point:r,position:(r-e.min)*100/(e.max-e.min),mark:e.marks[r]})):[]),yit=(e,t,r)=>{const{form:n,formItem:a}=Vi(),i=yr(),o=G(),s=G(),l={firstButton:o,secondButton:s},u=F(()=>e.disabled||(n==null?void 0:n.disabled)||!1),c=F(()=>Math.min(t.firstValue,t.secondValue)),f=F(()=>Math.max(t.firstValue,t.secondValue)),d=F(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=F(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=F(()=>e.vertical?{height:e.height}:{}),p=F(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},m=E=>{const D=e.min+E*(e.max-e.min)/100;if(!e.range)return o;let P;return Math.abs(c.value-D)<Math.abs(f.value-D)?P=t.firstValue<t.secondValue?"firstButton":"secondButton":P=t.firstValue>t.secondValue?"firstButton":"secondButton",l[P]},y=E=>{const D=m(E);return D.value.setPosition(E),D},_=E=>{t.firstValue=E,x(e.range?[c.value,f.value]:E)},w=E=>{t.secondValue=E,e.range&&x([c.value,f.value])},x=E=>{r(Nt,E),r(Di,E)},S=async()=>{await qe(),r(ln,e.range?[c.value,f.value]:e.modelValue)},T=E=>{var D,P,L,I,O,R;if(u.value||t.dragging)return;g();let B=0;if(e.vertical){const k=(L=(P=(D=E.touches)==null?void 0:D.item(0))==null?void 0:P.clientY)!=null?L:E.clientY;B=(i.value.getBoundingClientRect().bottom-k)/t.sliderSize*100}else{const k=(R=(O=(I=E.touches)==null?void 0:I.item(0))==null?void 0:O.clientX)!=null?R:E.clientX,z=i.value.getBoundingClientRect().left;B=(k-z)/t.sliderSize*100}if(!(B<0||B>100))return y(B)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:y,emitChange:S,onSliderWrapperPrevent:E=>{var D,P;((D=l.firstButton.value)!=null&&D.dragging||(P=l.secondButton.value)!=null&&P.dragging)&&E.preventDefault()},onSliderClick:E=>{T(E)&&S()},onSliderDown:async E=>{const D=T(E);D&&(await qe(),D.value.onButtonDown(E))},setFirstValue:_,setSecondValue:w}},{left:_it,down:bit,right:wit,up:Sit,home:xit,end:Ait,pageUp:Tit,pageDown:Cit}=Qe,Eit=(e,t,r)=>{const n=G(),a=G(!1),i=F(()=>t.value instanceof Function),o=F(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Ni(()=>{r.value&&(a.value=!0)},50),l=Ni(()=>{r.value&&(a.value=!1)},50);return{tooltip:n,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},Mit=(e,t,r)=>{const{disabled:n,min:a,max:i,step:o,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:d,updateDragging:h}=Ye(Hne),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:m,hideTooltip:y}=Eit(e,c,s),_=G(),w=F(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),x=F(()=>e.vertical?{bottom:w.value}:{left:w.value}),S=()=>{t.hovering=!0,m()},T=()=>{t.hovering=!1,t.dragging||y()},A=j=>{n.value||(j.preventDefault(),B(j),window.addEventListener("mousemove",k),window.addEventListener("touchmove",k),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),_.value.focus())},C=j=>{n.value||(t.newPosition=Number.parseFloat(w.value)+j/(i.value-a.value)*100,$(t.newPosition),f())},M=()=>{C(-o.value)},E=()=>{C(o.value)},D=()=>{C(-o.value*4)},P=()=>{C(o.value*4)},L=()=>{n.value||($(0),f())},I=()=>{n.value||($(100),f())},O=j=>{let X=!0;[_it,bit].includes(j.key)?M():[wit,Sit].includes(j.key)?E():j.key===xit?L():j.key===Ait?I():j.key===Cit?D():j.key===Tit?P():X=!1,X&&j.preventDefault()},R=j=>{let X,Q;return j.type.startsWith("touch")?(Q=j.touches[0].clientY,X=j.touches[0].clientX):(Q=j.clientY,X=j.clientX),{clientX:X,clientY:Q}},B=j=>{t.dragging=!0,t.isClick=!0;const{clientX:X,clientY:Q}=R(j);e.vertical?t.startY=Q:t.startX=X,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},k=j=>{if(t.dragging){t.isClick=!1,m(),d();let X;const{clientX:Q,clientY:se}=R(j);e.vertical?(t.currentY=se,X=(t.startY-t.currentY)/u.value*100):(t.currentX=Q,X=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+X,$(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||y(),t.isClick||$(t.newPosition),f()},0),window.removeEventListener("mousemove",k),window.removeEventListener("touchmove",k),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},$=async j=>{if(j===null||Number.isNaN(+j))return;j<0?j=0:j>100&&(j=100);const X=100/((i.value-a.value)/o.value);let se=Math.round(j/X)*X*(i.value-a.value)*.01+a.value;se=Number.parseFloat(se.toFixed(l.value)),se!==e.modelValue&&r(Nt,se),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await qe(),t.dragging&&m(),v.value.updatePopper()};return Ae(()=>t.dragging,j=>{h(j)}),{disabled:n,button:_,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:x,formatValue:g,handleMouseEnter:S,handleMouseLeave:T,onButtonDown:A,onKeyDown:O,setPosition:$}},Dit=(e,t,r,n)=>({stops:F(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(r.value-e.min)/(e.max-e.min)||u>100*(n.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:o=>e.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),Pit=(e,t,r,n,a,i)=>{const o=u=>{a(Nt,u),a(Di,u)},s=()=>e.range?![r.value,n.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&ua("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Array.isArray(f)?f[1]<e.min?o([e.min,e.min]):f[0]>e.max?o([e.max,e.max]):f[0]<e.min?o([e.min,f[1]]):f[1]>e.max?o([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(d=>void 0)),t.oldValue=f.slice())):!e.range&&typeof f=="number"&&!Number.isNaN(f)&&(f<e.min?o(e.min):f>e.max?o(e.max):(t.firstValue=f,s()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(d=>void 0)),t.oldValue=f)))};l(),Ae(()=>t.dragging,u=>{u||l()}),Ae(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,d)=>f===c[d])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),Ae(()=>[e.min,e.max],()=>{l()})},Lit=Oe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:dv,default:"top"}}),Iit={[Nt]:e=>ct(e)},Rit=["tabindex"],Oit=te({name:"ElSliderButton"}),kit=te({...Oit,props:Lit,emits:Iit,setup(e,{expose:t,emit:r}){const n=e,a=Ce("slider"),i=Ar({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:n.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:v,onButtonDown:p,onKeyDown:g,setPosition:m}=Mit(n,i,r),{hovering:y,dragging:_}=Da(i);return t({onButtonDown:p,onKeyDown:g,setPosition:m,hovering:y,dragging:_}),(w,x)=>(N(),U("div",{ref_key:"button",ref:s,class:H([b(a).e("button-wrapper"),{hover:b(y),dragging:b(_)}]),style:Xe(b(f)),tabindex:b(o)?-1:0,onMouseenter:x[0]||(x[0]=(...S)=>b(h)&&b(h)(...S)),onMouseleave:x[1]||(x[1]=(...S)=>b(v)&&b(v)(...S)),onMousedown:x[2]||(x[2]=(...S)=>b(p)&&b(p)(...S)),onTouchstart:x[3]||(x[3]=(...S)=>b(p)&&b(p)(...S)),onFocus:x[4]||(x[4]=(...S)=>b(h)&&b(h)(...S)),onBlur:x[5]||(x[5]=(...S)=>b(v)&&b(v)(...S)),onKeydown:x[6]||(x[6]=(...S)=>b(g)&&b(g)(...S))},[J(b(Bi),{ref_key:"tooltip",ref:l,visible:b(c),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!b(u),persistent:""},{content:le(()=>[V("span",null,me(b(d)),1)]),default:le(()=>[V("div",{class:H([b(a).e("button"),{hover:b(y),dragging:b(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Rit))}});var $U=ke(kit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Nit=Oe({mark:{type:fe([String,Object]),default:void 0}});var Bit=te({name:"ElSliderMarker",props:Nit,setup(e){const t=Ce("slider"),r=F(()=>wt(e.mark)?e.mark:e.mark.label),n=F(()=>wt(e.mark)?void 0:e.mark.style);return()=>et("div",{class:t.e("marks-text"),style:n.value},r.value)}});const Fit=["id","role","aria-label","aria-labelledby"],Vit={key:1},zit=te({name:"ElSlider"}),Hit=te({...zit,props:vit,emits:pit,setup(e,{expose:t,emit:r}){const n=e,a=Ce("slider"),{t:i}=fr(),o=Ar({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:v,barStyle:p,resetSize:g,emitChange:m,onSliderWrapperPrevent:y,onSliderClick:_,onSliderDown:w,setFirstValue:x,setSecondValue:S}=yit(n,o,r),{stops:T,getStopStyle:A}=Dit(n,o,d,h),{inputId:C,isLabeledByFormItem:M}=$f(n,{formItemContext:s}),E=ca(),D=F(()=>n.inputSize||E.value),P=F(()=>n.label||i("el.slider.defaultLabel",{min:n.min,max:n.max})),L=F(()=>n.range?n.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):P.value),I=F(()=>n.formatValueText?n.formatValueText(j.value):`${j.value}`),O=F(()=>n.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),R=F(()=>n.formatValueText?n.formatValueText(X.value):`${X.value}`),B=F(()=>[a.b(),a.m(E.value),a.is("vertical",n.vertical),{[a.m("with-input")]:n.showInput}]),k=mit(n);Pit(n,o,d,h,r,s);const z=F(()=>{const ee=[n.min,n.max,n.step].map(K=>{const Z=`${K}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,ee)}),{sliderWrapper:$}=git(n,o,g),{firstValue:j,secondValue:X,sliderSize:Q}=Da(o),se=ee=>{o.dragging=ee};return Wt(Hne,{...Da(n),sliderSize:Q,disabled:f,precision:z,emitChange:m,resetSize:g,updateDragging:se}),t({onSliderClick:_}),(ee,K)=>{var Z,ne;return N(),U("div",{id:ee.range?b(C):void 0,ref_key:"sliderWrapper",ref:$,class:H(b(B)),role:ee.range?"group":void 0,"aria-label":ee.range&&!b(M)?b(P):void 0,"aria-labelledby":ee.range&&b(M)?(Z=b(s))==null?void 0:Z.labelId:void 0,onTouchstart:K[2]||(K[2]=(...re)=>b(y)&&b(y)(...re)),onTouchmove:K[3]||(K[3]=(...re)=>b(y)&&b(y)(...re))},[V("div",{ref_key:"slider",ref:l,class:H([b(a).e("runway"),{"show-input":ee.showInput&&!ee.range},b(a).is("disabled",b(f))]),style:Xe(b(v)),onMousedown:K[0]||(K[0]=(...re)=>b(w)&&b(w)(...re)),onTouchstart:K[1]||(K[1]=(...re)=>b(w)&&b(w)(...re))},[V("div",{class:H(b(a).e("bar")),style:Xe(b(p))},null,6),J($U,{id:ee.range?void 0:b(C),ref_key:"firstButton",ref:u,"model-value":b(j),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":ee.range||!b(M)?b(L):void 0,"aria-labelledby":!ee.range&&b(M)?(ne=b(s))==null?void 0:ne.labelId:void 0,"aria-valuemin":ee.min,"aria-valuemax":ee.range?b(X):ee.max,"aria-valuenow":b(j),"aria-valuetext":b(I),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":b(f),"onUpdate:modelValue":b(x)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),ee.range?(N(),he($U,{key:0,ref_key:"secondButton",ref:c,"model-value":b(X),vertical:ee.vertical,"tooltip-class":ee.tooltipClass,placement:ee.placement,role:"slider","aria-label":b(O),"aria-valuemin":b(j),"aria-valuemax":ee.max,"aria-valuenow":b(X),"aria-valuetext":b(R),"aria-orientation":ee.vertical?"vertical":"horizontal","aria-disabled":b(f),"onUpdate:modelValue":b(S)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ce("v-if",!0),ee.showStops?(N(),U("div",Vit,[(N(!0),U(Be,null,ht(b(T),(re,ie)=>(N(),U("div",{key:ie,class:H(b(a).e("stop")),style:Xe(b(A)(re))},null,6))),128))])):ce("v-if",!0),b(k).length>0?(N(),U(Be,{key:2},[V("div",null,[(N(!0),U(Be,null,ht(b(k),(re,ie)=>(N(),U("div",{key:ie,style:Xe(b(A)(re.position)),class:H([b(a).e("stop"),b(a).e("marks-stop")])},null,6))),128))]),V("div",{class:H(b(a).e("marks"))},[(N(!0),U(Be,null,ht(b(k),(re,ie)=>(N(),he(b(Bit),{key:ie,mark:re.mark,style:Xe(b(A)(re.position))},null,8,["mark","style"]))),128))],2)],64)):ce("v-if",!0)],38),ee.showInput&&!ee.range?(N(),he(b(vne),{key:0,ref:"input","model-value":b(j),class:H(b(a).e("input")),step:ee.step,disabled:b(f),controls:ee.showInputControls,min:ee.min,max:ee.max,debounce:ee.debounce,size:b(D),"onUpdate:modelValue":b(x),onChange:b(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ce("v-if",!0)],42,Fit)}}});var Git=ke(Hit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Uit=kt(Git),$it=Oe({prefixCls:{type:String}}),WU=te({name:"ElSpaceItem",props:$it,setup(e,{slots:t}){const r=Ce("space"),n=F(()=>`${e.prefixCls||r.b()}__item`);return()=>et("div",{class:n.value},ye(t,"default"))}}),YU={small:8,default:12,large:16};function Wit(e){const t=Ce("space"),r=F(()=>[t.b(),t.m(e.direction),e.class]),n=G(0),a=G(0),i=F(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=F(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${n.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return xo(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(We(s)){const[f=0,d=0]=s;n.value=f,a.value=d}else{let f;ct(s)?f=s:f=YU[s||"small"]||YU.small,(l||c)&&u==="horizontal"?n.value=a.value=f:u==="horizontal"?(n.value=f,a.value=0):(a.value=f,n.value=0)}}),{classes:r,containerStyle:i,itemStyle:o}}const Yit=Oe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:fe([String,Object,Array]),default:""},style:{type:fe([String,Array,Object]),default:""},alignment:{type:fe(String),default:"center"},prefixCls:{type:String},spacer:{type:fe([Object,String,Number,Array]),default:null,validator:e=>hn(e)||ct(e)||wt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:tu,validator:e=>ct(e)||We(e)&&e.length===2&&e.every(ct)}}),jit=te({name:"ElSpace",props:Yit,setup(e,{slots:t}){const{classes:r,containerStyle:n,itemStyle:a}=Wit(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{ZL(c)?We(c.children)&&c.children.forEach((d,h)=>{ZL(d)&&We(d.children)?i(d.children,`${s+h}-`,l):l.push(J(WU,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},$o.PROPS|$o.STYLE,["style","prefixCls"]))}):YUe(c)&&l.push(J(WU,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},$o.PROPS|$o.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=ye(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(We(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,v)=>{const p=[...d,h];return v!==f&&p.push(J("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[hn(s)?s:nr(s,$o.TEXT)],$o.STYLE)),p},[])}return J("div",{class:r.value,style:n.value},c,$o.STYLE|$o.CLASS)}return u.children}}}),Kit=kt(jit),Xit=Oe({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:fe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:fe([String,Object,Array])}}),Zit=te({name:"ElStatistic"}),qit=te({...Zit,props:Xit,setup(e,{expose:t}){const r=e,n=Ce("statistic"),a=F(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=r;if(dt(o))return o(i);if(!ct(i))return i;let[c,f=""]=String(i).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return t({displayValue:a}),(i,o)=>(N(),U("div",{class:H(b(n).b())},[i.$slots.title||i.title?(N(),U("div",{key:0,class:H(b(n).e("head"))},[ye(i.$slots,"title",{},()=>[nr(me(i.title),1)])],2)):ce("v-if",!0),V("div",{class:H(b(n).e("content"))},[i.$slots.prefix||i.prefix?(N(),U("div",{key:0,class:H(b(n).e("prefix"))},[ye(i.$slots,"prefix",{},()=>[V("span",null,me(i.prefix),1)])],2)):ce("v-if",!0),V("span",{class:H(b(n).e("number")),style:Xe(i.valueStyle)},me(b(a)),7),i.$slots.suffix||i.suffix?(N(),U("div",{key:1,class:H(b(n).e("suffix"))},[ye(i.$slots,"suffix",{},()=>[V("span",null,me(i.suffix),1)])],2)):ce("v-if",!0)],2)],2))}});var Qit=ke(qit,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const Gne=kt(Qit),Jit=Oe({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:fe([Number,Object]),default:0},valueStyle:{type:fe([String,Object,Array])}}),eot={finish:()=>!0,[ln]:e=>ct(e)},tot=[["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]],jU=e=>ct(e)?new Date(e).getTime():e.valueOf(),KU=(e,t)=>{let r=e;const n=/\[([^\]]*)]/g;return tot.reduce((i,[o,s])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(r/s);return r-=u*s,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},t).replace(n,"$1")},rot=te({name:"ElCountdown"}),not=te({...rot,props:Jit,emits:eot,setup(e,{expose:t,emit:r}){const n=e;let a;const i=G(jU(n.value)-Date.now()),o=F(()=>KU(i.value,n.format)),s=c=>KU(c,n.format),l=()=>{a&&(wT(a),a=void 0)},u=()=>{const c=jU(n.value),f=()=>{let d=c-Date.now();r("change",d),d<=0?(d=0,l(),r("finish")):a=cg(f),i.value=d};a=cg(f)};return Ae(()=>[n.value,n.format],()=>{l(),u()},{immediate:!0}),un(()=>{l()}),t({displayValue:o}),(c,f)=>(N(),he(b(Gne),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Bl({_:2},[ht(c.$slots,(d,h)=>({name:h,fn:le(()=>[ye(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var aot=ke(not,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const iot=kt(aot),oot=Oe({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"}}),sot={[ln]:(e,t)=>[e,t].every(ct)},lot=te({name:"ElSteps"}),uot=te({...lot,props:oot,emits:sot,setup(e,{emit:t}){const r=e,n=Ce("steps"),{children:a,addChild:i,removeChild:o}=_3(It(),"ElStep");return Ae(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Wt("ElSteps",{props:r,steps:a,addStep:i,removeStep:o}),Ae(()=>r.active,(s,l)=>{t(ln,s,l)}),(s,l)=>(N(),U("div",{class:H([b(n).b(),b(n).m(s.simple?"simple":s.direction)])},[ye(s.$slots,"default")],2))}});var cot=ke(uot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const fot=Oe({title:{type:String,default:""},icon:{type:Zr},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),dot=te({name:"ElStep"}),hot=te({...dot,props:fot,setup(e){const t=e,r=Ce("step"),n=G(-1),a=G({}),i=G(""),o=Ye("ElSteps"),s=It();xt(()=>{Ae([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([S])=>{w(S)},{immediate:!0})}),un(()=>{o.removeStep(x.uid)});const l=F(()=>t.status||i.value),u=F(()=>{const S=o.steps.value[n.value-1];return S?S.currentStatus:"wait"}),c=F(()=>o.props.alignCenter),f=F(()=>o.props.direction==="vertical"),d=F(()=>o.props.simple),h=F(()=>o.steps.value.length),v=F(()=>{var S;return((S=o.steps.value[h.value-1])==null?void 0:S.uid)===(s==null?void 0:s.uid)}),p=F(()=>d.value?"":o.props.space),g=F(()=>[r.b(),r.is(d.value?"simple":o.props.direction),r.is("flex",v.value&&!p.value&&!c.value),r.is("center",c.value&&!f.value&&!d.value)]),m=F(()=>{const S={flexBasis:ct(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(S.maxWidth=`${100/h.value}%`),S}),y=S=>{n.value=S},_=S=>{const T=S==="wait",A={transitionDelay:`${T?"-":""}${150*n.value}ms`},C=S===o.props.processStatus||T?0:100;A.borderWidth=C&&!d.value?"1px":0,A[o.props.direction==="vertical"?"height":"width"]=`${C}%`,a.value=A},w=S=>{S>n.value?i.value=o.props.finishStatus:S===n.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const T=o.steps.value[n.value-1];T&&T.calcProgress(i.value)},x=Ar({uid:s.uid,currentStatus:l,setIndex:y,calcProgress:_});return o.addStep(x),(S,T)=>(N(),U("div",{style:Xe(b(m)),class:H(b(g))},[ce(" icon & line "),V("div",{class:H([b(r).e("head"),b(r).is(b(l))])},[b(d)?ce("v-if",!0):(N(),U("div",{key:0,class:H(b(r).e("line"))},[V("i",{class:H(b(r).e("line-inner")),style:Xe(a.value)},null,6)],2)),V("div",{class:H([b(r).e("icon"),b(r).is(S.icon||S.$slots.icon?"icon":"text")])},[ye(S.$slots,"icon",{},()=>[S.icon?(N(),he(b(Ze),{key:0,class:H(b(r).e("icon-inner"))},{default:le(()=>[(N(),he(Ft(S.icon)))]),_:1},8,["class"])):b(l)==="success"?(N(),he(b(Ze),{key:1,class:H([b(r).e("icon-inner"),b(r).is("status")])},{default:le(()=>[J(b(P1))]),_:1},8,["class"])):b(l)==="error"?(N(),he(b(Ze),{key:2,class:H([b(r).e("icon-inner"),b(r).is("status")])},{default:le(()=>[J(b(el))]),_:1},8,["class"])):b(d)?ce("v-if",!0):(N(),U("div",{key:3,class:H(b(r).e("icon-inner"))},me(n.value+1),3))])],2)],2),ce(" title & description "),V("div",{class:H(b(r).e("main"))},[V("div",{class:H([b(r).e("title"),b(r).is(b(l))])},[ye(S.$slots,"title",{},()=>[nr(me(S.title),1)])],2),b(d)?(N(),U("div",{key:0,class:H(b(r).e("arrow"))},null,2)):(N(),U("div",{key:1,class:H([b(r).e("description"),b(r).is(b(l))])},[ye(S.$slots,"description",{},()=>[nr(me(S.description),1)])],2))],2)],6))}});var Une=ke(hot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const vot=kt(cot,{Step:Une}),pot=Pn(Une),got=Oe({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:r3},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Zr},activeActionIcon:{type:Zr},activeIcon:{type:Zr},inactiveIcon:{type:Zr},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:fe(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),mot={[Nt]:e=>la(e)||wt(e)||ct(e),[ln]:e=>la(e)||wt(e)||ct(e),[Di]:e=>la(e)||wt(e)||ct(e)},yot=["onClick"],_ot=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],bot=["aria-hidden"],wot=["aria-hidden"],Sot=["aria-hidden"],OI="ElSwitch",xot=te({name:OI}),Aot=te({...xot,props:got,emits:mot,setup(e,{expose:t,emit:r}){const n=e,a=It(),{formItem:i}=Vi(),o=ca(),s=Ce("switch");(A=>{A.forEach(C=>{Ul({from:C[0],replacement:C[1],scope:OI,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},F(()=>{var M;return!!((M=a.vnode.props)!=null&&M[C[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}=$f(n,{formItemContext:i}),c=ho(F(()=>n.loading)),f=G(n.modelValue!==!1),d=G(),h=G(),v=F(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",_.value)]),p=F(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),g=F(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),m=F(()=>({width:Hn(n.width)}));Ae(()=>n.modelValue,()=>{f.value=!0}),Ae(()=>n.value,()=>{f.value=!1});const y=F(()=>f.value?n.modelValue:n.value),_=F(()=>y.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(y.value)||(r(Nt,n.inactiveValue),r(ln,n.inactiveValue),r(Di,n.inactiveValue)),Ae(_,A=>{var C;d.value.checked=A,n.validateEvent&&((C=i==null?void 0:i.validate)==null||C.call(i,"change").catch(M=>void 0))});const w=()=>{const A=_.value?n.inactiveValue:n.activeValue;r(Nt,A),r(ln,A),r(Di,A),qe(()=>{d.value.checked=_.value})},x=()=>{if(c.value)return;const{beforeChange:A}=n;if(!A){w();return}const C=A();[p0(C),la(C)].includes(!0)||ua(OI,"beforeChange must return type `Promise<boolean>` or `boolean`"),p0(C)?C.then(E=>{E&&w()}).catch(E=>{}):C&&w()},S=F(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),T=()=>{var A,C;(C=(A=d.value)==null?void 0:A.focus)==null||C.call(A)};return xt(()=>{d.value.checked=_.value}),t({focus:T,checked:_}),(A,C)=>(N(),U("div",{class:H(b(v)),style:Xe(b(S)),onClick:it(x,["prevent"])},[V("input",{id:b(u),ref_key:"input",ref:d,class:H(b(s).e("input")),type:"checkbox",role:"switch","aria-checked":b(_),"aria-disabled":b(c),"aria-label":A.label,name:A.name,"true-value":A.activeValue,"false-value":A.inactiveValue,disabled:b(c),tabindex:A.tabindex,onChange:w,onKeydown:dr(x,["enter"])},null,42,_ot),!A.inlinePrompt&&(A.inactiveIcon||A.inactiveText)?(N(),U("span",{key:0,class:H(b(p))},[A.inactiveIcon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(A.inactiveIcon)))]),_:1})):ce("v-if",!0),!A.inactiveIcon&&A.inactiveText?(N(),U("span",{key:1,"aria-hidden":b(_)},me(A.inactiveText),9,bot)):ce("v-if",!0)],2)):ce("v-if",!0),V("span",{ref_key:"core",ref:h,class:H(b(s).e("core")),style:Xe(b(m))},[A.inlinePrompt?(N(),U("div",{key:0,class:H(b(s).e("inner"))},[A.activeIcon||A.inactiveIcon?(N(),he(b(Ze),{key:0,class:H(b(s).is("icon"))},{default:le(()=>[(N(),he(Ft(b(_)?A.activeIcon:A.inactiveIcon)))]),_:1},8,["class"])):A.activeText||A.inactiveText?(N(),U("span",{key:1,class:H(b(s).is("text")),"aria-hidden":!b(_)},me(b(_)?A.activeText:A.inactiveText),11,wot)):ce("v-if",!0)],2)):ce("v-if",!0),V("div",{class:H(b(s).e("action"))},[A.loading?(N(),he(b(Ze),{key:0,class:H(b(s).is("loading"))},{default:le(()=>[J(b(Hf))]),_:1},8,["class"])):A.activeActionIcon&&b(_)?(N(),he(b(Ze),{key:1},{default:le(()=>[(N(),he(Ft(A.activeActionIcon)))]),_:1})):A.inactiveActionIcon&&!b(_)?(N(),he(b(Ze),{key:2},{default:le(()=>[(N(),he(Ft(A.inactiveActionIcon)))]),_:1})):ce("v-if",!0)],2)],6),!A.inlinePrompt&&(A.activeIcon||A.activeText)?(N(),U("span",{key:1,class:H(b(g))},[A.activeIcon?(N(),he(b(Ze),{key:0},{default:le(()=>[(N(),he(Ft(A.activeIcon)))]),_:1})):ce("v-if",!0),!A.activeIcon&&A.activeText?(N(),U("span",{key:1,"aria-hidden":!b(_)},me(A.activeText),9,Sot)):ce("v-if",!0)],2)):ce("v-if",!0)],14,yot))}});var Tot=ke(Aot,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Cot=kt(Tot);/*!
|
||
* escape-html
|
||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
* Copyright(c) 2015 Andreas Lubbe
|
||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
* MIT Licensed
|
||
*/var Eot=/["'&<>]/,Mot=Dot;function Dot(e){var t=""+e,r=Eot.exec(t);if(!r)return t;var n,a="",i=0,o=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}o!==i&&(a+=t.substring(o,i)),o=i+1,a+=n}return o!==i?a+t.substring(o,i):a}const Pot=ru(Mot),ZM=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Lot=function(e,t,r,n,a){if(!t&&!n&&(!a||Array.isArray(a)&&!a.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const i=n?null:function(s,l){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?gn(s,u):u(s,l,e))):(t!=="$key"&&Vt(s)&&"$value"in s&&(s=s.$value),[Vt(s)?gn(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},$ne=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},Iot=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const a=e.columns[n];if(a.columnKey===t){r=a;break}}return r||ua("ElTable",`No column matching with column-key: ${t}`),r},XU=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?$ne(e,n[0]):null},Ka=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const a of r)n=n[a];return`${n}`}else if(typeof t=="function")return t.call(null,e)},uh=function(e,t){const r={};return(e||[]).forEach((n,a)=>{r[Ka(n,t)]={row:n,index:a}}),r};function Rot(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(or(t,n)){const a=t[n];typeof a<"u"&&(r[n]=a)}return r}function U3(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Wne(e){return e===""||e!==void 0&&(e=U3(e),Number.isNaN(e)&&(e=80)),e}function Oot(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function kot(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function u0(e,t,r){let n=!1;const a=e.indexOf(t),i=a!==-1,o=s=>{s==="add"?e.push(t):e.splice(a,1),n=!0,We(t.children)&&t.children.forEach(l=>{u0(e,l,r??!i)})};return la(r)?r&&!i?o("add"):!r&&i&&o("remove"):o(i?"remove":"add"),n}function Not(e,t,r="children",n="hasChildren"){const a=o=>!(Array.isArray(o)&&o.length);function i(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const c=u[r];a(c)||i(u,c,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];a(s)||i(o,s,0)})}let hu;function Bot(e,t,r,n,a){a=Cee({enterable:!0,showArrow:!0},a);const i=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${i}-scrollbar__wrap`);function s(){const g=a.effect==="light",m=document.createElement("div");return m.className=[`${i}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),r=Pot(r),m.innerHTML=r,m.style.zIndex=String(n()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${i}-popper__arrow`,g}function u(){c&&c.update()}hu==null||hu(),hu=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",hu),hu=void 0}catch{}};let c=null,f=u,d=hu;a.enterable&&({onOpen:f,onClose:d}=ote({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:hu}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(a.offset&&v.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=a.popperOptions||{};return c=nte(t,h,{placement:a.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",hu),c}function Yne(e){return e.children?fGe(e.children,Yne):[e]}function ZU(e,t){return e+t.colSpan}const jne=(e,t,r,n)=>{let a=0,i=e;const o=r.states.columns.value;if(n){const l=Yne(n[e]);a=o.slice(0,o.indexOf(l[0])).reduce(ZU,0),i=a+l.reduce(ZU,0)-1}else a=e;let s;switch(t){case"left":i<r.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<r.states.fixedLeafColumnsLength.value?s="left":a>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},$3=(e,t,r,n,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=jne(t,r,n,a);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+i===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-i===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function qU(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const W3=(e,t,r,n)=>{const{direction:a,start:i=0,after:o=0}=jne(e,t,r,n);if(!a)return;const s={},l=a==="left",u=r.states.columns.value;return l?s.left=u.slice(0,i).reduce(qU,0):s.right=u.slice(o+1).reverse().reduce(qU,0),s},yg=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Fot(e){const t=It(),r=G(!1),n=G([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const c=uh(n.value,u);n.value=l.reduce((f,d)=>{const h=Ka(d,u);return c[h]&&f.push(d),f},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{u0(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=uh(u,c);n.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!uh(n.value,u)[Ka(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function Vot(e){const t=It(),r=G(null),n=G(null),a=u=>{t.store.assertRowKey(),r.value=u,o(u)},i=()=>{r.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(b(c)||[]).find(h=>Ka(h,f.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=n.value;if(u&&u!==c){n.value=u,t.emit("current-change",n.value,c);return}!u&&c&&(n.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=n.value;if(!c.includes(f)&&f){if(u){const d=Ka(f,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,f)}else r.value&&(o(r.value),i())},states:{_currentRowKey:r,currentRow:n}}}function zot(e){const t=G([]),r=G({}),n=G(16),a=G(!1),i=G({}),o=G("hasChildren"),s=G("children"),l=It(),u=F(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=F(()=>{const m=e.rowKey.value,y=Object.keys(i.value),_={};return y.length&&y.forEach(w=>{if(i.value[w].length){const x={children:[]};i.value[w].forEach(S=>{const T=Ka(S,m);x.children.push(T),S[o.value]&&!_[T]&&(_[T]={children:[]})}),_[w]=x}}),_}),f=m=>{const y=e.rowKey.value,_={};return Not(m,(w,x,S)=>{const T=Ka(w,y);Array.isArray(x)?_[T]={children:x.map(A=>Ka(A,y)),level:S}:a.value&&(_[T]={children:[],lazy:!0,level:S})},s.value,o.value),_},d=(m=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const w=u.value,x=c.value,S=Object.keys(w),T={};if(S.length){const A=b(r),C=[],M=(D,P)=>{if(m)return t.value?y||t.value.includes(P):!!(y||D!=null&&D.expanded);{const L=y||t.value&&t.value.includes(P);return!!(D!=null&&D.expanded||L)}};S.forEach(D=>{const P=A[D],L={...w[D]};if(L.expanded=M(P,D),L.lazy){const{loaded:I=!1,loading:O=!1}=P||{};L.loaded=!!I,L.loading=!!O,C.push(D)}T[D]=L});const E=Object.keys(x);a.value&&E.length&&C.length&&E.forEach(D=>{const P=A[D],L=x[D].children;if(C.includes(D)){if(T[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");T[D].children=L}else{const{loaded:I=!1,loading:O=!1}=P||{};T[D]={lazy:!0,loaded:!!I,loading:!!O,expanded:M(P,D),children:L,level:""}}})}r.value=T,(_=l.store)==null||_.updateTableScrollY()};Ae(()=>t.value,()=>{d(!0)}),Ae(()=>u.value,()=>{d()}),Ae(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,w=Ka(m,_),x=w&&r.value[w];if(w&&x&&"expanded"in x){const S=x.expanded;y=typeof y>"u"?!x.expanded:y,r.value[w].expanded=y,S!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const y=e.rowKey.value,_=Ka(m,y),w=r.value[_];a.value&&w&&"loaded"in w&&!w.loaded?g(m,_,w):v(m,void 0)},g=(m,y,_)=>{const{load:w}=l.props;w&&!r.value[y].loaded&&(r.value[y].loading=!0,w(m,_,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,x.length&&(i.value[y]=x),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:r,indent:n,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const Hot=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:Lot(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},ES=e=>{const t=[];return e.forEach(r=>{r.children&&r.children.length>0?t.push.apply(t,ES(r.children)):t.push(r)}),t};function Got(){var e;const t=It(),{size:r}=Da((e=t.proxy)==null?void 0:e.$props),n=G(null),a=G([]),i=G([]),o=G(!1),s=G([]),l=G([]),u=G([]),c=G([]),f=G([]),d=G([]),h=G([]),v=G([]),p=[],g=G(0),m=G(0),y=G(0),_=G(!1),w=G([]),x=G(!1),S=G(!1),T=G(null),A=G({}),C=G(null),M=G(null),E=G(null),D=G(null),P=G(null);Ae(a,()=>t.state&&R(!1),{deep:!0});const L=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},I=tt=>{var be;(be=tt.children)==null||be.forEach(pe=>{pe.fixed=tt.fixed,I(pe)})},O=()=>{s.value.forEach(Me=>{I(Me)}),c.value=s.value.filter(Me=>Me.fixed===!0||Me.fixed==="left"),f.value=s.value.filter(Me=>Me.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 tt=s.value.filter(Me=>!Me.fixed);l.value=[].concat(c.value).concat(tt).concat(f.value);const be=ES(tt),pe=ES(c.value),de=ES(f.value);g.value=be.length,m.value=pe.length,y.value=de.length,u.value=[].concat(pe).concat(be).concat(de),o.value=c.value.length>0||f.value.length>0},R=(tt,be=!1)=>{tt&&O(),be?t.state.doLayout():t.state.debouncedUpdateLayout()},B=tt=>w.value.includes(tt),k=()=>{_.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},z=()=>{let tt;if(n.value){tt=[];const be=uh(w.value,n.value),pe=uh(a.value,n.value);for(const de in be)or(be,de)&&!pe[de]&&tt.push(be[de].row)}else tt=w.value.filter(be=>!a.value.includes(be));if(tt.length){const be=w.value.filter(pe=>!tt.includes(pe));w.value=be,t.emit("selection-change",be.slice())}},$=()=>(w.value||[]).slice(),j=(tt,be=void 0,pe=!0)=>{if(u0(w.value,tt,be)){const Me=(w.value||[]).slice();pe&&t.emit("select",Me,tt),t.emit("selection-change",Me)}},X=()=>{var tt,be;const pe=S.value?!_.value:!(_.value||w.value.length);_.value=pe;let de=!1,Me=0;const ae=(be=(tt=t==null?void 0:t.store)==null?void 0:tt.states)==null?void 0:be.rowKey.value;a.value.forEach((Ge,St)=>{const Kt=St+Me;T.value?T.value.call(null,Ge,Kt)&&u0(w.value,Ge,pe)&&(de=!0):u0(w.value,Ge,pe)&&(de=!0),Me+=ee(Ka(Ge,ae))}),de&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},Q=()=>{const tt=uh(w.value,n.value);a.value.forEach(be=>{const pe=Ka(be,n.value),de=tt[pe];de&&(w.value[de.index]=be)})},se=()=>{var tt,be,pe;if(((tt=a.value)==null?void 0:tt.length)===0){_.value=!1;return}let de;n.value&&(de=uh(w.value,n.value));const Me=function(Kt){return de?!!de[Ka(Kt,n.value)]:w.value.includes(Kt)};let ae=!0,Ge=0,St=0;for(let Kt=0,Xn=(a.value||[]).length;Kt<Xn;Kt++){const An=(pe=(be=t==null?void 0:t.store)==null?void 0:be.states)==null?void 0:pe.rowKey.value,Io=Kt+St,Ya=a.value[Kt],we=T.value&&T.value.call(null,Ya,Io);if(Me(Ya))Ge++;else if(!T.value||we){ae=!1;break}St+=ee(Ka(Ya,An))}Ge===0&&(ae=!1),_.value=ae},ee=tt=>{var be;if(!t||!t.store)return 0;const{treeData:pe}=t.store.states;let de=0;const Me=(be=pe.value[tt])==null?void 0:be.children;return Me&&(de+=Me.length,Me.forEach(ae=>{de+=ee(ae)})),de},K=(tt,be)=>{Array.isArray(tt)||(tt=[tt]);const pe={};return tt.forEach(de=>{A.value[de.id]=be,pe[de.columnKey||de.id]=be}),pe},Z=(tt,be,pe)=>{M.value&&M.value!==tt&&(M.value.order=null),M.value=tt,E.value=be,D.value=pe},ne=()=>{let tt=b(i);Object.keys(A.value).forEach(be=>{const pe=A.value[be];if(!pe||pe.length===0)return;const de=$ne({columns:u.value},be);de&&de.filterMethod&&(tt=tt.filter(Me=>pe.some(ae=>de.filterMethod.call(null,ae,Me,de))))}),C.value=tt},re=()=>{a.value=Hot(C.value,{sortingColumn:M.value,sortProp:E.value,sortOrder:D.value})},ie=(tt=void 0)=>{tt&&tt.filter||ne(),re()},Y=tt=>{const{tableHeaderRef:be}=t.refs;if(!be)return;const pe=Object.assign({},be.filterPanels),de=Object.keys(pe);if(de.length)if(typeof tt=="string"&&(tt=[tt]),Array.isArray(tt)){const Me=tt.map(ae=>Iot({columns:u.value},ae));de.forEach(ae=>{const Ge=Me.find(St=>St.id===ae);Ge&&(Ge.filteredValue=[])}),t.store.commit("filterChange",{column:Me,values:[],silent:!0,multi:!0})}else de.forEach(Me=>{const ae=u.value.find(Ge=>Ge.id===Me);ae&&(ae.filteredValue=[])}),A.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},q=()=>{M.value&&(Z(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:oe,toggleRowExpansion:ve,updateExpandRows:_e,states:ge,isRowExpanded:Le}=Fot({data:a,rowKey:n}),{updateTreeExpandKeys:Se,toggleTreeExpansion:xe,updateTreeData:Te,loadOrToggle:Ve,states:He}=zot({data:a,rowKey:n}),{updateCurrentRowData:je,updateCurrentRow:Pe,setCurrentRowKey:Ue,states:gt}=Vot({data:a,rowKey:n});return{assertRowKey:L,updateColumns:O,scheduleLayout:R,isSelected:B,clearSelection:k,cleanSelection:z,getSelectionRows:$,toggleRowSelection:j,_toggleAllSelection:X,toggleAllSelection:null,updateSelectionByRowKey:Q,updateAllSelected:se,updateFilters:K,updateCurrentRow:Pe,updateSort:Z,execFilter:ne,execSort:re,execQuery:ie,clearFilter:Y,clearSort:q,toggleRowExpansion:ve,setExpandRowKeysAdapter:tt=>{oe(tt),Se(tt)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(tt,be)=>{u.value.some(({type:de})=>de==="expand")?ve(tt,be):xe(tt,be)},isRowExpanded:Le,updateExpandRows:_e,updateCurrentRowData:je,loadOrToggle:Ve,updateTreeData:Te,states:{tableSize:r,rowKey:n,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:_,selection:w,reserveSelection:x,selectOnIndeterminate:S,selectable:T,filters:A,filteredData:C,sortingColumn:M,sortProp:E,sortOrder:D,hoverRow:P,...ge,...He,...gt}}}function kI(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=kI(r.children,t)),r)})}function NI(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&NI(t.children)}),e.sort((t,r)=>t.no-r.no)}function Uot(){const e=It(),t=Got();return{ns:Ce("table"),...t,mutations:{setData(o,s){const l=b(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),b(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l,u){const c=b(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=kI(c,l)):(c.push(s),f=c),NI(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(NI(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=b(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),qe(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=kI(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=b(o.columns).find(d=>d.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=b(l),d=b(u),h=b(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){qe(()=>e.layout.updateScrollY.apply(e.layout))}}}const c0={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 $ot(e,t){if(!e)throw new Error("Table is required.");const r=Uot();return r.toggleAllSelection=Ni(r._toggleAllSelection,10),Object.keys(c0).forEach(n=>{Kne(Xne(t,n),n,r)}),Wot(r,t),r}function Wot(e,t){Object.keys(c0).forEach(r=>{Ae(()=>Xne(t,r),n=>{Kne(n,r,e)})})}function Kne(e,t,r){let n=e,a=c0[t];typeof c0[t]=="object"&&(a=a.key,n=n||c0[t].default),r.states[a].value=n}function Xne(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(a=>{n=n[a]}),n}else return e[t]}class Yot{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=G(null),this.scrollX=G(!1),this.scrollY=G(!1),this.bodyWidth=G(null),this.fixedWidth=G(null),this.rightFixedWidth=G(null),this.gutterWidth=0;for(const r in t)or(t,r)&&(Qr(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(r!=null&&r.wrapRef)){let n=!0;const a=this.scrollY.value;return n=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(t,r="height"){if(!ur)return;const n=this.table.vnode.el;if(t=Oot(t),this.height.value=Number(t),!n&&(t||t===0))return qe(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!ur)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(a.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;i.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),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),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var a,i;switch(t){case"columns":(a=n.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=n.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:jot}=hs,Kot=te({name:"ElTableFilterPanel",components:{ElCheckbox:hs,ElCheckboxGroup:jot,ElScrollbar:ic,ElTooltip:Bi,ElIcon:Ze,ArrowDown:Vf,ArrowUp:mT},directives:{ClickOutside:Df},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=It(),{t:r}=fr(),n=Ce("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=G(!1),o=G(null),s=F(()=>e.column&&e.column.filters),l=F({get:()=>{var w;return(((w=e.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=F({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),c=F(()=>e.column?e.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{y(u.value),d()},g=()=>{u.value=[],y(u.value),d()},m=w=>{l.value=w,y(typeof w<"u"&&w!==null?u.value:[]),d()},y=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Ae(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=F(()=>{var w,x;return(x=(w=o.value)==null?void 0:w.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),Xot={key:0},Zot=["disabled"],qot=["label","onClick"];function Qot(e,t,r,n,a,i){const o=bt("el-checkbox"),s=bt("el-checkbox-group"),l=bt("el-scrollbar"),u=bt("arrow-up"),c=bt("arrow-down"),f=bt("el-icon"),d=bt("el-tooltip"),h=_0("click-outside");return N(),he(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:le(()=>[e.multiple?(N(),U("div",Xot,[V("div",{class:H(e.ns.e("content"))},[J(l,{"wrap-class":e.ns.e("wrap")},{default:le(()=>[J(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:H(e.ns.e("checkbox-group"))},{default:le(()=>[(N(!0),U(Be,null,ht(e.filters,v=>(N(),he(o,{key:v.value,label:v.value},{default:le(()=>[nr(me(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),V("div",{class:H(e.ns.e("bottom"))},[V("button",{class:H({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},me(e.t("el.table.confirmFilter")),11,Zot),V("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},me(e.t("el.table.resetFilter")),1)],2)])):(N(),U("ul",{key:1,class:H(e.ns.e("list"))},[V("li",{class:H([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},me(e.t("el.table.clearFilter")),3),(N(!0),U(Be,null,ht(e.filters,v=>(N(),U("li",{key:v.value,class:H([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},me(v.text),11,qot))),128))],2))]),default:le(()=>[Ct((N(),U("span",{class:H([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[J(f,null,{default:le(()=>[e.column.filterOpened?(N(),he(u,{key:0})):(N(),he(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Jot=ke(Kot,[["render",Qot],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Zne(e){const t=It();Y2(()=>{r.value.addObserver(t)}),xt(()=>{n(r.value),a(r.value)}),qu(()=>{n(r.value),a(r.value)}),Xl(()=>{r.value.removeObserver(t)});const r=F(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),n=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},a=i=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",d.style.display=i.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:a}}const nu=Symbol("ElTable");function est(e,t){const r=It(),n=Ye(nu),a=p=>{p.stopPropagation()},i=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&a(p),n==null||n.emit("header-click",g,p)},o=(p,g)=>{n==null||n.emit("header-contextmenu",g,p)},s=G(null),l=G(!1),u=G({}),c=(p,g)=>{if(ur&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=n;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,w=r.vnode.el.querySelector(`th.${g.id}`),x=w.getBoundingClientRect(),S=x.left-_+30;Pl(w,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const T=m==null?void 0:m.refs.resizeProxy;T.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const A=M=>{const E=M.clientX-u.value.startMouseLeft,D=u.value.startLeft+E;T.style.left=`${Math.max(S,D)}px`},C=()=>{if(l.value){const{startColumnLeft:M,startLeft:E}=u.value,P=Number.parseInt(T.style.left,10)-M;g.width=g.realWidth=P,m==null||m.emit("header-dragend",g.width,E-M,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",C),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ro(w,"noclick")},0)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",C)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const m=p.target;if(!us(m))return;const y=m==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),w=document.body.style;_.width>12&&_.right-p.pageX<8?(w.cursor="col-resize",Ws(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",Ws(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{ur&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var y;p.stopPropagation();const _=g.order===m?null:m||h(g),w=(y=p.target)==null?void 0:y.closest("th");if(w&&Ws(w,"noclick")){ro(w,"noclick");return}if(!g.sortable)return;const x=e.store.states;let S=x.sortProp.value,T;const A=x.sortingColumn.value;(A!==g||A===g&&A.order===null)&&(A&&(A.order=null),x.sortingColumn.value=g,S=g.property),_?T=g.order=_:T=g.order=null,x.sortProp.value=S,x.sortOrder.value=T,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:a}}function tst(e){const t=Ye(nu),r=Ce("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,c)=>{var f;let d=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=W3(l,c.fixed,e.store,u);return yg(h,"left"),yg(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=$3(r.b(),l,c.fixed,e.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.sortable&&d.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:c})),d.push(r.e("cell")),d.filter(v=>!!v).join(" ")}}}const qne=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,qne(r.children))):t.push(r)}),t},rst=e=>{let t=1;const r=(i,o)=>{if(o&&(i.level=o.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{r(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,r(i,void 0)});const n=[];for(let i=0;i<t;i++)n.push([]);return qne(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=t-i.level+1,n[i.level-1].push(i)}),n};function nst(e){const t=Ye(nu),r=F(()=>rst(e.store.states.originColumns.value));return{isGroup:F(()=>{const i=r.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var ast=te({name:"ElTableHeader",components:{ElCheckbox:hs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=It(),n=Ye(nu),a=Ce("table"),i=G({}),{onColumnsChange:o,onScrollableChange:s}=Zne(n);xt(async()=>{await qe(),await qe();const{prop:S,order:T}=e.defaultSort;n==null||n.store.commit("sort",{prop:S,order:T,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=est(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=tst(e),{isGroup:_,toggleAllSelection:w,columnRows:x}=nst(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return et("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>et("tr",{class:i(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),et("th",{class:a(m,_,g,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(m,_,g,y),onClick:w=>s(w,y),onContextmenu:w=>l(w,y),onMousedown:w=>u(w,y),onMousemove:w=>c(w,y),onMouseout:d},[et("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:h,_self:v}):y.label,y.sortable&&et("span",{onClick:w=>f(w,y),class:"caret-wrapper"},[et("i",{onClick:w=>f(w,y,"ascending"),class:"sort-caret ascending"}),et("i",{onClick:w=>f(w,y,"descending"),class:"sort-caret descending"})]),y.filterable&&et(Jot,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(w,x)=>{y[w]=x}})])]))))))}});function ist(e){const t=Ye(nu),r=G(""),n=G(et("div")),{nextZIndex:a}=im(),i=(v,p,g)=>{var m;const y=t,_=ZM(v);let w;const x=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;_&&(w=XU({columns:e.store.states.columns.value},_,x),w&&(y==null||y.emit(`cell-${g}`,p,w,_,v))),y==null||y.emit(`row-${g}`,p,w,v)},o=(v,p)=>{i(v,p,"dblclick")},s=(v,p)=>{e.store.commit("setCurrentRow",p),i(v,p,"click")},l=(v,p)=>{i(v,p,"contextmenu")},u=Ni(v=>{e.store.commit("setHoverRow",v)},30),c=Ni(()=>{e.store.commit("setHoverRow",null)},30),f=v=>{const p=window.getComputedStyle(v,null),g=Number.parseInt(p.paddingLeft,10)||0,m=Number.parseInt(p.paddingRight,10)||0,y=Number.parseInt(p.paddingTop,10)||0,_=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:m,top:y,bottom:_}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(v,p,g)=>{var m;const y=t,_=ZM(v),w=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;if(_){const R=XU({columns:e.store.states.columns.value},_,w),B=y.hoverState={cell:_,column:R,row:p};y==null||y.emit("cell-mouse-enter",B.row,B.column,B.cell,v)}if(!g)return;const x=v.target.querySelector(".cell");if(!(Ws(x,`${w}-tooltip`)&&x.childNodes.length))return;const S=document.createRange();S.setStart(x,0),S.setEnd(x,x.childNodes.length);let T=S.getBoundingClientRect().width,A=S.getBoundingClientRect().height;T-Math.floor(T)<.001&&(T=Math.floor(T)),A-Math.floor(A)<.001&&(A=Math.floor(A));const{top:E,left:D,right:P,bottom:L}=f(x),I=D+P,O=E+L;(T+I>x.offsetWidth||A+O>x.offsetHeight||x.scrollWidth>x.offsetWidth)&&Bot(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,a,g)},handleCellMouseLeave:v=>{if(!ZM(v))return;const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:r,tooltipTrigger:n}}function ost(e){const t=Ye(nu),r=Ce("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=W3(c,e==null?void 0:e.fixed,e.store);return yg(p,"left"),yg(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=$3(r.b(),c,e==null?void 0:e.fixed,e.store,void 0,h),p=[d.id,d.align,d.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),p.push(r.e("cell")),p.filter(m=>!!m).join(" ")},getSpan:(u,c,f,d)=>{let h=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function sst(e){const t=Ye(nu),r=Ce("table"),{handleDoubleClick:n,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=ist(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=ost(e),y=F(()=>e.store.states.columns.value.findIndex(({type:T})=>T==="default")),_=(T,A)=>{const C=t.props.rowKey;return C?Ka(T,C):A},w=(T,A,C,M=!1)=>{const{tooltipEffect:E,tooltipOptions:D,store:P}=e,{indent:L,columns:I}=P.states,O=h(T,A);let R=!0;return C&&(O.push(r.em("row",`level-${C.level}`)),R=C.display),et("tr",{style:[R?null:{display:"none"},d(T,A)],class:O,key:_(T,A),onDblclick:k=>n(k,T),onClick:k=>a(k,T),onContextmenu:k=>i(k,T),onMouseenter:()=>o(A),onMouseleave:s},I.value.map((k,z)=>{const{rowspan:$,colspan:j}=g(T,k,A,z);if(!$||!j)return null;const X=Object.assign({},k);X.realWidth=m(I.value,j,z);const Q={store:e.store,_self:e.context||t,column:X,row:T,$index:A,cellIndex:z,expanded:M};z===y.value&&C&&(Q.treeNode={indent:C.level*L.value,level:C.level},typeof C.expanded=="boolean"&&(Q.treeNode.expanded=C.expanded,"loading"in C&&(Q.treeNode.loading=C.loading),"noLazyChildren"in C&&(Q.treeNode.noLazyChildren=C.noLazyChildren)));const se=`${A},${z}`,ee=X.columnKey||X.rawColumnKey||"",K=x(z,k,Q),Z=k.showOverflowTooltip&&Cee({effect:E},D,k.showOverflowTooltip);return et("td",{style:v(A,z,T,k),class:p(A,z,T,k,j-1),key:`${ee}${se}`,rowspan:$,colspan:j,onMouseenter:ne=>l(ne,T,Z),onMouseleave:u},[K])}))},x=(T,A,C)=>A.renderCell(C);return{wrappedRowRender:(T,A)=>{const C=e.store,{isRowExpanded:M,assertRowKey:E}=C,{treeData:D,lazyTreeNodeMap:P,childrenColumnName:L,rowKey:I}=C.states,O=C.states.columns.value;if(O.some(({type:B})=>B==="expand")){const B=M(T),k=w(T,A,void 0,B),z=t.renderExpanded;return B?z?[[k,et("tr",{key:`expanded-row__${k.key}`},[et("td",{colspan:O.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[z({row:T,$index:A,store:C,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),k):[[k]]}else if(Object.keys(D.value).length){E();const B=Ka(T,I.value);let k=D.value[B],z=null;k&&(z={expanded:k.expanded,level:k.level,display:!0},typeof k.lazy=="boolean"&&(typeof k.loaded=="boolean"&&k.loaded&&(z.noLazyChildren=!(k.children&&k.children.length)),z.loading=k.loading));const $=[w(T,A,z)];if(k){let j=0;const X=(se,ee)=>{se&&se.length&&ee&&se.forEach(K=>{const Z={display:ee.display&&ee.expanded,level:ee.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ne=Ka(K,I.value);if(ne==null)throw new Error("For nested data item, row-key is required.");if(k={...D.value[ne]},k&&(Z.expanded=k.expanded,k.level=k.level||Z.level,k.display=!!(k.expanded&&Z.display),typeof k.lazy=="boolean"&&(typeof k.loaded=="boolean"&&k.loaded&&(Z.noLazyChildren=!(k.children&&k.children.length)),Z.loading=k.loading)),j++,$.push(w(K,A+j,Z)),k){const re=P.value[ne]||K[L.value];X(re,k)}})};k.display=!0;const Q=P.value[B]||T[L.value];X(Q,k)}return $}else return w(T,A,void 0)},tooltipContent:c,tooltipTrigger:f}}const lst={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 ust=te({name:"ElTableBody",props:lst,setup(e){const t=It(),r=Ye(nu),n=Ce("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=sst(e),{onColumnsChange:s,onScrollableChange:l}=Zne(r);return Ae(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!ur||cg(()=>{const f=t==null?void 0:t.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${n.e("row")}`)),h=d[c],v=d[u];h&&ro(h,"hover-row"),v&&Pl(v,"hover-row")})}),Xl(()=>{var u;(u=hu)==null||u()}),{ns:n,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return et("tbody",{tabIndex:-1},[r.reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function cst(){const e=Ye(nu),t=e==null?void 0:e.store,r=F(()=>t.states.fixedLeafColumnsLength.value),n=F(()=>t.states.rightFixedColumns.value.length),a=F(()=>t.states.columns.value.length),i=F(()=>t.states.fixedColumns.value.length),o=F(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function fst(e){const{columns:t}=cst(),r=Ce("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...$3(r.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(r.is("leaf")),l},getCellStyles:(i,o)=>{const s=W3(o,i.fixed,e.store);return yg(s,"left"),yg(s,"right"),s},columns:t}}var dst=te({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:n}=fst(e);return{ns:Ce("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:a}=this,i=this.store.states.data.value;let o=[];return n?o=n({columns:e,data:i}):e.forEach((s,l)=>{if(l===0){o[l]=a;return}const u=i.map(h=>Number(h[s.property])),c=[];let f=!0;u.forEach(h=>{if(!Number.isNaN(+h)){f=!1;const v=`${h}`.split(".")[1];c.push(v?v.length:0)}});const d=Math.max.apply(null,c);f?o[l]="":o[l]=u.reduce((h,v)=>{const p=Number(v);return Number.isNaN(+p)?h:Number.parseFloat((h+v).toFixed(Math.min(d,20)))},0)}),et(et("tfoot",[et("tr",{},[...e.map((s,l)=>et("td",{key:l,colspan:s.colSpan,rowspan:s.rowSpan,class:r(e,l),style:t(s,l)},[et("div",{class:["cell",s.labelClassName]},[o[l]])]))])]))}});function hst(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function vst(e,t,r,n){const a=G(!1),i=G(null),o=G(!1),s=k=>{o.value=k},l=G({width:null,height:null,headerHeight:null}),u=G(!1),c={display:"inline-block",verticalAlign:"middle"},f=G(),d=G(0),h=G(0),v=G(0),p=G(0),g=G(0);xo(()=>{t.setHeight(e.height)}),xo(()=>{t.setMaxHeight(e.maxHeight)}),Ae(()=>[e.currentRowKey,r.states.rowKey],([k,z])=>{!b(z)||!b(k)||r.setCurrentRowKey(`${k}`)},{immediate:!0}),Ae(()=>e.data,k=>{n.store.commit("setData",k)},{immediate:!0,deep:!0}),xo(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},y=(k,z)=>{const{pixelX:$,pixelY:j}=z;Math.abs($)>=Math.abs(j)&&(n.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},_=F(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),w=F(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};xt(async()=>{await qe(),r.updateColumns(),M(),requestAnimationFrame(x);const k=n.vnode.el,z=n.refs.headerWrapper;e.flexible&&k&&k.parentElement&&(k.parentElement.style.minWidth="0"),l.value={width:f.value=k.offsetWidth,height:k.offsetHeight,headerHeight:e.showHeader&&z?z.offsetHeight:null},r.states.columns.value.forEach($=>{$.filteredValue&&$.filteredValue.length&&n.store.commit("filterChange",{column:$,values:$.filteredValue,silent:!0})}),n.$ready=!0});const S=(k,z)=>{if(!k)return;const $=Array.from(k.classList).filter(j=>!j.startsWith("is-scrolling-"));$.push(t.scrollX.value?z:"is-scrolling-none"),k.className=$.join(" ")},T=k=>{const{tableWrapper:z}=n.refs;S(z,k)},A=k=>{const{tableWrapper:z}=n.refs;return!!(z&&z.classList.contains(k))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const ee="is-scrolling-none";A(ee)||T(ee);return}const k=n.refs.scrollBarRef.wrapRef;if(!k)return;const{scrollLeft:z,offsetWidth:$,scrollWidth:j}=k,{headerWrapper:X,footerWrapper:Q}=n.refs;X&&(X.scrollLeft=z),Q&&(Q.scrollLeft=z);const se=j-$-1;z>=se?T("is-scrolling-right"):T(z===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&dn(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?di(n.vnode.el,E):dn(window,"resize",E),di(n.refs.bodyWrapper,()=>{var k,z;E(),(z=(k=n.refs)==null?void 0:k.scrollBarRef)==null||z.update()}))},E=()=>{var k,z,$,j;const X=n.vnode.el;if(!n.$ready||!X)return;let Q=!1;const{width:se,height:ee,headerHeight:K}=l.value,Z=f.value=X.offsetWidth;se!==Z&&(Q=!0);const ne=X.offsetHeight;(e.height||_.value)&&ee!==ne&&(Q=!0);const re=e.tableLayout==="fixed"?n.refs.headerWrapper:(k=n.refs.tableHeaderRef)==null?void 0:k.$el;e.showHeader&&(re==null?void 0:re.offsetHeight)!==K&&(Q=!0),d.value=((z=n.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,v.value=(re==null?void 0:re.scrollHeight)||0,p.value=(($=n.refs.footerWrapper)==null?void 0:$.offsetHeight)||0,g.value=((j=n.refs.appendWrapper)==null?void 0:j.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,Q&&(l.value={width:Z,height:ne,headerHeight:e.showHeader&&(re==null?void 0:re.offsetHeight)||0},x())},D=ca(),P=F(()=>{const{bodyWidth:k,scrollY:z,gutterWidth:$}=t;return k.value?`${k.value-(z.value?$:0)}px`:""}),L=F(()=>e.maxHeight?"fixed":e.tableLayout),I=F(()=>{if(e.data&&e.data.length)return null;let k="100%";e.height&&h.value&&(k=`${h.value}px`);const z=f.value;return{width:z?`${z}px`:"",height:k}}),O=F(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),R=F(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:y,tableSize:D,emptyBlockStyle:I,handleFixedMousewheel:(k,z)=>{const $=n.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const j=$.scrollTop;z.pixelY<0&&j!==0&&k.preventDefault(),z.pixelY>0&&$.scrollHeight-$.clientHeight>j&&k.preventDefault(),$.scrollTop+=Math.ceil(z.pixelY/5)}else $.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:o,bodyWidth:P,resizeState:l,doLayout:x,tableBodyStyles:w,tableLayout:L,scrollbarViewStyle:c,tableInnerStyle:O,scrollbarStyle:R}}function pst(e){const t=G(),r=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(a,i)};xt(()=>{r()}),Xl(()=>{var n;(n=t.value)==null||n.disconnect()})}var gst={data:{type:Array,default:()=>[]},size:Ga,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]};function Qne(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(a=>a.width===void 0)&&(r=[]);const n=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return et("colgroup",{},r.map(a=>et("col",n(a))))}Qne.props=["columns","tableLayout"];const mst=()=>{const e=G(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},r=(i,o)=>{const s=e.value;s&&ct(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>r("Top",i),setScrollLeft:i=>r("Left",i)}};let yst=1;const _st=te({name:"ElTable",directives:{Mousewheel:eKe},components:{TableHeader:ast,TableBody:ust,TableFooter:dst,ElScrollbar:ic,hColgroup:Qne},props:gst,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=fr(),r=Ce("table"),n=It();Wt(nu,n);const a=$ot(n,e);n.store=a;const i=new Yot({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=i;const o=F(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=hst(a),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:w,handleHeaderFooterMousewheel:x,tableSize:S,emptyBlockStyle:T,handleFixedMousewheel:A,resizeProxyVisible:C,bodyWidth:M,resizeState:E,doLayout:D,tableBodyStyles:P,tableLayout:L,scrollbarViewStyle:I,tableInnerStyle:O,scrollbarStyle:R}=vst(e,i,a,n),{scrollBarRef:B,scrollTo:k,setScrollLeft:z,setScrollTop:$}=mst(),j=Ni(D,50),X=`${r.namespace.value}-table_${yst++}`;n.tableId=X,n.state={isGroup:_,resizeState:E,doLayout:D,debouncedUpdateLayout:j};const Q=F(()=>e.sumText||t("el.table.sumText")),se=F(()=>e.emptyText||t("el.table.emptyText"));return pst(n),{ns:r,layout:i,store:a,handleHeaderFooterMousewheel:x,handleMouseLeave:w,tableId:X,tableSize:S,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:C,resizeState:E,isGroup:_,bodyWidth:M,tableBodyStyles:P,emptyBlockStyle:T,debouncedUpdateLayout:j,handleFixedMousewheel:A,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:D,sort:p,t,setDragVisible:y,context:n,computedSumText:Q,computedEmptyText:se,tableLayout:L,scrollbarViewStyle:I,tableInnerStyle:O,scrollbarStyle:R,scrollBarRef:B,scrollTo:k,setScrollLeft:z,setScrollTop:$}}}),bst=["data-prefix"],wst={ref:"hiddenColumns",class:"hidden-columns"};function Sst(e,t,r,n,a,i){const o=bt("hColgroup"),s=bt("table-header"),l=bt("table-body"),u=bt("table-footer"),c=bt("el-scrollbar"),f=_0("mousewheel");return N(),U("div",{ref:"tableWrapper",class:H([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Xe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[V("div",{class:H(e.ns.e("inner-wrapper")),style:Xe(e.tableInnerStyle)},[V("div",wst,[ye(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ct((N(),U("div",{key:0,ref:"headerWrapper",class:H(e.ns.e("header-wrapper"))},[V("table",{ref:"tableHeader",class:H(e.ns.e("header")),style:Xe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),J(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ce("v-if",!0),V("div",{ref:"bodyWrapper",class:H(e.ns.e("body-wrapper"))},[J(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:le(()=>[V("table",{ref:"tableBody",class:H(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Xe({width:e.bodyWidth,tableLayout:e.tableLayout})},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(N(),he(s,{key:0,ref:"tableHeaderRef",class:H(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):ce("v-if",!0),J(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(N(),he(u,{key:1,class:H(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ce("v-if",!0)],6),e.isEmpty?(N(),U("div",{key:0,ref:"emptyBlock",style:Xe(e.emptyBlockStyle),class:H(e.ns.e("empty-block"))},[V("span",{class:H(e.ns.e("empty-text"))},[ye(e.$slots,"empty",{},()=>[nr(me(e.computedEmptyText),1)])],2)],6)):ce("v-if",!0),e.$slots.append?(N(),U("div",{key:1,ref:"appendWrapper",class:H(e.ns.e("append-wrapper"))},[ye(e.$slots,"append")],2)):ce("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?Ct((N(),U("div",{key:1,ref:"footerWrapper",class:H(e.ns.e("footer-wrapper"))},[V("table",{class:H(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Xe(e.tableBodyStyles)},[J(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),J(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[hr,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ce("v-if",!0),e.border||e.isGroup?(N(),U("div",{key:2,class:H(e.ns.e("border-left-patch"))},null,2)):ce("v-if",!0)],6),Ct(V("div",{ref:"resizeProxy",class:H(e.ns.e("column-resize-proxy"))},null,2),[[hr,e.resizeProxyVisible]])],46,bst)}var xst=ke(_st,[["render",Sst],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Ast={selection:"table-column--selection",expand:"table__expand-column"},Tst={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:""}},Cst=e=>Ast[e]||"",Est={selection:{renderHeader({store:e,column:t}){function r(){return e.states.data.value&&e.states.data.value.length===0}return et(hs,{disabled:r(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:r,$index:n}){return et(hs,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:r.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),et("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,a=[n.e("expand-icon")];return r&&a.push(n.em("expand-icon","expanded")),et("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[et(Ze,null,{default:()=>[et(Mi)]})]})},sortable:!1,resizable:!1}};function Mst({row:e,column:t,$index:r}){var n;const a=t.property,i=a&&hS(e,a).value;return t&&t.formatter?t.formatter(e,t,i,r):((n=i==null?void 0:i.toString)==null?void 0:n.call(i))||""}function Dst({row:e,treeNode:t,store:r},n=!1){const{ns:a}=r;if(!t)return n?[et("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&i.push(et("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=Mi;t.loading&&(l=Hf),i.push(et("div",{class:s,onClick:o},{default:()=>[et(Ze,{class:{[a.is("loading")]:t.loading}},{default:()=>[et(l)]})]}))}else i.push(et("span",{class:a.e("placeholder")}));return i}function QU(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function Pst(e,t){const r=It();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=QU(i,o);Object.keys(s).forEach(l=>{const u=o[l];or(t,u)&&Ae(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=U3(c)),u==="minWidth"&&l==="realMinWidth"&&(f=Wne(c)),r.columnConfig.value[u]=f,r.columnConfig.value[l]=f;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=QU(i,o);Object.keys(s).forEach(l=>{const u=o[l];or(t,u)&&Ae(()=>t[u],c=>{r.columnConfig.value[l]=c})})}}}function Lst(e,t,r){const n=It(),a=G(""),i=G(!1),o=G(),s=G(),l=Ce("table");xo(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),xo(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=F(()=>{let w=n.vnode.vParent||n.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=F(()=>{const{store:w}=n.parent;if(!w)return!1;const{treeData:x}=w.states,S=x.value;return S&&Object.keys(S).length>0}),f=G(U3(e.width)),d=G(Wne(e.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),v=w=>{const x=w.type,S=Est[x]||{};Object.keys(S).forEach(A=>{const C=S[A];A!=="className"&&C!==void 0&&(w[A]=C)});const T=Cst(x);if(T){const A=`${b(l.namespace)}-${T}`;w.className=w.className?`${w.className} ${A}`:A}return w},p=w=>{Array.isArray(w)?w.forEach(S=>x(S)):x(w);function x(S){var T;((T=S==null?void 0:S.type)==null?void 0:T.name)==="ElTableColumn"&&(S.vParent=n)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=S=>{n.columnConfig.value.label;const T=t.header;return T?T(S):w.label});let x=w.renderCell;return w.type==="expand"?(w.renderCell=S=>et("div",{class:"cell"},[x(S)]),r.value.renderExpanded=S=>t.default?t.default(S):t.default):(x=x||Mst,w.renderCell=S=>{let T=null;if(t.default){const P=t.default(S);T=P.some(L=>L.type!==Ei)?P:x(S)}else T=x(S);const{columns:A}=r.value.store.states,C=A.value.findIndex(P=>P.type==="default"),M=c.value&&S.cellIndex===C,E=Dst(S,M),D={class:"cell",style:{}};return w.showOverflowTooltip&&(D.class=`${D.class} ${b(l.namespace)}-tooltip`,D.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),p(T),et("div",D,[E,T])}),w},getPropsData:(...w)=>w.reduce((x,S)=>(Array.isArray(S)&&S.forEach(T=>{x[T]=e[T]}),x),{}),getColumnElIndex:(w,x)=>Array.prototype.indexOf.call(w,x),updateColumnOrder:()=>{r.value.store.commit("updateColumnOrder",n.columnConfig.value)}}}var Ist={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Rst=1;var Jne=te({name:"ElTableColumn",components:{ElCheckbox:hs},props:Ist,setup(e,{slots:t}){const r=It(),n=G({}),a=F(()=>{let _=r.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:o}=Pst(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=Lst(e,t,a),y=c.value;s.value=`${y.tableId||y.columnId}_column_${Rst++}`,Y2(()=>{l.value=a.value!==y;const _=e.type||"default",w=e.sortable===""?!0:e.sortable,x=oa(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,S={...Tst[_],id:s.value,type:_,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:r.vnode.key};let E=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);E=Rot(S,E),E=kot(h,f,d)(E),n.value=E,i(),o()}),xt(()=>{var _;const w=c.value,x=l.value?w.vnode.el.children:(_=w.refs.hiddenColumns)==null?void 0:_.children,S=()=>p(x||[],r.vnode.el);n.value.getColumnIndex=S,S()>-1&&a.value.store.commit("insertColumn",n.value,l.value?w.columnConfig.value:null,m)}),un(()=>{a.value.store.commit("removeColumn",n.value,l.value?y.columnConfig.value:null,m)}),r.columnId=s.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(n))for(const o of n)((r=o.type)==null?void 0:r.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===Be&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!wt(s==null?void 0:s.children)&&a.push(s)});return et("div",a)}catch{return et("div",[])}}});const Ost=kt(xst,{TableColumn:Jne}),kst=Pn(Jne);var E_=(e=>(e.ASC="asc",e.DESC="desc",e))(E_||{}),M_=(e=>(e.CENTER="center",e.RIGHT="right",e))(M_||{}),eae=(e=>(e.LEFT="left",e.RIGHT="right",e))(eae||{});const BI={asc:"desc",desc:"asc"},D_=Symbol("placeholder"),Nst=(e,t,r)=>{var n;const a={flexGrow:0,flexShrink:0,...r?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};r||(a.flexShrink=1);const i={...(n=e.style)!=null?n:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function Bst(e,t,r){const n=F(()=>b(t).filter(p=>!p.hidden)),a=F(()=>b(n).filter(p=>p.fixed==="left"||p.fixed===!0)),i=F(()=>b(n).filter(p=>p.fixed==="right")),o=F(()=>b(n).filter(p=>!p.fixed)),s=F(()=>{const p=[];return b(a).forEach(g=>{p.push({...g,placeholderSign:D_})}),b(o).forEach(g=>{p.push(g)}),b(i).forEach(g=>{p.push({...g,placeholderSign:D_})}),p}),l=F(()=>b(a).length||b(i).length),u=F(()=>b(t).reduce((g,m)=>(g[m.key]=Nst(m,b(r),e.fixed),g),{})),c=F(()=>b(n).reduce((p,g)=>p+g.width,0)),f=p=>b(t).find(g=>g.key===p),d=p=>b(u)[p],h=(p,g)=>{p.width=g};function v(p){var g;const{key:m}=p.currentTarget.dataset;if(!m)return;const{sortState:y,sortBy:_}=e;let w=E_.ASC;Vt(y)?w=BI[y[m]]:w=BI[_.order],(g=e.onColumnSort)==null||g.call(e,{column:f(m),key:m,order:w})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:n,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:v}}const Fst=(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n,onMaybeEndReached:a})=>{const i=G({scrollLeft:0,scrollTop:0});function o(h){var v,p,g;const{scrollTop:m}=h;(v=t.value)==null||v.scrollTo(h),(p=r.value)==null||p.scrollToTop(m),(g=n.value)==null||g.scrollToTop(m)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(b(i))}function u(h){var v,p;i.value.scrollLeft=h,(p=(v=t.value)==null?void 0:v.scrollTo)==null||p.call(v,b(i))}function c(h){var v;s(h),(v=e.onScroll)==null||v.call(e,h)}function f({scrollTop:h}){const{scrollTop:v}=b(i);h!==v&&l(h)}function d(h,v="auto"){var p;(p=t.value)==null||p.scrollToRow(h,v)}return Ae(()=>b(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},Vst=(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n})=>{const a=It(),{emit:i}=a,o=yr(!1),s=yr(null),l=G(e.defaultExpandedRowKeys||[]),u=G(-1),c=yr(null),f=G({}),d=G({}),h=yr({}),v=yr({}),p=yr({}),g=F(()=>ct(e.estimatedRowHeight));function m(A){var C;(C=e.onRowsRendered)==null||C.call(e,A),A.rowCacheEnd>b(u)&&(u.value=A.rowCacheEnd)}function y({hovered:A,rowKey:C}){s.value=A?C:null}function _({expanded:A,rowData:C,rowIndex:M,rowKey:E}){var D,P;const L=[...b(l)],I=L.indexOf(E);A?I===-1&&L.push(E):I>-1&&L.splice(I,1),l.value=L,i("update:expandedRowKeys",L),(D=e.onRowExpand)==null||D.call(e,{expanded:A,rowData:C,rowIndex:M,rowKey:E}),(P=e.onExpandedRowsChange)==null||P.call(e,L)}const w=Ni(()=>{var A,C,M,E;o.value=!0,f.value={...b(f),...b(d)},x(b(c),!1),d.value={},c.value=null,(A=t.value)==null||A.forceUpdate(),(C=r.value)==null||C.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(E=a.proxy)==null||E.$forceUpdate(),o.value=!1},0);function x(A,C=!1){b(g)&&[t,r,n].forEach(M=>{const E=b(M);E&&E.resetAfterRowIndex(A,C)})}function S(A,C,M){const E=b(c);(E===null||E>M)&&(c.value=M),d.value[A]=C}function T({rowKey:A,height:C,rowIndex:M},E){E?E===eae.RIGHT?p.value[A]=C:h.value[A]=C:v.value[A]=C;const D=Math.max(...[h,p,v].map(P=>P.value[A]||0));b(f)[A]!==D&&(S(A,D,M),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:x,onRowExpanded:_,onRowHovered:y,onRowsRendered:m,onRowHeightChange:T}},zst=(e,{expandedRowKeys:t,lastRenderedRowIndex:r,resetAfterIndex:n})=>{const a=G({}),i=F(()=>{const s={},{data:l,rowKey:u}=e,c=b(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(v=>d.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();f.push(v),d.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(p=>s[p[u]]=s[v[u]]+1))}return a.value=s,f}),o=F(()=>{const{data:s,expandColumnKey:l}=e;return l?b(i):s});return Ae(o,(s,l)=>{s!==l&&(r.value=-1,n(0,!0))}),{data:o,depthMap:a}},Hst=(e,t)=>e+t,MS=e=>We(e)?e.reduce(Hst,0):e,Xh=(e,t,r={})=>dt(e)?e(t):e??r,Qc=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Hn(e[t])}),e),tae=e=>hn(e)?t=>et(e,t):e,Gst=(e,{columnsTotalWidth:t,data:r,fixedColumnsOnLeft:n,fixedColumnsOnRight:a})=>{const i=F(()=>{const{fixed:_,width:w,vScrollbarSize:x}=e,S=w-x;return _?Math.max(Math.round(b(t)),S):S}),o=F(()=>b(i)+(e.fixed?e.vScrollbarSize:0)),s=F(()=>{const{height:_=0,maxHeight:w=0,footerHeight:x,hScrollbarSize:S}=e;if(w>0){const T=b(v),A=b(l),M=b(h)+T+A+S;return Math.min(M,w-x)}return _-x}),l=F(()=>{const{rowHeight:_,estimatedRowHeight:w}=e,x=b(r);return ct(w)?x.length*w:x.length*_}),u=F(()=>{const{maxHeight:_}=e,w=b(s);if(ct(_)&&_>0)return w;const x=b(l)+b(h)+b(v);return Math.min(w,x)}),c=_=>_.width,f=F(()=>MS(b(n).map(c))),d=F(()=>MS(b(a).map(c))),h=F(()=>MS(e.headerHeight)),v=F(()=>{var _;return(((_=e.fixedData)==null?void 0:_.length)||0)*e.rowHeight}),p=F(()=>b(s)-b(h)-b(v)),g=F(()=>{const{style:_={},height:w,width:x}=e;return Qc({..._,height:w,width:x})}),m=F(()=>Qc({height:e.footerHeight})),y=F(()=>({top:Hn(b(h)),bottom:Hn(e.footerHeight),width:Hn(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:p,footerHeight:m,emptyStyle:y,rootStyle:g,headerHeight:h}},Ust=e=>{const t=G(),r=G(0),n=G(0);let a;return xt(()=>{a=di(t,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),d=Number.parseInt(l)||0,h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,p=Number.parseInt(f)||0;r.value=o-d-h,n.value=s-v-p}).stop}),un(()=>{a==null||a()}),Ae([r,n],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:r,height:n}};function $st(e){const t=G(),r=G(),n=G(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=Bst(e,Sn(e,"columns"),Sn(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:y}=Fst(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n,onMaybeEndReached:Y}),{expandedRowKeys:_,hoveringRowKey:w,lastRenderedRowIndex:x,isDynamic:S,isResetting:T,rowHeights:A,resetAfterIndex:C,onRowExpanded:M,onRowHeightChange:E,onRowHovered:D,onRowsRendered:P}=Vst(e,{mainTableRef:t,leftTableRef:r,rightTableRef:n}),{data:L,depthMap:I}=zst(e,{expandedRowKeys:_,lastRenderedRowIndex:x,resetAfterIndex:C}),{bodyWidth:O,fixedTableHeight:R,mainTableHeight:B,leftTableWidth:k,rightTableWidth:z,headerWidth:$,rowsHeight:j,windowHeight:X,footerHeight:Q,emptyStyle:se,rootStyle:ee,headerHeight:K}=Gst(e,{columnsTotalWidth:o,data:L,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),Z=yr(!1),ne=G(),re=F(()=>{const q=b(L).length===0;return We(e.fixedData)?e.fixedData.length===0&&q:q});function ie(q){const{estimatedRowHeight:oe,rowHeight:ve,rowKey:_e}=e;return oe?b(A)[b(L)[q][_e]]||oe:ve}function Y(){const{onEndReached:q}=e;if(!q)return;const{scrollTop:oe}=b(y),ve=b(j),_e=b(X),ge=ve-(oe+_e)+e.hScrollbarSize;b(x)>=0&&ve===oe+b(B)-b(K)&&q(ge)}return Ae(()=>e.expandedRowKeys,q=>_.value=q,{deep:!0}),{columns:a,containerRef:ne,mainTableRef:t,leftTableRef:r,rightTableRef:n,isDynamic:S,isResetting:T,isScrolling:Z,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:L,expandedRowKeys:_,depthMap:I,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:O,emptyStyle:se,rootStyle:ee,headerWidth:$,footerHeight:Q,mainTableHeight:B,fixedTableHeight:R,leftTableWidth:k,rightTableWidth:z,showEmpty:re,getRowHeight:ie,onColumnSorted:f,onRowHovered:D,onRowExpanded:M,onRowsRendered:P,onRowHeightChange:E,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const Y3=Symbol("tableV2"),rae=String,N1={type:fe(Array),required:!0},j3={type:fe(Array)},nae={...j3,required:!0},Wst=String,JU={type:fe(Array),default:()=>mn([])},Kd={type:Number,required:!0},aae={type:fe([String,Number,Symbol]),default:"id"},e$={type:fe(Object)},ch=Oe({class:String,columns:N1,columnsStyles:{type:fe(Object),required:!0},depth:Number,expandColumnKey:Wst,estimatedRowHeight:{...Ph.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:fe(Function)},onRowHover:{type:fe(Function)},onRowHeightChange:{type:fe(Function)},rowData:{type:fe(Object),required:!0},rowEventHandlers:{type:fe(Object)},rowIndex:{type:Number,required:!0},rowKey:aae,style:{type:fe(Object)}}),qM={type:Number,required:!0},K3=Oe({class:String,columns:N1,fixedHeaderData:{type:fe(Array)},headerData:{type:fe(Array),required:!0},headerHeight:{type:fe([Number,Array]),default:50},rowWidth:qM,rowHeight:{type:Number,default:50},height:qM,width:qM}),DS=Oe({columns:N1,data:nae,fixedData:j3,estimatedRowHeight:ch.estimatedRowHeight,width:Kd,height:Kd,headerWidth:Kd,headerHeight:K3.headerHeight,bodyWidth:Kd,rowHeight:Kd,cache:Ene.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Ph.scrollbarAlwaysOn,scrollbarStartGap:Ph.scrollbarStartGap,scrollbarEndGap:Ph.scrollbarEndGap,class:rae,style:e$,containerStyle:e$,getRowHeight:{type:fe(Function),required:!0},rowKey:ch.rowKey,onRowsRendered:{type:fe(Function)},onScroll:{type:fe(Function)}}),Yst=Oe({cache:DS.cache,estimatedRowHeight:ch.estimatedRowHeight,rowKey:aae,headerClass:{type:fe([String,Function])},headerProps:{type:fe([Object,Function])},headerCellProps:{type:fe([Object,Function])},headerHeight:K3.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:fe([String,Function])},rowProps:{type:fe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:fe([Object,Function])},columns:N1,data:nae,dataGetter:{type:fe(Function)},fixedData:j3,expandColumnKey:ch.expandColumnKey,expandedRowKeys:JU,defaultExpandedRowKeys:JU,class:rae,fixed:Boolean,style:{type:fe(Object)},width:Kd,height:Kd,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Ph.hScrollbarSize,vScrollbarSize:Ph.vScrollbarSize,scrollbarAlwaysOn:Pne.alwaysOn,sortBy:{type:fe(Object),default:()=>({})},sortState:{type:fe(Object),default:void 0},onColumnSort:{type:fe(Function)},onExpandedRowsChange:{type:fe(Function)},onEndReached:{type:fe(Function)},onRowExpand:ch.onRowExpand,onScroll:DS.onScroll,onRowsRendered:DS.onRowsRendered,rowEventHandlers:ch.rowEventHandlers}),X3=(e,{slots:t})=>{var r;const{cellData:n,style:a}=e,i=((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||"";return J("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};X3.displayName="ElTableV2Cell";X3.inheritAttrs=!1;const Z3=(e,{slots:t})=>{var r,n;return t.default?t.default(e):J("div",{class:e.class,title:(r=e.column)==null?void 0:r.title},[(n=e.column)==null?void 0:n.title])};Z3.displayName="ElTableV2HeaderCell";Z3.inheritAttrs=!1;const jst=Oe({class:String,columns:N1,columnsStyles:{type:fe(Object),required:!0},headerIndex:Number,style:{type:fe(Object)}}),Kst=te({name:"ElTableV2HeaderRow",props:jst,setup(e,{slots:t}){return()=>{const{columns:r,columnsStyles:n,headerIndex:a,style:i}=e;let o=r.map((s,l)=>t.cell({columns:r,column:s,columnIndex:l,headerIndex:a,style:n[s.key]}));return t.header&&(o=t.header({cells:o.map(s=>We(s)&&s.length===1?s[0]:s),columns:r,headerIndex:a})),J("div",{class:e.class,style:i,role:"row"},[o])}}}),Xst="ElTableV2Header",Zst=te({name:Xst,props:K3,setup(e,{slots:t,expose:r}){const n=Ce("table-v2"),a=G(),i=F(()=>Qc({width:e.width,height:e.height})),o=F(()=>Qc({width:e.rowWidth,height:e.height})),s=F(()=>jh(b(e.headerHeight))),l=f=>{const d=b(a);qe(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=n.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:v}=e;return h==null?void 0:h.map((p,g)=>{var m;const y=Qc({height:v,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:f,columns:d,rowData:p,rowIndex:-(g+1),style:y})})},c=()=>{const f=n.e("dynamic-header-row"),{columns:d}=e;return b(s).map((h,v)=>{var p;const g=Qc({width:"100%",height:h});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:d,headerIndex:v,style:g})})};return r({scrollToLeft:l}),()=>{if(!(e.height<=0))return J("div",{ref:a,class:e.class,style:b(i),role:"rowgroup"},[J("div",{style:b(o),class:n.e("header")},[c(),u()])])}}}),qst=e=>{const{isScrolling:t}=Ye(Y3),r=G(!1),n=G(),a=F(()=>ct(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=b(n);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:v}=e,{height:p}=u.getBoundingClientRect();r.value=!0,qe(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===D_;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!m&&g.fixed)}})},o=F(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{dt(p)&&(h[v]=g=>{p({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:p})=>{const g=h[v];h[v]=m=>{f({event:m,hovered:p,rowData:l,rowIndex:u,rowKey:c}),g==null||g(m)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return xt(()=>{b(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:r,rowRef:n,eventHandlers:o,onExpand:s}},Qst="ElTableV2TableRow",Jst=te({name:Qst,props:ch,setup(e,{expose:t,slots:r,attrs:n}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=qst(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:v,rowIndex:p,style:g}=e;let m=c.map((y,_)=>{const w=We(v.children)&&v.children.length>0&&y.key===d;return r.cell({column:y,columns:c,columnIndex:_,depth:h,style:f[y.key],rowData:v,rowIndex:p,isScrolling:b(i),expandIconProps:w?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(r.row&&(m=r.row({cells:m.map(y=>We(y)&&y.length===1?y[0]:y),style:g,columns:c,depth:h,rowData:v,rowIndex:p,isScrolling:b(i)})),b(o)){const{height:y,..._}=g||{},w=b(s);return J("div",Ut({ref:l,class:e.class,style:w?g:_,role:"row"},n,b(a)),[m])}return J("div",Ut(n,{ref:l,class:e.class,style:g,role:"row"},b(a)),[m])}}}),elt=e=>{const{sortOrder:t}=e;return J(Ze,{size:14,class:e.class},{default:()=>[t===E_.ASC?J(DUe,null,null):J(EUe,null,null)]})},tlt=e=>{const{expanded:t,expandable:r,onExpand:n,style:a,size:i}=e,o={onClick:r?()=>n(!t):void 0,class:e.class};return J(Ze,Ut(o,{size:i,style:a}),{default:()=>[J(Mi,null,null)]})},rlt="ElTableV2Grid",nlt=e=>{const t=G(),r=G(),n=F(()=>{const{data:p,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return p.length*g}),a=F(()=>{const{fixedData:p,rowHeight:g}=e;return((p==null?void 0:p.length)||0)*g}),i=F(()=>MS(e.headerHeight)),o=F(()=>{const{height:p}=e;return Math.max(0,p-b(i)-b(a))}),s=F(()=>b(i)+b(a)>0),l=({data:p,rowIndex:g})=>p[g][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:y}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:y})}function c(p,g){var m;(m=r.value)==null||m.resetAfterRowIndex(p,g)}function f(p,g){const m=b(t),y=b(r);!m||!y||(Vt(p)?(m.scrollToLeft(p.scrollLeft),y.scrollTo(p)):(m.scrollToLeft(p),y.scrollTo({scrollLeft:p,scrollTop:g})))}function d(p){var g;(g=b(r))==null||g.scrollTo({scrollTop:p})}function h(p,g){var m;(m=b(r))==null||m.scrollToItem(p,1,g)}function v(){var p,g;(p=b(r))==null||p.$forceUpdate(),(g=b(t))==null||g.$forceUpdate()}return{bodyRef:r,forceUpdate:v,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:n,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},q3=te({name:rlt,props:DS,setup(e,{slots:t,expose:r}){const{ns:n}=Ye(Y3),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:v,scrollTo:p,scrollToTop:g,scrollToRow:m}=nlt(e);r({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:v});const y=()=>e.bodyWidth;return()=>{const{cache:_,columns:w,data:x,fixedData:S,useIsScrolling:T,scrollbarAlwaysOn:A,scrollbarEndGap:C,scrollbarStartGap:M,style:E,rowHeight:D,bodyWidth:P,estimatedRowHeight:L,headerWidth:I,height:O,width:R,getRowHeight:B,onScroll:k}=e,z=ct(L),$=z?Oat:Pat,j=b(u);return J("div",{role:"table",class:[n.e("table"),e.class],style:E},[J($,{ref:a,data:x,useIsScrolling:T,itemKey:d,columnCache:0,columnWidth:z?y:P,totalColumn:1,totalRow:x.length,rowCache:_,rowHeight:z?B:D,width:R,height:b(o),class:n.e("body"),role:"rowgroup",scrollbarStartGap:M,scrollbarEndGap:C,scrollbarAlwaysOn:A,onScroll:k,onItemRendered:h,perfMode:!1},{default:X=>{var Q;const se=x[X.rowIndex];return(Q=t.row)==null?void 0:Q.call(t,{...X,columns:w,rowData:se})}}),b(s)&&J(Zst,{ref:l,class:n.e("header-wrapper"),columns:w,headerData:x,headerHeight:e.headerHeight,fixedHeaderData:S,rowWidth:I,rowHeight:D,width:R,height:Math.min(j+b(i),O)},{dynamic:t.header,fixed:t.row})])}}});function alt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const ilt=(e,{slots:t})=>{const{mainTableRef:r,...n}=e;return J(q3,Ut({ref:r},n),alt(t)?t:{default:()=>[t]})};function olt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const slt=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:r,...n}=e;return J(q3,Ut({ref:r},n),olt(t)?t:{default:()=>[t]})};function llt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const ult=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:r,...n}=e;return J(q3,Ut({ref:r},n),llt(t)?t:{default:()=>[t]})};function clt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const flt=(e,{slots:t})=>{const{columns:r,columnsStyles:n,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:v,rowClass:p,rowKey:g,rowEventHandlers:m,ns:y,onRowHovered:_,onRowExpanded:w}=e,x=Xh(p,{columns:r,rowData:c,rowIndex:f},""),S=Xh(v,{columns:r,rowData:c,rowIndex:f}),T=c[g],A=a[T]||0,C=!!i,M=f<0,E=[y.e("row"),x,{[y.e(`row-depth-${A}`)]:C&&f>=0,[y.is("expanded")]:C&&o.includes(T),[y.is("hovered")]:!h&&T===u,[y.is("fixed")]:!A&&M,[y.is("customized")]:!!t.row}],D=l?_:void 0,P={...S,columns:r,columnsStyles:n,class:E,depth:A,expandColumnKey:i,estimatedRowHeight:M?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:T,rowEventHandlers:m,style:d};return J(Jst,Ut(P,{onRowHover:D,onRowExpand:w}),clt(t)?t:{default:()=>[t]})},FI=({columns:e,column:t,columnIndex:r,depth:n,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:d,indentSize:h,iconSize:v,rowKey:p},{slots:g})=>{const m=Qc(l);if(t.placeholderSign===D_)return J("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:y,dataKey:_,dataGetter:w}=t,S=tae(y)||g.default||(O=>J(X3,O,null)),T=dt(w)?w({columns:e,column:t,columnIndex:r,rowData:o,rowIndex:s}):gn(o,_??""),A=Xh(f,{cellData:T,columns:e,column:t,columnIndex:r,rowIndex:s,rowData:o}),C={class:c.e("cell-text"),columns:e,column:t,columnIndex:r,cellData:T,isScrolling:i,rowData:o,rowIndex:s},M=S(C),E=[c.e("row-cell"),t.class,t.align===M_.CENTER&&c.is("align-center"),t.align===M_.RIGHT&&c.is("align-right")],D=s>=0&&d&&t.key===d,P=s>=0&&u.includes(o[p]);let L;const I=`margin-inline-start: ${n*h}px;`;return D&&(Vt(a)?L=J(tlt,Ut(a,{class:[c.e("expand-icon"),c.is("expanded",P)],size:v,expanded:P,style:I,expandable:!0}),null):L=J("div",{style:[I,`width: ${v}px; height: ${v}px;`].join(" ")},null)),J("div",Ut({class:E,style:m},A,{role:"cell"}),[L,M])};FI.inheritAttrs=!1;function dlt(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const hlt=({columns:e,columnsStyles:t,headerIndex:r,style:n,headerClass:a,headerProps:i,ns:o},{slots:s})=>{const l={columns:e,headerIndex:r},u=[o.e("header-row"),Xh(a,l,""),{[o.is("customized")]:!!s.header}],c={...Xh(i,l),columnsStyles:t,class:u,columns:e,headerIndex:r,style:n};return J(Kst,c,dlt(s)?s:{default:()=>[s]})},t$=(e,{slots:t})=>{const{column:r,ns:n,style:a,onColumnSorted:i}=e,o=Qc(a);if(r.placeholderSign===D_)return J("div",{class:n.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=r,c={...e,class:n.e("header-cell-text")},d=(tae(s)||t.default||(w=>J(Z3,w,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=e;let g,m;if(v){const w=v[r.key];g=!!BI[w],m=g?w:E_.ASC}else g=r.key===h.key,m=g?h.order:E_.ASC;const y=[n.e("header-cell"),Xh(l,e,""),r.align===M_.CENTER&&n.is("align-center"),r.align===M_.RIGHT&&n.is("align-right"),u&&n.is("sortable")],_={...Xh(p,e),onClick:r.sortable?i:void 0,class:y,style:o,"data-key":r.key};return J("div",Ut(_,{role:"columnheader"}),[d,u&&J(elt,{class:[n.e("sort-icon"),g&&n.is("sorting")],sortOrder:m},null)])},iae=(e,{slots:t})=>{var r;return J("div",{class:e.class,style:e.style},[(r=t.default)==null?void 0:r.call(t)])};iae.displayName="ElTableV2Footer";const oae=(e,{slots:t})=>J("div",{class:e.class,style:e.style},[t.default?t.default():J(dne,null,null)]);oae.displayName="ElTableV2Empty";const sae=(e,{slots:t})=>{var r;return J("div",{class:e.class,style:e.style},[(r=t.default)==null?void 0:r.call(t)])};sae.displayName="ElTableV2Overlay";function ty(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hn(e)}const vlt="ElTableV2",plt=te({name:vlt,props:Yst,setup(e,{slots:t,expose:r}){const n=Ce("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:v,hasFixedColumns:p,hoveringRowKey:g,mainTableRef:m,leftTableRef:y,rightTableRef:_,isDynamic:w,isResetting:x,isScrolling:S,bodyWidth:T,emptyStyle:A,rootStyle:C,headerWidth:M,footerHeight:E,showEmpty:D,scrollTo:P,scrollToLeft:L,scrollToTop:I,scrollToRow:O,getRowHeight:R,onColumnSorted:B,onRowHeightChange:k,onRowHovered:z,onRowExpanded:$,onRowsRendered:j,onScroll:X,onVerticalScroll:Q}=$st(e);return r({scrollTo:P,scrollToLeft:L,scrollToTop:I,scrollToRow:O}),Wt(Y3,{ns:n,isResetting:x,hoveringRowKey:g,isScrolling:S}),()=>{const{cache:se,cellProps:ee,estimatedRowHeight:K,expandColumnKey:Z,fixedData:ne,headerHeight:re,headerClass:ie,headerProps:Y,headerCellProps:q,sortBy:oe,sortState:ve,rowHeight:_e,rowClass:ge,rowEventHandlers:Le,rowKey:Se,rowProps:xe,scrollbarAlwaysOn:Te,indentSize:Ve,iconSize:He,useIsScrolling:je,vScrollbarSize:Pe,width:Ue}=e,gt=b(d),At={cache:se,class:n.e("main"),columns:b(s),data:gt,fixedData:ne,estimatedRowHeight:K,bodyWidth:b(T)+Pe,headerHeight:re,headerWidth:b(M),height:b(l),mainTableRef:m,rowKey:Se,rowHeight:_e,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:je,width:Ue,getRowHeight:R,onRowsRendered:j,onScroll:X},Gt=b(c),tt=b(u),be={cache:se,class:n.e("left"),columns:b(i),data:gt,estimatedRowHeight:K,leftTableRef:y,rowHeight:_e,bodyWidth:Gt,headerWidth:Gt,headerHeight:re,height:tt,rowKey:Se,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:je,width:Gt,getRowHeight:R,onScroll:Q},de=b(f)+Pe,Me={cache:se,class:n.e("right"),columns:b(o),data:gt,estimatedRowHeight:K,rightTableRef:_,rowHeight:_e,bodyWidth:de,headerWidth:de,headerHeight:re,height:tt,rowKey:Se,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Pe,width:de,style:`--${b(n.namespace)}-table-scrollbar-size: ${Pe}px`,useIsScrolling:je,getRowHeight:R,onScroll:Q},ae=b(a),Ge={ns:n,depthMap:b(h),columnsStyles:ae,expandColumnKey:Z,expandedRowKeys:b(v),estimatedRowHeight:K,hasFixedColumns:b(p),hoveringRowKey:b(g),rowProps:xe,rowClass:ge,rowKey:Se,rowEventHandlers:Le,onRowHovered:z,onRowExpanded:$,onRowHeightChange:k},St={cellProps:ee,expandColumnKey:Z,indentSize:Ve,iconSize:He,rowKey:Se,expandedRowKeys:b(v),ns:n},Kt={ns:n,headerClass:ie,headerProps:Y,columnsStyles:ae},Xn={ns:n,sortBy:oe,sortState:ve,headerCellProps:q,onColumnSorted:B},An={row:we=>J(flt,Ut(we,Ge),{row:t.row,cell:ze=>{let pt;return t.cell?J(FI,Ut(ze,St,{style:ae[ze.column.key]}),ty(pt=t.cell(ze))?pt:{default:()=>[pt]}):J(FI,Ut(ze,St,{style:ae[ze.column.key]}),null)}}),header:we=>J(hlt,Ut(we,Kt),{header:t.header,cell:ze=>{let pt;return t["header-cell"]?J(t$,Ut(ze,Xn,{style:ae[ze.column.key]}),ty(pt=t["header-cell"](ze))?pt:{default:()=>[pt]}):J(t$,Ut(ze,Xn,{style:ae[ze.column.key]}),null)}})},Io=[e.class,n.b(),n.e("root"),{[n.is("dynamic")]:b(w)}],Ya={class:n.e("footer"),style:b(E)};return J("div",{class:Io,style:b(C)},[J(ilt,At,ty(An)?An:{default:()=>[An]}),J(slt,be,ty(An)?An:{default:()=>[An]}),J(ult,Me,ty(An)?An:{default:()=>[An]}),t.footer&&J(iae,Ya,{default:t.footer}),b(D)&&J(oae,{class:n.e("empty"),style:b(A)},{default:t.empty}),t.overlay&&J(sae,{class:n.e("overlay")},{default:t.overlay})])}}}),glt=Oe({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:fe(Function)}}),mlt=te({name:"ElAutoResizer",props:glt,setup(e,{slots:t}){const r=Ce("auto-resizer"),{height:n,width:a,sizer:i}=Ust(e),o={width:"100%",height:"100%"};return()=>{var s;return J("div",{ref:i,class:r.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:n.value,width:a.value})])}}}),ylt=kt(plt),_lt=kt(mlt),kT=Symbol("tabsRootContextKey"),blt=Oe({tabs:{type:fe(Array),default:()=>mn([])}}),lae="ElTabBar",wlt=te({name:lae}),Slt=te({...wlt,props:blt,setup(e,{expose:t}){const r=e,n=It(),a=Ye(kT);a||ua(lae,"<el-tabs><el-tab-bar /></el-tabs>");const i=Ce("tabs"),o=G(),s=G(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",v=h==="x"?"left":"top";return r.tabs.every(p=>{var g,m;const y=(m=(g=n.parent)==null?void 0:g.refs)==null?void 0:m[`tab-${p.uid}`];if(!y)return!1;if(!p.active)return!0;c=y[`offset${Tl(v)}`],f=y[`client${Tl(d)}`];const _=window.getComputedStyle(y);return d==="width"&&(r.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),c+=Number.parseFloat(_.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${Tl(h)}(${c}px)`}},u=()=>s.value=l();return Ae(()=>r.tabs,async()=>{await qe(),u()},{immediate:!0}),di(o,()=>u()),t({ref:o,update:u}),(c,f)=>(N(),U("div",{ref_key:"barRef",ref:o,class:H([b(i).e("active-bar"),b(i).is(b(a).props.tabPosition)]),style:Xe(s.value)},null,6))}});var xlt=ke(Slt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const Alt=Oe({panes:{type:fe(Array),default:()=>mn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Tlt={tabClick:(e,t,r)=>r instanceof Event,tabRemove:(e,t)=>t instanceof Event},r$="ElTabNav",Clt=te({name:r$,props:Alt,emits:Tlt,setup(e,{expose:t,emit:r}){const n=It(),a=Ye(kT);a||ua(r$,"<el-tabs><tab-nav /></el-tabs>");const i=Ce("tabs"),o=rFe(),s=gFe(),l=G(),u=G(),c=G(),f=G(),d=G(!1),h=G(0),v=G(!1),p=G(!0),g=F(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=F(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),y=()=>{if(!l.value)return;const C=l.value[`offset${Tl(g.value)}`],M=h.value;if(!M)return;const E=M>C?M-C:0;h.value=E},_=()=>{if(!l.value||!u.value)return;const C=u.value[`offset${Tl(g.value)}`],M=l.value[`offset${Tl(g.value)}`],E=h.value;if(C-E<=M)return;const D=C-E>M*2?E+M:C-M;h.value=D},w=async()=>{const C=u.value;if(!d.value||!c.value||!l.value||!C)return;await qe();const M=c.value.querySelector(".is-active");if(!M)return;const E=l.value,D=["top","bottom"].includes(a.props.tabPosition),P=M.getBoundingClientRect(),L=E.getBoundingClientRect(),I=D?C.offsetWidth-L.width:C.offsetHeight-L.height,O=h.value;let R=O;D?(P.left<L.left&&(R=O-(L.left-P.left)),P.right>L.right&&(R=O+P.right-L.right)):(P.top<L.top&&(R=O-(L.top-P.top)),P.bottom>L.bottom&&(R=O+(P.bottom-L.bottom))),R=Math.max(R,0),h.value=Math.min(R,I)},x=()=>{var C;if(!u.value||!l.value)return;e.stretch&&((C=f.value)==null||C.update());const M=u.value[`offset${Tl(g.value)}`],E=l.value[`offset${Tl(g.value)}`],D=h.value;E<M?(d.value=d.value||{},d.value.prev=D,d.value.next=D+E<M,M-D<E&&(h.value=M-E)):(d.value=!1,D>0&&(h.value=0))},S=C=>{const M=C.code,{up:E,down:D,left:P,right:L}=Qe;if(![E,D,P,L].includes(M))return;const I=Array.from(C.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),O=I.indexOf(C.target);let R;M===P||M===E?O===0?R=I.length-1:R=O-1:O<I.length-1?R=O+1:R=0,I[R].focus({preventScroll:!0}),I[R].click(),T()},T=()=>{p.value&&(v.value=!0)},A=()=>v.value=!1;return Ae(o,C=>{C==="hidden"?p.value=!1:C==="visible"&&setTimeout(()=>p.value=!0,50)}),Ae(s,C=>{C?setTimeout(()=>p.value=!0,50):p.value=!1}),di(c,x),xt(()=>setTimeout(()=>w(),0)),qu(()=>x()),t({scrollToActiveTab:w,removeFocus:A}),Ae(()=>e.panes,()=>n.update(),{flush:"post",deep:!0}),()=>{const C=d.value?[J("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:y},[J(Ze,null,{default:()=>[J(Tf,null,null)]})]),J("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:_},[J(Ze,null,{default:()=>[J(Mi,null,null)]})])]:null,M=e.panes.map((E,D)=>{var P,L,I,O;const R=E.uid,B=E.props.disabled,k=(L=(P=E.props.name)!=null?P:E.index)!=null?L:`${D}`,z=!B&&(E.isClosable||e.editable);E.index=`${D}`;const $=z?J(Ze,{class:"is-icon-close",onClick:Q=>r("tabRemove",E,Q)},{default:()=>[J(el,null,null)]}):null,j=((O=(I=E.slots).label)==null?void 0:O.call(I))||E.props.label,X=!B&&E.active?0:-1;return J("div",{ref:`tab-${R}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",E.active),i.is("disabled",B),i.is("closable",z),i.is("focus",v.value)],id:`tab-${k}`,key:`tab-${R}`,"aria-controls":`pane-${k}`,role:"tab","aria-selected":E.active,tabindex:X,onFocus:()=>T(),onBlur:()=>A(),onClick:Q=>{A(),r("tabClick",E,k,Q)},onKeydown:Q=>{z&&(Q.code===Qe.delete||Q.code===Qe.backspace)&&r("tabRemove",E,Q)}},[j,$])});return J("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[C,J("div",{class:i.e("nav-scroll"),ref:l},[J("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:S},[e.type?null:J(xlt,{ref:f,tabs:[...e.panes]},null),M])])])}}}),Elt=Oe({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:fe(Function),default:()=>!0},stretch:Boolean}),QM=e=>wt(e)||ct(e),Mlt={[Nt]:e=>QM(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>QM(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>QM(e),tabAdd:()=>!0},Dlt=te({name:"ElTabs",props:Elt,emits:Mlt,setup(e,{emit:t,slots:r,expose:n}){var a,i;const o=Ce("tabs"),{children:s,addChild:l,removeChild:u}=_3(It(),"ElTabPane"),c=G(),f=G((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=async(g,m=!1)=>{var y,_,w;if(!(f.value===g||oa(g)))try{await((y=e.beforeLeave)==null?void 0:y.call(e,g,f.value))!==!1&&(f.value=g,m&&(t(Nt,g),t("tabChange",g)),(w=(_=c.value)==null?void 0:_.removeFocus)==null||w.call(_))}catch{}},h=(g,m,y)=>{g.props.disabled||(d(m,!0),t("tabClick",g,y))},v=(g,m)=>{g.props.disabled||oa(g.props.name)||(m.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},p=()=>{t("edit",void 0,"add"),t("tabAdd")};return Ul({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"},F(()=>!!e.activeName)),Ae(()=>e.activeName,g=>d(g)),Ae(()=>e.modelValue,g=>d(g)),Ae(f,async()=>{var g;await qe(),(g=c.value)==null||g.scrollToActiveTab()}),Wt(kT,{props:e,currentName:f,registerPane:l,unregisterPane:u}),n({currentName:f}),()=>{const g=r.addIcon,m=e.editable||e.addable?J("span",{class:o.e("new-tab"),tabindex:"0",onClick:p,onKeydown:w=>{w.code===Qe.enter&&p()}},[g?ye(r,"addIcon"):J(Ze,{class:o.is("icon-plus")},{default:()=>[J(Oee,null,null)]})]):null,y=J("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,J(Clt,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:h,onTabRemove:v},null)]),_=J("div",{class:o.e("content")},[ye(r,"default")]);return J("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[y,_]:[_,y]])}}}),Plt=Oe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Llt=["id","aria-hidden","aria-labelledby"],uae="ElTabPane",Ilt=te({name:uae}),Rlt=te({...Ilt,props:Plt,setup(e){const t=e,r=It(),n=$a(),a=Ye(kT);a||ua(uae,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Ce("tab-pane"),o=G(),s=F(()=>t.closable||a.props.closable),l=OH(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=G(l.value),c=F(()=>{var h;return(h=t.name)!=null?h:o.value}),f=OH(()=>!t.lazy||u.value||l.value);Ae(l,h=>{h&&(u.value=!0)});const d=Ar({uid:r.uid,slots:n,props:t,paneName:c,active:l,index:o,isClosable:s});return xt(()=>{a.registerPane(d)}),Xl(()=>{a.unregisterPane(d.uid)}),(h,v)=>b(f)?Ct((N(),U("div",{key:0,id:`pane-${b(c)}`,class:H(b(i).b()),role:"tabpanel","aria-hidden":!b(l),"aria-labelledby":`tab-${b(c)}`},[ye(h.$slots,"default")],10,Llt)),[[hr,b(l)]]):ce("v-if",!0)}});var cae=ke(Rlt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const Olt=kt(Dlt,{TabPane:cae}),klt=Pn(cae),Nlt=Oe({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:tu,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Blt=te({name:"ElText"}),Flt=te({...Blt,props:Nlt,setup(e){const t=e,r=ca(),n=Ce("text"),a=F(()=>[n.b(),n.m(t.type),n.m(r.value),n.is("truncated",t.truncated),n.is("line-clamp",!oa(t.lineClamp))]);return(i,o)=>(N(),he(Ft(i.tag),{class:H(b(a)),style:Xe({"-webkit-line-clamp":i.lineClamp})},{default:le(()=>[ye(i.$slots,"default")]),_:3},8,["class","style"]))}});var Vlt=ke(Flt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const zlt=kt(Vlt),Hlt=Oe({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:Ga,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:fe([String,Object]),default:()=>Ree},clearIcon:{type:fe([String,Object]),default:()=>zf}}),wu=e=>{const t=(e||"").split(":");if(t.length>=2){let r=Number.parseInt(t[0],10);const n=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&r===12?r=0:a.includes("PM")&&r!==12&&(r+=12),{hours:r,minutes:n}}return null},JM=(e,t)=>{const r=wu(e);if(!r)return-1;const n=wu(t);if(!n)return-1;const a=r.minutes+r.hours*60,i=n.minutes+n.hours*60;return a===i?0:a>i?1:-1},n$=e=>`${e}`.padStart(2,"0"),sp=e=>`${n$(e.hours)}:${n$(e.minutes)}`,Glt=(e,t)=>{const r=wu(e);if(!r)return"";const n=wu(t);if(!n)return"";const a={hours:r.hours,minutes:r.minutes};return a.minutes+=n.minutes,a.hours+=n.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,sp(a)},Ult=te({name:"ElTimeSelect"}),$lt=te({...Ult,props:Hlt,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const r=e;Rt.extend(T3);const{Option:n}=Kh,a=Ce("input"),i=G(),o=ho(),{lang:s}=fr(),l=F(()=>r.modelValue),u=F(()=>{const m=wu(r.start);return m?sp(m):null}),c=F(()=>{const m=wu(r.end);return m?sp(m):null}),f=F(()=>{const m=wu(r.step);return m?sp(m):null}),d=F(()=>{const m=wu(r.minTime||"");return m?sp(m):null}),h=F(()=>{const m=wu(r.maxTime||"");return m?sp(m):null}),v=F(()=>{const m=[];if(r.start&&r.end&&r.step){let y=u.value,_;for(;y&&c.value&&JM(y,c.value)<=0;)_=Rt(y,"HH:mm").locale(s.value).format(r.format),m.push({value:_,disabled:JM(y,d.value||"-1:-1")<=0||JM(y,h.value||"100:100")>=0}),y=Glt(y,f.value)}return m});return t({blur:()=>{var m,y;(y=(m=i.value)==null?void 0:m.blur)==null||y.call(m)},focus:()=>{var m,y;(y=(m=i.value)==null?void 0:m.focus)==null||y.call(m)}}),(m,y)=>(N(),he(b(Kh),{ref_key:"select",ref:i,"model-value":b(l),disabled:b(o),clearable:m.clearable,"clear-icon":m.clearIcon,size:m.size,effect:m.effect,placeholder:m.placeholder,"default-first-option":"",filterable:m.editable,"onUpdate:modelValue":y[0]||(y[0]=_=>m.$emit("update:modelValue",_)),onChange:y[1]||(y[1]=_=>m.$emit("change",_)),onBlur:y[2]||(y[2]=_=>m.$emit("blur",_)),onFocus:y[3]||(y[3]=_=>m.$emit("focus",_))},{prefix:le(()=>[m.prefixIcon?(N(),he(b(Ze),{key:0,class:H(b(a).e("prefix-icon"))},{default:le(()=>[(N(),he(Ft(m.prefixIcon)))]),_:1},8,["class"])):ce("v-if",!0)]),default:le(()=>[(N(!0),U(Be,null,ht(b(v),_=>(N(),he(b(n),{key:_.value,label:_.value,value:_.value,disabled:_.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var PS=ke($lt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);PS.install=e=>{e.component(PS.name,PS)};const Wlt=PS,Ylt=Wlt,jlt=te({name:"ElTimeline",setup(e,{slots:t}){const r=Ce("timeline");return Wt("timeline",t),()=>et("ul",{class:[r.b()]},[ye(t,"default")])}}),Klt=Oe({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:Zr},hollow:{type:Boolean,default:!1}}),Xlt=te({name:"ElTimelineItem"}),Zlt=te({...Xlt,props:Klt,setup(e){const t=e,r=Ce("timeline-item"),n=F(()=>[r.e("node"),r.em("node",t.size||""),r.em("node",t.type||""),r.is("hollow",t.hollow)]);return(a,i)=>(N(),U("li",{class:H([b(r).b(),{[b(r).e("center")]:a.center}])},[V("div",{class:H(b(r).e("tail"))},null,2),a.$slots.dot?ce("v-if",!0):(N(),U("div",{key:0,class:H(b(n)),style:Xe({backgroundColor:a.color})},[a.icon?(N(),he(b(Ze),{key:0,class:H(b(r).e("icon"))},{default:le(()=>[(N(),he(Ft(a.icon)))]),_:1},8,["class"])):ce("v-if",!0)],6)),a.$slots.dot?(N(),U("div",{key:1,class:H(b(r).e("dot"))},[ye(a.$slots,"dot")],2)):ce("v-if",!0),V("div",{class:H(b(r).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(N(),U("div",{key:0,class:H([b(r).e("timestamp"),b(r).is("top")])},me(a.timestamp),3)):ce("v-if",!0),V("div",{class:H(b(r).e("content"))},[ye(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(N(),U("div",{key:1,class:H([b(r).e("timestamp"),b(r).is("bottom")])},me(a.timestamp),3)):ce("v-if",!0)],2)],2))}});var fae=ke(Zlt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const qlt=kt(jlt,{TimelineItem:fae}),Qlt=Pn(fae),dae=Oe({nowrap:Boolean});var hae=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(hae||{});const Jlt=Object.values(hae),Q3=Oe({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:fe(Object),default:null}}),eut=Oe({side:{type:fe(String),values:Jlt,required:!0}}),tut=["absolute","fixed"],rut=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],J3=Oe({ariaLabel:String,arrowPadding:{type:fe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:fe(String),values:rut,default:"bottom"},reference:{type:fe(Object),default:null},offset:{type:Number,default:8},strategy:{type:fe(String),values:tut,default:"absolute"},showArrow:{type:Boolean,default:!1}}),e4=Oe({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:fe(Function)},"onUpdate:open":{type:fe(Function)}}),Uv={type:fe(Function)},t4=Oe({onBlur:Uv,onClick:Uv,onFocus:Uv,onMouseDown:Uv,onMouseEnter:Uv,onMouseLeave:Uv}),nut=Oe({...e4,...Q3,...t4,...J3,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:fe(Object),default:null},teleported:Boolean,to:{type:fe(String),default:"body"}}),NT=Symbol("tooltipV2"),vae=Symbol("tooltipV2Content"),eD="tooltip_v2.open",aut=te({name:"ElTooltipV2Root"}),iut=te({...aut,props:e4,setup(e,{expose:t}){const r=e,n=G(r.defaultOpen),a=G(null),i=F({get:()=>CGe(r.open)?n.value:r.open,set:g=>{var m;n.value=g,(m=r["onUpdate:open"])==null||m.call(r,g)}}),o=F(()=>ct(r.delayDuration)&&r.delayDuration>0),{start:s,stop:l}=Wh(()=>{i.value=!0},F(()=>r.delayDuration),{immediate:!1}),u=Ce("tooltip-v2"),c=co(),f=()=>{l(),i.value=!0},d=()=>{b(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return Ae(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent(eD)),h()),(m=r.onOpenChange)==null||m.call(r,g)}),xt(()=>{document.addEventListener(eD,v)}),un(()=>{l(),document.removeEventListener(eD,v)}),Wt(NT,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:v}),(g,m)=>ye(g.$slots,"default",{open:b(i)})}});var out=ke(iut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const sut=te({name:"ElTooltipV2Arrow"}),lut=te({...sut,props:{...Q3,...eut},setup(e){const t=e,{ns:r}=Ye(NT),{arrowRef:n}=Ye(vae),a=F(()=>{const{style:i,width:o,height:s}=t,l=r.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(N(),U("span",{ref_key:"arrowRef",ref:n,style:Xe(b(a)),class:H(b(r).e("arrow"))},null,6))}});var a$=ke(lut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const uut=Oe({style:{type:fe([String,Object,Array]),default:()=>({})}}),cut=te({name:"ElVisuallyHidden"}),fut=te({...cut,props:uut,setup(e){const t=e,r=F(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(n,a)=>(N(),U("span",Ut(n.$attrs,{style:b(r)}),[ye(n.$slots,"default")],16))}});var dut=ke(fut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const hut=["data-side"],vut=te({name:"ElTooltipV2Content"}),put=te({...vut,props:{...J3,...dae},setup(e){const t=e,{triggerRef:r,contentId:n}=Ye(NT),a=G(t.placement),i=G(t.strategy),o=G(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=HWe({placement:a,strategy:i,middleware:F(()=>{const _=[SWe(t.offset)];return t.showArrow&&_.push(GWe({arrowRef:o})),_})}),h=im().nextZIndex(),v=Ce("tooltip-v2"),p=F(()=>a.value.split("-")[0]),g=F(()=>({position:b(i),top:`${b(f)||0}px`,left:`${b(c)||0}px`,zIndex:h})),m=F(()=>{if(!t.showArrow)return{};const{arrow:_}=b(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${_==null?void 0:_.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${_==null?void 0:_.y}px`||""}}),y=F(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(b(i)),t.contentClass]);return Ae(o,()=>d()),Ae(()=>t.placement,_=>a.value=_),xt(()=>{Ae(()=>t.reference||r.value,_=>{s.value=_||void 0},{immediate:!0})}),Wt(vae,{arrowRef:o}),(_,w)=>(N(),U("div",{ref_key:"contentRef",ref:l,style:Xe(b(g)),"data-tooltip-v2-root":""},[_.nowrap?ce("v-if",!0):(N(),U("div",{key:0,"data-side":b(p),class:H(b(y))},[ye(_.$slots,"default",{contentStyle:b(g),contentClass:b(y)}),J(b(dut),{id:b(n),role:"tooltip"},{default:le(()=>[_.ariaLabel?(N(),U(Be,{key:0},[nr(me(_.ariaLabel),1)],64)):ye(_.$slots,"default",{key:1})]),_:3},8,["id"]),ye(_.$slots,"arrow",{style:Xe(b(m)),side:b(p)})],10,hut))],4))}});var i$=ke(put,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const gut=Oe({setRef:{type:fe(Function),required:!0},onlyChild:Boolean});var mut=te({props:gut,setup(e,{slots:t}){const r=G(),n=_T(r,a=>{a?e.setRef(a.nextElementSibling):e.setRef(null)});return()=>{var a;const[i]=((a=t.default)==null?void 0:a.call(t))||[],o=e.onlyChild?KUe(i.children):i.children;return J(Be,{ref:n},[o])}}});const yut=te({name:"ElTooltipV2Trigger"}),_ut=te({...yut,props:{...dae,...t4},setup(e){const t=e,{onClose:r,onOpen:n,onDelayOpen:a,triggerRef:i,contentId:o}=Ye(NT);let s=!1;const l=y=>{i.value=y},u=()=>{s=!1},c=Mn(t.onMouseEnter,a),f=Mn(t.onMouseLeave,r),d=Mn(t.onMouseDown,()=>{r(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Mn(t.onFocus,()=>{s||n()}),v=Mn(t.onBlur,r),p=Mn(t.onClick,y=>{y.detail===0&&r()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(y,_,w)=>{y&&Object.entries(_).forEach(([x,S])=>{y[w](x,S)})};return Ae(i,(y,_)=>{m(y,g,"addEventListener"),m(_,g,"removeEventListener"),y&&y.setAttribute("aria-describedby",o.value)}),un(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(y,_)=>y.nowrap?(N(),he(b(mut),{key:0,"set-ref":l,"only-child":""},{default:le(()=>[ye(y.$slots,"default")]),_:3})):(N(),U("button",Ut({key:1,ref_key:"triggerRef",ref:i},y.$attrs),[ye(y.$slots,"default")],16))}});var but=ke(_ut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const wut=te({name:"ElTooltipV2"}),Sut=te({...wut,props:nut,setup(e){const r=Da(e),n=Ar(Du(r,Object.keys(Q3))),a=Ar(Du(r,Object.keys(J3))),i=Ar(Du(r,Object.keys(e4))),o=Ar(Du(r,Object.keys(t4)));return(s,l)=>(N(),he(out,Rs(K2(i)),{default:le(({open:u})=>[J(but,Ut(o,{nowrap:""}),{default:le(()=>[ye(s.$slots,"trigger")]),_:3},16),(N(),he(W_,{to:s.to,disabled:!s.teleported},[s.fullTransition?(N(),he(Yn,Rs(Ut({key:0},s.transitionProps)),{default:le(()=>[s.alwaysOn||u?(N(),he(i$,Rs(Ut({key:0},a)),{arrow:le(({style:c,side:f})=>[s.showArrow?(N(),he(a$,Ut({key:0},n,{style:c,side:f}),null,16,["style","side"])):ce("v-if",!0)]),default:le(()=>[ye(s.$slots,"default")]),_:3},16)):ce("v-if",!0)]),_:2},1040)):(N(),U(Be,{key:1},[s.alwaysOn||u?(N(),he(i$,Rs(Ut({key:0},a)),{arrow:le(({style:c,side:f})=>[s.showArrow?(N(),he(a$,Ut({key:0},n,{style:c,side:f}),null,16,["style","side"])):ce("v-if",!0)]),default:le(()=>[ye(s.$slots,"default")]),_:3},16)):ce("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var xut=ke(Sut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const Aut=kt(xut),pae="left-check-change",gae="right-check-change",lp=Oe({data:{type:fe(Array),default:()=>[]},titles:{type:fe(Array),default:()=>[]},buttonTexts:{type:fe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:fe(Function)},leftDefaultChecked:{type:fe(Array),default:()=>[]},rightDefaultChecked:{type:fe(Array),default:()=>[]},renderContent:{type:fe(Function)},modelValue:{type:fe(Array),default:()=>[]},format:{type:fe(Object),default:()=>({})},filterable:Boolean,props:{type:fe(Object),default:()=>mn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),VI=(e,t)=>[e,t].every(We)||We(e)&&Qn(t),Tut={[ln]:(e,t,r)=>[e,r].every(We)&&["left","right"].includes(t),[Nt]:e=>We(e),[pae]:VI,[gae]:VI},zI="checked-change",Cut=Oe({data:lp.data,optionRender:{type:fe(Function)},placeholder:String,title:String,filterable:Boolean,format:lp.format,filterMethod:lp.filterMethod,defaultChecked:lp.leftDefaultChecked,props:lp.props}),Eut={[zI]:VI},B1=e=>{const t={label:"label",key:"key",disabled:"disabled"};return F(()=>({...t,...e.props}))},Mut=(e,t,r)=>{const n=B1(e),a=F(()=>e.data.filter(c=>dt(e.filterMethod)?e.filterMethod(t.query,c):String(c[n.value.label]||c[n.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=F(()=>a.value.filter(c=>!c[n.value.disabled])),o=F(()=>{const c=t.checked.length,f=e.data.length,{noChecked:d,hasChecked:h}=e.format;return d&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=F(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[n.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[n.value.key]):[]};return Ae(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));r(zI,c,d)}else r(zI,c),t.checkChangeByUser=!0}),Ae(i,()=>{l()}),Ae(()=>e.data,()=>{const c=[],f=a.value.map(d=>d[n.value.key]);t.checked.forEach(d=>{f.includes(d)&&c.push(d)}),t.checkChangeByUser=!1,t.checked=c}),Ae(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(v=>f.includes(v)))return;const d=[],h=i.value.map(v=>v[n.value.key]);c.forEach(v=>{h.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},Dut=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(pae,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(gae,a,i)}}),Put=e=>{const t=B1(e),r=F(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),n=F(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=F(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const s=r.value[o];return s&&i.push(s),i},[]));return{sourceData:n,targetData:a}},Lut=(e,t,r)=>{const n=B1(e),a=(s,l,u)=>{r(Nt,s),r(ln,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[n.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[n.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[n.value.key])).map(u=>u[n.value.key])),a(s,"right",t.leftChecked)}}},Iut=te({name:"ElTransferPanel"}),Rut=te({...Iut,props:Cut,emits:Eut,setup(e,{expose:t,emit:r}){const n=e,a=$a(),i=({option:_})=>_,{t:o}=fr(),s=Ce("transfer"),l=Ar({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=B1(n),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=Mut(n,l,r),v=F(()=>!qo(l.query)&&qo(c.value)),p=F(()=>!qo(a.default()[0].children)),{checked:g,allChecked:m,query:y}=Da(l);return t({query:y}),(_,w)=>(N(),U("div",{class:H(b(s).b("panel"))},[V("p",{class:H(b(s).be("panel","header"))},[J(b(hs),{modelValue:b(m),"onUpdate:modelValue":w[0]||(w[0]=x=>Qr(m)?m.value=x:null),indeterminate:b(d),"validate-event":!1,onChange:b(h)},{default:le(()=>[nr(me(_.title)+" ",1),V("span",null,me(b(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),V("div",{class:H([b(s).be("panel","body"),b(s).is("with-footer",b(p))])},[_.filterable?(N(),he(b(li),{key:0,modelValue:b(y),"onUpdate:modelValue":w[1]||(w[1]=x=>Qr(y)?y.value=x:null),class:H(b(s).be("panel","filter")),size:"default",placeholder:_.placeholder,"prefix-icon":b(TUe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ce("v-if",!0),Ct(J(b(Sre),{modelValue:b(g),"onUpdate:modelValue":w[2]||(w[2]=x=>Qr(g)?g.value=x:null),"validate-event":!1,class:H([b(s).is("filterable",_.filterable),b(s).be("panel","list")])},{default:le(()=>[(N(!0),U(Be,null,ht(b(c),x=>(N(),he(b(hs),{key:x[b(u).key],class:H(b(s).be("panel","item")),label:x[b(u).key],disabled:x[b(u).disabled],"validate-event":!1},{default:le(()=>{var S;return[J(i,{option:(S=_.optionRender)==null?void 0:S.call(_,x)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[hr,!b(v)&&!b(qo)(_.data)]]),Ct(V("p",{class:H(b(s).be("panel","empty"))},me(b(v)?b(o)("el.transfer.noMatch"):b(o)("el.transfer.noData")),3),[[hr,b(v)||b(qo)(_.data)]])],2),b(p)?(N(),U("p",{key:0,class:H(b(s).be("panel","footer"))},[ye(_.$slots,"default")],2)):ce("v-if",!0)],2))}});var o$=ke(Rut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const Out={key:0},kut={key:0},Nut=te({name:"ElTransfer"}),But=te({...Nut,props:lp,emits:Tut,setup(e,{expose:t,emit:r}){const n=e,a=$a(),{t:i}=fr(),o=Ce("transfer"),{formItem:s}=Vi(),l=Ar({leftChecked:[],rightChecked:[]}),u=B1(n),{sourceData:c,targetData:f}=Put(n),{onSourceCheckedChange:d,onTargetCheckedChange:h}=Dut(l,r),{addToLeft:v,addToRight:p}=Lut(n,l,r),g=G(),m=G(),y=A=>{switch(A){case"left":g.value.query="";break;case"right":m.value.query="";break}},_=F(()=>n.buttonTexts.length===2),w=F(()=>n.titles[0]||i("el.transfer.titles.0")),x=F(()=>n.titles[1]||i("el.transfer.titles.1")),S=F(()=>n.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ae(()=>n.modelValue,()=>{var A;n.validateEvent&&((A=s==null?void 0:s.validate)==null||A.call(s,"change").catch(C=>void 0))});const T=F(()=>A=>n.renderContent?n.renderContent(et,A):a.default?a.default({option:A}):et("span",A[u.value.label]||A[u.value.key]));return t({clearQuery:y,leftPanel:g,rightPanel:m}),(A,C)=>(N(),U("div",{class:H(b(o).b())},[J(o$,{ref_key:"leftPanel",ref:g,data:b(c),"option-render":b(T),placeholder:b(S),title:b(w),filterable:A.filterable,format:A.format,"filter-method":A.filterMethod,"default-checked":A.leftDefaultChecked,props:n.props,onCheckedChange:b(d)},{default:le(()=>[ye(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),V("div",{class:H(b(o).e("buttons"))},[J(b(Ja),{type:"primary",class:H([b(o).e("button"),b(o).is("with-texts",b(_))]),disabled:b(qo)(l.rightChecked),onClick:b(v)},{default:le(()=>[J(b(Ze),null,{default:le(()=>[J(b(Tf))]),_:1}),b(oa)(A.buttonTexts[0])?ce("v-if",!0):(N(),U("span",Out,me(A.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),J(b(Ja),{type:"primary",class:H([b(o).e("button"),b(o).is("with-texts",b(_))]),disabled:b(qo)(l.leftChecked),onClick:b(p)},{default:le(()=>[b(oa)(A.buttonTexts[1])?ce("v-if",!0):(N(),U("span",kut,me(A.buttonTexts[1]),1)),J(b(Ze),null,{default:le(()=>[J(b(Mi))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),J(o$,{ref_key:"rightPanel",ref:m,data:b(f),"option-render":b(T),placeholder:b(S),filterable:A.filterable,format:A.format,"filter-method":A.filterMethod,title:b(x),"default-checked":A.rightDefaultChecked,props:n.props,onCheckedChange:b(h)},{default:le(()=>[ye(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Fut=ke(But,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const Vut=kt(Fut),zp="$treeNodeId",s$=function(e,t){!t||t[zp]||Object.defineProperty(t,zp,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},r4=function(e,t){return e?t[e]:t[zp]},HI=(e,t,r)=>{const n=e.value.currentNode;r();const a=e.value.currentNode;n!==a&&t("current-change",a?a.data:null,a)},GI=e=>{let t=!0,r=!0,n=!0;for(let a=0,i=e.length;a<i;a++){const o=e[a];(o.checked!==!0||o.indeterminate)&&(t=!1,o.disabled||(n=!1)),(o.checked!==!1||o.indeterminate)&&(r=!1)}return{all:t,none:r,allWithoutDisable:n,half:!t&&!r}},LS=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:r,half:n}=GI(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):n?(e.checked=!1,e.indeterminate=!0):r&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||LS(a)},yw=function(e,t){const r=e.store.props,n=e.data||{},a=r[t];if(typeof a=="function")return a(n,e);if(typeof a=="string")return n[a];if(typeof a>"u"){const i=n[t];return i===void 0?"":i}};let zut=0,UI=class IS{constructor(t){this.id=zut++,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 r in t)or(t,r)&&(this[r]=t[r]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const r=t.props;if(r&&typeof r.isLeaf<"u"){const i=yw(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||s$(this,this.data),!this.data)return;const n=t.defaultExpandedKeys,a=t.key;a&&n&&n.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||s$(this,t),this.data=t,this.childNodes=[];let r;this.level===0&&Array.isArray(this.data)?r=this.data:r=yw(this,"children")||[];for(let n=0,a=r.length;n<a;n++)this.insertChild({data:r[n]})}get label(){return yw(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return yw(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return t.childNodes[r+1]}return null}get previousSibling(){const t=this.parent;if(t){const r=t.childNodes.indexOf(this);if(r>-1)return r>0?t.childNodes[r-1]:null}return null}contains(t,r=!0){return(this.childNodes||[]).some(n=>n===t||r&&n.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,r,n){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof IS)){if(!n){const a=this.getChildren(!0);a.includes(t.data)||(typeof r>"u"||r<0?a.push(t.data):a.splice(r,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ar(new IS(t)),t instanceof IS&&t.initialize()}t.level=this.level+1,typeof r>"u"||r<0?this.childNodes.push(t):this.childNodes.splice(r,0,t),this.updateLeafState()}insertBefore(t,r){let n;r&&(n=this.childNodes.indexOf(r)),this.insertChild(t,n)}insertAfter(t,r){let n;r&&(n=this.childNodes.indexOf(r),n!==-1&&(n+=1)),this.insertChild(t,n)}removeChild(t){const r=this.getChildren()||[],n=r.indexOf(t.data);n>-1&&r.splice(n,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let r=null;for(let n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===t){r=this.childNodes[n];break}r&&this.removeChild(r)}expand(t,r){const n=()=>{if(r){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||LS(this),n())}):n()}doCreateChildren(t,r={}){t.forEach(n=>{this.insertChild(Object.assign({data:n},r),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,r,n,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=GI(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,t=!1);const l=()=>{if(r){const u=this.childNodes;for(let d=0,h=u.length;d<h;d++){const v=u[d];a=a||t!==!1;const p=v.disabled?v.checked:a;v.setChecked(p,r,!0,a)}const{half:c,all:f}=GI(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),LS(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||n||LS(i)}getChildren(t=!1){if(this.level===0)return this.data;const r=this.data;if(!r)return null;const n=this.store.props;let a="children";return n&&(a=n.children||"children"),r[a]===void 0&&(r[a]=null),t&&!r[a]&&(r[a]=[]),r[a]}updateChildren(){const t=this.getChildren()||[],r=this.childNodes.map(i=>i.data),n={},a=[];t.forEach((i,o)=>{const s=i[zp];!!s&&r.findIndex(u=>u[zp]===s)>=0?n[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||r.forEach(i=>{n[i[zp]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(t,r={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(r).length)){this.loading=!0;const n=a=>{this.childNodes=[],this.doCreateChildren(a,r),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,a)};this.store.load(this,n)}else t&&t.call(this)}};class Hut{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const r in t)or(t,r)&&(this[r]=t[r]);this.nodesMap={}}initialize(){if(this.root=new UI({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,r=>{this.root.doCreateChildren(r),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const r=this.filterNodeMethod,n=this.lazy,a=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(s=>{s.visible=r.call(s,t,s.data,s),a(s)}),!i.visible&&o.length){let s=!0;s=!o.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&!n&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof UI)return t;const r=Vt(t)?r4(this.key,t):t;return this.nodesMap[r]||null}insertBefore(t,r){const n=this.getNode(r);n.parent.insertBefore({data:t},n)}insertAfter(t,r){const n=this.getNode(r);n.parent.insertAfter({data:t},n)}remove(t){const r=this.getNode(t);r&&r.parent&&(r===this.currentNode&&(this.currentNode=null),r.parent.removeChild(r))}append(t,r){const n=r?this.getNode(r):this.root;n&&n.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],r=this.nodesMap;t.forEach(n=>{const a=r[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const r=this.key;!t||!t.data||(r?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(n=>{this.deregisterNode(n)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,r=!1){const n=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||r&&s.indeterminate)&&(!t||t&&s.isLeaf)&&n.push(s.data),a(s)})};return a(this),n}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(r=>(r||{})[this.key])}getHalfCheckedNodes(){const t=[],r=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),r(i)})};return r(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],r=this.nodesMap;for(const n in r)or(r,n)&&t.push(r[n]);return t}updateChildren(t,r){const n=this.nodesMap[t];if(!n)return;const a=n.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=r.length;i<o;i++){const s=r[i];this.append(s,n.data)}}_setCheckedKeys(t,r=!1,n){const a=this._getAllNodes().sort((s,l)=>l.level-s.level),i=Object.create(null),o=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s<l;s++){const u=a[s],c=u.data[t].toString();if(!o.includes(c)){u.checked&&!i[c]&&u.setChecked(!1,!1);continue}let d=u.parent;for(;d&&d.level>0;)i[d.data[t]]=!0,d=d.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),r){u.setChecked(!1,!1);const h=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(t,r=!1){const n=this.key,a={};t.forEach(i=>{a[(i||{})[n]]=!0}),this._setCheckedKeys(n,r,a)}setCheckedKeys(t,r=!1){this.defaultCheckedKeys=t;const n=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(n,r,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(r=>{const n=this.getNode(r);n&&n.expand(null,this.autoExpandParent)})}setChecked(t,r,n){const a=this.getNode(t);a&&a.setChecked(!!r,n)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const r=this.currentNode;r&&(r.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,r=!0){const n=t[this.key],a=this.nodesMap[n];this.setCurrentNode(a),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,r=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(t);n&&(this.setCurrentNode(n),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const Gut=te({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ce("tree"),r=Ye("NodeInstance"),n=Ye("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(et,{_self:r,node:a,data:i,store:o}):ye(n.ctx.slots,"default",{node:a,data:i},()=>[et("span",{class:t.be("node","label")},[a.label])])}}});var Uut=ke(Gut,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function mae(e){const t=Ye("TreeNodeMap",null),r={treeNodeExpand:n=>{e.node!==n&&e.node.collapse()},children:[]};return t&&t.children.push(r),Wt("TreeNodeMap",r),{broadcastExpanded:n=>{if(e.accordion)for(const a of r.children)a.treeNodeExpand(n)}}}const yae=Symbol("dragEvents");function $ut({props:e,ctx:t,el$:r,dropIndicator$:n,store:a}){const i=Ce("tree"),o=G({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Wt(yae,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const d=f,h=o.value.dropNode;h&&h.node.id!==d.node.id&&ro(h.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!d)return;let p=!0,g=!0,m=!0,y=!0;typeof e.allowDrop=="function"&&(p=e.allowDrop(v.node,d.node,"prev"),y=g=e.allowDrop(v.node,d.node,"inner"),m=e.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=g||p||m?"move":"none",(p||g||m)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&t.emit("node-drag-leave",v.node,h.node,c),t.emit("node-drag-enter",v.node,d.node,c)),(p||g||m)&&(o.value.dropNode=d),d.node.nextSibling===v.node&&(m=!1),d.node.previousSibling===v.node&&(p=!1),d.node.contains(v.node,!1)&&(g=!1),(v.node===d.node||v.node.contains(d.node))&&(p=!1,g=!1,m=!1);const _=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),w=r.value.getBoundingClientRect();let x;const S=p?g?.25:m?.45:1:-1,T=m?g?.75:p?.55:0:1;let A=-9999;const C=c.clientY-_.top;C<_.height*S?x="before":C>_.height*T?x="after":g?x="inner":x="none";const M=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),E=n.value;x==="before"?A=M.top-w.top:x==="after"&&(A=M.bottom-w.top),E.style.top=`${A}px`,E.style.left=`${M.right-w.left}px`,x==="inner"?Pl(d.$el,i.is("drop-inner")):ro(d.$el,i.is("drop-inner")),o.value.showDropIndicator=x==="before"||x==="after",o.value.allowDrop=o.value.showDropIndicator||y,o.value.dropType=x,t.emit("node-drag-over",v.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(v,h.node):d==="after"?h.node.parent.insertAfter(v,h.node):d==="inner"&&h.node.insertChild(v),d!=="none"&&a.value.registerNode(v),ro(h.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,h.node,d,c),d!=="none"&&t.emit("node-drop",f.node,h.node,d,c)}f&&!h&&t.emit("node-drag-end",f.node,null,d,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const Wut=te({name:"ElTreeNode",components:{ElCollapseTransition:LT,ElCheckbox:hs,NodeContent:Uut,ElIcon:Ze,Loading:Hf},props:{node:{type:UI,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const r=Ce("tree"),{broadcastExpanded:n}=mae(e),a=Ye("RootTree"),i=G(!1),o=G(!1),s=G(null),l=G(null),u=G(null),c=Ye(yae),f=It();Wt("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";Ae(()=>{const C=e.node.data[d];return C&&[...C]},()=>{e.node.updateChildren()}),Ae(()=>e.node.indeterminate,C=>{p(e.node.checked,C)}),Ae(()=>e.node.checked,C=>{p(C,e.node.indeterminate)}),Ae(()=>e.node.expanded,C=>{qe(()=>i.value=C),C&&(o.value=!0)});const h=C=>r4(a.props.nodeKey,C.data),v=C=>{const M=e.props.class;if(!M)return{};let E;if(dt(M)){const{data:D}=C;E=M(D,C)}else E=M;return wt(E)?{[E]:!0}:E},p=(C,M)=>{(s.value!==C||l.value!==M)&&a.ctx.emit("check-change",e.node.data,C,M),s.value=C,l.value=M},g=C=>{HI(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&y(),a.props.checkOnClickNode&&!e.node.disabled&&_(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,C)},m=C=>{a.instance.vnode.props.onNodeContextmenu&&(C.stopPropagation(),C.preventDefault()),a.ctx.emit("node-contextmenu",C,e.node.data,e.node,f)},y=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,f)))},_=(C,M)=>{e.node.setChecked(M.target.checked,!a.props.checkStrictly),qe(()=>{const E=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:E.getCheckedNodes(),checkedKeys:E.getCheckedKeys(),halfCheckedNodes:E.getHalfCheckedNodes(),halfCheckedKeys:E.getHalfCheckedKeys()})})};return{ns:r,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:p,handleClick:g,handleContextMenu:m,handleExpandIconClick:y,handleCheckChange:_,handleChildNodeExpand:(C,M,E)=>{n(M),a.ctx.emit("node-expand",C,M,E)},handleDragStart:C=>{a.props.draggable&&c.treeNodeDragStart({event:C,treeNode:e})},handleDragOver:C=>{C.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:C,treeNode:{$el:u.value,node:e.node}})},handleDrop:C=>{C.preventDefault()},handleDragEnd:C=>{a.props.draggable&&c.treeNodeDragEnd(C)},CaretRight:Iee}}}),Yut=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],jut=["aria-expanded"];function Kut(e,t,r,n,a,i){const o=bt("el-icon"),s=bt("el-checkbox"),l=bt("loading"),u=bt("node-content"),c=bt("el-tree-node"),f=bt("el-collapse-transition");return Ct((N(),U("div",{ref:"node$",class:H([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=it((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=it((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=it((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=it((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=it((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[V("div",{class:H(e.ns.be("node","content")),style:Xe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(N(),he(o,{key:0,class:H([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:it(e.handleExpandIconClick,["stop"])},{default:le(()=>[(N(),he(Ft(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ce("v-if",!0),e.showCheckbox?(N(),he(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ce("v-if",!0),e.node.loading?(N(),he(o,{key:2,class:H([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:le(()=>[J(l)]),_:1},8,["class"])):ce("v-if",!0),J(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),J(f,null,{default:le(()=>[!e.renderAfterExpand||e.childNodeRendered?Ct((N(),U("div",{key:0,class:H(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(N(!0),U(Be,null,ht(e.node.childNodes,d=>(N(),he(c,{key:e.getNodeKey(d),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:d,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,jut)),[[hr,e.expanded]]):ce("v-if",!0)]),_:1})],42,Yut)),[[hr,e.node.visible]])}var Xut=ke(Wut,[["render",Kut],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function Zut({el$:e},t){const r=Ce("tree"),n=yr([]),a=yr([]);xt(()=>{o()}),qu(()=>{n.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Ae(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),dn(e,"keydown",s=>{const l=s.target;if(!l.className.includes(r.b("node")))return;const u=s.code;n.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`));const c=n.value.indexOf(l);let f;if([Qe.up,Qe.down].includes(u)){if(s.preventDefault(),u===Qe.up){f=c===-1?0:c!==0?c-1:n.value.length-1;const h=f;for(;!t.value.getNode(n.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=n.value.length-1)}}else{f=c===-1?0:c<n.value.length-1?c+1:0;const h=f;for(;!t.value.getNode(n.value[f].dataset.key).canFocus;){if(f++,f===h){f=-1;break}f>=n.value.length&&(f=0)}}f!==-1&&n.value[f].focus()}[Qe.left,Qe.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Qe.enter,Qe.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;n.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${r.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=n.value[0])==null||s.setAttribute("tabindex","0")}}const qut=te({name:"ElTree",components:{ElTreeNode:Xut},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:Zr}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:r}=fr(),n=Ce("tree"),a=G(new Hut({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const i=G(a.value.root),o=G(null),s=G(null),l=G(null),{broadcastExpanded:u}=mae(e),{dragState:c}=$ut({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});Zut({el$:s},a);const f=F(()=>{const{childNodes:R}=i.value;return!R||R.length===0||R.every(({visible:B})=>!B)});Ae(()=>e.currentNodeKey,R=>{a.value.setCurrentNodeKey(R)}),Ae(()=>e.defaultCheckedKeys,R=>{a.value.setDefaultCheckedKey(R)}),Ae(()=>e.defaultExpandedKeys,R=>{a.value.setDefaultExpandedKeys(R)}),Ae(()=>e.data,R=>{a.value.setData(R)},{deep:!0}),Ae(()=>e.checkStrictly,R=>{a.value.checkStrictly=R});const d=R=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(R)},h=R=>r4(e.nodeKey,R.data),v=R=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const B=a.value.getNode(R);if(!B)return[];const k=[B.data];let z=B.parent;for(;z&&z!==i.value;)k.push(z.data),z=z.parent;return k.reverse()},p=(R,B)=>a.value.getCheckedNodes(R,B),g=R=>a.value.getCheckedKeys(R),m=()=>{const R=a.value.getCurrentNode();return R?R.data:null},y=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const R=m();return R?R[e.nodeKey]:null},_=(R,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(R,B)},w=(R,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(R,B)},x=(R,B,k)=>{a.value.setChecked(R,B,k)},S=()=>a.value.getHalfCheckedNodes(),T=()=>a.value.getHalfCheckedKeys(),A=(R,B=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");HI(a,t.emit,()=>a.value.setUserCurrentNode(R,B))},C=(R,B=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");HI(a,t.emit,()=>a.value.setCurrentNodeKey(R,B))},M=R=>a.value.getNode(R),E=R=>{a.value.remove(R)},D=(R,B)=>{a.value.append(R,B)},P=(R,B)=>{a.value.insertBefore(R,B)},L=(R,B)=>{a.value.insertAfter(R,B)},I=(R,B,k)=>{u(B),t.emit("node-expand",R,B,k)},O=(R,B)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(R,B)};return Wt("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:It()}),Wt(Yl,void 0),{ns:n,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:v,getCheckedNodes:p,getCheckedKeys:g,getCurrentNode:m,getCurrentKey:y,setCheckedNodes:_,setCheckedKeys:w,setChecked:x,getHalfCheckedNodes:S,getHalfCheckedKeys:T,setCurrentNode:A,setCurrentKey:C,t:r,getNode:M,remove:E,append:D,insertBefore:P,insertAfter:L,handleNodeExpand:I,updateKeyChildren:O}}});function Qut(e,t,r,n,a,i){const o=bt("el-tree-node");return N(),U("div",{ref:"el$",class:H([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(N(!0),U(Be,null,ht(e.root.childNodes,s=>(N(),he(o,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(N(),U("div",{key:0,class:H(e.ns.e("empty-block"))},[ye(e.$slots,"empty",{},()=>{var s;return[V("span",{class:H(e.ns.e("empty-text"))},me((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):ce("v-if",!0),Ct(V("div",{ref:"dropIndicator$",class:H(e.ns.e("drop-indicator"))},null,2),[[hr,e.dragState.showDropIndicator]])],2)}var RS=ke(qut,[["render",Qut],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);RS.install=e=>{e.component(RS.name,RS)};const S2=RS,Jut=S2,ect=(e,{attrs:t,emit:r},{tree:n,key:a})=>{const i=Ce("tree-select"),o={...Du(Da(e),Object.keys(Kh.props)),...t,"onUpdate:modelValue":s=>r(Nt,s),valueKey:a,popperClass:F(()=>{const s=[i.e("popper")];return e.popperClass&&s.push(e.popperClass),s.join(" ")}),filterMethod:(s="")=>{e.filterMethod&&e.filterMethod(s),qe(()=>{var l;(l=n.value)==null||l.filter(s)})},onVisibleChange:s=>{var l;(l=t.onVisibleChange)==null||l.call(t,s),e.filterable&&s&&o.filterMethod()}};return o},tct=te({extends:v2,setup(e,t){const r=v2.setup(e,t);delete r.selectOptionClick;const n=It().proxy;return qe(()=>{r.select.cachedOptions.get(n.value)||r.select.onOptionCreate(n)}),r},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function $I(e){return e||e===0}function n4(e){return Array.isArray(e)&&e.length}function ry(e){return Array.isArray(e)?e:$I(e)?[e]:[]}function OS(e,t,r,n,a){for(let i=0;i<e.length;i++){const o=e[i];if(t(o,i,e,a))return n?n(o,i,e,a):o;{const s=r(o);if(n4(s)){const l=OS(s,t,r,n,o);if(l)return l}}}}function _ae(e,t,r,n){for(let a=0;a<e.length;a++){const i=e[a];t(i,a,e,n);const o=r(i);n4(o)&&_ae(o,t,r,i)}}const rct=(e,{attrs:t,slots:r,emit:n},{select:a,tree:i,key:o})=>{Ae(()=>e.modelValue,()=>{e.showCheckbox&&qe(()=>{const d=i.value;d&&!to(d.getCheckedKeys(),ry(e.modelValue))&&d.setCheckedKeys(ry(e.modelValue))})},{immediate:!0,deep:!0});const s=F(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,h)=>{var v;const p=s.value[d];return dt(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=ry(e.modelValue).map(d=>OS(e.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>$I(d)),c=F(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return _ae(e.data.concat(e.cacheData),h=>{const v=l("value",h);d.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=F(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...Du(Da(e),Object.keys(S2.props)),...t,nodeKey:o,expandOnClickNode:F(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:F(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(tct,{value:l("value",v),label:l("label",v),disabled:l("disabled",v)},e.renderContent?()=>e.renderContent(d,{node:h,data:v,store:p}):r.default?()=>r.default({node:h,data:v,store:p}):void 0),filterNodeMethod:(d,h,v)=>{var p;return e.filterNodeMethod?e.filterNodeMethod(d,h,v):d?(p=l("label",h))==null?void 0:p.includes(d):!0},onNodeClick:(d,h,v)=>{var p,g,m;if((p=t.onNodeClick)==null||p.call(t,d,h,v),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",d)){const y=(g=a.value)==null?void 0:g.options.get(l("value",d));(m=a.value)==null||m.handleOptionSelect(y)}}else e.expandOnClickNode&&v.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!e.showCheckbox)return;const v=l("value",d),p=h.checkedKeys,g=e.multiple?ry(e.modelValue).filter(y=>y in f.value&&!i.value.getNode(y)&&!p.includes(y)):[],m=p.concat(g);if(e.checkStrictly)n(Nt,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)n(Nt,i.value.getCheckedKeys(!0));else{const y=OS([d],x=>!n4(l("children",x))&&!l("disabled",x),x=>l("children",x)),_=y?l("value",y):void 0,w=$I(e.modelValue)&&!!OS([d],x=>l("value",x)===e.modelValue,x=>l("children",x));n(Nt,_===e.modelValue||w?void 0:_)}qe(()=>{var y;const _=ry(e.modelValue);i.value.setCheckedKeys(_),(y=t.onCheck)==null||y.call(t,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var nct=te({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ye(k1);return Ae(()=>e.data,()=>{var r;e.data.forEach(a=>{t.cachedOptions.has(a.value)||t.cachedOptions.set(a.value,a)});const n=((r=t.selectWrapper)==null?void 0:r.querySelectorAll("input"))||[];Array.from(n).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const act=te({name:"ElTreeSelect",inheritAttrs:!1,props:{...Kh.props,...S2.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:r,expose:n}=t,a=G(),i=G(),o=F(()=>e.nodeKey||e.valueKey||"value"),s=ect(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=rct(e,t,{select:a,tree:i,key:o}),c=Ar({});return n(c),xt(()=>{Object.assign(c,{...Du(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Du(a.value,["focus","blur"])})}),()=>et(Kh,Ar({...s,ref:f=>a.value=f}),{...r,default:()=>[et(nct,{data:l.value}),et(S2,Ar({...u,ref:f=>i.value=f}))]})}});var kS=ke(act,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);kS.install=e=>{e.component(kS.name,kS)};const ict=kS,oct=ict,a4=Symbol(),sct={key:-1,level:-1,data:{}};var Ey=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Ey||{}),WI=(e=>(e.ADD="add",e.DELETE="delete",e))(WI||{});const bae={type:Number,default:26},lct=Oe({data:{type:fe(Array),default:()=>mn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:fe(Object),default:()=>mn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:fe(Array),default:()=>mn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:fe(Array),default:()=>mn([])},indent:{type:Number,default:16},itemSize:bae,icon:{type:Zr},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:fe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:fe(Function)},perfMode:{type:Boolean,default:!0}}),uct=Oe({node:{type:fe(Object),default:()=>mn(sct)},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:bae}),cct=Oe({node:{type:fe(Object),required:!0}}),wae="node-click",Sae="node-expand",xae="node-collapse",Aae="current-change",Tae="check",Cae="check-change",Eae="node-contextmenu",fct={[wae]:(e,t,r)=>e&&t&&r,[Sae]:(e,t)=>e&&t,[xae]:(e,t)=>e&&t,[Aae]:(e,t)=>e&&t,[Tae]:(e,t)=>e&&t,[Cae]:(e,t)=>e&&typeof t=="boolean",[Eae]:(e,t,r)=>e&&t&&r},dct={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function hct(e,t){const r=G(new Set),n=G(new Set),{emit:a}=It();Ae([()=>t.value,()=>e.defaultCheckedKeys],()=>qe(()=>{y(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:_,maxLevel:w}=t.value,x=r.value,S=new Set;for(let T=w-1;T>=1;--T){const A=_.get(T);A&&A.forEach(C=>{const M=C.children;if(M){let E=!0,D=!1;for(const P of M){const L=P.key;if(x.has(L))D=!0;else if(S.has(L)){E=!1,D=!0;break}else E=!1}E?x.add(C.key):D?(S.add(C.key),x.delete(C.key)):(x.delete(C.key),S.delete(C.key))}})}n.value=S},o=_=>r.value.has(_.key),s=_=>n.value.has(_.key),l=(_,w,x=!0)=>{const S=r.value,T=(A,C)=>{S[C?WI.ADD:WI.DELETE](A.key);const M=A.children;!e.checkStrictly&&M&&M.forEach(E=>{E.disabled||T(E,C)})};T(_,w),i(),x&&u(_,w)},u=(_,w)=>{const{checkedNodes:x,checkedKeys:S}=v(),{halfCheckedNodes:T,halfCheckedKeys:A}=p();a(Tae,_.data,{checkedKeys:S,checkedNodes:x,halfCheckedKeys:A,halfCheckedNodes:T}),a(Cae,_.data,w)};function c(_=!1){return v(_).checkedKeys}function f(_=!1){return v(_).checkedNodes}function d(){return p().halfCheckedKeys}function h(){return p().halfCheckedNodes}function v(_=!1){const w=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;r.value.forEach(T=>{const A=S.get(T);A&&(!_||_&&A.isLeaf)&&(x.push(T),w.push(A.data))})}return{checkedKeys:x,checkedNodes:w}}function p(){const _=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;n.value.forEach(S=>{const T=x.get(S);T&&(w.push(S),_.push(T.data))})}return{halfCheckedNodes:_,halfCheckedKeys:w}}function g(_){r.value.clear(),n.value.clear(),y(_)}function m(_,w){if(t!=null&&t.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(_);x&&l(x,w,!1)}}function y(_){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&_)for(const x of _){const S=w.get(x);S&&!o(S)&&l(S,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function vct(e,t){const r=G(new Set([])),n=G(new Set([])),a=F(()=>dt(e.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=n.value,f=r.value,d=[],h=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;f.clear();function p(g){g.forEach(m=>{d.push(m),v!=null&&v(s,m.data)?d.forEach(_=>{u.add(_.key)}):m.isLeaf&&f.add(m.key);const y=m.children;if(y&&p(y),!m.isLeaf){if(!u.has(m.key))f.add(m.key);else if(y){let _=!0;for(const w of y)if(!f.has(w.key)){_=!1;break}_?c.add(m.key):c.delete(m.key)}}d.pop()})}return p(h),u}function o(s){return n.value.has(s.key)}return{hiddenExpandIconKeySet:n,hiddenNodeKeySet:r,doFilter:i,isForceHiddenExpandIcon:o}}function pct(e,t){const r=G(new Set(e.defaultExpandedKeys)),n=G(),a=yr();Ae(()=>e.currentNodeKey,Z=>{n.value=Z},{immediate:!0}),Ae(()=>e.data,Z=>{ee(Z)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=hct(e,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=vct(e,a),m=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.value)||Ey.KEY}),y=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.children)||Ey.CHILDREN}),_=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.disabled)||Ey.DISABLED}),w=F(()=>{var Z;return((Z=e.props)==null?void 0:Z.label)||Ey.LABEL}),x=F(()=>{const Z=r.value,ne=p.value,re=[],ie=a.value&&a.value.treeNodes||[];function Y(){const q=[];for(let oe=ie.length-1;oe>=0;--oe)q.push(ie[oe]);for(;q.length;){const oe=q.pop();if(oe&&(ne.has(oe.key)||re.push(oe),Z.has(oe.key))){const ve=oe.children;if(ve){const _e=ve.length;for(let ge=_e-1;ge>=0;--ge)q.push(ve[ge])}}}}return Y(),re}),S=F(()=>x.value.length>0);function T(Z){const ne=new Map,re=new Map;let ie=1;function Y(oe,ve=1,_e=void 0){var ge;const Le=[];for(const Se of oe){const xe=M(Se),Te={level:ve,key:xe,data:Se};Te.label=D(Se),Te.parent=_e;const Ve=C(Se);Te.disabled=E(Se),Te.isLeaf=!Ve||Ve.length===0,Ve&&Ve.length&&(Te.children=Y(Ve,ve+1,Te)),Le.push(Te),ne.set(xe,Te),re.has(ve)||re.set(ve,[]),(ge=re.get(ve))==null||ge.push(Te)}return ve>ie&&(ie=ve),Le}const q=Y(Z);return{treeNodeMap:ne,levelTreeNodeMap:re,maxLevel:ie,treeNodes:q}}function A(Z){const ne=v(Z);ne&&(r.value=ne)}function C(Z){return Z[y.value]}function M(Z){return Z?Z[m.value]:""}function E(Z){return Z[_.value]}function D(Z){return Z[w.value]}function P(Z){r.value.has(Z.key)?k(Z):B(Z)}function L(Z){r.value=new Set(Z)}function I(Z,ne){t(wae,Z.data,Z,ne),O(Z),e.expandOnClickNode&&P(Z),e.showCheckbox&&e.checkOnClickNode&&!Z.disabled&&s(Z,!o(Z),!0)}function O(Z){j(Z)||(n.value=Z.key,t(Aae,Z.data,Z))}function R(Z,ne){s(Z,ne)}function B(Z){const ne=r.value;if(a.value&&e.accordion){const{treeNodeMap:re}=a.value;ne.forEach(ie=>{const Y=re.get(ie);Z&&Z.level===(Y==null?void 0:Y.level)&&ne.delete(ie)})}ne.add(Z.key),t(Sae,Z.data,Z)}function k(Z){r.value.delete(Z.key),t(xae,Z.data,Z)}function z(Z){return r.value.has(Z.key)}function $(Z){return!!Z.disabled}function j(Z){const ne=n.value;return ne!==void 0&&ne===Z.key}function X(){var Z,ne;if(n.value)return(ne=(Z=a.value)==null?void 0:Z.treeNodeMap.get(n.value))==null?void 0:ne.data}function Q(){return n.value}function se(Z){n.value=Z}function ee(Z){qe(()=>a.value=T(Z))}function K(Z){var ne;const re=Vt(Z)?M(Z):Z;return(ne=a.value)==null?void 0:ne.treeNodeMap.get(re)}return{tree:a,flattenTree:x,isNotEmpty:S,getKey:M,getChildren:C,toggleExpand:P,toggleCheckbox:s,isExpanded:z,isChecked:o,isIndeterminate:i,isDisabled:$,isCurrent:j,isForceHiddenExpandIcon:g,handleNodeClick:I,handleNodeCheck:R,getCurrentNode:X,getCurrentKey:Q,setCurrentKey:se,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:A,setData:ee,getNode:K,expandNode:B,collapseNode:k,setExpandedKeys:L}}var gct=te({name:"ElTreeNodeContent",props:cct,setup(e){const t=Ye(a4),r=Ce("tree");return()=>{const n=e.node,{data:a}=n;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:n,data:a}):et("span",{class:r.be("node","label")},[n==null?void 0:n.label])}}});const mct=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],yct=te({name:"ElTreeNode"}),_ct=te({...yct,props:uct,emits:dct,setup(e,{emit:t}){const r=e,n=Ye(a4),a=Ce("tree"),i=F(()=>{var f;return(f=n==null?void 0:n.props.indent)!=null?f:16}),o=F(()=>{var f;return(f=n==null?void 0:n.props.icon)!=null?f:Iee}),s=f=>{t("click",r.node,f)},l=()=>{t("toggle",r.node)},u=f=>{t("check",r.node,f)},c=f=>{var d,h,v,p;(v=(h=(d=n==null?void 0:n.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&v.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),n==null||n.ctx.emit(Eae,f,(p=r.node)==null?void 0:p.data,r.node)};return(f,d)=>{var h,v,p;return N(),U("div",{ref:"node$",class:H([b(a).b("node"),b(a).is("expanded",f.expanded),b(a).is("current",f.current),b(a).is("focusable",!f.disabled),b(a).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:it(s,["stop"]),onContextmenu:c},[V("div",{class:H(b(a).be("node","content")),style:Xe({paddingLeft:`${(f.node.level-1)*b(i)}px`,height:f.itemSize+"px"})},[b(o)?(N(),he(b(Ze),{key:0,class:H([b(a).is("leaf",!!((v=f.node)!=null&&v.isLeaf)),b(a).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},b(a).be("node","expand-icon")]),onClick:it(l,["stop"])},{default:le(()=>[(N(),he(Ft(b(o))))]),_:1},8,["class","onClick"])):ce("v-if",!0),f.showCheckbox?(N(),he(b(hs),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=it(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ce("v-if",!0),J(b(gct),{node:f.node},null,8,["node"])],6)],42,mct)}}});var bct=ke(_ct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const wct=te({name:"ElTreeV2"}),Sct=te({...wct,props:lct,emits:fct,setup(e,{expose:t,emit:r}){const n=e,a=$a(),i=F(()=>n.itemSize);Wt(a4,{ctx:{emit:r,slots:a},props:n,instance:It()}),Wt(Yl,void 0);const{t:o}=fr(),s=Ce("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:p,isForceHiddenExpandIcon:g,handleNodeClick:m,handleNodeCheck:y,toggleCheckbox:_,getCurrentNode:w,getCurrentKey:x,setCurrentKey:S,getCheckedKeys:T,getCheckedNodes:A,getHalfCheckedKeys:C,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:D,filter:P,setData:L,getNode:I,expandNode:O,collapseNode:R,setExpandedKeys:B}=pct(n,r);return t({toggleCheckbox:_,getCurrentNode:w,getCurrentKey:x,setCurrentKey:S,getCheckedKeys:T,getCheckedNodes:A,getHalfCheckedKeys:C,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:D,filter:P,setData:L,getNode:I,expandNode:O,collapseNode:R,setExpandedKeys:B}),(k,z)=>{var $;return N(),U("div",{class:H([b(s).b(),{[b(s).m("highlight-current")]:k.highlightCurrent}]),role:"tree"},[b(u)?(N(),he(b(Ine),{key:0,"class-name":b(s).b("virtual-list"),data:b(l),total:b(l).length,height:k.height,"item-size":b(i),"perf-mode":k.perfMode},{default:le(({data:j,index:X,style:Q})=>[(N(),he(bct,{key:j[X].key,style:Xe(Q),node:j[X],expanded:b(f)(j[X]),"show-checkbox":k.showCheckbox,checked:b(h)(j[X]),indeterminate:b(d)(j[X]),"item-size":b(i),disabled:b(v)(j[X]),current:b(p)(j[X]),"hidden-expand-icon":b(g)(j[X]),onClick:b(m),onToggle:b(c),onCheck:b(y)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(N(),U("div",{key:1,class:H(b(s).e("empty-block"))},[V("span",{class:H(b(s).e("empty-text"))},me(($=k.emptyText)!=null?$:b(o)("el.tree.emptyText")),3)],2))],2)}}});var xct=ke(Sct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Act=kt(xct),Mae=Symbol("uploadContextKey"),Tct="ElUpload";class Cct extends Error{constructor(t,r,n,a){super(t),this.name="UploadAjaxError",this.status=r,this.method=n,this.url=a}}function l$(e,t,r){let n;return r.response?n=`${r.response.error||r.response}`:r.responseText?n=`${r.responseText}`:n=`fail to ${t.method} ${e} ${r.status}`,new Cct(n,r.status,t.method,e)}function Ect(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Mct=e=>{typeof XMLHttpRequest>"u"&&ua(Tct,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,r=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(o)});const n=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))We(o)&&o.length?n.append(i,...o):n.append(i,o);n.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(l$(r,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(l$(r,e,t));e.onSuccess(Ect(t))}),t.open(e.method,r,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((i,o)=>t.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))Qn(o)||t.setRequestHeader(i,String(o));return t.send(n),t},Dae=["text","picture","picture-card"];let Dct=1;const YI=()=>Date.now()+Dct++,Pae=Oe({action:{type:String,default:"#"},headers:{type:fe(Object)},method:{type:String,default:"post"},data:{type:fe([Object,Function,Promise]),default:()=>mn({})},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:""},fileList:{type:fe(Array),default:()=>mn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Dae,default:"text"},httpRequest:{type:fe(Function),default:Mct},disabled:Boolean,limit:Number}),Pct=Oe({...Pae,beforeUpload:{type:fe(Function),default:zr},beforeRemove:{type:fe(Function)},onRemove:{type:fe(Function),default:zr},onChange:{type:fe(Function),default:zr},onPreview:{type:fe(Function),default:zr},onSuccess:{type:fe(Function),default:zr},onProgress:{type:fe(Function),default:zr},onError:{type:fe(Function),default:zr},onExceed:{type:fe(Function),default:zr}}),Lct=Oe({files:{type:fe(Array),default:()=>mn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:fe(Function),default:zr},listType:{type:String,values:Dae,default:"text"}}),Ict={remove:e=>!!e},Rct=["onKeydown"],Oct=["src"],kct=["onClick"],Nct=["title"],Bct=["onClick"],Fct=["onClick"],Vct=te({name:"ElUploadList"}),zct=te({...Vct,props:Lct,emits:Ict,setup(e,{emit:t}){const r=e,{t:n}=fr(),a=Ce("upload"),i=Ce("icon"),o=Ce("list"),s=ho(),l=G(!1),u=F(()=>[a.b("list"),a.bm("list",r.listType),a.is("disabled",r.disabled)]),c=f=>{t("remove",f)};return(f,d)=>(N(),he(Q9,{tag:"ul",class:H(b(u)),name:b(o).b()},{default:le(()=>[(N(!0),U(Be,null,ht(f.files,h=>(N(),U("li",{key:h.uid||h.name,class:H([b(a).be("list","item"),b(a).is(h.status),{focusing:l.value}]),tabindex:"0",onKeydown:dr(v=>!b(s)&&c(h),["delete"]),onFocus:d[0]||(d[0]=v=>l.value=!0),onBlur:d[1]||(d[1]=v=>l.value=!1),onClick:d[2]||(d[2]=v=>l.value=!1)},[ye(f.$slots,"default",{file:h},()=>[f.listType==="picture"||h.status!=="uploading"&&f.listType==="picture-card"?(N(),U("img",{key:0,class:H(b(a).be("list","item-thumbnail")),src:h.url,alt:""},null,10,Oct)):ce("v-if",!0),h.status==="uploading"||f.listType!=="picture-card"?(N(),U("div",{key:1,class:H(b(a).be("list","item-info"))},[V("a",{class:H(b(a).be("list","item-name")),onClick:it(v=>f.handlePreview(h),["prevent"])},[J(b(Ze),{class:H(b(i).m("document"))},{default:le(()=>[J(b(tUe))]),_:1},8,["class"]),V("span",{class:H(b(a).be("list","item-file-name")),title:h.name},me(h.name),11,Nct)],10,kct),h.status==="uploading"?(N(),he(b(xne),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Xe(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ce("v-if",!0)],2)):ce("v-if",!0),V("label",{class:H(b(a).be("list","item-status-label"))},[f.listType==="text"?(N(),he(b(Ze),{key:0,class:H([b(i).m("upload-success"),b(i).m("circle-check")])},{default:le(()=>[J(b(qN))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(N(),he(b(Ze),{key:1,class:H([b(i).m("upload-success"),b(i).m("check")])},{default:le(()=>[J(b(P1))]),_:1},8,["class"])):ce("v-if",!0)],2),b(s)?ce("v-if",!0):(N(),he(b(Ze),{key:2,class:H(b(i).m("close")),onClick:v=>c(h)},{default:le(()=>[J(b(el))]),_:2},1032,["class","onClick"])),ce(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ce(" This is a bug which needs to be fixed "),ce(" TODO: Fix the incorrect navigation interaction "),b(s)?ce("v-if",!0):(N(),U("i",{key:3,class:H(b(i).m("close-tip"))},me(b(n)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(N(),U("span",{key:4,class:H(b(a).be("list","item-actions"))},[V("span",{class:H(b(a).be("list","item-preview")),onClick:v=>f.handlePreview(h)},[J(b(Ze),{class:H(b(i).m("zoom-in"))},{default:le(()=>[J(b(Nee))]),_:1},8,["class"])],10,Bct),b(s)?ce("v-if",!0):(N(),U("span",{key:0,class:H(b(a).be("list","item-delete")),onClick:v=>c(h)},[J(b(Ze),{class:H(b(i).m("delete"))},{default:le(()=>[J(b(JGe))]),_:1},8,["class"])],10,Fct))],2)):ce("v-if",!0)])],42,Rct))),128)),ye(f.$slots,"append")]),_:3},8,["class","name"]))}});var u$=ke(zct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Hct=Oe({disabled:{type:Boolean,default:!1}}),Gct={file:e=>We(e)},Uct=["onDrop","onDragover"],Lae="ElUploadDrag",$ct=te({name:Lae}),Wct=te({...$ct,props:Hct,emits:Gct,setup(e,{emit:t}){const r=Ye(Mae);r||ua(Lae,"usage: <el-upload><el-upload-dragger /></el-upload>");const n=Ce("upload"),a=G(!1),i=ho(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=r.accept.value;if(!c){t("file",u);return}const f=u.filter(d=>{const{type:h,name:v}=d,p=v.includes(".")?`.${v.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?p===m:/\/\*$/.test(m)?g===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?h===m:!1)});t("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(N(),U("div",{class:H([b(n).b("dragger"),b(n).is("dragover",a.value)]),onDrop:it(o,["prevent"]),onDragover:it(s,["prevent"]),onDragleave:u[0]||(u[0]=it(c=>a.value=!1,["prevent"]))},[ye(l.$slots,"default")],42,Uct))}});var Yct=ke(Wct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const jct=Oe({...Pae,beforeUpload:{type:fe(Function),default:zr},onRemove:{type:fe(Function),default:zr},onStart:{type:fe(Function),default:zr},onSuccess:{type:fe(Function),default:zr},onProgress:{type:fe(Function),default:zr},onError:{type:fe(Function),default:zr},onExceed:{type:fe(Function),default:zr}}),Kct=["onKeydown"],Xct=["name","multiple","accept"],Zct=te({name:"ElUploadContent",inheritAttrs:!1}),qct=te({...Zct,props:jct,setup(e,{expose:t}){const r=e,n=Ce("upload"),a=ho(),i=yr({}),o=yr(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:y,multiple:_,onStart:w,onExceed:x}=r;if(m&&y.length+p.length>m){x(p,y);return}_||(p=p.slice(0,1));for(const S of p){const T=S;T.uid=YI(),w(T),g&&l(T)}},l=async p=>{if(o.value.value="",!r.beforeUpload)return c(p);let g,m={};try{const _=r.data,w=r.beforeUpload(p);m=US(r.data)?s2(r.data):r.data,g=await w,US(r.data)&&to(_,m)&&(m=s2(r.data))}catch{g=!1}if(g===!1){r.onRemove(p);return}let y=p;g instanceof Blob&&(g instanceof File?y=g:y=new File([g],p.name,{type:p.type})),c(Object.assign(y,{uid:p.uid}),m)},u=async(p,g)=>dt(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:y,method:_,withCredentials:w,name:x,action:S,onProgress:T,onSuccess:A,onError:C,httpRequest:M}=r;try{g=await u(g??y,p)}catch{r.onRemove(p);return}const{uid:E}=p,D={headers:m||{},withCredentials:w,file:p,data:g,method:_,filename:x,action:S,onProgress:L=>{T(L,p)},onSuccess:L=>{A(L,p),delete i.value[E]},onError:L=>{C(L,p),delete i.value[E]}},P=M(D);i.value[E]=P,P instanceof Promise&&P.then(D.onSuccess,D.onError)},f=p=>{const g=p.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return t({abort:p=>{MGe(i.value).filter(p?([m])=>String(p.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete i.value[m]})},upload:l}),(p,g)=>(N(),U("div",{class:H([b(n).b(),b(n).m(p.listType),b(n).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:dr(it(h,["self"]),["enter","space"])},[p.drag?(N(),he(Yct,{key:0,disabled:b(a),onFile:s},{default:le(()=>[ye(p.$slots,"default")]),_:3},8,["disabled"])):ye(p.$slots,"default",{key:1}),V("input",{ref_key:"inputRef",ref:o,class:H(b(n).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=it(()=>{},["stop"]))},null,42,Xct)],42,Kct))}});var c$=ke(qct,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const f$="ElUpload",d$=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Qct=(e,t)=>{const r=pFe(e,"fileList",void 0,{passive:!0}),n=d=>r.value.find(h=>h.uid===d.uid);function a(d){var h;(h=t.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){r.value=r.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const v=n(h);v&&(console.error(d),v.status="fail",r.value.splice(r.value.indexOf(v),1),e.onError(d,v,r.value),e.onChange(v,r.value))},s=(d,h)=>{const v=n(h);v&&(e.onProgress(d,v,r.value),v.status="uploading",v.percentage=Math.round(d.percent))},l=(d,h)=>{const v=n(h);v&&(v.status="success",v.response=d,e.onSuccess(d,v,r.value),e.onChange(v,r.value))},u=d=>{Qn(d.uid)&&(d.uid=YI());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(v){v.message,e.onError(v,h,r.value)}r.value=[...r.value,h],e.onChange(h,r.value)},c=async d=>{const h=d instanceof File?n(d):d;h||ua(f$,"file to be removed not found");const v=p=>{a(p);const g=r.value;g.splice(g.indexOf(p),1),e.onRemove(p,g),d$(p)};e.beforeRemove?await e.beforeRemove(h,r.value)!==!1&&v(h):v(h)};function f(){r.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=t.value)==null?void 0:h.upload(d))})}return Ae(()=>e.listType,d=>{d!=="picture-card"&&d!=="picture"||(r.value=r.value.map(h=>{const{raw:v,url:p}=h;if(!p&&v)try{h.url=URL.createObjectURL(v)}catch(g){e.onError(g,h,r.value)}return h}))}),Ae(r,d=>{for(const h of d)h.uid||(h.uid=YI()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:r,abort:a,clearFiles:i,handleError:o,handleProgress:s,handleStart:u,handleSuccess:l,handleRemove:c,submit:f,revokeFileObjectURL:d$}},Jct=te({name:"ElUpload"}),eft=te({...Jct,props:Pct,setup(e,{expose:t}){const r=e,n=ho(),a=yr(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=Qct(r,a),p=F(()=>r.listType==="picture-card"),g=F(()=>({...r,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return un(()=>{l.value.forEach(v)}),Wt(Mae,{accept:Sn(r,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(m,y)=>(N(),U("div",null,[b(p)&&m.showFileList?(N(),he(u$,{key:0,disabled:b(n),"list-type":m.listType,files:b(l),"handle-preview":m.onPreview,onRemove:b(f)},Bl({append:le(()=>[J(c$,Ut({ref_key:"uploadRef",ref:a},b(g)),{default:le(()=>[m.$slots.trigger?ye(m.$slots,"trigger",{key:0}):ce("v-if",!0),!m.$slots.trigger&&m.$slots.default?ye(m.$slots,"default",{key:1}):ce("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:le(({file:_})=>[ye(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ce("v-if",!0),!b(p)||b(p)&&!m.showFileList?(N(),he(c$,Ut({key:1,ref_key:"uploadRef",ref:a},b(g)),{default:le(()=>[m.$slots.trigger?ye(m.$slots,"trigger",{key:0}):ce("v-if",!0),!m.$slots.trigger&&m.$slots.default?ye(m.$slots,"default",{key:1}):ce("v-if",!0)]),_:3},16)):ce("v-if",!0),m.$slots.trigger?ye(m.$slots,"default",{key:2}):ce("v-if",!0),ye(m.$slots,"tip"),!b(p)&&m.showFileList?(N(),he(u$,{key:3,disabled:b(n),"list-type":m.listType,files:b(l),"handle-preview":m.onPreview,onRemove:b(f)},Bl({_:2},[m.$slots.file?{name:"default",fn:le(({file:_})=>[ye(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ce("v-if",!0)]))}});var tft=ke(eft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const rft=kt(tft),nft=Oe({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:fe([String,Array]),default:"Element Plus"},font:{type:fe(Object)},gap:{type:fe(Array),default:()=>[100,100]},offset:{type:fe(Array)}});function aft(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function ift(e){return Object.keys(e).map(t=>`${aft(t)}: ${e[t]};`).join(" ")}function oft(){return window.devicePixelRatio||1}const sft=(e,t)=>{let r=!1;return e.removedNodes.length&&t&&(r=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(r=!0),r},Iae=3;function tD(e,t,r=1){const n=document.createElement("canvas"),a=n.getContext("2d"),i=e*r,o=t*r;return n.setAttribute("width",`${i}px`),n.setAttribute("height",`${o}px`),a.save(),[a,n,i,o]}function lft(){function e(t,r,n,a,i,o,s,l){const[u,c,f,d]=tD(a,i,n);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,f,d);else{const{color:$,fontSize:j,fontStyle:X,fontWeight:Q,fontFamily:se,textAlign:ee,textBaseline:K}=o,Z=Number(j)*n;u.font=`${X} normal ${Q} ${Z}px/${i}px ${se}`,u.fillStyle=$,u.textAlign=ee,u.textBaseline=K;const ne=Array.isArray(t)?t:[t];ne==null||ne.forEach((re,ie)=>{u.fillText(re??"",f/2,ie*(Z+Iae*n))})}const h=Math.PI/180*Number(r),v=Math.max(a,i),[p,g,m]=tD(v,v,n);p.translate(m/2,m/2),p.rotate(h),f>0&&d>0&&p.drawImage(c,-f/2,-d/2);function y($,j){const X=$*Math.cos(h)-j*Math.sin(h),Q=$*Math.sin(h)+j*Math.cos(h);return[X,Q]}let _=0,w=0,x=0,S=0;const T=f/2,A=d/2;[[0-T,0-A],[0+T,0-A],[0+T,0+A],[0-T,0+A]].forEach(([$,j])=>{const[X,Q]=y($,j);_=Math.min(_,X),w=Math.max(w,X),x=Math.min(x,Q),S=Math.max(S,Q)});const M=_+m/2,E=x+m/2,D=w-_,P=S-x,L=s*n,I=l*n,O=(D+L)*2,R=P+I,[B,k]=tD(O,R);function z($=0,j=0){B.drawImage(g,M,E,D,P,$,j,D,P)}return z(),z(D+L,-P/2-I/2),z(D+L,+P/2+I/2),[k.toDataURL(),O/n,R/n]}return e}const uft=te({name:"ElWatermark"}),cft=te({...uft,props:nft,setup(e){const t=e,r={position:"relative"},n=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.color)!=null?E:"rgba(0,0,0,.15)"}),a=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontSize)!=null?E:16}),i=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontWeight)!=null?E:"normal"}),o=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontStyle)!=null?E:"normal"}),s=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.fontFamily)!=null?E:"sans-serif"}),l=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.textAlign)!=null?E:"center"}),u=F(()=>{var M,E;return(E=(M=t.font)==null?void 0:M.textBaseline)!=null?E:"top"}),c=F(()=>t.gap[0]),f=F(()=>t.gap[1]),d=F(()=>c.value/2),h=F(()=>f.value/2),v=F(()=>{var M,E;return(E=(M=t.offset)==null?void 0:M[0])!=null?E:d.value}),p=F(()=>{var M,E;return(E=(M=t.offset)==null?void 0:M[1])!=null?E:h.value}),g=()=>{const M={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let E=v.value-d.value,D=p.value-h.value;return E>0&&(M.left=`${E}px`,M.width=`calc(100% - ${E}px)`,E=0),D>0&&(M.top=`${D}px`,M.height=`calc(100% - ${D}px)`,D=0),M.backgroundPosition=`${E}px ${D}px`,M},m=yr(null),y=yr(),_=G(!1),w=()=>{y.value&&(y.value.remove(),y.value=void 0)},x=(M,E)=>{var D;m.value&&y.value&&(_.value=!0,y.value.setAttribute("style",ift({...g(),backgroundImage:`url('${M}')`,backgroundSize:`${Math.floor(E)}px`})),(D=m.value)==null||D.append(y.value),setTimeout(()=>{_.value=!1}))},S=M=>{let E=120,D=64;const P=t.image,L=t.content,I=t.width,O=t.height;if(!P&&M.measureText){M.font=`${Number(a.value)}px ${s.value}`;const R=Array.isArray(L)?L:[L],B=R.map(k=>{const z=M.measureText(k);return[z.width,z.fontBoundingBoxAscent+z.fontBoundingBoxDescent]});E=Math.ceil(Math.max(...B.map(k=>k[0]))),D=Math.ceil(Math.max(...B.map(k=>k[1])))*R.length+(R.length-1)*Iae}return[I??E,O??D]},T=lft(),A=()=>{const E=document.createElement("canvas").getContext("2d"),D=t.image,P=t.content,L=t.rotate;if(E){y.value||(y.value=document.createElement("div"));const I=oft(),[O,R]=S(E),B=k=>{const[z,$]=T(k||"",L,I,O,R,{color:n.value,fontSize:a.value,fontStyle:o.value,fontWeight:i.value,fontFamily:s.value,textAlign:l.value,textBaseline:u.value},c.value,f.value);x(z,$)};if(D){const k=new Image;k.onload=()=>{B(k)},k.onerror=()=>{B(P)},k.crossOrigin="anonymous",k.referrerPolicy="no-referrer",k.src=D}else B(P)}};return xt(()=>{A()}),Ae(()=>t,()=>{A()},{deep:!0,flush:"post"}),un(()=>{w()}),uFe(m,M=>{_.value||M.forEach(E=>{sft(E,y.value)&&(w(),A())})},{attributes:!0}),(M,E)=>(N(),U("div",{ref_key:"containerRef",ref:m,style:Xe([r])},[ye(M.$slots,"default")],4))}});var fft=ke(cft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/watermark/src/watermark.vue"]]);const dft=kt(fft);var hft=[n9e,v9e,zYe,_lt,jYe,eje,Hte,hje,vje,Ja,Kte,RKe,FKe,QKe,JKe,dZe,QXe,yZe,hs,yXe,Sre,PZe,KZe,XZe,zZe,Tqe,XWe,Bqe,Fqe,Vqe,zqe,Hqe,sJe,yJe,_Je,kJe,nne,XJe,Get,Uet,$et,dne,s7e,l7e,Ze,Ntt,hne,li,vne,Ztt,grt,mrt,yrt,_rt,Crt,Int,Fnt,jnt,Fte,xne,Dre,OXe,RXe,cat,pat,TZe,ic,Kh,v2,ant,ait,dit,hit,Uit,Kit,Gne,iot,vot,pot,Cot,Ost,kst,ylt,Olt,klt,w_,zlt,fKe,Ylt,qlt,Qlt,Bi,Aut,Vut,Jut,oct,Act,rft,dft];const Ls="ElInfiniteScroll",vft=50,pft=200,gft=0,mft={delay:{type:Number,default:pft},distance:{type:Number,default:gft},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},i4=(e,t)=>Object.entries(mft).reduce((r,[n,a])=>{var i,o;const{type:s,default:l}=a,u=e.getAttribute(`infinite-scroll-${n}`);let c=(o=(i=t[u])!=null?i:u)!=null?o:l;return c=c==="false"?!1:c,c=s(c),r[n]=Number.isNaN(c)?l:c,r},{}),Rae=e=>{const{observer:t}=e[Ls];t&&(t.disconnect(),delete e[Ls].observer)},yft=(e,t)=>{const{container:r,containerEl:n,instance:a,observer:i,lastScrollTop:o}=e[Ls],{disabled:s,distance:l}=i4(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=n,d=f-o;if(e[Ls].lastScrollTop=f,i||s||d<0)return;let h=!1;if(r===e)h=c-(u+f)<=l;else{const{clientTop:v,scrollHeight:p}=e,g=_Fe(e,n);h=f+u>=g+v+p-l}h&&t.call(a)};function rD(e,t){const{containerEl:r,instance:n}=e[Ls],{disabled:a}=i4(e,n);a||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?t.call(n):Rae(e))}const _ft={async mounted(e,t){const{instance:r,value:n}=t;dt(n)||ua(Ls,"'v-infinite-scroll' binding value must be a function"),await qe();const{delay:a,immediate:i}=i4(e,r),o=ZN(e,!0),s=o===window?document.documentElement:o,l=Eh(yft.bind(null,e,n),a);if(o){if(e[Ls]={instance:r,container:o,containerEl:s,delay:a,cb:n,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Eh(rD.bind(null,e,n),vft));e[Ls].observer=u,u.observe(e,{childList:!0,subtree:!0}),rD(e,n)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:r}=e[Ls];t==null||t.removeEventListener("scroll",r),Rae(e)},async updated(e){if(!e[Ls])await qe();else{const{containerEl:t,cb:r,observer:n}=e[Ls];t.clientHeight&&n&&rD(e,r)}}},jI=_ft;jI.install=e=>{e.directive("InfiniteScroll",jI)};const bft=jI;function wft(e){let t;const r=G(!1),n=Ar({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(d){n.text=d}function i(){const d=n.parent,h=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(ro(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),ro(d,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function s(){var d;e.beforeClose&&!e.beforeClose()||(r.value=!0,clearTimeout(t),t=window.setTimeout(l,400),n.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!r.value)return;const d=n.parent;r.value=!1,d.vLoadingAddClassList=void 0,i()}const c=n7(te({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=ET("loading");return h({ns:v,zIndex:p}),()=>{const g=n.spinner||n.svg,m=et("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[et("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),y=n.text?et("p",{class:v.b("text")},[n.text]):void 0;return et(Yn,{name:v.b("fade"),onAfterLeave:l},{default:le(()=>[Ct(J("div",{style:{backgroundColor:n.background||""},class:[v.b("mask"),n.customClass,n.fullscreen?"is-fullscreen":""]},[et("div",{class:v.b("spinner")},[m,y])]),[[hr,n.visible]])])})}}})),f=c.mount(document.createElement("div"));return{...Da(n),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let _w;const KI=function(e={}){if(!ur)return;const t=Sft(e);if(t.fullscreen&&_w)return _w;const r=wft({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(_w=void 0)}});xft(t,t.parent,r),h$(t,t.parent,r),t.parent.vLoadingAddClassList=()=>h$(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),qe(()=>r.visible.value=t.visible),t.fullscreen&&(_w=r),r},Sft=e=>{var t,r,n,a;let i;return wt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:i}},xft=async(e,t,r)=>{const{nextZIndex:n}=r.vm.zIndex||r.vm._.exposed.zIndex,a={};if(e.fullscreen)r.originalPosition.value=Hc(document.body,"position"),r.originalOverflow.value=Hc(document.body,"overflow"),a.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=Hc(document.body,"position"),await qe();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Hc(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=Hc(t,"position");for(const[i,o]of Object.entries(a))r.$el.style[i]=o},h$=(e,t,r)=>{const n=r.vm.ns||r.vm._.exposed.ns;["absolute","fixed","sticky"].includes(r.originalPosition.value)?ro(t,n.bm("parent","relative")):Pl(t,n.bm("parent","relative")),e.fullscreen&&e.lock?Pl(t,n.bm("parent","hidden")):ro(t,n.bm("parent","hidden"))},XI=Symbol("ElLoading"),v$=(e,t)=>{var r,n,a,i;const o=t.instance,s=d=>Vt(t.value)?t.value[d]:void 0,l=d=>{const h=wt(d)&&(o==null?void 0:o[d])||d;return h&&G(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${If(d)}`)),c=(r=s("fullscreen"))!=null?r:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(n=s("target"))!=null?n:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[XI]={options:f,instance:KI(f)}},Aft=(e,t)=>{for(const r of Object.keys(t))Qr(t[r])&&(t[r].value=e[r])},p$={mounted(e,t){t.value&&v$(e,t)},updated(e,t){const r=e[XI];t.oldValue!==t.value&&(t.value&&!t.oldValue?v$(e,t):t.value&&t.oldValue?Vt(t.value)&&Aft(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[XI])==null||t.instance.close()}},Tft={install(e){e.directive("loading",p$),e.config.globalProperties.$loading=KI},directive:p$,service:KI},Oae=["success","info","warning","error"],ji=mn({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:ur?document.body:void 0}),Cft=Oe({customClass:{type:String,default:ji.customClass},center:{type:Boolean,default:ji.center},dangerouslyUseHTMLString:{type:Boolean,default:ji.dangerouslyUseHTMLString},duration:{type:Number,default:ji.duration},icon:{type:Zr,default:ji.icon},id:{type:String,default:ji.id},message:{type:fe([String,Object,Function]),default:ji.message},onClose:{type:fe(Function),required:!1},showClose:{type:Boolean,default:ji.showClose},type:{type:String,values:Oae,default:ji.type},offset:{type:Number,default:ji.offset},zIndex:{type:Number,default:ji.zIndex},grouping:{type:Boolean,default:ji.grouping},repeatNum:{type:Number,default:ji.repeatNum}}),Eft={destroy:()=>!0},Vs=xR([]),Mft=e=>{const t=Vs.findIndex(a=>a.id===e),r=Vs[t];let n;return t>0&&(n=Vs[t-1]),{current:r,prev:n}},Dft=e=>{const{prev:t}=Mft(e);return t?t.vm.exposed.bottom.value:0},Pft=(e,t)=>Vs.findIndex(n=>n.id===e)>0?20:t,Lft=["id"],Ift=["innerHTML"],Rft=te({name:"ElMessage"}),Oft=te({...Rft,props:Cft,emits:Eft,setup(e,{expose:t}){const r=e,{Close:n}=e3,{ns:a,zIndex:i}=ET("message"),{currentZIndex:o,nextZIndex:s}=i,l=G(),u=G(!1),c=G(0);let f;const d=F(()=>r.type?r.type==="error"?"danger":r.type:"info"),h=F(()=>{const T=r.type;return{[a.bm("icon",T)]:T&&Cf[T]}}),v=F(()=>r.icon||Cf[r.type]||""),p=F(()=>Dft(r.id)),g=F(()=>Pft(r.id,r.offset)+p.value),m=F(()=>c.value+g.value),y=F(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){r.duration!==0&&({stop:f}=Wh(()=>{x()},r.duration))}function w(){f==null||f()}function x(){u.value=!1}function S({code:T}){T===Qe.esc&&x()}return xt(()=>{_(),s(),u.value=!0}),Ae(()=>r.repeatNum,()=>{w(),_()}),dn(document,"keydown",S),di(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:x}),(T,A)=>(N(),he(Yn,{name:b(a).b("fade"),onBeforeLeave:T.onClose,onAfterLeave:A[0]||(A[0]=C=>T.$emit("destroy")),persisted:""},{default:le(()=>[Ct(V("div",{id:T.id,ref_key:"messageRef",ref:l,class:H([b(a).b(),{[b(a).m(T.type)]:T.type&&!T.icon},b(a).is("center",T.center),b(a).is("closable",T.showClose),T.customClass]),style:Xe(b(y)),role:"alert",onMouseenter:w,onMouseleave:_},[T.repeatNum>1?(N(),he(b(Hte),{key:0,value:T.repeatNum,type:b(d),class:H(b(a).e("badge"))},null,8,["value","type","class"])):ce("v-if",!0),b(v)?(N(),he(b(Ze),{key:1,class:H([b(a).e("icon"),b(h)])},{default:le(()=>[(N(),he(Ft(b(v))))]),_:1},8,["class"])):ce("v-if",!0),ye(T.$slots,"default",{},()=>[T.dangerouslyUseHTMLString?(N(),U(Be,{key:1},[ce(" Caution here, message could've been compromised, never use user's input as message "),V("p",{class:H(b(a).e("content")),innerHTML:T.message},null,10,Ift)],2112)):(N(),U("p",{key:0,class:H(b(a).e("content"))},me(T.message),3))]),T.showClose?(N(),he(b(Ze),{key:2,class:H(b(a).e("closeBtn")),onClick:it(x,["stop"])},{default:le(()=>[J(b(n))]),_:1},8,["class","onClick"])):ce("v-if",!0)],46,Lft),[[hr,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var kft=ke(Oft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Nft=1;const kae=e=>{const t=!e||wt(e)||hn(e)||dt(e)?{message:e}:e,r={...ji,...t};if(!r.appendTo)r.appendTo=document.body;else if(wt(r.appendTo)){let n=document.querySelector(r.appendTo);us(n)||(n=document.body),r.appendTo=n}return r},Bft=e=>{const t=Vs.indexOf(e);if(t===-1)return;Vs.splice(t,1);const{handler:r}=e;r.close()},Fft=({appendTo:e,...t},r)=>{const n=`message_${Nft++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:n,onClose:()=>{a==null||a(),Bft(c)},onDestroy:()=>{jp(null,i)}},s=J(kft,o,dt(o.message)||hn(o.message)?{default:dt(o.message)?o.message:()=>o.message}:null);s.appContext=r||_g._context,jp(s,i),e.appendChild(i.firstElementChild);const l=s.component,c={id:n,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},_g=(e={},t)=>{if(!ur)return{close:()=>{}};if(ct(JL.max)&&Vs.length>=JL.max)return{close:()=>{}};const r=kae(e);if(r.grouping&&Vs.length){const a=Vs.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===r.message});if(a)return a.props.repeatNum+=1,a.props.type=r.type,a.handler}const n=Fft(r,t);return Vs.push(n),n.handler};Oae.forEach(e=>{_g[e]=(t={},r)=>{const n=kae(t);return _g({...n,type:e},r)}});function Vft(e){for(const t of Vs)(!e||e===t.props.type)&&t.handler.close()}_g.closeAll=Vft;_g._context=null;const Jc=Vee(_g,"$message"),zft=te({name:"ElMessageBox",directives:{TrapFocus:jje},components:{ElButton:Ja,ElFocusTrap:DT,ElInput:li,ElOverlay:I3,ElIcon:Ze,...e3},inheritAttrs:!1,props:{buttonSize:{type:String,validator:r3},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:r,zIndex:n,ns:a,size:i}=ET("message-box",F(()=>e.buttonSize)),{t:o}=r,{nextZIndex:s}=n,l=G(!1),u=Ar({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=F(()=>{const I=u.type;return{[a.bm("icon",I)]:I&&Cf[I]}}),f=co(),d=co(),h=F(()=>u.icon||Cf[u.type]||""),v=F(()=>!!u.message),p=G(),g=G(),m=G(),y=G(),_=G(),w=F(()=>u.confirmButtonClass);Ae(()=>u.inputValue,async I=>{await qe(),e.boxType==="prompt"&&I!==null&&E()},{immediate:!0}),Ae(()=>l.value,I=>{var O,R;I&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(R=(O=_.value)==null?void 0:O.$el)!=null?R:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(I?qe().then(()=>{var B;y.value&&y.value.$el&&(u.autofocus?m.value=(B=D())!=null?B:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=F(()=>e.draggable);zee(p,g,x),xt(async()=>{await qe(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),un(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){l.value&&(l.value=!1,qe(()=>{u.action&&t("action",u.action)}))}const T=()=>{e.closeOnClickModal&&M(u.distinguishCancelAndClose?"close":"cancel")},A=h3(T),C=I=>{if(u.inputType!=="textarea")return I.preventDefault(),M("confirm")},M=I=>{var O;e.boxType==="prompt"&&I==="confirm"&&!E()||(u.action=I,u.beforeClose?(O=u.beforeClose)==null||O.call(u,I,u,S):S())},E=()=>{if(e.boxType==="prompt"){const I=u.inputPattern;if(I&&!I.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const O=u.inputValidator;if(typeof O=="function"){const R=O(u.inputValue);if(R===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof R=="string")return u.editorErrorMessage=R,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},D=()=>{const I=y.value.$refs;return I.input||I.textarea},P=()=>{M("close")},L=()=>{e.closeOnPressEscape&&P()};return e.lockScroll&&Uee(l),{...Da(u),ns:a,overlayEvent:A,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:p,focusStartRef:m,headerRef:g,inputRef:y,confirmRef:_,doClose:S,handleClose:P,onCloseRequested:L,handleWrapperClick:T,handleInputEnter:C,handleAction:M,t:o}}}),Hft=["aria-label","aria-describedby"],Gft=["aria-label"],Uft=["id"];function $ft(e,t,r,n,a,i){const o=bt("el-icon"),s=bt("close"),l=bt("el-input"),u=bt("el-button"),c=bt("el-focus-trap"),f=bt("el-overlay");return N(),he(Yn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:le(()=>[Ct(J(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:le(()=>[V("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:H(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[J(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:le(()=>[V("div",{ref:"rootRef",class:H([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Xe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(N(),U("div",{key:0,ref:"headerRef",class:H(e.ns.e("header"))},[V("div",{class:H(e.ns.e("title"))},[e.iconComponent&&e.center?(N(),he(o,{key:0,class:H([e.ns.e("status"),e.typeClass])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),V("span",null,me(e.title),1)],2),e.showClose?(N(),U("button",{key:0,type:"button",class:H(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=dr(it(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[J(o,{class:H(e.ns.e("close"))},{default:le(()=>[J(s)]),_:1},8,["class"])],42,Gft)):ce("v-if",!0)],2)):ce("v-if",!0),V("div",{id:e.contentId,class:H(e.ns.e("content"))},[V("div",{class:H(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(N(),he(o,{key:0,class:H([e.ns.e("status"),e.typeClass])},{default:le(()=>[(N(),he(Ft(e.iconComponent)))]),_:1},8,["class"])):ce("v-if",!0),e.hasMessage?(N(),U("div",{key:1,class:H(e.ns.e("message"))},[ye(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(N(),he(Ft(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(N(),he(Ft(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:le(()=>[nr(me(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ce("v-if",!0)],2),Ct(V("div",{class:H(e.ns.e("input"))},[J(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:H({invalid:e.validateError}),onKeydown:dr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),V("div",{class:H(e.ns.e("errormsg")),style:Xe({visibility:e.editorErrorMessage?"visible":"hidden"})},me(e.editorErrorMessage),7)],2),[[hr,e.showInput]])],10,Uft),V("div",{class:H(e.ns.e("btns"))},[e.showCancelButton?(N(),he(u,{key:0,loading:e.cancelButtonLoading,class:H([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=dr(it(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:le(()=>[nr(me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ce("v-if",!0),Ct(J(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:H([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=dr(it(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:le(()=>[nr(me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[hr,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Hft)]),_:3},8,["z-index","overlay-class","mask"]),[[hr,e.visible]])]),_:3})}var Wft=ke(zft,[["render",$ft],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const P_=new Map,Yft=e=>{let t=document.body;return e.appendTo&&(wt(e.appendTo)&&(t=document.querySelector(e.appendTo)),us(e.appendTo)&&(t=e.appendTo),us(t)||(t=document.body)),t},jft=(e,t,r=null)=>{const n=J(Wft,e,dt(e.message)||hn(e.message)?{default:dt(e.message)?e.message:()=>e.message}:null);return n.appContext=r,jp(n,t),Yft(e).appendChild(t.firstElementChild),n.component},Kft=()=>document.createElement("div"),Xft=(e,t)=>{const r=Kft();e.onVanish=()=>{jp(null,r),P_.delete(a)},e.onAction=i=>{const o=P_.get(a);let s;e.showInput?s={value:a.inputValue,action:i}:s=i,e.callback?e.callback(s,n.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const n=jft(e,r,t),a=n.proxy;for(const i in e)or(e,i)&&!or(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function sm(e,t=null){if(!ur)return Promise.reject();let r;return wt(e)||hn(e)?e={message:e}:r=e.callback,new Promise((n,a)=>{const i=Xft(e,t??sm._context);P_.set(i,{options:e,callback:r,resolve:n,reject:a})})}const Zft=["alert","confirm","prompt"],qft={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Zft.forEach(e=>{sm[e]=Qft(e)});function Qft(e){return(t,r,n,a)=>{let i="";return Vt(r)?(n=r,i=""):oa(r)?i="":i=r,sm(Object.assign({title:i,message:t,type:"",...qft[e]},n,{boxType:e}),a)}}sm.close=()=>{P_.forEach((e,t)=>{t.doClose()}),P_.clear()};sm._context=null;const kc=sm;kc.install=e=>{kc._context=e._context,e.config.globalProperties.$msgbox=kc,e.config.globalProperties.$messageBox=kc,e.config.globalProperties.$alert=kc.alert,e.config.globalProperties.$confirm=kc.confirm,e.config.globalProperties.$prompt=kc.prompt};const Jft=kc,Nae=["success","info","warning","error"],edt=Oe({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Zr},id:{type:String,default:""},message:{type:fe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:fe(Function),default:()=>{}},onClose:{type:fe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Nae,""],default:""},zIndex:Number}),tdt={destroy:()=>!0},rdt=["id"],ndt=["textContent"],adt={key:0},idt=["innerHTML"],odt=te({name:"ElNotification"}),sdt=te({...odt,props:edt,emits:tdt,setup(e,{expose:t}){const r=e,{ns:n,zIndex:a}=ET("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=Fee,l=G(!1);let u;const c=F(()=>{const _=r.type;return _&&Cf[r.type]?n.m(_):""}),f=F(()=>r.type&&Cf[r.type]||r.icon),d=F(()=>r.position.endsWith("right")?"right":"left"),h=F(()=>r.position.startsWith("top")?"top":"bottom"),v=F(()=>{var _;return{[h.value]:`${r.offset}px`,zIndex:(_=r.zIndex)!=null?_:o.value}});function p(){r.duration>0&&({stop:u}=Wh(()=>{l.value&&m()},r.duration))}function g(){u==null||u()}function m(){l.value=!1}function y({code:_}){_===Qe.delete||_===Qe.backspace?g():_===Qe.esc?l.value&&m():p()}return xt(()=>{p(),i(),l.value=!0}),dn(document,"keydown",y),t({visible:l,close:m}),(_,w)=>(N(),he(Yn,{name:b(n).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:w[1]||(w[1]=x=>_.$emit("destroy")),persisted:""},{default:le(()=>[Ct(V("div",{id:_.id,class:H([b(n).b(),_.customClass,b(d)]),style:Xe(b(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:w[0]||(w[0]=(...x)=>_.onClick&&_.onClick(...x))},[b(f)?(N(),he(b(Ze),{key:0,class:H([b(n).e("icon"),b(c)])},{default:le(()=>[(N(),he(Ft(b(f))))]),_:1},8,["class"])):ce("v-if",!0),V("div",{class:H(b(n).e("group"))},[V("h2",{class:H(b(n).e("title")),textContent:me(_.title)},null,10,ndt),Ct(V("div",{class:H(b(n).e("content")),style:Xe(_.title?void 0:{margin:0})},[ye(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(N(),U(Be,{key:1},[ce(" Caution here, message could've been compromised, never use user's input as message "),V("p",{innerHTML:_.message},null,8,idt)],2112)):(N(),U("p",adt,me(_.message),1))])],6),[[hr,_.message]]),_.showClose?(N(),he(b(Ze),{key:0,class:H(b(n).e("closeBtn")),onClick:it(m,["stop"])},{default:le(()=>[J(b(s))]),_:1},8,["class","onClick"])):ce("v-if",!0)],2)],46,rdt),[[hr,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var ldt=ke(sdt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const x2={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},ZI=16;let udt=1;const bg=function(e={},t=null){if(!ur)return{close:()=>{}};(typeof e=="string"||hn(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;x2[r].forEach(({vm:c})=>{var f;n+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+ZI}),n+=ZI;const a=`notification_${udt++}`,i=e.onClose,o={...e,offset:n,id:a,onClose:()=>{cdt(a,r,i)}};let s=document.body;us(e.appendTo)?s=e.appendTo:wt(e.appendTo)&&(s=document.querySelector(e.appendTo)),us(s)||(s=document.body);const l=document.createElement("div"),u=J(ldt,o,hn(o.message)?{default:()=>o.message}:null);return u.appContext=t??bg._context,u.props.onDestroy=()=>{jp(null,l)},jp(u,l),x2[r].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};Nae.forEach(e=>{bg[e]=(t={})=>((typeof t=="string"||hn(t))&&(t={message:t}),bg({...t,type:e}))});function cdt(e,t,r){const n=x2[t],a=n.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(a===-1)return;const{vm:i}=n[a];if(!i)return;r==null||r(i);const o=i.el.offsetHeight,s=t.split("-")[0];n.splice(a,1);const l=n.length;if(!(l<1))for(let u=a;u<l;u++){const{el:c,component:f}=n[u].vm,d=Number.parseInt(c.style[s],10)-o-ZI;f.props.offset=d}}function fdt(){for(const e of Object.values(x2))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}bg.closeAll=fdt;bg._context=null;const ddt=Vee(bg,"$notify");var hdt=[bft,Tft,Jc,Jft,ddt,Sne],vdt=qWe([...hft,...hdt]);const Mo=e=>(jl("data-v-9c9ed217"),e=e(),Kl(),e),pdt={class:"page m100"},gdt={class:"page-left-box"},mdt={class:"title"},ydt=Mo(()=>V("span",null,"能耗总量",-1)),_dt=Mo(()=>V("div",{id:"totalEnergy",class:"margin10 box-bg"},null,-1)),bdt={class:"title margin10"},wdt=Mo(()=>V("span",null,"能效对标(定额管理)",-1)),Sdt=Mo(()=>V("div",{id:"management",class:"margin10 box-bg"},null,-1)),xdt=Mo(()=>V("div",{class:"title margin10"},[V("span",null,"能效流向")],-1)),Adt={class:"margin10 box-bg flow"},Tdt={class:"date-picker"},Cdt=Mo(()=>V("span",{style:{"font-size":"0.875rem"}},"选择日期:",-1)),Edt=Mo(()=>V("div",{id:"energyFlow"},null,-1)),Mdt={class:"page-right-box"},Ddt=Mo(()=>V("div",{class:"title"},[V("span",null,"各系统能耗概况")],-1)),Pdt={id:"airConditioningLoad",class:"margin10 box-bg"},Ldt={class:"system-tab"},Idt=["onClick"],Rdt={class:"system-content"},Odt={class:"system-content-left"},kdt={class:"system-content-left-item-p1"},Ndt={class:"system-content-left-item-p2"},Bdt={style:{color:"rgb(221, 255, 253)"}},Fdt={class:"system-content-right"},Vdt={class:"system-content-right-item-title"},zdt={class:"system-content-right-item-box"},Hdt={class:"unit"},Gdt={class:"title margin10"},Udt=Mo(()=>V("span",null,"复费率",-1)),$dt=Mo(()=>V("div",{id:"exhibitionLoad",class:"margin10 box-bg"},null,-1)),Wdt={class:"title margin10"},Ydt=Mo(()=>V("span",null,"电费电价",-1)),jdt=Mo(()=>V("div",{class:"dataUpdate"},"数据更新",-1)),Kdt=Mo(()=>V("div",{id:"electricity-price",class:"margin10 box-bg"},null,-1)),Xdt={__name:"index",setup(e){const t=[{name:"空调"},{name:"照明"},{name:"展陈"},{name:"消防"},{name:"电梯"}],r=G(0),n=G("空调"),a=G([{name:"今日用能峰值",value:"322"},{name:"本月用能峰值",value:"35422"}]),i=G([[{name:"今日",value:"3122",unit:"kgce"},{name:"昨日",value:"9400",unit:"kgce"},{name:"同比",value:"-201",unit:"%"}],[{name:"本月",value:"3122",unit:"kgce"},{name:"上月",value:"9400",unit:"kgce"},{name:"同比",value:"-201",unit:"%"}],[{name:"今年",value:"3122",unit:"kgce"},{name:"去年",value:"9400",unit:"kgce"},{name:"同比",value:"-201",unit:"%"}]]),o=G("month"),s=P=>{o.value=P.srcElement.className,w()},l=G("month"),u=P=>{l.value=P.srcElement.className,x()},c=G("month"),f=P=>{c.value=P.srcElement.className,T()},d=(P,L)=>{r.value=L,n.value=P.name,S()},h=P=>{let L=document.getElementById("totalEnergy");L.removeAttribute("_echarts_instance_");let I;I=$n(L);const O={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1},boundaryGap:!0,data:P.map(R=>R.time)}],yAxis:[{type:"value",name:"单位:kgce",nameTextStyle:{color:"#DDFFFD",align:"center",padding:[0,15,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(R){return R>=1e3?R/1e4+"万":R>=1e7?R/1e8+"亿":R}},axisTick:{show:!1}}],series:[{name:"能耗总量",type:"line",smooth:!0,symbol:"circle",itemStyle:{color:"rgba(1, 246, 139, 1)"},lineStyle:{color:"rgba(1, 246, 139, 1)"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 0.7)"},{offset:1,color:"rgba(1, 246, 139, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:P.map(R=>R.EH)}]};I.setOption(O),window.addEventListener("resize",function(){I.resize()})},v=P=>{let L=document.getElementById("management");L.removeAttribute("_echarts_instance_");let I;I=$n(L);let O=P.map(k=>k.EnergyIndexing),R=P.map(k=>k.time);console.log(O,"xxxxxxxxx");const B={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},legend:{show:!0,icon:"rect",right:"12",top:"12",layout:"vertical",itemHeight:"12",formatter:["{a|{name}}"].join(`
|
||
`),textStyle:{color:"rgba(221, 255, 253, 1)",rich:{a:{padding:[2,0,0,0]}}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:R}],yAxis:[{type:"value",name:"单位:kgce/m²",nameTextStyle:{color:"#DDFFFD",align:"middle",padding:[0,-15,0,0]},splitNumber:6,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(k){return console.log(k,"定额"),k===Math.max(...O)/2?"{a|"+k+"}":k},rich:{a:{color:"rgba(255, 221, 0, 1)"}}},axisTick:{show:!1}}],series:[{name:"单位建筑面积综合能耗",markLine:{silent:!0,data:[{name:"单位建筑面积综合能耗",yAxis:Math.max(...O)/2+"",label:{show:!1},tooltip:{show:!1},lineStyle:{width:1,color:"rgba(255, 221, 0, 1)"}}],symbol:["none","none"]},type:"line",smooth:!0,symbol:"circle",itemStyle:{color:"rgba(221, 255, 253, 1)"},lineStyle:{color:"rgba(221, 255, 253, 1)"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(221, 255, 253, .7)"},{offset:1,color:"rgba(221, 255, 253, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:O}]};I.setOption(B),window.addEventListener("resize",function(){I.resize()})},p=P=>{let L=document.getElementById("energyFlow");L.removeAttribute("_echarts_instance_");let I;I=$n(L);let O=[{name:"能耗",nameValue:P[0].Amont,valueUnit:"kgce"},{name:"空调",nameValue:P[0].data[0].AirConditioner,valueUnit:"kgce"},{name:"照明",nameValue:P[0].data[0].Illumination,valueUnit:"kgce"},{name:"电梯",nameValue:P[0].data[0].Elevator,valueUnit:"kgce"}],R=["rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)"],B=[];for(let z=0;z<O.length;z++)O[z].name==="能耗"&&(O[z].label={position:"right"}),O[z].itemStyle={color:R[z]},B.push(O[z]);let k={series:[{type:"sankey",layout:"none",top:"5%",bottom:"4%",left:"6%",right:"5%",nodeAlign:"right",nodeWidth:"13",focusNodeAdjacency:"allEdges",data:B,links:[{source:"能耗",target:"空调",value:8},{source:"能耗",target:"照明",value:8},{source:"能耗",target:"电梯",value:8}],label:{position:"left",color:"#fff",fontSize:14,formatter:function(z){return z.dataIndex===0?"{a|"+z.data.name+`}
|
||
{b|`+z.data.nameValue+"} "+z.data.valueUnit:"{name|"+z.data.name+"}{value|"+z.data.nameValue+"}"+z.data.valueUnit},rich:{a:{padding:[0,15,10,0],fontSize:"14"},b:{color:"rgba(91, 250, 241, 1)",fontWeight:"600",fontSize:"16"},name:{fontSize:14},value:{color:"rgba(91, 250, 241, 1)",fontWeight:"600",fontSize:"16",padding:[0,10,0,10]}}},lineStyle:{color:"source"},itemStyle:{borderWidth:1,borderColor:"transparent"}}]};I.setOption(k),window.addEventListener("resize",function(){I.resize()})};function g(P){let L=document.getElementById("exhibitionLoad");L.removeAttribute("_echarts_instance_");let I;I=$n(L);var O={tooltip:{axisPointer:{type:"shadow",textStyle:{color:"#fff"}}},grid:{borderWidth:0,top:40,bottom:40,left:50,right:20,textStyle:{color:"#fff"}},legend:{icon:"rect",right:"4%",top:"3%",itemWidth:20,itemHeight:10,textStyle:{color:"#ffffff"},data:["尖","峰","平","谷","深"]},calculable:!0,xAxis:[{type:"category",trigger:"axis",axisLine:{show:!0,lineStyle:{color:"#557775"}},splitLine:{show:!1},axisTick:{show:!1},splitArea:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},data:P.map(R=>R.time)}],yAxis:[{type:"value",name:"单位:kWh",nameTextStyle:{color:"#DDFFFD",padding:[0,30,0,0]},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255,255,255, 0.30)"}},axisLine:{show:!1,lineStyle:{color:"#fff"}},axisTick:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"},formatter:function(R){return R>=1e3?R/1e4+"万":R>=1e7?R/1e8+"亿":R}},splitArea:{show:!1}}],series:[{name:"尖",type:"bar",stack:"Total1",barMaxWidth:15,barGap:"10%",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 165, 29, 1)"},{offset:1,color:"rgba(255, 165, 29, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 165, 29, 1)"},{offset:1,color:"rgba(255, 165, 29, 0)"}])}},data:P.map(R=>R.Needle)},{name:"峰",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(80, 194, 255, 1)"},{offset:1,color:"rgba(80, 194, 255, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(80, 194, 255, 1)"},{offset:1,color:"rgba(80, 194, 255, 0)"}])}},data:P.map(R=>R.Peak)},{name:"平",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 221, 0, 1)"},{offset:1,color:"rgba(255, 221, 0, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(255, 221, 0, 1)"},{offset:1,color:"rgba(255, 221, 0, 0)"}]),barBorderRadius:0}},data:P.map(R=>R.Flat)},{name:"谷",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 1)"},{offset:1,color:"rgba(1, 246, 139, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 1)"},{offset:1,color:"rgba(1, 246, 139, 0)"}]),barBorderRadius:0}},data:P.map(R=>R.Grain)},{name:"深",type:"bar",barMaxWidth:15,stack:"Total1",label:{show:!1},itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 1)"},{offset:1,color:"rgba(91, 250, 241, 0)"}]),borderColor:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 1)"},{offset:1,color:"rgba(91, 250, 241, 0)"}]),barBorderRadius:0}},data:P.map(R=>R.Deep)}]};I.setOption(O),window.addEventListener("resize",function(){I.resize()})}const m=P=>{let L=document.getElementById("electricity-price");L.removeAttribute("_echarts_instance_");let I;I=$n(L);let O={tooltip:{trigger:"axis",backgroundColor:"rgba(1, 13, 19, 0.5)",borderWidth:0,axisPointer:{type:"shadow"},textStyle:{color:"rgba(212, 232, 254, 1)"},confine:!0},legend:{show:!0,data:["电费","销售电价"],selected:{电费:!0,销售电价:!0},icon:"rect",itemGap:14,top:"8",layout:"vertical",itemHeight:"10",textStyle:{color:"rgba(221, 255, 253, 1)"}},grid:{top:"20%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:{type:"category",data:P.map(R=>R.time),axisLine:{show:!0,lineStyle:{color:"#557775"}},axisTick:{show:!1},axisLabel:{show:!0,textStyle:{fontFamily:"Microsoft YaHei",color:"#DDFFFD"}}},yAxis:[{name:"单位:kWh",nameTextStyle:{color:"rgba(221, 255, 253, 1)",padding:[0,20,0,10]},type:"value",splitNumber:5,axisLine:{show:!1,lineStyle:{color:"#666666"}},splitLine:{show:!1},axisLabel:{textStyle:{fontFamily:"Microsoft YaHei",color:"#DDFFFD",fontSize:12},formatter:function(R){return R>=1e3?R/1e4+"万":R>=1e7?R/1e8+"亿":R}}},{name:"单位:元/kWh",position:"right",nameTextStyle:{padding:[0,15,0,0],color:"rgba(221, 255, 253, 1)"},axisLabel:{show:!0,color:"rgba(221, 255, 253, 1)",formatter:function(R){return R.toFixed(1)}},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}}}],series:[{name:"电费",type:"bar",barWidth:"15",itemStyle:{normal:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(82, 217, 208, 1)"},{offset:1,color:"rgba(82, 217, 208, 0)"}])}},data:P.map(R=>R.Electricity)},{name:"销售电价",type:"line",yAxisIndex:1,itemStyle:{color:"rgba(1, 246, 139, 1)"},symbol:"none",data:P.map(R=>R.Electrovalence)}]};I.setOption(O),window.addEventListener("resize",function(){I.resize()})},y=G([vt().subtract(1,"days").format("YYYY-MM-DD"),vt().format("YYYY-MM-DD")]),_=G([vt().subtract(1,"days").format("YYYY-MM-DD"),vt().format("YYYY-MM-DD")]),w=()=>{let P={date:o.value==="month"?"月":"日"};D5e(P).then(L=>{h(L.data.slice(-10))})},x=()=>{let P={date:l.value==="month"?"月":"年"};P5e(P).then(L=>{v(L.data.slice(-10))})},S=()=>{let P={name:n.value};I5e(P).then(L=>{a.value[0].value=L.data[0].DayPeak,a.value[1].value=L.data[0].MonthPeak,i.value.forEach((I,O)=>{L.data[0].data[O].This>1e4?(I[0].value=(L.data[0].data[O].This/1e4).toFixed(3),I[0].unit="万"+I[0].unit):I[0].value=L.data[0].data[O].This,L.data[0].data[O].Last>1e4?(I[1].value=(L.data[0].data[O].Last/1e4).toFixed(3),I[1].unit="万"+I[1].unit):I[1].value=L.data[0].data[O].Last,I[2].value=L.data[0].data[O].Year})})},T=()=>{let P={date:""};c.value==="year"?P.date="年":c.value==="month"?P.date="月":c.value==="day"&&(P.date="日"),R5e(P).then(L=>{g(L.data.slice(-10))})},A=()=>{O5e().then(P=>{m(P.data.slice(-10))})};function C(P){_.value[0]=vt(P[0]).format("YYYY-MM-DD"),_.value[1]=vt(P[1]).format("YYYY-MM-DD"),M()}function M(){let P={sdate:_.value[0],edate:_.value[1]};L5e(P).then(L=>{if(L.code==200)p(L.data);else return flase}).catch(L=>{console.log(L)})}const E=G("/api/ImportElectricalConfig");function D(P){console.log(P,"成功"),P.code==200?Jc({message:"上传"+P.msg,grouping:!0,type:"success"}):Jc({message:P.msg,grouping:!0,type:"error"})}return xt(()=>{w(),x(),M(),S(),A(),T()}),Xl(()=>{}),(P,L)=>{const I=bt("el-date-picker"),O=bt("el-upload");return N(),U("div",pdt,[V("div",gdt,[V("div",mdt,[ydt,V("p",null,[V("span",{class:H(["month",o.value==="month"?"selectMonth":""]),onClick:s},"月",2),V("span",{class:H(["day",o.value==="day"?"selectDay":""]),onClick:s},"日",2)])]),_dt,V("div",bdt,[wdt,V("p",null,[V("span",{class:H(["year",l.value==="year"?"selectYear":""]),onClick:u},"年",2),V("span",{class:H(["month",l.value==="month"?"selectMonth":""]),onClick:u},"月",2)])]),Sdt,xdt,V("div",Adt,[V("div",Tdt,[Cdt,J(I,{modelValue:y.value,"onUpdate:modelValue":L[0]||(L[0]=R=>y.value=R),type:"daterange","start-placeholder":"开始时间","end-placeholder":"结束时间","default-time":_.value,onChange:C},null,8,["modelValue","default-time"])]),Edt])]),V("div",Mdt,[Ddt,V("div",Pdt,[V("ul",Ldt,[(N(),U(Be,null,ht(t,(R,B)=>V("li",{class:H(B===r.value?"tab-select":""),onClick:k=>d(R,B),key:B},[V("span",null,me(R.name),1)],10,Idt)),64))]),V("div",Rdt,[V("div",Odt,[(N(!0),U(Be,null,ht(a.value,(R,B)=>(N(),U("div",{class:"system-content-left-item",key:B},[V("p",kdt,me(R.name),1),V("p",Ndt,[nr(me(R.value>1e4?(R.value/1e4).toFixed(3):R.value>1e8?(R.value/1e8).toFixed(3):R.value)+" ",1),V("span",Bdt,me(R.value>1e4?"万":R.value>1e8?"亿":""),1)])]))),128))]),V("div",Fdt,[(N(!0),U(Be,null,ht(i.value,(R,B)=>(N(),U("div",{class:"system-content-right-item",key:B},[V("ul",Vdt,[(N(!0),U(Be,null,ht(R,(k,z)=>(N(),U("li",{key:"name"+z},me(k.name),1))),128))]),V("div",zdt,[(N(!0),U(Be,null,ht(R,k=>(N(),U("span",{class:H(k.unit==="%"?"yoy":"")},[nr(me(k.value)+" ",1),V("span",Hdt,me(k.unit),1)],2))),256))])]))),128))])])]),V("div",Gdt,[Udt,V("p",null,[V("span",{class:H(["year",c.value==="year"?"selectYear":""]),onClick:f},"年",2),V("span",{class:H(["month",c.value==="month"?"selectMonth":""]),onClick:f},"月",2),V("span",{class:H(["day",c.value==="day"?"selectDay":""]),onClick:f},"日",2)])]),$dt,V("div",Wdt,[Ydt,J(O,{ref:"uploadRef",class:"upload-demo",action:E.value,"auto-upload":!0,"show-file-list":!1,"on-success":D,accept:".xls,.xlsx"},{trigger:le(()=>[jdt]),_:1},8,["action"])]),Kdt])])}}},Zdt=al(Xdt,[["__scopeId","data-v-9c9ed217"]]);function qdt(e){return ir({url:"/api/GetWaterDraining",method:"get",params:e})}const Bae=e=>(jl("data-v-918ab0af"),e=e(),Kl(),e),Qdt={class:"page m100"},Jdt={class:"page-left-box"},eht=Bae(()=>V("div",{class:"title"},[V("span",null,"运行情况")],-1)),tht={class:"page-big-box margin10"},rht={class:"system-item-title"},nht={class:"system-item-right"},aht={class:"tooltip-content"},iht={key:0,class:"tooltip-text"},oht={key:1,class:"tooltip-text"},sht={key:2,class:"tooltip-text"},lht={class:"page-right-box"},uht=Bae(()=>V("div",{class:"title"},[V("span",null,"运行情况")],-1)),cht={class:"page-big-box margin10"},fht={class:"system-item-title"},dht={class:"system-item-right"},hht={class:"tooltip-content"},vht={key:0,class:"tooltip-text"},pht={key:1,class:"tooltip-text"},ght={key:2,class:"tooltip-text"},mht={__name:"index",setup(e){const t=G([{name:"1号排水点",children:[{name:"1#泵",state:1},{name:"2#泵",state:0}]},{name:"2号排水点",children:[{name:"3#泵",state:1},{name:"4#泵",state:0}]},{name:"3号排水点",children:[{name:"5#泵",state:1},{name:"6#泵",state:0}]},{name:"4号排水点",children:[{name:"7#泵",state:1},{name:"8#泵",state:0}]},{name:"5号排水点",children:[{name:"9#泵",state:1},{name:"10#泵",state:0}]},{name:"6号排水点",children:[{name:"11#泵",state:1},{name:"12#泵",state:0}]},{name:"7号排水点",children:[{name:"13#泵",state:1},{name:"14#泵",state:0}]}]),r=G([{name:"8号排水点",children:[{name:"15#泵",state:1},{name:"16#泵",state:0}]},{name:"9号排水点",children:[{name:"17#泵",state:1},{name:"18#泵",state:0}]},{name:"10号排水点",children:[{name:"19#泵",state:1},{name:"20#泵",state:0}]},{name:"11号排水点",children:[{name:"21#泵",state:1},{name:"22#泵",state:0}]},{name:"12号排水点",children:[{name:"23#泵",state:1},{name:"24#泵",state:0}]},{name:"13号排水点",children:[{name:"25#泵",state:1},{name:"26#泵",state:0}]},{name:"14号排水点",children:[{name:"27#泵",state:1},{name:"28#泵",state:0}]}]),n=()=>{qdt().then(a=>{console.log(a,"排水数据"),t.value=a.data.slice(0,7).map(i=>({name:i.WaterName,children:i.list})),r.value=a.data.slice(7).map(i=>({name:i.WaterName,children:i.list}))})};return xt(()=>{n()}),(a,i)=>(N(),U("div",Qdt,[V("div",Jdt,[eht,V("div",tht,[(N(!0),U(Be,null,ht(t.value,(o,s)=>(N(),U("div",{class:"system-item",key:"sys"+s},[V("span",rht,me(o.name),1),V("div",nht,[(N(!0),U(Be,null,ht(o.children,(l,u)=>(N(),U("p",aht,[V("span",null,me(l.DrainingName),1),l.DrainingState==0?(N(),U("div",iht,"运行")):l.DrainingState==1?(N(),U("div",oht,"停止")):l.DrainingState==-1?(N(),U("div",sht,"离线")):ce("",!0),V("span",{class:H("state"+(l.DrainingState===0?"0":l.DrainingState===1?"1":"2"))},null,2)]))),256))])]))),128))])]),V("div",lht,[uht,V("div",cht,[(N(!0),U(Be,null,ht(r.value,(o,s)=>(N(),U("div",{class:"system-item",key:"sys"+s},[V("span",fht,me(o.name),1),V("div",dht,[(N(!0),U(Be,null,ht(o.children,(l,u)=>(N(),U("p",hht,[V("span",null,me(l.DrainingName),1),l.DrainingState==0?(N(),U("div",vht,"运行")):l.DrainingState==1?(N(),U("div",pht,"停止")):l.DrainingState==-1?(N(),U("div",ght,"离线")):ce("",!0),V("span",{class:H("state"+(l.DrainingState===0?"0":l.DrainingState===1?"1":"2"))},null,2)]))),256))])]))),128))])])]))}},yht=al(mht,[["__scopeId","data-v-918ab0af"]]);function _ht(e){return ir({url:"/api/GetGeneralSituation",method:"get",params:e})}function bht(e){return ir({url:"/api/GetElectricalCondition",method:"get",params:e})}function wht(e){return ir({url:"/api/GetFailureWarning",method:"get",params:e})}function Sht(e){return ir({url:"/api/GetBootStrategy",method:"get",params:e})}function xht(e){return ir({url:"/api/GetMaintenanceReminder",method:"get",params:e})}function Aht(e){return ir({url:"/api/GetPolicyEditing",method:"get",params:e})}function Tht(e){return ir({url:"/api/GetStrategyCompilation",method:"get",params:e})}function Cht(e){return ir({url:"/api/SetAircondition",method:"get",params:e})}const Fae=e=>(jl("data-v-f5a5eb17"),e=e(),Kl(),e),Eht={class:"dialog"},Mht=Fae(()=>V("div",{class:"dialog-title"},"策略编辑",-1)),Dht={class:"dialog-box"},Pht={class:"dialog-box-name"},Lht={class:"dialog-box-content"},Iht={class:"dialog-box-content-item"},Rht={class:"dialog-box-content-item"},Oht=Fae(()=>V("div",{class:"on-device"},"开机设备",-1)),kht={class:"system"},Nht={class:"select-system"},Bht=["onClick"],Fht={__name:"dialogBox",props:{dialogName:{type:String,default:""}},emits:["update"],setup(e,{emit:t}){const r=G(!1),n=G(!1),a=e;xt(()=>{Tht({name:a.dialogName}).then(d=>{s.value=d.data[0].UnitName.filter(h=>h!==""),l.value=d.data[0].PlantName,r.value=s.value.length===l.value.length,n.value=s.value.length>0&&s.value.length<l.value.length})});const i=t,o=()=>{i("sendDevice",s.value),i("update",!1)},s=G(["2号机窗"]),l=G(["1号机窗","2号机窗","3号机窗","4号机窗"]),u=d=>{s.value=d?l.value:[],n.value=!1},c=d=>{const h=d.length;r.value=h===l.value.length,n.value=h>0&&h<l.value.length},f=d=>{s.value.splice(d,1);const h=s.value.length;r.value=h===l.value.length,n.value=h>0&&h<l.value.length};return(d,h)=>{const v=bt("el-input"),p=bt("el-form-item"),g=bt("el-checkbox"),m=bt("el-checkbox-group");return N(),U("div",Eht,[V("div",{class:"close-btn",onClick:o}),Mht,V("div",Dht,[V("div",Pht,[J(p,{label:"策略名称:"},{default:le(()=>[J(v,{modelValue:a.dialogName,"onUpdate:modelValue":h[0]||(h[0]=y=>a.dialogName=y)},null,8,["modelValue"])]),_:1})]),V("div",Lht,[V("div",Iht,[J(g,{modelValue:r.value,"onUpdate:modelValue":h[1]||(h[1]=y=>r.value=y),indeterminate:n.value,onChange:u},{default:le(()=>[nr("全部设备")]),_:1},8,["modelValue","indeterminate"]),J(m,{modelValue:s.value,"onUpdate:modelValue":h[2]||(h[2]=y=>s.value=y),onChange:c},{default:le(()=>[(N(!0),U(Be,null,ht(l.value,y=>(N(),he(g,{key:y,label:y},{default:le(()=>[nr(me(y),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),V("div",Rht,[Oht,V("div",kht,[(N(!0),U(Be,null,ht(s.value,(y,_)=>(N(),U("div",Nht,[V("span",null,me(y),1),V("span",{class:"close",onClick:w=>f(_)},null,8,Bht)]))),256))])])])])])}}},Vht=al(Fht,[["__scopeId","data-v-f5a5eb17"]]);const sc=e=>(jl("data-v-545c2587"),e=e(),Kl(),e),zht={class:"page m100"},Hht={class:"page-left-box"},Ght=sc(()=>V("div",{class:"title"},[V("span",null,"概况")],-1)),Uht={id:"overview",class:"margin10 box-bg overview"},$ht={class:"overview-system"},Wht={class:"overview-system-item"},Yht=["src"],jht={class:"name"},Kht={class:"num"},Xht=sc(()=>V("span",null,"台",-1)),Zht={class:"name"},qht={class:"value"},Qht={class:"unit"},Jht=sc(()=>V("div",{class:"title margin10"},[V("span",null,"用电情况")],-1)),evt={id:"electricity",class:"margin10 box-bg"},tvt=sc(()=>V("div",{class:"electricity-left"},[V("span"),V("span"),V("span")],-1)),rvt={class:"electricity-right"},nvt={class:"value",style:{"font-size":"1rem"}},avt={class:"unit"},ivt=sc(()=>V("div",{class:"title margin10"},[V("span",null,"故障报警")],-1)),ovt={id:"fault",class:"margin10 box-bg"},svt={class:"name"},lvt={class:"date"},uvt={class:"page-right-box"},cvt=sc(()=>V("div",{class:"title"},[V("span",null,"开机策略")],-1)),fvt={class:"margin10 box-bg",style:{height:"32.7%"}},dvt={class:"runningState"},hvt=sc(()=>V("div",{class:"tableTitle"},[V("span",null,"策略名称"),V("span",null,"策略状态"),V("span",null,"操作")],-1)),vvt={class:"tableContent"},pvt=["onClick"],gvt={class:"name"},mvt={class:"control"},yvt={key:0,class:"tooltip-text"},_vt={key:1,class:"tooltip-text"},bvt={class:"control-btn"},wvt=["onClick"],Svt=["onClick"],xvt=sc(()=>V("div",{class:"title margin10"},[V("span",null,"设备运行状态")],-1)),Avt={id:"reminder",class:"margin10 box-bg",style:{height:"42%"}},Tvt={class:"runningState"},Cvt=sc(()=>V("div",{class:"tableTitle",style:{height:"12%"}},[V("span",null,"策略名称"),V("span",null,"状态")],-1)),Evt={class:"tableContent"},Mvt={class:"name"},Dvt={class:"date"},Pvt={key:0,class:"tooltip-text"},Lvt={key:1,class:"tooltip-text"},Ivt={key:2,class:"tooltip-text"},Rvt={__name:"index",emits:["closeAir"],setup(e,{emit:t}){const r=G([{name:"运行设备数量",num:"1130"},{name:"停机设备数量",num:"1130"}]),n=G([jr.defaultsystemnum,jr.stopsystemnum]),a=G([{name:"展馆面积",num:83,unit:"万m²"},{name:"设备总量",num:83,unit:"台"}]),i=G([{name:"今日用电量",value:66,unit:"kWh"},{name:"今日用电费用",value:66,unit:"元"},{name:"本月用电量",value:66,unit:"kWh"},{name:"本月用电费用",value:66,unit:"元"},{name:"本年用电量",value:66,unit:"kWh"},{name:"本年用电费用",value:66,unit:"元"}]),o=G([{name:"1号机组的XX模块故障",date:"2023-11-28 16:58:02"},{name:"1号机组的XX模块故障",date:"2023-11-28 16:58:02"},{name:"1号机组的XX模块故障",date:"2023-11-28 16:58:02"}]),s=G([{name:"休息日",value:!1},{name:"节假日",value:!0},{name:"日常",value:!0},{name:"全开",value:!0},{name:"全关",value:!0}]),l=G([{name:"1#主机",date:"10"},{name:"2#主机",date:"03"},{name:"3#主机",date:"01"},{name:"4#主机",date:"07"},{name:"5#主机",date:"09"},{name:"6#主机",date:"10"},{name:"7#主机",date:"06"},{name:"8#主机",date:"04"},{name:"9#主机",date:"12"},{name:"10#主机",date:"11"},{name:"11#主机",date:"05"},{name:"12#主机",date:"06"},{name:"13#主机",date:"09"}]),u=t,c=G(!1),f=G(""),d=G(""),h=M=>{u("closeAir",""),c.value=!0,f.value=M.name,d.value=M.StrategyId},v=M=>{console.log(M,"xxxxxxxxxx");let E={id:d.value,name:f.value,value:p.value===""?null:p.value};console.log(p.value,"参数",E),Aht(E).then(D=>{D.code===200?Jc({message:D.msg,type:"success"}):Jc({message:D.msg,type:"error"})}),c.value=M},p=G(""),g=M=>{console.log(M),p.value=M.join(",")},m=G("on"),y=()=>{_ht().then(M=>{r.value[0].num=M.data[0].Operation,r.value[1].num=M.data[0].Stop,a.value[0].num=M.data[0].Area,a.value[1].num=M.data[0].Amount})},_=()=>{wht().then(M=>{o.value=M.data.map(E=>({name:E.FailureWarning,date:E.FailureTime}))})},w=()=>{bht().then(M=>{i.value[0].value=x(M.data[0].EH,0),i.value[1].value=x(M.data[0].Electricity,1),i.value[2].value=x(M.data[1].EH,2),i.value[3].value=x(M.data[1].Electricity,3),i.value[4].value=x(M.data[2].EH,4),i.value[5].value=x(M.data[2].Electricity,5)})};function x(M,E){let P=M.toString().split(".")[0];return P.length>=5?(E==0||E==2||E==4?i.value[E].unit="万kWh":i.value[E].unit="万元",S(P,!0)):S(M,!1)}function S(M,E){return Number.isInteger(M)?M:E==!0?parseFloat((M/1e4).toFixed(3)):parseFloat(M.toFixed(3))}const T=()=>{Sht().then(M=>{s.value=M.data.map(E=>({name:E.StrategyName,value:E.StrategyState,StrategyId:E.StrategyId}))})},A=()=>{console.log(m.value),xht().then(M=>{l.value=M.data.map(E=>({name:E.DeviceName,date:E.Status}))})};function C(M,E){let D={StrategyId:M.StrategyId,Type:E};Cht(D).then(P=>{P.code==200?(Jc({message:"开机策略操作成功",type:"success"}),T()):Jc({message:P.msg,type:"error"})})}return xt(()=>{y(),w(),_(),T(),A()}),(M,E)=>(N(),U("div",zht,[c.value?(N(),he(Vht,{key:0,onUpdate:v,dialogName:f.value,onSendDevice:g},null,8,["dialogName"])):ce("",!0),V("div",Hht,[Ght,V("div",Uht,[V("div",$ht,[(N(!0),U(Be,null,ht(r.value,(D,P)=>(N(),U("div",Wht,[V("img",{src:n.value[P],alt:"",srcset:""},null,8,Yht),V("p",null,[V("span",jht,me(D.name),1),V("span",Kht,me(D.num),1),Xht]),nr(" · ")]))),256))]),(N(!0),U(Be,null,ht(a.value,(D,P)=>(N(),U("div",{class:H("overview-item"+P)},[V("span",Zht,me(D.name),1),V("p",null,[V("span",qht,me(D.num),1),V("span",Qht,me(D.unit),1)])],2))),256))]),Jht,V("div",evt,[tvt,V("div",rvt,[V("ul",null,[(N(!0),U(Be,null,ht(i.value,(D,P)=>(N(),U("li",null,[V("span",null,me(D.name),1),V("span",null,[V("span",nvt,me(D.value),1),V("span",avt,me(D.unit),1)])]))),256))])])]),ivt,V("div",ovt,[(N(!0),U(Be,null,ht(o.value,D=>(N(),U("p",null,[V("span",svt,me(D.name),1),V("span",lvt,"时间:"+me(D.date),1)]))),256))])]),V("div",uvt,[cvt,V("div",fvt,[V("div",dvt,[hvt,V("div",vvt,[(N(!0),U(Be,null,ht(s.value,(D,P)=>(N(),U("div",{class:"tableBoby",onClick:L=>h(D),key:P},[V("span",gvt,me(D.name),1),V("span",mvt,[D.value=="0"?(N(),U("div",yvt,"停止")):D.value=="1"?(N(),U("div",_vt,"运行")):ce("",!0),V("i",{class:H("state"+D.value)},null,2)]),V("p",bvt,[V("span",{class:"on",onClick:it(L=>C(D,1),["stop"])},"开",8,wvt),V("span",{class:"off",style:{"margin-left":"0.7rem"},onClick:it(L=>C(D,0),["stop"])},"关",8,Svt)])],8,pvt))),128))])])]),xvt,V("div",Avt,[V("div",Tvt,[Cvt,V("div",Evt,[(N(!0),U(Be,null,ht(l.value,(D,P)=>(N(),U("div",{class:"tableBoby",style:{height:"12%"},key:P},[V("span",Mvt,me(D.name),1),V("span",Dvt,[D.date==0?(N(),U("div",Pvt,"停止")):D.date==1?(N(),U("div",Lvt,"运行")):(N(),U("div",Ivt,"离线")),V("i",{class:H("state"+D.date)},null,2)])]))),128))])])])])]))}},Ovt=al(Rvt,[["__scopeId","data-v-545c2587"]]);function kvt(){return ir({url:"/api/GetLightingMonitoring",method:"get"})}function Nvt(){return ir({url:"/api/GetLightingDetail",method:"get"})}function Bvt(e){return ir({url:"/api/GetLightingLoad",method:"get",params:e})}function Fvt(){return ir({url:"/api/GetPavilionLighting",method:"get"})}function Vvt(){return ir({url:"/api/GetLightingControl",method:"get"})}function zvt(){return ir({url:"/api/GetFaultCondition",method:"get"})}function Hvt(e){return ir({url:"/api/GetSingleControl",method:"get",params:e})}function Gvt(e){return ir({url:"/api/SetLighting",method:"get",params:e})}function g$(e){return ir({url:"/api/SetSingleSwitch",method:"get",params:e})}function Uvt(e){return ir({url:"/api/SetFullSwitch",method:"get",params:e})}const $vt=e=>(jl("data-v-4393e834"),e=e(),Kl(),e),Wvt={key:0,class:"dialog"},Yvt={class:"dialog-title"},jvt={class:"control-btn"},Kvt={class:"dialog-content"},Xvt={class:"runningState"},Zvt=$vt(()=>V("div",{class:"tableTitle"},[V("span",null,"回路名称"),V("span",null,"操作")],-1)),qvt={class:"tableContent"},Qvt={class:"name"},Jvt={__name:"dialog",props:{show:{type:Boolean,default:!1},name:{type:String,default:""},tableData:{type:Array}},emits:["update"],setup(e,{emit:t}){const r=G([]),n=G(""),a=u=>{if(u.srcElement.className==="off"){n.value="off";let c={name:i.name,value:"全关"};g$(c).then(f=>{if(f.code==200)r.value.forEach(d=>{d.State=!1});else return!1}).catch(f=>{console.log(f)})}else if(u.srcElement.className==="on"){n.value="on";let c={name:i.name,value:"全开"};g$(c).then(f=>{if(f.code==200)r.value.forEach(d=>{d.State=!0});else return!1}).catch(f=>{console.log(f)})}},i=e;console.log(i.name,i.show);const o=t,s=()=>{o("update",!1)};function l(u){let c={name:u.Id,value:u.State==!0?"255":"0"};Gvt(c).then(f=>{if(f.code==200)n.value="",o("closeAll",!1);else return!1}).catch(f=>{console.log(f)})}return Ae(()=>i.tableData,(u,c)=>{u.forEach(f=>{f.State=f.State=="255"}),r.value=u,n.value=""}),(u,c)=>{const f=bt("el-switch");return i.show?(N(),U("div",Wvt,[V("div",{class:"close-btn",onClick:s}),V("div",Yvt,[V("span",null,me(i.name),1)]),V("div",jvt,[V("span",{style:{"margin-left":"0.7rem"},class:H(["off",n.value==="off"?"select":""]),onClick:a},"全关",2)]),V("div",Kvt,[V("div",Xvt,[Zvt,V("div",qvt,[(N(!0),U(Be,null,ht(r.value,(d,h)=>(N(),U("div",{class:"tableBoby",key:h},[V("span",Qvt,me(d.name),1),V("span",null,[J(f,{modelValue:d.State,"onUpdate:modelValue":v=>d.State=v,style:{left:"8px"},onChange:v=>l(d)},null,8,["modelValue","onUpdate:modelValue","onChange"])])]))),128))])])])])):ce("",!0)}}},ept=al(Jvt,[["__scopeId","data-v-4393e834"]]);const _s=e=>(jl("data-v-202b0bae"),e=e(),Kl(),e),tpt={class:"page m100"},rpt={class:"floor"},npt=["onClick"],apt={class:"page-left-box"},ipt=_s(()=>V("div",{class:"title"},[V("span",null,"照明监测")],-1)),opt={id:"light",class:"margin10 box-bg"},spt={class:"light-item"},lpt=["src"],upt={class:"name"},cpt={class:"num"},fpt=_s(()=>V("span",{class:"unit"},"个",-1)),dpt=_s(()=>V("div",{class:"title margin10"},[V("span",null,"照明回路详情")],-1)),hpt={class:"margin10 box-bg"},vpt={class:"runningState"},ppt=_s(()=>V("div",{class:"tableTitle"},[V("span",null,"名称"),V("span",null,"位置"),V("span",null,"状态")],-1)),gpt={class:"tableContent",style:{height:"86.5%"}},mpt={class:"name"},ypt={key:0,class:"tooltip-text"},_pt={key:1,class:"tooltip-text"},bpt={key:2,class:"tooltip-text"},wpt={class:"title margin10"},Spt=_s(()=>V("span",null,"照明负荷",-1)),xpt=_s(()=>V("div",{id:"lightLoad",class:"margin10 box-bg"},null,-1)),Apt={class:"page-right-box"},Tpt=_s(()=>V("div",{class:"title"},[V("span",null,"展馆照明")],-1)),Cpt=_s(()=>V("div",{id:"hallLighting",class:"margin10 box-bg"},null,-1)),Ept={class:"title margin10"},Mpt=_s(()=>V("span",null,"照明控制",-1)),Dpt={class:"control-btn"},Ppt={class:"margin10 box-bg"},Lpt={class:"runningState"},Ipt=_s(()=>V("div",{class:"tableTitle"},[V("span",null,"控制箱名称"),V("span",null,"操作")],-1)),Rpt={class:"tableContent",style:{height:"86.5%"}},Opt={class:"name"},kpt=["onClick"],Npt=_s(()=>V("div",{class:"title margin10"},[V("span",null,"故障情况")],-1)),Bpt=_s(()=>V("div",{id:"faultConditions",class:"margin10 box-bg"},null,-1)),Fpt={__name:"index",emits:["sendVal","closeBox"],setup(e,{emit:t}){const r=G([{name:"照明回路数量",num:0,pic:jr.lightTotal},{name:"照明回路灭灯数量",num:0,pic:jr.noLightNum},{name:"照明回路亮灯数量",num:0,pic:jr.lightingNum},{name:"离线数量",num:0,pic:jr.offlineNum}]),n=G([]),a=G([]),i=G([]),o=G("day"),s=t,l=G([{name:"一层"},{name:"二层"},{name:"三层"},{name:"负一层"}]),u=G(-1),c=(I,O)=>{I.name==="一层"?s("sendVal",6):I.name==="二层"?s("sendVal",7):I.name==="三层"?s("sendVal",8):I.name==="负一层"&&s("sendVal",5),u.value=O},f=I=>{o.value=I.srcElement.className,C()},d=G(""),h=I=>{I.srcElement.className=="on"?(d.value="on",L("全开")):I.srcElement.className=="off"&&(d.value="off",L("全关"))},v=G(!1),p=G(""),g=G(""),m=I=>{s("closeBox",""),g.value=I,v.value=!0,P(I)},y=I=>{v.value=I};function _(I){I==!1&&(d.value="")}const w=I=>{let O=[{name:"正常",value:I[0].Normality},{name:"离线",value:I[0].Malfunction}];for(var R=I[0].Amount,B=[],k=["rgba(1, 246, 139, 1)","rgba(255, 221, 0, 1)"],z=0;z<O.length;z++)B.push({value:O[z].value,name:O[z].name,itemStyle:{borderWidth:5,borderRadius:10,borderColor:k[z],shadowColor:k[z]}},{value:R*.04,name:"",itemStyle:{label:{show:!1},labelLine:{show:!1},color:"rgba(0, 0, 0, 0)",borderWidth:0}});let $=document.getElementById("faultConditions");$.removeAttribute("_echarts_instance_");let j;j=$n($);let X={graphic:{elements:[{type:"image",z:3,style:{image:jr.loadClassification,width:175,height:175},left:"center",top:"center"}]},color:k,title:[{text:R,x:"48%",y:"42%",textAlign:"center",textStyle:{fontFamily:"D-DIN-Bold",fontSize:"24",fontWeight:"bold",color:"#FFF"}},{text:"个",x:"55%",y:"45%",textAlign:"center",textStyle:{fontSize:"13",fontWeight:"100",color:"#FFF"}},{text:"照明回路数量",left:"49%",top:"55%",textAlign:"center",textStyle:{fontFamily:"MicrosoftYaHei",fontSize:"12",fontWeight:"100",color:"#fff"}}],tooltip:{show:!0},series:[{name:"",type:"pie",clockWise:!0,radius:[50,56],hoverAnimation:!1,itemStyle:{normal:{label:{show:!0,position:"outside",color:"#FFFFFF",fontSize:13,formatter:function(Q){Q.percent;let se="个";return Q.name!==""?`{a${Q.dataIndex/2}|`+Q.value+"}{s0|"+se+`}
|
||
`+Q.name:""},padding:[60,-50],textStyle:{rich:{a0:{color:"rgba(1, 246, 139, 1)",padding:[0,0,10,0],fontSize:20,fontFamily:"D-DIN-Bold"},a1:{color:k[1],padding:[0,0,10,0],fontSize:20,fontFamily:"D-DIN-Bold"},s0:{color:"#fff",padding:[0,0,10,5],fontSize:12}}}},labelLine:{length:20,length2:100,show:!0,showAbove:!0,color:"#00ffff"}}},data:B}]};j.setOption(X),window.addEventListener("resize",function(){j.resize()})},x=I=>{const O=eo({shape:{x:0,y:0},buildPath:function(se,ee){const K=ee.xAxisPoint,Z=[ee.x-7,ee.y],ne=[ee.x+7,ee.y],re=[K[0]+7,K[1]],ie=[K[0]-7,K[1]];se.moveTo(Z[0],Z[1]).lineTo(ne[0],ne[1]).lineTo(re[0],re[1]).lineTo(ie[0],ie[1]).closePath(),se.stroke()}}),R=eo({shape:{x:0,y:0},buildPath:function(se,ee){const K=ee.xAxisPoint,Z=[ee.x+7,ee.y],ne=[K[0]+7,K[1]],re=[K[0]+7+7,K[1]-5],ie=[ee.x+7+7,ee.y-5];se.moveTo(Z[0],Z[1]).lineTo(ne[0],ne[1]).lineTo(re[0],re[1]).lineTo(ie[0],ie[1]).closePath(),se.stroke()}}),B=eo({shape:{x:0,y:0},buildPath:function(se,ee){const K=[ee.x-7,ee.y],Z=[ee.x+8,ee.y],ne=[ee.x+15,ee.y-5],re=[ee.x-2,ee.y-5];se.moveTo(K[0],K[1]).lineTo(Z[0],Z[1]).lineTo(ne[0],ne[1]).lineTo(re[0],re[1]).closePath(),se.stroke()}});zn("CubeLeft",O),zn("CubeRight",R),zn("CubeTop",B);let k=["室内","户外"],z=[I[0].Indoor,I[0].Outdoor],$,j=document.getElementById("hallLighting");j.removeAttribute("_echarts_instance_");let X;X=$n(j);const Q={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(se,ee,K){const Z=se[1];return Z.name+" : "+Z.value}},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:k,axisLine:{show:!0,lineStyle:{width:1,type:"solid",color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:14,interval:0}},yAxis:{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",padding:[0,20,0,0]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisTick:{show:!1},axisLabel:{fontSize:14,color:"#DDFFFD"}},series:[{type:"custom",renderItem:(se,ee)=>{const K=ee.coord([ee.value(0),ee.value(1)]);return $=se.dataIndex===0?[["rgba(0, 170, 193, 1)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"]]:[["rgba(0, 193, 113, 1)"],["rgba(0, 255, 140, 1)","rgba(0, 255, 140,0)"]],{type:"group",children:[{type:"CubeLeft",shape:{api:ee,xValue:ee.value(0),yValue:ee.value(1),x:K[0],y:K[1],xAxisPoint:ee.coord([ee.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:$[1][0]},{offset:1,color:$[1][1]}])}},{type:"CubeRight",shape:{api:ee,xValue:ee.value(0),yValue:ee.value(1),x:K[0],y:K[1],xAxisPoint:ee.coord([ee.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:$[1][0]},{offset:1,color:$[1][1]}])}},{type:"CubeTop",shape:{api:ee,xValue:ee.value(0),yValue:ee.value(1),x:K[0],y:K[1],xAxisPoint:ee.coord([ee.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:$[0][0]},{offset:1,color:$[0][0]}])}}]}},data:z},{type:"bar",label:{normal:{show:!1,position:"top",formatter:se=>se.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:z}]};X.setOption(Q),window.addEventListener("resize",function(){X.resize()})},S=I=>{let O=o.value=="year"?"去年":o.value=="month"?"上月":"昨日",R=o.value=="year"?"今年":o.value=="month"?"本月":"今日",B=[],k=[],z=[];I.forEach(Q=>{B.push(Q.time),k.push(Q.TP),z.push(Q.YP)});let $=document.getElementById("lightLoad");$.removeAttribute("_echarts_instance_");let j;j=$n($);let X={grid:{top:"18%",left:"3%",right:"5%",bottom:"7%",containLabel:!0},tooltip:{trigger:"axis",borderWidth:1},legend:[{icon:"rect",top:10,right:10,orient:"horizontal",borderRadius:20,itemHeight:10,itemWidth:15,textStyle:{color:"#DDFFFD",fontSize:12}}],xAxis:{type:"category",data:B,axisLine:{show:!0,lineStyle:{color:"#557775"}},axisTick:{show:!1},axisLabel:{show:!0,textStyle:{color:"#DDFFFD"},formatter:function(Q){return Q>=1e3?Q/1e4+"万":Q>=1e7?Q/1e8+"亿":Q}}},yAxis:[{type:"value",name:"单位/kW",nameTextStyle:{color:"#DDFFFD",fontSize:12,padding:[0,10,0,0]},axisTick:{show:!1},axisLabel:{color:"#DDFFFD",fontSize:12,formatter:function(Q){return Q>=1e3?Q/1e4+"万":Q>=1e7?Q/1e8+"亿":Q}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}}}],series:[{name:O,type:"line",symbol:"none",itemStyle:{color:"white",borderWidth:"2",borderColor:"rgba(91, 250, 241, 1)",normal:{color:"rgba(91, 250, 241, 1)"}},lineStyle:{color:"rgba(91, 250, 241, 1)"},data:z},{name:R,type:"line",symbol:"none",itemStyle:{color:"white",borderWidth:"2",borderColor:"#91cc75",normal:{color:"rgba(1, 246, 139, 1)"}},lineStyle:{color:"rgba(1, 246, 139, 1)"},data:k}]};j.setOption(X),window.addEventListener("resize",function(){j.resize()})};function T(){kvt().then(I=>{if(I.code==200)r.value[0].num=I.data[0].Amount,r.value[1].num=I.data[0].Blackout,r.value[2].num=I.data[0].Connection,r.value[3].num=I.data[0].Offline;else return!1}).catch(I=>{console.log(I)})}function A(){Nvt().then(I=>{if(I.code==200)I.data.forEach(O=>{O.state=O.state=="0"?"0":O.state=="255"?"1":"2"}),n.value=I.data;else return!1}).catch(I=>{console.log(I)})}function C(){let I=o.value=="year"?"年":o.value=="month"?"月":"日";Bvt({date:I}).then(O=>{if(O.code==200)S(O.data.slice(-10));else return!1}).catch(O=>{console.log(O)})}function M(){Fvt().then(I=>{if(I.code==200)x(I.data);else return!1}).catch(I=>{console.log(I)})}function E(){Vvt().then(I=>{if(I.code==200)a.value=I.data;else return!1}).catch(I=>{console.log(I)})}function D(){zvt().then(I=>{if(I.code==200)w(I.data);else return!1}).catch(I=>{console.log(I)})}function P(I){Hvt({name:I}).then(O=>{if(O.code==200)i.value=O.data;else return!1}).catch(O=>{console.log(O)})}function L(I){Uvt({name:I}).then(R=>{if(R.code!=200)return!1}).catch(R=>{console.log(R)})}return xt(()=>{window.openBox=m,D(),M(),C(),T(),A(),E()}),(I,O)=>(N(),U("div",tpt,[V("div",rpt,[(N(!0),U(Be,null,ht(l.value,(R,B)=>(N(),U("div",{onClick:k=>c(R,B),class:H(B===u.value?"floor-select":"floor-default"),key:B},me(R.name),11,npt))),128))]),J(ept,{ref_key:"box",ref:p,name:g.value,show:v.value,tableData:i.value,onUpdate:y,onCloseAll:_},null,8,["name","show","tableData"]),V("div",apt,[ipt,V("div",opt,[(N(!0),U(Be,null,ht(r.value,(R,B)=>(N(),U("div",spt,[V("img",{src:R.pic,alt:""},null,8,lpt),V("p",null,[V("span",upt,me(R.name),1),V("span",cpt,[nr(me(R.num),1),fpt])])]))),256))]),dpt,V("div",hpt,[V("div",vpt,[ppt,V("div",gpt,[(N(!0),U(Be,null,ht(n.value,(R,B)=>(N(),U("div",{key:B,class:"tableBoby"},[V("span",mpt,me(R.name),1),V("span",null,me(R.location),1),R.state==0?(N(),U("div",ypt,"停止")):R.state==1?(N(),U("div",_pt,"运行")):R.state==2?(N(),U("div",bpt,"离线")):ce("",!0),V("span",null,[V("i",{class:H("state"+R.state)},null,2)])]))),128))])])]),V("div",wpt,[Spt,V("p",null,[V("span",{class:H([o.value==="year"?"selectYear":"","year"]),onClick:f},"年",2),V("span",{class:H([o.value==="month"?"selectMonth":"","month"]),onClick:f},"月",2),V("span",{class:H([o.value==="day"?"selectDay":"","day"]),onClick:f},"日",2)])]),xpt]),V("div",Apt,[Tpt,Cpt,V("div",Ept,[Mpt,V("p",Dpt,[V("span",{class:H([d.value==="off"?"select":"","off"]),style:{"margin-left":"0.7rem"},onClick:h},"全关",2)])]),V("div",Ppt,[V("div",Lpt,[Ipt,V("div",Rpt,[(N(!0),U(Be,null,ht(a.value,(R,B)=>(N(),U("div",{key:B,class:"tableBoby"},[V("span",Opt,me(R.TypeName),1),V("span",{class:"control",onClick:k=>m(R.TypeName)},"照明控制",8,kpt)]))),128))])])]),Npt,Bpt])]))}},Vpt=al(Fpt,[["__scopeId","data-v-202b0bae"]]);Dt([jZ,PJ]);Dt(IZ);function m$(e,t,r){typeof t=="object"&&(r=t,t=null);var n=this,a;if(!(e instanceof Function)){a=[];for(var i in e)e.hasOwnProperty(i)&&a.push(i)}var o=function(l){if(n.apply(this,arguments),e instanceof Function?y$(this,e.call(this,l)):zpt(this,e,a),this.constructor===o)for(var u=o.__initializers__,c=0;c<u.length;c++)u[c].apply(this,arguments)};o.__super__=n,n.__initializers__?o.__initializers__=n.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=n.prototype,o.prototype=new s,o.prototype.constructor=o,y$(o.prototype,r),o.extend=n.extend,o.derive=n.extend,o}function y$(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}function zpt(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];e[a]=t[a]}}const Hpt={extend:m$,derive:m$};function Gpt(e,t){this.action=e,this.context=t}var Upt={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,n=-1,a=arguments;switch(a.length){case 1:for(;++n<r;)t[n].action.call(t[n].context);return;case 2:for(;++n<r;)t[n].action.call(t[n].context,a[1]);return;case 3:for(;++n<r;)t[n].action.call(t[n].context,a[1],a[2]);return;case 4:for(;++n<r;)t[n].action.call(t[n].context,a[1],a[2],a[3]);return;case 5:for(;++n<r;)t[n].action.call(t[n].context,a[1],a[2],a[3],a[4]);return;default:for(;++n<r;)t[n].action.apply(t[n].context,Array.prototype.slice.call(a,1));return}}},on:function(e,t,r){if(!(!e||!t)){var n=this.__handlers__||(this.__handlers__={});if(!n[e])n[e]=[];else if(this.has(e,t))return;var a=new Gpt(t,r||this);return n[e].push(a),this}},once:function(e,t,r){if(!e||!t)return;var n=this;function a(){n.off(e,a),t.apply(this,arguments)}return this.on(e,a,r)},before:function(e,t,r){if(!(!e||!t))return e="before"+e,this.on(e,t,r)},after:function(e,t,r){if(!(!e||!t))return e="after"+e,this.on(e,t,r)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var r=this.__handlers__||(this.__handlers__={});if(!t){r[e]=[];return}if(r[e]){for(var n=r[e],a=[],i=0;i<n.length;i++)t&&n[i].action!==t&&a.push(n[i]);r[e]=a}return this},has:function(e,t){var r=this.__handlers__;if(!r||!r[e])return!1;for(var n=r[e],a=0;a<n.length;a++)if(n[a].action===t)return!0}};const o4=Upt;var $pt=0,Wpt=Array.prototype,Ypt=Wpt.forEach,My={genGUID:function(){return++$pt},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;for(var r=e.split("/"),n=t.split("/"),a=r[0];a==="."||a==="..";)a===".."&&n.pop(),r.shift(),a=r[0];return n.join("/")+"/"+r.join("/")},extend:function(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},defaults:function(e,t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e},extendWithPropList:function(e,t,r){if(t)for(var n=0;n<r.length;n++){var a=r[n];e[a]=t[a]}return e},defaultsWithPropList:function(e,t,r){if(t)for(var n=0;n<r.length;n++){var a=r[n];e[a]==null&&(e[a]=t[a])}return e},each:function(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Ypt)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e?e.length===+e.length:!1},clone:function(e){if(My.isObject(e)){if(My.isArray(e))return e.slice();if(My.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return My.extend({},e)}else return e}};const za=My;var BT=function(){this.__uid__=za.genGUID()};BT.__initializers__=[function(e){za.extend(this,e)}];za.extend(BT,Hpt);za.extend(BT.prototype,o4);const zi=BT;var _$=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],b$=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function jpt(e){for(var t={},r={},n=0;n<_$.length;n++){var a=_$[n];o(a)}for(var n=0;n<b$.length;n++){var i=b$[n];r[i]=e.getParameter(e[i])}this.getExtension=function(s){return s in t||o(s),t[s]},this.getParameter=function(s){return r[s]};function o(s){if(e.getExtension){var l=e.getExtension(s);l||(l=e.getExtension("MOZ_"+s)),l||(l=e.getExtension("WEBKIT_"+s)),t[s]=l}}}const $e={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444};function Kpt(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(r){if(r.lengthComputable){var n=r.loaded/r.total;e.onprogress(n,r.loaded,r.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Xpt={get:Kpt};var nD,Hi={};Hi.supportWebGL=function(){if(nD==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch{nD=!1}return nD};Hi.Int8Array=typeof Int8Array>"u"?Array:Int8Array;Hi.Uint8Array=typeof Uint8Array>"u"?Array:Uint8Array;Hi.Uint16Array=typeof Uint16Array>"u"?Array:Uint16Array;Hi.Uint32Array=typeof Uint32Array>"u"?Array:Uint32Array;Hi.Int16Array=typeof Int16Array>"u"?Array:Int16Array;Hi.Float32Array=typeof Float32Array>"u"?Array:Float32Array;Hi.Float64Array=typeof Float64Array>"u"?Array:Float64Array;var fh={};typeof window<"u"?fh=window:typeof global<"u"&&(fh=global);Hi.requestAnimationFrame=fh.requestAnimationFrame||fh.msRequestAnimationFrame||fh.mozRequestAnimationFrame||fh.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};Hi.createCanvas=function(){return document.createElement("canvas")};Hi.createImage=function(){return new fh.Image};Hi.request={get:Xpt.get};Hi.addEventListener=function(e,t,r,n){e.addEventListener(t,r,n)};Hi.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};const aa=Hi;var Ra=function(){this.head=null,this.tail=null,this._length=0};Ra.prototype.insert=function(e){var t=new Ra.Entry(e);return this.insertEntry(t),t};Ra.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,n=0;r&&n!=e;)r=r.next,n++;if(r){var a=new Ra.Entry(t),i=r.prev;i?(i.next=a,a.prev=i):this.head=a,a.next=r,r.prev=a}else this.insert(t)}};Ra.prototype.insertBeforeEntry=function(e,t){var r=new Ra.Entry(e),n=t.prev;n?(n.next=r,r.prev=n):this.head=r,r.next=t,t.prev=r,this._length++};Ra.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};Ra.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};Ra.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};Ra.prototype.getHead=function(){if(this.head)return this.head.value};Ra.prototype.getTail=function(){if(this.tail)return this.tail.value};Ra.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};Ra.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};Ra.prototype.length=function(){return this._length};Ra.prototype.isEmpty=function(){return this._length===0};Ra.prototype.forEach=function(e,t){for(var r=this.head,n=0,a=typeof t<"u";r;)a?e.call(t,r.value,n):e(r.value,n),r=r.next,n++};Ra.prototype.clear=function(){this.tail=this.head=null,this._length=0};Ra.Entry=function(e){this.value=e,this.next=null,this.prev=null};const Zpt=Ra;var lm=function(e){this._list=new Zpt,this._map={},this._maxSize=e||10};lm.prototype.setMaxSize=function(e){this._maxSize=e};lm.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var n=this._list.head;this._list.remove(n),delete this._map[n.key]}var a=this._list.insert(t);a.key=e,this._map[e]=a}};lm.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};lm.prototype.remove=function(e){var t=this._map[e];typeof t<"u"&&(delete this._map[e],this._list.remove(t))};lm.prototype.clear=function(){this._list.clear(),this._map={}};const Vae=lm;var Rn={},w$={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 Ys(e){return e=Math.round(e),e<0?0:e>255?255:e}function qpt(e){return e=Math.round(e),e<0?0:e>360?360:e}function L_(e){return e<0?0:e>1?1:e}function aD(e){return e.length&&e.charAt(e.length-1)==="%"?Ys(parseFloat(e)/100*255):Ys(parseInt(e,10))}function wg(e){return e.length&&e.charAt(e.length-1)==="%"?L_(parseFloat(e)/100):L_(parseFloat(e))}function iD(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ef(e,t,r){return e+(t-e)*r}function Es(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function qI(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var zae=new Vae(20),bw=null;function $v(e,t){bw&&qI(bw,t),bw=zae.put(e,bw||t.slice())}Rn.parse=function(e,t){if(e){t=t||[];var r=zae.get(e);if(r)return qI(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in w$)return qI(t,w$[n]),$v(e,t),t;if(n.charAt(0)==="#"){if(n.length===4){var a=parseInt(n.substr(1),16);if(!(a>=0&&a<=4095)){Es(t,0,0,0,1);return}return Es(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,1),$v(e,t),t}else if(n.length===7){var a=parseInt(n.substr(1),16);if(!(a>=0&&a<=16777215)){Es(t,0,0,0,1);return}return Es(t,(a&16711680)>>16,(a&65280)>>8,a&255,1),$v(e,t),t}return}var i=n.indexOf("("),o=n.indexOf(")");if(i!==-1&&o+1===n.length){var s=n.substr(0,i),l=n.substr(i+1,o-(i+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4){Es(t,0,0,0,1);return}u=wg(l.pop());case"rgb":if(l.length!==3){Es(t,0,0,0,1);return}return Es(t,aD(l[0]),aD(l[1]),aD(l[2]),u),$v(e,t),t;case"hsla":if(l.length!==4){Es(t,0,0,0,1);return}return l[3]=wg(l[3]),QI(l,t),$v(e,t),t;case"hsl":if(l.length!==3){Es(t,0,0,0,1);return}return QI(l,t),$v(e,t),t;default:return}}Es(t,0,0,0,1)}};Rn.parseToFloat=function(e,t){if(t=Rn.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function QI(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=wg(e[1]),a=wg(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Es(t,Ys(iD(o,i,r+1/3)*255),Ys(iD(o,i,r)*255),Ys(iD(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Qpt(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o,d=((i-n)/6+o/2)/o;t===i?l=d-f:r===i?l=1/3+c-d:n===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}Rn.lift=function(e,t){var r=Rn.parse(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0;return Rn.stringify(r,r.length===4?"rgba":"rgb")}};Rn.toHex=function(e){var t=Rn.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Rn.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=Ys(ef(o[0],s[0],l)),r[1]=Ys(ef(o[1],s[1],l)),r[2]=Ys(ef(o[2],s[2],l)),r[3]=L_(ef(o[3],s[3],l)),r}};Rn.fastMapToColor=Rn.fastLerp;Rn.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Rn.parse(t[a]),s=Rn.parse(t[i]),l=n-a,u=Rn.stringify([Ys(ef(o[0],s[0],l)),Ys(ef(o[1],s[1],l)),Ys(ef(o[2],s[2],l)),L_(ef(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}};Rn.mapToColor=Rn.lerp;Rn.modifyHSL=function(e,t,r,n){if(e=Rn.parse(e),e)return e=Qpt(e),t!=null&&(e[0]=qpt(t)),r!=null&&(e[1]=wg(r)),n!=null&&(e[2]=wg(n)),Rn.stringify(QI(e),"rgba")};Rn.modifyAlpha=function(e,t){if(e=Rn.parse(e),e&&t!=null)return e[3]=L_(t),Rn.stringify(e,"rgba")};Rn.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};const Jpt=Rn;var egt=Jpt.parseToFloat,oD={};function S$(e){var t=Object.keys(e);t.sort();for(var r=[],n=0;n<t.length;n++){var a=t[n],i=e[a];i===null?r.push(a):r.push(a+" "+i.toString())}return r.join(`
|
||
`)}function tgt(e,t,r){r.sort();for(var n=[],a=0;a<r.length;a++){var i=r[a];n.push(i)}var o=S$(e)+`
|
||
`+S$(t)+`
|
||
`+n.join(`
|
||
`);if(oD[o])return oD[o];var s=za.genGUID();return oD[o]=s,s}var rgt=zi.extend(function(){return{name:"",depthTest:!0,depthMask:!0,transparent:!1,blend:null,autoUpdateTextureStatus:!0,uniforms:{},vertexDefines:{},fragmentDefines:{},_textureStatus:{},_enabledUniforms:null}},function(){this.name||(this.name="MATERIAL_"+this.__uid__),this.shader&&this.attachShader(this.shader,!0)},{precision:"highp",setUniform:function(e,t){t===void 0&&console.warn('Uniform value "'+e+'" is undefined');var r=this.uniforms[e];r&&(typeof t=="string"&&(t=egt(t)||t),r.value=t,this.autoUpdateTextureStatus&&r.type==="t"&&(t?this.enableTexture(e):this.disableTexture(e)))},setUniforms:function(e){for(var t in e){var r=e[t];this.setUniform(t,r)}},isUniformEnabled:function(e){return this._enabledUniforms.indexOf(e)>=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(e,t){if(typeof e=="object")for(var r in e){var n=e[r];this.setUniform(r,n)}else this.setUniform(e,t)},get:function(e){var t=this.uniforms[e];if(t)return t.value},attachShader:function(e,t){var r=this.uniforms;this.uniforms=e.createUniforms(),this.shader=e;var n=this.uniforms;this._enabledUniforms=Object.keys(n),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(u){var c=this.uniforms[u].type;return c==="t"||c==="tv"},this);var a=this.vertexDefines,i=this.fragmentDefines;if(this.vertexDefines=za.clone(e.vertexDefines),this.fragmentDefines=za.clone(e.fragmentDefines),t){for(var o in r)n[o]&&(n[o].value=r[o].value);za.defaults(this.vertexDefines,a),za.defaults(this.fragmentDefines,i)}var s={};for(var l in e.textures)s[l]={shaderType:e.textures[l].shaderType,type:e.textures[l].type,enabled:t&&this._textureStatus[l]?this._textureStatus[l].enabled:!1};this._textureStatus=s,this._programKey=""},clone:function(){var e=new this.constructor({name:this.name,shader:this.shader});for(var t in this.uniforms)e.uniforms[t].value=this.uniforms[t].value;return e.depthTest=this.depthTest,e.depthMask=this.depthMask,e.transparent=this.transparent,e.blend=this.blend,e.vertexDefines=za.clone(this.vertexDefines),e.fragmentDefines=za.clone(this.fragmentDefines),e.enableTexture(this.getEnabledTextures()),e.precision=this.precision,e},define:function(e,t,r){var n=this.vertexDefines,a=this.fragmentDefines;e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<3&&(r=t,t=e,e="both"),r=r??null,(e==="vertex"||e==="both")&&n[t]!==r&&(n[t]=r,this._programKey=""),(e==="fragment"||e==="both")&&a[t]!==r&&(a[t]=r,e!=="both"&&(this._programKey=""))},undefine:function(e,t){e!=="vertex"&&e!=="fragment"&&e!=="both"&&arguments.length<2&&(t=e,e="both"),(e==="vertex"||e==="both")&&this.isDefined("vertex",t)&&(delete this.vertexDefines[t],this._programKey=""),(e==="fragment"||e==="both")&&this.isDefined("fragment",t)&&(delete this.fragmentDefines[t],e!=="both"&&(this._programKey=""))},isDefined:function(e,t){switch(e){case"vertex":return this.vertexDefines[t]!==void 0;case"fragment":return this.fragmentDefines[t]!==void 0}},getDefine:function(e,t){switch(e){case"vertex":return this.vertexDefines[t];case"fragment":return this.fragmentDefines[t]}},enableTexture:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)this.enableTexture(e[t]);return}var r=this._textureStatus[e];if(r){var n=r.enabled;n||(r.enabled=!0,this._programKey="")}},enableTexturesAll:function(){var e=this._textureStatus;for(var t in e)e[t].enabled=!0;this._programKey=""},disableTexture:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)this.disableTexture(e[t]);return}var r=this._textureStatus[e];if(r){var n=!r.enabled;n||(r.enabled=!1,this._programKey="")}},disableTexturesAll:function(){var e=this._textureStatus;for(var t in e)e[t].enabled=!1;this._programKey=""},isTextureEnabled:function(e){var t=this._textureStatus;return!!t[e]&&t[e].enabled},getEnabledTextures:function(){var e=[],t=this._textureStatus;for(var r in t)t[r].enabled&&e.push(r);return e},dirtyDefines:function(){this._programKey=""},getProgramKey:function(){return this._programKey||(this._programKey=tgt(this.vertexDefines,this.fragmentDefines,this.getEnabledTextures())),this._programKey}});const as=rgt;var NS=1e-6,Wa=Array,_p=Math.random,mr={};mr.create=function(){var e=new Wa(2);return e[0]=0,e[1]=0,e};mr.clone=function(e){var t=new Wa(2);return t[0]=e[0],t[1]=e[1],t};mr.fromValues=function(e,t){var r=new Wa(2);return r[0]=e,r[1]=t,r};mr.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e};mr.set=function(e,t,r){return e[0]=t,e[1]=r,e};mr.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e};mr.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e};mr.sub=mr.subtract;mr.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e};mr.mul=mr.multiply;mr.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e};mr.div=mr.divide;mr.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e};mr.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e};mr.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e};mr.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e};mr.distance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)};mr.dist=mr.distance;mr.squaredDistance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n};mr.sqrDist=mr.squaredDistance;mr.length=function(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)};mr.len=mr.length;mr.squaredLength=function(e){var t=e[0],r=e[1];return t*t+r*r};mr.sqrLen=mr.squaredLength;mr.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e};mr.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e};mr.normalize=function(e,t){var r=t[0],n=t[1],a=r*r+n*n;return a>0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a),e};mr.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]};mr.cross=function(e,t,r){var n=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=n,e};mr.lerp=function(e,t,r,n){var a=t[0],i=t[1];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e};mr.random=function(e,t){t=t||1;var r=GLMAT_RANDOM()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e};mr.transformMat2=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a,e[1]=r[1]*n+r[3]*a,e};mr.transformMat2d=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e};mr.transformMat3=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[3]*a+r[6],e[1]=r[1]*n+r[4]*a+r[7],e};mr.transformMat4=function(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[4]*a+r[12],e[1]=r[1]*n+r[5]*a+r[13],e};mr.forEach=function(){var e=mr.create();return function(t,r,n,a,i,o){var s,l;for(r||(r=2),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s<l;s+=r)e[0]=t[s],e[1]=t[s+1],i(e,e,o),t[s]=e[0],t[s+1]=e[1];return t}}();const jt=mr;var Dr=function(e,t){e=e||0,t=t||0,this.array=jt.fromValues(e,t),this._dirty=!0};Dr.prototype={constructor:Dr,add:function(e){return jt.add(this.array,this.array,e.array),this._dirty=!0,this},set:function(e,t){return this.array[0]=e,this.array[1]=t,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this._dirty=!0,this},clone:function(){return new Dr(this.x,this.y)},copy:function(e){return jt.copy(this.array,e.array),this._dirty=!0,this},cross:function(e,t){return jt.cross(e.array,this.array,t.array),e._dirty=!0,this},dist:function(e){return jt.dist(this.array,e.array)},distance:function(e){return jt.distance(this.array,e.array)},div:function(e){return jt.div(this.array,this.array,e.array),this._dirty=!0,this},divide:function(e){return jt.divide(this.array,this.array,e.array),this._dirty=!0,this},dot:function(e){return jt.dot(this.array,e.array)},len:function(){return jt.len(this.array)},length:function(){return jt.length(this.array)},lerp:function(e,t,r){return jt.lerp(this.array,e.array,t.array,r),this._dirty=!0,this},min:function(e){return jt.min(this.array,this.array,e.array),this._dirty=!0,this},max:function(e){return jt.max(this.array,this.array,e.array),this._dirty=!0,this},mul:function(e){return jt.mul(this.array,this.array,e.array),this._dirty=!0,this},multiply:function(e){return jt.multiply(this.array,this.array,e.array),this._dirty=!0,this},negate:function(){return jt.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return jt.normalize(this.array,this.array),this._dirty=!0,this},random:function(e){return jt.random(this.array,e),this._dirty=!0,this},scale:function(e){return jt.scale(this.array,this.array,e),this._dirty=!0,this},scaleAndAdd:function(e,t){return jt.scaleAndAdd(this.array,this.array,e.array,t),this._dirty=!0,this},sqrDist:function(e){return jt.sqrDist(this.array,e.array)},squaredDistance:function(e){return jt.squaredDistance(this.array,e.array)},sqrLen:function(){return jt.sqrLen(this.array)},squaredLength:function(){return jt.squaredLength(this.array)},sub:function(e){return jt.sub(this.array,this.array,e.array),this._dirty=!0,this},subtract:function(e){return jt.subtract(this.array,this.array,e.array),this._dirty=!0,this},transformMat2:function(e){return jt.transformMat2(this.array,this.array,e.array),this._dirty=!0,this},transformMat2d:function(e){return jt.transformMat2d(this.array,this.array,e.array),this._dirty=!0,this},transformMat3:function(e){return jt.transformMat3(this.array,this.array,e.array),this._dirty=!0,this},transformMat4:function(e){return jt.transformMat4(this.array,this.array,e.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};if(Object.defineProperty){var x$=Dr.prototype;Object.defineProperty(x$,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),Object.defineProperty(x$,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}})}Dr.add=function(e,t,r){return jt.add(e.array,t.array,r.array),e._dirty=!0,e};Dr.set=function(e,t,r){return jt.set(e.array,t,r),e._dirty=!0,e};Dr.copy=function(e,t){return jt.copy(e.array,t.array),e._dirty=!0,e};Dr.cross=function(e,t,r){return jt.cross(e.array,t.array,r.array),e._dirty=!0,e};Dr.dist=function(e,t){return jt.distance(e.array,t.array)};Dr.distance=Dr.dist;Dr.div=function(e,t,r){return jt.divide(e.array,t.array,r.array),e._dirty=!0,e};Dr.divide=Dr.div;Dr.dot=function(e,t){return jt.dot(e.array,t.array)};Dr.len=function(e){return jt.length(e.array)};Dr.lerp=function(e,t,r,n){return jt.lerp(e.array,t.array,r.array,n),e._dirty=!0,e};Dr.min=function(e,t,r){return jt.min(e.array,t.array,r.array),e._dirty=!0,e};Dr.max=function(e,t,r){return jt.max(e.array,t.array,r.array),e._dirty=!0,e};Dr.mul=function(e,t,r){return jt.multiply(e.array,t.array,r.array),e._dirty=!0,e};Dr.multiply=Dr.mul;Dr.negate=function(e,t){return jt.negate(e.array,t.array),e._dirty=!0,e};Dr.normalize=function(e,t){return jt.normalize(e.array,t.array),e._dirty=!0,e};Dr.random=function(e,t){return jt.random(e.array,t),e._dirty=!0,e};Dr.scale=function(e,t,r){return jt.scale(e.array,t.array,r),e._dirty=!0,e};Dr.scaleAndAdd=function(e,t,r,n){return jt.scaleAndAdd(e.array,t.array,r.array,n),e._dirty=!0,e};Dr.sqrDist=function(e,t){return jt.sqrDist(e.array,t.array)};Dr.squaredDistance=Dr.sqrDist;Dr.sqrLen=function(e){return jt.sqrLen(e.array)};Dr.squaredLength=Dr.sqrLen;Dr.sub=function(e,t,r){return jt.subtract(e.array,t.array,r.array),e._dirty=!0,e};Dr.subtract=Dr.sub;Dr.transformMat2=function(e,t,r){return jt.transformMat2(e.array,t.array,r.array),e._dirty=!0,e};Dr.transformMat2d=function(e,t,r){return jt.transformMat2d(e.array,t.array,r.array),e._dirty=!0,e};Dr.transformMat3=function(e,t,r){return jt.transformMat3(e.array,t.array,r.array),e._dirty=!0,e};Dr.transformMat4=function(e,t,r){return jt.transformMat4(e.array,t.array,r.array),e._dirty=!0,e};const mo=Dr;var A$=1,T$=2,sD=3,C$={};function ngt(e){for(var t=e.split(`
|
||
`),r=0,n=t.length;r<n;r++)t[r]=r+1+": "+t[r];return t.join(`
|
||
`)}function E$(e,t,r){if(!e.getShaderParameter(t,e.COMPILE_STATUS))return[e.getShaderInfoLog(t),ngt(r)].join(`
|
||
`)}var M$=new aa.Float32Array(16),agt=zi.extend({uniformSemantics:{},attributes:{}},function(){this._locations={},this._textureSlot=0,this._program=null},{bind:function(e){this._textureSlot=0,e.gl.useProgram(this._program)},hasUniform:function(e){var t=this._locations[e];return t!=null},useTextureSlot:function(e,t,r){t&&(e.gl.activeTexture(e.gl.TEXTURE0+r),t.isRenderable()?t.bind(e):t.unbind(e))},currentTextureSlot:function(){return this._textureSlot},resetTextureSlot:function(e){this._textureSlot=e||0},takeCurrentTextureSlot:function(e,t){var r=this._textureSlot;return this.useTextureSlot(e,t,r),this._textureSlot++,r},setUniform:function(e,t,r,n){var a=this._locations,i=a[r];if(i==null)return!1;switch(t){case"m4":if(!(n instanceof Float32Array)){for(var o=0;o<n.length;o++)M$[o]=n[o];n=M$}e.uniformMatrix4fv(i,!1,n);break;case"2i":e.uniform2i(i,n[0],n[1]);break;case"2f":e.uniform2f(i,n[0],n[1]);break;case"3i":e.uniform3i(i,n[0],n[1],n[2]);break;case"3f":e.uniform3f(i,n[0],n[1],n[2]);break;case"4i":e.uniform4i(i,n[0],n[1],n[2],n[3]);break;case"4f":e.uniform4f(i,n[0],n[1],n[2],n[3]);break;case"1i":e.uniform1i(i,n);break;case"1f":e.uniform1f(i,n);break;case"1fv":e.uniform1fv(i,n);break;case"1iv":e.uniform1iv(i,n);break;case"2iv":e.uniform2iv(i,n);break;case"2fv":e.uniform2fv(i,n);break;case"3iv":e.uniform3iv(i,n);break;case"3fv":e.uniform3fv(i,n);break;case"4iv":e.uniform4iv(i,n);break;case"4fv":e.uniform4fv(i,n);break;case"m2":case"m2v":e.uniformMatrix2fv(i,!1,n);break;case"m3":case"m3v":e.uniformMatrix3fv(i,!1,n);break;case"m4v":if(Array.isArray(n)&&Array.isArray(n[0])){for(var s=new aa.Float32Array(n.length*16),l=0,o=0;o<n.length;o++)for(var u=n[o],c=0;c<16;c++)s[l++]=u[c];e.uniformMatrix4fv(i,!1,s)}else e.uniformMatrix4fv(i,!1,n);break}return!0},setUniformOfSemantic:function(e,t,r){var n=this.uniformSemantics[t];return n?this.setUniform(e,n.type,n.symbol,r):!1},enableAttributes:function(e,t,r){var n=e.gl,a=this._program,i=this._locations,o;r?o=r.__enabledAttributeList:o=C$[e.__uid__],o||(r?o=r.__enabledAttributeList=[]:o=C$[e.__uid__]=[]);for(var s=[],l=0;l<t.length;l++){var u=t[l];if(!this.attributes[u]){s[l]=-1;continue}var c=i[u];if(c==null){if(c=n.getAttribLocation(a,u),c===-1){s[l]=-1;continue}i[u]=c}s[l]=c,o[c]?o[c]=T$:o[c]=A$}for(var l=0;l<o.length;l++)switch(o[l]){case A$:n.enableVertexAttribArray(l),o[l]=sD;break;case T$:o[l]=sD;break;case sD:n.disableVertexAttribArray(l),o[l]=0;break}return s},getAttribLocation:function(e,t){var r=this._locations,n=r[t];return n==null&&(n=e.getAttribLocation(this._program,t),r[t]=n),n},buildProgram:function(e,t,r,n){var a=e.createShader(e.VERTEX_SHADER),i=e.createProgram();e.shaderSource(a,r),e.compileShader(a);var o=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(o,n),e.compileShader(o);var s=E$(e,a,r);if(s||(s=E$(e,o,n),s))return s;if(e.attachShader(i,a),e.attachShader(i,o),t.attributeSemantics.POSITION)e.bindAttribLocation(i,0,t.attributeSemantics.POSITION.symbol);else{var l=Object.keys(this.attributes);e.bindAttribLocation(i,0,l[0])}if(e.linkProgram(i),e.deleteShader(a),e.deleteShader(o),this._program=i,this.vertexCode=r,this.fragmentCode=n,!e.getProgramParameter(i,e.LINK_STATUS))return`Could not link program
|
||
`+e.getProgramInfoLog(i);for(var u=0;u<t.uniforms.length;u++){var c=t.uniforms[u];this._locations[c]=e.getUniformLocation(i,c)}}});const igt=agt;var ogt=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function D$(e,t,r){function n(o,s,l,u){var c="";isNaN(s)&&(s in t?s=t[s]:s=a[s]),isNaN(l)&&(l in t?l=t[l]:l=a[l]);for(var f=parseInt(s);f<parseInt(l);f++)c+="{"+u.replace(/float\s*\(\s*_idx_\s*\)/g,f.toFixed(1)).replace(/_idx_/g,f)+"}";return c}var a={};for(var i in r)a[i+"_COUNT"]=r[i];return e.replace(ogt,n)}function lD(e,t,r){var n=[];if(t)for(var a in t){var i=t[a];i>0&&n.push("#define "+a.toUpperCase()+"_COUNT "+i)}if(r)for(var o=0;o<r.length;o++){var s=r[o];n.push("#define "+s.toUpperCase()+"_ENABLED")}for(var s in e){var l=e[s];l===null?n.push("#define "+s):n.push("#define "+s+" "+l.toString())}return n.join(`
|
||
`)}function sgt(e){for(var t=[],r=0;r<e.length;r++)t.push("#extension GL_"+e[r]+" : enable");return t.join(`
|
||
`)}function lgt(e){return["precision",e,"float"].join(" ")+`;
|
||
`+["precision",e,"int"].join(" ")+`;
|
||
`+["precision",e,"sampler2D"].join(" ")+`;
|
||
`}function Hae(e){this._renderer=e,this._cache={}}Hae.prototype.getProgram=function(e,t,r){var n=this._cache,a=e.isSkinnedMesh&&e.isSkinnedMesh(),i=e.isInstancedMesh&&e.isInstancedMesh(),o="s"+t.shader.shaderID+"m"+t.getProgramKey();r&&(o+="se"+r.getProgramKey(e.lightGroup)),a&&(o+=",sk"+e.joints.length),i&&(o+=",is");var w=n[o];if(w)return w;var s=r?r.getLightsNumbers(e.lightGroup):{},l=this._renderer,u=l.gl,c=t.getEnabledTextures(),f="";if(a){var d={SKINNING:null,JOINT_COUNT:e.joints.length};e.joints.length>l.getMaxJointNumber()&&(d.USE_SKIN_MATRICES_TEXTURE=null),f+=`
|
||
`+lD(d)+`
|
||
`}i&&(f+=`
|
||
#define INSTANCING
|
||
`);var h=f+lD(t.vertexDefines,s,c),v=f+lD(t.fragmentDefines,s,c),p=h+`
|
||
`+t.shader.vertex,g=["OES_standard_derivatives","EXT_shader_texture_lod"].filter(function(S){return l.getGLExtension(S)!=null});g.indexOf("EXT_shader_texture_lod")>=0&&(v+=`
|
||
#define SUPPORT_TEXTURE_LOD`),g.indexOf("OES_standard_derivatives")>=0&&(v+=`
|
||
#define SUPPORT_STANDARD_DERIVATIVES`);var m=sgt(g)+`
|
||
`+lgt(t.precision)+`
|
||
`+v+`
|
||
`+t.shader.fragment,y=D$(p,t.vertexDefines,s),_=D$(m,t.fragmentDefines,s),w=new igt;w.uniformSemantics=t.shader.uniformSemantics,w.attributes=t.shader.attributes;var x=w.buildProgram(u,t.shader,y,_);return w.__error=x,n[o]=w,w};var P$=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,ugt=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,L$=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,cgt={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function uu(e){for(var t=[],r=0;r<e;r++)t[r]=0;return t}var I$={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return uu(2)},vec3:function(){return uu(3)},vec4:function(){return uu(4)},ivec2:function(){return uu(2)},ivec3:function(){return uu(3)},ivec4:function(){return uu(4)},mat2:function(){return uu(4)},mat3:function(){return uu(9)},mat4:function(){return uu(16)},array:function(){return[]}},JI=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],Gae=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],Uae=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],fgt={vec4:4,vec3:3,vec2:2,float:1},uD={},$ae={};function dgt(e,t){var r="vertex:"+e+"fragment:"+t;if(uD[r])return uD[r];var n=za.genGUID();return uD[r]=n,$ae[n]={vertex:e,fragment:t},n}function R$(e){return e.replace(/[ \t]*\/\/.*\n/g,"").replace(/[ \t]*\/\*[\s\S]*?\*\//g,"")}function Wv(){console.error("Wrong uniform/attributes syntax")}function O$(e,t){for(var r=/[,=\(\):]/,n=t.replace(/:\s*\[\s*(.*)\s*\]/g,"="+e+"($1)").replace(/\s+/g,"").split(/(?=[,=\(\):])/g),a=[],i=0;i<n.length;i++)n[i].match(r)?a.push(n[i].charAt(0),n[i].slice(1)):a.push(n[i]);n=a;var o=0,s=1,l=2,u=3,c=4,f=5,d=o,h={},v=null,p;g(n[0]);function g(_){_||Wv();var w=_.match(/\[(.*?)\]/);p=_.replace(/\[(.*?)\]/,""),h[p]={},w&&(h[p].isArray=!0,h[p].arraySize=w[1])}for(var i=1;i<n.length;i++){var m=n[i];if(m){if(m==="="){if(d!==o&&d!==u){Wv();break}d=s;continue}else if(m===":"){d=c;continue}else if(m===","){if(d===l){if(!(v instanceof Array)){Wv();break}v.push(+n[++i])}else d=f;continue}else if(m===")"){h[p].value=new aa.Float32Array(v),v=null,d=f;continue}else if(m==="("){if(d!==l){Wv();break}if(!(v instanceof Array)){Wv();break}v.push(+n[++i]);continue}else if(m.indexOf("vec")>=0){if(d!==s&&d!==c){Wv();break}d=l,v=[];continue}else if(d===s){e==="bool"?h[p].value=m==="true":h[p].value=parseFloat(m),v=null;continue}else if(d===c){var y=m;JI.indexOf(y)>=0||Gae.indexOf(y)>=0||Uae.indexOf(y)>=0?h[p].semantic=y:y==="ignore"||y==="unconfigurable"?h[p].ignore=!0:e==="bool"?h[p].value=y==="true":h[p].value=parseFloat(y);continue}g(m),d=o}}return h}function nt(e,t){typeof e=="object"&&(t=e.fragment,e=e.vertex),e=R$(e),t=R$(t),this._shaderID=dgt(e,t),this._vertexCode=nt.parseImport(e),this._fragmentCode=nt.parseImport(t),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}nt.prototype={constructor:nt,createUniforms:function(){var e={};for(var t in this.uniformTemplates){var r=this.uniformTemplates[t];e[t]={type:r.type,value:r.value()}}return e},_parseImport:function(){this._vertexCode=nt.parseImport(this.vertex),this._fragmentCode=nt.parseImport(this.fragment)},_addSemanticUniform:function(e,t,r){if(JI.indexOf(r)>=0)this.attributeSemantics[r]={symbol:e,type:t};else if(Uae.indexOf(r)>=0){var n=!1,a=r;r.match(/TRANSPOSE$/)&&(n=!0,a=r.slice(0,-9)),this.matrixSemantics[r]={symbol:e,type:t,isTranspose:n,semanticNoTranspose:a}}else Gae.indexOf(r)>=0&&(this.uniformSemantics[r]={symbol:e,type:t})},_addMaterialUniform:function(e,t,r,n,a,i){i[e]={type:r,value:a?I$.array:n||I$[t],semantic:null}},_parseUniforms:function(){var e={},t=this,r="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(P$,a),r="fragment",this._fragmentCode=this._fragmentCode.replace(P$,a),t.matrixSemanticKeys=Object.keys(this.matrixSemantics);function n(i){return i!=null?function(){return i}:null}function a(i,o,s){var l=O$(o,s),u=[];for(var c in l){var f=l[c],d=f.semantic,h=c,v=cgt[o],p=n(l[c].value);l[c].isArray&&(h+="["+l[c].arraySize+"]",v+="v"),u.push(h),t._uniformList.push(c),f.ignore||((o==="sampler2D"||o==="samplerCube")&&(t.textures[c]={shaderType:r,type:o}),d?t._addSemanticUniform(c,v,d):t._addMaterialUniform(c,o,v,p,l[c].isArray,e))}return u.length>0?"uniform "+o+" "+u.join(",")+`;
|
||
`:""}this.uniformTemplates=e},_parseAttributes:function(){var e={},t=this;this._vertexCode=this._vertexCode.replace(ugt,r);function r(n,a,i){var o=O$(a,i),s=fgt[a]||1,l=[];for(var u in o){var c=o[u].semantic;if(e[u]={type:"float",size:s,semantic:c||null},c){if(JI.indexOf(c)<0)throw new Error('Unkown semantic "'+c+'"');t.attributeSemantics[c]={symbol:u,type:a}}l.push(u)}return"attribute "+a+" "+l.join(",")+`;
|
||
`}this.attributes=e},_parseDefines:function(){var e=this,t="vertex";this._vertexCode=this._vertexCode.replace(L$,r),t="fragment",this._fragmentCode=this._fragmentCode.replace(L$,r);function r(n,a,i){var o=t==="vertex"?e.vertexDefines:e.fragmentDefines;return o[a]||(i==="false"?o[a]=!1:i==="true"?o[a]=!0:o[a]=i?isNaN(parseFloat(i))?i.trim():parseFloat(i):null),""}},clone:function(){var e=$ae[this._shaderID],t=new nt(e.vertex,e.fragment);return t}};Object.defineProperty&&(Object.defineProperty(nt.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(nt.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(nt.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(nt.prototype,"uniforms",{get:function(){return this._uniformList}}));var hgt=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;nt.parseImport=function(e){return e=e.replace(hgt,function(a,r,n){var a=nt.source(n);return a?nt.parseImport(a):(console.error('Shader chunk "'+n+'" not existed in library'),"")}),e};var vgt=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;nt.import=function(e){e.replace(vgt,function(t,r,n,i){var i=i.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(i){for(var o=n.split("."),s=nt.codes,l=0,u;l<o.length-1;)u=o[l++],s[u]||(s[u]={}),s=s[u];u=o[l],s[u]=i}return i})};nt.codes={};nt.source=function(e){for(var t=e.split("."),r=nt.codes,n=0;r&&n<t.length;){var a=t[n++];r=r[a]}return typeof r!="string"?(console.error('Shader "'+e+'" not existed in library'),""):r};const Wae=`@export clay.prez.vertex
|
||
uniform mat4 WVP : WORLDVIEWPROJECTION;
|
||
attribute vec3 pos : POSITION;
|
||
attribute vec2 uv : TEXCOORD_0;
|
||
uniform vec2 uvRepeat : [1.0, 1.0];
|
||
uniform vec2 uvOffset : [0.0, 0.0];
|
||
@import clay.chunk.skinning_header
|
||
@import clay.chunk.instancing_header
|
||
varying vec2 v_Texcoord;
|
||
void main()
|
||
{
|
||
vec4 P = vec4(pos, 1.0);
|
||
#ifdef SKINNING
|
||
@import clay.chunk.skin_matrix
|
||
P = skinMatrixWS * P;
|
||
#endif
|
||
#ifdef INSTANCING
|
||
@import clay.chunk.instancing_matrix
|
||
P = instanceMat * P;
|
||
#endif
|
||
gl_Position = WVP * P;
|
||
v_Texcoord = uv * uvRepeat + uvOffset;
|
||
}
|
||
@end
|
||
@export clay.prez.fragment
|
||
uniform sampler2D alphaMap;
|
||
uniform float alphaCutoff: 0.0;
|
||
varying vec2 v_Texcoord;
|
||
void main()
|
||
{
|
||
if (alphaCutoff > 0.0) {
|
||
if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {
|
||
discard;
|
||
}
|
||
}
|
||
gl_FragColor = vec4(0.0,0.0,0.0,1.0);
|
||
}
|
||
@end`;var vn={};vn.create=function(){var e=new Wa(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};vn.clone=function(e){var t=new Wa(16);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};vn.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[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};vn.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};vn.transpose=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[3],i=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=i,e[11]=t[14],e[12]=a,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e};vn.invert=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],v=t[12],p=t[13],g=t[14],m=t[15],y=r*s-n*o,_=r*l-a*o,w=r*u-i*o,x=n*l-a*s,S=n*u-i*s,T=a*u-i*l,A=c*p-f*v,C=c*g-d*v,M=c*m-h*v,E=f*g-d*p,D=f*m-h*p,P=d*m-h*g,L=y*P-_*D+w*E+x*M-S*C+T*A;return L?(L=1/L,e[0]=(s*P-l*D+u*E)*L,e[1]=(a*D-n*P-i*E)*L,e[2]=(p*T-g*S+m*x)*L,e[3]=(d*S-f*T-h*x)*L,e[4]=(l*M-o*P-u*C)*L,e[5]=(r*P-a*M+i*C)*L,e[6]=(g*w-v*T-m*_)*L,e[7]=(c*T-d*w+h*_)*L,e[8]=(o*D-s*M+u*A)*L,e[9]=(n*M-r*D-i*A)*L,e[10]=(v*S-p*w+m*y)*L,e[11]=(f*w-c*S-h*y)*L,e[12]=(s*C-o*E-l*A)*L,e[13]=(r*E-n*C+a*A)*L,e[14]=(p*_-v*x-g*y)*L,e[15]=(c*x-f*_+d*y)*L,e):null};vn.adjoint=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],v=t[12],p=t[13],g=t[14],m=t[15];return e[0]=s*(d*m-h*g)-f*(l*m-u*g)+p*(l*h-u*d),e[1]=-(n*(d*m-h*g)-f*(a*m-i*g)+p*(a*h-i*d)),e[2]=n*(l*m-u*g)-s*(a*m-i*g)+p*(a*u-i*l),e[3]=-(n*(l*h-u*d)-s*(a*h-i*d)+f*(a*u-i*l)),e[4]=-(o*(d*m-h*g)-c*(l*m-u*g)+v*(l*h-u*d)),e[5]=r*(d*m-h*g)-c*(a*m-i*g)+v*(a*h-i*d),e[6]=-(r*(l*m-u*g)-o*(a*m-i*g)+v*(a*u-i*l)),e[7]=r*(l*h-u*d)-o*(a*h-i*d)+c*(a*u-i*l),e[8]=o*(f*m-h*p)-c*(s*m-u*p)+v*(s*h-u*f),e[9]=-(r*(f*m-h*p)-c*(n*m-i*p)+v*(n*h-i*f)),e[10]=r*(s*m-u*p)-o*(n*m-i*p)+v*(n*u-i*s),e[11]=-(r*(s*h-u*f)-o*(n*h-i*f)+c*(n*u-i*s)),e[12]=-(o*(f*g-d*p)-c*(s*g-l*p)+v*(s*d-l*f)),e[13]=r*(f*g-d*p)-c*(n*g-a*p)+v*(n*d-a*f),e[14]=-(r*(s*g-l*p)-o*(n*g-a*p)+v*(n*l-a*s)),e[15]=r*(s*d-l*f)-o*(n*d-a*f)+c*(n*l-a*s),e};vn.determinant=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],d=e[11],h=e[12],v=e[13],p=e[14],g=e[15],m=t*o-r*i,y=t*s-n*i,_=t*l-a*i,w=r*s-n*o,x=r*l-a*o,S=n*l-a*s,T=u*v-c*h,A=u*p-f*h,C=u*g-d*h,M=c*p-f*v,E=c*g-d*v,D=f*g-d*p;return m*D-y*E+_*M+w*C-x*A+S*T};vn.multiply=function(e,t,r){var n=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=t[9],h=t[10],v=t[11],p=t[12],g=t[13],m=t[14],y=t[15],_=r[0],w=r[1],x=r[2],S=r[3];return e[0]=_*n+w*s+x*f+S*p,e[1]=_*a+w*l+x*d+S*g,e[2]=_*i+w*u+x*h+S*m,e[3]=_*o+w*c+x*v+S*y,_=r[4],w=r[5],x=r[6],S=r[7],e[4]=_*n+w*s+x*f+S*p,e[5]=_*a+w*l+x*d+S*g,e[6]=_*i+w*u+x*h+S*m,e[7]=_*o+w*c+x*v+S*y,_=r[8],w=r[9],x=r[10],S=r[11],e[8]=_*n+w*s+x*f+S*p,e[9]=_*a+w*l+x*d+S*g,e[10]=_*i+w*u+x*h+S*m,e[11]=_*o+w*c+x*v+S*y,_=r[12],w=r[13],x=r[14],S=r[15],e[12]=_*n+w*s+x*f+S*p,e[13]=_*a+w*l+x*d+S*g,e[14]=_*i+w*u+x*h+S*m,e[15]=_*o+w*c+x*v+S*y,e};vn.multiplyAffine=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[4],s=t[5],l=t[6],u=t[8],c=t[9],f=t[10],d=t[12],h=t[13],v=t[14],p=r[0],g=r[1],m=r[2];return e[0]=p*n+g*o+m*u,e[1]=p*a+g*s+m*c,e[2]=p*i+g*l+m*f,p=r[4],g=r[5],m=r[6],e[4]=p*n+g*o+m*u,e[5]=p*a+g*s+m*c,e[6]=p*i+g*l+m*f,p=r[8],g=r[9],m=r[10],e[8]=p*n+g*o+m*u,e[9]=p*a+g*s+m*c,e[10]=p*i+g*l+m*f,p=r[12],g=r[13],m=r[14],e[12]=p*n+g*o+m*u+d,e[13]=p*a+g*s+m*c+h,e[14]=p*i+g*l+m*f+v,e};vn.mul=vn.multiply;vn.mulAffine=vn.multiplyAffine;vn.translate=function(e,t,r){var n=r[0],a=r[1],i=r[2],o,s,l,u,c,f,d,h,v,p,g,m;return t===e?(e[12]=t[0]*n+t[4]*a+t[8]*i+t[12],e[13]=t[1]*n+t[5]*a+t[9]*i+t[13],e[14]=t[2]*n+t[6]*a+t[10]*i+t[14],e[15]=t[3]*n+t[7]*a+t[11]*i+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],d=t[6],h=t[7],v=t[8],p=t[9],g=t[10],m=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=d,e[7]=h,e[8]=v,e[9]=p,e[10]=g,e[11]=m,e[12]=o*n+c*a+v*i+t[12],e[13]=s*n+f*a+p*i+t[13],e[14]=l*n+d*a+g*i+t[14],e[15]=u*n+h*a+m*i+t[15]),e};vn.scale=function(e,t,r){var n=r[0],a=r[1],i=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e};vn.rotate=function(e,t,r,n){var a=n[0],i=n[1],o=n[2],s=Math.sqrt(a*a+i*i+o*o),l,u,c,f,d,h,v,p,g,m,y,_,w,x,S,T,A,C,M,E,D,P,L,I;return Math.abs(s)<NS?null:(s=1/s,a*=s,i*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],d=t[1],h=t[2],v=t[3],p=t[4],g=t[5],m=t[6],y=t[7],_=t[8],w=t[9],x=t[10],S=t[11],T=a*a*c+u,A=i*a*c+o*l,C=o*a*c-i*l,M=a*i*c-o*l,E=i*i*c+u,D=o*i*c+a*l,P=a*o*c+i*l,L=i*o*c-a*l,I=o*o*c+u,e[0]=f*T+p*A+_*C,e[1]=d*T+g*A+w*C,e[2]=h*T+m*A+x*C,e[3]=v*T+y*A+S*C,e[4]=f*M+p*E+_*D,e[5]=d*M+g*E+w*D,e[6]=h*M+m*E+x*D,e[7]=v*M+y*E+S*D,e[8]=f*P+p*L+_*I,e[9]=d*P+g*L+w*I,e[10]=h*P+m*L+x*I,e[11]=v*P+y*L+S*I,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)};vn.rotateX=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*a+u*n,e[5]=o*a+c*n,e[6]=s*a+f*n,e[7]=l*a+d*n,e[8]=u*a-i*n,e[9]=c*a-o*n,e[10]=f*a-s*n,e[11]=d*a-l*n,e};vn.rotateY=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*a-u*n,e[1]=o*a-c*n,e[2]=s*a-f*n,e[3]=l*a-d*n,e[8]=i*n+u*a,e[9]=o*n+c*a,e[10]=s*n+f*a,e[11]=l*n+d*a,e};vn.rotateZ=function(e,t,r){var n=Math.sin(r),a=Math.cos(r),i=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],d=t[7];return t!==e&&(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[0]=i*a+u*n,e[1]=o*a+c*n,e[2]=s*a+f*n,e[3]=l*a+d*n,e[4]=u*a-i*n,e[5]=c*a-o*n,e[6]=f*a-s*n,e[7]=d*a-l*n,e};vn.fromRotationTranslation=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=n+n,l=a+a,u=i+i,c=n*s,f=n*l,d=n*u,h=a*l,v=a*u,p=i*u,g=o*s,m=o*l,y=o*u;return e[0]=1-(h+p),e[1]=f+y,e[2]=d-m,e[3]=0,e[4]=f-y,e[5]=1-(c+p),e[6]=v+g,e[7]=0,e[8]=d+m,e[9]=v-g,e[10]=1-(c+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e};vn.fromQuat=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,s=n+n,l=a+a,u=r*o,c=n*o,f=n*s,d=a*o,h=a*s,v=a*l,p=i*o,g=i*s,m=i*l;return e[0]=1-f-v,e[1]=c+m,e[2]=d-g,e[3]=0,e[4]=c-m,e[5]=1-u-v,e[6]=h+p,e[7]=0,e[8]=d+g,e[9]=h-p,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e};vn.frustum=function(e,t,r,n,a,i,o){var s=1/(r-t),l=1/(a-n),u=1/(i-o);return e[0]=i*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(a+n)*l,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e};vn.perspective=function(e,t,r,n,a){var i=1/Math.tan(t/2),o=1/(n-a);return e[0]=i/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e};vn.ortho=function(e,t,r,n,a,i,o){var s=1/(t-r),l=1/(n-a),u=1/(i-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(a+n)*l,e[14]=(o+i)*u,e[15]=1,e};vn.lookAt=function(e,t,r,n){var a,i,o,s,l,u,c,f,d,h,v=t[0],p=t[1],g=t[2],m=n[0],y=n[1],_=n[2],w=r[0],x=r[1],S=r[2];return Math.abs(v-w)<NS&&Math.abs(p-x)<NS&&Math.abs(g-S)<NS?vn.identity(e):(c=v-w,f=p-x,d=g-S,h=1/Math.sqrt(c*c+f*f+d*d),c*=h,f*=h,d*=h,a=y*d-_*f,i=_*c-m*d,o=m*f-y*c,h=Math.sqrt(a*a+i*i+o*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.sqrt(s*s+l*l+u*u),h?(h=1/h,s*=h,l*=h,u*=h):(s=0,l=0,u=0),e[0]=a,e[1]=s,e[2]=c,e[3]=0,e[4]=i,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=d,e[11]=0,e[12]=-(a*v+i*p+o*g),e[13]=-(s*v+l*p+u*g),e[14]=-(c*v+f*p+d*g),e[15]=1,e)};vn.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2)+Math.pow(e[4],2)+Math.pow(e[5],2)+Math.pow(e[6],2)+Math.pow(e[7],2)+Math.pow(e[8],2)+Math.pow(e[9],2)+Math.pow(e[10],2)+Math.pow(e[11],2)+Math.pow(e[12],2)+Math.pow(e[13],2)+Math.pow(e[14],2)+Math.pow(e[15],2))};const ut=vn;var er={};er.create=function(){var e=new Wa(3);return e[0]=0,e[1]=0,e[2]=0,e};er.clone=function(e){var t=new Wa(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t};er.fromValues=function(e,t,r){var n=new Wa(3);return n[0]=e,n[1]=t,n[2]=r,n};er.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e};er.set=function(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e};er.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e};er.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e};er.sub=er.subtract;er.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e};er.mul=er.multiply;er.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e};er.div=er.divide;er.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e};er.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e};er.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e};er.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e};er.distance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(r*r+n*n+a*a)};er.dist=er.distance;er.squaredDistance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2];return r*r+n*n+a*a};er.sqrDist=er.squaredDistance;er.length=function(e){var t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)};er.len=er.length;er.squaredLength=function(e){var t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n};er.sqrLen=er.squaredLength;er.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e};er.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e};er.normalize=function(e,t){var r=t[0],n=t[1],a=t[2],i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e};er.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]};er.cross=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2];return e[0]=a*l-i*s,e[1]=i*o-n*l,e[2]=n*s-a*o,e};er.lerp=function(e,t,r,n){var a=t[0],i=t[1],o=t[2];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e[2]=o+n*(r[2]-o),e};er.random=function(e,t){t=t||1;var r=_p()*2*Math.PI,n=_p()*2-1,a=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(r)*a,e[1]=Math.sin(r)*a,e[2]=n*t,e};er.transformMat4=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[3]*n+r[7]*a+r[11]*i+r[15];return o=o||1,e[0]=(r[0]*n+r[4]*a+r[8]*i+r[12])/o,e[1]=(r[1]*n+r[5]*a+r[9]*i+r[13])/o,e[2]=(r[2]*n+r[6]*a+r[10]*i+r[14])/o,e};er.transformMat3=function(e,t,r){var n=t[0],a=t[1],i=t[2];return e[0]=n*r[0]+a*r[3]+i*r[6],e[1]=n*r[1]+a*r[4]+i*r[7],e[2]=n*r[2]+a*r[5]+i*r[8],e};er.transformQuat=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*i-l*a,f=u*a+l*n-o*i,d=u*i+o*a-s*n,h=-o*n-s*a-l*i;return e[0]=c*u+h*-o+f*-l-d*-s,e[1]=f*u+h*-s+d*-o-c*-l,e[2]=d*u+h*-l+c*-s-f*-o,e};er.rotateX=function(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e};er.rotateY=function(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e};er.rotateZ=function(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e};er.forEach=function(){var e=er.create();return function(t,r,n,a,i,o){var s,l;for(r||(r=3),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s<l;s+=r)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],i(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}}();er.angle=function(e,t){var r=er.fromValues(e[0],e[1],e[2]),n=er.fromValues(t[0],t[1],t[2]);er.normalize(r,r),er.normalize(n,n);var a=er.dot(r,n);return a>1?0:Math.acos(a)};const Ee=er;nt.import(Wae);var Cn=ut.create,k$={};function N$(e){return e.material}function pgt(e,t,r){return t.uniforms[r].value}function ggt(e,t,r,n){return r!==n}function mgt(e){return!0}function B$(){}var F$={float:$e.FLOAT,byte:$e.BYTE,ubyte:$e.UNSIGNED_BYTE,short:$e.SHORT,ushort:$e.UNSIGNED_SHORT};function ygt(e,t,r){this.availableAttributes=e,this.availableAttributeSymbols=t,this.indicesBuffer=r,this.vao=null}function _gt(e){var t,r;this.bind=function(n){t||(t=aa.createCanvas(),t.width=t.height=1,t.getContext("2d"));var a=n.gl,i=!r;i&&(r=a.createTexture()),a.bindTexture(a.TEXTURE_2D,r),i&&a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,t)},this.unbind=function(n){n.gl.bindTexture(n.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var Pf=zi.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:typeof window<"u"&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=aa.createCanvas());var e=this.canvas;try{var t={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),!this.gl)throw new Error;this._glinfo=new jpt(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(r){throw"Error creating WebGL Context "+r}this._programMgr=new Hae(this),this._placeholderTexture=new _gt},{resize:function(e,t){var r=this.canvas,n=this.devicePixelRatio;e!=null?(r.style&&(r.style.width=e+"px",r.style.height=t+"px"),r.width=e*n,r.height=t*n,this._width=e,this._height=t):(this._width=r.width/n,this._height=r.height/n),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var e=this.viewport;return e.width/e.height},setDevicePixelRatio:function(e){this.devicePixelRatio=e,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(e){return this._glinfo.getExtension(e)},getGLParameter:function(e){return this._glinfo.getParameter(e)},setViewport:function(e,t,r,n,a){if(typeof e=="object"){var i=e;e=i.x,t=i.y,r=i.width,n=i.height,a=i.devicePixelRatio}a=a||this.devicePixelRatio,this.gl.viewport(e*a,t*a,r*a,n*a),this.viewport={x:e,y:t,width:r,height:n,devicePixelRatio:a}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var e=this._clearStack.pop();this.clearColor=e.clearColor,this.clearBit=e.clearBit}},bindSceneRendering:function(e){this._sceneRendering=e},render:function(e,t,r,n){var a=this.gl,i=this.clearColor;if(this.clearBit){a.colorMask(!0,!0,!0,!0),a.depthMask(!0);var o=this.viewport,s=!1,l=o.devicePixelRatio;(o.width!==this._width||o.height!==this._height||l&&l!==this.devicePixelRatio||o.x||o.y)&&(s=!0,a.enable(a.SCISSOR_TEST),a.scissor(o.x*l,o.y*l,o.width*l,o.height*l)),a.clearColor(i[0],i[1],i[2],i[3]),a.clear(this.clearBit),s&&a.disable(a.SCISSOR_TEST)}if(r||e.update(!1),e.updateLights(),t=t||e.getMainCamera(),!t){console.error("Can't find camera in the scene.");return}t.update();var u=e.updateRenderList(t,!0);this._sceneRendering=e;var c=u.opaque,f=u.transparent,d=e.material;e.trigger("beforerender",this,e,t,u),n?(this.renderPreZ(c,e,t),a.depthFunc(a.LEQUAL)):a.depthFunc(a.LESS);for(var h=Cn(),v=Ee.create(),p=0;p<f.length;p++){var g=f[p];ut.multiplyAffine(h,t.viewMatrix.array,g.worldTransform.array),Ee.transformMat4(v,g.position.array,h),g.__depth=v[2]}this.renderPass(c,t,{getMaterial:function(m){return d||m.material},sortCompare:this.opaqueSortCompare}),this.renderPass(f,t,{getMaterial:function(m){return d||m.material},sortCompare:this.transparentSortCompare}),e.trigger("afterrender",this,e,t,u),this._sceneRendering=null},getProgram:function(e,t,r){return t=t||e.material,this._programMgr.getProgram(e,t,r)},validateProgram:function(e){if(e.__error){var t=e.__error;if(k$[e.__uid__])return;if(k$[e.__uid__]=!0,this.throwError)throw new Error(t);this.trigger("error",t)}},updatePrograms:function(e,t,r){var n=r&&r.getMaterial||N$;t=t||null;for(var a=0;a<e.length;a++){var i=e[a],o=n.call(this,i);if(a>0){var s=e[a-1],l=s.joints?s.joints.length:0,u=i.joints?i.joints.length:0;if(u===l&&i.material===s.material&&i.lightGroup===s.lightGroup){i.__program=s.__program;continue}}var c=this._programMgr.getProgram(i,o,t);this.validateProgram(c),i.__program=c}},renderPass:function(e,t,r){this.trigger("beforerenderpass",this,e,t,r),r=r||{},r.getMaterial=r.getMaterial||N$,r.getUniform=r.getUniform||pgt,r.isMaterialChanged=r.isMaterialChanged||ggt,r.beforeRender=r.beforeRender||B$,r.afterRender=r.afterRender||B$;var n=r.ifRender||mgt;this.updatePrograms(e,this._sceneRendering,r),r.sortCompare&&e.sort(r.sortCompare);var a=this.viewport,i=a.devicePixelRatio,o=[a.x*i,a.y*i,a.width*i,a.height*i],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],u=[o[2],o[3]],c=Date.now();t?(ut.copy(Tn.VIEW,t.viewMatrix.array),ut.copy(Tn.PROJECTION,t.projectionMatrix.array),ut.copy(Tn.VIEWINVERSE,t.worldTransform.array)):(ut.identity(Tn.VIEW),ut.identity(Tn.PROJECTION),ut.identity(Tn.VIEWINVERSE)),ut.multiply(Tn.VIEWPROJECTION,Tn.PROJECTION,Tn.VIEW),ut.invert(Tn.PROJECTIONINVERSE,Tn.PROJECTION),ut.invert(Tn.VIEWPROJECTIONINVERSE,Tn.VIEWPROJECTION);for(var f=this.gl,d=this._sceneRendering,h,v,p,g,m,y,_,w,x,S,T,A,C=null,M=0;M<e.length;M++){var E=e[M],D=E.worldTransform!=null,P;if(n(E)){D&&(P=E.isSkinnedMesh&&E.isSkinnedMesh()?E.offsetMatrix?E.offsetMatrix.array:Tn.IDENTITY:E.worldTransform.array);var L=E.geometry,I=r.getMaterial.call(this,E),O=E.__program,R=I.shader,B=L.__uid__+"-"+O.__uid__,k=B!==S;S=B,k&&C&&C.bindVertexArrayOES(null),D&&(ut.copy(Tn.WORLD,P),ut.multiply(Tn.WORLDVIEWPROJECTION,Tn.VIEWPROJECTION,P),ut.multiplyAffine(Tn.WORLDVIEW,Tn.VIEW,P),(R.matrixSemantics.WORLDINVERSE||R.matrixSemantics.WORLDINVERSETRANSPOSE)&&ut.invert(Tn.WORLDINVERSE,P),(R.matrixSemantics.WORLDVIEWINVERSE||R.matrixSemantics.WORLDVIEWINVERSETRANSPOSE)&&ut.invert(Tn.WORLDVIEWINVERSE,Tn.WORLDVIEW),(R.matrixSemantics.WORLDVIEWPROJECTIONINVERSE||R.matrixSemantics.WORLDVIEWPROJECTIONINVERSETRANSPOSE)&&ut.invert(Tn.WORLDVIEWPROJECTIONINVERSE,Tn.WORLDVIEWPROJECTION)),E.beforeRender&&E.beforeRender(this),r.beforeRender.call(this,E,I,h);var z=O!==v;z?(O.bind(this),O.setUniformOfSemantic(f,"VIEWPORT",o),O.setUniformOfSemantic(f,"WINDOW_SIZE",l),t&&(O.setUniformOfSemantic(f,"NEAR",t.near),O.setUniformOfSemantic(f,"FAR",t.far)),O.setUniformOfSemantic(f,"DEVICEPIXELRATIO",i),O.setUniformOfSemantic(f,"TIME",c),O.setUniformOfSemantic(f,"VIEWPORT_SIZE",u),d&&d.setLightUniforms(O,E.lightGroup,this)):O=v,(z||r.isMaterialChanged(E,p,I,h))&&(I.depthTest!==g&&(I.depthTest?f.enable(f.DEPTH_TEST):f.disable(f.DEPTH_TEST),g=I.depthTest),I.depthMask!==m&&(f.depthMask(I.depthMask),m=I.depthMask),I.transparent!==x&&(I.transparent?f.enable(f.BLEND):f.disable(f.BLEND),x=I.transparent),I.transparent&&(I.blend?I.blend(f):(f.blendEquationSeparate(f.FUNC_ADD,f.FUNC_ADD),f.blendFuncSeparate(f.SRC_ALPHA,f.ONE_MINUS_SRC_ALPHA,f.ONE,f.ONE_MINUS_SRC_ALPHA))),A=this._bindMaterial(E,I,O,p||null,h||null,v||null,r.getUniform),h=I);var $=R.matrixSemanticKeys;if(D)for(var j=0;j<$.length;j++){var X=$[j],Q=R.matrixSemantics[X],se=Tn[X];if(Q.isTranspose){var ee=Tn[Q.semanticNoTranspose];ut.transpose(se,ee)}O.setUniform(f,Q.type,Q.symbol,se)}E.cullFace!==_&&(_=E.cullFace,f.cullFace(_)),E.frontFace!==w&&(w=E.frontFace,f.frontFace(w)),E.culling!==y&&(y=E.culling,y?f.enable(f.CULL_FACE):f.disable(f.CULL_FACE)),this._updateSkeleton(E,O,A),k&&(T=this._bindVAO(C,R,L,O)),this._renderObject(E,T,O),r.afterRender(this,E),E.afterRender&&E.afterRender(this),v=O,p=E}}this.trigger("afterrenderpass",this,e,t,r)},getMaxJointNumber:function(){return this.maxJointNumber},_updateSkeleton:function(e,t,r){var n=this.gl,a=e.skeleton;if(a)if(a.update(),e.joints.length>this.getMaxJointNumber()){var i=a.getSubSkinMatricesTexture(e.__uid__,e.joints);t.useTextureSlot(this,i,r),t.setUniform(n,"1i","skinMatricesTexture",r),t.setUniform(n,"1f","skinMatricesTextureSize",i.width)}else{var o=a.getSubSkinMatrices(e.__uid__,e.joints);t.setUniformOfSemantic(n,"SKIN_MATRIX",o)}},_renderObject:function(e,t,r){var n=this.gl,a=e.geometry,i=e.mode;i==null&&(i=4);var o=null,s=e.isInstancedMesh&&e.isInstancedMesh();if(s&&(o=this.getGLExtension("ANGLE_instanced_arrays"),!o)){console.warn("Device not support ANGLE_instanced_arrays extension");return}var l;if(s&&(l=this._bindInstancedAttributes(e,r,o)),t.indicesBuffer){var u=this.getGLExtension("OES_element_index_uint"),c=u&&a.indices instanceof Uint32Array,f=c?n.UNSIGNED_INT:n.UNSIGNED_SHORT;s?o.drawElementsInstancedANGLE(i,t.indicesBuffer.count,f,0,e.getInstanceCount()):n.drawElements(i,t.indicesBuffer.count,f,0)}else s?o.drawArraysInstancedANGLE(i,0,a.vertexCount,e.getInstanceCount()):n.drawArrays(i,0,a.vertexCount);if(s)for(var d=0;d<l.length;d++)n.disableVertexAttribArray(l[d])},_bindInstancedAttributes:function(e,t,r){for(var n=this.gl,a=e.getInstancedAttributesBuffers(this),i=[],o=0;o<a.length;o++){var s=a[o],l=t.getAttribLocation(n,s.symbol);if(!(l<0)){var u=F$[s.type]||n.FLOAT;n.enableVertexAttribArray(l),n.bindBuffer(n.ARRAY_BUFFER,s.buffer),n.vertexAttribPointer(l,s.size,u,!1,0,0),r.vertexAttribDivisorANGLE(l,s.divisor),i.push(l)}}return i},_bindMaterial:function(e,t,r,n,a,i,o){for(var s=this.gl,l=i===r,u=r.currentTextureSlot(),c=t.getEnabledUniforms(),f=t.getTextureUniforms(),d=this._placeholderTexture,h=0;h<f.length;h++){var v=f[h],p=o(e,t,v),g=t.uniforms[v].type;if(g==="t"&&p)p.__slot=-1;else if(g==="tv")for(var m=0;m<p.length;m++)p[m]&&(p[m].__slot=-1)}d.__slot=-1;for(var h=0;h<c.length;h++){var v=c[h],y=t.uniforms[v],p=o(e,t,v),g=y.type,_=g==="t";if(_&&(!p||!p.isRenderable())&&(p=d),a&&l){var w=o(n,a,v);if(_&&(!w||!w.isRenderable())&&(w=d),w===p){if(_)r.takeCurrentTextureSlot(this,null);else if(g==="tv"&&p)for(var m=0;m<p.length;m++)r.takeCurrentTextureSlot(this,null);continue}}if(p!=null)if(_)if(p.__slot<0){var x=r.currentTextureSlot(),S=r.setUniform(s,"1i",v,x);S&&(r.takeCurrentTextureSlot(this,p),p.__slot=x)}else r.setUniform(s,"1i",v,p.__slot);else if(Array.isArray(p)){if(p.length===0)continue;if(g==="tv"){if(!r.hasUniform(v))continue;for(var T=[],m=0;m<p.length;m++){var A=p[m];if(A.__slot<0){var x=r.currentTextureSlot();T.push(x),r.takeCurrentTextureSlot(this,A),A.__slot=x}else T.push(A.__slot)}r.setUniform(s,"1iv",v,T)}else r.setUniform(s,y.type,v,p)}else r.setUniform(s,y.type,v,p)}var C=r.currentTextureSlot();return r.resetTextureSlot(u),C},_bindVAO:function(e,t,r,n){var a=!r.dynamic,i=this.gl,o=this.__uid__+"-"+n.__uid__,s=r.__vaoCache[o];if(!s){var l=r.getBufferChunks(this);if(!l||!l.length)return;for(var u=l[0],c=u.attributeBuffers,w=u.indicesBuffer,_=[],f=[],d=0;d<c.length;d++){var h=c[d],v=h.name,p=h.semantic,g;if(p){var m=t.attributeSemantics[p];g=m&&m.symbol}else g=v;g&&n.attributes[g]&&(_.push(h),f.push(g))}s=new ygt(_,f,w),a&&(r.__vaoCache[o]=s)}var y=!0;e&&a&&(s.vao==null?s.vao=e.createVertexArrayOES():y=!1,e.bindVertexArrayOES(s.vao));var _=s.availableAttributes,w=s.indicesBuffer;if(y){for(var x=n.enableAttributes(this,s.availableAttributeSymbols,e&&a&&s),d=0;d<_.length;d++){var S=x[d];if(S!==-1){var h=_[d],T=h.buffer,A=h.size,C=F$[h.type]||i.FLOAT;i.bindBuffer(i.ARRAY_BUFFER,T),i.vertexAttribPointer(S,A,C,!1,0,0)}}r.isUseIndices()&&i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,w.buffer)}return s},renderPreZ:function(e,t,r){var n=this.gl,a=this._prezMaterial||new as({shader:new nt(nt.source("clay.prez.vertex"),nt.source("clay.prez.fragment"))});this._prezMaterial=a,n.colorMask(!1,!1,!1,!1),n.depthMask(!0),this.renderPass(e,r,{ifRender:function(i){return!i.ignorePreZ},isMaterialChanged:function(i,o){var s=i.material,l=o.material;return s.get("diffuseMap")!==l.get("diffuseMap")||(s.get("alphaCutoff")||0)!==(l.get("alphaCutoff")||0)},getUniform:function(i,o,s){if(s==="alphaMap")return i.material.get("diffuseMap");if(s==="alphaCutoff"){if(i.material.isDefined("fragment","ALPHA_TEST")&&i.material.get("diffuseMap")){var l=i.material.get("alphaCutoff");return l||0}return 0}else return s==="uvRepeat"?i.material.get("uvRepeat"):s==="uvOffset"?i.material.get("uvOffset"):o.get(s)},getMaterial:function(){return a},sort:this.opaqueSortCompare}),n.colorMask(!0,!0,!0,!0),n.depthMask(!0)},disposeScene:function(e){this.disposeNode(e,!0,!0),e.dispose()},disposeNode:function(e,t,r){e.getParent()&&e.getParent().remove(e);var n={};e.traverse(function(a){var i=a.material;if(a.geometry&&t&&a.geometry.dispose(this),r&&i&&!n[i.__uid__]){for(var o=i.getTextureUniforms(),s=0;s<o.length;s++){var l=o[s],u=i.uniforms[l].value,c=i.uniforms[l].type;if(u){if(c==="t")u.dispose&&u.dispose(this);else if(c==="tv")for(var f=0;f<u.length;f++)u[f]&&u[f].dispose&&u[f].dispose(this)}}n[i.__uid__]=!0}a.dispose&&a.dispose(this)},this)},disposeGeometry:function(e){e.dispose(this)},disposeTexture:function(e){e.dispose(this)},disposeFrameBuffer:function(e){e.dispose(this)},dispose:function(){},screenToNDC:function(e,t,r){r||(r=new mo),t=this._height-t;var n=this.viewport,a=r.array;return a[0]=(e-n.x)/n.width,a[0]=a[0]*2-1,a[1]=(t-n.y)/n.height,a[1]=a[1]*2-1,r}});Pf.opaqueSortCompare=Pf.prototype.opaqueSortCompare=function(e,t){return e.renderOrder===t.renderOrder?e.__program===t.__program?e.material===t.material?e.geometry.__uid__-t.geometry.__uid__:e.material.__uid__-t.material.__uid__:e.__program&&t.__program?e.__program.__uid__-t.__program.__uid__:0:e.renderOrder-t.renderOrder};Pf.transparentSortCompare=Pf.prototype.transparentSortCompare=function(e,t){return e.renderOrder===t.renderOrder?e.__depth===t.__depth?e.__program===t.__program?e.material===t.material?e.geometry.__uid__-t.geometry.__uid__:e.material.__uid__-t.material.__uid__:e.__program&&t.__program?e.__program.__uid__-t.__program.__uid__:0:e.__depth-t.__depth:e.renderOrder-t.renderOrder};var Tn={IDENTITY:Cn(),WORLD:Cn(),VIEW:Cn(),PROJECTION:Cn(),WORLDVIEW:Cn(),VIEWPROJECTION:Cn(),WORLDVIEWPROJECTION:Cn(),WORLDINVERSE:Cn(),VIEWINVERSE:Cn(),PROJECTIONINVERSE:Cn(),WORLDVIEWINVERSE:Cn(),VIEWPROJECTIONINVERSE:Cn(),WORLDVIEWPROJECTIONINVERSE:Cn(),WORLDTRANSPOSE:Cn(),VIEWTRANSPOSE:Cn(),PROJECTIONTRANSPOSE:Cn(),WORLDVIEWTRANSPOSE:Cn(),VIEWPROJECTIONTRANSPOSE:Cn(),WORLDVIEWPROJECTIONTRANSPOSE:Cn(),WORLDINVERSETRANSPOSE:Cn(),VIEWINVERSETRANSPOSE:Cn(),PROJECTIONINVERSETRANSPOSE:Cn(),WORLDVIEWINVERSETRANSPOSE:Cn(),VIEWPROJECTIONINVERSETRANSPOSE:Cn(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:Cn()};Pf.COLOR_BUFFER_BIT=$e.COLOR_BUFFER_BIT;Pf.DEPTH_BUFFER_BIT=$e.DEPTH_BUFFER_BIT;Pf.STENCIL_BUFFER_BIT=$e.STENCIL_BUFFER_BIT;const f0=Pf;var Jt=function(e,t,r){e=e||0,t=t||0,r=r||0,this.array=Ee.fromValues(e,t,r),this._dirty=!0};Jt.prototype={constructor:Jt,add:function(e){return Ee.add(this.array,this.array,e.array),this._dirty=!0,this},set:function(e,t,r){return this.array[0]=e,this.array[1]=t,this.array[2]=r,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this.array[2]=e[2],this._dirty=!0,this},clone:function(){return new Jt(this.x,this.y,this.z)},copy:function(e){return Ee.copy(this.array,e.array),this._dirty=!0,this},cross:function(e,t){return Ee.cross(this.array,e.array,t.array),this._dirty=!0,this},dist:function(e){return Ee.dist(this.array,e.array)},distance:function(e){return Ee.distance(this.array,e.array)},div:function(e){return Ee.div(this.array,this.array,e.array),this._dirty=!0,this},divide:function(e){return Ee.divide(this.array,this.array,e.array),this._dirty=!0,this},dot:function(e){return Ee.dot(this.array,e.array)},len:function(){return Ee.len(this.array)},length:function(){return Ee.length(this.array)},lerp:function(e,t,r){return Ee.lerp(this.array,e.array,t.array,r),this._dirty=!0,this},min:function(e){return Ee.min(this.array,this.array,e.array),this._dirty=!0,this},max:function(e){return Ee.max(this.array,this.array,e.array),this._dirty=!0,this},mul:function(e){return Ee.mul(this.array,this.array,e.array),this._dirty=!0,this},multiply:function(e){return Ee.multiply(this.array,this.array,e.array),this._dirty=!0,this},negate:function(){return Ee.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return Ee.normalize(this.array,this.array),this._dirty=!0,this},random:function(e){return Ee.random(this.array,e),this._dirty=!0,this},scale:function(e){return Ee.scale(this.array,this.array,e),this._dirty=!0,this},scaleAndAdd:function(e,t){return Ee.scaleAndAdd(this.array,this.array,e.array,t),this._dirty=!0,this},sqrDist:function(e){return Ee.sqrDist(this.array,e.array)},squaredDistance:function(e){return Ee.squaredDistance(this.array,e.array)},sqrLen:function(){return Ee.sqrLen(this.array)},squaredLength:function(){return Ee.squaredLength(this.array)},sub:function(e){return Ee.sub(this.array,this.array,e.array),this._dirty=!0,this},subtract:function(e){return Ee.subtract(this.array,this.array,e.array),this._dirty=!0,this},transformMat3:function(e){return Ee.transformMat3(this.array,this.array,e.array),this._dirty=!0,this},transformMat4:function(e){return Ee.transformMat4(this.array,this.array,e.array),this._dirty=!0,this},transformQuat:function(e){return Ee.transformQuat(this.array,this.array,e.array),this._dirty=!0,this},applyProjection:function(e){var t=this.array;if(e=e.array,e[15]===0){var r=-1/t[2];t[0]=e[0]*t[0]*r,t[1]=e[5]*t[1]*r,t[2]=(e[10]*t[2]+e[14])*r}else t[0]=e[0]*t[0]+e[12],t[1]=e[5]*t[1]+e[13],t[2]=e[10]*t[2]+e[14];return this._dirty=!0,this},eulerFromQuat:function(e,t){Jt.eulerFromQuat(this,e,t)},eulerFromMat3:function(e,t){Jt.eulerFromMat3(this,e,t)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var ww=Object.defineProperty;if(ww){var cD=Jt.prototype;ww(cD,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),ww(cD,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}}),ww(cD,"z",{get:function(){return this.array[2]},set:function(e){this.array[2]=e,this._dirty=!0}})}Jt.add=function(e,t,r){return Ee.add(e.array,t.array,r.array),e._dirty=!0,e};Jt.set=function(e,t,r,n){Ee.set(e.array,t,r,n),e._dirty=!0};Jt.copy=function(e,t){return Ee.copy(e.array,t.array),e._dirty=!0,e};Jt.cross=function(e,t,r){return Ee.cross(e.array,t.array,r.array),e._dirty=!0,e};Jt.dist=function(e,t){return Ee.distance(e.array,t.array)};Jt.distance=Jt.dist;Jt.div=function(e,t,r){return Ee.divide(e.array,t.array,r.array),e._dirty=!0,e};Jt.divide=Jt.div;Jt.dot=function(e,t){return Ee.dot(e.array,t.array)};Jt.len=function(e){return Ee.length(e.array)};Jt.lerp=function(e,t,r,n){return Ee.lerp(e.array,t.array,r.array,n),e._dirty=!0,e};Jt.min=function(e,t,r){return Ee.min(e.array,t.array,r.array),e._dirty=!0,e};Jt.max=function(e,t,r){return Ee.max(e.array,t.array,r.array),e._dirty=!0,e};Jt.mul=function(e,t,r){return Ee.multiply(e.array,t.array,r.array),e._dirty=!0,e};Jt.multiply=Jt.mul;Jt.negate=function(e,t){return Ee.negate(e.array,t.array),e._dirty=!0,e};Jt.normalize=function(e,t){return Ee.normalize(e.array,t.array),e._dirty=!0,e};Jt.random=function(e,t){return Ee.random(e.array,t),e._dirty=!0,e};Jt.scale=function(e,t,r){return Ee.scale(e.array,t.array,r),e._dirty=!0,e};Jt.scaleAndAdd=function(e,t,r,n){return Ee.scaleAndAdd(e.array,t.array,r.array,n),e._dirty=!0,e};Jt.sqrDist=function(e,t){return Ee.sqrDist(e.array,t.array)};Jt.squaredDistance=Jt.sqrDist;Jt.sqrLen=function(e){return Ee.sqrLen(e.array)};Jt.squaredLength=Jt.sqrLen;Jt.sub=function(e,t,r){return Ee.subtract(e.array,t.array,r.array),e._dirty=!0,e};Jt.subtract=Jt.sub;Jt.transformMat3=function(e,t,r){return Ee.transformMat3(e.array,t.array,r.array),e._dirty=!0,e};Jt.transformMat4=function(e,t,r){return Ee.transformMat4(e.array,t.array,r.array),e._dirty=!0,e};Jt.transformQuat=function(e,t,r){return Ee.transformQuat(e.array,t.array,r.array),e._dirty=!0,e};function Ko(e,t,r){return e<t?t:e>r?r:e}var sn=Math.atan2,Xo=Math.asin,Yv=Math.abs;Jt.eulerFromQuat=function(e,t,d){e._dirty=!0,t=t.array;var n=e.array,a=t[0],i=t[1],o=t[2],s=t[3],l=a*a,u=i*i,c=o*o,f=s*s,d=(d||"XYZ").toUpperCase();switch(d){case"XYZ":n[0]=sn(2*(a*s-i*o),f-l-u+c),n[1]=Xo(Ko(2*(a*o+i*s),-1,1)),n[2]=sn(2*(o*s-a*i),f+l-u-c);break;case"YXZ":n[0]=Xo(Ko(2*(a*s-i*o),-1,1)),n[1]=sn(2*(a*o+i*s),f-l-u+c),n[2]=sn(2*(a*i+o*s),f-l+u-c);break;case"ZXY":n[0]=Xo(Ko(2*(a*s+i*o),-1,1)),n[1]=sn(2*(i*s-o*a),f-l-u+c),n[2]=sn(2*(o*s-a*i),f-l+u-c);break;case"ZYX":n[0]=sn(2*(a*s+o*i),f-l-u+c),n[1]=Xo(Ko(2*(i*s-a*o),-1,1)),n[2]=sn(2*(a*i+o*s),f+l-u-c);break;case"YZX":n[0]=sn(2*(a*s-o*i),f-l+u-c),n[1]=sn(2*(i*s-a*o),f+l-u-c),n[2]=Xo(Ko(2*(a*i+o*s),-1,1));break;case"XZY":n[0]=sn(2*(a*s+i*o),f-l+u-c),n[1]=sn(2*(a*o+i*s),f+l-u-c),n[2]=Xo(Ko(2*(o*s-a*i),-1,1));break;default:console.warn("Unkown order: "+d)}return e};Jt.eulerFromMat3=function(e,t,v){var n=t.array,a=n[0],i=n[3],o=n[6],s=n[1],l=n[4],u=n[7],c=n[2],f=n[5],d=n[8],h=e.array,v=(v||"XYZ").toUpperCase();switch(v){case"XYZ":h[1]=Xo(Ko(o,-1,1)),Yv(o)<.99999?(h[0]=sn(-u,d),h[2]=sn(-i,a)):(h[0]=sn(f,l),h[2]=0);break;case"YXZ":h[0]=Xo(-Ko(u,-1,1)),Yv(u)<.99999?(h[1]=sn(o,d),h[2]=sn(s,l)):(h[1]=sn(-c,a),h[2]=0);break;case"ZXY":h[0]=Xo(Ko(f,-1,1)),Yv(f)<.99999?(h[1]=sn(-c,d),h[2]=sn(-i,l)):(h[1]=0,h[2]=sn(s,a));break;case"ZYX":h[1]=Xo(-Ko(c,-1,1)),Yv(c)<.99999?(h[0]=sn(f,d),h[2]=sn(s,a)):(h[0]=0,h[2]=sn(-i,l));break;case"YZX":h[2]=Xo(Ko(s,-1,1)),Yv(s)<.99999?(h[0]=sn(-u,l),h[1]=sn(-c,a)):(h[0]=0,h[1]=sn(o,d));break;case"XZY":h[2]=Xo(-Ko(i,-1,1)),Yv(i)<.99999?(h[0]=sn(f,l),h[1]=sn(o,a)):(h[0]=sn(-u,d),h[1]=0);break;default:console.warn("Unkown order: "+v)}return e._dirty=!0,e};Object.defineProperties(Jt,{POSITIVE_X:{get:function(){return new Jt(1,0,0)}},NEGATIVE_X:{get:function(){return new Jt(-1,0,0)}},POSITIVE_Y:{get:function(){return new Jt(0,1,0)}},NEGATIVE_Y:{get:function(){return new Jt(0,-1,0)}},POSITIVE_Z:{get:function(){return new Jt(0,0,1)}},NEGATIVE_Z:{get:function(){return new Jt(0,0,-1)}},UP:{get:function(){return new Jt(0,1,0)}},ZERO:{get:function(){return new Jt}}});const mt=Jt;var fD=1e-5,BS=function(e,t){this.origin=e||new mt,this.direction=t||new mt};BS.prototype={constructor:BS,intersectPlane:function(e,t){var r=e.normal.array,n=e.distance,a=this.origin.array,i=this.direction.array,o=Ee.dot(r,i);if(o===0)return null;t||(t=new mt);var s=(Ee.dot(r,a)-n)/o;return Ee.scaleAndAdd(t.array,a,i,-s),t._dirty=!0,t},mirrorAgainstPlane:function(e){var t=Ee.dot(e.normal.array,this.direction.array);Ee.scaleAndAdd(this.direction.array,this.direction.array,e.normal.array,-t*2),this.direction._dirty=!0},distanceToPoint:function(){var e=Ee.create();return function(t){Ee.sub(e,t,this.origin.array);var r=Ee.dot(e,this.direction.array);if(r<0)return Ee.distance(this.origin.array,t);var n=Ee.lenSquared(e);return Math.sqrt(n-r*r)}}(),intersectSphere:function(){var e=Ee.create();return function(t,r,n){var a=this.origin.array,i=this.direction.array;t=t.array,Ee.sub(e,t,a);var o=Ee.dot(e,i),s=Ee.squaredLength(e),l=s-o*o,u=r*r;if(!(l>u)){var c=Math.sqrt(u-l),f=o-c,d=o+c;return n||(n=new mt),f<0?d<0?null:(Ee.scaleAndAdd(n.array,a,i,d),n):(Ee.scaleAndAdd(n.array,a,i,f),n)}}}(),intersectBoundingBox:function(e,t){var r=this.direction.array,n=this.origin.array,a=e.min.array,i=e.max.array,o=1/r[0],s=1/r[1],l=1/r[2],u,c,f,d,h,v;if(o>=0?(u=(a[0]-n[0])*o,c=(i[0]-n[0])*o):(c=(a[0]-n[0])*o,u=(i[0]-n[0])*o),s>=0?(f=(a[1]-n[1])*s,d=(i[1]-n[1])*s):(d=(a[1]-n[1])*s,f=(i[1]-n[1])*s),u>d||f>c||((f>u||u!==u)&&(u=f),(d<c||c!==c)&&(c=d),l>=0?(h=(a[2]-n[2])*l,v=(i[2]-n[2])*l):(v=(a[2]-n[2])*l,h=(i[2]-n[2])*l),u>v||h>c)||((h>u||u!==u)&&(u=h),(v<c||c!==c)&&(c=v),c<0))return null;var p=u>=0?u:c;return t||(t=new mt),Ee.scaleAndAdd(t.array,n,r,p),t},intersectTriangle:function(){var e=Ee.create(),t=Ee.create(),r=Ee.create(),n=Ee.create();return function(a,i,o,s,l,u){var c=this.direction.array,f=this.origin.array;a=a.array,i=i.array,o=o.array,Ee.sub(e,i,a),Ee.sub(t,o,a),Ee.cross(n,t,c);var d=Ee.dot(e,n);if(s){if(d>-fD)return null}else if(d>-fD&&d<fD)return null;Ee.sub(r,f,a);var h=Ee.dot(n,r)/d;if(h<0||h>1)return null;Ee.cross(n,e,r);var v=Ee.dot(c,n)/d;if(v<0||v>1||h+v>1)return null;Ee.cross(n,e,t);var p=-Ee.dot(r,n)/d;return p<0?null:(l||(l=new mt),u&&mt.set(u,1-h-v,h,v),Ee.scaleAndAdd(l.array,f,c,p),l)}}(),applyTransform:function(e){mt.add(this.direction,this.direction,this.origin),mt.transformMat4(this.origin,this.origin,e),mt.transformMat4(this.direction,this.direction,e),mt.sub(this.direction,this.direction,this.origin),mt.normalize(this.direction,this.direction)},copy:function(e){mt.copy(this.origin,e.origin),mt.copy(this.direction,e.direction)},clone:function(){var e=new BS;return e.copy(this),e}};const A2=BS;var wr={};wr.create=function(){var e=new Wa(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e};wr.clone=function(e){var t=new Wa(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t};wr.fromValues=function(e,t,r,n){var a=new Wa(4);return a[0]=e,a[1]=t,a[2]=r,a[3]=n,a};wr.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e};wr.set=function(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e};wr.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e};wr.subtract=function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e};wr.sub=wr.subtract;wr.multiply=function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e};wr.mul=wr.multiply;wr.divide=function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e};wr.div=wr.divide;wr.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e};wr.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e};wr.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e};wr.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e};wr.distance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2],i=t[3]-e[3];return Math.sqrt(r*r+n*n+a*a+i*i)};wr.dist=wr.distance;wr.squaredDistance=function(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2],i=t[3]-e[3];return r*r+n*n+a*a+i*i};wr.sqrDist=wr.squaredDistance;wr.length=function(e){var t=e[0],r=e[1],n=e[2],a=e[3];return Math.sqrt(t*t+r*r+n*n+a*a)};wr.len=wr.length;wr.squaredLength=function(e){var t=e[0],r=e[1],n=e[2],a=e[3];return t*t+r*r+n*n+a*a};wr.sqrLen=wr.squaredLength;wr.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e};wr.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e};wr.normalize=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r*r+n*n+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e[3]=t[3]*o),e};wr.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]};wr.lerp=function(e,t,r,n){var a=t[0],i=t[1],o=t[2],s=t[3];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e[2]=o+n*(r[2]-o),e[3]=s+n*(r[3]-s),e};wr.random=function(e,t){return t=t||1,e[0]=_p(),e[1]=_p(),e[2]=_p(),e[3]=_p(),wr.normalize(e,e),wr.scale(e,e,t),e};wr.transformMat4=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3];return e[0]=r[0]*n+r[4]*a+r[8]*i+r[12]*o,e[1]=r[1]*n+r[5]*a+r[9]*i+r[13]*o,e[2]=r[2]*n+r[6]*a+r[10]*i+r[14]*o,e[3]=r[3]*n+r[7]*a+r[11]*i+r[15]*o,e};wr.transformQuat=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2],u=r[3],c=u*n+s*i-l*a,f=u*a+l*n-o*i,d=u*i+o*a-s*n,h=-o*n-s*a-l*i;return e[0]=c*u+h*-o+f*-l-d*-s,e[1]=f*u+h*-s+d*-o-c*-l,e[2]=d*u+h*-l+c*-s-f*-o,e};wr.forEach=function(){var e=wr.create();return function(t,r,n,a,i,o){var s,l;for(r||(r=4),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s<l;s+=r)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],i(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2],t[s+3]=e[3];return t}}();const Et=wr;var _a={};_a.create=function(){var e=new Wa(9);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e};_a.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e};_a.clone=function(e){var t=new Wa(9);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};_a.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e};_a.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e};_a.transpose=function(e,t){if(e===t){var r=t[1],n=t[2],a=t[5];e[1]=t[3],e[2]=t[6],e[3]=r,e[5]=t[7],e[6]=n,e[7]=a}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e};_a.invert=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=c*o-s*u,d=-c*i+s*l,h=u*i-o*l,v=r*f+n*d+a*h;return v?(v=1/v,e[0]=f*v,e[1]=(-c*n+a*u)*v,e[2]=(s*n-a*o)*v,e[3]=d*v,e[4]=(c*r-a*l)*v,e[5]=(-s*r+a*i)*v,e[6]=h*v,e[7]=(-u*r+n*l)*v,e[8]=(o*r-n*i)*v,e):null};_a.adjoint=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8];return e[0]=o*c-s*u,e[1]=a*u-n*c,e[2]=n*s-a*o,e[3]=s*l-i*c,e[4]=r*c-a*l,e[5]=a*i-r*s,e[6]=i*u-o*l,e[7]=n*l-r*u,e[8]=r*o-n*i,e};_a.determinant=function(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*i-o*l)+r*(-u*a+o*s)+n*(l*a-i*s)};_a.multiply=function(e,t,r){var n=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=r[0],h=r[1],v=r[2],p=r[3],g=r[4],m=r[5],y=r[6],_=r[7],w=r[8];return e[0]=d*n+h*o+v*u,e[1]=d*a+h*s+v*c,e[2]=d*i+h*l+v*f,e[3]=p*n+g*o+m*u,e[4]=p*a+g*s+m*c,e[5]=p*i+g*l+m*f,e[6]=y*n+_*o+w*u,e[7]=y*a+_*s+w*c,e[8]=y*i+_*l+w*f,e};_a.mul=_a.multiply;_a.translate=function(e,t,r){var n=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=r[0],h=r[1];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e[6]=d*n+h*o+u,e[7]=d*a+h*s+c,e[8]=d*i+h*l+f,e};_a.rotate=function(e,t,r){var n=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=Math.sin(r),h=Math.cos(r);return e[0]=h*n+d*o,e[1]=h*a+d*s,e[2]=h*i+d*l,e[3]=h*o-d*n,e[4]=h*s-d*a,e[5]=h*l-d*i,e[6]=u,e[7]=c,e[8]=f,e};_a.scale=function(e,t,r){var n=r[0],a=r[1];return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=a*t[3],e[4]=a*t[4],e[5]=a*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e};_a.fromMat2d=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e};_a.fromQuat=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,s=n+n,l=a+a,u=r*o,c=n*o,f=n*s,d=a*o,h=a*s,v=a*l,p=i*o,g=i*s,m=i*l;return e[0]=1-f-v,e[3]=c-m,e[6]=d+g,e[1]=c+m,e[4]=1-u-v,e[7]=h-p,e[2]=d-g,e[5]=h+p,e[8]=1-u-f,e};_a.normalFromMat4=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],v=t[12],p=t[13],g=t[14],m=t[15],y=r*s-n*o,_=r*l-a*o,w=r*u-i*o,x=n*l-a*s,S=n*u-i*s,T=a*u-i*l,A=c*p-f*v,C=c*g-d*v,M=c*m-h*v,E=f*g-d*p,D=f*m-h*p,P=d*m-h*g,L=y*P-_*D+w*E+x*M-S*C+T*A;return L?(L=1/L,e[0]=(s*P-l*D+u*E)*L,e[1]=(l*M-o*P-u*C)*L,e[2]=(o*D-s*M+u*A)*L,e[3]=(a*D-n*P-i*E)*L,e[4]=(r*P-a*M+i*C)*L,e[5]=(n*M-r*D-i*A)*L,e[6]=(p*T-g*S+m*x)*L,e[7]=(g*w-v*T-m*_)*L,e[8]=(v*S-p*w+m*y)*L,e):null};_a.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2)+Math.pow(e[4],2)+Math.pow(e[5],2)+Math.pow(e[6],2)+Math.pow(e[7],2)+Math.pow(e[8],2))};const Or=_a;var Wr={};Wr.create=function(){var e=new Wa(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e};Wr.rotationTo=function(){var e=Ee.create(),t=Ee.fromValues(1,0,0),r=Ee.fromValues(0,1,0);return function(n,a,i){var o=Ee.dot(a,i);return o<-.999999?(Ee.cross(e,t,a),Ee.length(e)<1e-6&&Ee.cross(e,r,a),Ee.normalize(e,e),Wr.setAxisAngle(n,e,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(Ee.cross(e,a,i),n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=1+o,Wr.normalize(n,n))}}();Wr.setAxes=function(){var e=Or.create();return function(t,r,n,a){return e[0]=n[0],e[3]=n[1],e[6]=n[2],e[1]=a[0],e[4]=a[1],e[7]=a[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],Wr.normalize(t,Wr.fromMat3(t,e))}}();Wr.clone=Et.clone;Wr.fromValues=Et.fromValues;Wr.copy=Et.copy;Wr.set=Et.set;Wr.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e};Wr.setAxisAngle=function(e,t,r){r=r*.5;var n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e};Wr.add=Et.add;Wr.multiply=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=r[3];return e[0]=n*c+o*s+a*u-i*l,e[1]=a*c+o*l+i*s-n*u,e[2]=i*c+o*u+n*l-a*s,e[3]=o*c-n*s-a*l-i*u,e};Wr.mul=Wr.multiply;Wr.scale=Et.scale;Wr.rotateX=function(e,t,r){r*=.5;var n=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+o*s,e[1]=a*l+i*s,e[2]=i*l-a*s,e[3]=o*l-n*s,e};Wr.rotateY=function(e,t,r){r*=.5;var n=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l-i*s,e[1]=a*l+o*s,e[2]=i*l+n*s,e[3]=o*l-a*s,e};Wr.rotateZ=function(e,t,r){r*=.5;var n=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+a*s,e[1]=a*l-n*s,e[2]=i*l+o*s,e[3]=o*l-i*s,e};Wr.calculateW=function(e,t){var r=t[0],n=t[1],a=t[2];return e[0]=r,e[1]=n,e[2]=a,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),e};Wr.dot=Et.dot;Wr.lerp=Et.lerp;Wr.slerp=function(e,t,r,n){var a=t[0],i=t[1],o=t[2],s=t[3],l=r[0],u=r[1],c=r[2],f=r[3],d,h,v,p,g;return h=a*l+i*u+o*c+s*f,h<0&&(h=-h,l=-l,u=-u,c=-c,f=-f),1-h>1e-6?(d=Math.acos(h),v=Math.sin(d),p=Math.sin((1-n)*d)/v,g=Math.sin(n*d)/v):(p=1-n,g=n),e[0]=p*a+g*l,e[1]=p*i+g*u,e[2]=p*o+g*c,e[3]=p*s+g*f,e};Wr.invert=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r*r+n*n+a*a+i*i,s=o?1/o:0;return e[0]=-r*s,e[1]=-n*s,e[2]=-a*s,e[3]=i*s,e};Wr.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e};Wr.length=Et.length;Wr.len=Wr.length;Wr.squaredLength=Et.squaredLength;Wr.sqrLen=Wr.squaredLength;Wr.normalize=Et.normalize;Wr.fromMat3=function(e,t){var r=t[0]+t[4]+t[8],n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var a=0;t[4]>t[0]&&(a=1),t[8]>t[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(t[a*3+a]-t[i*3+i]-t[o*3+o]+1),e[a]=.5*n,n=.5/n,e[3]=(t[i*3+o]-t[o*3+i])*n,e[i]=(t[i*3+a]+t[a*3+i])*n,e[o]=(t[o*3+a]+t[a*3+o])*n}return e};const ar=Wr;var xn=function(){this._axisX=new mt,this._axisY=new mt,this._axisZ=new mt,this.array=ut.create(),this._dirty=!0};xn.prototype={constructor:xn,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},adjoint:function(){return ut.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return new xn().copy(this)},copy:function(e){return ut.copy(this.array,e.array),this._dirty=!0,this},determinant:function(){return ut.determinant(this.array)},fromQuat:function(e){return ut.fromQuat(this.array,e.array),this._dirty=!0,this},fromRotationTranslation:function(e,t){return ut.fromRotationTranslation(this.array,e.array,t.array),this._dirty=!0,this},fromMat2d:function(e){return xn.fromMat2d(this,e),this},frustum:function(e,t,r,n,a,i){return ut.frustum(this.array,e,t,r,n,a,i),this._dirty=!0,this},identity:function(){return ut.identity(this.array),this._dirty=!0,this},invert:function(){return ut.invert(this.array,this.array),this._dirty=!0,this},lookAt:function(e,t,r){return ut.lookAt(this.array,e.array,t.array,r.array),this._dirty=!0,this},mul:function(e){return ut.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return ut.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return ut.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return ut.multiply(this.array,e.array,this.array),this._dirty=!0,this},ortho:function(e,t,r,n,a,i){return ut.ortho(this.array,e,t,r,n,a,i),this._dirty=!0,this},perspective:function(e,t,r,n){return ut.perspective(this.array,e,t,r,n),this._dirty=!0,this},rotate:function(e,t){return ut.rotate(this.array,this.array,e,t.array),this._dirty=!0,this},rotateX:function(e){return ut.rotateX(this.array,this.array,e),this._dirty=!0,this},rotateY:function(e){return ut.rotateY(this.array,this.array,e),this._dirty=!0,this},rotateZ:function(e){return ut.rotateZ(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return ut.scale(this.array,this.array,e.array),this._dirty=!0,this},translate:function(e){return ut.translate(this.array,this.array,e.array),this._dirty=!0,this},transpose:function(){return ut.transpose(this.array,this.array),this._dirty=!0,this},decomposeMatrix:function(){var e=Ee.create(),t=Ee.create(),r=Ee.create(),n=Or.create();return function(a,i,o){var s=this.array;Ee.set(e,s[0],s[1],s[2]),Ee.set(t,s[4],s[5],s[6]),Ee.set(r,s[8],s[9],s[10]);var l=Ee.length(e),u=Ee.length(t),c=Ee.length(r),f=this.determinant();f<0&&(l=-l),a&&a.set(l,u,c),o.set(s[12],s[13],s[14]),Or.fromMat4(n,s),n[0]/=l,n[1]/=l,n[2]/=l,n[3]/=u,n[4]/=u,n[5]/=u,n[6]/=c,n[7]/=c,n[8]/=c,ar.fromMat3(i.array,n),ar.normalize(i.array,i.array),i._dirty=!0,o._dirty=!0}}(),toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Sw=Object.defineProperty;if(Sw){var dD=xn.prototype;Sw(dD,"z",{get:function(){var e=this.array;return this._axisZ.set(e[8],e[9],e[10]),this._axisZ},set:function(e){var t=this.array;e=e.array,t[8]=e[0],t[9]=e[1],t[10]=e[2],this._dirty=!0}}),Sw(dD,"y",{get:function(){var e=this.array;return this._axisY.set(e[4],e[5],e[6]),this._axisY},set:function(e){var t=this.array;e=e.array,t[4]=e[0],t[5]=e[1],t[6]=e[2],this._dirty=!0}}),Sw(dD,"x",{get:function(){var e=this.array;return this._axisX.set(e[0],e[1],e[2]),this._axisX},set:function(e){var t=this.array;e=e.array,t[0]=e[0],t[1]=e[1],t[2]=e[2],this._dirty=!0}})}xn.adjoint=function(e,t){return ut.adjoint(e.array,t.array),e._dirty=!0,e};xn.copy=function(e,t){return ut.copy(e.array,t.array),e._dirty=!0,e};xn.determinant=function(e){return ut.determinant(e.array)};xn.identity=function(e){return ut.identity(e.array),e._dirty=!0,e};xn.ortho=function(e,t,r,n,a,i,o){return ut.ortho(e.array,t,r,n,a,i,o),e._dirty=!0,e};xn.perspective=function(e,t,r,n,a){return ut.perspective(e.array,t,r,n,a),e._dirty=!0,e};xn.lookAt=function(e,t,r,n){return ut.lookAt(e.array,t.array,r.array,n.array),e._dirty=!0,e};xn.invert=function(e,t){return ut.invert(e.array,t.array),e._dirty=!0,e};xn.mul=function(e,t,r){return ut.mul(e.array,t.array,r.array),e._dirty=!0,e};xn.multiply=xn.mul;xn.fromQuat=function(e,t){return ut.fromQuat(e.array,t.array),e._dirty=!0,e};xn.fromRotationTranslation=function(e,t,r){return ut.fromRotationTranslation(e.array,t.array,r.array),e._dirty=!0,e};xn.fromMat2d=function(n,r){n._dirty=!0;var r=r.array,n=n.array;return n[0]=r[0],n[4]=r[2],n[12]=r[4],n[1]=r[1],n[5]=r[3],n[13]=r[5],n};xn.rotate=function(e,t,r,n){return ut.rotate(e.array,t.array,r,n.array),e._dirty=!0,e};xn.rotateX=function(e,t,r){return ut.rotateX(e.array,t.array,r),e._dirty=!0,e};xn.rotateY=function(e,t,r){return ut.rotateY(e.array,t.array,r),e._dirty=!0,e};xn.rotateZ=function(e,t,r){return ut.rotateZ(e.array,t.array,r),e._dirty=!0,e};xn.scale=function(e,t,r){return ut.scale(e.array,t.array,r.array),e._dirty=!0,e};xn.transpose=function(e,t){return ut.transpose(e.array,t.array),e._dirty=!0,e};xn.translate=function(e,t,r){return ut.translate(e.array,t.array,r.array),e._dirty=!0,e};const Bt=xn;var Jr=function(e,t,r,n){e=e||0,t=t||0,r=r||0,n=n===void 0?1:n,this.array=ar.fromValues(e,t,r,n),this._dirty=!0};Jr.prototype={constructor:Jr,add:function(e){return ar.add(this.array,this.array,e.array),this._dirty=!0,this},calculateW:function(){return ar.calculateW(this.array,this.array),this._dirty=!0,this},set:function(e,t,r,n){return this.array[0]=e,this.array[1]=t,this.array[2]=r,this.array[3]=n,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this.array[2]=e[2],this.array[3]=e[3],this._dirty=!0,this},clone:function(){return new Jr(this.x,this.y,this.z,this.w)},conjugate:function(){return ar.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(e){return ar.copy(this.array,e.array),this._dirty=!0,this},dot:function(e){return ar.dot(this.array,e.array)},fromMat3:function(e){return ar.fromMat3(this.array,e.array),this._dirty=!0,this},fromMat4:function(){var e=Or.create();return function(t){return Or.fromMat4(e,t.array),Or.transpose(e,e),ar.fromMat3(this.array,e),this._dirty=!0,this}}(),identity:function(){return ar.identity(this.array),this._dirty=!0,this},invert:function(){return ar.invert(this.array,this.array),this._dirty=!0,this},len:function(){return ar.len(this.array)},length:function(){return ar.length(this.array)},lerp:function(e,t,r){return ar.lerp(this.array,e.array,t.array,r),this._dirty=!0,this},mul:function(e){return ar.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return ar.multiply(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return ar.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return ar.multiply(this.array,e.array,this.array),this._dirty=!0,this},normalize:function(){return ar.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(e){return ar.rotateX(this.array,this.array,e),this._dirty=!0,this},rotateY:function(e){return ar.rotateY(this.array,this.array,e),this._dirty=!0,this},rotateZ:function(e){return ar.rotateZ(this.array,this.array,e),this._dirty=!0,this},rotationTo:function(e,t){return ar.rotationTo(this.array,e.array,t.array),this._dirty=!0,this},setAxes:function(e,t,r){return ar.setAxes(this.array,e.array,t.array,r.array),this._dirty=!0,this},setAxisAngle:function(e,t){return ar.setAxisAngle(this.array,e.array,t),this._dirty=!0,this},slerp:function(e,t,r){return ar.slerp(this.array,e.array,t.array,r),this._dirty=!0,this},sqrLen:function(){return ar.sqrLen(this.array)},squaredLength:function(){return ar.squaredLength(this.array)},fromEuler:function(e,t){return Jr.fromEuler(this,e,t)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var ny=Object.defineProperty;if(ny){var xw=Jr.prototype;ny(xw,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),ny(xw,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}}),ny(xw,"z",{get:function(){return this.array[2]},set:function(e){this.array[2]=e,this._dirty=!0}}),ny(xw,"w",{get:function(){return this.array[3]},set:function(e){this.array[3]=e,this._dirty=!0}})}Jr.add=function(e,t,r){return ar.add(e.array,t.array,r.array),e._dirty=!0,e};Jr.set=function(e,t,r,n,a){ar.set(e.array,t,r,n,a),e._dirty=!0};Jr.copy=function(e,t){return ar.copy(e.array,t.array),e._dirty=!0,e};Jr.calculateW=function(e,t){return ar.calculateW(e.array,t.array),e._dirty=!0,e};Jr.conjugate=function(e,t){return ar.conjugate(e.array,t.array),e._dirty=!0,e};Jr.identity=function(e){return ar.identity(e.array),e._dirty=!0,e};Jr.invert=function(e,t){return ar.invert(e.array,t.array),e._dirty=!0,e};Jr.dot=function(e,t){return ar.dot(e.array,t.array)};Jr.len=function(e){return ar.length(e.array)};Jr.lerp=function(e,t,r,n){return ar.lerp(e.array,t.array,r.array,n),e._dirty=!0,e};Jr.slerp=function(e,t,r,n){return ar.slerp(e.array,t.array,r.array,n),e._dirty=!0,e};Jr.mul=function(e,t,r){return ar.multiply(e.array,t.array,r.array),e._dirty=!0,e};Jr.multiply=Jr.mul;Jr.rotateX=function(e,t,r){return ar.rotateX(e.array,t.array,r),e._dirty=!0,e};Jr.rotateY=function(e,t,r){return ar.rotateY(e.array,t.array,r),e._dirty=!0,e};Jr.rotateZ=function(e,t,r){return ar.rotateZ(e.array,t.array,r),e._dirty=!0,e};Jr.setAxisAngle=function(e,t,r){return ar.setAxisAngle(e.array,t.array,r),e._dirty=!0,e};Jr.normalize=function(e,t){return ar.normalize(e.array,t.array),e._dirty=!0,e};Jr.sqrLen=function(e){return ar.sqrLen(e.array)};Jr.squaredLength=Jr.sqrLen;Jr.fromMat3=function(e,t){return ar.fromMat3(e.array,t.array),e._dirty=!0,e};Jr.setAxes=function(e,t,r,n){return ar.setAxes(e.array,t.array,r.array,n.array),e._dirty=!0,e};Jr.rotationTo=function(e,t,r){return ar.rotationTo(e.array,t.array,r.array),e._dirty=!0,e};Jr.fromEuler=function(e,t,c){e._dirty=!0,t=t.array;var n=e.array,a=Math.cos(t[0]/2),i=Math.cos(t[1]/2),o=Math.cos(t[2]/2),s=Math.sin(t[0]/2),l=Math.sin(t[1]/2),u=Math.sin(t[2]/2),c=(c||"XYZ").toUpperCase();switch(c){case"XYZ":n[0]=s*i*o+a*l*u,n[1]=a*l*o-s*i*u,n[2]=a*i*u+s*l*o,n[3]=a*i*o-s*l*u;break;case"YXZ":n[0]=s*i*o+a*l*u,n[1]=a*l*o-s*i*u,n[2]=a*i*u-s*l*o,n[3]=a*i*o+s*l*u;break;case"ZXY":n[0]=s*i*o-a*l*u,n[1]=a*l*o+s*i*u,n[2]=a*i*u+s*l*o,n[3]=a*i*o-s*l*u;break;case"ZYX":n[0]=s*i*o-a*l*u,n[1]=a*l*o+s*i*u,n[2]=a*i*u-s*l*o,n[3]=a*i*o+s*l*u;break;case"YZX":n[0]=s*i*o+a*l*u,n[1]=a*l*o+s*i*u,n[2]=a*i*u-s*l*o,n[3]=a*i*o-s*l*u;break;case"XZY":n[0]=s*i*o-a*l*u,n[1]=a*l*o-s*i*u,n[2]=a*i*u+s*l*o,n[3]=a*i*o+s*l*u;break}};const Yae=Jr;var Ac=Ee.set,Aw=Ee.copy,FS=function(e,t){this.min=e||new mt(1/0,1/0,1/0),this.max=t||new mt(-1/0,-1/0,-1/0),this.vertices=null};FS.prototype={constructor:FS,updateFromVertices:function(e){if(e.length>0){var t=this.min,r=this.max,n=t.array,a=r.array;Aw(n,e[0]),Aw(a,e[0]);for(var i=1;i<e.length;i++){var o=e[i];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[2]<n[2]&&(n[2]=o[2]),o[0]>a[0]&&(a[0]=o[0]),o[1]>a[1]&&(a[1]=o[1]),o[2]>a[2]&&(a[2]=o[2])}t._dirty=!0,r._dirty=!0}},union:function(e){var t=this.min,r=this.max;return Ee.min(t.array,t.array,e.min.array),Ee.max(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersection:function(e){var t=this.min,r=this.max;return Ee.max(t.array,t.array,e.min.array),Ee.min(r.array,r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(e){var t=this.min.array,r=this.max.array,n=e.min.array,a=e.max.array;return!(t[0]>a[0]||t[1]>a[1]||t[2]>a[2]||r[0]<n[0]||r[1]<n[1]||r[2]<n[2])},containBoundingBox:function(e){var t=this.min.array,r=this.max.array,n=e.min.array,a=e.max.array;return t[0]<=n[0]&&t[1]<=n[1]&&t[2]<=n[2]&&r[0]>=a[0]&&r[1]>=a[1]&&r[2]>=a[2]},containPoint:function(e){var t=this.min.array,r=this.max.array,n=e.array;return t[0]<=n[0]&&t[1]<=n[1]&&t[2]<=n[2]&&r[0]>=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},isFinite:function(){var e=this.min.array,t=this.max.array;return isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])&&isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])},applyTransform:function(e){this.transformFrom(this,e)},transformFrom:function(){var e=Ee.create(),t=Ee.create(),r=Ee.create(),n=Ee.create(),a=Ee.create(),i=Ee.create();return function(o,s){var l=o.min.array,u=o.max.array,c=s.array;return e[0]=c[0]*l[0],e[1]=c[1]*l[0],e[2]=c[2]*l[0],t[0]=c[0]*u[0],t[1]=c[1]*u[0],t[2]=c[2]*u[0],r[0]=c[4]*l[1],r[1]=c[5]*l[1],r[2]=c[6]*l[1],n[0]=c[4]*u[1],n[1]=c[5]*u[1],n[2]=c[6]*u[1],a[0]=c[8]*l[2],a[1]=c[9]*l[2],a[2]=c[10]*l[2],i[0]=c[8]*u[2],i[1]=c[9]*u[2],i[2]=c[10]*u[2],l=this.min.array,u=this.max.array,l[0]=Math.min(e[0],t[0])+Math.min(r[0],n[0])+Math.min(a[0],i[0])+c[12],l[1]=Math.min(e[1],t[1])+Math.min(r[1],n[1])+Math.min(a[1],i[1])+c[13],l[2]=Math.min(e[2],t[2])+Math.min(r[2],n[2])+Math.min(a[2],i[2])+c[14],u[0]=Math.max(e[0],t[0])+Math.max(r[0],n[0])+Math.max(a[0],i[0])+c[12],u[1]=Math.max(e[1],t[1])+Math.max(r[1],n[1])+Math.max(a[1],i[1])+c[13],u[2]=Math.max(e[2],t[2])+Math.max(r[2],n[2])+Math.max(a[2],i[2])+c[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(e){var t=this.min.array,r=this.max.array,n=e.array,a=t[0],i=t[1],o=t[2],s=r[0],l=r[1],u=t[2],c=r[0],f=r[1],d=r[2];if(n[15]===1)t[0]=n[0]*a+n[12],t[1]=n[5]*i+n[13],r[2]=n[10]*o+n[14],r[0]=n[0]*c+n[12],r[1]=n[5]*f+n[13],t[2]=n[10]*d+n[14];else{var h=-1/o;t[0]=n[0]*a*h,t[1]=n[5]*i*h,r[2]=(n[10]*o+n[14])*h,h=-1/u,r[0]=n[0]*s*h,r[1]=n[5]*l*h,h=-1/d,t[2]=(n[10]*d+n[14])*h}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var e=this.vertices;if(!e){e=[];for(var t=0;t<8;t++)e[t]=Ee.fromValues(0,0,0);this.vertices=e}var r=this.min.array,n=this.max.array;return Ac(e[0],r[0],r[1],r[2]),Ac(e[1],r[0],n[1],r[2]),Ac(e[2],n[0],r[1],r[2]),Ac(e[3],n[0],n[1],r[2]),Ac(e[4],r[0],r[1],n[2]),Ac(e[5],r[0],n[1],n[2]),Ac(e[6],n[0],r[1],n[2]),Ac(e[7],n[0],n[1],n[2]),this},copy:function(e){var t=this.min,r=this.max;return Aw(t.array,e.min.array),Aw(r.array,e.max.array),t._dirty=!0,r._dirty=!0,this},clone:function(){var e=new FS;return e.copy(this),e}};const Ti=FS;var bgt=0,wgt=zi.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},function(){this.name||(this.name=(this.type||"NODE")+"_"+bgt++),this.position||(this.position=new mt),this.rotation||(this.rotation=new Yae),this.scale||(this.scale=new mt(1,1,1)),this.worldTransform=new Bt,this.localTransform=new Bt,this._children=[]},{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(e){var t=this._scene;if(t){var r=t._nodeRepository;delete r[this.name],r[e]=this}this.name=e},add:function(e){var t=e._parent;if(t!==this){t&&t.remove(e),e._parent=this,this._children.push(e);var r=this._scene;r&&r!==e.scene&&e.traverse(this._addSelfToScene,this),e._needsUpdateWorldTransform=!0}},remove:function(e){var t=this._children,r=t.indexOf(e);r<0||(t.splice(r,1),e._parent=null,this._scene&&e.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var e=this._children,t=0;t<e.length;t++)e[t]._parent=null,this._scene&&e[t].traverse(this._removeSelfFromScene,this);this._children=[]},getScene:function(){return this._scene},getParent:function(){return this._parent},_removeSelfFromScene:function(e){e._scene.removeFromScene(e),e._scene=null},_addSelfToScene:function(e){this._scene.addToScene(e),e._scene=this._scene},isAncestor:function(e){for(var t=e._parent;t;){if(t===this)return!0;t=t._parent}return!1},children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},getChildByName:function(e){for(var t=this._children,r=0;r<t.length;r++)if(t[r].name===e)return t[r]},getDescendantByName:function(e){for(var t=this._children,r=0;r<t.length;r++){var n=t[r];if(n.name===e)return n;var a=n.getDescendantByName(e);if(a)return a}},queryNode:function(e){if(e){for(var t=e.split("/"),r=this,n=0;n<t.length;n++){var a=t[n];if(a){for(var i=!1,o=r._children,s=0;s<o.length;s++){var l=o[s];if(l.name===a){r=l,i=!0;break}}if(!i)return}}return r}},getPath:function(e){if(!this._parent)return"/";for(var t=this._parent,r=this.name;t._parent&&(r=t.name+"/"+r,t._parent!=e);)t=t._parent;return!t._parent&&e?null:r},traverse:function(e,t){e.call(t,this);for(var r=this._children,n=0,a=r.length;n<a;n++)r[n].traverse(e,t)},eachChild:function(e,t){for(var r=this._children,n=0,a=r.length;n<a;n++){var i=r[n];e.call(t,i,n)}},setLocalTransform:function(e){ut.copy(this.localTransform.array,e.array),this.decomposeLocalTransform()},decomposeLocalTransform:function(e){var t=e?null:this.scale;this.localTransform.decomposeMatrix(t,this.rotation,this.position)},setWorldTransform:function(e){ut.copy(this.worldTransform.array,e.array),this.decomposeWorldTransform()},decomposeWorldTransform:function(){var e=ut.create();return function(t){var r=this.localTransform,n=this.worldTransform;this._parent?(ut.invert(e,this._parent.worldTransform.array),ut.multiply(r.array,e,n.array)):ut.copy(r.array,n.array);var a=t?null:this.scale;r.decomposeMatrix(a,this.rotation,this.position)}}(),transformNeedsUpdate:function(){return this.position._dirty||this.rotation._dirty||this.scale._dirty},updateLocalTransform:function(){var e=this.position,t=this.rotation,r=this.scale;if(this.transformNeedsUpdate()){var n=this.localTransform.array;ut.fromRotationTranslation(n,t.array,e.array),ut.scale(n,n,r.array),t._dirty=!1,r._dirty=!1,e._dirty=!1,this._needsUpdateWorldTransform=!0}},_updateWorldTransformTopDown:function(){var e=this.localTransform.array,t=this.worldTransform.array;this._parent?ut.multiplyAffine(t,this._parent.worldTransform.array,e):ut.copy(t,e)},updateWorldTransform:function(){for(var e=this;e&&e.getParent()&&e.getParent().transformNeedsUpdate();)e=e.getParent();e.update()},update:function(e){this.autoUpdateLocalTransform?this.updateLocalTransform():e=!0,(e||this._needsUpdateWorldTransform)&&(this._updateWorldTransformTopDown(),e=!0,this._needsUpdateWorldTransform=!1);for(var t=this._children,r=0,n=t.length;r<n;r++)t[r].update(e)},getBoundingBox:function(){function e(a){return!a.invisible&&a.geometry}var t=new Ti,r=new Bt,n=new Bt;return function(a,i){return i=i||new Ti,this._parent?Bt.invert(n,this._parent.worldTransform):Bt.identity(n),this.traverse(function(o){o.geometry&&o.geometry.boundingBox&&(t.copy(o.geometry.boundingBox),Bt.multiply(r,n,o.worldTransform),t.applyTransform(r),i.union(t))},this,e),i}}(),getWorldPosition:function(e){this.transformNeedsUpdate()&&this.updateWorldTransform();var t=this.worldTransform.array;if(e){var r=e.array;return r[0]=t[12],r[1]=t[13],r[2]=t[14],e}else return new mt(t[12],t[13],t[14])},clone:function(){var e=new this.constructor,t=this._children;e.setName(this.name),e.position.copy(this.position),e.rotation.copy(this.rotation),e.scale.copy(this.scale);for(var r=0;r<t.length;r++)e.add(t[r].clone());return e},rotateAround:function(){var e=new mt,t=new Bt;return function(r,n,a){e.copy(this.position).subtract(r);var i=this.localTransform;i.identity(),i.translate(r),i.rotate(a,n),t.fromRotationTranslation(this.rotation,e),i.multiply(t),i.scale(this.scale),this.decomposeLocalTransform(),this._needsUpdateWorldTransform=!0}}(),lookAt:function(){var e=new Bt;return function(t,r){e.lookAt(this.position,t,r||this.localTransform.y).invert(),this.setLocalTransform(e),this.target=t}}()});const Nl=wgt;var Do=Nl.extend({material:null,geometry:null,mode:$e.TRIANGLES,_renderInfo:null},{__program:null,lightGroup:0,renderOrder:0,culling:!0,cullFace:$e.BACK,frontFace:$e.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(e){},afterRender:function(e,t){},getBoundingBox:function(e,t){return t=Nl.prototype.getBoundingBox.call(this,e,t),this.geometry&&this.geometry.boundingBox&&t.union(this.geometry.boundingBox),t},clone:function(){var e=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"];return function(){var t=Nl.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var r=0;r<e.length;r++){var n=e[r];t[n]!==this[n]&&(t[n]=this[n])}return t}}()});Do.POINTS=$e.POINTS;Do.LINES=$e.LINES;Do.LINE_LOOP=$e.LINE_LOOP;Do.LINE_STRIP=$e.LINE_STRIP;Do.TRIANGLES=$e.TRIANGLES;Do.TRIANGLE_STRIP=$e.TRIANGLE_STRIP;Do.TRIANGLE_FAN=$e.TRIANGLE_FAN;Do.BACK=$e.BACK;Do.FRONT=$e.FRONT;Do.FRONT_AND_BACK=$e.FRONT_AND_BACK;Do.CW=$e.CW;Do.CCW=$e.CCW;const eR=Do;var s4=zi.extend({scene:null,camera:null,renderer:null},function(){this._ray=new A2,this._ndc=new mo},{pick:function(e,t,r){var n=this.pickAll(e,t,[],r);return n[0]||null},pickAll:function(e,t,r,n){return this.renderer.screenToNDC(e,t,this._ndc),this.camera.castRay(this._ndc,this._ray),r=r||[],this._intersectNode(this.scene,r,n||!1),r.sort(this._intersectionCompareFunc),r},_intersectNode:function(e,t,r){e instanceof eR&&e.isRenderable()&&(!e.ignorePicking||r)&&(e.mode===$e.TRIANGLES&&e.geometry.isUseIndices()||e.geometry.pickByRay||e.geometry.pick)&&this._intersectRenderable(e,t);for(var n=0;n<e._children.length;n++)this._intersectNode(e._children[n],t,r)},_intersectRenderable:function(){var e=new mt,t=new mt,r=new mt,n=new A2,a=new Bt;return function(i,o){var s=i.isSkinnedMesh();n.copy(this._ray),Bt.invert(a,i.worldTransform),s||n.applyTransform(a);var l=i.geometry,u=s?i.skeleton.boundingBox:l.boundingBox;if(!(u&&!n.intersectBoundingBox(u))){if(l.pick){l.pick(this._ndc.x,this._ndc.y,this.renderer,this.camera,i,o);return}else if(l.pickByRay){l.pickByRay(n,i,o);return}var c=i.cullFace===$e.BACK&&i.frontFace===$e.CCW||i.cullFace===$e.FRONT&&i.frontFace===$e.CW,f,d=l.indices,h=l.attributes.position,v=l.attributes.weight,p=l.attributes.joint,g,m=[];if(!(!h||!h.value||!d)){if(s){g=i.skeleton.getSubSkinMatrices(i.__uid__,i.joints);for(var y=0;y<i.joints.length;y++){m[y]=m[y]||[];for(var _=0;_<16;_++)m[y][_]=g[y*16+_]}var w=[],x=[],S=[],T=[],A=[],C=l.attributes.skinnedPosition;(!C||!C.value)&&(l.createAttribute("skinnedPosition","f",3),C=l.attributes.skinnedPosition,C.init(l.vertexCount));for(var y=0;y<l.vertexCount;y++){h.get(y,w),v.get(y,x),p.get(y,S),x[3]=1-x[0]-x[1]-x[2],Ee.set(T,0,0,0);for(var _=0;_<4;_++)S[_]>=0&&x[_]>1e-4&&(Ee.transformMat4(A,w,m[S[_]]),Ee.scaleAndAdd(T,T,A,x[_]));C.set(y,T)}}for(var y=0;y<d.length;y+=3){var M=d[y],E=d[y+1],D=d[y+2],P=s?l.attributes.skinnedPosition:h;if(P.get(M,e.array),P.get(E,t.array),P.get(D,r.array),c?f=n.intersectTriangle(e,t,r,i.culling):f=n.intersectTriangle(e,r,t,i.culling),f){var L=new mt;s?mt.copy(L,f):mt.transformMat4(L,f,i.worldTransform),o.push(new s4.Intersection(f,L,i,[M,E,D],y/3,mt.dist(L,this._ray.origin)))}}}}}}(),_intersectionCompareFunc:function(e,t){return e.distance-t.distance}});s4.Intersection=function(e,t,r,n,a,i){this.point=e,this.pointWorld=t,this.target=r,this.triangle=n,this.triangleIndex=a,this.distance=i};const Sgt=s4;var ay="__dt__",T2=function(){this._contextId=0,this._caches=[],this._context={}};T2.prototype={use:function(e,t){var r=this._caches;r[e]||(r[e]={},t&&(r[e]=t())),this._contextId=e,this._context=r[e]},put:function(e,t){this._context[e]=t},get:function(e){return this._context[e]},dirty:function(e){e=e||"";var t=ay+e;this.put(t,!0)},dirtyAll:function(e){e=e||"";for(var t=ay+e,r=this._caches,n=0;n<r.length;n++)r[n]&&(r[n][t]=!0)},fresh:function(e){e=e||"";var t=ay+e;this.put(t,!1)},freshAll:function(e){e=e||"";for(var t=ay+e,r=this._caches,n=0;n<r.length;n++)r[n]&&(r[n][t]=!1)},isDirty:function(e){e=e||"";var t=ay+e,r=this._context;return!r.hasOwnProperty(t)||r[t]===!0},deleteContext:function(e){delete this._caches[e],this._context={}},delete:function(e){delete this._context[e]},clearAll:function(){this._caches={}},getContext:function(){return this._context},eachContext:function(e,t){var r=Object.keys(this._caches);r.forEach(function(n){e&&e.call(t,n)})},miss:function(e){return!this._context.hasOwnProperty(e)}};T2.prototype.constructor=T2;const l4=T2;var Br=zi.extend({width:512,height:512,type:$e.UNSIGNED_BYTE,format:$e.RGBA,wrapS:$e.REPEAT,wrapT:$e.REPEAT,minFilter:$e.LINEAR_MIPMAP_LINEAR,magFilter:$e.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1,__used:0},function(){this._cache=new l4},{getWebGLTexture:function(e){var t=e.gl,r=this._cache;return r.use(e.__uid__),r.miss("webgl_texture")&&r.put("webgl_texture",t.createTexture()),this.dynamic?this.update(e):r.isDirty()&&(this.update(e),r.fresh()),r.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(e){},updateCommon:function(e){var t=e.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,this.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===$e.DEPTH_COMPONENT&&(this.useMipmap=!1);var r=e.getGLExtension("EXT_sRGB");this.format===Br.SRGB&&!r&&(this.format=Br.RGB),this.format===Br.SRGB_ALPHA&&!r&&(this.format=Br.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?$e.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?$e.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var e=this.minFilter;return this.NPOT||!this.useMipmap?e===$e.NEAREST_MIPMAP_NEAREST||e===$e.NEAREST_MIPMAP_LINEAR?$e.NEAREST:e===$e.LINEAR_MIPMAP_LINEAR||e===$e.LINEAR_MIPMAP_NEAREST?$e.LINEAR:e:e},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(e){--e;for(var t=1;t<32;t<<=1)e=e|e>>t;return e+1},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("webgl_texture");r&&e.gl.deleteTexture(r),t.deleteContext(e.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(Br.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e}});Object.defineProperty(Br.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e}});Br.BYTE=$e.BYTE;Br.UNSIGNED_BYTE=$e.UNSIGNED_BYTE;Br.SHORT=$e.SHORT;Br.UNSIGNED_SHORT=$e.UNSIGNED_SHORT;Br.INT=$e.INT;Br.UNSIGNED_INT=$e.UNSIGNED_INT;Br.FLOAT=$e.FLOAT;Br.HALF_FLOAT=36193;Br.UNSIGNED_INT_24_8_WEBGL=34042;Br.DEPTH_COMPONENT=$e.DEPTH_COMPONENT;Br.DEPTH_STENCIL=$e.DEPTH_STENCIL;Br.ALPHA=$e.ALPHA;Br.RGB=$e.RGB;Br.RGBA=$e.RGBA;Br.LUMINANCE=$e.LUMINANCE;Br.LUMINANCE_ALPHA=$e.LUMINANCE_ALPHA;Br.SRGB=35904;Br.SRGB_ALPHA=35906;Br.COMPRESSED_RGB_S3TC_DXT1_EXT=33776;Br.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777;Br.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778;Br.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779;Br.NEAREST=$e.NEAREST;Br.LINEAR=$e.LINEAR;Br.NEAREST_MIPMAP_NEAREST=$e.NEAREST_MIPMAP_NEAREST;Br.LINEAR_MIPMAP_NEAREST=$e.LINEAR_MIPMAP_NEAREST;Br.NEAREST_MIPMAP_LINEAR=$e.NEAREST_MIPMAP_LINEAR;Br.LINEAR_MIPMAP_LINEAR=$e.LINEAR_MIPMAP_LINEAR;Br.REPEAT=$e.REPEAT;Br.CLAMP_TO_EDGE=$e.CLAMP_TO_EDGE;Br.MIRRORED_REPEAT=$e.MIRRORED_REPEAT;const $t=Br;var Po=eR.extend({skeleton:null,joints:null},function(){this.joints||(this.joints=[])},{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var e=eR.prototype.clone.call(this);return e.skeleton=this.skeleton,this.joints&&(e.joints=this.joints.slice()),e}});Po.POINTS=$e.POINTS;Po.LINES=$e.LINES;Po.LINE_LOOP=$e.LINE_LOOP;Po.LINE_STRIP=$e.LINE_STRIP;Po.TRIANGLES=$e.TRIANGLES;Po.TRIANGLE_STRIP=$e.TRIANGLE_STRIP;Po.TRIANGLE_FAN=$e.TRIANGLE_FAN;Po.BACK=$e.BACK;Po.FRONT=$e.FRONT;Po.FRONT_AND_BACK=$e.FRONT_AND_BACK;Po.CW=$e.CW;Po.CCW=$e.CCW;const dh=Po;var FT={};FT.isPowerOfTwo=function(e){return(e&e-1)===0};FT.nextPowerOfTwo=function(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e};FT.nearestPowerOfTwo=function(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))};const jae=FT;var V$=jae.isPowerOfTwo;function z$(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function xgt(e,t){var r=z$(e.width),n=z$(e.height);t=t||document.createElement("canvas"),t.width=r,t.height=n;var a=t.getContext("2d");return a.drawImage(e.image,0,0,r,n),t}var u4=$t.extend(function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}},{textureType:"texture2D",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,n=this.type,a=!!(this.convertToPOT&&!this.mipmaps.length&&this.image&&(this.wrapS===$t.REPEAT||this.wrapT===$t.REPEAT)&&this.NPOT);t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,a?this.wrapS:this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,a?this.wrapT:this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,a?this.magFilter:this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a?this.minFilter:this.getAvailableMinFilter());var i=e.getGLExtension("EXT_texture_filter_anisotropic");if(i&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_2D,i.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),n===36193){var o=e.getGLExtension("OES_texture_half_float");o||(n=$e.FLOAT)}if(this.mipmaps.length)for(var s=this.width,l=this.height,u=0;u<this.mipmaps.length;u++){var c=this.mipmaps[u];this._updateTextureData(t,c,u,s,l,r,n,!1),s/=2,l/=2}else this._updateTextureData(t,this,0,this.width,this.height,r,n,a),this.useMipmap&&(!this.NPOT||a)&&t.generateMipmap(t.TEXTURE_2D);t.bindTexture(t.TEXTURE_2D,null)},_updateTextureData:function(e,t,r,n,a,i,o,s){if(t.image){var l=t.image;s&&(this._potCanvas=xgt(this,this._potCanvas),l=this._potCanvas),e.texImage2D(e.TEXTURE_2D,r,i,i,o,l)}else i<=$t.COMPRESSED_RGBA_S3TC_DXT5_EXT&&i>=$t.COMPRESSED_RGB_S3TC_DXT1_EXT?e.compressedTexImage2D(e.TEXTURE_2D,r,i,n,a,0,t.pixels):e.texImage2D(e.TEXTURE_2D,r,i,n,a,0,i,o,t.pixels)},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_2D,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_2D))},isPowerOfTwo:function(){return V$(this.width)&&V$(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!!(this.width&&this.height)},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_2D,null)},load:function(e,t){var r=aa.createImage();t&&(r.crossOrigin=t);var n=this;return r.onload=function(){n.dirty(),n.trigger("success",n)},r.onerror=function(){n.trigger("error",n)},r.src=e,this.image=r,this}});Object.defineProperty(u4.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(e){this.image?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}});Object.defineProperty(u4.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(e){this.image?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});const _r=u4;function Kae(e){return{byte:aa.Int8Array,ubyte:aa.Uint8Array,short:aa.Int16Array,ushort:aa.Uint16Array}[e]||aa.Float32Array}function hD(e){return"attr_"+e}function Sg(e,t,r,n){switch(this.name=e,this.type=t,this.size=r,this.semantic=n||"",this.value=null,r){case 1:this.get=function(a){return this.value[a]},this.set=function(a,i){this.value[a]=i},this.copy=function(a,i){this.value[a]=this.value[a]};break;case 2:this.get=function(a,i){var o=this.value;return i[0]=o[a*2],i[1]=o[a*2+1],i},this.set=function(a,i){var o=this.value;o[a*2]=i[0],o[a*2+1]=i[1]},this.copy=function(a,i){var o=this.value;i*=2,a*=2,o[a]=o[i],o[a+1]=o[i+1]};break;case 3:this.get=function(a,i){var o=a*3,s=this.value;return i[0]=s[o],i[1]=s[o+1],i[2]=s[o+2],i},this.set=function(a,i){var o=a*3,s=this.value;s[o]=i[0],s[o+1]=i[1],s[o+2]=i[2]},this.copy=function(a,i){var o=this.value;i*=3,a*=3,o[a]=o[i],o[a+1]=o[i+1],o[a+2]=o[i+2]};break;case 4:this.get=function(a,i){var o=this.value,s=a*4;return i[0]=o[s],i[1]=o[s+1],i[2]=o[s+2],i[3]=o[s+3],i},this.set=function(a,i){var o=this.value,s=a*4;o[s]=i[0],o[s+1]=i[1],o[s+2]=i[2],o[s+3]=i[3]},this.copy=function(a,i){var o=this.value;i*=4,a*=4,o[a]=o[i],o[a+1]=o[i+1],o[a+2]=o[i+2],o[a+3]=o[i+3]}}}Sg.prototype.init=function(e){if(!this.value||this.value.length!==e*this.size){var t=Kae(this.type);this.value=new t(e*this.size)}};Sg.prototype.fromArray=function(e){var t=Kae(this.type),r;if(e[0]&&e[0].length){var n=0,a=this.size;r=new t(e.length*a);for(var i=0;i<e.length;i++)for(var o=0;o<a;o++)r[n++]=e[i][o]}else r=new t(e);this.value=r};Sg.prototype.clone=function(e){var t=new Sg(this.name,this.type,this.size,this.semantic);return e&&console.warn("todo"),t};function Xae(e,t,r,n,a){this.name=e,this.type=t,this.buffer=r,this.size=n,this.semantic=a,this.symbol="",this.needsRemove=!1}function Zae(e){this.buffer=e,this.count=0}var Xu=zi.extend(function(){return{attributes:{},indices:null,dynamic:!0,_enabledAttributes:null,__used:0}},function(){this._cache=new l4,this._attributeList=Object.keys(this.attributes),this.__vaoCache={}},{mainAttribute:"",pick:null,pickByRay:null,dirty:function(){for(var e=this.getEnabledAttributes(),t=0;t<e.length;t++)this.dirtyAttribute(e[t]);this.dirtyIndices(),this._enabledAttributes=null,this._cache.dirty("any")},dirtyIndices:function(){this._cache.dirtyAll("indices")},dirtyAttribute:function(e){this._cache.dirtyAll(hD(e)),this._cache.dirtyAll("attributes")},getTriangleIndices:function(e,t){if(e<this.triangleCount&&e>=0){t||(t=[]);var r=this.indices;return t[0]=r[e*3],t[1]=r[e*3+1],t[2]=r[e*3+2],t}},setTriangleIndices:function(e,t){var r=this.indices;r[e*3]=t[0],r[e*3+1]=t[1],r[e*3+2]=t[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(e){var t,r=this.vertexCount>65535?aa.Uint32Array:aa.Uint16Array;if(e[0]&&e[0].length){var n=0,a=3;t=new r(e.length*a);for(var i=0;i<e.length;i++)for(var o=0;o<a;o++)t[n++]=e[i][o]}else t=new r(e);this.indices=t},createAttribute:function(e,t,r,n){var a=new Sg(e,t,r,n);return this.attributes[e]&&this.removeAttribute(e),this.attributes[e]=a,this._attributeList.push(e),a},removeAttribute:function(e){var t=this._attributeList,r=t.indexOf(e);return r>=0?(t.splice(r,1),delete this.attributes[e],!0):!1},getAttribute:function(e){return this.attributes[e]},getEnabledAttributes:function(){var e=this._enabledAttributes,t=this._attributeList;if(e)return e;for(var r=[],n=this.vertexCount,a=0;a<t.length;a++){var i=t[a],o=this.attributes[i];o.value&&o.value.length===n*o.size&&r.push(i)}return this._enabledAttributes=r,r},getBufferChunks:function(e){var t=this._cache;t.use(e.__uid__);var r=t.isDirty("attributes"),n=t.isDirty("indices");if(r||n){this._updateBuffer(e.gl,r,n);for(var a=this.getEnabledAttributes(),i=0;i<a.length;i++)t.fresh(hD(a[i]));t.fresh("attributes"),t.fresh("indices")}return t.fresh("any"),t.get("chunks")},_updateBuffer:function(e,t,r){var n=this._cache,a=n.get("chunks"),i=!1;a||(a=[],a[0]={attributeBuffers:[],indicesBuffer:null},n.put("chunks",a),i=!0);var o=a[0],s=o.attributeBuffers,l=o.indicesBuffer;if(t||i){var u=this.getEnabledAttributes(),c={};if(!i)for(var f=0;f<s.length;f++)c[s[f].name]=s[f];for(var d=0;d<u.length;d++){var h=u[d],v=this.attributes[h],p;i||(p=c[h]);var g;p?g=p.buffer:g=e.createBuffer(),n.isDirty(hD(h))&&(e.bindBuffer(e.ARRAY_BUFFER,g),e.bufferData(e.ARRAY_BUFFER,v.value,this.dynamic?e.DYNAMIC_DRAW:e.STATIC_DRAW)),s[d]=new Xae(h,v.type,g,v.size,v.semantic)}for(var f=d;f<s.length;f++)e.deleteBuffer(s[f].buffer);s.length=d}this.isUseIndices()&&(r||i)&&(l||(l=new Zae(e.createBuffer()),o.indicesBuffer=l),l.count=this.indices.length,e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,l.buffer),e.bufferData(e.ELEMENT_ARRAY_BUFFER,this.indices,this.dynamic?e.DYNAMIC_DRAW:e.STATIC_DRAW))},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("chunks");if(r)for(var n=0;n<r.length;n++){for(var a=r[n],i=0;i<a.attributeBuffers.length;i++){var o=a.attributeBuffers[i];e.gl.deleteBuffer(o.buffer)}a.indicesBuffer&&e.gl.deleteBuffer(a.indicesBuffer.buffer)}if(this.__vaoCache){var s=e.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var u=this.__vaoCache[l].vao;u&&s.deleteVertexArrayOES(u)}}this.__vaoCache={},t.deleteContext(e.__uid__)}});Object.defineProperty&&(Object.defineProperty(Xu.prototype,"vertexCount",{enumerable:!1,get:function(){var e=this.attributes[this.mainAttribute];return e||(e=this.attributes[this._attributeList[0]]),!e||!e.value?0:e.value.length/e.size}}),Object.defineProperty(Xu.prototype,"triangleCount",{enumerable:!1,get:function(){var e=this.indices;return e?e.length/3:0}}));Xu.STATIC_DRAW=$e.STATIC_DRAW;Xu.DYNAMIC_DRAW=$e.DYNAMIC_DRAW;Xu.STREAM_DRAW=$e.STREAM_DRAW;Xu.AttributeBuffer=Xae;Xu.IndicesBuffer=Zae;Xu.Attribute=Sg;const vv=Xu;var _i=Ee.create,jv=Ee.add,Td=Ee.set,ml=vv.Attribute,pv=vv.extend(function(){return{attributes:{position:new ml("position","float",3,"POSITION"),texcoord0:new ml("texcoord0","float",2,"TEXCOORD_0"),texcoord1:new ml("texcoord1","float",2,"TEXCOORD_1"),normal:new ml("normal","float",3,"NORMAL"),tangent:new ml("tangent","float",4,"TANGENT"),color:new ml("color","float",4,"COLOR"),weight:new ml("weight","float",3,"WEIGHT"),joint:new ml("joint","float",4,"JOINT"),barycentric:new ml("barycentric","float",3,null)},boundingBox:null}},{mainAttribute:"position",updateBoundingBox:function(){var e=this.boundingBox;e||(e=this.boundingBox=new Ti);var t=this.attributes.position.value;if(t&&t.length){var r=e.min,n=e.max,a=r.array,i=n.array;Ee.set(a,t[0],t[1],t[2]),Ee.set(i,t[0],t[1],t[2]);for(var o=3;o<t.length;){var s=t[o++],l=t[o++],u=t[o++];s<a[0]&&(a[0]=s),l<a[1]&&(a[1]=l),u<a[2]&&(a[2]=u),s>i[0]&&(i[0]=s),l>i[1]&&(i[1]=l),u>i[2]&&(i[2]=u)}r._dirty=!0,n._dirty=!0}},generateVertexNormals:function(){if(this.vertexCount){var e=this.indices,t=this.attributes,r=t.position.value,n=t.normal.value;if(!n||n.length!==r.length)n=t.normal.value=new aa.Float32Array(r.length);else for(var a=0;a<n.length;a++)n[a]=0;for(var i=_i(),o=_i(),s=_i(),l=_i(),u=_i(),c=_i(),f=e?e.length:this.vertexCount,d,h,v,p=0;p<f;){e?(d=e[p++],h=e[p++],v=e[p++]):(d=p++,h=p++,v=p++),Td(i,r[d*3],r[d*3+1],r[d*3+2]),Td(o,r[h*3],r[h*3+1],r[h*3+2]),Td(s,r[v*3],r[v*3+1],r[v*3+2]),Ee.sub(l,i,o),Ee.sub(u,o,s),Ee.cross(c,l,u);for(var a=0;a<3;a++)n[d*3+a]=n[d*3+a]+c[a],n[h*3+a]=n[h*3+a]+c[a],n[v*3+a]=n[v*3+a]+c[a]}for(var a=0;a<n.length;)Td(c,n[a],n[a+1],n[a+2]),Ee.normalize(c,c),n[a++]=c[0],n[a++]=c[1],n[a++]=c[2];this.dirty()}},generateFaceNormals:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var e=this.indices,t=this.attributes,r=t.position.value,n=t.normal.value,a=_i(),i=_i(),o=_i(),s=_i(),l=_i(),u=_i();n||(n=t.normal.value=new Float32Array(r.length));for(var c=e?e.length:this.vertexCount,f,d,h,v=0;v<c;){e?(f=e[v++],d=e[v++],h=e[v++]):(f=v++,d=v++,h=v++),Td(a,r[f*3],r[f*3+1],r[f*3+2]),Td(i,r[d*3],r[d*3+1],r[d*3+2]),Td(o,r[h*3],r[h*3+1],r[h*3+2]),Ee.sub(s,a,i),Ee.sub(l,i,o),Ee.cross(u,s,l),Ee.normalize(u,u);for(var p=0;p<3;p++)n[f*3+p]=u[p],n[d*3+p]=u[p],n[h*3+p]=u[p]}this.dirty()}},generateTangents:function(){if(this.vertexCount){var e=this.vertexCount,t=this.attributes;t.tangent.value||(t.tangent.value=new Float32Array(e*4));var r=t.texcoord0.value,n=t.position.value,a=t.tangent.value,i=t.normal.value;if(!r){console.warn("Geometry without texcoords can't generate tangents.");return}for(var o=[],s=[],l=0;l<e;l++)o[l]=[0,0,0],s[l]=[0,0,0];for(var u=[0,0,0],c=[0,0,0],f=this.indices,d=f?f.length:this.vertexCount,h,v,p,l=0;l<d;){f?(h=f[l++],v=f[l++],p=f[l++]):(h=l++,v=l++,p=l++);var g=r[h*2],m=r[v*2],y=r[p*2],_=r[h*2+1],w=r[v*2+1],x=r[p*2+1],S=n[h*3],T=n[v*3],A=n[p*3],C=n[h*3+1],M=n[v*3+1],E=n[p*3+1],D=n[h*3+2],P=n[v*3+2],L=n[p*3+2],I=T-S,O=A-S,R=M-C,B=E-C,k=P-D,z=L-D,$=m-g,j=y-g,X=w-_,Q=x-_,se=1/($*Q-X*j);u[0]=(Q*I-X*O)*se,u[1]=(Q*R-X*B)*se,u[2]=(Q*k-X*z)*se,c[0]=($*O-j*I)*se,c[1]=($*B-j*R)*se,c[2]=($*z-j*k)*se,jv(o[h],o[h],u),jv(o[v],o[v],u),jv(o[p],o[p],u),jv(s[h],s[h],c),jv(s[v],s[v],c),jv(s[p],s[p],c)}for(var ee=_i(),K=_i(),Z=_i(),l=0;l<e;l++){Z[0]=i[l*3],Z[1]=i[l*3+1],Z[2]=i[l*3+2];var ne=o[l];Ee.scale(ee,Z,Ee.dot(Z,ne)),Ee.sub(ee,ne,ee),Ee.normalize(ee,ee),Ee.cross(K,Z,ne),a[l*4]=ee[0],a[l*4+1]=ee[1],a[l*4+2]=ee[2],a[l*4+3]=Ee.dot(K,s[l])<0?-1:1}this.dirty()}},isUniqueVertex:function(){return this.isUseIndices()?this.vertexCount===this.indices.length:!0},generateUniqueVertex:function(){if(!(!this.vertexCount||!this.indices)){this.indices.length>65535&&(this.indices=new aa.Uint32Array(this.indices));for(var e=this.attributes,t=this.indices,r=this.getEnabledAttributes(),n={},a=0;a<r.length;a++){var i=r[a];n[i]=e[i].value,e[i].init(this.indices.length)}for(var o=0,s=0;s<t.length;s++){for(var l=t[s],a=0;a<r.length;a++)for(var i=r[a],u=e[i].value,c=e[i].size,f=0;f<c;f++)u[o*c+f]=n[i][l*c+f];t[s]=o,o++}this.dirty()}},generateBarycentric:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var e=this.attributes,t=e.barycentric.value,r=this.indices;if(!(t&&t.length===r.length*3)){t=e.barycentric.value=new Float32Array(r.length*3);for(var n=0;n<(r?r.length:this.vertexCount/3);)for(var a=0;a<3;a++){var i=r?r[n++]:n*3+a;t[i*3+a]=1}this.dirty()}}},applyTransform:function(e){var t=this.attributes,r=t.position.value,n=t.normal.value,a=t.tangent.value;e=e.array;var i=ut.create();ut.invert(i,e),ut.transpose(i,i);var o=Ee.transformMat4,s=Ee.forEach;s(r,3,0,null,o,e),n&&s(n,3,0,null,o,i),a&&s(a,4,0,null,o,i),this.boundingBox&&this.updateBoundingBox()},dispose:function(e){var t=this._cache;t.use(e.__uid__);var r=t.get("chunks");if(r)for(var n=0;n<r.length;n++){for(var a=r[n],i=0;i<a.attributeBuffers.length;i++){var o=a.attributeBuffers[i];e.gl.deleteBuffer(o.buffer)}a.indicesBuffer&&e.gl.deleteBuffer(a.indicesBuffer.buffer)}if(this.__vaoCache){var s=e.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var u=this.__vaoCache[l].vao;u&&s.deleteVertexArrayOES(u)}}this.__vaoCache={},t.deleteContext(e.__uid__)}});pv.STATIC_DRAW=vv.STATIC_DRAW;pv.DYNAMIC_DRAW=vv.DYNAMIC_DRAW;pv.STREAM_DRAW=vv.STREAM_DRAW;pv.AttributeBuffer=vv.AttributeBuffer;pv.IndicesBuffer=vv.IndicesBuffer;pv.Attribute=ml;const Hr=pv,Agt=`vec3 calcAmbientSHLight(int idx, vec3 N) {
|
||
int offset = 9 * idx;
|
||
return ambientSHLightCoefficients[0]
|
||
+ ambientSHLightCoefficients[1] * N.x
|
||
+ ambientSHLightCoefficients[2] * N.y
|
||
+ ambientSHLightCoefficients[3] * N.z
|
||
+ ambientSHLightCoefficients[4] * N.x * N.z
|
||
+ ambientSHLightCoefficients[5] * N.z * N.y
|
||
+ ambientSHLightCoefficients[6] * N.y * N.x
|
||
+ ambientSHLightCoefficients[7] * (3.0 * N.z * N.z - 1.0)
|
||
+ ambientSHLightCoefficients[8] * (N.x * N.x - N.y * N.y);
|
||
}`;var As="uniform vec3 ",iy="uniform float ",Kv="@export clay.header.",Xv="@end",Ba=":unconfigurable;";const Tgt=[Kv+"directional_light",As+"directionalLightDirection[DIRECTIONAL_LIGHT_COUNT]"+Ba,As+"directionalLightColor[DIRECTIONAL_LIGHT_COUNT]"+Ba,Xv,Kv+"ambient_light",As+"ambientLightColor[AMBIENT_LIGHT_COUNT]"+Ba,Xv,Kv+"ambient_sh_light",As+"ambientSHLightColor[AMBIENT_SH_LIGHT_COUNT]"+Ba,As+"ambientSHLightCoefficients[AMBIENT_SH_LIGHT_COUNT * 9]"+Ba,Agt,Xv,Kv+"ambient_cubemap_light",As+"ambientCubemapLightColor[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Ba,"uniform samplerCube ambientCubemapLightCubemap[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Ba,"uniform sampler2D ambientCubemapLightBRDFLookup[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Ba,Xv,Kv+"point_light",As+"pointLightPosition[POINT_LIGHT_COUNT]"+Ba,iy+"pointLightRange[POINT_LIGHT_COUNT]"+Ba,As+"pointLightColor[POINT_LIGHT_COUNT]"+Ba,Xv,Kv+"spot_light",As+"spotLightPosition[SPOT_LIGHT_COUNT]"+Ba,As+"spotLightDirection[SPOT_LIGHT_COUNT]"+Ba,iy+"spotLightRange[SPOT_LIGHT_COUNT]"+Ba,iy+"spotLightUmbraAngleCosine[SPOT_LIGHT_COUNT]"+Ba,iy+"spotLightPenumbraAngleCosine[SPOT_LIGHT_COUNT]"+Ba,iy+"spotLightFalloffFactor[SPOT_LIGHT_COUNT]"+Ba,As+"spotLightColor[SPOT_LIGHT_COUNT]"+Ba,Xv].join(`
|
||
`);nt.import(Tgt);var Cgt=Nl.extend(function(){return{color:[1,1,1],intensity:1,castShadow:!0,shadowResolution:512,group:0}},{type:"",clone:function(){var e=Nl.prototype.clone.call(this);return e.color=Array.prototype.slice.call(this.color),e.intensity=this.intensity,e.castShadow=this.castShadow,e.shadowResolution=this.shadowResolution,e}});const tl=Cgt;var VS=function(e,t){this.normal=e||new mt(0,1,0),this.distance=t||0};VS.prototype={constructor:VS,distanceToPoint:function(e){return Ee.dot(e.array,this.normal.array)-this.distance},projectPoint:function(e,t){t||(t=new mt);var r=this.distanceToPoint(e);return Ee.scaleAndAdd(t.array,e.array,this.normal.array,-r),t._dirty=!0,t},normalize:function(){var e=1/Ee.len(this.normal.array);Ee.scale(this.normal.array,e),this.distance*=e},intersectFrustum:function(e){for(var t=e.vertices,r=this.normal.array,n=Ee.dot(t[0].array,r)>this.distance,a=1;a<8;a++)if(Ee.dot(t[a].array,r)>this.distance!=n)return!0},intersectLine:function(){var e=Ee.create();return function(t,r,n){var a=this.distanceToPoint(t),i=this.distanceToPoint(r);if(a>0&&i>0||a<0&&i<0)return null;var o=this.normal.array,s=this.distance,l=t.array;Ee.sub(e,r.array,t.array),Ee.normalize(e,e);var u=Ee.dot(o,e);if(u===0)return null;n||(n=new mt);var c=(Ee.dot(o,l)-s)/u;return Ee.scaleAndAdd(n.array,l,e,-c),n._dirty=!0,n}}(),applyTransform:function(){var e=ut.create(),t=Et.create(),r=Et.create();return r[3]=1,function(n){n=n.array,Ee.scale(r,this.normal.array,this.distance),Et.transformMat4(r,r,n),this.distance=Ee.dot(r,this.normal.array),ut.invert(e,n),ut.transpose(e,e),t[3]=0,Ee.copy(t,this.normal.array),Et.transformMat4(t,t,e),Ee.copy(this.normal.array,t)}}(),copy:function(e){Ee.copy(this.normal.array,e.normal.array),this.normal._dirty=!0,this.distance=e.distance},clone:function(){var e=new VS;return e.copy(this),e}};const qae=VS;var Zn=Ee.set,H$=Ee.copy,G$=Ee.transformMat4,vD=Math.min,pD=Math.max,Qae=function(){this.planes=[];for(var e=0;e<6;e++)this.planes.push(new qae);this.boundingBox=new Ti,this.vertices=[];for(var e=0;e<8;e++)this.vertices[e]=Ee.fromValues(0,0,0)};Qae.prototype={setFromProjection:function(e){var t=this.planes,r=e.array,n=r[0],a=r[1],i=r[2],o=r[3],s=r[4],l=r[5],u=r[6],c=r[7],f=r[8],d=r[9],h=r[10],v=r[11],p=r[12],g=r[13],m=r[14],y=r[15];Zn(t[0].normal.array,o-n,c-s,v-f),t[0].distance=-(y-p),t[0].normalize(),Zn(t[1].normal.array,o+n,c+s,v+f),t[1].distance=-(y+p),t[1].normalize(),Zn(t[2].normal.array,o+a,c+l,v+d),t[2].distance=-(y+g),t[2].normalize(),Zn(t[3].normal.array,o-a,c-l,v-d),t[3].distance=-(y-g),t[3].normalize(),Zn(t[4].normal.array,o-i,c-u,v-h),t[4].distance=-(y-m),t[4].normalize(),Zn(t[5].normal.array,o+i,c+u,v+h),t[5].distance=-(y+m),t[5].normalize();var _=this.boundingBox,w=this.vertices;if(y===0){var x=l/n,S=-m/(h-1),T=-m/(h+1),A=-T/l,C=-S/l;_.min.set(-A*x,-A,T),_.max.set(A*x,A,S),Zn(w[0],-A*x,-A,T),Zn(w[1],-A*x,A,T),Zn(w[2],A*x,-A,T),Zn(w[3],A*x,A,T),Zn(w[4],-C*x,-C,S),Zn(w[5],-C*x,C,S),Zn(w[6],C*x,-C,S),Zn(w[7],C*x,C,S)}else{var M=(-1-p)/n,E=(1-p)/n,D=(1-g)/l,P=(-1-g)/l,L=(-1-m)/h,I=(1-m)/h;_.min.set(Math.min(M,E),Math.min(P,D),Math.min(I,L)),_.max.set(Math.max(E,M),Math.max(D,P),Math.max(L,I));var O=_.min.array,R=_.max.array;Zn(w[0],O[0],O[1],O[2]),Zn(w[1],O[0],R[1],O[2]),Zn(w[2],R[0],O[1],O[2]),Zn(w[3],R[0],R[1],O[2]),Zn(w[4],O[0],O[1],R[2]),Zn(w[5],O[0],R[1],R[2]),Zn(w[6],R[0],O[1],R[2]),Zn(w[7],R[0],R[1],R[2])}},getTransformedBoundingBox:function(){var e=Ee.create();return function(t,r){var n=this.vertices,a=r.array,i=t.min,o=t.max,s=i.array,l=o.array,u=n[0];G$(e,u,a),H$(s,e),H$(l,e);for(var c=1;c<8;c++)u=n[c],G$(e,u,a),s[0]=vD(e[0],s[0]),s[1]=vD(e[1],s[1]),s[2]=vD(e[2],s[2]),l[0]=pD(e[0],l[0]),l[1]=pD(e[1],l[1]),l[2]=pD(e[2],l[2]);return i._dirty=!0,o._dirty=!0,t}}()};const c4=Qae;var Egt=Nl.extend(function(){return{projectionMatrix:new Bt,invProjectionMatrix:new Bt,viewMatrix:new Bt,frustum:new c4}},function(){this.update(!0)},{update:function(e){Nl.prototype.update.call(this,e),Bt.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),Bt.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(e){Bt.copy(this.viewMatrix,e),Bt.invert(this.worldTransform,e),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(e){Bt.copy(this.projectionMatrix,e),Bt.invert(this.invProjectionMatrix,e),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var e=Et.create();return function(t,r){var n=r!==void 0?r:new A2,a=t.array[0],i=t.array[1];return Et.set(e,a,i,-1,1),Et.transformMat4(e,e,this.invProjectionMatrix.array),Et.transformMat4(e,e,this.worldTransform.array),Ee.scale(n.origin.array,e,1/e[3]),Et.set(e,a,i,1,1),Et.transformMat4(e,e,this.invProjectionMatrix.array),Et.transformMat4(e,e,this.worldTransform.array),Ee.scale(e,e,1/e[3]),Ee.sub(n.direction.array,e,n.origin.array),Ee.normalize(n.direction.array,n.direction.array),n.direction._dirty=!0,n.origin._dirty=!0,n}}()});const xg=Egt;var Mgt=ut.create(),U$=ut.create(),gD={};function Dgt(e){var t=[],r=Object.keys(e);r.sort();for(var n=0;n<r.length;n++){var a=r[n];t.push(a+" "+e[a])}var i=t.join(`
|
||
`);if(gD[i])return gD[i];var o=za.genGUID();return gD[i]=o,o}function VT(){this.opaque=[],this.transparent=[],this._opaqueCount=0,this._transparentCount=0}VT.prototype.startCount=function(){this._opaqueCount=0,this._transparentCount=0};VT.prototype.add=function(e,t){t?this.transparent[this._transparentCount++]=e:this.opaque[this._opaqueCount++]=e};VT.prototype.endCount=function(){this.transparent.length=this._transparentCount,this.opaque.length=this._opaqueCount};var Pgt=Nl.extend(function(){return{material:null,lights:[],viewBoundingBoxLastFrame:new Ti,shadowUniforms:{},_cameraList:[],_lightUniforms:{},_previousLightNumber:{},_lightNumber:{},_lightProgramKeys:{},_nodeRepository:{},_renderLists:new Vae(20)}},function(){this._scene=this},{addToScene:function(e){e instanceof xg?(this._cameraList.length>0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(e)):e instanceof tl&&this.lights.push(e),e.name&&(this._nodeRepository[e.name]=e)},removeFromScene:function(e){var t;e instanceof xg?(t=this._cameraList.indexOf(e),t>=0&&this._cameraList.splice(t,1)):e instanceof tl&&(t=this.lights.indexOf(e),t>=0&&this.lights.splice(t,1)),e.name&&delete this._nodeRepository[e.name]},getNode:function(e){return this._nodeRepository[e]},setMainCamera:function(e){var t=this._cameraList.indexOf(e);t>=0&&this._cameraList.splice(t,1),this._cameraList.unshift(e)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var e=this.lights;this._previousLightNumber=this._lightNumber;for(var t={},r=0;r<e.length;r++){var n=e[r];if(!n.invisible){var a=n.group;t[a]||(t[a]={}),t[a][n.type]=t[a][n.type]||0,t[a][n.type]++}}this._lightNumber=t;for(var i in t)this._lightProgramKeys[i]=Dgt(t[i]);this._updateLightUniforms()},cloneNode:function(e){var t=e.clone(),r={};function n(a,i){r[a.__uid__]=i;for(var o=0;o<a._children.length;o++){var s=a._children[o],l=i._children[o];n(s,l)}}return n(e,t),t.traverse(function(a){a.skeleton&&(a.skeleton=a.skeleton.clone(r)),a.material&&(a.material=a.material.clone())}),t},updateRenderList:function(e,t){var r=e.__uid__,n=this._renderLists.get(r);n||(n=new VT,this._renderLists.put(r,n)),n.startCount(),t&&(this.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),this.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0));var a=this.material&&this.material.transparent||!1;return this._doUpdateRenderList(this,e,a,n,t),n.endCount(),n},getRenderList:function(e){return this._renderLists.get(e.__uid__)},_doUpdateRenderList:function(e,t,r,n,a){if(!e.invisible)for(var i=0;i<e._children.length;i++){var o=e._children[i];if(o.isRenderable()){var s=o.isSkinnedMesh()?Mgt:o.worldTransform.array,l=o.geometry;ut.multiplyAffine(U$,t.viewMatrix.array,s),(a&&!l.boundingBox||!this.isFrustumCulled(o,t,U$))&&n.add(o,o.material.transparent||r)}o._children.length>0&&this._doUpdateRenderList(o,t,r,n,a)}},isFrustumCulled:function(){var e=new Ti,t=new Bt;return function(r,n,a){var i=r.boundingBox;if(i||(r.skeleton&&r.skeleton.boundingBox?i=r.skeleton.boundingBox:i=r.geometry.boundingBox),!i)return!1;if(t.array=a,e.transformFrom(i,t),r.castShadow&&this.viewBoundingBoxLastFrame.union(e),r.frustumCulling){if(!e.intersectBoundingBox(n.frustum.boundingBox))return!0;t.array=n.projectionMatrix.array,e.max.array[2]>0&&e.min.array[2]<0&&(e.max.array[2]=-1e-20),e.applyProjection(t);var o=e.min.array,s=e.max.array;if(s[0]<-1||o[0]>1||s[1]<-1||o[1]>1||s[2]<-1||o[2]>1)return!0}return!1}}(),_updateLightUniforms:function(){var e=this.lights;e.sort(Lgt);var t=this._lightUniforms;for(var r in t)for(var n in t[r])t[r][n].value.length=0;for(var a=0;a<e.length;a++){var i=e[a];if(!i.invisible){var r=i.group;for(var n in i.uniformTemplates){var o=i.uniformTemplates[n],s=o.value(i);if(s!=null){t[r]||(t[r]={}),t[r][n]||(t[r][n]={type:"",value:[]});var l=t[r][n];switch(l.type=o.type+"v",o.type){case"1i":case"1f":case"t":l.value.push(s);break;case"2f":case"3f":case"4f":for(var u=0;u<s.length;u++)l.value.push(s[u]);break;default:console.error("Unkown light uniform type "+o.type)}}}}}},getLightGroups:function(){var e=[];for(var t in this._lightNumber)e.push(t);return e},getNumberChangedLightGroups:function(){var e=[];for(var t in this._lightNumber)this.isLightNumberChanged(t)&&e.push(t);return e},isLightNumberChanged:function(e){var t=this._previousLightNumber,r=this._lightNumber;for(var n in r[e])if(!t[e]||r[e][n]!==t[e][n])return!0;for(var n in t[e])if(!r[e]||r[e][n]!==t[e][n])return!0;return!1},getLightsNumbers:function(e){return this._lightNumber[e]},getProgramKey:function(e){return this._lightProgramKeys[e]},setLightUniforms:function(){function e(t,r,n){for(var a in t){var i=t[a];if(i.type==="tv"){if(!r.hasUniform(a))continue;for(var o=[],s=0;s<i.value.length;s++){var l=i.value[s],u=r.takeCurrentTextureSlot(n,l);o.push(u)}r.setUniform(n.gl,"1iv",a,o)}else r.setUniform(n.gl,i.type,a,i.value)}}return function(t,r,n){e(this._lightUniforms[r],t,n),e(this.shadowUniforms,t,n)}}(),dispose:function(){this.material=null,this._opaqueList=[],this._transparentList=[],this.lights=[],this._lightUniforms={},this._lightNumber={},this._nodeRepository={}}});function Lgt(e,t){if(t.castShadow&&!e.castShadow)return!0}const Wf=Pgt;var Tw=jae.isPowerOfTwo,Igt=["px","nx","py","ny","pz","nz"],f4=$t.extend(function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}},{textureType:"textureCube",update:function(e){var t=e.gl;t.bindTexture(t.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(e);var r=this.format,n=this.type;t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_S,this.getAvailableWrapS()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_T,this.getAvailableWrapT()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var a=e.getGLExtension("EXT_texture_filter_anisotropic");if(a&&this.anisotropic>1&&t.texParameterf(t.TEXTURE_CUBE_MAP,a.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),n===36193){var i=e.getGLExtension("OES_texture_half_float");i||(n=$e.FLOAT)}if(this.mipmaps.length)for(var o=this.width,s=this.height,l=0;l<this.mipmaps.length;l++){var u=this.mipmaps[l];this._updateTextureData(t,u,l,o,s,r,n),o/=2,s/=2}else this._updateTextureData(t,this,0,this.width,this.height,r,n),!this.NPOT&&this.useMipmap&&t.generateMipmap(t.TEXTURE_CUBE_MAP);t.bindTexture(t.TEXTURE_CUBE_MAP,null)},_updateTextureData:function(e,t,r,n,a,i,o){for(var s=0;s<6;s++){var l=Igt[s],u=t.image&&t.image[l];u?e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+s,r,i,i,o,u):e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+s,r,i,n,a,0,i,o,t.pixels&&t.pixels[l])}},generateMipmap:function(e){var t=e.gl;this.useMipmap&&!this.NPOT&&(t.bindTexture(t.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),t.generateMipmap(t.TEXTURE_CUBE_MAP))},bind:function(e){e.gl.bindTexture(e.gl.TEXTURE_CUBE_MAP,this.getWebGLTexture(e))},unbind:function(e){e.gl.bindTexture(e.gl.TEXTURE_CUBE_MAP,null)},isPowerOfTwo:function(){return this.image.px?Tw(this.image.px.width)&&Tw(this.image.px.height):Tw(this.width)&&Tw(this.height)},isRenderable:function(){return this.image.px?Zv(this.image.px)&&Zv(this.image.nx)&&Zv(this.image.py)&&Zv(this.image.ny)&&Zv(this.image.pz)&&Zv(this.image.nz):!!(this.width&&this.height)},load:function(e,t){var r=0,n=this;return za.each(e,function(a,i){var o=aa.createImage();t&&(o.crossOrigin=t),o.onload=function(){r--,r===0&&(n.dirty(),n.trigger("success",n))},o.onerror=function(){r--},r++,o.src=a,n.image[i]=o}),this}});Object.defineProperty(f4.prototype,"width",{get:function(){return this.image&&this.image.px?this.image.px.width:this._width},set:function(e){this.image&&this.image.px?console.warn("Texture from image can't set width"):(this._width!==e&&this.dirty(),this._width=e)}});Object.defineProperty(f4.prototype,"height",{get:function(){return this.image&&this.image.px?this.image.px.height:this._height},set:function(e){this.image&&this.image.px?console.warn("Texture from image can't set height"):(this._height!==e&&this.dirty(),this._height=e)}});function Zv(e){return e.width>0&&e.height>0}const I_=f4;var Rgt=xg.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var e=this.fov/180*Math.PI;this.projectionMatrix.perspective(e,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array,t=Math.atan(1/e[5])*2;this.fov=t/Math.PI*180,this.aspect=e[5]/e[0],this.near=e[14]/(e[10]-1),this.far=e[14]/(e[10]+1)},clone:function(){var e=xg.prototype.clone.call(this);return e.fov=this.fov,e.aspect=this.aspect,e.near=this.near,e.far=this.far,e}});const Sa=Rgt;var Cw="framebuffer",bu="renderbuffer",$$=bu+"_width",W$=bu+"_height",mD=bu+"_attached",yD="depthtexture_attached",Cd=$e.FRAMEBUFFER,oy=$e.RENDERBUFFER,Dy=$e.DEPTH_ATTACHMENT,Jae=$e.COLOR_ATTACHMENT0,F1=zi.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},function(){this._cache=new l4,this._textures={}},{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(e){if(e.__currentFrameBuffer){if(e.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}e.__currentFrameBuffer=this;var t=e.gl;t.bindFramebuffer(Cd,this._getFrameBufferGL(e)),this._boundRenderer=e;var r=this._cache;r.put("viewport",e.viewport);var n=!1,a,i;for(var o in this._textures){n=!0;var s=this._textures[o];s&&(a=s.texture.width,i=s.texture.height,this._doAttach(e,s.texture,o,s.target))}this._width=a,this._height=i,!n&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?e.setViewport(this.viewport):e.setViewport(0,0,a,i,1);var l=r.get("attached_textures");if(l){for(var o in l)if(!this._textures[o]){var u=l[o];this._doDetach(t,o,u)}}if(!r.get(yD)&&this.depthBuffer){r.miss(bu)&&r.put(bu,t.createRenderbuffer());var c=r.get(bu);(a!==r.get($$)||i!==r.get(W$))&&(t.bindRenderbuffer(oy,c),t.renderbufferStorage(oy,t.DEPTH_COMPONENT16,a,i),r.put($$,a),r.put(W$,i),t.bindRenderbuffer(oy,null)),r.get(mD)||(t.framebufferRenderbuffer(Cd,Dy,oy,c),r.put(mD,!0))}},unbind:function(e){e.__currentFrameBuffer=null;var t=e.gl;t.bindFramebuffer(Cd,null),this._boundRenderer=null,this._cache.use(e.__uid__);var r=this._cache.get("viewport");r&&e.setViewport(r),this.updateMipmap(e)},updateMipmap:function(e){var t=e.gl;for(var r in this._textures){var n=this._textures[r];if(n){var a=n.texture;if(!a.NPOT&&a.useMipmap&&a.minFilter===$t.LINEAR_MIPMAP_LINEAR){var i=a.textureType==="textureCube"?$e.TEXTURE_CUBE_MAP:$e.TEXTURE_2D;t.bindTexture(i,a.getWebGLTexture(e)),t.generateMipmap(i),t.bindTexture(i,null)}}}},checkStatus:function(e){return e.checkFramebufferStatus(Cd)},_getFrameBufferGL:function(e){var t=this._cache;return t.use(e.__uid__),t.miss(Cw)&&t.put(Cw,e.gl.createFramebuffer()),t.get(Cw)},attach:function(e,t,r){if(!e.width)throw new Error("The texture attached to color buffer is not a valid.");t=t||Jae,r=r||$e.TEXTURE_2D;var n=this._boundRenderer,a=n&&n.gl,i;if(a){var o=this._cache;o.use(n.__uid__),i=o.get("attached_textures")}var s=this._textures[t];if(!(s&&s.target===r&&s.texture===e&&i&&i[t]!=null)){var l=!0;n&&(l=this._doAttach(n,e,t,r),this.viewport||n.setViewport(0,0,e.width,e.height,1)),l&&(this._textures[t]=this._textures[t]||{},this._textures[t].texture=e,this._textures[t].target=r)}},_doAttach:function(e,t,r,n){var a=e.gl,i=t.getWebGLTexture(e),o=this._cache.get("attached_textures");if(o&&o[r]){var s=o[r];if(s.texture===t&&s.target===n)return}r=+r;var l=!0;if(r===Dy||r===$e.DEPTH_STENCIL_ATTACHMENT){var u=e.getGLExtension("WEBGL_depth_texture");if(u||(console.error("Depth texture is not supported by the browser"),l=!1),t.format!==$e.DEPTH_COMPONENT&&t.format!==$e.DEPTH_STENCIL&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l){var c=this._cache.get(bu);c&&(a.framebufferRenderbuffer(Cd,Dy,oy,null),a.deleteRenderbuffer(c),this._cache.put(bu,!1)),this._cache.put(mD,!1),this._cache.put(yD,!0)}}return a.framebufferTexture2D(Cd,r,n,i,0),o||(o={},this._cache.put("attached_textures",o)),o[r]=o[r]||{},o[r].texture=t,o[r].target=n,l},_doDetach:function(e,t,r){e.framebufferTexture2D(Cd,t,r,null,0);var n=this._cache.get("attached_textures");n&&n[t]&&(n[t]=null),(t===Dy||t===$e.DEPTH_STENCIL_ATTACHMENT)&&this._cache.put(yD,!1)},detach:function(e,t){if(this._textures[e]=null,this._boundRenderer){var r=this._cache;r.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,e,t)}},dispose:function(e){var t=e.gl,r=this._cache;r.use(e.__uid__);var n=r.get(bu);n&&t.deleteRenderbuffer(n);var a=r.get(Cw);a&&t.deleteFramebuffer(a),r.deleteContext(e.__uid__),this._textures={}}});F1.DEPTH_ATTACHMENT=Dy;F1.COLOR_ATTACHMENT0=Jae;F1.STENCIL_ATTACHMENT=$e.STENCIL_ATTACHMENT;F1.DEPTH_STENCIL_ATTACHMENT=$e.DEPTH_STENCIL_ATTACHMENT;const Ua=F1;var Ogt=["px","nx","py","ny","pz","nz"],kgt=zi.extend(function(){var e={position:new mt,far:1e3,near:.1,texture:null,shadowMapPass:null},t=e._cameras={px:new Sa({fov:90}),nx:new Sa({fov:90}),py:new Sa({fov:90}),ny:new Sa({fov:90}),pz:new Sa({fov:90}),nz:new Sa({fov:90})};return t.px.lookAt(mt.POSITIVE_X,mt.NEGATIVE_Y),t.nx.lookAt(mt.NEGATIVE_X,mt.NEGATIVE_Y),t.py.lookAt(mt.POSITIVE_Y,mt.POSITIVE_Z),t.ny.lookAt(mt.NEGATIVE_Y,mt.NEGATIVE_Z),t.pz.lookAt(mt.POSITIVE_Z,mt.NEGATIVE_Y),t.nz.lookAt(mt.NEGATIVE_Z,mt.NEGATIVE_Y),e._frameBuffer=new Ua,e},{getCamera:function(e){return this._cameras[e]},render:function(e,t,r){var n=e.gl;r||t.update();for(var a=this.texture.width,i=2*Math.atan(a/(a-.5))/Math.PI*180,o=0;o<6;o++){var s=Ogt[o],l=this._cameras[s];if(mt.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=i,this.shadowMapPass){l.update();var u=t.getBoundingBox();u.applyTransform(l.viewMatrix),t.viewBoundingBoxLastFrame.copy(u),this.shadowMapPass.render(e,t,l,!0)}this._frameBuffer.attach(this.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+o),this._frameBuffer.bind(e),e.render(t,l,!0),this._frameBuffer.unbind(e)}},dispose:function(e){this._frameBuffer.dispose(e)}});const d4=kgt;var Ngt=Hr.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var e=this.heightSegments,t=this.widthSegments,r=this.attributes,n=[],a=[],i=[],o=[],s=0;s<=e;s++)for(var l=s/e,u=0;u<=t;u++){var c=u/t;if(n.push([2*c-1,2*l-1,0]),a&&a.push([c,l]),i&&i.push([0,0,1]),u<t&&s<e){var f=u+s*(t+1);o.push([f,f+1,f+t+1]),o.push([f+t+1,f+1,f+t+2])}}r.position.fromArray(n),r.texcoord0.fromArray(a),r.normal.fromArray(i),this.initIndicesFromArray(o),this.boundingBox=new Ti,this.boundingBox.min.set(-1,-1,0),this.boundingBox.max.set(1,1,0)}});const zT=Ngt;var Bn=new Bt,Bgt=Hr.extend({dynamic:!1,widthSegments:1,heightSegments:1,depthSegments:1,inside:!1},function(){this.build()},{build:function(){var e={px:qv("px",this.depthSegments,this.heightSegments),nx:qv("nx",this.depthSegments,this.heightSegments),py:qv("py",this.widthSegments,this.depthSegments),ny:qv("ny",this.widthSegments,this.depthSegments),pz:qv("pz",this.widthSegments,this.heightSegments),nz:qv("nz",this.widthSegments,this.heightSegments)},t=["position","texcoord0","normal"],r=0,n=0;for(var a in e)r+=e[a].vertexCount,n+=e[a].indices.length;for(var i=0;i<t.length;i++)this.attributes[t[i]].init(r);this.indices=new aa.Uint16Array(n);var o=0,s=0;for(var a in e){for(var l=e[a],i=0;i<t.length;i++)for(var u=t[i],c=l.attributes[u].value,f=l.attributes[u].size,d=u==="normal",h=0;h<c.length;h++){var v=c[h];this.inside&&d&&(v=-v),this.attributes[u].value[h+f*s]=v}for(var p=l.indices.length,h=0;h<l.indices.length;h++)this.indices[h+o]=s+l.indices[this.inside?p-h-1:h];o+=l.indices.length,s+=l.vertexCount}this.boundingBox=new Ti,this.boundingBox.max.set(1,1,1),this.boundingBox.min.set(-1,-1,-1)}});function qv(e,t,r){Bn.identity();var n=new zT({widthSegments:t,heightSegments:r});switch(e){case"px":Bt.translate(Bn,Bn,mt.POSITIVE_X),Bt.rotateY(Bn,Bn,Math.PI/2);break;case"nx":Bt.translate(Bn,Bn,mt.NEGATIVE_X),Bt.rotateY(Bn,Bn,-Math.PI/2);break;case"py":Bt.translate(Bn,Bn,mt.POSITIVE_Y),Bt.rotateX(Bn,Bn,-Math.PI/2);break;case"ny":Bt.translate(Bn,Bn,mt.NEGATIVE_Y),Bt.rotateX(Bn,Bn,Math.PI/2);break;case"pz":Bt.translate(Bn,Bn,mt.POSITIVE_Z);break;case"nz":Bt.translate(Bn,Bn,mt.NEGATIVE_Z),Bt.rotateY(Bn,Bn,Math.PI);break}return n.applyTransform(Bn),n}const eie=Bgt,Fgt=`@export clay.skybox.vertex
|
||
#define SHADER_NAME skybox
|
||
uniform mat4 world : WORLD;
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
attribute vec3 position : POSITION;
|
||
varying vec3 v_WorldPosition;
|
||
void main()
|
||
{
|
||
v_WorldPosition = (world * vec4(position, 1.0)).xyz;
|
||
gl_Position = worldViewProjection * vec4(position, 1.0);
|
||
}
|
||
@end
|
||
@export clay.skybox.fragment
|
||
#define PI 3.1415926
|
||
uniform mat4 viewInverse : VIEWINVERSE;
|
||
#ifdef EQUIRECTANGULAR
|
||
uniform sampler2D environmentMap;
|
||
#else
|
||
uniform samplerCube environmentMap;
|
||
#endif
|
||
uniform float lod: 0.0;
|
||
varying vec3 v_WorldPosition;
|
||
@import clay.util.rgbm
|
||
@import clay.util.srgb
|
||
@import clay.util.ACES
|
||
void main()
|
||
{
|
||
vec3 eyePos = viewInverse[3].xyz;
|
||
vec3 V = normalize(v_WorldPosition - eyePos);
|
||
#ifdef EQUIRECTANGULAR
|
||
float phi = acos(V.y);
|
||
float theta = atan(-V.x, V.z) + PI * 0.5;
|
||
vec2 uv = vec2(theta / 2.0 / PI, phi / PI);
|
||
vec4 texel = decodeHDR(texture2D(environmentMap, fract(uv)));
|
||
#else
|
||
#if defined(LOD) || defined(SUPPORT_TEXTURE_LOD)
|
||
vec4 texel = decodeHDR(textureCubeLodEXT(environmentMap, V, lod));
|
||
#else
|
||
vec4 texel = decodeHDR(textureCube(environmentMap, V));
|
||
#endif
|
||
#endif
|
||
#ifdef SRGB_DECODE
|
||
texel = sRGBToLinear(texel);
|
||
#endif
|
||
#ifdef TONEMAPPING
|
||
texel.rgb = ACESToneMapping(texel.rgb);
|
||
#endif
|
||
#ifdef SRGB_ENCODE
|
||
texel = linearTosRGB(texel);
|
||
#endif
|
||
gl_FragColor = encodeHDR(vec4(texel.rgb, 1.0));
|
||
}
|
||
@end`;nt.import(Fgt);var Vgt=dh.extend(function(){var e=new nt({vertex:nt.source("clay.skybox.vertex"),fragment:nt.source("clay.skybox.fragment")}),t=new as({shader:e,depthMask:!1});return{scene:null,geometry:new eie,material:t,environmentMap:null,culling:!1,_dummyCamera:new Sa}},function(){var e=this.scene;e&&this.attachScene(e),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)},{attachScene:function(e){this.scene&&this.detachScene(),e.skybox=this,this.scene=e,e.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skybox=null),this.scene=null},dispose:function(e){this.detachScene(),this.geometry.dispose(e)},setEnvironmentMap:function(e){e.textureType==="texture2D"?(this.material.define("EQUIRECTANGULAR"),e.minFilter=$t.LINEAR):this.material.undefine("EQUIRECTANGULAR"),this.material.set("environmentMap",e)},getEnvironmentMap:function(){return this.material.get("environmentMap")},_beforeRenderScene:function(e,t,r){this.renderSkybox(e,r)},renderSkybox:function(e,t){var r=this._dummyCamera;r.aspect=e.getViewportAspect(),r.fov=t.fov||50,r.updateProjectionMatrix(),Bt.invert(r.invProjectionMatrix,r.projectionMatrix),r.worldTransform.copy(t.worldTransform),r.viewMatrix.copy(t.viewMatrix),this.position.copy(t.getWorldPosition()),this.update(),e.gl.disable(e.gl.BLEND),this.material.get("lod")>0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),e.renderPass([this],r)}});const R_=Vgt;var zgt=542327876,Hgt=131072,Ggt=512,Ugt=4;function h4(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}var $gt=31,Wgt=h4("DXT1"),Ygt=h4("DXT3"),jgt=h4("DXT5"),Kgt=0,Xgt=1,Zgt=2,qgt=3,Qgt=4,Jgt=7,emt=20,tmt=21,rmt=28,nmt={parse:function(e,t){var r=new Int32Array(e,0,$gt);if(r[Kgt]!==zgt||!r(emt)&Ugt)return null;var n=r(tmt),a=r[Qgt],i=r[qgt],o=r[rmt]&Ggt,s=r[Zgt]&Hgt,l,u;switch(n){case Wgt:l=8,u=$t.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case Ygt:l=16,u=$t.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case jgt:l=16,u=$t.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var c=r[Xgt]+4,f=o?6:1,d=1;s&&(d=Math.max(1,r[Jgt]));for(var h=[],v=0;v<f;v++){var p=a,g=i;h[v]=new _r({width:p,height:g,format:u});for(var m=[],y=0;y<d;y++){var _=Math.max(4,p)/4*Math.max(4,g)/4*l,w=new Uint8Array(e,c,_);c+=_,p*=.5,g*=.5,m[y]=w}h[v].pixels=m[0],s&&(h[v].mipmaps=m)}if(t)t.width=h[0].width,t.height=h[0].height,t.format=h[0].format,t.pixels=h[0].pixels,t.mipmaps=h[0].mipmaps;else return h[0]}};const amt=nmt;var zS=String.fromCharCode,imt=8,omt=32767;function smt(e,t,r,n){if(e[3]>0){var a=Math.pow(2,e[3]-128-8+n);t[r+0]=e[0]*a,t[r+1]=e[1]*a,t[r+2]=e[2]*a}else t[r+0]=0,t[r+1]=0,t[r+2]=0;return t[r+3]=1,t}function lmt(e,t,r){for(var n="",a=t;a<r;a++)n+=zS(e[a]);return n}function umt(e,t){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]}function Y$(e,t,r,n){for(var a=0,i=0,o=n;o>0;)if(e[i][0]=t[r++],e[i][1]=t[r++],e[i][2]=t[r++],e[i][3]=t[r++],e[i][0]===1&&e[i][1]===1&&e[i][2]===1){for(var s=e[i][3]<<a>>>0;s>0;s--)umt(e[i-1],e[i]),i++,o--;a+=8}else i++,o--,a=0;return r}function cmt(e,t,r,n){if(n<imt|n>omt)return Y$(e,t,r,n);var a=t[r++];if(a!=2)return Y$(e,t,r-1,n);if(e[0][1]=t[r++],e[0][2]=t[r++],a=t[r++],(e[0][2]<<8>>>0|a)>>>0!==n)return null;for(var a=0;a<4;a++)for(var i=0;i<n;){var o=t[r++];if(o>128){o=(o&127)>>>0;for(var s=t[r++];o--;)e[i++][a]=s}else for(;o--;)e[i++][a]=t[r++]}return r}var fmt={parseRGBE:function(e,t,r){r==null&&(r=0);var n=new Uint8Array(e),a=n.length;if(lmt(n,0,2)==="#?"){for(var i=2;i<a&&!(zS(n[i])===`
|
||
`&&zS(n[i+1])===`
|
||
`);i++);if(!(i>=a)){i+=2;for(var o="";i<a;i++){var s=zS(n[i]);if(s===`
|
||
`)break;o+=s}var l=o.split(" "),u=parseInt(l[1]),c=parseInt(l[3]);if(!(!c||!u)){for(var f=i+1,d=[],h=0;h<c;h++){d[h]=[];for(var v=0;v<4;v++)d[h][v]=0}for(var p=new Float32Array(c*u*4),g=0,m=0;m<u;m++){var f=cmt(d,n,f,c);if(!f)return null;for(var h=0;h<c;h++)smt(d[h],p,g,r),g+=4}return t||(t=new _r),t.width=c,t.height=u,t.pixels=p,t.type=$t.FLOAT,t}}}},parseRGBEFromPNG:function(e){}};const dmt=fmt;var HS={loadTexture:function(e,t,r,n){var a;if(typeof t=="function"?(r=t,n=r,t={}):t=t||{},typeof e=="string"){if(e.match(/.hdr$/)||t.fileType==="hdr")return a=new _r({width:0,height:0,sRGB:!1}),HS._fetchTexture(e,function(i){dmt.parseRGBE(i,a,t.exposure),a.dirty(),r&&r(a)},n),a;e.match(/.dds$/)||t.fileType==="dds"?(a=new _r({width:0,height:0}),HS._fetchTexture(e,function(i){amt.parse(i,a),a.dirty(),r&&r(a)},n)):(a=new _r,a.load(e),a.success(r),a.error(n))}else typeof e=="object"&&typeof e.px<"u"&&(a=new I_,a.load(e),a.success(r),a.error(n));return a},loadPanorama:function(e,t,r,n,a,i){var o=this;typeof n=="function"?(a=n,i=a,n={}):n=n||{},HS.loadTexture(t,n,function(s){s.flipY=n.flipY||!1,o.panoramaToCubeMap(e,s,r,n),s.dispose(e),a&&a(r)},i)},panoramaToCubeMap:function(e,t,r,n){var a=new d4,i=new R_({scene:new Wf});return i.setEnvironmentMap(t),n=n||{},n.encodeRGBM&&i.material.define("fragment","RGBM_ENCODE"),r.sRGB=t.sRGB,a.texture=r,a.render(e,i.scene),a.texture=null,a.dispose(e),r},heightToNormal:function(e,t){var r=document.createElement("canvas"),n=r.width=e.width,a=r.height=e.height,i=r.getContext("2d");i.drawImage(e,0,0,n,a),t=t||!1;for(var o=i.getImageData(0,0,n,a),s=i.createImageData(n,a),l=0;l<o.data.length;l+=4){if(t){var u=o.data[l],c=o.data[l+1],f=o.data[l+2],d=Math.abs(u-c)+Math.abs(c-f);if(d>20)return console.warn("Given image is not a height map"),e}var h,v,p,g;l%(n*4)===0?(h=o.data[l],p=o.data[l+4]):l%(n*4)===(n-1)*4?(h=o.data[l-4],p=o.data[l]):(h=o.data[l-4],p=o.data[l+4]),l<n*4?(v=o.data[l],g=o.data[l+n*4]):l>n*(a-1)*4?(v=o.data[l-n*4],g=o.data[l]):(v=o.data[l-n*4],g=o.data[l+n*4]),s.data[l]=h-p+127,s.data[l+1]=v-g+127,s.data[l+2]=255,s.data[l+3]=255}return i.putImageData(s,0,0),r},isHeightImage:function(e,t,r){if(!e||!e.width||!e.height)return!1;var n=document.createElement("canvas"),a=n.getContext("2d"),i=t||32;r=r||20,n.width=n.height=i,a.drawImage(e,0,0,i,i);for(var o=a.getImageData(0,0,i,i),s=0;s<o.data.length;s+=4){var l=o.data[s],u=o.data[s+1],c=o.data[s+2],f=Math.abs(l-u)+Math.abs(u-c);if(f>r)return!1}return!0},_fetchTexture:function(e,t,r){aa.request.get({url:e,responseType:"arraybuffer",onload:t,onerror:r})},createChessboard:function(e,t,r,n){e=e||512,t=t||64,r=r||"black",n=n||"white";var a=Math.ceil(e/t),i=document.createElement("canvas");i.width=e,i.height=e;var o=i.getContext("2d");o.fillStyle=n,o.fillRect(0,0,e,e),o.fillStyle=r;for(var s=0;s<a;s++)for(var l=0;l<a;l++){var u=l%2?s%2:s%2-1;u&&o.fillRect(s*t,l*t,t,t)}var c=new _r({image:i,anisotropic:8});return c},createBlank:function(e){var t=document.createElement("canvas");t.width=1,t.height=1;var r=t.getContext("2d");r.fillStyle=e,r.fillRect(0,0,1,1);var n=new _r({image:t});return n}};const Lh=HS;var tR=["mousedown","mouseup","mousemove","mouseover","mouseout","click","dblclick","contextmenu"];function rR(e){return"_on"+e}var nR=function(e){var t=this;this._texture=new _r({anisotropic:32,flipY:!1,surface:this,dispose:function(r){t.dispose(),_r.prototype.dispose.call(this,r)}}),tR.forEach(function(r){this[rR(r)]=function(n){n.triangle&&this._meshes.forEach(function(a){this.dispatchEvent(r,a,n.triangle,n.point)},this)}},this),this._meshes=[],e&&this.setECharts(e),this.onupdate=null};nR.prototype={constructor:nR,getTexture:function(){return this._texture},setECharts:function(e){this._chart=e;var t=e.getDom();if(!(t instanceof HTMLCanvasElement))console.error("ECharts must init on canvas if it is used as texture."),t=document.createElement("canvas");else{var r=this,n=e.getZr(),a=n.__oldRefreshImmediately||n.refreshImmediately;n.refreshImmediately=function(){a.call(this),r._texture.dirty(),r.onupdate&&r.onupdate()},n.__oldRefreshImmediately=a}this._texture.image=t,this._texture.dirty(),this.onupdate&&this.onupdate()},dispatchEvent:function(){var e=new mt,t=new mt,r=new mt,n=new mo,a=new mo,i=new mo,o=new mo,s=new mt;return function(l,u,c,f){var d=u.geometry,h=d.attributes.position,v=d.attributes.texcoord0,p=mt.dot,g=mt.cross;h.get(c[0],e.array),h.get(c[1],t.array),h.get(c[2],r.array),v.get(c[0],n.array),v.get(c[1],a.array),v.get(c[2],i.array),g(s,t,r);var m=p(e,s),y=p(f,s)/m;g(s,r,e);var _=p(f,s)/m;g(s,e,t);var w=p(f,s)/m;mo.scale(o,n,y),mo.scaleAndAdd(o,o,a,_),mo.scaleAndAdd(o,o,i,w);var x=o.x*this._chart.getWidth(),S=o.y*this._chart.getHeight();this._chart.getZr().handler.dispatch(l,{zrX:x,zrY:S})}}(),attachToMesh:function(e){this._meshes.indexOf(e)>=0||(tR.forEach(function(t){e.on(t,this[rR(t)],this)},this),this._meshes.push(e))},detachFromMesh:function(e){var t=this._meshes.indexOf(e);t>=0&&this._meshes.splice(t,1),tR.forEach(function(r){e.off(r,this[rR(r)])},this)},dispose:function(){this._meshes.forEach(function(e){this.detachFromMesh(e)},this)}};const hmt=nR;var vmt=xg.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var e=this.projectionMatrix.array;this.left=(-1-e[12])/e[0],this.right=(1-e[12])/e[0],this.top=(1-e[13])/e[5],this.bottom=(-1-e[13])/e[5],this.near=-(-1-e[14])/e[10],this.far=-(1-e[14])/e[10]},clone:function(){var e=xg.prototype.clone.call(this);return e.left=this.left,e.right=this.right,e.near=this.near,e.far=this.far,e.top=this.top,e.bottom=this.bottom,e}});const Ag=vmt,pmt=`
|
||
@export clay.compositor.vertex
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
attribute vec3 position : POSITION;
|
||
attribute vec2 texcoord : TEXCOORD_0;
|
||
varying vec2 v_Texcoord;
|
||
void main()
|
||
{
|
||
v_Texcoord = texcoord;
|
||
gl_Position = worldViewProjection * vec4(position, 1.0);
|
||
}
|
||
@end`;nt.import(pmt);var gmt=new zT,j$=new dh({geometry:gmt,frustumCulling:!1}),mmt=new Ag,ymt=zi.extend(function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}},function(){var e=new nt(nt.source("clay.compositor.vertex"),this.fragment),t=new as({shader:e});t.enableTexturesAll(),this.material=t},{setUniform:function(e,t){this.material.setUniform(e,t)},getUniform:function(e){var t=this.material.uniforms[e];if(t)return t.value},attachOutput:function(e,t){this.outputs||(this.outputs={}),t=t||$e.COLOR_ATTACHMENT0,this.outputs[t]=e},detachOutput:function(e){for(var t in this.outputs)this.outputs[t]===e&&(this.outputs[t]=null)},bind:function(e,t){if(this.outputs)for(var r in this.outputs){var n=this.outputs[r];n&&t.attach(n,r)}t&&t.bind(e)},unbind:function(e,t){t.unbind(e)},render:function(e,t){var r=e.gl;if(t){this.bind(e,t);var n=e.getGLExtension("EXT_draw_buffers");if(n&&this.outputs){var a=[];for(var i in this.outputs)i=+i,i>=r.COLOR_ATTACHMENT0&&i<=r.COLOR_ATTACHMENT0+8&&a.push(i);n.drawBuffersEXT(a)}}this.trigger("beforerender",this,e);var o=this.clearDepth?r.DEPTH_BUFFER_BIT:0;if(r.depthMask(!0),this.clearColor){o=o|r.COLOR_BUFFER_BIT,r.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&r.clearColor(s[0],s[1],s[2],s[3])}r.clear(o),this.blendWithPrevious?(r.enable(r.BLEND),this.material.transparent=!0):(r.disable(r.BLEND),this.material.transparent=!1),this.renderQuad(e),this.trigger("afterrender",this,e),t&&this.unbind(e,t)},renderQuad:function(e){j$.material=this.material,e.renderPass([j$],mmt)},dispose:function(e){}});const sa=ymt,_mt=`#define SAMPLE_NUMBER 1024
|
||
#define PI 3.14159265358979
|
||
uniform sampler2D normalDistribution;
|
||
uniform vec2 viewportSize : [512, 256];
|
||
const vec3 N = vec3(0.0, 0.0, 1.0);
|
||
const float fSampleNumber = float(SAMPLE_NUMBER);
|
||
vec3 importanceSampleNormal(float i, float roughness, vec3 N) {
|
||
vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;
|
||
vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);
|
||
vec3 tangentX = normalize(cross(N, upVector));
|
||
vec3 tangentZ = cross(N, tangentX);
|
||
return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);
|
||
}
|
||
float G_Smith(float roughness, float NoV, float NoL) {
|
||
float k = roughness * roughness / 2.0;
|
||
float G1V = NoV / (NoV * (1.0 - k) + k);
|
||
float G1L = NoL / (NoL * (1.0 - k) + k);
|
||
return G1L * G1V;
|
||
}
|
||
void main() {
|
||
vec2 uv = gl_FragCoord.xy / viewportSize;
|
||
float NoV = uv.x;
|
||
float roughness = uv.y;
|
||
vec3 V;
|
||
V.x = sqrt(1.0 - NoV * NoV);
|
||
V.y = 0.0;
|
||
V.z = NoV;
|
||
float A = 0.0;
|
||
float B = 0.0;
|
||
for (int i = 0; i < SAMPLE_NUMBER; i++) {
|
||
vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N);
|
||
vec3 L = reflect(-V, H);
|
||
float NoL = clamp(L.z, 0.0, 1.0);
|
||
float NoH = clamp(H.z, 0.0, 1.0);
|
||
float VoH = clamp(dot(V, H), 0.0, 1.0);
|
||
if (NoL > 0.0) {
|
||
float G = G_Smith(roughness, NoV, NoL);
|
||
float G_Vis = G * VoH / (NoH * NoV);
|
||
float Fc = pow(1.0 - VoH, 5.0);
|
||
A += (1.0 - Fc) * G_Vis;
|
||
B += Fc * G_Vis;
|
||
}
|
||
}
|
||
gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0);
|
||
}
|
||
`,bmt=`#define SHADER_NAME prefilter
|
||
#define SAMPLE_NUMBER 1024
|
||
#define PI 3.14159265358979
|
||
uniform mat4 viewInverse : VIEWINVERSE;
|
||
uniform samplerCube environmentMap;
|
||
uniform sampler2D normalDistribution;
|
||
uniform float roughness : 0.5;
|
||
varying vec2 v_Texcoord;
|
||
varying vec3 v_WorldPosition;
|
||
@import clay.util.rgbm
|
||
vec3 importanceSampleNormal(float i, float roughness, vec3 N) {
|
||
vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;
|
||
vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);
|
||
vec3 tangentX = normalize(cross(N, upVector));
|
||
vec3 tangentZ = cross(N, tangentX);
|
||
return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);
|
||
}
|
||
void main() {
|
||
vec3 eyePos = viewInverse[3].xyz;
|
||
vec3 V = normalize(v_WorldPosition - eyePos);
|
||
vec3 N = V;
|
||
vec3 prefilteredColor = vec3(0.0);
|
||
float totalWeight = 0.0;
|
||
float fMaxSampleNumber = float(SAMPLE_NUMBER);
|
||
for (int i = 0; i < SAMPLE_NUMBER; i++) {
|
||
vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N);
|
||
vec3 L = reflect(-V, H);
|
||
float NoL = clamp(dot(N, L), 0.0, 1.0);
|
||
if (NoL > 0.0) {
|
||
prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL;
|
||
totalWeight += NoL;
|
||
}
|
||
}
|
||
gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0));
|
||
}
|
||
`;var Ih={},_D=["px","nx","py","ny","pz","nz"];Ih.prefilterEnvironmentMap=function(e,t,r,n,a){(!a||!n)&&(n=Ih.generateNormalDistribution(),a=Ih.integrateBRDF(e,n)),r=r||{};var i=r.width||64,o=r.height||64,s=r.type||t.type,l=new I_({width:i,height:o,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var u=Math.min(i,o),c=Math.log(u)/Math.log(2)+1,f=new as({shader:new nt({vertex:nt.source("clay.skybox.vertex"),fragment:bmt})});f.set("normalDistribution",n),r.encodeRGBM&&f.define("fragment","RGBM_ENCODE"),r.decodeRGBM&&f.define("fragment","RGBM_DECODE");var d=new Wf,h;if(t.textureType==="texture2D"){var v=new I_({width:i,height:o,type:s===$t.FLOAT?$t.HALF_FLOAT:s});Lh.panoramaToCubeMap(e,t,v,{encodeRGBM:r.decodeRGBM}),t=v}h=new R_({scene:d,material:f}),h.material.set("environmentMap",t);var p=new d4({texture:l});r.encodeRGBM&&(s=l.type=$t.UNSIGNED_BYTE);for(var g=new _r({width:i,height:o,type:s}),m=new Ua({depthBuffer:!1}),y=aa[s===$t.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],_=0;_<c;_++){l.mipmaps[_]={pixels:{}},h.material.set("roughness",_/(c-1));for(var w=g.width,x=2*Math.atan(w/(w-.5))/Math.PI*180,S=0;S<_D.length;S++){var T=new y(g.width*g.height*4);m.attach(g),m.bind(e);var A=p.getCamera(_D[S]);A.fov=x,e.render(d,A),e.gl.readPixels(0,0,g.width,g.height,$t.RGBA,s,T),m.unbind(e),l.mipmaps[_].pixels[_D[S]]=T}g.width/=2,g.height/=2,g.dirty()}return m.dispose(e),g.dispose(e),h.dispose(e),n.dispose(e),{environmentMap:l,brdfLookup:a,normalDistribution:n,maxMipmapLevel:c}};Ih.integrateBRDF=function(e,t){t=t||Ih.generateNormalDistribution();var r=new Ua({depthBuffer:!1}),n=new sa({fragment:_mt}),a=new _r({width:512,height:256,type:$t.HALF_FLOAT,wrapS:$t.CLAMP_TO_EDGE,wrapT:$t.CLAMP_TO_EDGE,minFilter:$t.NEAREST,magFilter:$t.NEAREST,useMipmap:!1});return n.setUniform("normalDistribution",t),n.setUniform("viewportSize",[512,256]),n.attachOutput(a),n.render(e,r),r.dispose(e),a};Ih.generateNormalDistribution=function(r,n){for(var r=r||256,n=n||1024,a=new _r({width:r,height:n,type:$t.FLOAT,minFilter:$t.NEAREST,magFilter:$t.NEAREST,wrapS:$t.CLAMP_TO_EDGE,wrapT:$t.CLAMP_TO_EDGE,useMipmap:!1}),i=new Float32Array(n*r*4),o=[],s=0;s<r;s++){for(var l=s/r,u=l*l,c=0;c<n;c++){var f=(c<<16|c>>>16)>>>0;f=((f&1431655765)<<1|(f&2863311530)>>>1)>>>0,f=((f&858993459)<<2|(f&3435973836)>>>2)>>>0,f=((f&252645135)<<4|(f&4042322160)>>>4)>>>0,f=(((f&16711935)<<8|(f&4278255360)>>>8)>>>0)/4294967296;var d=Math.sqrt((1-f)/(1+(u*u-1)*f));o[c]=d}for(var c=0;c<n;c++){var h=(c*r+s)*4,d=o[c],v=Math.sqrt(1-d*d),p=c/n,g=2*Math.PI*p;i[h]=v*Math.cos(g),i[h+1]=d,i[h+2]=v*Math.sin(g),i[h+3]=1}}return a.pixels=i,a};const GS=Ih;var wmt=tl.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(e,t){if(!e.getGLExtension("EXT_shader_texture_lod")){console.warn("Device not support textureCubeLodEXT");return}this._brdfLookup||(this._normalDistribution=GS.generateNormalDistribution(),this._brdfLookup=GS.integrateBRDF(e,this._normalDistribution));var r=this.cubemap;if(!r.__prefiltered){var n=GS.prefilterEnvironmentMap(e,r,{encodeRGBM:!0,width:t,height:t},this._normalDistribution,this._brdfLookup);this.cubemap=n.environmentMap,this.cubemap.__prefiltered=!0,r.dispose(e)}},getBRDFLookup:function(){return this._brdfLookup},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(e){var t=e.color,r=e.intensity;return[t[0]*r,t[1]*r,t[2]*r]}},ambientCubemapLightCubemap:{type:"t",value:function(e){return e.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(e){return e._brdfLookup}}}});const Smt=wmt;var xmt=tl.extend({castShadow:!1,coefficients:[]},function(){this._coefficientsTmpArr=new aa.Float32Array(9*3)},{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(e){var t=e.color,r=e.intensity;return[t[0]*r,t[1]*r,t[2]*r]}},ambientSHLightCoefficients:{type:"3f",value:function(e){for(var t=e._coefficientsTmpArr,r=0;r<e.coefficients.length;r++)t[r]=e.coefficients[r];return t}}}});const Amt=xmt;var tie={},hh=["px","nx","py","ny","pz","nz"];function Tmt(e,t){var r=e[0],n=e[1],a=e[2];return t===0?1:t===1?r:t===2?n:t===3?a:t===4?r*a:t===5?n*a:t===6?r*n:t===7?3*a*a-1:r*r-n*n}var Cmt={px:[2,1,0,-1,-1,1],nx:[2,1,0,1,-1,-1],py:[0,2,1,1,-1,-1],ny:[0,2,1,1,1,1],pz:[0,1,2,-1,-1,-1],nz:[0,1,2,1,-1,1]};function Emt(e,t,r,n){for(var a=new aa.Float32Array(27),i=Ee.create(),o=Ee.create(),s=Ee.create(),l=0;l<9;l++){for(var u=Ee.create(),c=0;c<hh.length;c++){for(var f=t[hh[c]],d=Ee.create(),h=0,v=0,p=Cmt[hh[c]],g=0;g<n;g++)for(var m=0;m<r;m++){i[0]=m/(r-1)*2-1,i[1]=g/(n-1)*2-1,i[2]=-1,Ee.normalize(i,i),s[0]=i[p[0]]*p[3],s[1]=i[p[1]]*p[4],s[2]=i[p[2]]*p[5],o[0]=f[v++]/255,o[1]=f[v++]/255,o[2]=f[v++]/255;var y=f[v++]/255*8.12;o[0]*=y,o[1]*=y,o[2]*=y,Ee.scaleAndAdd(d,d,o,Tmt(s,l)*-i[2]),h+=-i[2]}Ee.scaleAndAdd(u,u,d,1/h)}a[l*3]=u[0]/6,a[l*3+1]=u[1]/6,a[l*3+2]=u[2]/6}return a}tie.projectEnvironmentMap=function(e,t,r){r=r||{},r.lod=r.lod||0;var n,a=new Wf,i=64;t.textureType==="texture2D"?n=new R_({scene:a,environmentMap:t}):(i=t.image&&t.image.px?t.image.px.width:t.width,n=new R_({scene:a,environmentMap:t}));var o=Math.ceil(i/Math.pow(2,r.lod)),s=Math.ceil(i/Math.pow(2,r.lod)),l=new _r({width:o,height:s}),u=new Ua;n.material.define("fragment","RGBM_ENCODE"),r.decodeRGBM&&n.material.define("fragment","RGBM_DECODE"),n.material.set("lod",r.lod);for(var c=new d4({texture:l}),f={},d=0;d<hh.length;d++){f[hh[d]]=new Uint8Array(o*s*4);var h=c.getCamera(hh[d]);h.fov=90,u.attach(l),u.bind(e),e.render(a,h),e.gl.readPixels(0,0,o,s,$t.RGBA,$t.UNSIGNED_BYTE,f[hh[d]]),u.unbind(e)}return n.dispose(e),u.dispose(e),l.dispose(e),Emt(e,f,o,s)};const Mmt=tie;var Dmt={firstNotNull:function(){for(var e=0,t=arguments.length;e<t;e++)if(arguments[e]!=null)return arguments[e]},queryDataIndex:function(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ne(t.dataIndex)?Fe(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ne(t.name)?Fe(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}};const Sr=Dmt;var Pmt=Hr.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:Math.PI*2,thetaStart:0,thetaLength:Math.PI,radius:1},function(){this.build()},{build:function(){var e=this.heightSegments,t=this.widthSegments,r=this.attributes.position,n=this.attributes.texcoord0,a=this.attributes.normal,i=(t+1)*(e+1);r.init(i),n.init(i),a.init(i);var o=i>65535?Uint32Array:Uint16Array,s=this.indices=new o(t*e*6),l,u,c,f,d,h,v,_=this.radius,p=this.phiStart,g=this.phiLength,m=this.thetaStart,y=this.thetaLength,_=this.radius,w=[],x=[],S=0,T=1/_;for(v=0;v<=e;v++)for(h=0;h<=t;h++)f=h/t,d=v/e,l=-_*Math.cos(p+f*g)*Math.sin(m+d*y),u=_*Math.cos(m+d*y),c=_*Math.sin(p+f*g)*Math.sin(m+d*y),w[0]=l,w[1]=u,w[2]=c,x[0]=f,x[1]=d,r.set(S,w),n.set(S,x),w[0]*=T,w[1]*=T,w[2]*=T,a.set(S,w),S++;var A,C,M,E,D=t+1,P=0;for(v=0;v<e;v++)for(h=0;h<t;h++)C=v*D+h,A=v*D+h+1,E=(v+1)*D+h+1,M=(v+1)*D+h,s[P++]=A,s[P++]=C,s[P++]=E,s[P++]=C,s[P++]=M,s[P++]=E;this.boundingBox=new Ti,this.boundingBox.max.set(_,_,_),this.boundingBox.min.set(-_,-_,-_)}});const Lmt=Pmt;var Imt=tl.extend({castShadow:!1},{type:"AMBIENT_LIGHT",uniformTemplates:{ambientLightColor:{type:"3f",value:function(e){var t=e.color,r=e.intensity;return[t[0]*r,t[1]*r,t[2]*r]}}}});const Rmt=Imt;var Omt=tl.extend({shadowBias:.001,shadowSlopeScale:2,shadowCascade:1,cascadeSplitLogFactor:.2},{type:"DIRECTIONAL_LIGHT",uniformTemplates:{directionalLightDirection:{type:"3f",value:function(e){return e.__dir=e.__dir||new mt,e.__dir.copy(e.worldTransform.z).normalize().negate().array}},directionalLightColor:{type:"3f",value:function(e){var t=e.color,r=e.intensity;return[t[0]*r,t[1]*r,t[2]*r]}}},clone:function(){var e=tl.prototype.clone.call(this);return e.shadowBias=this.shadowBias,e.shadowSlopeScale=this.shadowSlopeScale,e}});const kmt=Omt;var Nmt=tl.extend({range:100,castShadow:!1},{type:"POINT_LIGHT",uniformTemplates:{pointLightPosition:{type:"3f",value:function(e){return e.getWorldPosition().array}},pointLightRange:{type:"1f",value:function(e){return e.range}},pointLightColor:{type:"3f",value:function(e){var t=e.color,r=e.intensity;return[t[0]*r,t[1]*r,t[2]*r]}}},clone:function(){var e=tl.prototype.clone.call(this);return e.range=this.range,e}});const Bmt=Nmt;var Fmt=tl.extend({range:20,umbraAngle:30,penumbraAngle:45,falloffFactor:2,shadowBias:.001,shadowSlopeScale:2},{type:"SPOT_LIGHT",uniformTemplates:{spotLightPosition:{type:"3f",value:function(e){return e.getWorldPosition().array}},spotLightRange:{type:"1f",value:function(e){return e.range}},spotLightUmbraAngleCosine:{type:"1f",value:function(e){return Math.cos(e.umbraAngle*Math.PI/180)}},spotLightPenumbraAngleCosine:{type:"1f",value:function(e){return Math.cos(e.penumbraAngle*Math.PI/180)}},spotLightFalloffFactor:{type:"1f",value:function(e){return e.falloffFactor}},spotLightDirection:{type:"3f",value:function(e){return e.__dir=e.__dir||new mt,e.__dir.copy(e.worldTransform.z).negate().array}},spotLightColor:{type:"3f",value:function(e){var t=e.color,r=e.intensity;return[t[0]*r,t[1]*r,t[2]*r]}}},clone:function(){var e=tl.prototype.clone.call(this);return e.range=this.range,e.umbraAngle=this.umbraAngle,e.penumbraAngle=this.penumbraAngle,e.falloffFactor=this.falloffFactor,e.shadowBias=this.shadowBias,e.shadowSlopeScale=this.shadowSlopeScale,e}});const Vmt=Fmt;var Fr=function(e,t,r,n){e=e||0,t=t||0,r=r||0,n=n||0,this.array=Et.fromValues(e,t,r,n),this._dirty=!0};Fr.prototype={constructor:Fr,add:function(e){return Et.add(this.array,this.array,e.array),this._dirty=!0,this},set:function(e,t,r,n){return this.array[0]=e,this.array[1]=t,this.array[2]=r,this.array[3]=n,this._dirty=!0,this},setArray:function(e){return this.array[0]=e[0],this.array[1]=e[1],this.array[2]=e[2],this.array[3]=e[3],this._dirty=!0,this},clone:function(){return new Fr(this.x,this.y,this.z,this.w)},copy:function(e){return Et.copy(this.array,e.array),this._dirty=!0,this},dist:function(e){return Et.dist(this.array,e.array)},distance:function(e){return Et.distance(this.array,e.array)},div:function(e){return Et.div(this.array,this.array,e.array),this._dirty=!0,this},divide:function(e){return Et.divide(this.array,this.array,e.array),this._dirty=!0,this},dot:function(e){return Et.dot(this.array,e.array)},len:function(){return Et.len(this.array)},length:function(){return Et.length(this.array)},lerp:function(e,t,r){return Et.lerp(this.array,e.array,t.array,r),this._dirty=!0,this},min:function(e){return Et.min(this.array,this.array,e.array),this._dirty=!0,this},max:function(e){return Et.max(this.array,this.array,e.array),this._dirty=!0,this},mul:function(e){return Et.mul(this.array,this.array,e.array),this._dirty=!0,this},multiply:function(e){return Et.multiply(this.array,this.array,e.array),this._dirty=!0,this},negate:function(){return Et.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return Et.normalize(this.array,this.array),this._dirty=!0,this},random:function(e){return Et.random(this.array,e),this._dirty=!0,this},scale:function(e){return Et.scale(this.array,this.array,e),this._dirty=!0,this},scaleAndAdd:function(e,t){return Et.scaleAndAdd(this.array,this.array,e.array,t),this._dirty=!0,this},sqrDist:function(e){return Et.sqrDist(this.array,e.array)},squaredDistance:function(e){return Et.squaredDistance(this.array,e.array)},sqrLen:function(){return Et.sqrLen(this.array)},squaredLength:function(){return Et.squaredLength(this.array)},sub:function(e){return Et.sub(this.array,this.array,e.array),this._dirty=!0,this},subtract:function(e){return Et.subtract(this.array,this.array,e.array),this._dirty=!0,this},transformMat4:function(e){return Et.transformMat4(this.array,this.array,e.array),this._dirty=!0,this},transformQuat:function(e){return Et.transformQuat(this.array,this.array,e.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var sy=Object.defineProperty;if(sy){var Ew=Fr.prototype;sy(Ew,"x",{get:function(){return this.array[0]},set:function(e){this.array[0]=e,this._dirty=!0}}),sy(Ew,"y",{get:function(){return this.array[1]},set:function(e){this.array[1]=e,this._dirty=!0}}),sy(Ew,"z",{get:function(){return this.array[2]},set:function(e){this.array[2]=e,this._dirty=!0}}),sy(Ew,"w",{get:function(){return this.array[3]},set:function(e){this.array[3]=e,this._dirty=!0}})}Fr.add=function(e,t,r){return Et.add(e.array,t.array,r.array),e._dirty=!0,e};Fr.set=function(e,t,r,n,a){Et.set(e.array,t,r,n,a),e._dirty=!0};Fr.copy=function(e,t){return Et.copy(e.array,t.array),e._dirty=!0,e};Fr.dist=function(e,t){return Et.distance(e.array,t.array)};Fr.distance=Fr.dist;Fr.div=function(e,t,r){return Et.divide(e.array,t.array,r.array),e._dirty=!0,e};Fr.divide=Fr.div;Fr.dot=function(e,t){return Et.dot(e.array,t.array)};Fr.len=function(e){return Et.length(e.array)};Fr.lerp=function(e,t,r,n){return Et.lerp(e.array,t.array,r.array,n),e._dirty=!0,e};Fr.min=function(e,t,r){return Et.min(e.array,t.array,r.array),e._dirty=!0,e};Fr.max=function(e,t,r){return Et.max(e.array,t.array,r.array),e._dirty=!0,e};Fr.mul=function(e,t,r){return Et.multiply(e.array,t.array,r.array),e._dirty=!0,e};Fr.multiply=Fr.mul;Fr.negate=function(e,t){return Et.negate(e.array,t.array),e._dirty=!0,e};Fr.normalize=function(e,t){return Et.normalize(e.array,t.array),e._dirty=!0,e};Fr.random=function(e,t){return Et.random(e.array,t),e._dirty=!0,e};Fr.scale=function(e,t,r){return Et.scale(e.array,t.array,r),e._dirty=!0,e};Fr.scaleAndAdd=function(e,t,r,n){return Et.scaleAndAdd(e.array,t.array,r.array,n),e._dirty=!0,e};Fr.sqrDist=function(e,t){return Et.sqrDist(e.array,t.array)};Fr.squaredDistance=Fr.sqrDist;Fr.sqrLen=function(e){return Et.sqrLen(e.array)};Fr.squaredLength=Fr.sqrLen;Fr.sub=function(e,t,r){return Et.subtract(e.array,t.array,r.array),e._dirty=!0,e};Fr.subtract=Fr.sub;Fr.transformMat4=function(e,t,r){return Et.transformMat4(e.array,t.array,r.array),e._dirty=!0,e};Fr.transformQuat=function(e,t,r){return Et.transformQuat(e.array,t.array,r.array),e._dirty=!0,e};const zmt=Fr;var hi={};hi.create=function(){var e=new Wa(4);return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e};hi.clone=function(e){var t=new Wa(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t};hi.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e};hi.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e};hi.transpose=function(e,t){if(e===t){var r=t[1];e[1]=t[2],e[2]=r}else e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3];return e};hi.invert=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r*i-a*n;return o?(o=1/o,e[0]=i*o,e[1]=-n*o,e[2]=-a*o,e[3]=r*o,e):null};hi.adjoint=function(e,t){var r=t[0];return e[0]=t[3],e[1]=-t[1],e[2]=-t[2],e[3]=r,e};hi.determinant=function(e){return e[0]*e[3]-e[2]*e[1]};hi.multiply=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=r[3];return e[0]=n*s+i*l,e[1]=a*s+o*l,e[2]=n*u+i*c,e[3]=a*u+o*c,e};hi.mul=hi.multiply;hi.rotate=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+i*s,e[1]=a*l+o*s,e[2]=n*-s+i*l,e[3]=a*-s+o*l,e};hi.scale=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=r[0],l=r[1];return e[0]=n*s,e[1]=a*s,e[2]=i*l,e[3]=o*l,e};hi.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2))};hi.LDU=function(e,t,r,n){return e[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-e[2]*r[1],[e,t,r]};const Un=hi;var Pi=function(){this.array=Un.create(),this._dirty=!0};Pi.prototype={constructor:Pi,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},clone:function(){return new Pi().copy(this)},copy:function(e){return Un.copy(this.array,e.array),this._dirty=!0,this},adjoint:function(){return Un.adjoint(this.array,this.array),this._dirty=!0,this},determinant:function(){return Un.determinant(this.array)},identity:function(){return Un.identity(this.array),this._dirty=!0,this},invert:function(){return Un.invert(this.array,this.array),this._dirty=!0,this},mul:function(e){return Un.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return Un.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return Un.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return Un.multiply(this.array,e.array,this.array),this._dirty=!0,this},rotate:function(e){return Un.rotate(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return Un.scale(this.array,this.array,e.array),this._dirty=!0,this},transpose:function(){return Un.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};Pi.adjoint=function(e,t){return Un.adjoint(e.array,t.array),e._dirty=!0,e};Pi.copy=function(e,t){return Un.copy(e.array,t.array),e._dirty=!0,e};Pi.determinant=function(e){return Un.determinant(e.array)};Pi.identity=function(e){return Un.identity(e.array),e._dirty=!0,e};Pi.invert=function(e,t){return Un.invert(e.array,t.array),e._dirty=!0,e};Pi.mul=function(e,t,r){return Un.mul(e.array,t.array,r.array),e._dirty=!0,e};Pi.multiply=Pi.mul;Pi.rotate=function(e,t,r){return Un.rotate(e.array,t.array,r),e._dirty=!0,e};Pi.scale=function(e,t,r){return Un.scale(e.array,t.array,r.array),e._dirty=!0,e};Pi.transpose=function(e,t){return Un.transpose(e.array,t.array),e._dirty=!0,e};const Hmt=Pi;var fo={};fo.create=function(){var e=new Wa(6);return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};fo.clone=function(e){var t=new Wa(6);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};fo.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e};fo.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};fo.invert=function(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=r*i-n*a;return l?(l=1/l,e[0]=i*l,e[1]=-n*l,e[2]=-a*l,e[3]=r*l,e[4]=(a*s-i*o)*l,e[5]=(n*o-r*s)*l,e):null};fo.determinant=function(e){return e[0]*e[3]-e[1]*e[2]};fo.multiply=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],u=r[0],c=r[1],f=r[2],d=r[3],h=r[4],v=r[5];return e[0]=n*u+i*c,e[1]=a*u+o*c,e[2]=n*f+i*d,e[3]=a*f+o*d,e[4]=n*h+i*v+s,e[5]=a*h+o*v+l,e};fo.mul=fo.multiply;fo.rotate=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+i*u,e[1]=a*c+o*u,e[2]=n*-u+i*c,e[3]=a*-u+o*c,e[4]=s,e[5]=l,e};fo.scale=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],u=r[0],c=r[1];return e[0]=n*u,e[1]=a*u,e[2]=i*c,e[3]=o*c,e[4]=s,e[5]=l,e};fo.translate=function(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],u=r[0],c=r[1];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=n*u+i*c+s,e[5]=a*u+o*c+l,e};fo.frob=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2)+Math.pow(e[2],2)+Math.pow(e[3],2)+Math.pow(e[4],2)+Math.pow(e[5],2)+1)};const ta=fo;var io=function(){this.array=ta.create(),this._dirty=!0};io.prototype={constructor:io,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},clone:function(){return new io().copy(this)},copy:function(e){return ta.copy(this.array,e.array),this._dirty=!0,this},determinant:function(){return ta.determinant(this.array)},identity:function(){return ta.identity(this.array),this._dirty=!0,this},invert:function(){return ta.invert(this.array,this.array),this._dirty=!0,this},mul:function(e){return ta.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return ta.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return ta.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return ta.multiply(this.array,e.array,this.array),this._dirty=!0,this},rotate:function(e){return ta.rotate(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return ta.scale(this.array,this.array,e.array),this._dirty=!0,this},translate:function(e){return ta.translate(this.array,this.array,e.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};io.copy=function(e,t){return ta.copy(e.array,t.array),e._dirty=!0,e};io.determinant=function(e){return ta.determinant(e.array)};io.identity=function(e){return ta.identity(e.array),e._dirty=!0,e};io.invert=function(e,t){return ta.invert(e.array,t.array),e._dirty=!0,e};io.mul=function(e,t,r){return ta.mul(e.array,t.array,r.array),e._dirty=!0,e};io.multiply=io.mul;io.rotate=function(e,t,r){return ta.rotate(e.array,t.array,r),e._dirty=!0,e};io.scale=function(e,t,r){return ta.scale(e.array,t.array,r.array),e._dirty=!0,e};io.translate=function(e,t,r){return ta.translate(e.array,t.array,r.array),e._dirty=!0,e};const Gmt=io;var pa=function(){this.array=Or.create(),this._dirty=!0};pa.prototype={constructor:pa,setArray:function(e){for(var t=0;t<this.array.length;t++)this.array[t]=e[t];return this._dirty=!0,this},adjoint:function(){return Or.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return new pa().copy(this)},copy:function(e){return Or.copy(this.array,e.array),this._dirty=!0,this},determinant:function(){return Or.determinant(this.array)},fromMat2d:function(e){return Or.fromMat2d(this.array,e.array),this._dirty=!0,this},fromMat4:function(e){return Or.fromMat4(this.array,e.array),this._dirty=!0,this},fromQuat:function(e){return Or.fromQuat(this.array,e.array),this._dirty=!0,this},identity:function(){return Or.identity(this.array),this._dirty=!0,this},invert:function(){return Or.invert(this.array,this.array),this._dirty=!0,this},mul:function(e){return Or.mul(this.array,this.array,e.array),this._dirty=!0,this},mulLeft:function(e){return Or.mul(this.array,e.array,this.array),this._dirty=!0,this},multiply:function(e){return Or.multiply(this.array,this.array,e.array),this._dirty=!0,this},multiplyLeft:function(e){return Or.multiply(this.array,e.array,this.array),this._dirty=!0,this},rotate:function(e){return Or.rotate(this.array,this.array,e),this._dirty=!0,this},scale:function(e){return Or.scale(this.array,this.array,e.array),this._dirty=!0,this},translate:function(e){return Or.translate(this.array,this.array,e.array),this._dirty=!0,this},normalFromMat4:function(e){return Or.normalFromMat4(this.array,e.array),this._dirty=!0,this},transpose:function(){return Or.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};pa.adjoint=function(e,t){return Or.adjoint(e.array,t.array),e._dirty=!0,e};pa.copy=function(e,t){return Or.copy(e.array,t.array),e._dirty=!0,e};pa.determinant=function(e){return Or.determinant(e.array)};pa.identity=function(e){return Or.identity(e.array),e._dirty=!0,e};pa.invert=function(e,t){return Or.invert(e.array,t.array),e};pa.mul=function(e,t,r){return Or.mul(e.array,t.array,r.array),e._dirty=!0,e};pa.multiply=pa.mul;pa.fromMat2d=function(e,t){return Or.fromMat2d(e.array,t.array),e._dirty=!0,e};pa.fromMat4=function(e,t){return Or.fromMat4(e.array,t.array),e._dirty=!0,e};pa.fromQuat=function(e,t){return Or.fromQuat(e.array,t.array),e._dirty=!0,e};pa.normalFromMat4=function(e,t){return Or.normalFromMat4(e.array,t.array),e._dirty=!0,e};pa.rotate=function(e,t,r){return Or.rotate(e.array,t.array,r),e._dirty=!0,e};pa.scale=function(e,t,r){return Or.scale(e.array,t.array,r.array),e._dirty=!0,e};pa.transpose=function(e,t){return Or.transpose(e.array,t.array),e._dirty=!0,e};pa.translate=function(e,t,r){return Or.translate(e.array,t.array,r.array),e._dirty=!0,e};const Umt=pa;var $mt={_animators:null,getAnimators:function(){return this._animators=this._animators||[],this._animators},animate:function(e,t){this._animators=this._animators||[];var r=this,n;if(e){for(var a=e.split("."),i=r,o=0,s=a.length;o<s;o++)i&&(i=i[a[o]]);i&&(n=i)}else n=r;if(n==null)throw new Error("Target "+e+" not exists");var l=this._animators,u=new wA(n,t),c=this;return u.during(function(){c.__zr&&c.__zr.refresh()}).done(function(){var f=l.indexOf(u);f>=0&&l.splice(f,1)}),l.push(u),this.__zr&&this.__zr.animation.addAnimator(u),u},stopAnimation:function(e){this._animators=this._animators||[];for(var t=this._animators,r=t.length,n=0;n<r;n++)t[n].stop(e);return t.length=0,this},addAnimatorsToZr:function(e){if(this._animators)for(var t=0;t<this._animators.length;t++)e.animation.addAnimator(this._animators[t])},removeAnimatorsFromZr:function(e){if(this._animators)for(var t=0;t<this._animators.length;t++)e.animation.removeAnimator(this._animators[t])}};const Wmt=$mt,rie=`
|
||
@export clay.util.rand
|
||
highp float rand(vec2 uv) {
|
||
const highp float a = 12.9898, b = 78.233, c = 43758.5453;
|
||
highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);
|
||
return fract(sin(sn) * c);
|
||
}
|
||
@end
|
||
@export clay.util.calculate_attenuation
|
||
uniform float attenuationFactor : 5.0;
|
||
float lightAttenuation(float dist, float range)
|
||
{
|
||
float attenuation = 1.0;
|
||
attenuation = dist*dist/(range*range+1.0);
|
||
float att_s = attenuationFactor;
|
||
attenuation = 1.0/(attenuation*att_s+1.0);
|
||
att_s = 1.0/(att_s+1.0);
|
||
attenuation = attenuation - att_s;
|
||
attenuation /= 1.0 - att_s;
|
||
return clamp(attenuation, 0.0, 1.0);
|
||
}
|
||
@end
|
||
@export clay.util.edge_factor
|
||
#ifdef SUPPORT_STANDARD_DERIVATIVES
|
||
float edgeFactor(float width)
|
||
{
|
||
vec3 d = fwidth(v_Barycentric);
|
||
vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);
|
||
return min(min(a3.x, a3.y), a3.z);
|
||
}
|
||
#else
|
||
float edgeFactor(float width)
|
||
{
|
||
return 1.0;
|
||
}
|
||
#endif
|
||
@end
|
||
@export clay.util.encode_float
|
||
vec4 encodeFloat(const in float depth)
|
||
{
|
||
const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);
|
||
const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);
|
||
vec4 res = fract(depth * bitShifts);
|
||
res -= res.xxyz * bit_mask;
|
||
return res;
|
||
}
|
||
@end
|
||
@export clay.util.decode_float
|
||
float decodeFloat(const in vec4 color)
|
||
{
|
||
const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);
|
||
return dot(color, bitShifts);
|
||
}
|
||
@end
|
||
@export clay.util.float
|
||
@import clay.util.encode_float
|
||
@import clay.util.decode_float
|
||
@end
|
||
@export clay.util.rgbm_decode
|
||
vec3 RGBMDecode(vec4 rgbm, float range) {
|
||
return range * rgbm.rgb * rgbm.a;
|
||
}
|
||
@end
|
||
@export clay.util.rgbm_encode
|
||
vec4 RGBMEncode(vec3 color, float range) {
|
||
if (dot(color, color) == 0.0) {
|
||
return vec4(0.0);
|
||
}
|
||
vec4 rgbm;
|
||
color /= range;
|
||
rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);
|
||
rgbm.a = ceil(rgbm.a * 255.0) / 255.0;
|
||
rgbm.rgb = color / rgbm.a;
|
||
return rgbm;
|
||
}
|
||
@end
|
||
@export clay.util.rgbm
|
||
@import clay.util.rgbm_decode
|
||
@import clay.util.rgbm_encode
|
||
vec4 decodeHDR(vec4 color)
|
||
{
|
||
#if defined(RGBM_DECODE) || defined(RGBM)
|
||
return vec4(RGBMDecode(color, 8.12), 1.0);
|
||
#else
|
||
return color;
|
||
#endif
|
||
}
|
||
vec4 encodeHDR(vec4 color)
|
||
{
|
||
#if defined(RGBM_ENCODE) || defined(RGBM)
|
||
return RGBMEncode(color.xyz, 8.12);
|
||
#else
|
||
return color;
|
||
#endif
|
||
}
|
||
@end
|
||
@export clay.util.srgb
|
||
vec4 sRGBToLinear(in vec4 value) {
|
||
return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);
|
||
}
|
||
vec4 linearTosRGB(in vec4 value) {
|
||
return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);
|
||
}
|
||
@end
|
||
@export clay.chunk.skinning_header
|
||
#ifdef SKINNING
|
||
attribute vec3 weight : WEIGHT;
|
||
attribute vec4 joint : JOINT;
|
||
#ifdef USE_SKIN_MATRICES_TEXTURE
|
||
uniform sampler2D skinMatricesTexture : ignore;
|
||
uniform float skinMatricesTextureSize: ignore;
|
||
mat4 getSkinMatrix(sampler2D tex, float idx) {
|
||
float j = idx * 4.0;
|
||
float x = mod(j, skinMatricesTextureSize);
|
||
float y = floor(j / skinMatricesTextureSize) + 0.5;
|
||
vec2 scale = vec2(skinMatricesTextureSize);
|
||
return mat4(
|
||
texture2D(tex, vec2(x + 0.5, y) / scale),
|
||
texture2D(tex, vec2(x + 1.5, y) / scale),
|
||
texture2D(tex, vec2(x + 2.5, y) / scale),
|
||
texture2D(tex, vec2(x + 3.5, y) / scale)
|
||
);
|
||
}
|
||
mat4 getSkinMatrix(float idx) {
|
||
return getSkinMatrix(skinMatricesTexture, idx);
|
||
}
|
||
#else
|
||
uniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;
|
||
mat4 getSkinMatrix(float idx) {
|
||
return skinMatrix[int(idx)];
|
||
}
|
||
#endif
|
||
#endif
|
||
@end
|
||
@export clay.chunk.skin_matrix
|
||
mat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;
|
||
if (weight.y > 1e-4)
|
||
{
|
||
skinMatrixWS += getSkinMatrix(joint.y) * weight.y;
|
||
}
|
||
if (weight.z > 1e-4)
|
||
{
|
||
skinMatrixWS += getSkinMatrix(joint.z) * weight.z;
|
||
}
|
||
float weightW = 1.0-weight.x-weight.y-weight.z;
|
||
if (weightW > 1e-4)
|
||
{
|
||
skinMatrixWS += getSkinMatrix(joint.w) * weightW;
|
||
}
|
||
@end
|
||
@export clay.chunk.instancing_header
|
||
#ifdef INSTANCING
|
||
attribute vec4 instanceMat1;
|
||
attribute vec4 instanceMat2;
|
||
attribute vec4 instanceMat3;
|
||
#endif
|
||
@end
|
||
@export clay.chunk.instancing_matrix
|
||
mat4 instanceMat = mat4(
|
||
vec4(instanceMat1.xyz, 0.0),
|
||
vec4(instanceMat2.xyz, 0.0),
|
||
vec4(instanceMat3.xyz, 0.0),
|
||
vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0)
|
||
);
|
||
@end
|
||
@export clay.util.parallax_correct
|
||
vec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {
|
||
vec3 first = (boxMax - pos) / dir;
|
||
vec3 second = (boxMin - pos) / dir;
|
||
vec3 further = max(first, second);
|
||
float dist = min(further.x, min(further.y, further.z));
|
||
vec3 fixedPos = pos + dir * dist;
|
||
vec3 boxCenter = (boxMax + boxMin) * 0.5;
|
||
return normalize(fixedPos - boxCenter);
|
||
}
|
||
@end
|
||
@export clay.util.clamp_sample
|
||
vec4 clampSample(const in sampler2D texture, const in vec2 coord)
|
||
{
|
||
#ifdef STEREO
|
||
float eye = step(0.5, coord.x) * 0.5;
|
||
vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));
|
||
#else
|
||
vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));
|
||
#endif
|
||
return texture2D(texture, coordClamped);
|
||
}
|
||
@end
|
||
@export clay.util.ACES
|
||
vec3 ACESToneMapping(vec3 color)
|
||
{
|
||
const float A = 2.51;
|
||
const float B = 0.03;
|
||
const float C = 2.43;
|
||
const float D = 0.59;
|
||
const float E = 0.14;
|
||
return (color * (A * color + B)) / (color * (C * color + D) + E);
|
||
}
|
||
@end`,Ymt=`
|
||
@export ecgl.common.transformUniforms
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;
|
||
uniform mat4 world : WORLD;
|
||
@end
|
||
|
||
@export ecgl.common.attributes
|
||
attribute vec3 position : POSITION;
|
||
attribute vec2 texcoord : TEXCOORD_0;
|
||
attribute vec3 normal : NORMAL;
|
||
@end
|
||
|
||
@export ecgl.common.uv.header
|
||
uniform vec2 uvRepeat : [1.0, 1.0];
|
||
uniform vec2 uvOffset : [0.0, 0.0];
|
||
uniform vec2 detailUvRepeat : [1.0, 1.0];
|
||
uniform vec2 detailUvOffset : [0.0, 0.0];
|
||
|
||
varying vec2 v_Texcoord;
|
||
varying vec2 v_DetailTexcoord;
|
||
@end
|
||
|
||
@export ecgl.common.uv.main
|
||
v_Texcoord = texcoord * uvRepeat + uvOffset;
|
||
v_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;
|
||
@end
|
||
|
||
@export ecgl.common.uv.fragmentHeader
|
||
varying vec2 v_Texcoord;
|
||
varying vec2 v_DetailTexcoord;
|
||
@end
|
||
|
||
|
||
@export ecgl.common.albedo.main
|
||
|
||
vec4 albedoTexel = vec4(1.0);
|
||
#ifdef DIFFUSEMAP_ENABLED
|
||
albedoTexel = texture2D(diffuseMap, v_Texcoord);
|
||
#ifdef SRGB_DECODE
|
||
albedoTexel = sRGBToLinear(albedoTexel);
|
||
#endif
|
||
#endif
|
||
|
||
#ifdef DETAILMAP_ENABLED
|
||
vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);
|
||
#ifdef SRGB_DECODE
|
||
detailTexel = sRGBToLinear(detailTexel);
|
||
#endif
|
||
albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);
|
||
albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.wireframe.vertexHeader
|
||
|
||
#ifdef WIREFRAME_QUAD
|
||
attribute vec4 barycentric;
|
||
varying vec4 v_Barycentric;
|
||
#elif defined(WIREFRAME_TRIANGLE)
|
||
attribute vec3 barycentric;
|
||
varying vec3 v_Barycentric;
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.wireframe.vertexMain
|
||
|
||
#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)
|
||
v_Barycentric = barycentric;
|
||
#endif
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.common.wireframe.fragmentHeader
|
||
|
||
uniform float wireframeLineWidth : 1;
|
||
uniform vec4 wireframeLineColor: [0, 0, 0, 0.5];
|
||
|
||
#ifdef WIREFRAME_QUAD
|
||
varying vec4 v_Barycentric;
|
||
float edgeFactor () {
|
||
vec4 d = fwidth(v_Barycentric);
|
||
vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);
|
||
return min(min(min(a4.x, a4.y), a4.z), a4.w);
|
||
}
|
||
#elif defined(WIREFRAME_TRIANGLE)
|
||
varying vec3 v_Barycentric;
|
||
float edgeFactor () {
|
||
vec3 d = fwidth(v_Barycentric);
|
||
vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);
|
||
return min(min(a3.x, a3.y), a3.z);
|
||
}
|
||
#endif
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.common.wireframe.fragmentMain
|
||
|
||
#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)
|
||
if (wireframeLineWidth > 0.) {
|
||
vec4 lineColor = wireframeLineColor;
|
||
#ifdef SRGB_DECODE
|
||
lineColor = sRGBToLinear(lineColor);
|
||
#endif
|
||
|
||
gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);
|
||
}
|
||
#endif
|
||
@end
|
||
|
||
|
||
|
||
|
||
@export ecgl.common.bumpMap.header
|
||
|
||
#ifdef BUMPMAP_ENABLED
|
||
uniform sampler2D bumpMap;
|
||
uniform float bumpScale : 1.0;
|
||
|
||
|
||
vec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)
|
||
{
|
||
vec2 dSTdx = dFdx(v_Texcoord);
|
||
vec2 dSTdy = dFdy(v_Texcoord);
|
||
|
||
float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;
|
||
float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;
|
||
float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;
|
||
|
||
vec3 vSigmaX = dFdx(surfPos);
|
||
vec3 vSigmaY = dFdy(surfPos);
|
||
vec3 vN = surfNormal;
|
||
|
||
vec3 R1 = cross(vSigmaY, vN);
|
||
vec3 R2 = cross(vN, vSigmaX);
|
||
|
||
float fDet = dot(vSigmaX, R1);
|
||
|
||
vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);
|
||
return normalize(abs(fDet) * baseNormal - vGrad);
|
||
|
||
}
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.normalMap.vertexHeader
|
||
|
||
#ifdef NORMALMAP_ENABLED
|
||
attribute vec4 tangent : TANGENT;
|
||
varying vec3 v_Tangent;
|
||
varying vec3 v_Bitangent;
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.normalMap.vertexMain
|
||
|
||
#ifdef NORMALMAP_ENABLED
|
||
if (dot(tangent, tangent) > 0.0) {
|
||
v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);
|
||
v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);
|
||
}
|
||
#endif
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.common.normalMap.fragmentHeader
|
||
|
||
#ifdef NORMALMAP_ENABLED
|
||
uniform sampler2D normalMap;
|
||
varying vec3 v_Tangent;
|
||
varying vec3 v_Bitangent;
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.normalMap.fragmentMain
|
||
#ifdef NORMALMAP_ENABLED
|
||
if (dot(v_Tangent, v_Tangent) > 0.0) {
|
||
vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;
|
||
if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;
|
||
mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);
|
||
N = normalize(tbn * N);
|
||
}
|
||
}
|
||
#endif
|
||
@end
|
||
|
||
|
||
|
||
@export ecgl.common.vertexAnimation.header
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
attribute vec3 prevPosition;
|
||
attribute vec3 prevNormal;
|
||
uniform float percent;
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.vertexAnimation.main
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
vec3 pos = mix(prevPosition, position, percent);
|
||
vec3 norm = mix(prevNormal, normal, percent);
|
||
#else
|
||
vec3 pos = position;
|
||
vec3 norm = normal;
|
||
#endif
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.common.ssaoMap.header
|
||
#ifdef SSAOMAP_ENABLED
|
||
uniform sampler2D ssaoMap;
|
||
uniform vec4 viewport : VIEWPORT;
|
||
#endif
|
||
@end
|
||
|
||
@export ecgl.common.ssaoMap.main
|
||
float ao = 1.0;
|
||
#ifdef SSAOMAP_ENABLED
|
||
ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;
|
||
#endif
|
||
@end
|
||
|
||
|
||
|
||
|
||
@export ecgl.common.diffuseLayer.header
|
||
|
||
#if (LAYER_DIFFUSEMAP_COUNT > 0)
|
||
uniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];
|
||
uniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.emissiveLayer.header
|
||
|
||
#if (LAYER_EMISSIVEMAP_COUNT > 0)
|
||
uniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];
|
||
uniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.layers.header
|
||
@import ecgl.common.diffuseLayer.header
|
||
@import ecgl.common.emissiveLayer.header
|
||
@end
|
||
|
||
@export ecgl.common.diffuseLayer.main
|
||
|
||
#if (LAYER_DIFFUSEMAP_COUNT > 0)
|
||
for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{
|
||
float intensity = layerDiffuseIntensity[_idx_];
|
||
vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);
|
||
#ifdef SRGB_DECODE
|
||
texel2 = sRGBToLinear(texel2);
|
||
#endif
|
||
albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);
|
||
albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;
|
||
}}
|
||
#endif
|
||
|
||
@end
|
||
|
||
@export ecgl.common.emissiveLayer.main
|
||
|
||
#if (LAYER_EMISSIVEMAP_COUNT > 0)
|
||
for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)
|
||
{{
|
||
vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];
|
||
#ifdef SRGB_DECODE
|
||
texel2 = sRGBToLinear(texel2);
|
||
#endif
|
||
float intensity = layerEmissionIntensity[_idx_];
|
||
gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;
|
||
}}
|
||
#endif
|
||
|
||
@end
|
||
`,jmt=`@export ecgl.color.vertex
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
|
||
@import ecgl.common.uv.header
|
||
|
||
attribute vec2 texcoord : TEXCOORD_0;
|
||
attribute vec3 position: POSITION;
|
||
|
||
@import ecgl.common.wireframe.vertexHeader
|
||
|
||
#ifdef VERTEX_COLOR
|
||
attribute vec4 a_Color : COLOR;
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
attribute vec3 prevPosition;
|
||
uniform float percent : 1.0;
|
||
#endif
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
attribute vec3 normal: NORMAL;
|
||
uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;
|
||
varying vec3 v_Normal;
|
||
#endif
|
||
|
||
void main()
|
||
{
|
||
#ifdef VERTEX_ANIMATION
|
||
vec3 pos = mix(prevPosition, position, percent);
|
||
#else
|
||
vec3 pos = position;
|
||
#endif
|
||
|
||
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
||
|
||
@import ecgl.common.uv.main
|
||
|
||
#ifdef VERTEX_COLOR
|
||
v_Color = a_Color;
|
||
#endif
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);
|
||
#endif
|
||
|
||
@import ecgl.common.wireframe.vertexMain
|
||
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.color.fragment
|
||
|
||
#define LAYER_DIFFUSEMAP_COUNT 0
|
||
#define LAYER_EMISSIVEMAP_COUNT 0
|
||
|
||
uniform sampler2D diffuseMap;
|
||
uniform sampler2D detailMap;
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
uniform mat4 viewTranspose: VIEWTRANSPOSE;
|
||
uniform vec3 glowColor;
|
||
uniform float glowPower;
|
||
varying vec3 v_Normal;
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
@import ecgl.common.layers.header
|
||
|
||
@import ecgl.common.uv.fragmentHeader
|
||
|
||
@import ecgl.common.wireframe.fragmentHeader
|
||
|
||
@import clay.util.srgb
|
||
|
||
void main()
|
||
{
|
||
#ifdef SRGB_DECODE
|
||
gl_FragColor = sRGBToLinear(color);
|
||
#else
|
||
gl_FragColor = color;
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
gl_FragColor *= v_Color;
|
||
#endif
|
||
|
||
@import ecgl.common.albedo.main
|
||
|
||
@import ecgl.common.diffuseLayer.main
|
||
|
||
gl_FragColor *= albedoTexel;
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);
|
||
gl_FragColor.rgb += glowColor * atmoIntensity;
|
||
#endif
|
||
|
||
@import ecgl.common.emissiveLayer.main
|
||
|
||
@import ecgl.common.wireframe.fragmentMain
|
||
|
||
}
|
||
@end`,Kmt=`/**
|
||
* http: */
|
||
|
||
@export ecgl.lambert.vertex
|
||
|
||
@import ecgl.common.transformUniforms
|
||
|
||
@import ecgl.common.uv.header
|
||
|
||
|
||
@import ecgl.common.attributes
|
||
|
||
@import ecgl.common.wireframe.vertexHeader
|
||
|
||
#ifdef VERTEX_COLOR
|
||
attribute vec4 a_Color : COLOR;
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
|
||
@import ecgl.common.vertexAnimation.header
|
||
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
void main()
|
||
{
|
||
@import ecgl.common.uv.main
|
||
|
||
@import ecgl.common.vertexAnimation.main
|
||
|
||
|
||
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
||
|
||
v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);
|
||
v_WorldPosition = (world * vec4(pos, 1.0)).xyz;
|
||
|
||
#ifdef VERTEX_COLOR
|
||
v_Color = a_Color;
|
||
#endif
|
||
|
||
@import ecgl.common.wireframe.vertexMain
|
||
}
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.lambert.fragment
|
||
|
||
#define LAYER_DIFFUSEMAP_COUNT 0
|
||
#define LAYER_EMISSIVEMAP_COUNT 0
|
||
|
||
#define NORMAL_UP_AXIS 1
|
||
#define NORMAL_FRONT_AXIS 2
|
||
|
||
@import ecgl.common.uv.fragmentHeader
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
uniform sampler2D diffuseMap;
|
||
uniform sampler2D detailMap;
|
||
|
||
@import ecgl.common.layers.header
|
||
|
||
uniform float emissionIntensity: 1.0;
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
uniform mat4 viewInverse : VIEWINVERSE;
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
uniform mat4 viewTranspose: VIEWTRANSPOSE;
|
||
uniform vec3 glowColor;
|
||
uniform float glowPower;
|
||
#endif
|
||
|
||
#ifdef AMBIENT_LIGHT_COUNT
|
||
@import clay.header.ambient_light
|
||
#endif
|
||
#ifdef AMBIENT_SH_LIGHT_COUNT
|
||
@import clay.header.ambient_sh_light
|
||
#endif
|
||
|
||
#ifdef DIRECTIONAL_LIGHT_COUNT
|
||
@import clay.header.directional_light
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
|
||
@import ecgl.common.ssaoMap.header
|
||
|
||
@import ecgl.common.bumpMap.header
|
||
|
||
@import clay.util.srgb
|
||
|
||
@import ecgl.common.wireframe.fragmentHeader
|
||
|
||
@import clay.plugin.compute_shadow_map
|
||
|
||
void main()
|
||
{
|
||
#ifdef SRGB_DECODE
|
||
gl_FragColor = sRGBToLinear(color);
|
||
#else
|
||
gl_FragColor = color;
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
#ifdef SRGB_DECODE
|
||
gl_FragColor *= sRGBToLinear(v_Color);
|
||
#else
|
||
gl_FragColor *= v_Color;
|
||
#endif
|
||
#endif
|
||
|
||
@import ecgl.common.albedo.main
|
||
|
||
@import ecgl.common.diffuseLayer.main
|
||
|
||
gl_FragColor *= albedoTexel;
|
||
|
||
vec3 N = v_Normal;
|
||
#ifdef DOUBLE_SIDED
|
||
vec3 eyePos = viewInverse[3].xyz;
|
||
vec3 V = normalize(eyePos - v_WorldPosition);
|
||
|
||
if (dot(N, V) < 0.0) {
|
||
N = -N;
|
||
}
|
||
#endif
|
||
|
||
float ambientFactor = 1.0;
|
||
|
||
#ifdef BUMPMAP_ENABLED
|
||
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
||
ambientFactor = dot(v_Normal, N);
|
||
#endif
|
||
|
||
vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);
|
||
|
||
vec3 diffuseColor = vec3(0.0, 0.0, 0.0);
|
||
|
||
@import ecgl.common.ssaoMap.main
|
||
|
||
#ifdef AMBIENT_LIGHT_COUNT
|
||
for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)
|
||
{
|
||
diffuseColor += ambientLightColor[i] * ambientFactor * ao;
|
||
}
|
||
#endif
|
||
#ifdef AMBIENT_SH_LIGHT_COUNT
|
||
for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)
|
||
{{
|
||
diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;
|
||
}}
|
||
#endif
|
||
#ifdef DIRECTIONAL_LIGHT_COUNT
|
||
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
||
if(shadowEnabled)
|
||
{
|
||
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
||
}
|
||
#endif
|
||
for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)
|
||
{
|
||
vec3 lightDirection = -directionalLightDirection[i];
|
||
vec3 lightColor = directionalLightColor[i];
|
||
|
||
float shadowContrib = 1.0;
|
||
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
if (shadowEnabled)
|
||
{
|
||
shadowContrib = shadowContribsDir[i];
|
||
}
|
||
#endif
|
||
|
||
float ndl = dot(N, normalize(lightDirection)) * shadowContrib;
|
||
|
||
diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);
|
||
}
|
||
#endif
|
||
|
||
gl_FragColor.rgb *= diffuseColor;
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);
|
||
gl_FragColor.rgb += glowColor * atmoIntensity;
|
||
#endif
|
||
|
||
@import ecgl.common.emissiveLayer.main
|
||
|
||
@import ecgl.common.wireframe.fragmentMain
|
||
}
|
||
|
||
@end`,Xmt=`@export ecgl.realistic.vertex
|
||
|
||
@import ecgl.common.transformUniforms
|
||
|
||
@import ecgl.common.uv.header
|
||
|
||
@import ecgl.common.attributes
|
||
|
||
|
||
@import ecgl.common.wireframe.vertexHeader
|
||
|
||
#ifdef VERTEX_COLOR
|
||
attribute vec4 a_Color : COLOR;
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
#ifdef NORMALMAP_ENABLED
|
||
attribute vec4 tangent : TANGENT;
|
||
varying vec3 v_Tangent;
|
||
varying vec3 v_Bitangent;
|
||
#endif
|
||
|
||
@import ecgl.common.vertexAnimation.header
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
void main()
|
||
{
|
||
|
||
@import ecgl.common.uv.main
|
||
|
||
@import ecgl.common.vertexAnimation.main
|
||
|
||
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
||
|
||
v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);
|
||
v_WorldPosition = (world * vec4(pos, 1.0)).xyz;
|
||
|
||
#ifdef VERTEX_COLOR
|
||
v_Color = a_Color;
|
||
#endif
|
||
|
||
#ifdef NORMALMAP_ENABLED
|
||
v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);
|
||
v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);
|
||
#endif
|
||
|
||
@import ecgl.common.wireframe.vertexMain
|
||
|
||
}
|
||
|
||
@end
|
||
|
||
|
||
|
||
@export ecgl.realistic.fragment
|
||
|
||
#define LAYER_DIFFUSEMAP_COUNT 0
|
||
#define LAYER_EMISSIVEMAP_COUNT 0
|
||
#define PI 3.14159265358979
|
||
#define ROUGHNESS_CHANEL 0
|
||
#define METALNESS_CHANEL 1
|
||
|
||
#define NORMAL_UP_AXIS 1
|
||
#define NORMAL_FRONT_AXIS 2
|
||
|
||
#ifdef VERTEX_COLOR
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
@import ecgl.common.uv.fragmentHeader
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
uniform sampler2D diffuseMap;
|
||
|
||
uniform sampler2D detailMap;
|
||
uniform sampler2D metalnessMap;
|
||
uniform sampler2D roughnessMap;
|
||
|
||
@import ecgl.common.layers.header
|
||
|
||
uniform float emissionIntensity: 1.0;
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
uniform float metalness : 0.0;
|
||
uniform float roughness : 0.5;
|
||
|
||
uniform mat4 viewInverse : VIEWINVERSE;
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
uniform mat4 viewTranspose: VIEWTRANSPOSE;
|
||
uniform vec3 glowColor;
|
||
uniform float glowPower;
|
||
#endif
|
||
|
||
#ifdef AMBIENT_LIGHT_COUNT
|
||
@import clay.header.ambient_light
|
||
#endif
|
||
|
||
#ifdef AMBIENT_SH_LIGHT_COUNT
|
||
@import clay.header.ambient_sh_light
|
||
#endif
|
||
|
||
#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT
|
||
@import clay.header.ambient_cubemap_light
|
||
#endif
|
||
|
||
#ifdef DIRECTIONAL_LIGHT_COUNT
|
||
@import clay.header.directional_light
|
||
#endif
|
||
|
||
@import ecgl.common.normalMap.fragmentHeader
|
||
|
||
@import ecgl.common.ssaoMap.header
|
||
|
||
@import ecgl.common.bumpMap.header
|
||
|
||
@import clay.util.srgb
|
||
|
||
@import clay.util.rgbm
|
||
|
||
@import ecgl.common.wireframe.fragmentHeader
|
||
|
||
@import clay.plugin.compute_shadow_map
|
||
|
||
vec3 F_Schlick(float ndv, vec3 spec) {
|
||
return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);
|
||
}
|
||
|
||
float D_Phong(float g, float ndh) {
|
||
float a = pow(8192.0, g);
|
||
return (a + 2.0) / 8.0 * pow(ndh, a);
|
||
}
|
||
|
||
void main()
|
||
{
|
||
vec4 albedoColor = color;
|
||
|
||
vec3 eyePos = viewInverse[3].xyz;
|
||
vec3 V = normalize(eyePos - v_WorldPosition);
|
||
#ifdef VERTEX_COLOR
|
||
#ifdef SRGB_DECODE
|
||
albedoColor *= sRGBToLinear(v_Color);
|
||
#else
|
||
albedoColor *= v_Color;
|
||
#endif
|
||
#endif
|
||
|
||
@import ecgl.common.albedo.main
|
||
|
||
@import ecgl.common.diffuseLayer.main
|
||
|
||
albedoColor *= albedoTexel;
|
||
|
||
float m = metalness;
|
||
|
||
#ifdef METALNESSMAP_ENABLED
|
||
float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];
|
||
m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);
|
||
#endif
|
||
|
||
vec3 baseColor = albedoColor.rgb;
|
||
albedoColor.rgb = baseColor * (1.0 - m);
|
||
vec3 specFactor = mix(vec3(0.04), baseColor, m);
|
||
|
||
float g = 1.0 - roughness;
|
||
|
||
#ifdef ROUGHNESSMAP_ENABLED
|
||
float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];
|
||
g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);
|
||
#endif
|
||
|
||
vec3 N = v_Normal;
|
||
|
||
#ifdef DOUBLE_SIDED
|
||
if (dot(N, V) < 0.0) {
|
||
N = -N;
|
||
}
|
||
#endif
|
||
|
||
float ambientFactor = 1.0;
|
||
|
||
#ifdef BUMPMAP_ENABLED
|
||
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
||
ambientFactor = dot(v_Normal, N);
|
||
#endif
|
||
|
||
@import ecgl.common.normalMap.fragmentMain
|
||
|
||
vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);
|
||
|
||
vec3 diffuseTerm = vec3(0.0);
|
||
vec3 specularTerm = vec3(0.0);
|
||
|
||
float ndv = clamp(dot(N, V), 0.0, 1.0);
|
||
vec3 fresnelTerm = F_Schlick(ndv, specFactor);
|
||
|
||
@import ecgl.common.ssaoMap.main
|
||
|
||
#ifdef AMBIENT_LIGHT_COUNT
|
||
for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)
|
||
{{
|
||
diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;
|
||
}}
|
||
#endif
|
||
|
||
#ifdef AMBIENT_SH_LIGHT_COUNT
|
||
for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)
|
||
{{
|
||
diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;
|
||
}}
|
||
#endif
|
||
|
||
#ifdef DIRECTIONAL_LIGHT_COUNT
|
||
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
||
if(shadowEnabled)
|
||
{
|
||
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
||
}
|
||
#endif
|
||
for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)
|
||
{{
|
||
vec3 L = -directionalLightDirection[_idx_];
|
||
vec3 lc = directionalLightColor[_idx_];
|
||
|
||
vec3 H = normalize(L + V);
|
||
float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);
|
||
float ndh = clamp(dot(N, H), 0.0, 1.0);
|
||
|
||
float shadowContrib = 1.0;
|
||
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
if (shadowEnabled)
|
||
{
|
||
shadowContrib = shadowContribsDir[_idx_];
|
||
}
|
||
#endif
|
||
|
||
vec3 li = lc * ndl * shadowContrib;
|
||
|
||
diffuseTerm += li;
|
||
specularTerm += li * fresnelTerm * D_Phong(g, ndh);
|
||
}}
|
||
#endif
|
||
|
||
|
||
#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT
|
||
vec3 L = reflect(-V, N);
|
||
L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);
|
||
float rough2 = clamp(1.0 - g, 0.0, 1.0);
|
||
float bias2 = rough2 * 5.0;
|
||
vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;
|
||
vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;
|
||
vec3 envTexel2;
|
||
for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)
|
||
{{
|
||
envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12);
|
||
specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;
|
||
}}
|
||
#endif
|
||
|
||
gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;
|
||
gl_FragColor.a = albedoColor.a;
|
||
|
||
#ifdef ATMOSPHERE_ENABLED
|
||
float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);
|
||
gl_FragColor.rgb += glowColor * atmoIntensity;
|
||
#endif
|
||
|
||
#ifdef SRGB_ENCODE
|
||
gl_FragColor = linearTosRGB(gl_FragColor);
|
||
#endif
|
||
|
||
@import ecgl.common.emissiveLayer.main
|
||
|
||
@import ecgl.common.wireframe.fragmentMain
|
||
}
|
||
|
||
@end`,Zmt=`@export ecgl.hatching.vertex
|
||
|
||
@import ecgl.realistic.vertex
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.hatching.fragment
|
||
|
||
#define NORMAL_UP_AXIS 1
|
||
#define NORMAL_FRONT_AXIS 2
|
||
|
||
@import ecgl.common.uv.fragmentHeader
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
uniform vec4 color : [0.0, 0.0, 0.0, 1.0];
|
||
uniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
uniform mat4 viewInverse : VIEWINVERSE;
|
||
|
||
#ifdef AMBIENT_LIGHT_COUNT
|
||
@import clay.header.ambient_light
|
||
#endif
|
||
#ifdef AMBIENT_SH_LIGHT_COUNT
|
||
@import clay.header.ambient_sh_light
|
||
#endif
|
||
|
||
#ifdef DIRECTIONAL_LIGHT_COUNT
|
||
@import clay.header.directional_light
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
|
||
@import ecgl.common.ssaoMap.header
|
||
|
||
@import ecgl.common.bumpMap.header
|
||
|
||
@import clay.util.srgb
|
||
|
||
@import ecgl.common.wireframe.fragmentHeader
|
||
|
||
@import clay.plugin.compute_shadow_map
|
||
|
||
uniform sampler2D hatch1;
|
||
uniform sampler2D hatch2;
|
||
uniform sampler2D hatch3;
|
||
uniform sampler2D hatch4;
|
||
uniform sampler2D hatch5;
|
||
uniform sampler2D hatch6;
|
||
|
||
float shade(in float tone) {
|
||
vec4 c = vec4(1. ,1., 1., 1.);
|
||
float step = 1. / 6.;
|
||
vec2 uv = v_DetailTexcoord;
|
||
if (tone <= step / 2.0) {
|
||
c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);
|
||
}
|
||
else if (tone <= step) {
|
||
c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);
|
||
}
|
||
if(tone > step && tone <= 2. * step){
|
||
c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));
|
||
}
|
||
if(tone > 2. * step && tone <= 3. * step){
|
||
c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));
|
||
}
|
||
if(tone > 3. * step && tone <= 4. * step){
|
||
c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));
|
||
}
|
||
if(tone > 4. * step && tone <= 5. * step){
|
||
c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));
|
||
}
|
||
if(tone > 5. * step){
|
||
c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));
|
||
}
|
||
|
||
return c.r;
|
||
}
|
||
|
||
const vec3 w = vec3(0.2125, 0.7154, 0.0721);
|
||
|
||
void main()
|
||
{
|
||
#ifdef SRGB_DECODE
|
||
vec4 inkColor = sRGBToLinear(color);
|
||
#else
|
||
vec4 inkColor = color;
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
#ifdef SRGB_DECODE
|
||
inkColor *= sRGBToLinear(v_Color);
|
||
#else
|
||
inkColor *= v_Color;
|
||
#endif
|
||
#endif
|
||
|
||
vec3 N = v_Normal;
|
||
#ifdef DOUBLE_SIDED
|
||
vec3 eyePos = viewInverse[3].xyz;
|
||
vec3 V = normalize(eyePos - v_WorldPosition);
|
||
|
||
if (dot(N, V) < 0.0) {
|
||
N = -N;
|
||
}
|
||
#endif
|
||
|
||
float tone = 0.0;
|
||
|
||
float ambientFactor = 1.0;
|
||
|
||
#ifdef BUMPMAP_ENABLED
|
||
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
||
ambientFactor = dot(v_Normal, N);
|
||
#endif
|
||
|
||
vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);
|
||
|
||
@import ecgl.common.ssaoMap.main
|
||
|
||
#ifdef AMBIENT_LIGHT_COUNT
|
||
for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)
|
||
{
|
||
tone += dot(ambientLightColor[i], w) * ambientFactor * ao;
|
||
}
|
||
#endif
|
||
#ifdef AMBIENT_SH_LIGHT_COUNT
|
||
for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)
|
||
{{
|
||
tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;
|
||
}}
|
||
#endif
|
||
#ifdef DIRECTIONAL_LIGHT_COUNT
|
||
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
||
if(shadowEnabled)
|
||
{
|
||
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
||
}
|
||
#endif
|
||
for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)
|
||
{
|
||
vec3 lightDirection = -directionalLightDirection[i];
|
||
float lightTone = dot(directionalLightColor[i], w);
|
||
|
||
float shadowContrib = 1.0;
|
||
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
if (shadowEnabled)
|
||
{
|
||
shadowContrib = shadowContribsDir[i];
|
||
}
|
||
#endif
|
||
|
||
float ndl = dot(N, normalize(lightDirection)) * shadowContrib;
|
||
|
||
tone += lightTone * clamp(ndl, 0.0, 1.0);
|
||
}
|
||
#endif
|
||
|
||
gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));
|
||
}
|
||
@end
|
||
`,qmt=`@export ecgl.sm.depth.vertex
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
|
||
attribute vec3 position : POSITION;
|
||
attribute vec2 texcoord : TEXCOORD_0;
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
attribute vec3 prevPosition;
|
||
uniform float percent : 1.0;
|
||
#endif
|
||
|
||
varying vec4 v_ViewPosition;
|
||
varying vec2 v_Texcoord;
|
||
|
||
void main(){
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
vec3 pos = mix(prevPosition, position, percent);
|
||
#else
|
||
vec3 pos = position;
|
||
#endif
|
||
|
||
v_ViewPosition = worldViewProjection * vec4(pos, 1.0);
|
||
gl_Position = v_ViewPosition;
|
||
|
||
v_Texcoord = texcoord;
|
||
|
||
}
|
||
@end
|
||
|
||
|
||
|
||
@export ecgl.sm.depth.fragment
|
||
|
||
@import clay.sm.depth.fragment
|
||
|
||
@end`;Object.assign(Nl.prototype,Wmt);nt.import(rie);nt.import(Wae);nt.import(Ymt);nt.import(jmt);nt.import(Kmt);nt.import(Xmt);nt.import(Zmt);nt.import(qmt);function Qmt(e){return!e||e==="none"}function nie(e){return e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof Image}function Jmt(e){return e.getZr&&e.setOption}var eyt=Wf.prototype.addToScene,tyt=Wf.prototype.removeFromScene;Wf.prototype.addToScene=function(e){if(eyt.call(this,e),this.__zr){var t=this.__zr;e.traverse(function(r){r.__zr=t,r.addAnimatorsToZr&&r.addAnimatorsToZr(t)})}};Wf.prototype.removeFromScene=function(e){tyt.call(this,e),e.traverse(function(t){var r=t.__zr;t.__zr=null,r&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(r)})};as.prototype.setTextureImage=function(e,t,r,n){if(this.shader){var a=r.getZr(),i=this,o;return i.autoUpdateTextureStatus=!1,i.disableTexture(e),Qmt(t)||(o=rr.loadTexture(t,r,n,function(s){i.enableTexture(e),a&&a.refresh()}),i.set(e,o)),o}};var rr={};rr.Renderer=f0;rr.Node=Nl;rr.Mesh=dh;rr.Shader=nt;rr.Material=as;rr.Texture=$t;rr.Texture2D=_r;rr.Geometry=Hr;rr.SphereGeometry=Lmt;rr.PlaneGeometry=zT;rr.CubeGeometry=eie;rr.AmbientLight=Rmt;rr.DirectionalLight=kmt;rr.PointLight=Bmt;rr.SpotLight=Vmt;rr.PerspectiveCamera=Sa;rr.OrthographicCamera=Ag;rr.Vector2=mo;rr.Vector3=mt;rr.Vector4=zmt;rr.Quaternion=Yae;rr.Matrix2=Hmt;rr.Matrix2d=Gmt;rr.Matrix3=Umt;rr.Matrix4=Bt;rr.Plane=qae;rr.Ray=A2;rr.BoundingBox=Ti;rr.Frustum=c4;var Mw=null;function ryt(){return Mw!==null||(Mw=Lh.createBlank("rgba(255,255,255,0)").image),Mw}function K$(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function X$(e){if((e.wrapS===$t.REPEAT||e.wrapT===$t.REPEAT)&&e.image){var t=K$(e.width),r=K$(e.height);if(t!==e.width||r!==e.height){var n=document.createElement("canvas");n.width=t,n.height=r;var a=n.getContext("2d");a.drawImage(e.image,0,0,t,r),e.image=n}}}rr.loadTexture=function(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};for(var a=Object.keys(r).sort(),i="",o=0;o<a.length;o++)i+=a[o]+"_"+r[a[o]]+"_";var s=t.__textureCache=t.__textureCache||new Vg(20);if(Jmt(e)){var l=e.__textureid__,u=s.get(i+l);if(u)u.texture.surface.setECharts(e),n&&n(u.texture);else{var c=new hmt(e);c.onupdate=function(){t.getZr().refresh()},u={texture:c.getTexture()};for(var o=0;o<a.length;o++)u.texture[a[o]]=r[a[o]];l=e.__textureid__||"__ecgl_ec__"+u.texture.__uid__,e.__textureid__=l,s.put(i+l,u),n&&n(u.texture)}return u.texture}else if(nie(e)){var l=e.__textureid__,u=s.get(i+l);if(!u){u={texture:new rr.Texture2D({image:e})};for(var o=0;o<a.length;o++)u.texture[a[o]]=r[a[o]];l=e.__textureid__||"__ecgl_image__"+u.texture.__uid__,e.__textureid__=l,s.put(i+l,u),X$(u.texture),n&&n(u.texture)}return u.texture}else{var u=s.get(i+e);if(u)u.callbacks?u.callbacks.push(n):n&&n(u.texture);else if(e.match(/.hdr$|^data:application\/octet-stream/)){u={callbacks:[n]};var f=Lh.loadTexture(e,{exposure:r.exposure,fileType:"hdr"},function(){f.dirty(),u.callbacks.forEach(function(v){v&&v(f)}),u.callbacks=null});u.texture=f,s.put(i+e,u)}else{for(var f=new rr.Texture2D({image:new Image}),o=0;o<a.length;o++)f[a[o]]=r[a[o]];u={texture:f,callbacks:[n]};var d=f.image;d.onload=function(){f.image=d,X$(f),f.dirty(),u.callbacks.forEach(function(p){p&&p(f)}),u.callbacks=null},d.crossOrigin="Anonymous",d.src=e,f.image=ryt(),s.put(i+e,u)}return u.texture}};rr.createAmbientCubemap=function(e,t,r,n){e=e||{};var a=e.texture,i=Sr.firstNotNull(e.exposure,1),o=new Smt({intensity:Sr.firstNotNull(e.specularIntensity,1)}),s=new Amt({intensity:Sr.firstNotNull(e.diffuseIntensity,1),coefficients:[.844,.712,.691,-.037,.083,.167,.343,.288,.299,-.041,-.021,-.009,-.003,-.041,-.064,-.011,-.007,-.004,-.031,.034,.081,-.06,-.049,-.06,.046,.056,.05]});return o.cubemap=rr.loadTexture(a,r,{exposure:i},function(){o.cubemap.flipY=!1,o.prefilter(t,32),s.coefficients=Mmt.projectEnvironmentMap(t,o.cubemap,{lod:1}),n&&n()}),{specular:o,diffuse:s}};rr.createBlankTexture=Lh.createBlank;rr.isImage=nie;rr.additiveBlend=function(e){e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE)};rr.parseColor=function(e,t){return e instanceof Array?(t||(t=[]),t[0]=e[0],t[1]=e[1],t[2]=e[2],e.length>3?t[3]=e[3]:t[3]=1,t):(t=Za(e||"#000",t)||[0,0,0,0],t[0]/=255,t[1]/=255,t[2]/=255,t)};rr.directionFromAlphaBeta=function(e,t){var r=e/180*Math.PI+Math.PI/2,n=-t/180*Math.PI+Math.PI/2,a=[],i=Math.sin(r);return a[0]=i*Math.cos(n),a[1]=-Math.cos(r),a[2]=i*Math.sin(n),a};rr.getShadowResolution=function(e){var t=1024;switch(e){case"low":t=512;break;case"medium":break;case"high":t=2048;break;case"ultra":t=4096;break}return t};rr.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"];rr.createShader=function(e){e==="ecgl.shadow"&&(e="ecgl.displayShadow");var t=nt.source(e+".vertex"),r=nt.source(e+".fragment");t||console.error("Vertex shader of '%s' not exits",e),r||console.error("Fragment shader of '%s' not exits",e);var n=new nt(t,r);return n.name=e,n};rr.createMaterial=function(e,t){t instanceof Array||(t=[t]);var r=rr.createShader(e),n=new as({shader:r});return t.forEach(function(a){typeof a=="string"&&n.define(a)}),n};rr.setMaterialFromModel=function(e,t,r,n){t.autoUpdateTextureStatus=!1;var a=r.getModel(e+"Material"),i=a.get("detailTexture"),o=Sr.firstNotNull(a.get("textureTiling"),1),s=Sr.firstNotNull(a.get("textureOffset"),0);typeof o=="number"&&(o=[o,o]),typeof s=="number"&&(s=[s,s]);var l=o[0]>1||o[1]>1?rr.Texture.REPEAT:rr.Texture.CLAMP_TO_EDGE,u={anisotropic:8,wrapS:l,wrapT:l};if(e==="realistic"){var c=a.get("roughness"),f=a.get("metalness");f!=null?isNaN(f)&&(t.setTextureImage("metalnessMap",f,n,u),f=Sr.firstNotNull(a.get("metalnessAdjust"),.5)):f=0,c!=null?isNaN(c)&&(t.setTextureImage("roughnessMap",c,n,u),c=Sr.firstNotNull(a.get("roughnessAdjust"),.5)):c=.5;var d=a.get("normalTexture");t.setTextureImage("detailMap",i,n,u),t.setTextureImage("normalMap",d,n,u),t.set({roughness:c,metalness:f,detailUvRepeat:o,detailUvOffset:s})}else if(e==="lambert")t.setTextureImage("detailMap",i,n,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="color")t.setTextureImage("detailMap",i,n,u),t.set({detailUvRepeat:o,detailUvOffset:s});else if(e==="hatching"){var h=a.get("hatchingTextures")||[];h.length<6;for(var v=0;v<6;v++)t.setTextureImage("hatch"+(v+1),h[v],n,{anisotropic:8,wrapS:rr.Texture.REPEAT,wrapT:rr.Texture.REPEAT});t.set({detailUvRepeat:o,detailUvOffset:s})}};rr.updateVertexAnimation=function(e,t,r,n){var a=n.get("animation"),i=n.get("animationDurationUpdate"),o=n.get("animationEasingUpdate"),s=r.shadowDepthMaterial;if(a&&t&&i>0&&t.geometry.vertexCount===r.geometry.vertexCount){r.material.define("vertex","VERTEX_ANIMATION"),r.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l<e.length;l++)r.geometry.attributes[e[l][0]].value=t.geometry.attributes[e[l][1]].value;r.geometry.dirty(),r.__percent=0,r.material.set("percent",0),r.stopAnimation(),r.animate().when(i,{__percent:1}).during(function(){r.material.set("percent",r.__percent),s&&s.set("percent",r.__percent)}).done(function(){r.ignorePreZ=!1,r.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")}).start(o)}else r.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")};const ue=rr;var pn=function(e,t){this.id=e,this.zr=t;try{this.renderer=new f0({clearBit:0,devicePixelRatio:t.painter.dpr,preserveDrawingBuffer:!0,premultipliedAlpha:!0}),this.renderer.resize(t.painter.getWidth(),t.painter.getHeight())}catch(n){this.renderer=null,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute; left: 0; top: 0; right: 0; bottom: 0;",this.dom.className="ecgl-nowebgl",this.dom.innerHTML="Sorry, your browser does not support WebGL",console.error(n);return}this.onglobalout=this.onglobalout.bind(this),t.on("globalout",this.onglobalout),this.dom=this.renderer.canvas;var r=this.dom.style;r.position="absolute",r.left="0",r.top="0",this.views=[],this._picking=new Sgt({renderer:this.renderer}),this._viewsToDispose=[],this._accumulatingId=0,this._zrEventProxy=new br({shape:{x:-1,y:-1,width:2,height:2},__isGLToZRProxy:!0}),this._backgroundColor=null,this._disposed=!1};pn.prototype.setUnpainted=function(){};pn.prototype.addView=function(e){if(e.layer!==this){var t=this._viewsToDispose.indexOf(e);t>=0&&this._viewsToDispose.splice(t,1),this.views.push(e),e.layer=this;var r=this.zr;e.scene.traverse(function(n){n.__zr=r,n.addAnimatorsToZr&&n.addAnimatorsToZr(r)})}};function aie(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)}pn.prototype.removeView=function(e){if(e.layer===this){var t=this.views.indexOf(e);t>=0&&(this.views.splice(t,1),e.scene.traverse(aie,this),e.layer=null,this._viewsToDispose.push(e))}};pn.prototype.removeViewsAll=function(){this.views.forEach(function(e){e.scene.traverse(aie,this),e.layer=null,this._viewsToDispose.push(e)},this),this.views.length=0};pn.prototype.resize=function(e,t){var r=this.renderer;r.resize(e,t)};pn.prototype.clear=function(){var e=this.renderer.gl,t=this._backgroundColor||[0,0,0,0];e.clearColor(t[0],t[1],t[2],t[3]),e.depthMask(!0),e.colorMask(!0,!0,!0,!0),e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT)};pn.prototype.clearDepth=function(){var e=this.renderer.gl;e.clear(e.DEPTH_BUFFER_BIT)};pn.prototype.clearColor=function(){var e=this.renderer.gl;e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)};pn.prototype.needsRefresh=function(){this.zr.refresh()};pn.prototype.refresh=function(e){this._backgroundColor=e?ue.parseColor(e):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var t=0;t<this.views.length;t++)this.views[t].prepareRender(this.renderer);this._doRender(!1),this._trackAndClean();for(var t=0;t<this._viewsToDispose.length;t++)this._viewsToDispose[t].dispose(this.renderer);this._viewsToDispose.length=0,this._startAccumulating()};pn.prototype.renderToCanvas=function(e){this._startAccumulating(!0),e.drawImage(this.dom,0,0,e.canvas.width,e.canvas.height)};pn.prototype._doRender=function(e){this.clear(),this.renderer.saveViewport();for(var t=0;t<this.views.length;t++)this.views[t].render(this.renderer,e);this.renderer.restoreViewport()};pn.prototype._stopAccumulating=function(){this._accumulatingId=0,clearTimeout(this._accumulatingTimeout)};var nyt=1;pn.prototype._startAccumulating=function(e){var t=this;this._stopAccumulating();for(var r=!1,n=0;n<this.views.length;n++)r=this.views[n].needsAccumulate()||r;if(!r)return;function a(i){if(!(!t._accumulatingId||i!==t._accumulatingId)){for(var o=!0,s=0;s<t.views.length;s++)o=t.views[s].isAccumulateFinished()&&r;o||(t._doRender(!0),e?a(i):qp(function(){a(i)}))}}this._accumulatingId=nyt++,e?a(t._accumulatingId):this._accumulatingTimeout=setTimeout(function(){a(t._accumulatingId)},50)};pn.prototype._trackAndClean=function(){var e=[],t=[];this._textureList&&(C2(this._textureList),C2(this._geometriesList));for(var r=0;r<this.views.length;r++)ayt(this.views[r].scene,e,t);this._textureList&&(E2(this.renderer,this._textureList),E2(this.renderer,this._geometriesList)),this._textureList=e,this._geometriesList=t};function C2(e){for(var t=0;t<e.length;t++)e[t].__used__=0}function E2(e,t){for(var r=0;r<t.length;r++)t[r].__used__||t[r].dispose(e)}function Dw(e,t){e.__used__=e.__used__||0,e.__used__++,e.__used__===1&&t.push(e)}function ayt(e,t,r){var n,a;e.traverse(function(o){if(o.isRenderable()){var s=o.geometry,l=o.material;if(l!==n)for(var u=l.getTextureUniforms(),c=0;c<u.length;c++){var f=u[c],d=l.uniforms[f].value;if(d){if(d instanceof $t)Dw(d,t);else if(d instanceof Array)for(var h=0;h<d.length;h++)d[h]instanceof $t&&Dw(d[h],t)}}s!==a&&Dw(s,r),n=l,a=s}});for(var i=0;i<e.lights.length;i++)e.lights[i].cubemap&&Dw(e.lights[i].cubemap,t)}pn.prototype.dispose=function(){this._disposed||(this._stopAccumulating(),this._textureList&&(C2(this._textureList),C2(this._geometriesList),E2(this.renderer,this._textureList),E2(this.renderer,this._geometriesList)),this.zr.off("globalout",this.onglobalout),this._disposed=!0)};pn.prototype.onmousedown=function(e){if(!(e.target&&e.target.__isGLToZRProxy)){e=e.event;var t=this.pickObject(e.offsetX,e.offsetY);t&&(this._dispatchEvent("mousedown",e,t),this._dispatchDataEvent("mousedown",e,t)),this._downX=e.offsetX,this._downY=e.offsetY}};pn.prototype.onmousemove=function(e){if(!(e.target&&e.target.__isGLToZRProxy)){e=e.event;var t=this.pickObject(e.offsetX,e.offsetY),r=t&&t.target,n=this._hovered;this._hovered=t,n&&r!==n.target&&(n.relatedTarget=r,this._dispatchEvent("mouseout",e,n),this.zr.setCursorStyle("default")),this._dispatchEvent("mousemove",e,t),t&&(this.zr.setCursorStyle("pointer"),(!n||r!==n.target)&&this._dispatchEvent("mouseover",e,t)),this._dispatchDataEvent("mousemove",e,t)}};pn.prototype.onmouseup=function(e){if(!(e.target&&e.target.__isGLToZRProxy)){e=e.event;var t=this.pickObject(e.offsetX,e.offsetY);t&&(this._dispatchEvent("mouseup",e,t),this._dispatchDataEvent("mouseup",e,t)),this._upX=e.offsetX,this._upY=e.offsetY}};pn.prototype.onclick=pn.prototype.dblclick=function(e){if(!(e.target&&e.target.__isGLToZRProxy)){var t=this._upX-this._downX,r=this._upY-this._downY;if(!(Math.sqrt(t*t+r*r)>20)){e=e.event;var n=this.pickObject(e.offsetX,e.offsetY);n&&(this._dispatchEvent(e.type,e,n),this._dispatchDataEvent(e.type,e,n));var a=this._clickToSetFocusPoint(e);if(a){var i=a.view.setDOFFocusOnPoint(a.distance);i&&this.zr.refresh()}}}};pn.prototype._clickToSetFocusPoint=function(e){for(var t=this.renderer,r=t.viewport,n=this.views.length-1;n>=0;n--){var a=this.views[n];if(a.hasDOF()&&a.containPoint(e.offsetX,e.offsetY)){this._picking.scene=a.scene,this._picking.camera=a.camera,t.viewport=a.viewport;var i=this._picking.pick(e.offsetX,e.offsetY,!0);if(i)return i.view=a,i}}t.viewport=r};pn.prototype.onglobalout=function(e){var t=this._hovered;t&&this._dispatchEvent("mouseout",e,{target:t.target})};pn.prototype.pickObject=function(e,t){for(var r=[],n=this.renderer,a=n.viewport,i=0;i<this.views.length;i++){var o=this.views[i];o.containPoint(e,t)&&(this._picking.scene=o.scene,this._picking.camera=o.camera,n.viewport=o.viewport,this._picking.pickAll(e,t,r))}return n.viewport=a,r.sort(function(s,l){return s.distance-l.distance}),r[0]};pn.prototype._dispatchEvent=function(e,t,r){r||(r={});var n=r.target;for(r.cancelBubble=!1,r.event=t,r.type=e,r.offsetX=t.offsetX,r.offsetY=t.offsetY;n&&(n.trigger(e,r),n=n.getParent(),!r.cancelBubble););this._dispatchToView(e,r)};pn.prototype._dispatchDataEvent=function(e,t,r){var n=r&&r.target,a=n&&n.dataIndex,i=n&&n.seriesIndex,o=n&&n.eventData,s=!1,l=this._zrEventProxy;l.x=t.offsetX,l.y=t.offsetY,l.update();var u={target:l};const c=Ht(l);e==="mousemove"&&(a!=null?a!==this._lastDataIndex&&(parseInt(this._lastDataIndex,10)>=0&&(c.dataIndex=this._lastDataIndex,c.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0):o!=null&&o!==this._lastEventData&&(this._lastEventData!=null&&(c.eventData=this._lastEventData,this.zr.handler.dispatchToElement(u,"mouseout",t)),s=!0),this._lastEventData=o,this._lastDataIndex=a,this._lastSeriesIndex=i),c.eventData=o,c.dataIndex=a,c.seriesIndex=i,(o!=null||parseInt(a,10)>=0&&parseInt(i,10)>=0)&&(this.zr.handler.dispatchToElement(u,e,t),s&&this.zr.handler.dispatchToElement(u,"mouseover",t))};pn.prototype._dispatchToView=function(e,t){for(var r=0;r<this.views.length;r++)this.views[r].containPoint(t.offsetX,t.offsetY)&&this.views[r].trigger(e,t)};Object.assign(pn.prototype,o4);const iie=pn;var iyt=["bar3D","line3D","map3D","scatter3D","surface","lines3D","scatterGL","scatter3D"];function Py(e,t){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,n=e[t].emphasis;r&&(e[t]=r),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n)}}function oyt(e){Py(e,"itemStyle"),Py(e,"lineStyle"),Py(e,"areaStyle"),Py(e,"label")}function Pw(e){e&&(e instanceof Array||(e=[e]),W(e,function(t){if(t.axisLabel){var r=t.axisLabel;Object.assign(r,r.textStyle),r.textStyle=null}}))}function syt(e){W(e.series,function(t){tr(iyt,t.type)>=0&&(oyt(t),t.coordinateSystem==="mapbox"&&(t.coordinateSystem="mapbox3D",e.mapbox3D=e.mapbox))}),Pw(e.xAxis3D),Pw(e.yAxis3D),Pw(e.zAxis3D),Pw(e.grid3D),Py(e.geo3D)}function oie(e){this._layers={},this._zr=e}oie.prototype.update=function(e,t){var r=this,n=t.getZr();if(!n.getWidth()||!n.getHeight()){console.warn("Dom has no width or height");return}function a(s){n.setSleepAfterStill(0);var l;s.coordinateSystem&&s.coordinateSystem.model,l=s.get("zlevel");var u=r._layers,c=u[l];if(!c){if(c=u[l]=new iie("gl-"+l,n),n.painter.isSingleCanvas()){c.virtual=!0;var f=new Oa({z:1e4,style:{image:c.renderer.canvas},silent:!0});c.__hostImage=f,n.add(f)}n.painter.insertLayer(l,c)}return c.__hostImage&&c.__hostImage.setStyle({width:c.renderer.getWidth(),height:c.renderer.getHeight()}),c}function i(s,l){s&&s.traverse(function(u){u.isRenderable&&u.isRenderable()&&(u.ignorePicking=u.$ignorePicking!=null?u.$ignorePicking:l)})}for(var o in this._layers)this._layers[o].removeViewsAll();e.eachComponent(function(s,l){if(s!=="series"){var u=t.getViewOfComponentModel(l),c=l.coordinateSystem;if(u.__ecgl__){var f;if(c){if(!c.viewGL){console.error("Can't find viewGL in coordinateSystem of component "+l.id);return}f=c.viewGL}else{if(!l.viewGL){console.error("Can't find viewGL of component "+l.id);return}f=c.viewGL}var f=c.viewGL,d=a(l);d.addView(f),u.afterRender&&u.afterRender(l,e,t,d),i(u.groupGL,l.get("silent"))}}}),e.eachSeries(function(s){var l=t.getViewOfSeriesModel(s),u=s.coordinateSystem;if(l.__ecgl__){if(u&&!u.viewGL&&!l.viewGL){console.error("Can't find viewGL of series "+l.id);return}var c=u&&u.viewGL||l.viewGL,f=a(s);f.addView(c),l.afterRender&&l.afterRender(s,e,t,f),i(l.groupGL,s.get("silent"))}})};pk(function(e){var t=e.getZr(),r=t.painter.dispose;t.painter.dispose=function(){typeof this.eachOtherLayer=="function"&&this.eachOtherLayer(function(n){n instanceof iie&&n.dispose()}),r.call(this)},t.painter.getRenderedCanvas=function(n){if(n=n||{},this._singleCanvas)return this._layers[0].dom;var a=document.createElement("canvas"),i=n.pixelRatio||this.dpr;a.width=this.getWidth()*i,a.height=this.getHeight()*i;var o=a.getContext("2d");o.dpr=i,o.clearRect(0,0,a.width,a.height),n.backgroundColor&&(o.fillStyle=n.backgroundColor,o.fillRect(0,0,a.width,a.height));var s=this.storage.getDisplayList(!0),l={},u,c=this;function f(p,g){var m=c._zlevelList;p==null&&(p=-1/0);for(var y,_=0;_<m.length;_++){var w=m[_],x=c._layers[w];if(!x.__builtin__&&w>p&&w<g){y=x;break}}y&&y.renderToCanvas&&(o.save(),y.renderToCanvas(o),o.restore())}for(var d={ctx:o},h=0;h<s.length;h++){var v=s[h];v.zlevel!==u&&(f(u,v.zlevel),u=v.zlevel),this._doPaintEl(v,d,!0,null,l)}return f(u,1/0),a}});gk(function(e,t){var r=t.getZr(),n=r.__egl=r.__egl||new oie(r);n.update(e,t)});KA(syt);const HT={defaultOption:{viewControl:{projection:"perspective",autoRotate:!1,autoRotateDirection:"cw",autoRotateSpeed:10,autoRotateAfterStill:3,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",distance:150,minDistance:40,maxDistance:400,orthographicSize:150,maxOrthographicSize:400,minOrthographicSize:20,center:[0,0,0],alpha:0,beta:0,minAlpha:-90,maxAlpha:90}},setView:function(e){e=e||{},this.option.viewControl=this.option.viewControl||{},e.alpha!=null&&(this.option.viewControl.alpha=e.alpha),e.beta!=null&&(this.option.viewControl.beta=e.beta),e.distance!=null&&(this.option.viewControl.distance=e.distance),e.center!=null&&(this.option.viewControl.center=e.center)}},um={defaultOption:{postEffect:{enable:!1,bloom:{enable:!0,intensity:.1},depthOfField:{enable:!1,focalRange:20,focalDistance:50,blurRadius:10,fstop:2.8,quality:"medium"},screenSpaceAmbientOcclusion:{enable:!1,radius:2,quality:"medium",intensity:1},screenSpaceReflection:{enable:!1,quality:"medium",maxRoughness:.8},colorCorrection:{enable:!0,exposure:0,brightness:0,contrast:1,saturation:1,lookupTexture:""},edge:{enable:!1},FXAA:{enable:!1}},temporalSuperSampling:{enable:"auto"}}},cm={defaultOption:{light:{main:{shadow:!1,shadowQuality:"high",color:"#fff",intensity:1,alpha:0,beta:0},ambient:{color:"#fff",intensity:.2},ambientCubemap:{texture:null,exposure:1,diffuseIntensity:.5,specularIntensity:.5}}}};var GT=sr.extend({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});st(GT.prototype,HT);st(GT.prototype,um);st(GT.prototype,cm);const lyt=GT;var ly=Sr.firstNotNull,Z$={left:0,middle:1,right:2};function q$(e){return e instanceof Array||(e=[e,e]),e}var sie=zi.extend(function(){return{zr:null,viewGL:null,_center:new mt,minDistance:.5,maxDistance:1.5,maxOrthographicSize:300,minOrthographicSize:30,minAlpha:-90,maxAlpha:90,minBeta:-1/0,maxBeta:1/0,autoRotateAfterStill:0,autoRotateDirection:"cw",autoRotateSpeed:60,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",_mode:"rotate",_camera:null,_needsUpdate:!1,_rotating:!1,_phi:0,_theta:0,_mouseX:0,_mouseY:0,_rotateVelocity:new mo,_panVelocity:new mo,_distance:500,_zoomSpeed:0,_stillTimeout:0,_animators:[]}},function(){["_mouseDownHandler","_mouseWheelHandler","_mouseMoveHandler","_mouseUpHandler","_pinchHandler","_contextMenuHandler","_update"].forEach(function(e){this[e]=this[e].bind(this)},this)},{init:function(){var e=this.zr;e&&(e.on("mousedown",this._mouseDownHandler),e.on("globalout",this._mouseUpHandler),e.on("mousewheel",this._mouseWheelHandler),e.on("pinch",this._pinchHandler),e.animation.on("frame",this._update),e.dom.addEventListener("contextmenu",this._contextMenuHandler))},dispose:function(){var e=this.zr;e&&(e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("pinch",this._pinchHandler),e.off("globalout",this._mouseUpHandler),e.dom.removeEventListener("contextmenu",this._contextMenuHandler),e.animation.off("frame",this._update)),this.stopAllAnimation()},getDistance:function(){return this._distance},setDistance:function(e){this._distance=e,this._needsUpdate=!0},getOrthographicSize:function(){return this._orthoSize},setOrthographicSize:function(e){this._orthoSize=e,this._needsUpdate=!0},getAlpha:function(){return this._theta/Math.PI*180},getBeta:function(){return-this._phi/Math.PI*180},getCenter:function(){return this._center.toArray()},setAlpha:function(e){e=Math.max(Math.min(this.maxAlpha,e),this.minAlpha),this._theta=e/180*Math.PI,this._needsUpdate=!0},setBeta:function(e){e=Math.max(Math.min(this.maxBeta,e),this.minBeta),this._phi=-e/180*Math.PI,this._needsUpdate=!0},setCenter:function(e){this._center.setArray(e)},setViewGL:function(e){this.viewGL=e},getCamera:function(){return this.viewGL.camera},setFromViewControlModel:function(e,t){t=t||{};var r=t.baseDistance||0,n=t.baseOrthoSize||1,a=e.get("projection");a!=="perspective"&&a!=="orthographic"&&a!=="isometric"&&(a="perspective"),this._projection=a,this.viewGL.setProjection(a);var i=e.get("distance")+r,o=e.get("orthographicSize")+n;[["damping",.8],["autoRotate",!1],["autoRotateAfterStill",3],["autoRotateDirection","cw"],["autoRotateSpeed",10],["minDistance",30],["maxDistance",400],["minOrthographicSize",30],["maxOrthographicSize",300],["minAlpha",-90],["maxAlpha",90],["minBeta",-1/0],["maxBeta",1/0],["rotateSensitivity",1],["zoomSensitivity",1],["panSensitivity",1],["panMouseButton","left"],["rotateMouseButton","middle"]].forEach(function(d){this[d[0]]=ly(e.get(d[0]),d[1])},this),this.minDistance+=r,this.maxDistance+=r,this.minOrthographicSize+=n,this.maxOrthographicSize+=n;var s=e.ecModel,l={};["animation","animationDurationUpdate","animationEasingUpdate"].forEach(function(d){l[d]=ly(e.get(d),s&&s.get(d))});var u=ly(t.alpha,e.get("alpha"))||0,c=ly(t.beta,e.get("beta"))||0,f=ly(t.center,e.get("center"))||[0,0,0];l.animation&&l.animationDurationUpdate>0&&this._notFirst?this.animateTo({alpha:u,beta:c,center:f,distance:i,orthographicSize:o,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(i),this.setAlpha(u),this.setBeta(c),this.setCenter(f),this.setOrthographicSize(o)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){},animateTo:function(e){var t=this.zr,r=this,n={},a={};return e.distance!=null&&(n.distance=this.getDistance(),a.distance=e.distance),e.orthographicSize!=null&&(n.orthographicSize=this.getOrthographicSize(),a.orthographicSize=e.orthographicSize),e.alpha!=null&&(n.alpha=this.getAlpha(),a.alpha=e.alpha),e.beta!=null&&(n.beta=this.getBeta(),a.beta=e.beta),e.center!=null&&(n.center=this.getCenter(),a.center=e.center),this._addAnimator(t.animation.animate(n).when(e.duration||1e3,a).during(function(){n.alpha!=null&&r.setAlpha(n.alpha),n.beta!=null&&r.setBeta(n.beta),n.distance!=null&&r.setDistance(n.distance),n.center!=null&&r.setCenter(n.center),n.orthographicSize!=null&&r.setOrthographicSize(n.orthographicSize),r._needsUpdate=!0})).start(e.easing||"linear")},stopAllAnimation:function(){for(var e=0;e<this._animators.length;e++)this._animators[e].stop();this._animators.length=0},update:function(){this._needsUpdate=!0,this._update(20)},_isAnimating:function(){return this._animators.length>0},_update:function(e){if(this._rotating){var t=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=t*e/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(e=Math.min(e,50),this._updateDistanceOrSize(e),this._updatePan(e),this._updateRotate(e),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(e){var t=this._rotateVelocity;this._phi=t.y*e/20+this._phi,this._theta=t.x*e/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(t,Math.pow(this.damping,e/16))},_updateDistanceOrSize:function(e){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*e/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*e/20),this._zoomSpeed*=Math.pow(this.damping,e/16)},_setDistance:function(e){this._distance=Math.max(Math.min(e,this.maxDistance),this.minDistance)},_setOrthoSize:function(e){this._orthoSize=Math.max(Math.min(e,this.maxOrthographicSize),this.minOrthographicSize);var t=this.getCamera(),r=this._orthoSize,n=r/this.viewGL.viewport.height*this.viewGL.viewport.width;t.left=-n/2,t.right=n/2,t.top=r/2,t.bottom=-r/2},_updatePan:function(e){var t=this._panVelocity,r=this._distance,n=this.getCamera(),a=n.worldTransform.y,i=n.worldTransform.x;this._center.scaleAndAdd(i,-t.x*r/200).scaleAndAdd(a,-t.y*r/200),this._vectorDamping(t,0)},_updateTransform:function(){var e=this.getCamera(),t=new mt,r=this._theta+Math.PI/2,n=this._phi+Math.PI/2,a=Math.sin(r);t.x=a*Math.cos(n),t.y=-Math.cos(r),t.z=a*Math.sin(n),e.position.copy(this._center).scaleAndAdd(t,this._distance),e.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var e=this.autoRotateAfterStill,t=this;!isNaN(e)&&e>0&&(this._stillTimeout=setTimeout(function(){t._rotating=!0},e*1e3))},_vectorDamping:function(e,t){var r=e.len();r=r*t,r<1e-4&&(r=0),e.normalize().scale(r)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var e=this.getCamera().worldTransform.z,t=Math.asin(e.y),r=Math.atan2(e.x,e.z);this._theta=t,this._phi=-r,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(e){if(!e.target&&!this._isAnimating()){var t=e.offsetX,r=e.offsetY;this.viewGL&&!this.viewGL.containPoint(t,r)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),e.event.targetTouches?e.event.targetTouches.length===1&&(this._mode="rotate"):e.event.button===Z$[this.rotateMouseButton]?this._mode="rotate":e.event.button===Z$[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=e.offsetX,this._mouseY=e.offsetY)}},_mouseMoveHandler:function(e){if(!(e.target&&e.target.__isGLToZRProxy)&&!this._isAnimating()){var t=q$(this.panSensitivity),r=q$(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(e.offsetX-this._mouseX)/this.zr.getHeight()*2*r[0],this._rotateVelocity.x=(e.offsetY-this._mouseY)/this.zr.getWidth()*2*r[1]):this._mode==="pan"&&(this._panVelocity.x=(e.offsetX-this._mouseX)/this.zr.getWidth()*t[0]*400,this._panVelocity.y=(-e.offsetY+this._mouseY)/this.zr.getHeight()*t[1]*400),this._mouseX=e.offsetX,this._mouseY=e.offsetY,e.event.preventDefault()}},_mouseWheelHandler:function(e){if(!this._isAnimating()){var t=e.event.wheelDelta||-e.event.detail;this._zoomHandler(e,t)}},_pinchHandler:function(e){this._isAnimating()||(this._zoomHandler(e,e.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(e,t){if(t!==0){var r=e.offsetX,n=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(r,n))){var a;this._projection==="perspective"?a=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):a=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(t>0?-1:1)*a*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),e.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(e){this._isRightMouseButtonUsed()&&e.preventDefault()},_addAnimator:function(e){var t=this._animators;return t.push(e),e.done(function(){var r=t.indexOf(e);r>=0&&t.splice(r,1)}),e}});Object.defineProperty(sie.prototype,"autoRotate",{get:function(e){return this._autoRotate},set:function(e){this._autoRotate=e,this._rotating=e}});const UT=sie,V1={convertToDynamicArray:function(e){e&&this.resetOffset();var t=this.attributes;for(var r in t)e||!t[r].value?t[r].value=[]:t[r].value=Array.prototype.slice.call(t[r].value);e||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var e=this.attributes;for(var t in e)e[t].value&&e[t].value.length>0?e[t].value=new Float32Array(e[t].value):e[t].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Jn={vec2:jt,vec3:Ee,vec4:Et,mat2:Un,mat2d:ta,mat3:Or,mat4:ut,quat:ar};var bD=Jn.vec3,Q$=[[0,0],[1,1]],lie=Hr.extend(function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new Hr.Attribute("position","float",3,"POSITION"),positionPrev:new Hr.Attribute("positionPrev","float",3),positionNext:new Hr.Attribute("positionNext","float",3),prevPositionPrev:new Hr.Attribute("prevPositionPrev","float",3),prevPosition:new Hr.Attribute("prevPosition","float",3),prevPositionNext:new Hr.Attribute("prevPositionNext","float",3),offset:new Hr.Attribute("offset","float",1),color:new Hr.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.positionPrev.init(e),t.positionNext.init(e),t.offset.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,n){var a=bD.dist(e,t)+bD.dist(r,t)+bD.dist(n,r),i=1/(a+1)*this.segmentScale;return i},getCubicCurveVertexCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?i*2:i*2+2},getCubicCurveTriangleCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?0:i*2},getLineVertexCount:function(){return this.getPolylineVertexCount(Q$)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Q$)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/3}return this.useNativeLine?0:Math.max(t-1,0)*2},addCubicCurve:function(e,t,r,n,a,i){i==null&&(i=1);for(var o=e[0],s=e[1],l=e[2],u=t[0],c=t[1],f=t[2],d=r[0],h=r[1],v=r[2],p=n[0],g=n[1],m=n[2],y=this._getCubicCurveApproxStep(e,t,r,n),_=y*y,w=_*y,x=3*y,S=3*_,T=6*_,A=6*w,C=o-u*2+d,M=s-c*2+h,E=l-f*2+v,D=(u-d)*3-o+p,P=(c-h)*3-s+g,L=(f-v)*3-l+m,I=o,O=s,R=l,B=(u-o)*x+C*S+D*w,k=(c-s)*x+M*S+P*w,z=(f-l)*x+E*S+L*w,$=C*T+D*A,j=M*T+P*A,X=E*T+L*A,Q=D*A,se=P*A,ee=L*A,K=0,Z=0,ne=Math.ceil(1/y),re=new Float32Array((ne+1)*3),re=[],ie=0,Z=0;Z<ne+1;Z++)re[ie++]=I,re[ie++]=O,re[ie++]=R,I+=B,O+=k,R+=z,B+=$,k+=j,z+=X,$+=Q,j+=se,X+=ee,K+=y,K>1&&(I=B>0?Math.min(I,p):Math.max(I,p),O=k>0?Math.min(O,g):Math.max(O,g),R=z>0?Math.min(R,m):Math.max(R,m));return this.addPolyline(re,a,i)},addLine:function(e,t,r,n){return this.addPolyline([e,t],r,n)},addPolyline:function(e,t,r,n,a){if(e.length){var i=typeof e[0]!="number";if(a==null&&(a=i?e.length:e.length/3),!(a<2)){n==null&&(n=0),r==null&&(r=1),this._itemVertexOffsets.push(this._vertexOffset);var i=typeof e[0]!="number",o=i?typeof t[0]!="number":t.length/4===a,s=this.attributes.position,l=this.attributes.positionPrev,u=this.attributes.positionNext,c=this.attributes.color,f=this.attributes.offset,d=this.indices,h=this._vertexOffset,v,p;r=Math.max(r,.01);for(var g=n;g<a;g++){if(i)v=e[g],o?p=t[g]:p=t;else{var m=g*3;if(v=v||[],v[0]=e[m],v[1]=e[m+1],v[2]=e[m+2],o){var y=g*4;p=p||[],p[0]=t[y],p[1]=t[y+1],p[2]=t[y+2],p[3]=t[y+3]}else p=t}if(this.useNativeLine?g>1&&(s.copy(h,h-1),c.copy(h,h-1),h++):(g<a-1&&(l.set(h+2,v),l.set(h+3,v)),g>0&&(u.set(h-2,v),u.set(h-1,v)),s.set(h,v),s.set(h+1,v),c.set(h,p),c.set(h+1,p),f.set(h,r/2),f.set(h+1,-r/2),h+=2),this.useNativeLine)c.set(h,p),s.set(h,v),h++;else if(g>0){var _=this._triangleOffset*3,d=this.indices;d[_]=h-4,d[_+1]=h-3,d[_+2]=h-2,d[_+3]=h-3,d[_+4]=h-1,d[_+5]=h-2,this._triangleOffset+=2}}if(!this.useNativeLine){var w=this._vertexOffset,x=this._vertexOffset+a*2;l.copy(w,w+2),l.copy(w+1,w+3),u.copy(x-1,x-3),u.copy(x-2,x-4)}return this._vertexOffset=h,this._vertexOffset}}},setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],n=e<this._itemVertexOffsets.length-1?this._itemVertexOffsets[e+1]:this._vertexOffset,a=r;a<n;a++)this.attributes.color.set(a,t);this.dirty("color")},currentTriangleOffset:function(){return this._triangleOffset},currentVertexOffset:function(){return this._vertexOffset}});yt(lie.prototype,V1);const gv=lie;function M2(e,t,r,n,a,i,o){this._zr=e,this._x=0,this._y=0,this._rowHeight=0,this.width=n,this.height=a,this.offsetX=t,this.offsetY=r,this.dpr=o,this.gap=i}M2.prototype={constructor:M2,clear:function(){this._x=0,this._y=0,this._rowHeight=0},add:function(e,t,r){var n=e.getBoundingRect();t==null&&(t=n.width),r==null&&(r=n.height),t*=this.dpr,r*=this.dpr,this._fitElement(e,t,r);var a=this._x,i=this._y,o=this.width*this.dpr,s=this.height*this.dpr,l=this.gap;if(a+t+l>o&&(a=this._x=0,i+=this._rowHeight+l,this._y=i,this._rowHeight=0),this._x+=t+l,this._rowHeight=Math.max(this._rowHeight,r),i+r+l>s)return null;e.x+=this.offsetX*this.dpr+a,e.y+=this.offsetY*this.dpr+i,this._zr.add(e);var u=[this.offsetX/this.width,this.offsetY/this.height],c=[[a/o+u[0],i/s+u[1]],[(a+t)/o+u[0],(i+r)/s+u[1]]];return c},_fitElement:function(e,t,r){var n=e.getBoundingRect(),a=t/n.width,i=r/n.height;e.x=-n.x*a,e.y=-n.y*i,e.scaleX=a,e.scaleY=i,e.update()}};function D2(e){e=e||{},e.width=e.width||512,e.height=e.height||512,e.devicePixelRatio=e.devicePixelRatio||1,e.gap=e.gap==null?2:e.gap;var t=document.createElement("canvas");t.width=e.width*e.devicePixelRatio,t.height=e.height*e.devicePixelRatio,this._canvas=t,this._texture=new _r({image:t,flipY:!1});var r=this;this._zr=hx(t);var n=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){n.call(this),r._texture.dirty(),r.onupdate&&r.onupdate()},this._dpr=e.devicePixelRatio,this._coords={},this.onupdate=e.onupdate,this._gap=e.gap,this._textureAtlasNodes=[new M2(this._zr,0,0,e.width,e.height,this._gap,this._dpr)],this._nodeWidth=e.width,this._nodeHeight=e.height,this._currentNodeIdx=0}D2.prototype={clear:function(){for(var e=0;e<this._textureAtlasNodes.length;e++)this._textureAtlasNodes[e].clear();this._currentNodeIdx=0,this._zr.clear(),this._coords={}},getWidth:function(){return this._width},getHeight:function(){return this._height},getTexture:function(){return this._texture},getDevicePixelRatio:function(){return this._dpr},getZr:function(){return this._zr},_getCurrentNode:function(){return this._textureAtlasNodes[this._currentNodeIdx]},_expand:function(){if(this._currentNodeIdx++,this._textureAtlasNodes[this._currentNodeIdx])return this._textureAtlasNodes[this._currentNodeIdx];var e=4096/this._dpr,t=this._textureAtlasNodes,r=t.length,n=r*this._nodeWidth%e,a=Math.floor(r*this._nodeWidth/e)*this._nodeHeight;if(!(a>=e)){var i=(n+this._nodeWidth)*this._dpr,o=(a+this._nodeHeight)*this._dpr;try{this._zr.resize({width:i,height:o})}catch{this._canvas.width=i,this._canvas.height=o}var s=new M2(this._zr,n,a,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(s),s}},add:function(e,t,r){if(this._coords[e.id])return this._coords[e.id];var n=this._getCurrentNode().add(e,t,r);if(!n){var a=this._expand();if(!a)return;n=a.add(e,t,r)}return this._coords[e.id]=n,n},getCoordsScale:function(){var e=this._dpr;return[this._nodeWidth/this._canvas.width*e,this._nodeHeight/this._canvas.height*e]},getCoords:function(e){return this._coords[e]},dispose:function(){this._zr.dispose()}};function Lf(){}Lf.prototype={constructor:Lf,setScene:function(e){this._scene=e,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(e){this._lightRoot=e,this.mainLight=new ue.DirectionalLight({shadowBias:.005}),this.ambientLight=new ue.AmbientLight,e.add(this.mainLight),e.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(e){var t=this.mainLight,r=this.ambientLight,n=e.getModel("light"),a=n.getModel("main"),i=n.getModel("ambient");t.intensity=a.get("intensity"),r.intensity=i.get("intensity"),t.color=ue.parseColor(a.get("color")).slice(0,3),r.color=ue.parseColor(i.get("color")).slice(0,3);var o=a.get("alpha")||0,s=a.get("beta")||0;t.position.setArray(ue.directionFromAlphaBeta(o,s)),t.lookAt(ue.Vector3.ZERO),t.castShadow=a.get("shadow"),t.shadowResolution=ue.getShadowResolution(a.get("shadowQuality"))},updateAmbientCubemap:function(e,t,r){var n=t.getModel("light.ambientCubemap"),a=n.get("texture");if(a){this._cubemapLightsCache=this._cubemapLightsCache||{};var i=this._cubemapLightsCache[a];if(!i){var o=this;i=this._cubemapLightsCache[a]=ue.createAmbientCubemap(n.option,e,r,function(){o._isSkyboxFromAmbientCubemap&&o._skybox.setEnvironmentMap(i.specular.cubemap),r.getZr().refresh()})}this._lightRoot.add(i.diffuse),this._lightRoot.add(i.specular),this._currentCubemapLights=i}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(e,t,r){var n=t.get("environment"),a=this;function i(){return a._skybox=a._skybox||new R_,a._skybox}var o=i();if(n&&n!=="none")if(n==="auto")if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;o.setEnvironmentMap(s),this._scene&&o.attachScene(this._scene),o.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if(typeof n=="object"&&n.colorStops||typeof n=="string"&&Za(n)){this._isSkyboxFromAmbientCubemap=!1;var l=new ue.Texture2D({anisotropic:8,flipY:!1});o.setEnvironmentMap(l);var u=l.image=document.createElement("canvas");u.width=u.height=16;var c=u.getContext("2d"),f=new br({shape:{x:0,y:0,width:16,height:16},style:{fill:n}});d1(c,f),o.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;var l=ue.loadTexture(n,r,{anisotropic:8,flipY:!1});o.setEnvironmentMap(l),o.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var d=t.coordinateSystem;if(this._skybox)if(d&&d.viewGL&&n!=="auto"&&!(n.match&&n.match(/.hdr$/))){var h=d.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[h]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}};var Ed=Jn.vec3,uie=Hr.extend(function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new Hr.Attribute("position","float",3,"POSITION"),normal:new Hr.Attribute("normal","float",3,"NORMAL"),color:new Hr.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(e){var t=this.attributes,r=this.getQuadVertexCount()*e,n=this.getQuadTriangleCount()*e;this.vertexCount!==r&&(t.position.init(r),t.normal.init(r),t.color.init(r)),this.triangleCount!==n&&(this.indices=r>65535?new Uint32Array(n*3):new Uint16Array(n*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var e=Ed.create(),t=Ed.create(),r=Ed.create(),n=[0,3,1,3,2,1];return function(a,i){var o=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;Ed.sub(e,a[1],a[0]),Ed.sub(t,a[2],a[1]),Ed.cross(r,e,t),Ed.normalize(r,r);for(var u=0;u<4;u++)o.set(this._vertexOffset+u,a[u]),l.set(this._vertexOffset+u,i),s.set(this._vertexOffset+u,r);for(var c=this._faceOffset*3,u=0;u<6;u++)this.indices[c+u]=n[u]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});yt(uie.prototype,V1);const uyt=uie;var aR=Sr.firstNotNull,cyt={x:0,y:2,z:1};function fyt(e,t,r,n){var a=[0,0,0],i=n<0?r.getExtentMin():r.getExtentMax();a[cyt[r.dim]]=i,e.position.setArray(a),e.rotation.identity(),t.distance=-Math.abs(i),t.normal.set(0,0,0),r.dim==="x"?(e.rotation.rotateY(n*Math.PI/2),t.normal.x=-n):r.dim==="z"?(e.rotation.rotateX(-n*Math.PI/2),t.normal.y=-n):(n>0&&e.rotation.rotateY(Math.PI),t.normal.z=-n)}function $T(e,t,r){this.rootNode=new ue.Node;var n=new ue.Mesh({geometry:new gv({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),a=new ue.Mesh({geometry:new uyt,material:r,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(a),this.rootNode.add(n),this.faceInfo=e,this.plane=new ue.Plane,this.linesMesh=n,this.quadsMesh=a}$T.prototype.update=function(e,t,r){var n=e.coordinateSystem,a=[n.getAxis(this.faceInfo[0]),n.getAxis(this.faceInfo[1])],i=this.linesMesh.geometry,o=this.quadsMesh.geometry;i.convertToDynamicArray(!0),o.convertToDynamicArray(!0),this._updateSplitLines(i,a,e,r),this._udpateSplitAreas(o,a,e,r),i.convertToTypedArray(),o.convertToTypedArray();var s=n.getAxis(this.faceInfo[2]);fyt(this.rootNode,this.plane,s,this.faceInfo[3])};$T.prototype._updateSplitLines=function(e,t,r,n){var a=n.getDevicePixelRatio();t.forEach(function(i,o){var s=i.model,l=t[1-o].getExtent();if(!i.scale.isBlank()){var u=s.getModel("splitLine",r.getModel("splitLine"));if(u.get("show")){var c=u.getModel("lineStyle"),f=c.get("color"),d=aR(c.get("opacity"),1),h=aR(c.get("width"),1);f=Ne(f)?f:[f];for(var v=i.getTicksCoords({tickModel:u}),p=0,g=0;g<v.length;g++){var m=v[g].coord,y=ue.parseColor(f[p%f.length]);y[3]*=d;var _=[0,0,0],w=[0,0,0];_[o]=w[o]=m,_[1-o]=l[0],w[1-o]=l[1],e.addLine(_,w,y,h*a),p++}}}})};$T.prototype._udpateSplitAreas=function(e,t,r,n){t.forEach(function(a,i){var o=a.model,s=t[1-i].getExtent();if(!a.scale.isBlank()){var l=o.getModel("splitArea",r.getModel("splitArea"));if(l.get("show")){var u=l.getModel("areaStyle"),c=u.get("color"),f=aR(u.get("opacity"),1);c=Ne(c)?c:[c];for(var d=a.getTicksCoords({tickModel:l,clamp:!0}),h=0,v=[0,0,0],p=[0,0,0],g=0;g<d.length;g++){var m=d[g].coord,y=[0,0,0],_=[0,0,0];if(y[i]=_[i]=m,y[1-i]=s[0],_[1-i]=s[1],g===0){v=y,p=_;continue}var w=ue.parseColor(c[h%c.length]);w[3]*=f,e.addQuad([v,y,_,p],w),v=y,p=_,h++}}}})};var J$=[0,1,2,0,2,3],cie=Hr.extend(function(){return{attributes:{position:new Hr.Attribute("position","float",3,"POSITION"),texcoord:new Hr.Attribute("texcoord","float",2,"TEXCOORD_0"),offset:new Hr.Attribute("offset","float",2),color:new Hr.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setSpriteCount:function(e){this._spriteCount=e;var t=e*4,r=e*2;this.vertexCount!==t&&(this.attributes.position.init(t),this.attributes.offset.init(t),this.attributes.color.init(t)),this.triangleCount!==r&&(this.indices=t>65535?new Uint32Array(r*3):new Uint16Array(r*3))},setSpriteAlign:function(e,t,r,n,a){r==null&&(r="left"),n==null&&(n="top");var i,o,s,l;switch(a=a||0,r){case"left":i=a,s=t[0]+a;break;case"center":case"middle":i=-t[0]/2,s=t[0]/2;break;case"right":i=-t[0]-a,s=-a;break}switch(n){case"bottom":o=a,l=t[1]+a;break;case"middle":o=-t[1]/2,l=t[1]/2;break;case"top":o=-t[1]-a,l=-a;break}var u=e*4,c=this.attributes.offset;c.set(u,[i,l]),c.set(u+1,[s,l]),c.set(u+2,[s,o]),c.set(u+3,[i,o])},addSprite:function(e,t,r,n,a,i){var o=this._vertexOffset;this.setSprite(this._vertexOffset/4,e,t,r,n,a,i);for(var s=0;s<J$.length;s++)this.indices[this._faceOffset*3+s]=J$[s]+o;return this._faceOffset+=2,this._vertexOffset+=4,o/4},setSprite:function(e,t,r,n,a,i,o){for(var s=e*4,l=this.attributes,u=0;u<4;u++)l.position.set(s+u,t);var c=l.texcoord;c.set(s,[n[0][0],n[0][1]]),c.set(s+1,[n[1][0],n[0][1]]),c.set(s+2,[n[1][0],n[1][1]]),c.set(s+3,[n[0][0],n[1][1]]),this.setSpriteAlign(e,r,a,i,o)}});yt(cie.prototype,V1);const dyt=cie,hyt=`@export ecgl.labels.vertex
|
||
|
||
attribute vec3 position: POSITION;
|
||
attribute vec2 texcoord: TEXCOORD_0;
|
||
attribute vec2 offset;
|
||
#ifdef VERTEX_COLOR
|
||
attribute vec4 a_Color : COLOR;
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform vec4 viewport : VIEWPORT;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
void main()
|
||
{
|
||
vec4 proj = worldViewProjection * vec4(position, 1.0);
|
||
|
||
vec2 screen = (proj.xy / abs(proj.w) + 1.0) * 0.5 * viewport.zw;
|
||
|
||
screen += offset;
|
||
|
||
proj.xy = (screen / viewport.zw - 0.5) * 2.0 * abs(proj.w);
|
||
gl_Position = proj;
|
||
#ifdef VERTEX_COLOR
|
||
v_Color = a_Color;
|
||
#endif
|
||
v_Texcoord = texcoord;
|
||
}
|
||
@end
|
||
|
||
|
||
@export ecgl.labels.fragment
|
||
|
||
uniform vec3 color : [1.0, 1.0, 1.0];
|
||
uniform float alpha : 1.0;
|
||
uniform sampler2D textureAtlas;
|
||
uniform vec2 uvScale: [1.0, 1.0];
|
||
|
||
#ifdef VERTEX_COLOR
|
||
varying vec4 v_Color;
|
||
#endif
|
||
varying float v_Miter;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
void main()
|
||
{
|
||
gl_FragColor = vec4(color, alpha) * texture2D(textureAtlas, v_Texcoord * uvScale);
|
||
#ifdef VERTEX_COLOR
|
||
gl_FragColor *= v_Color;
|
||
#endif
|
||
}
|
||
|
||
@end`;ue.Shader.import(hyt);const v4=ue.Mesh.extend(function(){var e=new dyt({dynamic:!0}),t=new ue.Material({shader:ue.createShader("ecgl.labels"),transparent:!0,depthMask:!1});return{geometry:e,material:t,culling:!1,castShadow:!1,ignorePicking:!0}});var Md=Sr.firstNotNull,Dd={x:0,y:2,z:1};function p4(e,t){var r=new ue.Mesh({geometry:new gv({useNativeLine:!1}),material:t,castShadow:!1,ignorePicking:!0,renderOrder:2}),n=new v4;n.material.depthMask=!1;var a=new ue.Node;a.add(r),a.add(n),this.rootNode=a,this.dim=e,this.linesMesh=r,this.labelsMesh=n,this.axisLineCoords=null,this.labelElements=[]}var wD={x:"y",y:"x",z:"y"};p4.prototype.update=function(e,t,r){var n=e.coordinateSystem,a=n.getAxis(this.dim),i=this.linesMesh.geometry,o=this.labelsMesh.geometry;i.convertToDynamicArray(!0),o.convertToDynamicArray(!0);var s=a.model,l=a.getExtent(),E=r.getDevicePixelRatio(),u=s.getModel("axisLine",e.getModel("axisLine")),c=s.getModel("axisTick",e.getModel("axisTick")),f=s.getModel("axisLabel",e.getModel("axisLabel")),d=u.get("lineStyle.color");if(u.get("show")){var h=u.getModel("lineStyle"),v=[0,0,0],p=[0,0,0],g=Dd[a.dim];v[g]=l[0],p[g]=l[1],this.axisLineCoords=[v,p];var m=ue.parseColor(d),y=Md(h.get("width"),1),_=Md(h.get("opacity"),1);m[3]*=_,i.addLine(v,p,m,y*E)}if(c.get("show")){var w=c.getModel("lineStyle"),x=ue.parseColor(Md(w.get("color"),d)),y=Md(w.get("width"),1);x[3]*=Md(w.get("opacity"),1);for(var S=a.getTicksCoords(),T=c.get("length"),A=0;A<S.length;A++){var C=S[A].coord,v=[0,0,0],p=[0,0,0],g=Dd[a.dim],M=Dd[wD[a.dim]];v[g]=p[g]=C,p[M]=T,i.addLine(v,p,x,y*E)}}this.labelElements=[];var E=r.getDevicePixelRatio();if(f.get("show"))for(var S=a.getTicksCoords(),D=s.get("data"),P=f.get("margin"),L=a.getViewLabels(),A=0;A<L.length;A++){var I=L[A].tickValue,O=L[A].formattedLabel,R=L[A].rawLabel,C=a.dataToCoord(I),B=[0,0,0],g=Dd[a.dim],M=Dd[wD[a.dim]];B[g]=B[g]=C,B[M]=P;var k=f;D&&D[I]&&D[I].textStyle&&(k=new $r(D[I].textStyle,f,s.ecModel));var z=Md(k.get("color"),d),$=new pr({style:Xr(k,{text:O,fill:typeof z=="function"?z(a.type==="category"?R:a.type==="value"?I+"":I,A):z,verticalAlign:"top",align:"left"})}),j=t.add($),X=$.getBoundingRect();o.addSprite(B,[X.width*E,X.height*E],j),this.labelElements.push($)}if(s.get("name")){var Q=s.getModel("nameTextStyle"),B=[0,0,0],g=Dd[a.dim],M=Dd[wD[a.dim]],se=Md(Q.get("color"),d),ee=Q.get("borderColor"),y=Q.get("borderWidth");B[g]=B[g]=(l[0]+l[1])/2,B[M]=s.get("nameGap");var $=new pr({style:Xr(Q,{text:s.get("name"),fill:se,stroke:ee,lineWidth:y})}),j=t.add($),X=$.getBoundingRect();o.addSprite(B,[X.width*E,X.height*E],j),$.__idx=this.labelElements.length,this.nameLabelElement=$}this.labelsMesh.material.set("textureAtlas",t.getTexture()),this.labelsMesh.material.set("uvScale",t.getCoordsScale()),i.convertToTypedArray(),o.convertToTypedArray()};p4.prototype.setSpriteAlign=function(e,t,r){for(var n=r.getDevicePixelRatio(),a=this.labelsMesh.geometry,i=0;i<this.labelElements.length;i++){var o=this.labelElements[i],s=o.getBoundingRect();a.setSpriteAlign(i,[s.width*n,s.height*n],e,t)}var l=this.nameLabelElement;if(l){var s=l.getBoundingRect();a.setSpriteAlign(l.__idx,[s.width*n,s.height*n],e,t),a.dirty()}this.textAlign=e,this.textVerticalAlign=t};const WT=`@export ecgl.lines3D.vertex
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
|
||
attribute vec3 position: POSITION;
|
||
attribute vec4 a_Color : COLOR;
|
||
varying vec4 v_Color;
|
||
|
||
void main()
|
||
{
|
||
gl_Position = worldViewProjection * vec4(position, 1.0);
|
||
v_Color = a_Color;
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.lines3D.fragment
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
varying vec4 v_Color;
|
||
|
||
@import clay.util.srgb
|
||
|
||
void main()
|
||
{
|
||
#ifdef SRGB_DECODE
|
||
gl_FragColor = sRGBToLinear(color * v_Color);
|
||
#else
|
||
gl_FragColor = color * v_Color;
|
||
#endif
|
||
}
|
||
@end
|
||
|
||
|
||
|
||
@export ecgl.lines3D.clipNear
|
||
|
||
vec4 clipNear(vec4 p1, vec4 p2) {
|
||
float n = (p1.w - near) / (p1.w - p2.w);
|
||
return vec4(mix(p1.xy, p2.xy, n), -near, near);
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.lines3D.expandLine
|
||
#ifdef VERTEX_ANIMATION
|
||
vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);
|
||
vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);
|
||
vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);
|
||
#else
|
||
vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);
|
||
vec4 currProj = worldViewProjection * vec4(position, 1.0);
|
||
vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);
|
||
#endif
|
||
|
||
if (currProj.w < 0.0) {
|
||
if (nextProj.w > 0.0) {
|
||
currProj = clipNear(currProj, nextProj);
|
||
}
|
||
else if (prevProj.w > 0.0) {
|
||
currProj = clipNear(currProj, prevProj);
|
||
}
|
||
}
|
||
|
||
vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;
|
||
vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;
|
||
vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;
|
||
|
||
vec2 dir;
|
||
float len = offset;
|
||
if (position == positionPrev) {
|
||
dir = normalize(nextScreen - currScreen);
|
||
}
|
||
else if (position == positionNext) {
|
||
dir = normalize(currScreen - prevScreen);
|
||
}
|
||
else {
|
||
vec2 dirA = normalize(currScreen - prevScreen);
|
||
vec2 dirB = normalize(nextScreen - currScreen);
|
||
|
||
vec2 tanget = normalize(dirA + dirB);
|
||
|
||
float miter = 1.0 / max(dot(tanget, dirA), 0.5);
|
||
len *= miter;
|
||
dir = tanget;
|
||
}
|
||
|
||
dir = vec2(-dir.y, dir.x) * len;
|
||
currScreen += dir;
|
||
|
||
currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);
|
||
@end
|
||
|
||
|
||
@export ecgl.meshLines3D.vertex
|
||
|
||
attribute vec3 position: POSITION;
|
||
attribute vec3 positionPrev;
|
||
attribute vec3 positionNext;
|
||
attribute float offset;
|
||
attribute vec4 a_Color : COLOR;
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
attribute vec3 prevPosition;
|
||
attribute vec3 prevPositionPrev;
|
||
attribute vec3 prevPositionNext;
|
||
uniform float percent : 1.0;
|
||
#endif
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform vec4 viewport : VIEWPORT;
|
||
uniform float near : NEAR;
|
||
|
||
varying vec4 v_Color;
|
||
|
||
@import ecgl.common.wireframe.vertexHeader
|
||
|
||
@import ecgl.lines3D.clipNear
|
||
|
||
void main()
|
||
{
|
||
@import ecgl.lines3D.expandLine
|
||
|
||
gl_Position = currProj;
|
||
|
||
v_Color = a_Color;
|
||
|
||
@import ecgl.common.wireframe.vertexMain
|
||
}
|
||
@end
|
||
|
||
|
||
@export ecgl.meshLines3D.fragment
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
varying vec4 v_Color;
|
||
|
||
@import ecgl.common.wireframe.fragmentHeader
|
||
|
||
@import clay.util.srgb
|
||
|
||
void main()
|
||
{
|
||
#ifdef SRGB_DECODE
|
||
gl_FragColor = sRGBToLinear(color * v_Color);
|
||
#else
|
||
gl_FragColor = color * v_Color;
|
||
#endif
|
||
|
||
@import ecgl.common.wireframe.fragmentMain
|
||
}
|
||
|
||
@end`;var eW=Sr.firstNotNull;ue.Shader.import(WT);var Pd={x:0,y:2,z:1};const vyt=rn.extend({type:"grid3D",__ecgl__:!0,init:function(e,t){var r=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],n=["x","y","z"],a=new ue.Material({shader:ue.createShader("ecgl.color"),depthMask:!1,transparent:!0}),i=new ue.Material({shader:ue.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});a.define("fragment","DOUBLE_SIDED"),a.define("both","VERTEX_COLOR"),this.groupGL=new ue.Node,this._control=new UT({zr:t.getZr()}),this._control.init(),this._faces=r.map(function(s){var l=new $T(s,i,a);return this.groupGL.add(l.rootNode),l},this),this._axes=n.map(function(s){var l=new p4(s,i);return this.groupGL.add(l.rootNode),l},this);var o=t.getDevicePixelRatio();this._axisLabelSurface=new D2({width:256,height:256,devicePixelRatio:o}),this._axisLabelSurface.onupdate=function(){t.getZr().refresh()},this._axisPointerLineMesh=new ue.Mesh({geometry:new gv({useNativeLine:!1}),material:i,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new D2({width:128,height:128,devicePixelRatio:o}),this._axisPointerLabelsMesh=new v4({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new ue.Node,this._sceneHelper=new Lf,this._sceneHelper.initLight(this._lightRoot)},render:function(e,t,r){this._model=e,this._api=r;var n=e.coordinateSystem;n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL);var a=this._control;a.setViewGL(n.viewGL);var i=e.getModel("viewControl");a.setFromViewControlModel(i,0),this._axisLabelSurface.clear(),a.off("update"),e.get("show")&&(this._faces.forEach(function(o){o.update(e,t,r)},this),this._axes.forEach(function(o){o.update(e,this._axisLabelSurface,r)},this)),a.on("update",this._onCameraChange.bind(this,e,r),this),this._sceneHelper.setScene(n.viewGL.scene),this._sceneHelper.updateLight(e),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._initMouseHandler(e)},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r)},showAxisPointer:function(e,t,r,n){this._doShowAxisPointer(),this._updateAxisPointer(n.value)},hideAxisPointer:function(e,t,r,n){this._doHideAxisPointer()},_initMouseHandler:function(e){var t=e.coordinateSystem,r=t.viewGL;e.get("show")&&e.get("axisPointer.show")?r.on("mousemove",this._updateAxisPointerOnMousePosition,this):r.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(e){if(!e.target){for(var t=this._model,r=t.coordinateSystem,n=r.viewGL,a=n.castRay(e.offsetX,e.offsetY,new ue.Ray),i,o=0;o<this._faces.length;o++){var s=this._faces[o];if(!s.rootNode.invisible){s.plane.normal.dot(n.camera.worldTransform.z)<0&&s.plane.normal.negate();var l=a.intersectPlane(s.plane);if(l){var u=r.getAxis(s.faceInfo[0]),c=r.getAxis(s.faceInfo[1]),f=Pd[s.faceInfo[0]],d=Pd[s.faceInfo[1]];u.contain(l.array[f])&&c.contain(l.array[d])&&(i=l)}}}if(i){var h=r.pointToData(i.array,[],!0);this._updateAxisPointer(h),this._doShowAxisPointer()}else this._doHideAxisPointer()}},_onCameraChange:function(e,t){e.get("show")&&(this._updateFaceVisibility(),this._updateAxisLinePosition());var r=this._control;t.dispatchAction({type:"grid3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),center:r.getCenter(),from:this.uid,grid3DId:e.id})},_updateFaceVisibility:function(){var e=this._control.getCamera(),t=new ue.Vector3;e.update();for(var r=0;r<this._faces.length/2;r++){for(var n=[],a=0;a<2;a++){var i=this._faces[r*2+a];i.rootNode.getWorldPosition(t),t.transformMat4(e.viewMatrix),n[a]=t.z}var o=n[0]>n[1]?0:1,s=this._faces[r*2+o],l=this._faces[r*2+1-o];s.rootNode.invisible=!0,l.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var e=this._model.coordinateSystem,t=e.getAxis("x"),r=e.getAxis("y"),n=e.getAxis("z"),a=n.getExtentMax(),i=n.getExtentMin(),o=t.getExtentMin(),s=t.getExtentMax(),l=r.getExtentMax(),u=r.getExtentMin(),c=this._axes[0].rootNode,f=this._axes[1].rootNode,d=this._axes[2].rootNode,h=this._faces,v=h[4].rootNode.invisible?u:l,p=h[2].rootNode.invisible?a:i,g=h[0].rootNode.invisible?o:s,m=h[2].rootNode.invisible?a:i,y=h[0].rootNode.invisible?s:o,_=h[4].rootNode.invisible?u:l;c.rotation.identity(),f.rotation.identity(),d.rotation.identity(),h[4].rootNode.invisible&&(this._axes[0].flipped=!0,c.rotation.rotateX(Math.PI)),h[0].rootNode.invisible&&(this._axes[1].flipped=!0,f.rotation.rotateZ(Math.PI)),h[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),c.position.set(0,p,v),f.position.set(g,m,0),d.position.set(y,0,_),c.update(),f.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var e=this._control.getCamera(),t=[new ue.Vector4,new ue.Vector4],r=new ue.Vector4;this.groupGL.getWorldPosition(r),r.w=1,r.transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),r.x/=r.w,r.y/=r.w,this._axes.forEach(function(n){var a=n.axisLineCoords;n.labelsMesh.geometry;for(var i=0;i<t.length;i++)t[i].setArray(a[i]),t[i].w=1,t[i].transformMat4(n.rootNode.worldTransform).transformMat4(e.viewMatrix).transformMat4(e.projectionMatrix),t[i].x/=t[i].w,t[i].y/=t[i].w;var o=t[1].x-t[0].x,s=t[1].y-t[0].y,l=(t[1].x+t[0].x)/2,u=(t[1].y+t[0].y)/2,c,f;Math.abs(s/o)<.5?(c="center",f=u>r.y?"bottom":"top"):(f="middle",c=l>r.x?"left":"right"),n.setSpriteAlign(c,f,this._api)},this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(e){var t=this._model.coordinateSystem,r=t.dataToPoint(e),n=this._axisPointerLineMesh,a=n.geometry,i=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();a.convertToDynamicArray(!0);function s(A){return Sr.firstNotNull(A.model.get("axisPointer.show"),i.get("show"))}function l(A){var C=A.model.getModel("axisPointer",i),M=C.getModel("lineStyle"),E=ue.parseColor(M.get("color")),D=eW(M.get("width"),1),P=eW(M.get("opacity"),1);return E[3]*=P,{color:E,lineWidth:D}}for(var u=0;u<this._faces.length;u++){var c=this._faces[u];if(!c.rootNode.invisible){for(var f=c.faceInfo,d=f[3]<0?t.getAxis(f[2]).getExtentMin():t.getAxis(f[2]).getExtentMax(),h=Pd[f[2]],v=0;v<2;v++){var p=f[v],g=f[1-v],m=t.getAxis(p),y=t.getAxis(g);if(s(m)){var _=[0,0,0],w=[0,0,0],x=Pd[p],S=Pd[g];_[x]=w[x]=r[x],_[h]=w[h]=d,_[S]=y.getExtentMin(),w[S]=y.getExtentMax();var T=l(m);a.addLine(_,w,T.color,T.lineWidth*o)}}if(s(t.getAxis(f[2]))){var _=r.slice(),w=r.slice();w[h]=d;var T=l(t.getAxis(f[2]));a.addLine(_,w,T.color,T.lineWidth*o)}}}a.convertToTypedArray(),this._updateAxisPointerLabelsMesh(e),this._api.getZr().refresh()},_updateAxisPointerLabelsMesh:function(e){var t=this._model,r=this._axisPointerLabelsMesh,n=this._axisPointerLabelsSurface,a=t.coordinateSystem,i=t.getModel("axisPointer");r.geometry.convertToDynamicArray(!0),n.clear();var o={x:"y",y:"x",z:"y"};this._axes.forEach(function(s,l){var u=a.getAxis(s.dim),c=u.model,f=c.getModel("axisPointer",i),d=f.getModel("label"),h=f.get("lineStyle.color");if(!(!d.get("show")||!f.get("show"))){var v=e[l],p=d.get("formatter"),g=u.scale.getLabel({value:v});if(p!=null)g=p(g,e);else if(u.scale.type==="interval"||u.scale.type==="log"){var m=xA(u.scale.getTicks()[0]);g=v.toFixed(m+2)}var y=d.get("color"),_=new pr({style:Xr(d,{text:g,fill:y||h,align:"left",verticalAlign:"top"})}),w=n.add(_),x=_.getBoundingRect(),S=this._api.getDevicePixelRatio(),T=s.rootNode.position.toArray(),A=Pd[o[s.dim]];T[A]+=(s.flipped?-1:1)*d.get("margin"),T[Pd[s.dim]]=u.dataToCoord(e[l]),r.geometry.addSprite(T,[x.width*S,x.height*S],w,s.textAlign,s.textVerticalAlign)}},this),n.getZr().refreshImmediately(),r.material.set("uvScale",n.getCoordsScale()),r.geometry.convertToTypedArray()},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._axisLabelSurface.dispose(),this._axisPointerLabelsSurface.dispose()}});function O_(e){Ok.call(this,e),this.type="cartesian3D",this.dimensions=["x","y","z"],this.size=[0,0,0]}O_.prototype={constructor:O_,model:null,containPoint:function(e){return this.getAxis("x").contain(e[0])&&this.getAxis("y").contain(e[2])&&this.getAxis("z").contain(e[1])},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])&&this.getAxis("z").containData(e[2])},dataToPoint:function(e,t,r){return t=t||[],t[0]=this.getAxis("x").dataToCoord(e[0],r),t[2]=this.getAxis("y").dataToCoord(e[1],r),t[1]=this.getAxis("z").dataToCoord(e[2],r),t},pointToData:function(e,t,r){return t=t||[],t[0]=this.getAxis("x").coordToData(e[0],r),t[1]=this.getAxis("y").coordToData(e[2],r),t[2]=this.getAxis("z").coordToData(e[1],r),t}};Q_(O_,Ok);function P2(e,t,r){gi.call(this,e,t,r)}P2.prototype={constructor:P2,getExtentMin:function(){var e=this._extent;return Math.min(e[0],e[1])},getExtentMax:function(){var e=this._extent;return Math.max(e[0],e[1])},calculateCategoryInterval:function(){return Math.floor(this.scale.count()/8)}};Q_(P2,gi);var iR=function(){this._pool={},this._allocatedTextures=[]};iR.prototype={constructor:iR,get:function(e){var t=tW(e);this._pool.hasOwnProperty(t)||(this._pool[t]=[]);var r=this._pool[t];if(!r.length){var n=new _r(e);return this._allocatedTextures.push(n),n}return r.pop()},put:function(e){var t=tW(e);this._pool.hasOwnProperty(t)||(this._pool[t]=[]);var r=this._pool[t];r.push(e)},clear:function(e){for(var t=0;t<this._allocatedTextures.length;t++)this._allocatedTextures[t].dispose(e);this._pool={},this._allocatedTextures=[]}};var fie={width:512,height:512,type:$e.UNSIGNED_BYTE,format:$e.RGBA,wrapS:$e.CLAMP_TO_EDGE,wrapT:$e.CLAMP_TO_EDGE,minFilter:$e.LINEAR_MIPMAP_LINEAR,magFilter:$e.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,unpackAlignment:4,premultiplyAlpha:!1},SD=Object.keys(fie);function tW(e){za.defaultsWithPropList(e,fie,SD),pyt(e);for(var t="",r=0;r<SD.length;r++){var n=SD[r],a=e[n].toString();t+=a}return t}function pyt(e){var t=gyt(e.width,e.height);e.format===$e.DEPTH_COMPONENT&&(e.useMipmap=!1),(!t||!e.useMipmap)&&(e.minFilter==$e.NEAREST_MIPMAP_NEAREST||e.minFilter==$e.NEAREST_MIPMAP_LINEAR?e.minFilter=$e.NEAREST:(e.minFilter==$e.LINEAR_MIPMAP_LINEAR||e.minFilter==$e.LINEAR_MIPMAP_NEAREST)&&(e.minFilter=$e.LINEAR)),t||(e.wrapS=$e.CLAMP_TO_EDGE,e.wrapT=$e.CLAMP_TO_EDGE)}function gyt(e,t){return(e&e-1)===0&&(t&t-1)===0}const die=iR,myt=`@export clay.sm.depth.vertex
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
attribute vec3 position : POSITION;
|
||
attribute vec2 texcoord : TEXCOORD_0;
|
||
uniform vec2 uvRepeat = vec2(1.0, 1.0);
|
||
uniform vec2 uvOffset = vec2(0.0, 0.0);
|
||
@import clay.chunk.skinning_header
|
||
@import clay.chunk.instancing_header
|
||
varying vec4 v_ViewPosition;
|
||
varying vec2 v_Texcoord;
|
||
void main(){
|
||
vec4 P = vec4(position, 1.0);
|
||
#ifdef SKINNING
|
||
@import clay.chunk.skin_matrix
|
||
P = skinMatrixWS * P;
|
||
#endif
|
||
#ifdef INSTANCING
|
||
@import clay.chunk.instancing_matrix
|
||
P = instanceMat * P;
|
||
#endif
|
||
v_ViewPosition = worldViewProjection * P;
|
||
gl_Position = v_ViewPosition;
|
||
v_Texcoord = texcoord * uvRepeat + uvOffset;
|
||
}
|
||
@end
|
||
@export clay.sm.depth.fragment
|
||
varying vec4 v_ViewPosition;
|
||
varying vec2 v_Texcoord;
|
||
uniform float bias : 0.001;
|
||
uniform float slopeScale : 1.0;
|
||
uniform sampler2D alphaMap;
|
||
uniform float alphaCutoff: 0.0;
|
||
@import clay.util.encode_float
|
||
void main(){
|
||
float depth = v_ViewPosition.z / v_ViewPosition.w;
|
||
if (alphaCutoff > 0.0) {
|
||
if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {
|
||
discard;
|
||
}
|
||
}
|
||
#ifdef USE_VSM
|
||
depth = depth * 0.5 + 0.5;
|
||
float moment1 = depth;
|
||
float moment2 = depth * depth;
|
||
#ifdef SUPPORT_STANDARD_DERIVATIVES
|
||
float dx = dFdx(depth);
|
||
float dy = dFdy(depth);
|
||
moment2 += 0.25*(dx*dx+dy*dy);
|
||
#endif
|
||
gl_FragColor = vec4(moment1, moment2, 0.0, 1.0);
|
||
#else
|
||
#ifdef SUPPORT_STANDARD_DERIVATIVES
|
||
float dx = dFdx(depth);
|
||
float dy = dFdy(depth);
|
||
depth += sqrt(dx*dx + dy*dy) * slopeScale + bias;
|
||
#else
|
||
depth += bias;
|
||
#endif
|
||
gl_FragColor = encodeFloat(depth * 0.5 + 0.5);
|
||
#endif
|
||
}
|
||
@end
|
||
@export clay.sm.debug_depth
|
||
uniform sampler2D depthMap;
|
||
varying vec2 v_Texcoord;
|
||
@import clay.util.decode_float
|
||
void main() {
|
||
vec4 tex = texture2D(depthMap, v_Texcoord);
|
||
#ifdef USE_VSM
|
||
gl_FragColor = vec4(tex.rgb, 1.0);
|
||
#else
|
||
float depth = decodeFloat(tex);
|
||
gl_FragColor = vec4(depth, depth, depth, 1.0);
|
||
#endif
|
||
}
|
||
@end
|
||
@export clay.sm.distance.vertex
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform mat4 world : WORLD;
|
||
attribute vec3 position : POSITION;
|
||
@import clay.chunk.skinning_header
|
||
varying vec3 v_WorldPosition;
|
||
void main (){
|
||
vec4 P = vec4(position, 1.0);
|
||
#ifdef SKINNING
|
||
@import clay.chunk.skin_matrix
|
||
P = skinMatrixWS * P;
|
||
#endif
|
||
#ifdef INSTANCING
|
||
@import clay.chunk.instancing_matrix
|
||
P = instanceMat * P;
|
||
#endif
|
||
gl_Position = worldViewProjection * P;
|
||
v_WorldPosition = (world * P).xyz;
|
||
}
|
||
@end
|
||
@export clay.sm.distance.fragment
|
||
uniform vec3 lightPosition;
|
||
uniform float range : 100;
|
||
varying vec3 v_WorldPosition;
|
||
@import clay.util.encode_float
|
||
void main(){
|
||
float dist = distance(lightPosition, v_WorldPosition);
|
||
#ifdef USE_VSM
|
||
gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0);
|
||
#else
|
||
dist = dist / range;
|
||
gl_FragColor = encodeFloat(dist);
|
||
#endif
|
||
}
|
||
@end
|
||
@export clay.plugin.shadow_map_common
|
||
@import clay.util.decode_float
|
||
float tapShadowMap(sampler2D map, vec2 uv, float z){
|
||
vec4 tex = texture2D(map, uv);
|
||
return step(z, decodeFloat(tex) * 2.0 - 1.0);
|
||
}
|
||
float pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) {
|
||
float shadowContrib = tapShadowMap(map, uv, z);
|
||
vec2 offset = vec2(1.0 / textureSize) * scale;
|
||
#ifdef PCF_KERNEL_SIZE
|
||
for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{
|
||
shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z);
|
||
}}
|
||
return shadowContrib / float(PCF_KERNEL_SIZE + 1);
|
||
#else
|
||
shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z);
|
||
shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z);
|
||
shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z);
|
||
shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z);
|
||
shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z);
|
||
shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z);
|
||
shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z);
|
||
shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z);
|
||
return shadowContrib / 9.0;
|
||
#endif
|
||
}
|
||
float pcf(sampler2D map, vec2 uv, float z, float textureSize) {
|
||
return pcf(map, uv, z, textureSize, vec2(1.0));
|
||
}
|
||
float chebyshevUpperBound(vec2 moments, float z){
|
||
float p = 0.0;
|
||
z = z * 0.5 + 0.5;
|
||
if (z <= moments.x) {
|
||
p = 1.0;
|
||
}
|
||
float variance = moments.y - moments.x * moments.x;
|
||
variance = max(variance, 0.0000001);
|
||
float mD = moments.x - z;
|
||
float pMax = variance / (variance + mD * mD);
|
||
pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0);
|
||
return max(p, pMax);
|
||
}
|
||
float computeShadowContrib(
|
||
sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset
|
||
) {
|
||
vec4 posInLightSpace = lightVPM * vec4(position, 1.0);
|
||
posInLightSpace.xyz /= posInLightSpace.w;
|
||
float z = posInLightSpace.z;
|
||
if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) &&
|
||
all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){
|
||
vec2 uv = (posInLightSpace.xy+1.0) / 2.0;
|
||
#ifdef USE_VSM
|
||
vec2 moments = texture2D(map, uv * scale + offset).xy;
|
||
return chebyshevUpperBound(moments, z);
|
||
#else
|
||
return pcf(map, uv * scale + offset, z, textureSize, scale);
|
||
#endif
|
||
}
|
||
return 1.0;
|
||
}
|
||
float computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) {
|
||
return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0));
|
||
}
|
||
float computeShadowContribOmni(samplerCube map, vec3 direction, float range)
|
||
{
|
||
float dist = length(direction);
|
||
vec4 shadowTex = textureCube(map, direction);
|
||
#ifdef USE_VSM
|
||
vec2 moments = shadowTex.xy;
|
||
float variance = moments.y - moments.x * moments.x;
|
||
float mD = moments.x - dist;
|
||
float p = variance / (variance + mD * mD);
|
||
if(moments.x + 0.001 < dist){
|
||
return clamp(p, 0.0, 1.0);
|
||
}else{
|
||
return 1.0;
|
||
}
|
||
#else
|
||
return step(dist, (decodeFloat(shadowTex) + 0.0002) * range);
|
||
#endif
|
||
}
|
||
@end
|
||
@export clay.plugin.compute_shadow_map
|
||
#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT)
|
||
#ifdef SPOT_LIGHT_SHADOWMAP_COUNT
|
||
uniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
||
uniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
||
uniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
||
#endif
|
||
#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT
|
||
#if defined(SHADOW_CASCADE)
|
||
uniform sampler2D directionalLightShadowMaps[1]:unconfigurable;
|
||
uniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable;
|
||
uniform float directionalLightShadowMapSizes[1]:unconfigurable;
|
||
uniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable;
|
||
uniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable;
|
||
#else
|
||
uniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
||
uniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
||
uniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
||
#endif
|
||
#endif
|
||
#ifdef POINT_LIGHT_SHADOWMAP_COUNT
|
||
uniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;
|
||
#endif
|
||
uniform bool shadowEnabled : true;
|
||
#ifdef PCF_KERNEL_SIZE
|
||
uniform vec2 pcfKernel[PCF_KERNEL_SIZE];
|
||
#endif
|
||
@import clay.plugin.shadow_map_common
|
||
#if defined(SPOT_LIGHT_SHADOWMAP_COUNT)
|
||
void computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) {
|
||
float shadowContrib;
|
||
for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{
|
||
shadowContrib = computeShadowContrib(
|
||
spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position,
|
||
spotLightShadowMapSizes[_idx_]
|
||
);
|
||
shadowContribs[_idx_] = shadowContrib;
|
||
}}
|
||
for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{
|
||
shadowContribs[_idx_] = 1.0;
|
||
}}
|
||
}
|
||
#endif
|
||
#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
#ifdef SHADOW_CASCADE
|
||
void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){
|
||
float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far)
|
||
/ (gl_DepthRange.far - gl_DepthRange.near);
|
||
float shadowContrib;
|
||
shadowContribs[0] = 1.0;
|
||
for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{
|
||
if (
|
||
depth >= shadowCascadeClipsNear[_idx_] &&
|
||
depth <= shadowCascadeClipsFar[_idx_]
|
||
) {
|
||
shadowContrib = computeShadowContrib(
|
||
directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position,
|
||
directionalLightShadowMapSizes[0],
|
||
vec2(1.0 / float(SHADOW_CASCADE), 1.0),
|
||
vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0)
|
||
);
|
||
shadowContribs[0] = shadowContrib;
|
||
}
|
||
}}
|
||
for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{
|
||
shadowContribs[_idx_] = 1.0;
|
||
}}
|
||
}
|
||
#else
|
||
void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){
|
||
float shadowContrib;
|
||
for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{
|
||
shadowContrib = computeShadowContrib(
|
||
directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position,
|
||
directionalLightShadowMapSizes[_idx_]
|
||
);
|
||
shadowContribs[_idx_] = shadowContrib;
|
||
}}
|
||
for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{
|
||
shadowContribs[_idx_] = 1.0;
|
||
}}
|
||
}
|
||
#endif
|
||
#endif
|
||
#if defined(POINT_LIGHT_SHADOWMAP_COUNT)
|
||
void computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){
|
||
vec3 lightPosition;
|
||
vec3 direction;
|
||
for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{
|
||
lightPosition = pointLightPosition[_idx_];
|
||
direction = position - lightPosition;
|
||
shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]);
|
||
}}
|
||
for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{
|
||
shadowContribs[_idx_] = 1.0;
|
||
}}
|
||
}
|
||
#endif
|
||
#endif
|
||
@end`;var Tc=["px","nx","py","ny","pz","nz"];nt.import(myt);function xD(e,t,r){if(r==="alphaMap")return e.material.get("diffuseMap");if(r==="alphaCutoff"){if(e.material.isDefined("fragment","ALPHA_TEST")&&e.material.get("diffuseMap")){var n=e.material.get("alphaCutoff");return n||0}return 0}else return r==="uvRepeat"?e.material.get("uvRepeat"):r==="uvOffset"?e.material.get("uvOffset"):t.get(r)}function rW(e,t){var r=e.material,n=t.material;return r.get("diffuseMap")!==n.get("diffuseMap")||(r.get("alphaCutoff")||0)!==(n.get("alphaCutoff")||0)}var _l=zi.extend(function(){return{softShadow:_l.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new Ua,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new die}},function(){this._gaussianPassH=new sa({fragment:nt.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new sa({fragment:nt.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new sa({fragment:nt.source("clay.sm.debug_depth")})},{render:function(e,t,r,n){r||(r=t.getMainCamera()),this.trigger("beforerender",this,e,t,r),this._renderShadowPass(e,t,r,n),this.trigger("afterrender",this,e,t,r)},renderDebug:function(e,t){e.saveClear();var r=e.viewport,n=0,a=0,i=t||r.width/4,o=i;this.softShadow===_l.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM");for(var s in this._textures){var l=this._textures[s];e.setViewport(n,a,i*l.width/l.height,o),this._outputDepthPass.setUniform("depthMap",l),this._outputDepthPass.render(e),n+=i*l.width/l.height}e.setViewport(r),e.restoreClear()},_updateReceivers:function(e,t){if(t.receiveShadow?(this._receivers.push(t),t.material.set("shadowEnabled",1),t.material.set("pcfKernel",this.kernelPCF)):t.material.set("shadowEnabled",0),this.softShadow===_l.VSM)t.material.define("fragment","USE_VSM"),t.material.undefine("fragment","PCF_KERNEL_SIZE");else{t.material.undefine("fragment","USE_VSM");var r=this.kernelPCF;r&&r.length?t.material.define("fragment","PCF_KERNEL_SIZE",r.length/2):t.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(e,t){var r=this;t.traverse(function(i){i.isRenderable()&&r._updateReceivers(e,i)});for(var n=0;n<t.lights.length;n++){var a=t.lights[n];a.castShadow&&!a.invisible&&this._lightsCastShadow.push(a)}},_renderShadowPass:function(e,t,r,n){for(var a in this._shadowMapNumber)this._shadowMapNumber[a]=0;this._lightsCastShadow.length=0,this._receivers.length=0;var i=e.gl;if(n||t.update(),r&&r.update(),t.updateLights(),this._update(e,t),!this._lightsCastShadow.length&&this._lastRenderNotCastShadow)return;this._lastRenderNotCastShadow=this._lightsCastShadow===0,i.enable(i.DEPTH_TEST),i.depthMask(!0),i.disable(i.BLEND),i.clearColor(1,1,1,1);for(var o=[],s=[],l=[],u=[],c=[],f=[],d,h=0;h<this._lightsCastShadow.length;h++){var v=this._lightsCastShadow[h];if(v.type==="DIRECTIONAL_LIGHT"){if(d){console.warn("Only one direectional light supported with shadow cascade");continue}if(v.shadowCascade>4){console.warn("Support at most 4 cascade");continue}v.shadowCascade>1&&(d=v),this.renderDirectionalLightShadow(e,t,r,v,c,u,l)}else v.type==="SPOT_LIGHT"?this.renderSpotLightShadow(e,t,v,s,o):v.type==="POINT_LIGHT"&&this.renderPointLightShadow(e,t,v,f);this._shadowMapNumber[v.type]++}for(var p in this._shadowMapNumber)for(var g=this._shadowMapNumber[p],m=p+"_SHADOWMAP_COUNT",h=0;h<this._receivers.length;h++){var y=this._receivers[h],_=y.material;_.fragmentDefines[m]!==g&&(g>0?_.define("fragment",m,g):_.isDefined("fragment",m)&&_.undefine("fragment",m))}for(var h=0;h<this._receivers.length;h++){var y=this._receivers[h],_=y.material;d?_.define("fragment","SHADOW_CASCADE",d.shadowCascade):_.undefine("fragment","SHADOW_CASCADE")}var w=t.shadowUniforms;function x(M){return M.height}if(l.length>0){var S=l.map(x);if(w.directionalLightShadowMaps={value:l,type:"tv"},w.directionalLightMatrices={value:u,type:"m4v"},w.directionalLightShadowMapSizes={value:S,type:"1fv"},d){var T=c.slice(),A=c.slice();T.pop(),A.shift(),T.reverse(),A.reverse(),u.reverse(),w.shadowCascadeClipsNear={value:T,type:"1fv"},w.shadowCascadeClipsFar={value:A,type:"1fv"}}}if(o.length>0){var C=o.map(x),w=t.shadowUniforms;w.spotLightShadowMaps={value:o,type:"tv"},w.spotLightMatrices={value:s,type:"m4v"},w.spotLightShadowMapSizes={value:C,type:"1fv"}}f.length>0&&(w.pointLightShadowMaps={value:f,type:"tv"})},renderDirectionalLightShadow:function(){var e=new c4,t=new Bt,r=new Ti,n=new Bt,a=new Bt,i=new Bt,o=new Bt;return function(s,l,u,c,f,d,h){var v=this._getDepthMaterial(c),p={getMaterial:function(X){return X.shadowDepthMaterial||v},isMaterialChanged:rW,getUniform:xD,ifRender:function(X){return X.castShadow},sortCompare:f0.opaqueSortCompare};if(!l.viewBoundingBoxLastFrame.isFinite()){var g=l.getBoundingBox();l.viewBoundingBoxLastFrame.copy(g).applyTransform(u.viewMatrix)}var m=Math.min(-l.viewBoundingBoxLastFrame.min.z,u.far),y=Math.max(-l.viewBoundingBoxLastFrame.max.z,u.near),_=this._getDirectionalLightCamera(c,l,u),w=i.array;o.copy(_.projectionMatrix),ut.invert(a.array,_.worldTransform.array),ut.multiply(a.array,a.array,u.worldTransform.array),ut.multiply(w,o.array,a.array);for(var x=[],S=u instanceof Sa,T=(u.near+u.far)/(u.near-u.far),A=2*u.near*u.far/(u.near-u.far),C=0;C<=c.shadowCascade;C++){var M=y*Math.pow(m/y,C/c.shadowCascade),E=y+(m-y)*C/c.shadowCascade,D=M*c.cascadeSplitLogFactor+E*(1-c.cascadeSplitLogFactor);x.push(D),f.push(-(-D*T+A)/-D)}var P=this._getTexture(c,c.shadowCascade);h.push(P);var L=s.viewport,I=s.gl;this._frameBuffer.attach(P),this._frameBuffer.bind(s),I.clear(I.COLOR_BUFFER_BIT|I.DEPTH_BUFFER_BIT);for(var C=0;C<c.shadowCascade;C++){var O=x[C],R=x[C+1];S?ut.perspective(t.array,u.fov/180*Math.PI,u.aspect,O,R):ut.ortho(t.array,u.left,u.right,u.bottom,u.top,O,R),e.setFromProjection(t),e.getTransformedBoundingBox(r,a),r.applyProjection(o);var B=r.min.array,k=r.max.array;B[0]=Math.max(B[0],-1),B[1]=Math.max(B[1],-1),k[0]=Math.min(k[0],1),k[1]=Math.min(k[1],1),n.ortho(B[0],k[0],B[1],k[1],1,-1),_.projectionMatrix.multiplyLeft(n);var z=c.shadowResolution||512;s.setViewport((c.shadowCascade-C-1)*z,0,z,z,1);var $=l.updateRenderList(_);s.renderPass($.opaque,_,p),this.softShadow===_l.VSM&&this._gaussianFilter(s,P,P.width);var j=new Bt;j.copy(_.viewMatrix).multiplyLeft(_.projectionMatrix),d.push(j.array),_.projectionMatrix.copy(o)}this._frameBuffer.unbind(s),s.setViewport(L)}}(),renderSpotLightShadow:function(e,t,r,n,a){var i=this._getTexture(r),o=this._getSpotLightCamera(r),s=e.gl;this._frameBuffer.attach(i),this._frameBuffer.bind(e),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT);var l=this._getDepthMaterial(r),u={getMaterial:function(d){return d.shadowDepthMaterial||l},isMaterialChanged:rW,getUniform:xD,ifRender:function(d){return d.castShadow},sortCompare:f0.opaqueSortCompare},c=t.updateRenderList(o);e.renderPass(c.opaque,o,u),this._frameBuffer.unbind(e),this.softShadow===_l.VSM&&this._gaussianFilter(e,i,i.width);var f=new Bt;f.copy(o.worldTransform).invert().multiplyLeft(o.projectionMatrix),a.push(i),n.push(f.array)},renderPointLightShadow:function(e,t,r,n){var a=this._getTexture(r),i=e.gl;n.push(a);var o=this._getDepthMaterial(r),s={getMaterial:function(y){return y.shadowDepthMaterial||o},getUniform:xD,sortCompare:f0.opaqueSortCompare},l={px:[],py:[],pz:[],nx:[],ny:[],nz:[]},u=new Ti,c=r.getWorldPosition().array,f=new Ti,d=r.range;f.min.setArray(c),f.max.setArray(c);var h=new mt(d,d,d);f.max.add(h),f.min.sub(h);var v={px:!1,py:!1,pz:!1,nx:!1,ny:!1,nz:!1};t.traverse(function(y){if(y.isRenderable()&&y.castShadow){var _=y.geometry;if(!_.boundingBox){for(var w=0;w<Tc.length;w++)l[Tc[w]].push(y);return}if(u.transformFrom(_.boundingBox,y.worldTransform),!u.intersectBoundingBox(f))return;u.updateVertices();for(var w=0;w<Tc.length;w++)v[Tc[w]]=!1;for(var w=0;w<8;w++){var x=u.vertices[w],S=x[0]-c[0],T=x[1]-c[1],A=x[2]-c[2],C=Math.abs(S),M=Math.abs(T),E=Math.abs(A);C>M?C>E?v[S>0?"px":"nx"]=!0:v[A>0?"pz":"nz"]=!0:M>E?v[T>0?"py":"ny"]=!0:v[A>0?"pz":"nz"]=!0}for(var w=0;w<Tc.length;w++)v[Tc[w]]&&l[Tc[w]].push(y)}});for(var p=0;p<6;p++){var g=Tc[p],m=this._getPointLightCamera(r,g);this._frameBuffer.attach(a,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+p),this._frameBuffer.bind(e),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),e.renderPass(l[g],m,s)}this._frameBuffer.unbind(e)},_getDepthMaterial:function(e){var t=this._lightMaterials[e.__uid__],r=e.type==="POINT_LIGHT";if(!t){var n=r?"clay.sm.distance.":"clay.sm.depth.";t=new as({precision:this.precision,shader:new nt(nt.source(n+"vertex"),nt.source(n+"fragment"))}),this._lightMaterials[e.__uid__]=t}return e.shadowSlopeScale!=null&&t.setUniform("slopeScale",e.shadowSlopeScale),e.shadowBias!=null&&t.setUniform("bias",e.shadowBias),this.softShadow===_l.VSM?t.define("fragment","USE_VSM"):t.undefine("fragment","USE_VSM"),r&&(t.set("lightPosition",e.getWorldPosition().array),t.set("range",e.range)),t},_gaussianFilter:function(e,t,r){var n={width:r,height:r,type:$t.FLOAT},a=this._texturePool.get(n);this._frameBuffer.attach(a),this._frameBuffer.bind(e),this._gaussianPassH.setUniform("texture",t),this._gaussianPassH.setUniform("textureWidth",r),this._gaussianPassH.render(e),this._frameBuffer.attach(t),this._gaussianPassV.setUniform("texture",a),this._gaussianPassV.setUniform("textureHeight",r),this._gaussianPassV.render(e),this._frameBuffer.unbind(e),this._texturePool.put(a)},_getTexture:function(e,t){var r=e.__uid__,n=this._textures[r],a=e.shadowResolution||512;return t=t||1,n||(e.type==="POINT_LIGHT"?n=new I_:n=new _r,n.width=a*t,n.height=a,this.softShadow===_l.VSM?(n.type=$t.FLOAT,n.anisotropic=4):(n.minFilter=$e.NEAREST,n.magFilter=$e.NEAREST,n.useMipmap=!1),this._textures[r]=n),n},_getPointLightCamera:function(e,t){this._lightCameras.point||(this._lightCameras.point={px:new Sa,nx:new Sa,py:new Sa,ny:new Sa,pz:new Sa,nz:new Sa});var r=this._lightCameras.point[t];switch(r.far=e.range,r.fov=90,r.position.set(0,0,0),t){case"px":r.lookAt(mt.POSITIVE_X,mt.NEGATIVE_Y);break;case"nx":r.lookAt(mt.NEGATIVE_X,mt.NEGATIVE_Y);break;case"py":r.lookAt(mt.POSITIVE_Y,mt.POSITIVE_Z);break;case"ny":r.lookAt(mt.NEGATIVE_Y,mt.NEGATIVE_Z);break;case"pz":r.lookAt(mt.POSITIVE_Z,mt.NEGATIVE_Y);break;case"nz":r.lookAt(mt.NEGATIVE_Z,mt.NEGATIVE_Y);break}return e.getWorldPosition(r.position),r.update(),r},_getDirectionalLightCamera:function(){var e=new Bt,t=new Ti,r=new Ti;return function(n,a,i){this._lightCameras.directional||(this._lightCameras.directional=new Ag);var o=this._lightCameras.directional;t.copy(a.viewBoundingBoxLastFrame),t.intersection(i.frustum.boundingBox),o.position.copy(t.min).add(t.max).scale(.5).transformMat4(i.worldTransform),o.rotation.copy(n.rotation),o.scale.copy(n.scale),o.updateWorldTransform(),Bt.invert(e,o.worldTransform),Bt.multiply(e,e,i.worldTransform),r.copy(t).applyTransform(e);var s=r.min.array,l=r.max.array;return o.position.set((s[0]+l[0])/2,(s[1]+l[1])/2,l[2]).transformMat4(o.worldTransform),o.near=0,o.far=-s[2]+l[2],isNaN(this.lightFrustumBias)?o.far*=4:o.far+=this.lightFrustumBias,o.left=s[0],o.right=l[0],o.top=l[1],o.bottom=s[1],o.update(!0),o}}(),_getSpotLightCamera:function(e){this._lightCameras.spot||(this._lightCameras.spot=new Sa);var t=this._lightCameras.spot;return t.fov=e.penumbraAngle*2,t.far=e.range,t.worldTransform.copy(e.worldTransform),t.updateProjectionMatrix(),ut.invert(t.viewMatrix.array,t.worldTransform.array),t},dispose:function(e){var t=e.gl||e;this._frameBuffer&&this._frameBuffer.dispose(t);for(var r in this._textures)this._textures[r].dispose(t);this._texturePool.clear(e.gl),this._depthMaterials={},this._distanceMaterials={},this._textures={},this._lightCameras={},this._shadowMapNumber={POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},this._meshMaterials={};for(var n=0;n<this._receivers.length;n++){var a=this._receivers[n];if(a.material){var i=a.material;i.undefine("fragment","POINT_LIGHT_SHADOW_COUNT"),i.undefine("fragment","DIRECTIONAL_LIGHT_SHADOW_COUNT"),i.undefine("fragment","AMBIENT_LIGHT_SHADOW_COUNT"),i.set("shadowEnabled",0)}}this._receivers=[],this._lightsCastShadow=[]}});_l.VSM=1;_l.PCF=2;const yyt=_l;var _yt=zi.extend(function(){return{name:"",inputLinks:{},outputLinks:{},_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},{updateParameter:function(e,t){var r=this.outputs[e],n=r.parameters,a=r._parametersCopy;if(a||(a=r._parametersCopy={}),n)for(var i in n)i!=="width"&&i!=="height"&&(a[i]=n[i]);var o,s;return n.width instanceof Function?o=n.width.call(this,t):o=n.width,n.height instanceof Function?s=n.height.call(this,t):s=n.height,(a.width!==o||a.height!==s)&&this._outputTextures[e]&&this._outputTextures[e].dispose(t.gl),a.width=o,a.height=s,a},setParameter:function(e,t){},getParameter:function(e){},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},render:function(){},getOutput:function(e,t){if(t==null)return t=e,this._outputTextures[t];var r=this.outputs[t];if(r)return this._rendered?r.outputLastFrame?this._prevOutputTextures[t]:this._outputTextures[t]:this._rendering?(this._prevOutputTextures[t]||(this._prevOutputTextures[t]=this._compositor.allocateTexture(r.parameters||{})),this._prevOutputTextures[t]):(this.render(e),this._outputTextures[t])},removeReference:function(e){if(this._outputReferences[e]--,this._outputReferences[e]===0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},link:function(e,t,r){this.inputLinks[e]={node:t,pin:r},t.outputLinks[r]||(t.outputLinks[r]=[]),t.outputLinks[r].push({node:this,pin:e}),this.pass.material.enableTexture(e)},clear:function(){this.inputLinks={},this.outputLinks={}},updateReference:function(e){if(!this._rendering){this._rendering=!0;for(var t in this.inputLinks){var r=this.inputLinks[t];r.node.updateReference(r.pin)}this._rendering=!1}e&&this._outputReferences[e]++},beforeFrame:function(){this._rendered=!1;for(var e in this.outputLinks)this._outputReferences[e]=0},afterFrame:function(){for(var e in this.outputLinks)if(this._outputReferences[e]>0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}}});const k_=_yt;var byt=zi.extend(function(){return{nodes:[]}},{dirty:function(){this._dirty=!0},addNode:function(e){this.nodes.indexOf(e)>=0||(this.nodes.push(e),this._dirty=!0)},removeNode:function(e){typeof e=="string"&&(e=this.getNodeByName(e));var t=this.nodes.indexOf(e);t>=0&&(this.nodes.splice(t,1),this._dirty=!0)},getNodeByName:function(e){for(var t=0;t<this.nodes.length;t++)if(this.nodes[t].name===e)return this.nodes[t]},update:function(){for(var e=0;e<this.nodes.length;e++)this.nodes[e].clear();for(var e=0;e<this.nodes.length;e++){var t=this.nodes[e];if(t.inputs){for(var r in t.inputs)if(t.inputs[r]){if(t.pass&&!t.pass.material.isUniformEnabled(r)){console.warn("Pin "+t.name+"."+r+" not used.");continue}var n=t.inputs[r],a=this.findPin(n);a?t.link(r,a.node,a.pin):console.warn(typeof n=="string"?"Node "+n+" not exist":"Pin of "+n.node+"."+n.pin+" not exist")}}}},findPin:function(e){var t;if((typeof e=="string"||e instanceof k_)&&(e={node:e}),typeof e.node=="string")for(var r=0;r<this.nodes.length;r++){var n=this.nodes[r];n.name===e.node&&(t=n)}else t=e.node;if(t){var a=e.pin;if(a||t.outputs&&(a=Object.keys(t.outputs)[0]),t.outputs[a])return{node:t,pin:a}}}});const nW=byt;var wyt=nW.extend(function(){return{_outputs:[],_texturePool:new die,_frameBuffer:new Ua({depthBuffer:!1})}},{addNode:function(e){nW.prototype.addNode.call(this,e),e._compositor=this},render:function(e,t){if(this._dirty){this.update(),this._dirty=!1,this._outputs.length=0;for(var r=0;r<this.nodes.length;r++)this.nodes[r].outputs||this._outputs.push(this.nodes[r])}for(var r=0;r<this.nodes.length;r++)this.nodes[r].beforeFrame();for(var r=0;r<this._outputs.length;r++)this._outputs[r].updateReference();for(var r=0;r<this._outputs.length;r++)this._outputs[r].render(e,t);for(var r=0;r<this.nodes.length;r++)this.nodes[r].afterFrame()},allocateTexture:function(e){return this._texturePool.get(e)},releaseTexture:function(e){this._texturePool.put(e)},getFrameBuffer:function(){return this._frameBuffer},dispose:function(e){this._texturePool.clear(e)}});const Syt=wyt;var xyt=k_.extend({name:"scene",scene:null,camera:null,autoUpdateScene:!0,preZ:!1},function(){this.frameBuffer=new Ua},{render:function(e){this._rendering=!0;var t=e.gl;this.trigger("beforerender");var r;if(!this.outputs)r=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);else{var n=this.frameBuffer;for(var a in this.outputs){var i=this.updateParameter(a,e),o=this.outputs[a],s=this._compositor.allocateTexture(i);this._outputTextures[a]=s;var l=o.attachment||t.COLOR_ATTACHMENT0;typeof l=="string"&&(l=t[l]),n.attach(s,l)}n.bind(e);var u=e.getGLExtension("EXT_draw_buffers");if(u){var c=[];for(var l in this.outputs)l=parseInt(l),l>=t.COLOR_ATTACHMENT0&&l<=t.COLOR_ATTACHMENT0+8&&c.push(l);u.drawBuffersEXT(c)}e.saveClear(),e.clearBit=$e.DEPTH_BUFFER_BIT|$e.COLOR_BUFFER_BIT,r=e.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),e.restoreClear(),n.unbind(e)}this.trigger("afterrender",r),this._rendering=!1,this._rendered=!0}});const Ayt=xyt;var Tyt=k_.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(e,t){return this.texture},beforeFrame:function(){},afterFrame:function(){}});const Cyt=Tyt;var Eyt=k_.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var e=new sa({fragment:this.shader});this.pass=e},{render:function(e,t){this.trigger("beforerender",e),this._rendering=!0;var r=e.gl;for(var n in this.inputLinks){var a=this.inputLinks[n],i=a.node.getOutput(e,a.pin);this.pass.setUniform(n,i)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(e),this.pass.render(e,t);else{this.pass.outputs={};var o={};for(var s in this.outputs){var l=this.updateParameter(s,e);isNaN(l.width)&&this.updateParameter(s,e);var u=this.outputs[s],c=this._compositor.allocateTexture(l);this._outputTextures[s]=c;var f=u.attachment||r.COLOR_ATTACHMENT0;typeof f=="string"&&(f=r[f]),o[f]=c}this._compositor.getFrameBuffer().bind(e);for(var f in o)this._compositor.getFrameBuffer().attach(o[f],f);this.pass.render(e),this._compositor.getFrameBuffer().updateMipmap(e)}for(var n in this.inputLinks){var a=this.inputLinks[n];a.node.removeReference(a.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",e)},updateParameter:function(e,t){var r=this.outputs[e],n=r.parameters,a=r._parametersCopy;if(a||(a=r._parametersCopy={}),n)for(var i in n)i!=="width"&&i!=="height"&&(a[i]=n[i]);var o,s;return typeof n.width=="function"?o=n.width.call(this,t):o=n.width,typeof n.height=="function"?s=n.height.call(this,t):s=n.height,o=Math.ceil(o),s=Math.ceil(s),(a.width!==o||a.height!==s)&&this._outputTextures[e]&&this._outputTextures[e].dispose(t),a.width=o,a.height=s,a},setParameter:function(e,t){this.pass.setUniform(e,t)},getParameter:function(e){return this.pass.getUniform(e)},setParameters:function(e){for(var t in e)this.setParameter(t,e[t])},define:function(e,t){this.pass.material.define("fragment",e,t)},undefine:function(e){this.pass.material.undefine("fragment",e)},removeReference:function(e){if(this._outputReferences[e]--,this._outputReferences[e]===0){var t=this.outputs[e];t.keepLastFrame?(this._prevOutputTextures[e]&&this._compositor.releaseTexture(this._prevOutputTextures[e]),this._prevOutputTextures[e]=this._outputTextures[e]):this._compositor.releaseTexture(this._outputTextures[e])}},clear:function(){k_.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});const Myt=Eyt,Dyt=`@export clay.compositor.coloradjust
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform float brightness : 0.0;
|
||
uniform float contrast : 1.0;
|
||
uniform float exposure : 0.0;
|
||
uniform float gamma : 1.0;
|
||
uniform float saturation : 1.0;
|
||
const vec3 w = vec3(0.2125, 0.7154, 0.0721);
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D( texture, v_Texcoord);
|
||
vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0);
|
||
color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);
|
||
color = clamp( color * pow(2.0, exposure), 0.0, 1.0);
|
||
color = clamp( pow(color, vec3(gamma)), 0.0, 1.0);
|
||
float luminance = dot( color, w );
|
||
color = mix(vec3(luminance), color, saturation);
|
||
gl_FragColor = vec4(color, tex.a);
|
||
}
|
||
@end
|
||
@export clay.compositor.brightness
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform float brightness : 0.0;
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D( texture, v_Texcoord);
|
||
vec3 color = tex.rgb + vec3(brightness);
|
||
gl_FragColor = vec4(color, tex.a);
|
||
}
|
||
@end
|
||
@export clay.compositor.contrast
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform float contrast : 1.0;
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D( texture, v_Texcoord);
|
||
vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5);
|
||
gl_FragColor = vec4(color, tex.a);
|
||
}
|
||
@end
|
||
@export clay.compositor.exposure
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform float exposure : 0.0;
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D(texture, v_Texcoord);
|
||
vec3 color = tex.rgb * pow(2.0, exposure);
|
||
gl_FragColor = vec4(color, tex.a);
|
||
}
|
||
@end
|
||
@export clay.compositor.gamma
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform float gamma : 1.0;
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D(texture, v_Texcoord);
|
||
vec3 color = pow(tex.rgb, vec3(gamma));
|
||
gl_FragColor = vec4(color, tex.a);
|
||
}
|
||
@end
|
||
@export clay.compositor.saturation
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform float saturation : 1.0;
|
||
const vec3 w = vec3(0.2125, 0.7154, 0.0721);
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D(texture, v_Texcoord);
|
||
vec3 color = tex.rgb;
|
||
float luminance = dot(color, w);
|
||
color = mix(vec3(luminance), color, saturation);
|
||
gl_FragColor = vec4(color, tex.a);
|
||
}
|
||
@end`,hie=`@export clay.compositor.kernel.gaussian_9
|
||
float gaussianKernel[9];
|
||
gaussianKernel[0] = 0.07;
|
||
gaussianKernel[1] = 0.09;
|
||
gaussianKernel[2] = 0.12;
|
||
gaussianKernel[3] = 0.14;
|
||
gaussianKernel[4] = 0.16;
|
||
gaussianKernel[5] = 0.14;
|
||
gaussianKernel[6] = 0.12;
|
||
gaussianKernel[7] = 0.09;
|
||
gaussianKernel[8] = 0.07;
|
||
@end
|
||
@export clay.compositor.kernel.gaussian_13
|
||
float gaussianKernel[13];
|
||
gaussianKernel[0] = 0.02;
|
||
gaussianKernel[1] = 0.03;
|
||
gaussianKernel[2] = 0.06;
|
||
gaussianKernel[3] = 0.08;
|
||
gaussianKernel[4] = 0.11;
|
||
gaussianKernel[5] = 0.13;
|
||
gaussianKernel[6] = 0.14;
|
||
gaussianKernel[7] = 0.13;
|
||
gaussianKernel[8] = 0.11;
|
||
gaussianKernel[9] = 0.08;
|
||
gaussianKernel[10] = 0.06;
|
||
gaussianKernel[11] = 0.03;
|
||
gaussianKernel[12] = 0.02;
|
||
@end
|
||
@export clay.compositor.gaussian_blur
|
||
#define SHADER_NAME gaussian_blur
|
||
uniform sampler2D texture;varying vec2 v_Texcoord;
|
||
uniform float blurSize : 2.0;
|
||
uniform vec2 textureSize : [512.0, 512.0];
|
||
uniform float blurDir : 0.0;
|
||
@import clay.util.rgbm
|
||
@import clay.util.clamp_sample
|
||
void main (void)
|
||
{
|
||
@import clay.compositor.kernel.gaussian_9
|
||
vec2 off = blurSize / textureSize;
|
||
off *= vec2(1.0 - blurDir, blurDir);
|
||
vec4 sum = vec4(0.0);
|
||
float weightAll = 0.0;
|
||
for (int i = 0; i < 9; i++) {
|
||
float w = gaussianKernel[i];
|
||
vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off));
|
||
sum += texel * w;
|
||
weightAll += w;
|
||
}
|
||
gl_FragColor = encodeHDR(sum / max(weightAll, 0.01));
|
||
}
|
||
@end
|
||
`,Pyt=`@export clay.compositor.hdr.log_lum
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
const vec3 w = vec3(0.2125, 0.7154, 0.0721);
|
||
@import clay.util.rgbm
|
||
void main()
|
||
{
|
||
vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));
|
||
float luminance = dot(tex.rgb, w);
|
||
luminance = log(luminance + 0.001);
|
||
gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0));
|
||
}
|
||
@end
|
||
@export clay.compositor.hdr.lum_adaption
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D adaptedLum;
|
||
uniform sampler2D currentLum;
|
||
uniform float frameTime : 0.02;
|
||
@import clay.util.rgbm
|
||
void main()
|
||
{
|
||
float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r;
|
||
float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r);
|
||
fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime));
|
||
gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0));
|
||
}
|
||
@end
|
||
@export clay.compositor.lum
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
const vec3 w = vec3(0.2125, 0.7154, 0.0721);
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D( texture, v_Texcoord );
|
||
float luminance = dot(tex.rgb, w);
|
||
gl_FragColor = vec4(vec3(luminance), 1.0);
|
||
}
|
||
@end`,vie=`
|
||
@export clay.compositor.lut
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform sampler2D lookup;
|
||
void main()
|
||
{
|
||
vec4 tex = texture2D(texture, v_Texcoord);
|
||
float blueColor = tex.b * 63.0;
|
||
vec2 quad1;
|
||
quad1.y = floor(floor(blueColor) / 8.0);
|
||
quad1.x = floor(blueColor) - (quad1.y * 8.0);
|
||
vec2 quad2;
|
||
quad2.y = floor(ceil(blueColor) / 8.0);
|
||
quad2.x = ceil(blueColor) - (quad2.y * 8.0);
|
||
vec2 texPos1;
|
||
texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);
|
||
texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);
|
||
vec2 texPos2;
|
||
texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);
|
||
texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);
|
||
vec4 newColor1 = texture2D(lookup, texPos1);
|
||
vec4 newColor2 = texture2D(lookup, texPos2);
|
||
vec4 newColor = mix(newColor1, newColor2, fract(blueColor));
|
||
gl_FragColor = vec4(newColor.rgb, tex.w);
|
||
}
|
||
@end`,Lyt=`@export clay.compositor.vignette
|
||
#define OUTPUT_ALPHA
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
uniform float darkness: 1;
|
||
uniform float offset: 1;
|
||
@import clay.util.rgbm
|
||
void main()
|
||
{
|
||
vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));
|
||
gl_FragColor.rgb = texel.rgb;
|
||
vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset);
|
||
gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a));
|
||
}
|
||
@end`,pie=`@export clay.compositor.output
|
||
#define OUTPUT_ALPHA
|
||
varying vec2 v_Texcoord;
|
||
uniform sampler2D texture;
|
||
@import clay.util.rgbm
|
||
void main()
|
||
{
|
||
vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));
|
||
gl_FragColor.rgb = tex.rgb;
|
||
#ifdef OUTPUT_ALPHA
|
||
gl_FragColor.a = tex.a;
|
||
#else
|
||
gl_FragColor.a = 1.0;
|
||
#endif
|
||
gl_FragColor = encodeHDR(gl_FragColor);
|
||
#ifdef PREMULTIPLY_ALPHA
|
||
gl_FragColor.rgb *= gl_FragColor.a;
|
||
#endif
|
||
}
|
||
@end`,gie=`@export clay.compositor.bright
|
||
uniform sampler2D texture;
|
||
uniform float threshold : 1;
|
||
uniform float scale : 1.0;
|
||
uniform vec2 textureSize: [512, 512];
|
||
varying vec2 v_Texcoord;
|
||
const vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721);
|
||
@import clay.util.rgbm
|
||
vec4 median(vec4 a, vec4 b, vec4 c)
|
||
{
|
||
return a + b + c - min(min(a, b), c) - max(max(a, b), c);
|
||
}
|
||
void main()
|
||
{
|
||
vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));
|
||
#ifdef ANTI_FLICKER
|
||
vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0);
|
||
vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz));
|
||
vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz));
|
||
vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy));
|
||
vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy));
|
||
texel = median(median(texel, s1, s2), s3, s4);
|
||
#endif
|
||
float lum = dot(texel.rgb , lumWeight);
|
||
vec4 color;
|
||
if (lum > threshold && texel.a > 0.0)
|
||
{
|
||
color = vec4(texel.rgb * scale, texel.a * scale);
|
||
}
|
||
else
|
||
{
|
||
color = vec4(0.0);
|
||
}
|
||
gl_FragColor = encodeHDR(color);
|
||
}
|
||
@end
|
||
`,mie=`@export clay.compositor.downsample
|
||
uniform sampler2D texture;
|
||
uniform vec2 textureSize : [512, 512];
|
||
varying vec2 v_Texcoord;
|
||
@import clay.util.rgbm
|
||
float brightness(vec3 c)
|
||
{
|
||
return max(max(c.r, c.g), c.b);
|
||
}
|
||
@import clay.util.clamp_sample
|
||
void main()
|
||
{
|
||
vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy;
|
||
#ifdef ANTI_FLICKER
|
||
vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb;
|
||
vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb;
|
||
vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb;
|
||
vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb;
|
||
float s1w = 1.0 / (brightness(s1) + 1.0);
|
||
float s2w = 1.0 / (brightness(s2) + 1.0);
|
||
float s3w = 1.0 / (brightness(s3) + 1.0);
|
||
float s4w = 1.0 / (brightness(s4) + 1.0);
|
||
float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w);
|
||
vec4 color = vec4(
|
||
(s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum,
|
||
1.0
|
||
);
|
||
#else
|
||
vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy));
|
||
color += decodeHDR(clampSample(texture, v_Texcoord + d.zy));
|
||
color += decodeHDR(clampSample(texture, v_Texcoord + d.xw));
|
||
color += decodeHDR(clampSample(texture, v_Texcoord + d.zw));
|
||
color *= 0.25;
|
||
#endif
|
||
gl_FragColor = encodeHDR(color);
|
||
}
|
||
@end`,yie=`
|
||
@export clay.compositor.upsample
|
||
#define HIGH_QUALITY
|
||
uniform sampler2D texture;
|
||
uniform vec2 textureSize : [512, 512];
|
||
uniform float sampleScale: 0.5;
|
||
varying vec2 v_Texcoord;
|
||
@import clay.util.rgbm
|
||
@import clay.util.clamp_sample
|
||
void main()
|
||
{
|
||
#ifdef HIGH_QUALITY
|
||
vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale;
|
||
vec4 s;
|
||
s = decodeHDR(clampSample(texture, v_Texcoord - d.xy));
|
||
s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0;
|
||
s += decodeHDR(clampSample(texture, v_Texcoord - d.zy));
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0;
|
||
s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0;
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0;
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0;
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.xy));
|
||
gl_FragColor = encodeHDR(s / 16.0);
|
||
#else
|
||
vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy;
|
||
vec4 s;
|
||
s = decodeHDR(clampSample(texture, v_Texcoord + d.xy));
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.xw));
|
||
s += decodeHDR(clampSample(texture, v_Texcoord + d.zw));
|
||
gl_FragColor = encodeHDR(s / 4.0);
|
||
#endif
|
||
}
|
||
@end`,_ie=`@export clay.compositor.hdr.composite
|
||
#define TONEMAPPING
|
||
uniform sampler2D texture;
|
||
#ifdef BLOOM_ENABLED
|
||
uniform sampler2D bloom;
|
||
#endif
|
||
#ifdef LENSFLARE_ENABLED
|
||
uniform sampler2D lensflare;
|
||
uniform sampler2D lensdirt;
|
||
#endif
|
||
#ifdef LUM_ENABLED
|
||
uniform sampler2D lum;
|
||
#endif
|
||
#ifdef LUT_ENABLED
|
||
uniform sampler2D lut;
|
||
#endif
|
||
#ifdef COLOR_CORRECTION
|
||
uniform float brightness : 0.0;
|
||
uniform float contrast : 1.0;
|
||
uniform float saturation : 1.0;
|
||
#endif
|
||
#ifdef VIGNETTE
|
||
uniform float vignetteDarkness: 1.0;
|
||
uniform float vignetteOffset: 1.0;
|
||
#endif
|
||
uniform float exposure : 1.0;
|
||
uniform float bloomIntensity : 0.25;
|
||
uniform float lensflareIntensity : 1;
|
||
varying vec2 v_Texcoord;
|
||
@import clay.util.srgb
|
||
vec3 ACESToneMapping(vec3 color)
|
||
{
|
||
const float A = 2.51;
|
||
const float B = 0.03;
|
||
const float C = 2.43;
|
||
const float D = 0.59;
|
||
const float E = 0.14;
|
||
return (color * (A * color + B)) / (color * (C * color + D) + E);
|
||
}
|
||
float eyeAdaption(float fLum)
|
||
{
|
||
return mix(0.2, fLum, 0.5);
|
||
}
|
||
#ifdef LUT_ENABLED
|
||
vec3 lutTransform(vec3 color) {
|
||
float blueColor = color.b * 63.0;
|
||
vec2 quad1;
|
||
quad1.y = floor(floor(blueColor) / 8.0);
|
||
quad1.x = floor(blueColor) - (quad1.y * 8.0);
|
||
vec2 quad2;
|
||
quad2.y = floor(ceil(blueColor) / 8.0);
|
||
quad2.x = ceil(blueColor) - (quad2.y * 8.0);
|
||
vec2 texPos1;
|
||
texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);
|
||
texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);
|
||
vec2 texPos2;
|
||
texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);
|
||
texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);
|
||
vec4 newColor1 = texture2D(lut, texPos1);
|
||
vec4 newColor2 = texture2D(lut, texPos2);
|
||
vec4 newColor = mix(newColor1, newColor2, fract(blueColor));
|
||
return newColor.rgb;
|
||
}
|
||
#endif
|
||
@import clay.util.rgbm
|
||
void main()
|
||
{
|
||
vec4 texel = vec4(0.0);
|
||
vec4 originalTexel = vec4(0.0);
|
||
#ifdef TEXTURE_ENABLED
|
||
texel = decodeHDR(texture2D(texture, v_Texcoord));
|
||
originalTexel = texel;
|
||
#endif
|
||
#ifdef BLOOM_ENABLED
|
||
vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord));
|
||
texel.rgb += bloomTexel.rgb * bloomIntensity;
|
||
texel.a += bloomTexel.a * bloomIntensity;
|
||
#endif
|
||
#ifdef LENSFLARE_ENABLED
|
||
texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity;
|
||
#endif
|
||
texel.a = min(texel.a, 1.0);
|
||
#ifdef LUM_ENABLED
|
||
float fLum = texture2D(lum, vec2(0.5, 0.5)).r;
|
||
float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum)));
|
||
float exposureBias = adaptedLumDest * exposure;
|
||
#else
|
||
float exposureBias = exposure;
|
||
#endif
|
||
#ifdef TONEMAPPING
|
||
texel.rgb *= exposureBias;
|
||
texel.rgb = ACESToneMapping(texel.rgb);
|
||
#endif
|
||
texel = linearTosRGB(texel);
|
||
#ifdef LUT_ENABLED
|
||
texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0)));
|
||
#endif
|
||
#ifdef COLOR_CORRECTION
|
||
texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0);
|
||
texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);
|
||
float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721));
|
||
texel.rgb = mix(vec3(lum), texel.rgb, saturation);
|
||
#endif
|
||
#ifdef VIGNETTE
|
||
vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset);
|
||
texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv));
|
||
#endif
|
||
gl_FragColor = encodeHDR(texel);
|
||
#ifdef DEBUG
|
||
#if DEBUG == 1
|
||
gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord)));
|
||
#elif DEBUG == 2
|
||
gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity);
|
||
#elif DEBUG == 3
|
||
gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity));
|
||
#endif
|
||
#endif
|
||
if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) {
|
||
gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721));
|
||
}
|
||
#ifdef PREMULTIPLY_ALPHA
|
||
gl_FragColor.rgb *= gl_FragColor.a;
|
||
#endif
|
||
}
|
||
@end`,Iyt=`@export clay.compositor.lensflare
|
||
#define SAMPLE_NUMBER 8
|
||
uniform sampler2D texture;
|
||
uniform sampler2D lenscolor;
|
||
uniform vec2 textureSize : [512, 512];
|
||
uniform float dispersal : 0.3;
|
||
uniform float haloWidth : 0.4;
|
||
uniform float distortion : 1.0;
|
||
varying vec2 v_Texcoord;
|
||
@import clay.util.rgbm
|
||
vec4 textureDistorted(
|
||
in vec2 texcoord,
|
||
in vec2 direction,
|
||
in vec3 distortion
|
||
) {
|
||
return vec4(
|
||
decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r,
|
||
decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g,
|
||
decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b,
|
||
1.0
|
||
);
|
||
}
|
||
void main()
|
||
{
|
||
vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize;
|
||
vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal;
|
||
vec2 haloVec = normalize(ghostVec) * haloWidth;
|
||
vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion);
|
||
vec4 result = vec4(0.0);
|
||
for (int i = 0; i < SAMPLE_NUMBER; i++)
|
||
{
|
||
vec2 offset = fract(texcoord + ghostVec * float(i));
|
||
float weight = length(vec2(0.5) - offset) / length(vec2(0.5));
|
||
weight = pow(1.0 - weight, 10.0);
|
||
result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;
|
||
}
|
||
result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5)));
|
||
float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5));
|
||
weight = pow(1.0 - weight, 10.0);
|
||
vec2 offset = fract(texcoord + haloVec);
|
||
result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;
|
||
gl_FragColor = result;
|
||
}
|
||
@end`,bie=`@export clay.compositor.blend
|
||
#define SHADER_NAME blend
|
||
#ifdef TEXTURE1_ENABLED
|
||
uniform sampler2D texture1;
|
||
uniform float weight1 : 1.0;
|
||
#endif
|
||
#ifdef TEXTURE2_ENABLED
|
||
uniform sampler2D texture2;
|
||
uniform float weight2 : 1.0;
|
||
#endif
|
||
#ifdef TEXTURE3_ENABLED
|
||
uniform sampler2D texture3;
|
||
uniform float weight3 : 1.0;
|
||
#endif
|
||
#ifdef TEXTURE4_ENABLED
|
||
uniform sampler2D texture4;
|
||
uniform float weight4 : 1.0;
|
||
#endif
|
||
#ifdef TEXTURE5_ENABLED
|
||
uniform sampler2D texture5;
|
||
uniform float weight5 : 1.0;
|
||
#endif
|
||
#ifdef TEXTURE6_ENABLED
|
||
uniform sampler2D texture6;
|
||
uniform float weight6 : 1.0;
|
||
#endif
|
||
varying vec2 v_Texcoord;
|
||
@import clay.util.rgbm
|
||
void main()
|
||
{
|
||
vec4 tex = vec4(0.0);
|
||
#ifdef TEXTURE1_ENABLED
|
||
tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1;
|
||
#endif
|
||
#ifdef TEXTURE2_ENABLED
|
||
tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2;
|
||
#endif
|
||
#ifdef TEXTURE3_ENABLED
|
||
tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3;
|
||
#endif
|
||
#ifdef TEXTURE4_ENABLED
|
||
tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4;
|
||
#endif
|
||
#ifdef TEXTURE5_ENABLED
|
||
tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5;
|
||
#endif
|
||
#ifdef TEXTURE6_ENABLED
|
||
tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6;
|
||
#endif
|
||
gl_FragColor = encodeHDR(tex);
|
||
}
|
||
@end`,wie=`@export clay.compositor.fxaa
|
||
uniform sampler2D texture;
|
||
uniform vec4 viewport : VIEWPORT;
|
||
varying vec2 v_Texcoord;
|
||
#define FXAA_REDUCE_MIN (1.0/128.0)
|
||
#define FXAA_REDUCE_MUL (1.0/8.0)
|
||
#define FXAA_SPAN_MAX 8.0
|
||
@import clay.util.rgbm
|
||
void main()
|
||
{
|
||
vec2 resolution = 1.0 / viewport.zw;
|
||
vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz;
|
||
vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz;
|
||
vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz;
|
||
vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz;
|
||
vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) );
|
||
vec3 rgbM = rgbaM.xyz;
|
||
float opacity = rgbaM.w;
|
||
vec3 luma = vec3( 0.299, 0.587, 0.114 );
|
||
float lumaNW = dot( rgbNW, luma );
|
||
float lumaNE = dot( rgbNE, luma );
|
||
float lumaSW = dot( rgbSW, luma );
|
||
float lumaSE = dot( rgbSE, luma );
|
||
float lumaM = dot( rgbM, luma );
|
||
float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) );
|
||
float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) );
|
||
vec2 dir;
|
||
dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));
|
||
dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));
|
||
float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN );
|
||
float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce );
|
||
dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX),
|
||
max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),
|
||
dir * rcpDirMin)) * resolution;
|
||
vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz;
|
||
rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz;
|
||
rgbA *= 0.5;
|
||
vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz;
|
||
rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz;
|
||
rgbB *= 0.25;
|
||
rgbB += rgbA * 0.5;
|
||
float lumaB = dot( rgbB, luma );
|
||
if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) )
|
||
{
|
||
gl_FragColor = vec4( rgbA, opacity );
|
||
}
|
||
else {
|
||
gl_FragColor = vec4( rgbB, opacity );
|
||
}
|
||
}
|
||
@end`;function Ryt(e){e.import(Dyt),e.import(hie),e.import(Pyt),e.import(vie),e.import(Lyt),e.import(pie),e.import(gie),e.import(mie),e.import(yie),e.import(_ie),e.import(Iyt),e.import(bie),e.import(wie)}Ryt(nt);var Oyt=/^#source\((.*?)\)/;function kyt(e,t){var r=new Syt;t=t||{};var n={textures:{},parameters:{}},a=function(s,l){for(var u=0;u<e.nodes.length;u++){var c=e.nodes[u],f=Nyt(c,n,t);f&&r.addNode(f)}};for(var i in e.parameters){var o=e.parameters[i];n.parameters[i]=g4(o)}return Vyt(e,n,t,function(s){n.textures=s,a()}),r}function Nyt(e,t,r){var n=e.type||"filter",a,i,o;if(n==="filter"){var s=e.shader.trim(),l=Oyt.exec(s);if(l?a=nt.source(l[1].trim()):s.charAt(0)==="#"&&(a=t.shaders[s.substr(1)]),a||(a=s),!a)return}if(e.inputs){i={};for(var u in e.inputs)typeof e.inputs[u]=="string"?i[u]=e.inputs[u]:i[u]={node:e.inputs[u].node,pin:e.inputs[u].pin}}if(e.outputs){o={};for(var u in e.outputs){var c=e.outputs[u];o[u]={},c.attachment!=null&&(o[u].attachment=c.attachment),c.keepLastFrame!=null&&(o[u].keepLastFrame=c.keepLastFrame),c.outputLastFrame!=null&&(o[u].outputLastFrame=c.outputLastFrame),c.parameters&&(o[u].parameters=g4(c.parameters))}}var f;if(n==="scene"?f=new Ayt({name:e.name,scene:r.scene,camera:r.camera,outputs:o}):n==="texture"?f=new Cyt({name:e.name,outputs:o}):f=new Myt({name:e.name,shader:a,inputs:i,outputs:o}),f){if(e.parameters)for(var u in e.parameters){var d=e.parameters[u];typeof d=="string"?(d=d.trim(),d.charAt(0)==="#"?d=t.textures[d.substr(1)]:f.on("beforerender",zyt(u,Sie(d)))):typeof d=="function"&&f.on("beforerender",d),f.setParameter(u,d)}if(e.defines&&f.pass)for(var u in e.defines){var d=e.defines[u];f.pass.material.define("fragment",u,d)}}return f}function Byt(e,t){return e}function Fyt(e,t){return t}function g4(e){var t={};if(!e)return t;["type","minFilter","magFilter","wrapS","wrapT","flipY","useMipmap"].forEach(function(n){var a=e[n];a!=null&&(typeof a=="string"&&(a=$t[a]),t[n]=a)});var r=e.scale||1;return["width","height"].forEach(function(n){if(e[n]!=null){var a=e[n];typeof a=="string"?(a=a.trim(),t[n]=Hyt(n,Sie(a),r)):t[n]=a}}),t.width||(t.width=Byt),t.height||(t.height=Fyt),e.useMipmap!=null&&(t.useMipmap=e.useMipmap),t}function Vyt(e,t,r,n){if(!e.textures){n({});return}var a={},i=0,o=!1,s=r.textureRootPath;za.each(e.textures,function(l,u){var c,f=l.path,d=g4(l.parameters);if(Array.isArray(f)&&f.length===6)s&&(f=f.map(function(h){return za.relative2absolute(h,s)})),c=new I_(d);else if(typeof f=="string")s&&(f=za.relative2absolute(f,s)),c=new _r(d);else return;c.load(f),i++,c.once("success",function(){a[u]=c,i--,i===0&&(n(a),o=!0)})}),i===0&&!o&&n(a)}function zyt(e,t){return function(r){var n=r.getDevicePixelRatio(),a=r.getWidth(),i=r.getHeight(),o=t(a,i,n);this.setParameter(e,o)}}function Hyt(e,t,r){return r=r||1,function(n){var a=n.getDevicePixelRatio(),i=n.getWidth()*r,o=n.getHeight()*r;return t(i,o,a)}}function Sie(e){var t=/^expr\((.*)\)$/.exec(e);if(t)try{var r=new Function("width","height","dpr","return "+t[1]);return r(1,1),r}catch{throw new Error("Invalid expression.")}}function Tg(e,t){for(var r=0,n=1/t,a=e;a>0;)r=r+n*(a%t),a=Math.floor(a/t),n=n/t;return r}const Gyt=`@export ecgl.ssao.estimate
|
||
|
||
uniform sampler2D depthTex;
|
||
|
||
uniform sampler2D normalTex;
|
||
|
||
uniform sampler2D noiseTex;
|
||
|
||
uniform vec2 depthTexSize;
|
||
|
||
uniform vec2 noiseTexSize;
|
||
|
||
uniform mat4 projection;
|
||
|
||
uniform mat4 projectionInv;
|
||
|
||
uniform mat4 viewInverseTranspose;
|
||
|
||
uniform vec3 kernel[KERNEL_SIZE];
|
||
|
||
uniform float radius : 1;
|
||
|
||
uniform float power : 1;
|
||
|
||
uniform float bias: 1e-2;
|
||
|
||
uniform float intensity: 1.0;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
float ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) {
|
||
float occlusion = 0.0;
|
||
|
||
for (int i = 0; i < KERNEL_SIZE; i++) {
|
||
vec3 samplePos = kernel[i];
|
||
#ifdef NORMALTEX_ENABLED
|
||
samplePos = kernelBasis * samplePos;
|
||
#endif
|
||
samplePos = samplePos * radius + originPos;
|
||
|
||
vec4 texCoord = projection * vec4(samplePos, 1.0);
|
||
texCoord.xy /= texCoord.w;
|
||
|
||
vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5);
|
||
|
||
float sampleDepth = depthTexel.r * 2.0 - 1.0;
|
||
if (projection[3][3] == 0.0) {
|
||
sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]);
|
||
}
|
||
else {
|
||
sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2];
|
||
}
|
||
|
||
float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth));
|
||
occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias);
|
||
}
|
||
#ifdef NORMALTEX_ENABLED
|
||
occlusion = 1.0 - occlusion / float(KERNEL_SIZE);
|
||
#else
|
||
occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0);
|
||
#endif
|
||
return pow(occlusion, power);
|
||
}
|
||
|
||
void main()
|
||
{
|
||
|
||
vec4 depthTexel = texture2D(depthTex, v_Texcoord);
|
||
|
||
#ifdef NORMALTEX_ENABLED
|
||
vec4 tex = texture2D(normalTex, v_Texcoord);
|
||
if (dot(tex.rgb, tex.rgb) == 0.0) {
|
||
gl_FragColor = vec4(1.0);
|
||
return;
|
||
}
|
||
vec3 N = tex.rgb * 2.0 - 1.0;
|
||
N = (viewInverseTranspose * vec4(N, 0.0)).xyz;
|
||
|
||
vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord;
|
||
vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0;
|
||
vec3 T = normalize(rvec - N * dot(rvec, N));
|
||
vec3 BT = normalize(cross(N, T));
|
||
mat3 kernelBasis = mat3(T, BT, N);
|
||
#else
|
||
if (depthTexel.r > 0.99999) {
|
||
gl_FragColor = vec4(1.0);
|
||
return;
|
||
}
|
||
mat3 kernelBasis;
|
||
#endif
|
||
|
||
float z = depthTexel.r * 2.0 - 1.0;
|
||
|
||
vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);
|
||
vec4 p4 = projectionInv * projectedPos;
|
||
|
||
vec3 position = p4.xyz / p4.w;
|
||
|
||
float ao = ssaoEstimator(position, kernelBasis);
|
||
ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0);
|
||
gl_FragColor = vec4(vec3(ao), 1.0);
|
||
}
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.ssao.blur
|
||
#define SHADER_NAME SSAO_BLUR
|
||
|
||
uniform sampler2D ssaoTexture;
|
||
|
||
#ifdef NORMALTEX_ENABLED
|
||
uniform sampler2D normalTex;
|
||
#endif
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
uniform vec2 textureSize;
|
||
uniform float blurSize : 1.0;
|
||
|
||
uniform int direction: 0.0;
|
||
|
||
#ifdef DEPTHTEX_ENABLED
|
||
uniform sampler2D depthTex;
|
||
uniform mat4 projection;
|
||
uniform float depthRange : 0.5;
|
||
|
||
float getLinearDepth(vec2 coord)
|
||
{
|
||
float depth = texture2D(depthTex, coord).r * 2.0 - 1.0;
|
||
return projection[3][2] / (depth * projection[2][3] - projection[2][2]);
|
||
}
|
||
#endif
|
||
|
||
void main()
|
||
{
|
||
float kernel[5];
|
||
kernel[0] = 0.122581;
|
||
kernel[1] = 0.233062;
|
||
kernel[2] = 0.288713;
|
||
kernel[3] = 0.233062;
|
||
kernel[4] = 0.122581;
|
||
|
||
vec2 off = vec2(0.0);
|
||
if (direction == 0) {
|
||
off[0] = blurSize / textureSize.x;
|
||
}
|
||
else {
|
||
off[1] = blurSize / textureSize.y;
|
||
}
|
||
|
||
vec2 coord = v_Texcoord;
|
||
|
||
float sum = 0.0;
|
||
float weightAll = 0.0;
|
||
|
||
#ifdef NORMALTEX_ENABLED
|
||
vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0;
|
||
#endif
|
||
#if defined(DEPTHTEX_ENABLED)
|
||
float centerDepth = getLinearDepth(v_Texcoord);
|
||
#endif
|
||
|
||
for (int i = 0; i < 5; i++) {
|
||
vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0));
|
||
|
||
float w = kernel[i];
|
||
#ifdef NORMALTEX_ENABLED
|
||
vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0;
|
||
w *= clamp(dot(normal, centerNormal), 0.0, 1.0);
|
||
#endif
|
||
#ifdef DEPTHTEX_ENABLED
|
||
float d = getLinearDepth(coord);
|
||
w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0));
|
||
#endif
|
||
|
||
weightAll += w;
|
||
sum += texture2D(ssaoTexture, coord).r * w;
|
||
}
|
||
|
||
gl_FragColor = vec4(vec3(sum / weightAll), 1.0);
|
||
}
|
||
|
||
@end
|
||
`;nt.import(Gyt);function xie(e){for(var t=new Uint8Array(e*e*4),r=0,n=new mt,a=0;a<e;a++)for(var i=0;i<e;i++)n.set(Math.random()*2-1,Math.random()*2-1,0).normalize(),t[r++]=(n.x*.5+.5)*255,t[r++]=(n.y*.5+.5)*255,t[r++]=0,t[r++]=255;return t}function aW(e){return new _r({pixels:xie(e),wrapS:$t.REPEAT,wrapT:$t.REPEAT,width:e,height:e})}function Uyt(e,t,r){var n=new Float32Array(e*3);t=t||0;for(var a=0;a<e;a++){var i=Tg(a+t,2)*(r?1:2)*Math.PI,o=Tg(a+t,3)*Math.PI,s=Math.random(),l=Math.cos(i)*Math.sin(o)*s,u=Math.cos(o)*s,c=Math.sin(i)*Math.sin(o)*s;n[a*3]=l,n[a*3+1]=u,n[a*3+2]=c}return n}function lc(e){e=e||{},this._ssaoPass=new sa({fragment:nt.source("ecgl.ssao.estimate")}),this._blurPass=new sa({fragment:nt.source("ecgl.ssao.blur")}),this._framebuffer=new Ua({depthBuffer:!1}),this._ssaoTexture=new _r,this._blurTexture=new _r,this._blurTexture2=new _r,this._depthTex=e.depthTexture,this._normalTex=e.normalTexture,this.setNoiseSize(4),this.setKernelSize(e.kernelSize||12),e.radius!=null&&this.setParameter("radius",e.radius),e.power!=null&&this.setParameter("power",e.power),this._normalTex||(this._ssaoPass.material.disableTexture("normalTex"),this._blurPass.material.disableTexture("normalTex")),this._depthTex||this._blurPass.material.disableTexture("depthTex"),this._blurPass.material.setUniform("normalTex",this._normalTex),this._blurPass.material.setUniform("depthTex",this._depthTex)}lc.prototype.setDepthTexture=function(e){this._depthTex=e};lc.prototype.setNormalTexture=function(e){this._normalTex=e,this._ssaoPass.material[e?"enableTexture":"disableTexture"]("normalTex"),this.setKernelSize(this._kernelSize)};lc.prototype.update=function(e,t,r){var n=e.getWidth(),a=e.getHeight(),i=this._ssaoPass,o=this._blurPass;i.setUniform("kernel",this._kernels[r%this._kernels.length]),i.setUniform("depthTex",this._depthTex),this._normalTex!=null&&i.setUniform("normalTex",this._normalTex),i.setUniform("depthTexSize",[this._depthTex.width,this._depthTex.height]);var s=new Bt;Bt.transpose(s,t.worldTransform),i.setUniform("projection",t.projectionMatrix.array),i.setUniform("projectionInv",t.invProjectionMatrix.array),i.setUniform("viewInverseTranspose",s.array);var l=this._ssaoTexture,u=this._blurTexture,c=this._blurTexture2;l.width=n/2,l.height=a/2,u.width=n,u.height=a,c.width=n,c.height=a,this._framebuffer.attach(l),this._framebuffer.bind(e),e.gl.clearColor(1,1,1,1),e.gl.clear(e.gl.COLOR_BUFFER_BIT),i.render(e),o.setUniform("textureSize",[n/2,a/2]),o.setUniform("projection",t.projectionMatrix.array),this._framebuffer.attach(u),o.setUniform("direction",0),o.setUniform("ssaoTexture",l),o.render(e),this._framebuffer.attach(c),o.setUniform("textureSize",[n,a]),o.setUniform("direction",1),o.setUniform("ssaoTexture",u),o.render(e),this._framebuffer.unbind(e);var f=e.clearColor;e.gl.clearColor(f[0],f[1],f[2],f[3])};lc.prototype.getTargetTexture=function(){return this._blurTexture2};lc.prototype.setParameter=function(e,t){e==="noiseTexSize"?this.setNoiseSize(t):e==="kernelSize"?this.setKernelSize(t):e==="intensity"?this._ssaoPass.material.set("intensity",t):this._ssaoPass.setUniform(e,t)};lc.prototype.setKernelSize=function(e){this._kernelSize=e,this._ssaoPass.material.define("fragment","KERNEL_SIZE",e),this._kernels=this._kernels||[];for(var t=0;t<30;t++)this._kernels[t]=Uyt(e,t*e,!!this._normalTex)};lc.prototype.setNoiseSize=function(e){var t=this._ssaoPass.getUniform("noiseTex");t?(t.data=xie(e),t.width=t.height=e,t.dirty()):(t=aW(e),this._ssaoPass.setUniform("noiseTex",aW(e))),this._ssaoPass.setUniform("noiseTexSize",[e,e])};lc.prototype.dispose=function(e){this._blurTexture.dispose(e),this._ssaoTexture.dispose(e),this._blurTexture2.dispose(e)};const $yt=`@export ecgl.ssr.main
|
||
|
||
#define SHADER_NAME SSR
|
||
#define MAX_ITERATION 20;
|
||
#define SAMPLE_PER_FRAME 5;
|
||
#define TOTAL_SAMPLES 128;
|
||
|
||
uniform sampler2D sourceTexture;
|
||
uniform sampler2D gBufferTexture1;
|
||
uniform sampler2D gBufferTexture2;
|
||
uniform sampler2D gBufferTexture3;
|
||
uniform samplerCube specularCubemap;
|
||
uniform float specularIntensity: 1;
|
||
|
||
uniform mat4 projection;
|
||
uniform mat4 projectionInv;
|
||
uniform mat4 toViewSpace;
|
||
uniform mat4 toWorldSpace;
|
||
|
||
uniform float maxRayDistance: 200;
|
||
|
||
uniform float pixelStride: 16;
|
||
uniform float pixelStrideZCutoff: 50;
|
||
uniform float screenEdgeFadeStart: 0.9;
|
||
uniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8;
|
||
uniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 1;
|
||
|
||
uniform float nearZ;
|
||
uniform vec2 viewportSize : VIEWPORT_SIZE;
|
||
|
||
uniform float jitterOffset: 0;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
#ifdef DEPTH_DECODE
|
||
@import clay.util.decode_float
|
||
#endif
|
||
|
||
#ifdef PHYSICALLY_CORRECT
|
||
uniform sampler2D normalDistribution;
|
||
uniform float sampleOffset: 0;
|
||
uniform vec2 normalDistributionSize;
|
||
|
||
vec3 transformNormal(vec3 H, vec3 N) {
|
||
vec3 upVector = N.y > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);
|
||
vec3 tangentX = normalize(cross(N, upVector));
|
||
vec3 tangentZ = cross(N, tangentX);
|
||
return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);
|
||
}
|
||
vec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) {
|
||
float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES));
|
||
vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb;
|
||
return transformNormal(H, N);
|
||
}
|
||
float G_Smith(float g, float ndv, float ndl) {
|
||
float roughness = 1.0 - g;
|
||
float k = roughness * roughness / 2.0;
|
||
float G1V = ndv / (ndv * (1.0 - k) + k);
|
||
float G1L = ndl / (ndl * (1.0 - k) + k);
|
||
return G1L * G1V;
|
||
}
|
||
vec3 F_Schlick(float ndv, vec3 spec) {
|
||
return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);
|
||
}
|
||
#endif
|
||
|
||
float fetchDepth(sampler2D depthTexture, vec2 uv)
|
||
{
|
||
vec4 depthTexel = texture2D(depthTexture, uv);
|
||
return depthTexel.r * 2.0 - 1.0;
|
||
}
|
||
|
||
float linearDepth(float depth)
|
||
{
|
||
if (projection[3][3] == 0.0) {
|
||
return projection[3][2] / (depth * projection[2][3] - projection[2][2]);
|
||
}
|
||
else {
|
||
return (depth - projection[3][2]) / projection[2][2];
|
||
}
|
||
}
|
||
|
||
bool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel)
|
||
{
|
||
if (rayZFar > rayZNear)
|
||
{
|
||
float t = rayZFar; rayZFar = rayZNear; rayZNear = t;
|
||
}
|
||
float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel));
|
||
return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold;
|
||
}
|
||
|
||
|
||
bool traceScreenSpaceRay(
|
||
vec3 rayOrigin, vec3 rayDir, float jitter,
|
||
out vec2 hitPixel, out vec3 hitPoint, out float iterationCount
|
||
)
|
||
{
|
||
float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ)
|
||
? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance;
|
||
|
||
vec3 rayEnd = rayOrigin + rayDir * rayLength;
|
||
|
||
vec4 H0 = projection * vec4(rayOrigin, 1.0);
|
||
vec4 H1 = projection * vec4(rayEnd, 1.0);
|
||
|
||
float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w;
|
||
|
||
vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1;
|
||
|
||
vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize;
|
||
vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize;
|
||
|
||
P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0;
|
||
vec2 delta = P1 - P0;
|
||
|
||
bool permute = false;
|
||
if (abs(delta.x) < abs(delta.y)) {
|
||
permute = true;
|
||
delta = delta.yx;
|
||
P0 = P0.yx;
|
||
P1 = P1.yx;
|
||
}
|
||
float stepDir = sign(delta.x);
|
||
float invdx = stepDir / delta.x;
|
||
|
||
vec3 dQ = (Q1 - Q0) * invdx;
|
||
float dk = (k1 - k0) * invdx;
|
||
|
||
vec2 dP = vec2(stepDir, delta.y * invdx);
|
||
|
||
float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff);
|
||
float pixStride = 1.0 + strideScaler * pixelStride;
|
||
|
||
dP *= pixStride; dQ *= pixStride; dk *= pixStride;
|
||
|
||
vec4 pqk = vec4(P0, Q0.z, k0);
|
||
vec4 dPQK = vec4(dP, dQ.z, dk);
|
||
|
||
pqk += dPQK * jitter;
|
||
float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);
|
||
float rayZNear;
|
||
|
||
bool intersect = false;
|
||
|
||
vec2 texelSize = 1.0 / viewportSize;
|
||
|
||
iterationCount = 0.0;
|
||
|
||
for (int i = 0; i < MAX_ITERATION; i++)
|
||
{
|
||
pqk += dPQK;
|
||
|
||
rayZNear = rayZFar;
|
||
rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);
|
||
|
||
hitPixel = permute ? pqk.yx : pqk.xy;
|
||
hitPixel *= texelSize;
|
||
|
||
intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel);
|
||
|
||
iterationCount += 1.0;
|
||
|
||
dPQK *= 1.2;
|
||
|
||
if (intersect) {
|
||
break;
|
||
}
|
||
}
|
||
|
||
Q0.xy += dQ.xy * iterationCount;
|
||
Q0.z = pqk.z;
|
||
hitPoint = Q0 / pqk.w;
|
||
|
||
return intersect;
|
||
}
|
||
|
||
float calculateAlpha(
|
||
float iterationCount, float reflectivity,
|
||
vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir
|
||
)
|
||
{
|
||
float alpha = clamp(reflectivity, 0.0, 1.0);
|
||
alpha *= 1.0 - (iterationCount / float(MAX_ITERATION));
|
||
vec2 hitPixelNDC = hitPixel * 2.0 - 1.0;
|
||
float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y)));
|
||
alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart);
|
||
|
||
float _eyeFadeStart = eyeFadeStart;
|
||
float _eyeFadeEnd = eyeFadeEnd;
|
||
if (_eyeFadeStart > _eyeFadeEnd) {
|
||
float tmp = _eyeFadeEnd;
|
||
_eyeFadeEnd = _eyeFadeStart;
|
||
_eyeFadeStart = tmp;
|
||
}
|
||
|
||
float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd);
|
||
alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart);
|
||
|
||
alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0);
|
||
|
||
return alpha;
|
||
}
|
||
|
||
@import clay.util.rand
|
||
|
||
@import clay.util.rgbm
|
||
|
||
void main()
|
||
{
|
||
vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord);
|
||
|
||
if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) {
|
||
discard;
|
||
}
|
||
|
||
float g = normalAndGloss.a;
|
||
#if !defined(PHYSICALLY_CORRECT)
|
||
if (g <= minGlossiness) {
|
||
discard;
|
||
}
|
||
#endif
|
||
|
||
float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness);
|
||
|
||
vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0);
|
||
N = normalize((toViewSpace * vec4(N, 0.0)).xyz);
|
||
|
||
vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0);
|
||
vec4 pos = projectionInv * projectedPos;
|
||
vec3 rayOrigin = pos.xyz / pos.w;
|
||
vec3 V = -normalize(rayOrigin);
|
||
|
||
float ndv = clamp(dot(N, V), 0.0, 1.0);
|
||
float iterationCount;
|
||
float jitter = rand(fract(v_Texcoord + jitterOffset));
|
||
|
||
#ifdef PHYSICALLY_CORRECT
|
||
vec4 color = vec4(vec3(0.0), 1.0);
|
||
vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord);
|
||
vec3 albedo = albedoMetalness.rgb;
|
||
float m = albedoMetalness.a;
|
||
vec3 diffuseColor = albedo * (1.0 - m);
|
||
vec3 spec = mix(vec3(0.04), albedo, m);
|
||
|
||
float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES);
|
||
|
||
for (int i = 0; i < SAMPLE_PER_FRAME; i++) {
|
||
vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N);
|
||
vec3 rayDir = normalize(reflect(-V, H));
|
||
#else
|
||
vec3 rayDir = normalize(reflect(-V, N));
|
||
#endif
|
||
vec2 hitPixel;
|
||
vec3 hitPoint;
|
||
|
||
bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount);
|
||
|
||
float dist = distance(rayOrigin, hitPoint);
|
||
|
||
vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0;
|
||
hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz);
|
||
#ifdef PHYSICALLY_CORRECT
|
||
float ndl = clamp(dot(N, rayDir), 0.0, 1.0);
|
||
float vdh = clamp(dot(V, H), 0.0, 1.0);
|
||
float ndh = clamp(dot(N, H), 0.0, 1.0);
|
||
vec3 litTexel = vec3(0.0);
|
||
if (dot(hitNormal, rayDir) < 0.0 && intersect) {
|
||
litTexel = texture2D(sourceTexture, hitPixel).rgb;
|
||
litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0);
|
||
|
||
}
|
||
else {
|
||
#ifdef SPECULARCUBEMAP_ENABLED
|
||
vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;
|
||
litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity;
|
||
#endif
|
||
}
|
||
color.rgb += ndl * litTexel * (
|
||
F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001)
|
||
);
|
||
}
|
||
color.rgb /= float(SAMPLE_PER_FRAME);
|
||
#else
|
||
#if !defined(SPECULARCUBEMAP_ENABLED)
|
||
if (dot(hitNormal, rayDir) >= 0.0) {
|
||
discard;
|
||
}
|
||
if (!intersect) {
|
||
discard;
|
||
}
|
||
#endif
|
||
float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0);
|
||
vec4 color = texture2D(sourceTexture, hitPixel);
|
||
color.rgb *= alpha;
|
||
|
||
#ifdef SPECULARCUBEMAP_ENABLED
|
||
vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;
|
||
alpha = alpha * (intersect ? 1.0 : 0.0);
|
||
float bias = (1.0 -g) * 5.0;
|
||
color.rgb += (1.0 - alpha)
|
||
* RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb
|
||
* specularIntensity;
|
||
#endif
|
||
|
||
#endif
|
||
|
||
gl_FragColor = encodeHDR(color);
|
||
}
|
||
@end
|
||
|
||
@export ecgl.ssr.blur
|
||
|
||
uniform sampler2D texture;
|
||
uniform sampler2D gBufferTexture1;
|
||
uniform sampler2D gBufferTexture2;
|
||
uniform mat4 projection;
|
||
uniform float depthRange : 0.05;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
uniform vec2 textureSize;
|
||
uniform float blurSize : 1.0;
|
||
|
||
#ifdef BLEND
|
||
#ifdef SSAOTEX_ENABLED
|
||
uniform sampler2D ssaoTex;
|
||
#endif
|
||
uniform sampler2D sourceTexture;
|
||
#endif
|
||
|
||
float getLinearDepth(vec2 coord)
|
||
{
|
||
float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0;
|
||
return projection[3][2] / (depth * projection[2][3] - projection[2][2]);
|
||
}
|
||
|
||
@import clay.util.rgbm
|
||
|
||
|
||
void main()
|
||
{
|
||
@import clay.compositor.kernel.gaussian_9
|
||
|
||
vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord);
|
||
float g = centerNTexel.a;
|
||
float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize;
|
||
#ifdef VERTICAL
|
||
vec2 off = vec2(0.0, maxBlurSize / textureSize.y);
|
||
#else
|
||
vec2 off = vec2(maxBlurSize / textureSize.x, 0.0);
|
||
#endif
|
||
|
||
vec2 coord = v_Texcoord;
|
||
|
||
vec4 sum = vec4(0.0);
|
||
float weightAll = 0.0;
|
||
|
||
vec3 cN = centerNTexel.rgb * 2.0 - 1.0;
|
||
float cD = getLinearDepth(v_Texcoord);
|
||
for (int i = 0; i < 9; i++) {
|
||
vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0));
|
||
float w = gaussianKernel[i]
|
||
* clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0);
|
||
float d = getLinearDepth(coord);
|
||
w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0));
|
||
|
||
weightAll += w;
|
||
sum += decodeHDR(texture2D(texture, coord)) * w;
|
||
}
|
||
|
||
#ifdef BLEND
|
||
float aoFactor = 1.0;
|
||
#ifdef SSAOTEX_ENABLED
|
||
aoFactor = texture2D(ssaoTex, v_Texcoord).r;
|
||
#endif
|
||
gl_FragColor = encodeHDR(
|
||
sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord))
|
||
);
|
||
#else
|
||
gl_FragColor = encodeHDR(sum / weightAll);
|
||
#endif
|
||
}
|
||
|
||
@end`;nt.import($yt);function uc(e){e=e||{},this._ssrPass=new sa({fragment:nt.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new sa({fragment:nt.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new sa({fragment:nt.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new sa({fragment:nt.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",e.normalTexture),this._ssrPass.setUniform("gBufferTexture2",e.depthTexture),this._blurPass1.setUniform("gBufferTexture1",e.normalTexture),this._blurPass1.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.setUniform("gBufferTexture1",e.normalTexture),this._blurPass2.setUniform("gBufferTexture2",e.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new _r({type:$t.HALF_FLOAT}),this._texture2=new _r({type:$t.HALF_FLOAT}),this._texture3=new _r({type:$t.HALF_FLOAT}),this._prevTexture=new _r({type:$t.HALF_FLOAT}),this._currentTexture=new _r({type:$t.HALF_FLOAT}),this._frameBuffer=new Ua({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}uc.prototype.setAmbientCubemap=function(e,t){this._ssrPass.material.set("specularCubemap",e),this._ssrPass.material.set("specularIntensity",t);var r=e&&t;this._ssrPass.material[r?"enableTexture":"disableTexture"]("specularCubemap")};uc.prototype.update=function(e,t,r,n){var a=e.getWidth(),i=e.getHeight(),o=this._ssrTexture,s=this._texture2,l=this._texture3;o.width=this._prevTexture.width=this._currentTexture.width=a/this._downScale,o.height=this._prevTexture.height=this._currentTexture.height=i/this._downScale,s.width=l.width=a,s.height=l.height=i;var u=this._frameBuffer,c=this._ssrPass,f=this._blurPass1,d=this._blurPass2,h=this._blendPass,v=new Bt,p=new Bt;Bt.transpose(v,t.worldTransform),Bt.transpose(p,t.viewMatrix),c.setUniform("sourceTexture",r),c.setUniform("projection",t.projectionMatrix.array),c.setUniform("projectionInv",t.invProjectionMatrix.array),c.setUniform("toViewSpace",v.array),c.setUniform("toWorldSpace",p.array),c.setUniform("nearZ",t.near);var g=n/this._totalSamples*this._samplePerFrame;if(c.setUniform("jitterOffset",g),c.setUniform("sampleOffset",n*this._samplePerFrame),f.setUniform("textureSize",[o.width,o.height]),d.setUniform("textureSize",[a,i]),d.setUniform("sourceTexture",r),f.setUniform("projection",t.projectionMatrix.array),d.setUniform("projection",t.projectionMatrix.array),u.attach(o),u.bind(e),c.render(e),this._physicallyCorrect&&(u.attach(this._currentTexture),h.setUniform("texture1",this._prevTexture),h.setUniform("texture2",o),h.material.set({weight1:n>=1?.95:0,weight2:n>=1?.05:1}),h.render(e)),u.attach(s),f.setUniform("texture",this._physicallyCorrect?this._currentTexture:o),f.render(e),u.attach(l),d.setUniform("texture",s),d.render(e),u.unbind(e),this._physicallyCorrect){var m=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=m}};uc.prototype.getTargetTexture=function(){return this._texture3};uc.prototype.setParameter=function(e,t){e==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",t):this._ssrPass.setUniform(e,t)};uc.prototype.setPhysicallyCorrect=function(e){e?(this._normalDistribution||(this._normalDistribution=GS.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=e};uc.prototype.setSSAOTexture=function(e){var t=this._blurPass2;e?(t.material.enableTexture("ssaoTex"),t.material.set("ssaoTex",e)):t.material.disableTexture("ssaoTex")};uc.prototype.isFinished=function(e){return this._physicallyCorrect?e>this._totalSamples/this._samplePerFrame:!0};uc.prototype.dispose=function(e){this._ssrTexture.dispose(e),this._texture2.dispose(e),this._texture3.dispose(e),this._prevTexture.dispose(e),this._currentTexture.dispose(e),this._frameBuffer.dispose(e)};const iW=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925],Wyt=`@export ecgl.normal.vertex
|
||
|
||
@import ecgl.common.transformUniforms
|
||
|
||
@import ecgl.common.uv.header
|
||
|
||
@import ecgl.common.attributes
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
@import ecgl.common.normalMap.vertexHeader
|
||
|
||
@import ecgl.common.vertexAnimation.header
|
||
|
||
void main()
|
||
{
|
||
|
||
@import ecgl.common.vertexAnimation.main
|
||
|
||
@import ecgl.common.uv.main
|
||
|
||
v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);
|
||
v_WorldPosition = (world * vec4(pos, 1.0)).xyz;
|
||
|
||
@import ecgl.common.normalMap.vertexMain
|
||
|
||
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
||
|
||
}
|
||
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.normal.fragment
|
||
|
||
#define ROUGHNESS_CHANEL 0
|
||
|
||
uniform bool useBumpMap;
|
||
uniform bool useRoughnessMap;
|
||
uniform bool doubleSide;
|
||
uniform float roughness;
|
||
|
||
@import ecgl.common.uv.fragmentHeader
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
uniform mat4 viewInverse : VIEWINVERSE;
|
||
|
||
@import ecgl.common.normalMap.fragmentHeader
|
||
@import ecgl.common.bumpMap.header
|
||
|
||
uniform sampler2D roughnessMap;
|
||
|
||
void main()
|
||
{
|
||
vec3 N = v_Normal;
|
||
|
||
bool flipNormal = false;
|
||
if (doubleSide) {
|
||
vec3 eyePos = viewInverse[3].xyz;
|
||
vec3 V = normalize(eyePos - v_WorldPosition);
|
||
|
||
if (dot(N, V) < 0.0) {
|
||
flipNormal = true;
|
||
}
|
||
}
|
||
|
||
@import ecgl.common.normalMap.fragmentMain
|
||
|
||
if (useBumpMap) {
|
||
N = bumpNormal(v_WorldPosition, v_Normal, N);
|
||
}
|
||
|
||
float g = 1.0 - roughness;
|
||
|
||
if (useRoughnessMap) {
|
||
float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];
|
||
g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);
|
||
}
|
||
|
||
if (flipNormal) {
|
||
N = -N;
|
||
}
|
||
|
||
gl_FragColor.rgb = (N.xyz + 1.0) * 0.5;
|
||
gl_FragColor.a = g;
|
||
}
|
||
@end`;nt.import(Wyt);function AD(e,t,r,n,a){var i=e.gl;t.setUniform(i,"1i",r,a),i.activeTexture(i.TEXTURE0+a),n.isRenderable()?n.bind(e):n.unbind(e)}function Yyt(e,t,r,n,a){var i,o,s,l,u=e.gl;return function(c,f,d){if(!(l&&l.material===c.material)){var h=c.material,v=c.__program,p=h.get("roughness");p==null&&(p=1);var g=h.get("normalMap")||t,m=h.get("roughnessMap"),y=h.get("bumpMap"),_=h.get("uvRepeat"),w=h.get("uvOffset"),x=h.get("detailUvRepeat"),S=h.get("detailUvOffset"),T=!!y&&h.isTextureEnabled("bumpMap"),A=!!m&&h.isTextureEnabled("roughnessMap"),C=h.isDefined("fragment","DOUBLE_SIDED");y=y||r,m=m||n,d!==f?(f.set("normalMap",g),f.set("bumpMap",y),f.set("roughnessMap",m),f.set("useBumpMap",T),f.set("useRoughnessMap",A),f.set("doubleSide",C),_!=null&&f.set("uvRepeat",_),w!=null&&f.set("uvOffset",w),x!=null&&f.set("detailUvRepeat",x),S!=null&&f.set("detailUvOffset",S),f.set("roughness",p)):(v.setUniform(u,"1f","roughness",p),i!==g&&AD(e,v,"normalMap",g,0),o!==y&&y&&AD(e,v,"bumpMap",y,1),s!==m&&m&&AD(e,v,"roughnessMap",m,2),_!=null&&v.setUniform(u,"2f","uvRepeat",_),w!=null&&v.setUniform(u,"2f","uvOffset",w),x!=null&&v.setUniform(u,"2f","detailUvRepeat",x),S!=null&&v.setUniform(u,"2f","detailUvOffset",S),v.setUniform(u,"1i","useBumpMap",+T),v.setUniform(u,"1i","useRoughnessMap",+A),v.setUniform(u,"1i","doubleSide",+C)),i=g,o=y,s=m,l=c}}}function fm(e){this._depthTex=new _r({format:$t.DEPTH_COMPONENT,type:$t.UNSIGNED_INT}),this._normalTex=new _r({type:$t.HALF_FLOAT}),this._framebuffer=new Ua,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,Ua.DEPTH_ATTACHMENT),this._normalMaterial=new as({shader:new nt(nt.source("ecgl.normal.vertex"),nt.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=Lh.createBlank("#000"),this._defaultBumpMap=Lh.createBlank("#000"),this._defaultRoughessMap=Lh.createBlank("#000"),this._debugPass=new sa({fragment:nt.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}fm.prototype.getDepthTexture=function(){return this._depthTex};fm.prototype.getNormalTexture=function(){return this._normalTex};fm.prototype.update=function(e,t,r){var n=e.getWidth(),a=e.getHeight(),i=this._depthTex,o=this._normalTex,s=this._normalMaterial;i.width=n,i.height=a,o.width=n,o.height=a;var l=t.getRenderList(r).opaque;this._framebuffer.bind(e),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT|e.gl.DEPTH_BUFFER_BIT),e.gl.disable(e.gl.BLEND),e.renderPass(l,r,{getMaterial:function(){return s},ifRender:function(u){return u.renderNormal},beforeRender:Yyt(e,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:e.opaqueSortCompare}),this._framebuffer.unbind(e)};fm.prototype.renderDebug=function(e){this._debugPass.render(e)};fm.prototype.dispose=function(e){this._depthTex.dispose(e),this._normalTex.dispose(e)};function z1(e){e=e||{},this._edgePass=new sa({fragment:nt.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",e.normalTexture),this._edgePass.setUniform("depthTexture",e.depthTexture),this._targetTexture=new _r({type:$t.HALF_FLOAT}),this._frameBuffer=new Ua,this._frameBuffer.attach(this._targetTexture)}z1.prototype.update=function(e,t,r,n){var a=e.getWidth(),i=e.getHeight(),o=this._targetTexture;o.width=a,o.height=i;var s=this._frameBuffer;s.bind(e),this._edgePass.setUniform("projectionInv",t.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[a,i]),this._edgePass.setUniform("texture",r),this._edgePass.render(e),s.unbind(e)};z1.prototype.getTargetTexture=function(){return this._targetTexture};z1.prototype.setParameter=function(e,t){this._edgePass.setUniform(e,t)};z1.prototype.dispose=function(e){this._targetTexture.dispose(e),this._frameBuffer.dispose(e)};const jyt={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]},Kyt=`@export ecgl.dof.coc
|
||
|
||
uniform sampler2D depth;
|
||
|
||
uniform float zNear: 0.1;
|
||
uniform float zFar: 2000;
|
||
|
||
uniform float focalDistance: 3;
|
||
uniform float focalRange: 1;
|
||
uniform float focalLength: 30;
|
||
uniform float fstop: 2.8;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
@import clay.util.encode_float
|
||
|
||
void main()
|
||
{
|
||
float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0;
|
||
|
||
float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear));
|
||
|
||
float aperture = focalLength / fstop;
|
||
|
||
float coc;
|
||
|
||
float uppper = focalDistance + focalRange;
|
||
float lower = focalDistance - focalRange;
|
||
if (dist <= uppper && dist >= lower) {
|
||
coc = 0.5;
|
||
}
|
||
else {
|
||
float focalAdjusted = dist > uppper ? uppper : lower;
|
||
|
||
coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength)));
|
||
coc = clamp(coc, 0.0, 2.0) / 2.00001;
|
||
|
||
if (dist < lower) {
|
||
coc = -coc;
|
||
}
|
||
coc = coc * 0.5 + 0.5;
|
||
}
|
||
|
||
gl_FragColor = encodeFloat(coc);
|
||
}
|
||
@end
|
||
|
||
|
||
@export ecgl.dof.composite
|
||
|
||
#define DEBUG 0
|
||
|
||
uniform sampler2D original;
|
||
uniform sampler2D blurred;
|
||
uniform sampler2D nearfield;
|
||
uniform sampler2D coc;
|
||
uniform sampler2D nearcoc;
|
||
varying vec2 v_Texcoord;
|
||
|
||
@import clay.util.rgbm
|
||
@import clay.util.float
|
||
|
||
void main()
|
||
{
|
||
vec4 blurredColor = texture2D(blurred, v_Texcoord);
|
||
vec4 originalColor = texture2D(original, v_Texcoord);
|
||
|
||
float fCoc = decodeFloat(texture2D(coc, v_Texcoord));
|
||
|
||
fCoc = abs(fCoc * 2.0 - 1.0);
|
||
|
||
float weight = smoothstep(0.0, 1.0, fCoc);
|
||
|
||
#ifdef NEARFIELD_ENABLED
|
||
vec4 nearfieldColor = texture2D(nearfield, v_Texcoord);
|
||
float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord));
|
||
fNearCoc = abs(fNearCoc * 2.0 - 1.0);
|
||
|
||
gl_FragColor = encodeHDR(
|
||
mix(
|
||
nearfieldColor, mix(originalColor, blurredColor, weight),
|
||
pow(1.0 - fNearCoc, 4.0)
|
||
)
|
||
);
|
||
#else
|
||
gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight));
|
||
#endif
|
||
|
||
}
|
||
|
||
@end
|
||
|
||
|
||
|
||
@export ecgl.dof.diskBlur
|
||
|
||
#define POISSON_KERNEL_SIZE 16;
|
||
|
||
uniform sampler2D texture;
|
||
uniform sampler2D coc;
|
||
varying vec2 v_Texcoord;
|
||
|
||
uniform float blurRadius : 10.0;
|
||
uniform vec2 textureSize : [512.0, 512.0];
|
||
|
||
uniform vec2 poissonKernel[POISSON_KERNEL_SIZE];
|
||
|
||
uniform float percent;
|
||
|
||
float nrand(const in vec2 n) {
|
||
return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453);
|
||
}
|
||
|
||
@import clay.util.rgbm
|
||
@import clay.util.float
|
||
|
||
|
||
void main()
|
||
{
|
||
vec2 offset = blurRadius / textureSize;
|
||
|
||
float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent );
|
||
float cosa = cos(rnd);
|
||
float sina = sin(rnd);
|
||
vec4 basis = vec4(cosa, -sina, sina, cosa);
|
||
|
||
#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC)
|
||
offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0);
|
||
#endif
|
||
|
||
#ifdef BLUR_COC
|
||
float cocSum = 0.0;
|
||
#else
|
||
vec4 color = vec4(0.0);
|
||
#endif
|
||
|
||
|
||
float weightSum = 0.0;
|
||
|
||
for (int i = 0; i < POISSON_KERNEL_SIZE; i++) {
|
||
vec2 ofs = poissonKernel[i];
|
||
|
||
ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw));
|
||
|
||
vec2 uv = v_Texcoord + ofs * offset;
|
||
vec4 texel = texture2D(texture, uv);
|
||
|
||
float w = 1.0;
|
||
#ifdef BLUR_COC
|
||
float fCoc = decodeFloat(texel) * 2.0 - 1.0;
|
||
cocSum += clamp(fCoc, -1.0, 0.0) * w;
|
||
#else
|
||
texel = texel;
|
||
#if !defined(BLUR_NEARFIELD)
|
||
float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0;
|
||
w *= abs(fCoc);
|
||
#endif
|
||
texel.rgb *= texel.a;
|
||
color += texel * w;
|
||
#endif
|
||
|
||
weightSum += w;
|
||
}
|
||
|
||
#ifdef BLUR_COC
|
||
gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5);
|
||
#else
|
||
color /= weightSum;
|
||
color.rgb /= (color.a + 0.0001);
|
||
gl_FragColor = color;
|
||
#endif
|
||
}
|
||
|
||
@end`,Xyt=`@export ecgl.edge
|
||
|
||
uniform sampler2D texture;
|
||
|
||
uniform sampler2D normalTexture;
|
||
uniform sampler2D depthTexture;
|
||
|
||
uniform mat4 projectionInv;
|
||
|
||
uniform vec2 textureSize;
|
||
|
||
uniform vec4 edgeColor: [0,0,0,0.8];
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
vec3 packColor(vec2 coord) {
|
||
float z = texture2D(depthTexture, coord).r * 2.0 - 1.0;
|
||
vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);
|
||
vec4 p4 = projectionInv * p;
|
||
|
||
return vec3(
|
||
texture2D(normalTexture, coord).rg,
|
||
-p4.z / p4.w / 5.0
|
||
);
|
||
}
|
||
|
||
void main() {
|
||
vec2 cc = v_Texcoord;
|
||
vec3 center = packColor(cc);
|
||
|
||
float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5;
|
||
float dx = size / textureSize.x;
|
||
float dy = size / textureSize.y;
|
||
|
||
vec2 coord;
|
||
vec3 topLeft = packColor(cc+vec2(-dx, -dy));
|
||
vec3 top = packColor(cc+vec2(0.0, -dy));
|
||
vec3 topRight = packColor(cc+vec2(dx, -dy));
|
||
vec3 left = packColor(cc+vec2(-dx, 0.0));
|
||
vec3 right = packColor(cc+vec2(dx, 0.0));
|
||
vec3 bottomLeft = packColor(cc+vec2(-dx, dy));
|
||
vec3 bottom = packColor(cc+vec2(0.0, dy));
|
||
vec3 bottomRight = packColor(cc+vec2(dx, dy));
|
||
|
||
vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight;
|
||
vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight;
|
||
|
||
float edge = sqrt(dot(h, h) + dot(v, v));
|
||
|
||
edge = smoothstep(0.8, 1.0, edge);
|
||
|
||
gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge);
|
||
}
|
||
@end`;nt.import(hie);nt.import(vie);nt.import(pie);nt.import(gie);nt.import(mie);nt.import(yie);nt.import(_ie);nt.import(bie);nt.import(wie);nt.import(Kyt);nt.import(Xyt);function Aie(e,t){return{color:{parameters:{width:e,height:t}}}}var m4=["composite","FXAA"];function Rr(){this._width,this._height,this._dpr,this._sourceTexture=new _r({type:$t.HALF_FLOAT}),this._depthTexture=new _r({format:$t.DEPTH_COMPONENT,type:$t.UNSIGNED_INT}),this._framebuffer=new Ua,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,Ua.DEPTH_ATTACHMENT),this._normalPass=new fm,this._compositor=kyt(jyt);var e=this._compositor.getNodeByName("source");e.texture=this._sourceTexture;var t=this._compositor.getNodeByName("coc");this._sourceNode=e,this._cocNode=t,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(n){return this._compositor.getNodeByName(n)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=m4.map(function(n){return this._compositor.getNodeByName(n)},this);var r={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new lc(r),this._ssrPass=new uc(r),this._edgePass=new z1(r)}Rr.prototype.resize=function(n,a,r){r=r||1;var n=n*r,a=a*r,i=this._sourceTexture,o=this._depthTexture;i.width=n,i.height=a,o.width=n,o.height=a;var s={getWidth:function(){return n},getHeight:function(){return a},getDevicePixelRatio:function(){return r}};function l(u,c){if(typeof u[c]=="function"){var f=u[c].__original||u[c];u[c]=function(d){return f.call(this,s)},u[c].__original=f}}this._compositor.nodes.forEach(function(u){for(var c in u.outputs){var f=u.outputs[c].parameters;f&&(l(f,"width"),l(f,"height"))}for(var d in u.parameters)l(u.parameters,d)}),this._width=n,this._height=a,this._dpr=r};Rr.prototype.getWidth=function(){return this._width};Rr.prototype.getHeight=function(){return this._height};Rr.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR};Rr.prototype._getPrevNode=function(e){for(var t=m4.indexOf(e.name)-1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t-=1,r=this._finalNodesChain[t];return r};Rr.prototype._getNextNode=function(e){for(var t=m4.indexOf(e.name)+1,r=this._finalNodesChain[t];r&&!this._compositor.getNodeByName(r.name);)t+=1,r=this._finalNodesChain[t];return r};Rr.prototype._addChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);t&&(e.inputs.texture=t.name,r?(e.outputs=Aie(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=e.name):e.outputs=null,this._compositor.addNode(e))};Rr.prototype._removeChainNode=function(e){var t=this._getPrevNode(e),r=this._getNextNode(e);t&&(r?(t.outputs=Aie(this.getWidth.bind(this),this.getHeight.bind(this)),r.inputs.texture=t.name):t.outputs=null,this._compositor.removeNode(e))};Rr.prototype.updateNormal=function(e,t,r,n){this._ifRenderNormalPass()&&this._normalPass.update(e,t,r)};Rr.prototype.updateSSAO=function(e,t,r,n){this._ssaoPass.update(e,r,n)};Rr.prototype.enableSSAO=function(){this._enableSSAO=!0};Rr.prototype.disableSSAO=function(){this._enableSSAO=!1};Rr.prototype.enableSSR=function(){this._enableSSR=!0};Rr.prototype.disableSSR=function(){this._enableSSR=!1};Rr.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()};Rr.prototype.getSourceFrameBuffer=function(){return this._framebuffer};Rr.prototype.getSourceTexture=function(){return this._sourceTexture};Rr.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)};Rr.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)};Rr.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()};Rr.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()};Rr.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()};Rr.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()};Rr.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0};Rr.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1};Rr.prototype.enableEdge=function(){this._enableEdge=!0};Rr.prototype.disableEdge=function(){this._enableEdge=!1};Rr.prototype.setBloomIntensity=function(e){this._compositeNode.setParameter("bloomIntensity",e)};Rr.prototype.setSSAOParameter=function(e,t){switch(e){case"quality":var r={low:6,medium:12,high:32,ultra:62}[t]||12;this._ssaoPass.setParameter("kernelSize",r);break;case"radius":this._ssaoPass.setParameter(e,t),this._ssaoPass.setParameter("bias",t/200);break;case"intensity":this._ssaoPass.setParameter(e,t);break}};Rr.prototype.setDOFParameter=function(e,t){switch(e){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(e,t);break;case"blurRadius":for(var r=0;r<this._dofBlurNodes.length;r++)this._dofBlurNodes[r].setParameter("blurRadius",t);break;case"quality":var n={low:4,medium:8,high:16,ultra:32}[t]||8;this._dofBlurKernelSize=n;for(var r=0;r<this._dofBlurNodes.length;r++)this._dofBlurNodes[r].pass.material.define("POISSON_KERNEL_SIZE",n);this._dofBlurKernel=new Float32Array(n*2);break}};Rr.prototype.setSSRParameter=function(e,t){if(t!=null)switch(e){case"quality":var r={low:10,medium:15,high:30,ultra:80}[t]||20,n={low:32,medium:16,high:8,ultra:4}[t]||16;this._ssrPass.setParameter("maxIteration",r),this._ssrPass.setParameter("pixelStride",n);break;case"maxRoughness":this._ssrPass.setParameter("minGlossiness",Math.max(Math.min(1-t,1),0));break;case"physical":this.setPhysicallyCorrectSSR(t);break;default:console.warn("Unkown SSR parameter "+e)}};Rr.prototype.setPhysicallyCorrectSSR=function(e){this._ssrPass.setPhysicallyCorrect(e)};Rr.prototype.setEdgeColor=function(e){var t=ue.parseColor(e);this._edgePass.setParameter("edgeColor",t)};Rr.prototype.setExposure=function(e){this._compositeNode.setParameter("exposure",Math.pow(2,e))};Rr.prototype.setColorLookupTexture=function(e,t){this._compositeNode.pass.material.setTextureImage("lut",this._enableColorCorrection?e:"none",t,{minFilter:ue.Texture.NEAREST,magFilter:ue.Texture.NEAREST,flipY:!1})};Rr.prototype.setColorCorrection=function(e,t){this._compositeNode.setParameter(e,t)};Rr.prototype.isSSREnabled=function(){return this._enableSSR};Rr.prototype.composite=function(e,t,r,n,a){var i=this._sourceTexture,o=i;this._enableEdge&&(this._edgePass.update(e,r,i,a),i=o=this._edgePass.getTargetTexture()),this._enableSSR&&(this._ssrPass.update(e,r,i,a),o=this._ssrPass.getTargetTexture(),this._ssrPass.setSSAOTexture(this._enableSSAO?this._ssaoPass.getTargetTexture():null)),this._sourceNode.texture=o,this._cocNode.setParameter("depth",this._depthTexture);for(var s=this._dofBlurKernel,l=this._dofBlurKernelSize,u=Math.floor(iW.length/2/l),c=a%u,f=0;f<l*2;f++)s[f]=iW[f+c*l*2];for(var f=0;f<this._dofBlurNodes.length;f++)this._dofBlurNodes[f].setParameter("percent",a/30),this._dofBlurNodes[f].setParameter("poissonKernel",s);this._cocNode.setParameter("zNear",r.near),this._cocNode.setParameter("zFar",r.far),this._compositor.render(e,n)};Rr.prototype.dispose=function(e){this._sourceTexture.dispose(e),this._depthTexture.dispose(e),this._framebuffer.dispose(e),this._compositor.dispose(e),this._normalPass.dispose(e),this._ssaoPass.dispose(e)};function oR(e){for(var t=[],r=0;r<30;r++)t.push([Tg(r,2),Tg(r,3)]);this._haltonSequence=t,this._frame=0,this._sourceTex=new _r,this._sourceFb=new Ua,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new _r,this._outputTex=new _r;var n=this._blendPass=new sa({fragment:nt.source("clay.compositor.blend")});n.material.disableTexturesAll(),n.material.enableTexture(["texture1","texture2"]),this._blendFb=new Ua({depthBuffer:!1}),this._outputPass=new sa({fragment:nt.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(a){a.blendEquationSeparate(a.FUNC_ADD,a.FUNC_ADD),a.blendFuncSeparate(a.ONE,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA)}}oR.prototype={constructor:oR,jitterProjection:function(e,t){var r=e.viewport,n=r.devicePixelRatio||e.getDevicePixelRatio(),a=r.width*n,i=r.height*n,o=this._haltonSequence[this._frame%this._haltonSequence.length],s=new Bt;s.array[12]=(o[0]*2-1)/a,s.array[13]=(o[1]*2-1)/i,Bt.mul(t.projectionMatrix,s,t.projectionMatrix),Bt.invert(t.invProjectionMatrix,t.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(e,t){this._prevFrameTex.width=e,this._prevFrameTex.height=t,this._outputTex.width=e,this._outputTex.height=t,this._sourceTex.width=e,this._sourceTex.height=t,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(e,t,r){var n=this._blendPass;this._frame===0?(n.setUniform("weight1",0),n.setUniform("weight2",1)):(n.setUniform("weight1",.9),n.setUniform("weight2",.1)),n.setUniform("texture1",this._prevFrameTex),n.setUniform("texture2",t||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(e),n.render(e),this._blendFb.unbind(e),r||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(e));var a=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=a,this._frame++},dispose:function(e){this._sourceFb.dispose(e),this._blendFb.dispose(e),this._prevFrameTex.dispose(e),this._outputTex.dispose(e),this._sourceTex.dispose(e),this._outputPass.dispose(e),this._blendPass.dispose(e)}};function an(e){e=e||"perspective",this.layer=null,this.scene=new Wf,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(e),this._compositor=new Rr,this._temporalSS=new oR,this._shadowMapPass=new yyt;for(var t=[],r=0,n=0;n<30;n++){for(var a=[],i=0;i<6;i++)a.push(Tg(r,2)*4-2),a.push(Tg(r,3)*4-2),r++;t.push(a)}this._pcfKernels=t,this.scene.on("beforerender",function(o,s,l){this.needsTemporalSS()&&this._temporalSS.jitterProjection(o,l)},this)}an.prototype.setProjection=function(e){var t=this.camera;t&&t.update(),e==="perspective"?this.camera instanceof Sa||(this.camera=new Sa,t&&this.camera.setLocalTransform(t.localTransform)):this.camera instanceof Ag||(this.camera=new Ag,t&&this.camera.setLocalTransform(t.localTransform)),this.camera.near=.1,this.camera.far=2e3};an.prototype.setViewport=function(e,t,r,n,a){this.camera instanceof Sa&&(this.camera.aspect=r/n),a=a||1,this.viewport.x=e,this.viewport.y=t,this.viewport.width=r,this.viewport.height=n,this.viewport.devicePixelRatio=a,this._compositor.resize(r*a,n*a),this._temporalSS.resize(r*a,n*a)};an.prototype.containPoint=function(e,t){var r=this.viewport,n=this.layer.renderer.getHeight();return t=n-t,e>=r.x&&t>=r.y&&e<=r.x+r.width&&t<=r.y+r.height};var oW=new mo;an.prototype.castRay=function(e,t,r){var n=this.layer.renderer,a=n.viewport;return n.viewport=this.viewport,n.screenToNDC(e,t,oW),this.camera.castRay(oW,r),n.viewport=a,r};an.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var e=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var t=0;t<e.transparent.length;t++){var r=e.transparent[t],n=r.geometry;n.needsSortVerticesProgressively&&n.needsSortVerticesProgressively()&&(this._needsSortProgressively=!0),n.needsSortTrianglesProgressively&&n.needsSortTrianglesProgressively()&&(this._needsSortProgressively=!0)}this._frame=0,this._temporalSS.resetFrame()};an.prototype.render=function(e,t){this._doRender(e,t,this._frame),this._frame++};an.prototype.needsAccumulate=function(){return this.needsTemporalSS()||this._needsSortProgressively};an.prototype.needsTemporalSS=function(){var e=this._enableTemporalSS;return e==="auto"&&(e=this._enablePostEffect),e};an.prototype.hasDOF=function(){return this._enableDOF};an.prototype.isAccumulateFinished=function(){return this.needsTemporalSS()?this._temporalSS.isFinished():this._frame>30};an.prototype._doRender=function(e,t,r){var n=this.scene,a=this.camera;r=r||0,this._updateTransparent(e,n,a,r),t||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(e,n,a,!0)),this._updateShadowPCFKernel(r);var i=e.clearColor;if(e.gl.clearColor(i[0],i[1],i[2],i[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(e,a),this._compositor.updateNormal(e,n,a,this._temporalSS.getFrame())),this._updateSSAO(e,n,a,this._temporalSS.getFrame()),this._enablePostEffect){var o=this._compositor.getSourceFrameBuffer();o.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),e.render(n,a,!0,!0),o.unbind(e),this.needsTemporalSS()&&t?(this._compositor.composite(e,n,a,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),e.setViewport(this.viewport),this._temporalSS.render(e)):(e.setViewport(this.viewport),this._compositor.composite(e,n,a,null,0))}else if(this.needsTemporalSS()&&t){var o=this._temporalSS.getSourceFrameBuffer();o.bind(e),e.saveClear(),e.clearBit=e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT,e.render(n,a,!0,!0),e.restoreClear(),o.unbind(e),e.setViewport(this.viewport),this._temporalSS.render(e)}else e.setViewport(this.viewport),e.render(n,a,!0,!0)};an.prototype._updateTransparent=function(e,t,r,n){for(var a=new mt,i=new Bt,o=r.getWorldPosition(),s=t.getRenderList(r).transparent,l=0;l<s.length;l++){var u=s[l],c=u.geometry;Bt.invert(i,u.worldTransform),mt.transformMat4(a,o,i),c.needsSortTriangles&&c.needsSortTriangles()&&c.doSortTriangles(a,n),c.needsSortVertices&&c.needsSortVertices()&&c.doSortVertices(a,n)}};an.prototype._updateSSAO=function(e,t,r){var n=this._enableSSAO&&this._enablePostEffect;n&&this._compositor.updateSSAO(e,t,r,this._temporalSS.getFrame());for(var a=t.getRenderList(r),i=0;i<a.opaque.length;i++){var o=a.opaque[i];o.renderNormal&&o.material[n?"enableTexture":"disableTexture"]("ssaoMap"),n&&o.material.set("ssaoMap",this._compositor.getSSAOTexture())}};an.prototype._updateShadowPCFKernel=function(e){for(var t=this._pcfKernels[e%this._pcfKernels.length],r=this.scene.getRenderList(this.camera),n=r.opaque,a=0;a<n.length;a++)n[a].receiveShadow&&(n[a].material.set("pcfKernel",t),n[a].material.define("fragment","PCF_KERNEL_SIZE",t.length/2))};an.prototype.dispose=function(e){this._compositor.dispose(e.gl),this._temporalSS.dispose(e.gl),this._shadowMapPass.dispose(e)};an.prototype.setPostEffect=function(e,t){var r=this._compositor;this._enablePostEffect=e.get("enable");var n=e.getModel("bloom"),a=e.getModel("edge"),i=e.getModel("DOF",e.getModel("depthOfField")),o=e.getModel("SSAO",e.getModel("screenSpaceAmbientOcclusion")),s=e.getModel("SSR",e.getModel("screenSpaceReflection")),l=e.getModel("FXAA"),u=e.getModel("colorCorrection");n.get("enable")?r.enableBloom():r.disableBloom(),i.get("enable")?r.enableDOF():r.disableDOF(),s.get("enable")?r.enableSSR():r.disableSSR(),u.get("enable")?r.enableColorCorrection():r.disableColorCorrection(),a.get("enable")?r.enableEdge():r.disableEdge(),l.get("enable")?r.enableFXAA():r.disableFXAA(),this._enableDOF=i.get("enable"),this._enableSSAO=o.get("enable"),this._enableSSAO?r.enableSSAO():r.disableSSAO(),r.setBloomIntensity(n.get("intensity")),r.setEdgeColor(a.get("color")),r.setColorLookupTexture(u.get("lookupTexture"),t),r.setExposure(u.get("exposure")),["radius","quality","intensity"].forEach(function(c){r.setSSAOParameter(c,o.get(c))}),["quality","maxRoughness","physical"].forEach(function(c){r.setSSRParameter(c,s.get(c))}),["quality","focalDistance","focalRange","blurRadius","fstop"].forEach(function(c){r.setDOFParameter(c,i.get(c))}),["brightness","contrast","saturation"].forEach(function(c){r.setColorCorrection(c,u.get(c))})};an.prototype.setDOFFocusOnPoint=function(e){if(this._enablePostEffect)return e>this.camera.far||e<this.camera.near?void 0:(this._compositor.setDOFParameter("focalDistance",e),!0)};an.prototype.setTemporalSuperSampling=function(e){this._enableTemporalSS=e.get("enable")};an.prototype.isLinearSpace=function(){return this._enablePostEffect};an.prototype.setRootNode=function(e){if(this.rootNode!==e){for(var t=this.rootNode.children(),r=0;r<t.length;r++)e.add(t[r]);e!==this.scene&&this.scene.add(e),this.rootNode=e}};an.prototype.add=function(e){this.rootNode.add(e)};an.prototype.remove=function(e){this.rootNode.remove(e)};an.prototype.removeAll=function(e){this.rootNode.removeAll(e)};Object.assign(an.prototype,o4);function Zyt(e,t){var r=e.getBoxLayoutParams(),n=kn(r,{width:t.getWidth(),height:t.getHeight()});n.y=t.getHeight()-n.y-n.height,this.viewGL.setViewport(n.x,n.y,n.width,n.height,t.getDevicePixelRatio());var a=e.get("boxWidth"),i=e.get("boxHeight"),o=e.get("boxDepth");this.getAxis("x").setExtent(-a/2,a/2),this.getAxis("y").setExtent(o/2,-o/2),this.getAxis("z").setExtent(-i/2,i/2),this.size=[a,i,o]}function qyt(e,t){var r={};function n(a,i){r[a]=r[a]||[1/0,-1/0],r[a][0]=Math.min(i[0],r[a][0]),r[a][1]=Math.max(i[1],r[a][1])}e.eachSeries(function(a){if(a.coordinateSystem===this){var i=a.getData();["x","y","z"].forEach(function(o){i.mapDimensionsAll(o,!0).forEach(function(s){n(o,i.getDataExtent(s,!0))})})}},this),["xAxis3D","yAxis3D","zAxis3D"].forEach(function(a){e.eachComponent(a,function(i){var o=a.charAt(0),s=i.getReferringComponents("grid3D").models[0],l=s.coordinateSystem;if(l===this){var u=l.getAxis(o);if(!u){var c=eT(r[o]||[1/0,-1/0],i);u=new P2(o,c),u.type=i.get("type");var f=u.type==="category";u.onBand=f&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.getLabelModel=function(){return i.getModel("axisLabel",s.getModel("axisLabel"))},u.getTickModel=function(){return i.getModel("axisTick",s.getModel("axisTick"))},l.addAxis(u)}}},this)},this),this.resize(this.model,t)}var Qyt={dimensions:O_.prototype.dimensions,create:function(e,t){var r=[];e.eachComponent("grid3D",function(i){i.__viewGL=i.__viewGL||new an;var o=new O_;o.model=i,o.viewGL=i.__viewGL,i.coordinateSystem=o,r.push(o),o.resize=Zyt,o.update=qyt});var n=["xAxis3D","yAxis3D","zAxis3D"];function a(i,o){return n.map(function(s){var l=i.getReferringComponents(s).models[0];return l==null&&(l=o.getComponent(s)),l})}return e.eachSeries(function(i){if(i.get("coordinateSystem")==="cartesian3D"){var o=i.getReferringComponents("grid3D").models[0];if(o==null){var s=a(i,e),o=s[0].getCoordSysModel();s.forEach(function(c){c.getCoordSysModel()})}var l=o.coordinateSystem;i.coordinateSystem=l}}),r}};const Jyt=Qyt;var Tie=sr.extend({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});gZ(Tie);const e0t=Tie;var Cie={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},t0t=st({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},Cie),y4=st({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},Cie),r0t=yt({scale:!0,min:"dataMin",max:"dataMax"},y4),Eie=yt({logBase:10},y4);Eie.scale=!0;const n0t={categoryAxis3D:t0t,valueAxis3D:y4,timeAxis3D:r0t,logAxis3D:Eie};var a0t=["value","category","time","log"];function i0t(e,t,r,n,a){a0t.forEach(function(i){var o=r.extend({type:t+"Axis3D."+i,__ordinalMeta:null,mergeDefaultAndTheme:function(s,l){var u=l.getTheme();st(s,u.get(i+"Axis3D")),st(s,this.getDefaultOption()),s.type=n(t,s)},optionUpdated:function(){var s=this.option;s.type==="category"&&(this.__ordinalMeta=Ox.createByAxisModel(this))},getCategories:function(){if(this.option.type==="category")return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:st(Pt(n0t[i+"Axis3D"]),a||{},!0)});e.registerComponentModel(o)}),e.registerSubTypeDefaulter(t+"Axis3D",zt(n,t))}function o0t(e,t){return t.type||(t.data?"category":"value")}function s0t(e){e.registerComponentModel(lyt),e.registerComponentView(vyt),e.registerCoordinateSystem("grid3D",Jyt),["x","y","z"].forEach(function(t){i0t(e,t,e0t,o0t,{name:t.toUpperCase()});const r=e.ComponentView.extend({type:t+"Axis3D"});e.registerComponentView(r)}),e.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},function(t,r){r.eachComponent({mainType:"grid3D",query:t},function(n){n.setView(t)})}),e.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},function(t,r){}),e.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},function(t,r){})}Dt(s0t);const dm={defaultOption:{shading:null,realisticMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},lambertMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},colorMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},hatchingMaterial:{textureTiling:1,textureOffset:0,paperColor:"#fff"}}},Mie={getFilledRegions:function(e,t){var r=(e||[]).slice(),n;if(typeof t=="string"?(t=Ix(t),n=t&&t.geoJson):t&&t.features&&(n=t),!n)return[];for(var a={},i=n.features,o=0;o<r.length;o++)a[r[o].name]=r[o];for(var o=0;o<i.length;o++){var s=i[o].properties.name;a[s]||r.push({name:s})}return r},defaultOption:{show:!0,zlevel:-10,map:"",left:0,top:0,width:"100%",height:"100%",boxWidth:100,boxHeight:10,boxDepth:"auto",regionHeight:3,environment:"auto",groundPlane:{show:!1,color:"#aaa"},shading:"lambert",light:{main:{alpha:40,beta:30}},viewControl:{alpha:40,beta:0,distance:100,orthographicSize:60,minAlpha:5,minBeta:-80,maxBeta:80},label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}};var hm=sr.extend({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var e=this.option;e.regions=this.getFilledRegions(e.regions,e.map);var t=em(e.data||[],{coordDimensions:["value"],encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),r=new Dn(t,this);r.initData(e.regions);var n={};r.each(function(a){var i=r.getName(a),o=r.getItemModel(a);n[i]=o}),this._regionModelMap=n,this._data=r},getData:function(){return this._data},getRegionModel:function(e){var t=this.getData().getName(e);return this._regionModelMap[t]||new $r(null,this)},getRegionPolygonCoords:function(e){var t=this.getData().getName(e),r=this.coordinateSystem.getRegion(t);return r?r.geometries:[]},getFormattedLabel:function(e,t){var r=this._data.getName(e),n=this.getRegionModel(e),a=n.get(t==="normal"?["label","formatter"]:["emphasis","label","formatter"]);a==null&&(a=n.get(["label","formatter"]));var i={name:r};if(typeof a=="function")return i.status=t,a(i);if(typeof a=="string"){var o=i.seriesName;return a.replace("{a}",o??"")}else return r},defaultOption:{regions:[]}});st(hm.prototype,Mie);st(hm.prototype,HT);st(hm.prototype,um);st(hm.prototype,cm);st(hm.prototype,dm);const l0t=hm;function Die(e,t,r){r=r||2;var n=t&&t.length,a=n?t[0]*r:e.length,i=Pie(e,0,a,r,!0),o=[];if(!i)return o;var s,l,u,c,f,d,h;if(n&&(i=h0t(e,t,i,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;v<a;v+=r)f=e[v],d=e[v+1],f<s&&(s=f),d<l&&(l=d),f>u&&(u=f),d>c&&(c=d);h=Math.max(u-s,c-l)}return B_(i,o,r,s,l,h),o}function Pie(e,t,r,n,a){var i,o;if(a===uR(e,t,r,n)>0)for(i=t;i<r;i+=n)o=sW(i,e[i],e[i+1],o);else for(i=r-n;i>=t;i-=n)o=sW(i,e[i],e[i+1],o);return o&&vh(o,o.next)&&(V_(o),o=o.next),o}function N_(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(vh(r,r.next)||Ci(r.prev,r,r.next)===0)){if(V_(r),r=t=r.prev,r===r.next)return null;n=!0}else r=r.next;while(n||r!==t);return t}function B_(e,t,r,n,a,i,o){if(e){!o&&i&&m0t(e,n,a,i);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,i?c0t(e,n,a,i):u0t(e)){t.push(l.i/r),t.push(e.i/r),t.push(u.i/r),V_(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=f0t(e,t,r),B_(e,t,r,n,a,i,2)):o===2&&d0t(e,t,r,n,a,i):B_(N_(e),t,r,n,a,i,1);break}}}}function u0t(e){var t=e.prev,r=e,n=e.next;if(Ci(t,r,n)>=0)return!1;for(var a=e.next.next;a!==e.prev;){if(L2(t.x,t.y,r.x,r.y,n.x,n.y,a.x,a.y)&&Ci(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function c0t(e,t,r,n){var a=e.prev,i=e,o=e.next;if(Ci(a,i,o)>=0)return!1;for(var s=a.x<i.x?a.x<o.x?a.x:o.x:i.x<o.x?i.x:o.x,l=a.y<i.y?a.y<o.y?a.y:o.y:i.y<o.y?i.y:o.y,u=a.x>i.x?a.x>o.x?a.x:o.x:i.x>o.x?i.x:o.x,c=a.y>i.y?a.y>o.y?a.y:o.y:i.y>o.y?i.y:o.y,f=sR(s,l,t,r,n),d=sR(u,c,t,r,n),h=e.nextZ;h&&h.z<=d;){if(h!==e.prev&&h!==e.next&&L2(a.x,a.y,i.x,i.y,o.x,o.y,h.x,h.y)&&Ci(h.prev,h,h.next)>=0)return!1;h=h.nextZ}for(h=e.prevZ;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&L2(a.x,a.y,i.x,i.y,o.x,o.y,h.x,h.y)&&Ci(h.prev,h,h.next)>=0)return!1;h=h.prevZ}return!0}function f0t(e,t,r){var n=e;do{var a=n.prev,i=n.next.next;!vh(a,i)&&Lie(a,n,n.next,i)&&F_(a,i)&&F_(i,a)&&(t.push(a.i/r),t.push(n.i/r),t.push(i.i/r),V_(n),V_(n.next),n=e=i),n=n.next}while(n!==e);return n}function d0t(e,t,r,n,a,i){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&b0t(o,s)){var l=Iie(o,s);o=N_(o,o.next),l=N_(l,l.next),B_(o,t,r,n,a,i),B_(l,t,r,n,a,i);return}s=s.next}o=o.next}while(o!==e)}function h0t(e,t,r,n){var a=[],i,o,s,l,u;for(i=0,o=t.length;i<o;i++)s=t[i]*n,l=i<o-1?t[i+1]*n:e.length,u=Pie(e,s,l,n,!1),u===u.next&&(u.steiner=!0),a.push(_0t(u));for(a.sort(v0t),i=0;i<a.length;i++)p0t(a[i],r),r=N_(r,r.next);return r}function v0t(e,t){return e.x-t.x}function p0t(e,t){if(t=g0t(e,t),t){var r=Iie(t,e);N_(r,r.next)}}function g0t(e,t){var r=t,n=e.x,a=e.y,i=-1/0,o;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>i){if(i=s,s===n){if(a===r.y)return r;if(a===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===i)return o.prev;var l=o,u=o.x,c=o.y,f=1/0,d;for(r=o.next;r!==l;)n>=r.x&&r.x>=u&&n!==r.x&&L2(a<c?n:i,a,u,c,a<c?i:n,a,r.x,r.y)&&(d=Math.abs(a-r.y)/(n-r.x),(d<f||d===f&&r.x>o.x)&&F_(r,e)&&(o=r,f=d)),r=r.next;return o}function m0t(e,t,r,n){var a=e;do a.z===null&&(a.z=sR(a.x,a.y,t,r,n)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,y0t(a)}function y0t(e){var t,r,n,a,i,o,s,l,u=1;do{for(r=e,e=null,i=null,o=0;r;){for(o++,n=r,s=0,t=0;t<u&&(s++,n=n.nextZ,!!n);t++);for(l=u;s>0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(a=r,r=r.nextZ,s--):(a=n,n=n.nextZ,l--),i?i.nextZ=a:e=a,a.prevZ=i,i=a;r=n}i.nextZ=null,u*=2}while(o>1);return e}function sR(e,t,r,n,a){return e=32767*(e-r)/a,t=32767*(t-n)/a,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function _0t(e){var t=e,r=e;do t.x<r.x&&(r=t),t=t.next;while(t!==e);return r}function L2(e,t,r,n,a,i,o,s){return(a-o)*(t-s)-(e-o)*(i-s)>=0&&(e-o)*(n-s)-(r-o)*(t-s)>=0&&(r-o)*(i-s)-(a-o)*(n-s)>=0}function b0t(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!w0t(e,t)&&F_(e,t)&&F_(t,e)&&S0t(e,t)}function Ci(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function vh(e,t){return e.x===t.x&&e.y===t.y}function Lie(e,t,r,n){return vh(e,t)&&vh(r,n)||vh(e,n)&&vh(r,t)?!0:Ci(e,t,r)>0!=Ci(e,t,n)>0&&Ci(r,n,e)>0!=Ci(r,n,t)>0}function w0t(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Lie(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function F_(e,t){return Ci(e.prev,e,e.next)<0?Ci(e,t,e.next)>=0&&Ci(e,e.prev,t)>=0:Ci(e,t,e.prev)<0||Ci(e,e.next,t)<0}function S0t(e,t){var r=e,n=!1,a=(e.x+t.x)/2,i=(e.y+t.y)/2;do r.y>i!=r.next.y>i&&r.next.y!==r.y&&a<(r.next.x-r.x)*(i-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Iie(e,t){var r=new lR(e.i,e.x,e.y),n=new lR(t.i,t.x,t.y),a=e.next,i=t.prev;return e.next=t,t.prev=e,r.next=a,a.prev=r,n.next=r,r.prev=n,i.next=n,n.prev=i,n}function sW(e,t,r,n){var a=new lR(e,t,r);return n?(a.next=n.next,a.prev=n,n.next.prev=a,n.next=a):(a.prev=a,a.next=a),a}function V_(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function lR(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Die.deviation=function(e,t,r,n){var a=t&&t.length,i=a?t[0]*r:e.length,o=Math.abs(uR(e,0,i,r));if(a)for(var s=0,l=t.length;s<l;s++){var u=t[s]*r,c=s<l-1?t[s+1]*r:e.length;o-=Math.abs(uR(e,u,c,r))}var f=0;for(s=0;s<n.length;s+=3){var d=n[s]*r,h=n[s+1]*r,v=n[s+2]*r;f+=Math.abs((e[d]-e[v])*(e[h+1]-e[d+1])-(e[d]-e[h])*(e[v+1]-e[d+1]))}return o===0&&f===0?0:Math.abs((f-o)/o)};function uR(e,t,r,n){for(var a=0,i=t,o=r-n;i<r;i+=n)a+=(e[o]-e[i])*(e[i+1]+e[o+1]),o=i;return a}function TD(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Rie(e,t,r,n,a){var i=r,o=e[t];TD(e,t,n);for(var s=r;s<n;s++)a(e[s],o)<0&&(TD(e,s,i),i++);return TD(e,n,i),i}function I2(e,t,r,n){if(r<n){var a=Math.floor((r+n)/2),i=Rie(e,a,r,n,t);I2(e,t,r,i-1),I2(e,t,i+1,n)}}function Cg(){this._parts=[]}Cg.prototype.step=function(e,t,r){var n=e.length;if(r===0){this._parts=[],this._sorted=!1;var a=Math.floor(n/2);this._parts.push({pivot:a,left:0,right:n-1}),this._currentSortPartIdx=0}if(!this._sorted){var i=this._parts;if(i.length===0)return this._sorted=!0,!0;if(i.length<512){for(var o=0;o<i.length;o++)i[o].pivot=Rie(e,i[o].pivot,i[o].left,i[o].right,t);for(var s=[],o=0;o<i.length;o++){var l=i[o].left,u=i[o].pivot-1;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u});var l=i[o].pivot+1,u=i[o].right;u>l&&s.push({pivot:Math.floor((u+l)/2),left:l,right:u})}i=this._parts=s}else for(var o=0;o<Math.floor(i.length/10);o++){var c=i.length-1-this._currentSortPartIdx;if(I2(e,t,i[c].left,i[c].right),this._currentSortPartIdx++,this._currentSortPartIdx===i.length)return this._sorted=!0,!0}return!1}};Cg.sort=I2;var Hp=Jn.vec3,lW=Hp.create(),uW=Hp.create(),cW=Hp.create();const _4={needsSortTriangles:function(){return this.indices&&this.sortTriangles},needsSortTrianglesProgressively:function(){return this.needsSortTriangles()&&this.triangleCount>=2e4},doSortTriangles:function(e,t){var r=this.indices;if(t===0){var n=this.attributes.position,e=e.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new r.constructor(r.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var a=0,i,o=0;o<r.length;){n.get(r[o++],lW),n.get(r[o++],uW),n.get(r[o++],cW);var s=Hp.sqrDist(lW,e),l=Hp.sqrDist(uW,e),u=Hp.sqrDist(cW,e),c=Math.min(s,l);c=Math.min(c,u),o===3?(i=c,c=0):c=c-i,this._triangleZList[a++]=c}}for(var f=this._sortedTriangleIndices,o=0;o<f.length;o++)f[o]=o;if(this.triangleCount<2e4)t===0&&this._simpleSort(!0);else for(var o=0;o<3;o++)this._progressiveQuickSort(t*3+o);for(var d=this._indicesTmp,h=this._triangleZListTmp,v=this._triangleZList,o=0;o<this.triangleCount;o++){var p=f[o]*3,g=o*3;d[g++]=r[p++],d[g++]=r[p++],d[g]=r[p],h[o]=v[f[o]]}var m=this._indicesTmp;this._indicesTmp=this.indices,this.indices=m;var m=this._triangleZListTmp;this._triangleZListTmp=this._triangleZList,this._triangleZList=m,this.dirtyIndices()},_simpleSort:function(e){var t=this._triangleZList,r=this._sortedTriangleIndices;function n(a,i){return t[i]-t[a]}e?Array.prototype.sort.call(r,n):Cg.sort(r,n,0,r.length-1)},_progressiveQuickSort:function(e){var t=this._triangleZList,r=this._sortedTriangleIndices;this._quickSort=this._quickSort||new Cg,this._quickSort.step(r,function(n,a){return t[a]-t[n]},e)}};function x0t(e){const t=e.getVisual("style");if(t){const r=e.getVisual("drawType");return t[r]}}function A0t(e){return e.getVisual("style").opacity}function Ma(e,t){const r=e.getItemVisual(t,"style");if(r){const n=e.getVisual("drawType");return r[n]}}function Ea(e,t){const r=e.getItemVisual(t,"style");return r&&r.opacity}var Oie=1,kie=2;function cc(e,t,r){this._labelsMesh=new v4,this._labelTextureSurface=new D2({width:512,height:512,devicePixelRatio:r.getDevicePixelRatio(),onupdate:function(){r.getZr().refresh()}}),this._api=r,this._labelsMesh.material.set("textureAtlas",this._labelTextureSurface.getTexture())}cc.prototype.getLabelPosition=function(e,t,r){return[0,0,0]};cc.prototype.getLabelDistance=function(e,t,r){return 0};cc.prototype.getMesh=function(){return this._labelsMesh};cc.prototype.updateData=function(e,t,r){t==null&&(t=0),r==null&&(r=e.count()),(!this._labelsVisibilitiesBits||this._labelsVisibilitiesBits.length!==r-t)&&(this._labelsVisibilitiesBits=new Uint8Array(r-t));for(var n=["label","show"],a=["emphasis","label","show"],i=t;i<r;i++){var o=e.getItemModel(i),s=o.get(n),l=o.get(a);l==null&&(l=s);var u=(s?Oie:0)|(l?kie:0);this._labelsVisibilitiesBits[i-t]=u}this._start=t,this._end=r,this._data=e};cc.prototype.updateLabels=function(e){if(this._data){e=e||[];for(var t=e.length>0,r={},n=0;n<e.length;n++)r[e[n]]=!0;this._labelsMesh.geometry.convertToDynamicArray(!0),this._labelTextureSurface.clear();for(var a=["label"],i=["emphasis","label"],o=this._data.hostModel,s=this._data,l=o.getModel(a),u=o.getModel(i,l),c={left:"right",right:"left",top:"center",bottom:"center"},f={left:"middle",right:"middle",top:"bottom",bottom:"top"},d=this._start;d<this._end;d++){var h=!1;t&&r[d]&&(h=!0);var v=this._labelsVisibilitiesBits[d-this._start]&(h?kie:Oie);if(v){var p=s.getItemModel(d),g=p.getModel(h?i:a,h?u:l),m=g.get("distance")||0,y=g.get("position"),_=this._api.getDevicePixelRatio(),w=o.getFormattedLabel(d,h?"emphasis":"normal");if(w==null||w==="")return;var x=new pr({style:Xr(g,{text:w,fill:g.get("color")||Ma(s,d)||"#000",align:"left",verticalAlign:"top",opacity:Sr.firstNotNull(g.get("opacity"),Ea(s,d),1)})}),S=x.getBoundingRect(),T=1.2;S.height*=T;var A=this._labelTextureSurface.add(x),C=c[y]||"center",M=f[y]||"bottom";this._labelsMesh.geometry.addSprite(this.getLabelPosition(d,y,m),[S.width*_,S.height*_],A,C,M,this.getLabelDistance(d,y,m)*_)}}this._labelsMesh.material.set("uvScale",this._labelTextureSurface.getCoordsScale()),this._labelTextureSurface.getZr().refreshImmediately(),this._labelsMesh.geometry.convertToTypedArray(),this._labelsMesh.geometry.dirty()}};cc.prototype.dispose=function(){this._labelTextureSurface.dispose()};var Wi=Jn.vec3;ue.Shader.import(WT);function Eg(e){this.rootNode=new ue.Node,this._triangulationResults={},this._shadersMap=ue.COMMON_SHADERS.filter(function(r){return r!=="shadow"}).reduce(function(r,n){return r[n]=ue.createShader("ecgl."+n),r},{}),this._linesShader=ue.createShader("ecgl.meshLines3D");var t={};ue.COMMON_SHADERS.forEach(function(r){t[r]=new ue.Material({shader:ue.createShader("ecgl."+r)})}),this._groundMaterials=t,this._groundMesh=new ue.Mesh({geometry:new ue.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new cc(512,512,e),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=e}Eg.prototype={constructor:Eg,extrudeY:!0,update:function(e,t,r,n,a){var i=e.getData();n==null&&(n=0),a==null&&(a=i.count()),this._startIndex=n,this._endIndex=a-1,this._triangulation(e,n,a);var o=this._getShader(e.get("shading"));this._prepareMesh(e,o,r,n,a),this.rootNode.updateWorldTransform(),this._updateRegionMesh(e,r,n,a);var s=e.coordinateSystem;s.type==="geo3D"&&this._updateGroundPlane(e,s,r);var l=this;this._labelsBuilder.updateData(i,n,a),this._labelsBuilder.getLabelPosition=function(u,c,f){var d=i.getName(u),h,v=f;if(s.type==="geo3D"){var p=s.getRegion(d);if(!p)return[NaN,NaN,NaN];h=p.getCenter();var g=s.dataToPoint([h[0],h[1],v]);return g}else var m=l._triangulationResults[u-l._startIndex],h=l.extrudeY?[(m.max[0]+m.min[0])/2,m.max[1]+v,(m.max[2]+m.min[2])/2]:[(m.max[0]+m.min[0])/2,(m.max[1]+m.min[1])/2,m.max[2]+v]},this._data=i,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(e),this._lastHoverDataIndex=0},_initMeshes:function(){var e=this;function t(){var a=new ue.Mesh({name:"Polygon",material:new ue.Material({shader:e._shadersMap.lambert}),geometry:new ue.Geometry({sortTriangles:!0,dynamic:!0}),culling:!1,ignorePicking:!0,renderNormal:!0});return Object.assign(a.geometry,_4),a}var r=t(),n=new ue.Mesh({material:new ue.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new gv({useNativeLine:!1})});this.rootNode.add(r),this.rootNode.add(n),r.material.define("both","VERTEX_COLOR"),r.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=r,this._linesMesh=n,this.rootNode.add(this._groundMesh)},_getShader:function(e){var t=this._shadersMap[e];return t||(t=this._shadersMap.lambert),t.__shading=e,t},_prepareMesh:function(e,t,r,n,a){for(var i=0,o=0,s=0,l=0,u=n;u<a;u++){var c=this._getRegionPolygonInfo(u),f=this._getRegionLinesInfo(u,e,this._linesMesh.geometry);i+=c.vertexCount,o+=c.triangleCount,s+=f.vertexCount,l+=f.triangleCount}var d=this._polygonMesh,h=d.geometry;["position","normal","texcoord0","color"].forEach(function(v){h.attributes[v].init(i)}),h.indices=i>65535?new Uint32Array(o*3):new Uint16Array(o*3),d.material.shader!==t&&d.material.attachShader(t,!0),ue.setMaterialFromModel(t.__shading,d.material,e,r),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(i),this._vertexRangeOfDataIndex=new Uint32Array((a-n)*2)},_updateRegionMesh:function(e,t,r,n){for(var a=e.getData(),i=0,o=0,s=!1,S=this._polygonMesh,l=this._linesMesh,u=r;u<n;u++){var c=e.getRegionModel(u),f=c.getModel("itemStyle"),d=Sr.firstNotNull(Ma(a,u),f.get("color"),"#fff"),h=Sr.firstNotNull(Ea(a,u),f.get("opacity"),1),v=ue.parseColor(d),p=ue.parseColor(f.get("borderColor"));v[3]*=h,p[3]*=h;var g=v[3]<.99;S.material.set("color",[1,1,1,1]),s=s||g;for(var m=Sr.firstNotNull(c.get("height",!0),e.get("regionHeight")),y=this._updatePolygonGeometry(e,S.geometry,u,m,i,o,v),_=i;_<y.vertexOffset;_++)this._dataIndexOfVertex[_]=u;this._vertexRangeOfDataIndex[(u-r)*2]=i,this._vertexRangeOfDataIndex[(u-r)*2+1]=y.vertexOffset,i=y.vertexOffset,o=y.triangleOffset;var w=f.get("borderWidth"),x=w>0;x&&(w*=t.getDevicePixelRatio(),this._updateLinesGeometry(l.geometry,e,u,m,w,e.coordinateSystem.transform)),l.invisible=!x,l.material.set({color:p})}var S=this._polygonMesh;S.material.transparent=s,S.material.depthMask=!s,S.geometry.updateBoundingBox(),S.frontFace=this.extrudeY?ue.Mesh.CCW:ue.Mesh.CW,S.material.get("normalMap")&&S.geometry.generateTangents(),S.seriesIndex=e.seriesIndex,S.on("mousemove",this._onmousemove,this),S.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(e){var t=e.getModel("debug.wireframe");if(t.get("show")){var r=ue.parseColor(t.get("lineStyle.color")||"rgba(0,0,0,0.5)"),n=Sr.firstNotNull(t.get("lineStyle.width"),1),a=this._polygonMesh;a.geometry.generateBarycentric(),a.material.define("both","WIREFRAME_TRIANGLE"),a.material.set("wireframeLineColor",r),a.material.set("wireframeLineWidth",n)}},_onmousemove:function(e){var t=this._dataIndexOfVertex[e.triangle[0]];t==null&&(t=-1),t!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(t),this._labelsBuilder.updateLabels([t])),this._lastHoverDataIndex=t,this._polygonMesh.dataIndex=t},_onmouseout:function(e){e.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(e,t,r){var n=e.getModel("groundPlane",e);if(this._groundMesh.invisible=!n.get("show",!0),!this._groundMesh.invisible){var a=e.get("shading"),i=this._groundMaterials[a];i||(i=this._groundMaterials.lambert),ue.setMaterialFromModel(a,i,n,r),i.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=i,this._groundMesh.material.set("color",ue.parseColor(n.get("color"))),this._groundMesh.scale.set(t.size[0],t.size[2],1)}},_triangulation:function(e,t,r){this._triangulationResults=[];for(var n=[1/0,1/0,1/0],a=[-1/0,-1/0,-1/0],i=e.coordinateSystem,o=t;o<r;o++){for(var s=[],l=e.getRegionPolygonCoords(o),u=0;u<l.length;u++){var c=l[u].exterior,f=l[u].interiors,d=[],h=[];if(!(c.length<3)){for(var v=0,p=0;p<c.length;p++){var g=c[p];d[v++]=g[0],d[v++]=g[1]}for(var p=0;p<f.length;p++)if(!(f[p].length<3)){for(var m=d.length/2,y=0;y<f[p].length;y++){var g=f[p][y];d.push(g[0]),d.push(g[1])}h.push(m)}for(var _=Die(d,h),w=new Float64Array(d.length/2*3),x=[],S=[1/0,1/0,1/0],T=[-1/0,-1/0,-1/0],A=0,p=0;p<d.length;)Wi.set(x,d[p++],0,d[p++]),i&&i.transform&&Wi.transformMat4(x,x,i.transform),Wi.min(S,S,x),Wi.max(T,T,x),w[A++]=x[0],w[A++]=x[1],w[A++]=x[2];Wi.min(n,n,S),Wi.max(a,a,T),s.push({points:w,indices:_,min:S,max:T})}}this._triangulationResults.push(s)}this._geoBoundingBox=[n,a]},_getRegionPolygonInfo:function(e){for(var t=this._triangulationResults[e-this._startIndex],r=0,n=0,a=0;a<t.length;a++)r+=t[a].points.length/3,n+=t[a].indices.length/3;var i=r*2+r*4,o=n*2+r*2;return{vertexCount:i,triangleCount:o}},_updatePolygonGeometry:function(e,t,r,n,a,i,o){var s=e.get("projectUVOnGround"),l=t.attributes.position,u=t.attributes.normal,c=t.attributes.texcoord0,f=t.attributes.color,d=this._triangulationResults[r-this._startIndex],h=f.value&&o,v=t.indices,p=this.extrudeY?1:2,g=this.extrudeY?2:1,m=[this.rootNode.worldTransform.x.len(),this.rootNode.worldTransform.y.len(),this.rootNode.worldTransform.z.len()],y=Wi.mul([],this._geoBoundingBox[0],m),_=Wi.mul([],this._geoBoundingBox[1],m),w=Math.max(_[0]-y[0],_[2]-y[2]);function x(Z,ne,re){for(var ie=Z.points,Y=ie.length,q=[],oe=[],ve=0;ve<Y;ve+=3)q[0]=ie[ve],q[p]=ne,q[g]=ie[ve+2],oe[0]=(ie[ve]*m[0]-y[0])/w,oe[1]=(ie[ve+2]*m[g]-y[2])/w,l.set(a,q),h&&f.set(a,o),c.set(a++,oe)}function S(Z,ne,re){var ie=a;x(Z,ne);for(var Y=Z.indices.length,q=0;q<Y;q++)v[i*3+q]=Z.indices[q]+ie;i+=Z.indices.length/3}for(var T=this.extrudeY?[0,1,0]:[0,0,1],A=Wi.negate([],T),C=0;C<d.length;C++){var M=a,E=d[C];S(E,0),S(E,n);for(var D=E.points.length/3,P=0;P<D;P++)u.set(M+P,A),u.set(M+P+D,T);for(var L=[0,3,1,1,3,2],I=[[],[],[],[]],O=[],R=[],B=[],k=[],z=0,P=0;P<D;P++){for(var $=(P+1)%D,j=(E.points[$*3]-E.points[P*3])*m[0],X=(E.points[$*3+2]-E.points[P*3+2])*m[g],Q=Math.sqrt(j*j+X*X),se=0;se<4;se++){var ee=se===0||se===3,K=(ee?P:$)*3;I[se][0]=E.points[K],I[se][p]=se>1?n:0,I[se][g]=E.points[K+2],l.set(a+se,I[se]),s?(k[0]=(E.points[K]*m[0]-y[0])/w,k[1]=(E.points[K+2]*m[g]-y[g])/w):(k[0]=(ee?z:z+Q)/w,k[1]=(I[se][p]*m[p]-y[p])/w),c.set(a+se,k)}Wi.sub(O,I[1],I[0]),Wi.sub(R,I[3],I[0]),Wi.cross(B,O,R),Wi.normalize(B,B);for(var se=0;se<4;se++)u.set(a+se,B),h&&f.set(a+se,o);for(var se=0;se<6;se++)v[i*3+se]=L[se]+a;a+=4,i+=2,z+=Q}}return t.dirty(),{vertexOffset:a,triangleOffset:i}},_getRegionLinesInfo:function(e,t,r){var n=0,a=0,i=t.getRegionModel(e),o=i.getModel("itemStyle"),s=o.get("borderWidth");if(s>0){var l=t.getRegionPolygonCoords(e);l.forEach(function(u){var c=u.exterior,f=u.interiors;n+=r.getPolylineVertexCount(c),a+=r.getPolylineTriangleCount(c);for(var d=0;d<f.length;d++)n+=r.getPolylineVertexCount(f[d]),a+=r.getPolylineTriangleCount(f[d])},this)}return{vertexCount:n,triangleCount:a}},_updateLinesGeometry:function(e,t,r,n,a,i){function o(u){for(var c=new Float64Array(u.length*3),f=0,d=[],h=0;h<u.length;h++)d[0]=u[h][0],d[1]=n+.1,d[2]=u[h][1],i&&Wi.transformMat4(d,d,i),c[f++]=d[0],c[f++]=d[1],c[f++]=d[2];return c}var s=[1,1,1,1],l=t.getRegionPolygonCoords(r);l.forEach(function(u){var c=u.exterior,f=u.interiors;e.addPolyline(o(c),s,a);for(var d=0;d<f.length;d++)e.addPolyline(o(f[d]),s,a)})},highlight:function(e){var t=this._data;if(t){var r=t.getItemModel(e),n=r.getModel(["emphasis","itemStyle"]),a=n.get("color"),i=Sr.firstNotNull(n.get("opacity"),Ea(t,e),1);if(a==null){var o=Ma(t,e);a=Nh(o,-.4)}i==null&&(i=Ea(t,e));var s=ue.parseColor(a);s[3]*=i,this._setColorOfDataIndex(t,e,s)}},downplay:function(e){var t=this._data;if(t){var r=t.getItemModel(e),n=Sr.firstNotNull(Ma(t,e),r.get(["itemStyle","color"]),"#fff"),a=Sr.firstNotNull(Ea(t,e),r.get(["itemStyle","opacity"]),1),i=ue.parseColor(n);i[3]*=a,this._setColorOfDataIndex(t,e,i)}},dispose:function(){this._labelsBuilder.dispose()},_setColorOfDataIndex:function(e,t,r){if(!(t<this._startIndex&&t>this._endIndex)){t-=this._startIndex;for(var n=this._vertexRangeOfDataIndex[t*2];n<this._vertexRangeOfDataIndex[t*2+1];n++)this._polygonMesh.geometry.attributes.color.set(n,r);this._polygonMesh.geometry.dirty(),this._api.getZr().refresh()}}};const T0t=rn.extend({type:"geo3D",__ecgl__:!0,init:function(e,t){this._geo3DBuilder=new Eg(t),this.groupGL=new ue.Node,this._lightRoot=new ue.Node,this._sceneHelper=new Lf(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new UT({zr:t.getZr()}),this._control.init()},render:function(e,t,r){this.groupGL.add(this._geo3DBuilder.rootNode);var n=e.coordinateSystem;if(!(!n||!n.viewGL)){n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL);var a=this._control;a.setViewGL(n.viewGL);var i=e.getModel("viewControl");a.setFromViewControlModel(i,0),this._sceneHelper.setScene(n.viewGL.scene),this._sceneHelper.updateLight(e),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._geo3DBuilder.update(e,t,r,0,e.getData().count());var o=n.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse(function(s){s.material&&s.material[o]("fragment","SRGB_DECODE")}),a.off("update"),a.on("update",function(){r.dispatchAction({type:"geo3DChangeCamera",alpha:a.getAlpha(),beta:a.getBeta(),distance:a.getDistance(),center:a.getCenter(),from:this.uid,geo3DId:e.id})}),a.update()}},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r)},dispose:function(){this._control.dispose(),this._geo3DBuilder.dispose()}});var C0t={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function E0t(e,t){if(e==="world"){var r=C0t[t.name];if(r){var n=[r[0],r[1]];t.setCenter(n)}}}var M0t=Jn.vec3,bp=Jn.mat4,D0t=[xq,E0t];function R2(e,t,r,n,a){this.name=e,this.map=t,this.regionHeight=0,this.regions=[],this._nameCoordMap={},this.loadGeoJson(r,n,a),this.transform=bp.identity(new Float64Array(16)),this.invTransform=bp.identity(new Float64Array(16)),this.extrudeY=!0,this.altitudeAxis}R2.prototype={constructor:R2,type:"geo3D",dimensions:["lng","lat","alt"],containPoint:function(){},loadGeoJson:function(e,t,r){var n=X0||X0;try{this.regions=e?n(e):[]}catch(u){throw`Invalid geoJson format
|
||
`+u}t=t||{},r=r||{};for(var a=this.regions,i={},o=0;o<a.length;o++){var s=a[o].name;s=r[s]||s,a[o].name=s,i[s]=a[o],this.addGeoCoord(s,a[o].getCenter());var l=t[s];l&&a[o].transformTo(l.left,l.top,l.width,l.height)}this._regionsMap=i,this._geoRect=null,D0t.forEach(function(u){u(this)},this)},getGeoBoundingRect:function(){if(this._geoRect)return this._geoRect;for(var e,t=this.regions,r=0;r<t.length;r++){var n=t[r].getBoundingRect();e=e||n.clone(),e.union(n)}return this._geoRect=e||new Xt(0,0,0,0)},addGeoCoord:function(e,t){this._nameCoordMap[e]=t},getRegion:function(e){return this._regionsMap[e]},getRegionByCoord:function(e){for(var t=this.regions,r=0;r<t.length;r++)if(t[r].contain(e))return t[r]},setSize:function(e,t,r){this.size=[e,t,r];var n=this.getGeoBoundingRect(),a=e/n.width,i=-r/n.height,o=-e/2-n.x*a,s=r/2-n.y*i,l=this.extrudeY?[o,0,s]:[o,s,0],u=this.extrudeY?[a,1,i]:[a,i,1],c=this.transform;bp.identity(c),bp.translate(c,c,l),bp.scale(c,c,u),bp.invert(this.invTransform,c)},dataToPoint:function(e,t){t=t||[];var r=this.extrudeY?1:2,n=this.extrudeY?2:1,a=e[2];return isNaN(a)&&(a=0),t[0]=e[0],t[n]=e[1],this.altitudeAxis?t[r]=this.altitudeAxis.dataToCoord(a):t[r]=0,t[r]+=this.regionHeight,M0t.transformMat4(t,t,this.transform),t},pointToData:function(e,t){}};function P0t(e,t){var r=e.getBoxLayoutParams(),n=kn(r,{width:t.getWidth(),height:t.getHeight()});n.y=t.getHeight()-n.y-n.height,this.viewGL.setViewport(n.x,n.y,n.width,n.height,t.getDevicePixelRatio());var a=this.getGeoBoundingRect(),i=a.width/a.height*(e.get("aspectScale")||.75),o=e.get("boxWidth"),s=e.get("boxDepth"),l=e.get("boxHeight");l==null&&(l=5),isNaN(o)&&isNaN(s)&&(o=100),isNaN(s)?s=o/i:isNaN(o)&&(o=s/i),this.setSize(o,l,s),this.regionHeight=e.get("regionHeight"),this.altitudeAxis&&this.altitudeAxis.setExtent(0,Math.max(l-this.regionHeight,0))}function L0t(e,t){var r=[1/0,-1/0];if(e.eachSeries(function(a){if(a.coordinateSystem===this&&a.type!=="series.map3D"){var i=a.getData(),o=a.coordDimToDataDim("alt"),s=o&&o[0];if(s){var l=i.getDataExtent(s,!0);r[0]=Math.min(r[0],l[0]),r[1]=Math.max(r[1],l[1])}}},this),r&&isFinite(r[1]-r[0])){var n=eT(r,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new gi("altitude",n),this.resize(this.model,t)}}var fW=0,Nie={dimensions:R2.prototype.dimensions,create:function(e,t){var r=[];if(!Ix)throw new Error("geo3D component depends on geo component");function n(a,i){var o=Nie.createGeo3D(a);a.__viewGL=a.__viewGL||new an,o.viewGL=a.__viewGL,a.coordinateSystem=o,o.model=a,r.push(o),o.resize=P0t,o.resize(a,t),o.update=L0t}return e.eachComponent("geo3D",function(a,i){n(a)}),e.eachSeriesByType("map3D",function(a,i){var o=a.get("coordinateSystem");o==null&&(o="geo3D"),o==="geo3D"&&n(a)}),e.eachSeries(function(a){if(a.get("coordinateSystem")==="geo3D"){if(a.type==="series.map3D")return;var i=a.getReferringComponents("geo3D").models[0];if(i||(i=e.getComponent("geo3D")),!i)throw new Error('geo "'+Sr.firstNotNull(a.get("geo3DIndex"),a.get("geo3DId"),0)+'" not found');a.coordinateSystem=i.coordinateSystem}}),r},createGeo3D:function(e){var t=e.get("map"),r;return typeof t=="string"?(r=t,t=Ix(t)):t&&t.features&&(t={geoJson:t}),r==null&&(r="GEO_ANONYMOUS_"+fW++),new R2(r+fW++,r,t&&t.geoJson,t&&t.specialAreas,e.get("nameMap"))}};const Bie=Nie;function Fie(e){e.registerComponentModel(l0t),e.registerComponentView(T0t),e.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},function(t,r){r.eachComponent({mainType:"geo3D",query:t},function(n){n.setView(t)})}),e.registerCoordinateSystem("geo3D",Bie)}Dt(Fie);function dW(e,t){e.id=e.id||e.name||t+""}var Zh=sr.extend({type:"globe",layoutMode:"box",coordinateSystem:null,init:function(){Zh.superApply(this,"init",arguments),W(this.option.layers,function(e,t){st(e,this.defaultLayerOption),dW(e,t)},this)},mergeOption:function(e){var t=this.option.layers;this.option.layers=null,Zh.superApply(this,"mergeOption",arguments);function r(o){return Co(o,function(s,l,u){return dW(l,u),s[l.id]=l,s},{})}if(t&&t.length){var n=r(e.layers),a=r(t);for(var i in n)a[i]?st(a[i],n[i],!0):t.push(e.layers[i]);this.option.layers=t}W(this.option.layers,function(o){st(o,this.defaultLayerOption)},this)},optionUpdated:function(){this.updateDisplacementHash()},defaultLayerOption:{show:!0,type:"overlay"},defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",baseColor:"#fff",baseTexture:"",heightTexture:"",displacementTexture:"",displacementScale:0,displacementQuality:"medium",globeRadius:100,globeOuterRadius:150,shading:"lambert",light:{main:{time:""}},atmosphere:{show:!1,offset:5,color:"#ffffff",glowPower:6,innerGlowPower:2},viewControl:{autoRotate:!0,panSensitivity:0,targetCoord:null},layers:[]},setDisplacementData:function(e,t,r){this.displacementData=e,this.displacementWidth=t,this.displacementHeight=r},getDisplacementTexture:function(){return this.get("displacementTexture")||this.get("heightTexture")},getDisplacemenScale:function(){var e=this.getDisplacementTexture(),t=this.get("displacementScale");return(!e||e==="none")&&(t=0),t},hasDisplacement:function(){return this.getDisplacemenScale()>0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var e=this.getDisplacementTexture(),t=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==e||this._displacementScale!==t,this._displacementTexture=e,this._displacementScale=t},isDisplacementChanged:function(){return this._displacementChanged}});st(Zh.prototype,HT);st(Zh.prototype,um);st(Zh.prototype,cm);st(Zh.prototype,dm);const I0t=Zh;var Vie=Math.PI,is=Math.sin,Bu=Math.cos,zie=Math.tan,Hie=Math.asin,Gie=Math.atan2,qh=Vie/180,R0t=1e3*60*60*24,O0t=2440588,k0t=2451545;function N0t(e){return e.valueOf()/R0t-.5+O0t}function B0t(e){return N0t(e)-k0t}var O2=qh*23.4397;function F0t(e,t){return Gie(is(e)*Bu(O2)-zie(t)*is(O2),Bu(e))}function V0t(e,t){return Hie(is(t)*Bu(O2)+Bu(t)*is(O2)*is(e))}function z0t(e,t,r){return Gie(is(e),Bu(e)*is(t)-zie(r)*Bu(t))}function H0t(e,t,r){return Hie(is(t)*is(r)+Bu(t)*Bu(r)*Bu(e))}function G0t(e,t){return qh*(280.16+360.9856235*e)-t}function U0t(e){return qh*(357.5291+.98560028*e)}function $0t(e){var t=qh*(1.9148*is(e)+.02*is(2*e)+3e-4*is(3*e)),r=qh*102.9372;return e+t+r+Vie}function W0t(e){var t=U0t(e),r=$0t(t);return{dec:V0t(r,0),ra:F0t(r,0)}}var Uie={};Uie.getPosition=function(e,t,r){var n=qh*-r,a=qh*t,i=B0t(e),o=W0t(i),s=G0t(i,n)-o.ra;return{azimuth:z0t(s,a,o.dec),altitude:H0t(s,a,o.dec)}};const Y0t=Uie,j0t=`@export ecgl.atmosphere.vertex
|
||
attribute vec3 position: POSITION;
|
||
attribute vec3 normal : NORMAL;
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform mat4 normalMatrix : WORLDINVERSETRANSPOSE;
|
||
|
||
varying vec3 v_Normal;
|
||
|
||
void main() {
|
||
v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz);
|
||
gl_Position = worldViewProjection * vec4(position, 1.0);
|
||
}
|
||
@end
|
||
|
||
|
||
@export ecgl.atmosphere.fragment
|
||
uniform mat4 viewTranspose: VIEWTRANSPOSE;
|
||
uniform float glowPower;
|
||
uniform vec3 glowColor;
|
||
|
||
varying vec3 v_Normal;
|
||
|
||
void main() {
|
||
float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);
|
||
gl_FragColor = vec4(glowColor, intensity * intensity);
|
||
}
|
||
@end`;ue.Shader.import(rie);ue.Shader.import(j0t);const K0t=rn.extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(e,t){this.groupGL=new ue.Node,this._sphereGeometry=new ue.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new ue.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new ue.PlaneGeometry,this._earthMesh=new ue.Mesh({renderNormal:!0}),this._atmosphereMesh=new ue.Mesh,this._atmosphereGeometry=new ue.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new ue.Material({shader:new ue.Shader(ue.Shader.source("ecgl.atmosphere.vertex"),ue.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=ue.Mesh.CW,this._lightRoot=new ue.Node,this._sceneHelper=new Lf,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new UT({zr:t.getZr()}),this._control.init(),this._layerMeshes={}},render:function(e,t,r){var n=e.coordinateSystem,a=e.get("shading");n.viewGL.add(this._lightRoot),e.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL),this._sceneHelper.setScene(n.viewGL.scene),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var i=this._earthMesh;i.geometry=this._sphereGeometry;var o="ecgl."+a;(!i.material||i.material.shader.name!==o)&&(i.material=ue.createMaterial(o)),ue.setMaterialFromModel(a,i.material,e,r),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach(function(f){var d=i.material.get(f);d&&(d.flipY=!1)}),i.material.set("color",ue.parseColor(e.get("baseColor")));var s=n.radius*.99;if(i.scale.set(s,s,s),e.get("atmosphere.show")){i.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:e.get("atmosphere.glowPower")||6,glowColor:e.get("atmosphere.color")||"#ffffff"}),i.material.setUniforms({glowPower:e.get("atmosphere.innerGlowPower")||2,glowColor:e.get("atmosphere.color")||"#ffffff"});var l=e.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else i.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var u=i.material.setTextureImage("diffuseMap",e.get("baseTexture"),r,{flipY:!1,anisotropic:8});u&&u.surface&&u.surface.attachToMesh(i);var c=i.material.setTextureImage("bumpMap",e.get("heightTexture"),r,{flipY:!1,anisotropic:8});c&&c.surface&&c.surface.attachToMesh(i),i.material[e.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(e,r),this._displaceVertices(e,r),this._updateViewControl(e,r),this._updateLayers(e,r)},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r)},_updateLayers:function(e,t){var r=e.coordinateSystem,n=e.get("layers"),a=r.radius,i=[],o=[],s=[],l=[];W(n,function(h){var v=new $r(h),p=v.get("type"),g=ue.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8});if(g.surface&&g.surface.attachToMesh(this._earthMesh),p==="blend"){var m=v.get("blendTo"),y=Sr.firstNotNull(v.get("intensity"),1);m==="emission"?(s.push(g),l.push(y)):(i.push(g),o.push(y))}else{var _=v.get("id"),w=this._layerMeshes[_];w||(w=this._layerMeshes[_]=new ue.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var x=v.get("shading");x==="lambert"?(w.material=w.__lambertMaterial||new ue.Material({autoUpdateTextureStatus:!1,shader:ue.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),w.__lambertMaterial=w.material):(w.material=w.__colorMaterial||new ue.Material({autoUpdateTextureStatus:!1,shader:ue.createShader("ecgl.color"),transparent:!0,depthMask:!1}),w.__colorMaterial=w.material),w.material.enableTexture("diffuseMap");var S=v.get("distance"),T=a+(S??r.radius/100);w.scale.set(T,T,T),a=T;var A=this._blankTexture||(this._blankTexture=ue.createBlankTexture("rgba(255, 255, 255, 0)"));w.material.set("diffuseMap",A),ue.loadTexture(v.get("texture"),t,{flipY:!1,anisotropic:8},function(C){C.surface&&C.surface.attachToMesh(w),w.material.set("diffuseMap",C),t.getZr().refresh()}),v.get("show")?this.groupGL.add(w):this.groupGL.remove(w)}},this);var u=this._earthMesh.material;u.define("fragment","LAYER_DIFFUSEMAP_COUNT",i.length),u.define("fragment","LAYER_EMISSIVEMAP_COUNT",s.length),u.set("layerDiffuseMap",i),u.set("layerDiffuseIntensity",o),u.set("layerEmissiveMap",s),u.set("layerEmissionIntensity",l);var c=e.getModel("debug.wireframe");if(c.get("show")){u.define("both","WIREFRAME_TRIANGLE");var f=ue.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)"),d=Sr.firstNotNull(c.get("lineStyle.width"),1);u.set("wireframeLineWidth",d),u.set("wireframeLineColor",f)}else u.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(e,t){var r=e.coordinateSystem,n=e.getModel("viewControl");r.viewGL.camera;var a=this;function i(){return{type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-r.radius,center:o.getCenter(),from:a.uid,globeId:e.id}}var o=this._control;o.setViewGL(r.viewGL);var s=n.get("targetCoord"),l,u;s!=null&&(u=s[0]+90,l=s[1]),o.setFromViewControlModel(n,{baseDistance:r.radius,alpha:l,beta:u}),o.off("update"),o.on("update",function(){t.dispatchAction(i())})},_displaceVertices:function(e,t){var r=e.get("displacementQuality"),n=e.get("debug.wireframe.show"),a=e.coordinateSystem;if(!(!e.isDisplacementChanged()&&r===this._displacementQuality&&n===this._showDebugWireframe)){this._displacementQuality=r,this._showDebugWireframe=n;var i=this._sphereGeometry,o={low:100,medium:200,high:400,ultra:800}[r]||200,s=o/2;(i.widthSegments!==o||n)&&(i.widthSegments=o,i.heightSegments=s,i.build()),this._doDisplaceVertices(i,a),n&&i.generateBarycentric()}},_doDisplaceVertices:function(e,t){var r=e.attributes.position.value,n=e.attributes.texcoord0.value,a=e.__originalPosition;(!a||a.length!==r.length)&&(a=new Float32Array(r.length),a.set(r),e.__originalPosition=a);for(var i=t.displacementWidth,o=t.displacementHeight,s=t.displacementData,l=0;l<e.vertexCount;l++){var u=l*3,c=l*2,f=a[u+1],d=a[u+2],h=a[u+3],v=n[c++],p=n[c++],g=Math.round(v*(i-1)),m=Math.round(p*(o-1)),y=m*i+g,_=s?s[y]:0;r[u+1]=f+f*_,r[u+2]=d+d*_,r[u+3]=h+h*_}e.generateVertexNormals(),e.dirty(),e.updateBoundingBox()},_updateLight:function(e,t){var r=this._earthMesh;this._sceneHelper.updateLight(e);var n=this._sceneHelper.mainLight,a=e.get("light.main.time")||new Date,i=Y0t.getPosition(uo(a),0,0),o=Math.cos(i.altitude);n.position.y=-o*Math.cos(i.azimuth),n.position.x=Math.sin(i.altitude),n.position.z=o*Math.sin(i.azimuth),n.lookAt(r.getWorldPosition())},dispose:function(e,t){this.groupGL.removeAll(),this._control.dispose()}});var X0t=Jn.vec3;function k2(e){this.radius=e,this.viewGL=null,this.altitudeAxis,this.displacementData=null,this.displacementWidth,this.displacementHeight}k2.prototype={constructor:k2,dimensions:["lng","lat","alt"],type:"globe",containPoint:function(){},setDisplacementData:function(e,t,r){this.displacementData=e,this.displacementWidth=t,this.displacementHeight=r},_getDisplacementScale:function(e,t){var r=(e+180)/360*(this.displacementWidth-1),n=(90-t)/180*(this.displacementHeight-1),a=Math.round(r)+Math.round(n)*this.displacementWidth;return this.displacementData[a]},dataToPoint:function(e,t){var r=e[0],n=e[1],a=e[2]||0,i=this.radius;this.displacementData&&(i*=1+this._getDisplacementScale(r,n)),this.altitudeAxis&&(i+=this.altitudeAxis.dataToCoord(a)),r=r*Math.PI/180,n=n*Math.PI/180;var o=Math.cos(n)*i;return t=t||[],t[0]=-o*Math.cos(r+Math.PI),t[1]=Math.sin(n)*i,t[2]=o*Math.sin(r+Math.PI),t},pointToData:function(e,t){var r=e[0],n=e[1],a=e[2],i=X0t.len(e);r/=i,n/=i,a/=i;var o=Math.asin(n),s=Math.atan2(a,-r);s<0&&(s=Math.PI*2+s);var l=o*180/Math.PI,u=s*180/Math.PI-180;return t=t||[],t[0]=u,t[1]=l,t[2]=i-this.radius,this.altitudeAxis&&(t[2]=this.altitudeAxis.coordToData(t[2])),t}};function Z0t(e,t){var r=document.createElement("canvas"),n=r.getContext("2d"),a=e.width,i=e.height;r.width=a,r.height=i,n.drawImage(e,0,0,a,i);for(var o=n.getImageData(0,0,a,i).data,s=new Float32Array(o.length/4),l=0;l<o.length/4;l++){var u=o[l*4];s[l]=u/255*t}return{data:s,width:a,height:i}}function q0t(e,t){var r=e.getBoxLayoutParams(),n=kn(r,{width:t.getWidth(),height:t.getHeight()});n.y=t.getHeight()-n.y-n.height,this.viewGL.setViewport(n.x,n.y,n.width,n.height,t.getDevicePixelRatio()),this.radius=e.get("globeRadius");var a=e.get("globeOuterRadius");this.altitudeAxis&&this.altitudeAxis.setExtent(0,a-this.radius)}function Q0t(e,t){var r=[1/0,-1/0];if(e.eachSeries(function(a){if(a.coordinateSystem===this){var i=a.getData(),o=a.coordDimToDataDim("alt"),s=o&&o[0];if(s){var l=i.getDataExtent(s,!0);r[0]=Math.min(r[0],l[0]),r[1]=Math.max(r[1],l[1])}}},this),r&&isFinite(r[1]-r[0])){var n=eT(r,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new gi("altitude",n),this.resize(this.model,t)}}var J0t={dimensions:k2.prototype.dimensions,create:function(e,t){var r=[];return e.eachComponent("globe",function(n){n.__viewGL=n.__viewGL||new an;var a=new k2;a.viewGL=n.__viewGL,n.coordinateSystem=a,a.model=n,r.push(a),a.resize=q0t,a.resize(n,t),a.update=Q0t}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="globe"){var a=n.getReferringComponents("globe").models[0];if(a||(a=e.getComponent("globe")),!a)throw new Error('globe "'+Sr.firstNotNull(n.get("globe3DIndex"),n.get("globe3DId"),0)+'" not found');var i=a.coordinateSystem;n.coordinateSystem=i}}),e.eachComponent("globe",function(n,a){var i=n.coordinateSystem,o=n.getDisplacementTexture(),s=n.getDisplacemenScale();if(n.isDisplacementChanged()){if(n.hasDisplacement()){var l=!0;ue.loadTexture(o,t,function(u){var c=u.image,f=Z0t(c,s);n.setDisplacementData(f.data,f.width,f.height),l||t.dispatchAction({type:"globeUpdateDisplacment"})}),l=!1}else i.setDisplacementData(null,0,0);i.setDisplacementData(n.displacementData,n.displacementWidth,n.displacementHeight)}}),r}};const e_t=J0t;function t_t(e){e.registerComponentModel(I0t),e.registerComponentView(K0t),e.registerCoordinateSystem("globe",e_t),e.registerAction({type:"globeChangeCamera",event:"globecamerachanged",update:"series:updateCamera"},function(t,r){r.eachComponent({mainType:"globe",query:t},function(n){n.setView(t)})}),e.registerAction({type:"globeUpdateDisplacment",event:"globedisplacementupdated",update:"update"},function(t,r){})}Dt(t_t);var hW=["zoom","center","pitch","bearing"],b4=sr.extend({type:"mapbox3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,style:"mapbox://styles/mapbox/light-v9",center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMapboxCameraOption:function(){var e=this;return hW.reduce(function(t,r){return t[r]=e.get(r),t},{})},setMapboxCameraOption:function(e){e!=null&&hW.forEach(function(t){e[t]!=null&&(this.option[t]=e[t])},this)},getMapbox:function(){return this._mapbox},setMapbox:function(e){this._mapbox=e}});st(b4.prototype,um);st(b4.prototype,cm);const r_t=b4;function Yf(e,t){if(this.id=e,this.zr=t,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!mapboxgl)throw new Error("Mapbox GL library must be included. See https://www.mapbox.com/mapbox-gl-js/api/");this._mapbox=new mapboxgl.Map({container:this.dom}),this._initEvents()}Yf.prototype.setUnpainted=function(){};Yf.prototype.resize=function(){this._mapbox.resize()};Yf.prototype.getMapbox=function(){return this._mapbox};Yf.prototype.clear=function(){};Yf.prototype.refresh=function(){this._mapbox.resize()};var $ie=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","wheel","touchstart","touchend","touchmove","touchcancel"];Yf.prototype._initEvents=function(){var e=this._mapbox.getCanvasContainer();this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},$ie.forEach(function(t){this._handlers[t]=function(r){var n={};for(var a in r)n[a]=r[a];n.bubbles=!1;var i=new r.constructor(r.type,n);e.dispatchEvent(i)},this.zr.dom.addEventListener(t,this._handlers[t])},this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)};Yf.prototype.dispose=function(){$ie.forEach(function(e){this.zr.dom.removeEventListener(e,this._handlers[e])},this)};const Wie=`
|
||
@export ecgl.displayShadow.vertex
|
||
|
||
@import ecgl.common.transformUniforms
|
||
|
||
@import ecgl.common.uv.header
|
||
|
||
@import ecgl.common.attributes
|
||
|
||
varying vec3 v_WorldPosition;
|
||
|
||
varying vec3 v_Normal;
|
||
|
||
void main()
|
||
{
|
||
@import ecgl.common.uv.main
|
||
v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);
|
||
|
||
v_WorldPosition = (world * vec4(position, 1.0)).xyz;
|
||
gl_Position = worldViewProjection * vec4(position, 1.0);
|
||
}
|
||
|
||
@end
|
||
|
||
|
||
@export ecgl.displayShadow.fragment
|
||
|
||
@import ecgl.common.uv.fragmentHeader
|
||
|
||
varying vec3 v_Normal;
|
||
varying vec3 v_WorldPosition;
|
||
|
||
uniform float roughness: 0.2;
|
||
|
||
#ifdef DIRECTIONAL_LIGHT_COUNT
|
||
@import clay.header.directional_light
|
||
#endif
|
||
|
||
@import ecgl.common.ssaoMap.header
|
||
|
||
@import clay.plugin.compute_shadow_map
|
||
|
||
void main()
|
||
{
|
||
float shadow = 1.0;
|
||
|
||
@import ecgl.common.ssaoMap.main
|
||
|
||
#if defined(DIRECTIONAL_LIGHT_COUNT) && defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)
|
||
float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];
|
||
if(shadowEnabled)
|
||
{
|
||
computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);
|
||
}
|
||
for (int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) {
|
||
shadow = min(shadow, shadowContribsDir[i] * 0.5 + 0.5);
|
||
}
|
||
#endif
|
||
|
||
shadow *= 0.5 + ao * 0.5;
|
||
shadow = clamp(shadow, 0.0, 1.0);
|
||
|
||
gl_FragColor = vec4(vec3(0.0), 1.0 - shadow);
|
||
}
|
||
|
||
@end`;ue.Shader.import(Wie);const n_t=rn.extend({type:"mapbox3D",__ecgl__:!0,init:function(e,t){var r=t.getZr();this._zrLayer=new Yf("mapbox3D",r),r.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new ue.Node,this._sceneHelper=new Lf(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var n=this._zrLayer.getMapbox(),a=this._dispatchInteractAction.bind(this,t,n);["zoom","rotate","drag","pitch","rotate","move"].forEach(function(i){n.on(i,a)}),this._groundMesh=new ue.Mesh({geometry:new ue.PlaneGeometry,material:new ue.Material({shader:new ue.Shader({vertex:ue.Shader.source("ecgl.displayShadow.vertex"),fragment:ue.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},render:function(e,t,r){var n=this._zrLayer.getMapbox(),a=e.get("style"),i=JSON.stringify(a);i!==this._oldStyleStr&&a&&n.setStyle(a),this._oldStyleStr=i,n.setCenter(e.get("center")),n.setZoom(e.get("zoom")),n.setPitch(e.get("pitch")),n.setBearing(e.get("bearing")),e.setMapbox(n);var o=e.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(e),o.viewGL.setPostEffect(e.getModel("postEffect"),r),o.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._mapbox3DModel=e},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r),e.coordinateSystem.viewGL.scene.traverse(function(i){i.material&&(i.material.define("fragment","NORMAL_UP_AXIS",2),i.material.define("fragment","NORMAL_FRONT_AXIS",1))})},updateCamera:function(e,t,r,n){e.coordinateSystem.setCameraOption(n),this._updateGroundMesh(),r.getZr().refresh()},_dispatchInteractAction:function(e,t,r){e.dispatchAction({type:"mapbox3DChangeCamera",pitch:t.getPitch(),zoom:t.getZoom(),center:t.getCenter().toArray(),bearing:t.getBearing(),mapbox3DId:this._mapbox3DModel&&this._mapbox3DModel.id})},_updateGroundMesh:function(){if(this._mapbox3DModel){var e=this._mapbox3DModel.coordinateSystem,t=e.dataToPoint(e.center);this._groundMesh.position.set(t[0],t[1],-.001);var r=new ue.Plane(new ue.Vector3(0,0,1),0),n=e.viewGL.camera.castRay(new ue.Vector2(-1,-1)),a=e.viewGL.camera.castRay(new ue.Vector2(1,1)),i=n.intersectPlane(r),o=a.intersectPlane(r),s=i.dist(o)/e.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(e,t){this._zrLayer&&this._zrLayer.dispose(),t.getZr().painter.delLayer(-1e3)}});var Cc=Jn.mat4,uy=512,CD=.6435011087932844,Yi=Math.PI,Qv=1/10;function Mg(){this.width=0,this.height=0,this.altitudeScale=1,this.boxHeight="auto",this.altitudeExtent,this.bearing=0,this.pitch=0,this.center=[0,0],this._origin,this.zoom=0,this._initialZoom,this.maxPitch=60,this.zoomOffset=0}Mg.prototype={constructor:Mg,dimensions:["lng","lat","alt"],containPoint:function(){},setCameraOption:function(e){this.bearing=e.bearing,this.pitch=e.pitch,this.center=e.center,this.zoom=e.zoom,this._origin||(this._origin=this.projectOnTileWithScale(this.center,uy)),this._initialZoom==null&&(this._initialZoom=this.zoom),this.updateTransform()},updateTransform:function(){if(this.height){var e=.5/Math.tan(CD/2)*this.height*Qv,t=Math.max(Math.min(this.pitch,this.maxPitch),0)/180*Math.PI,r=CD/2,n=Math.PI/2+t,a=Math.sin(r)*e/Math.sin(Math.PI-n-r),i=Math.cos(Math.PI/2-t)*a+e,o=i*1.1;this.pitch>50&&(o=1e3);var s=[];Cc.perspective(s,CD,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(s),this.viewGL.camera.decomposeProjectionMatrix();var s=Cc.identity([]),l=this.dataToPoint(this.center);Cc.scale(s,s,[1,-1,1]),Cc.translate(s,s,[0,0,-e]),Cc.rotateX(s,s,t),Cc.rotateZ(s,s,-this.bearing/180*Math.PI),Cc.translate(s,s,[-l[0]*this.getScale()*Qv,-l[1]*this.getScale()*Qv,0]),this.viewGL.camera.viewMatrix.array=s;var u=[];Cc.invert(u,s),this.viewGL.camera.worldTransform.array=u,this.viewGL.camera.decomposeWorldTransform();var c=uy*this.getScale(),f;if(this.altitudeExtent&&!isNaN(this.boxHeight)){var d=this.altitudeExtent[1]-this.altitudeExtent[0];f=this.boxHeight/d*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else f=c/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Qv;this.viewGL.rootNode.scale.set(this.getScale()*Qv,this.getScale()*Qv,f)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(e,t){return this.projectOnTileWithScale(e,this.getScale()*uy,t)},projectOnTileWithScale:function(e,t,r){var n=e[0],a=e[1],i=n*Yi/180,o=a*Yi/180,s=t*(i+Yi)/(2*Yi),l=t*(Yi-Math.log(Math.tan(Yi/4+o*.5)))/(2*Yi);return r=r||[],r[0]=s,r[1]=l,r},unprojectFromTile:function(e,t){return this.unprojectOnTileWithScale(e,this.getScale()*uy,t)},unprojectOnTileWithScale:function(e,t,r){var n=e[0],a=e[1],i=n/t*(2*Yi)-Yi,o=2*(Math.atan(Math.exp(Yi-a/t*(2*Yi)))-Yi/4);return r=r||[],r[0]=i*180/Yi,r[1]=o*180/Yi,r},dataToPoint:function(e,t){return t=this.projectOnTileWithScale(e,uy,t),t[0]-=this._origin[0],t[1]-=this._origin[1],t[2]=isNaN(e[2])?0:e[2],isNaN(e[2])||(t[2]=e[2],this.altitudeExtent&&(t[2]-=this.altitudeExtent[0])),t}};function z_(){Mg.apply(this,arguments)}z_.prototype=new Mg;z_.prototype.constructor=z_;z_.prototype.type="mapbox3D";function Yie(e,t,r){function n(i,o){var s=o.getWidth(),l=o.getHeight(),u=o.getDevicePixelRatio();this.viewGL.setViewport(0,0,s,l,u),this.width=s,this.height=l,this.altitudeScale=i.get("altitudeScale"),this.boxHeight=i.get("boxHeight")}function a(i,o){if(this.model.get("boxHeight")!=="auto"){var s=[1/0,-1/0];i.eachSeries(function(l){if(l.coordinateSystem===this){var u=l.getData(),c=l.coordDimToDataDim("alt")[0];if(c){var f=u.getDataExtent(c,!0);s[0]=Math.min(s[0],f[0]),s[1]=Math.max(s[1],f[1])}}},this),s&&isFinite(s[1]-s[0])&&(this.altitudeExtent=s)}}return{dimensions:t.prototype.dimensions,create:function(i,o){var s=[];return i.eachComponent(e,function(l){var u=l.__viewGL;u||(u=l.__viewGL=new an,u.setRootNode(new ue.Node));var c=new t;c.viewGL=l.__viewGL,c.resize=n,c.resize(l,o),s.push(c),l.coordinateSystem=c,c.model=l,c.update=a}),i.eachSeries(function(l){if(l.get("coordinateSystem")===e){var u=l.getReferringComponents(e).models[0];if(u||(u=i.getComponent(e)),!u)throw new Error(e+' "'+Sr.firstNotNull(l.get(e+"Index"),l.get(e+"Id"),0)+'" not found');l.coordinateSystem=u.coordinateSystem}}),r&&r(s,i,o),s}}}var a_t=Yie("mapbox3D",z_,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMapboxCameraOption())})});const i_t=a_t;function o_t(e){e.registerComponentModel(r_t),e.registerComponentView(n_t),e.registerCoordinateSystem("mapbox3D",i_t),e.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},function(t,r){r.eachComponent({mainType:"mapbox3D",query:t},function(n){n.setMapboxCameraOption(t)})})}Dt(o_t);var vW=["zoom","center","pitch","bearing"],w4=sr.extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© <a href="http://osm.org">OpenStreetMap</a> contributors, © <a href="https://carto.com/">CARTO</a>',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var e=this;return vW.reduce(function(t,r){return t[r]=e.get(r),t},{})},setMaptalksCameraOption:function(e){e!=null&&vW.forEach(function(t){e[t]!=null&&(this.option[t]=e[t])},this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(e){this._maptalks=e}});st(w4.prototype,um);st(w4.prototype,cm);const s_t=w4;function jf(e,t,r,n){if(this.id=e,this.zr=t,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:r,zoom:n,doubleClickZoom:!1,fog:!1}),this._initEvents()}jf.prototype.setUnpainted=function(){};jf.prototype.resize=function(){this._maptalks.checkSize()};jf.prototype.getMaptalks=function(){return this._maptalks};jf.prototype.clear=function(){};jf.prototype.refresh=function(){this._maptalks.checkSize()};var jie=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];jf.prototype._initEvents=function(){var e=this.dom;this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},jie.forEach(function(t){this._handlers[t]=function(r){var n={};for(var a in r)n[a]=r[a];n.bubbles=!1;var i=new r.constructor(r.type,n);t==="mousewheel"||t==="DOMMouseScroll"?e.dispatchEvent(i):e.firstElementChild.dispatchEvent(i)},this.zr.dom.addEventListener(t,this._handlers[t])},this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)};jf.prototype.dispose=function(){jie.forEach(function(e){this.zr.dom.removeEventListener(e,this._handlers[e])},this),this._maptalks.remove()};ue.Shader.import(Wie);const l_t=rn.extend({type:"maptalks3D",__ecgl__:!0,init:function(e,t){this._groundMesh=new ue.Mesh({geometry:new ue.PlaneGeometry,material:new ue.Material({shader:new ue.Shader({vertex:ue.Shader.source("ecgl.displayShadow.vertex"),fragment:ue.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(e,t){var r=t.getZr();this._zrLayer=new jf("maptalks3D",r,e.get("center"),e.get("zoom")),r.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new ue.Node,this._sceneHelper=new Lf(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var n=this._zrLayer.getMaptalks(),a=this._dispatchInteractAction.bind(this,t,n);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach(function(i){n.on(i,a)})},render:function(e,t,r){this._zrLayer||this._initMaptalksLayer(e,r);var n=this._zrLayer.getMaptalks(),a=e.get("urlTemplate"),i=n.getBaseLayer();a!==this._oldUrlTemplate&&(i?i.setOptions({urlTemplate:a,attribution:e.get("attribution")}):(i=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:a,subdomains:["a","b","c"],attribution:e.get("attribution")}),n.setBaseLayer(i))),this._oldUrlTemplate=a,n.setCenter(e.get("center")),n.setZoom(e.get("zoom"),{animation:!1}),n.setPitch(e.get("pitch")),n.setBearing(e.get("bearing")),e.setMaptalks(n);var o=e.coordinateSystem;o.viewGL.scene.add(this._lightRoot),o.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(o.viewGL.scene),this._sceneHelper.updateLight(e),o.viewGL.setPostEffect(e.getModel("postEffect"),r),o.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling")),this._maptalks3DModel=e},afterRender:function(e,t,r,n){var a=n.renderer;this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r),e.coordinateSystem.viewGL.scene.traverse(function(i){i.material&&(i.material.define("fragment","NORMAL_UP_AXIS",2),i.material.define("fragment","NORMAL_FRONT_AXIS",1))})},updateCamera:function(e,t,r,n){e.coordinateSystem.setCameraOption(n),this._updateGroundMesh(),r.getZr().refresh()},_dispatchInteractAction:function(e,t,r){e.dispatchAction({type:"maptalks3DChangeCamera",pitch:t.getPitch(),zoom:c_t(t.getResolution())+1,center:t.getCenter().toArray(),bearing:t.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var e=this._maptalks3DModel.coordinateSystem,t=e.dataToPoint(e.center);this._groundMesh.position.set(t[0],t[1],-.001);var r=new ue.Plane(new ue.Vector3(0,0,1),0),n=e.viewGL.camera.castRay(new ue.Vector2(-1,-1)),a=e.viewGL.camera.castRay(new ue.Vector2(1,1)),i=n.intersectPlane(r),o=a.intersectPlane(r),s=i.dist(o)/e.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(e,t){this._zrLayer&&this._zrLayer.dispose(),t.getZr().painter.delLayer(-1e3)}}),u_t=2*6378137*Math.PI/(256*Math.pow(2,20));function c_t(e){return 19-Math.log(e/u_t)/Math.LN2}function H_(){Mg.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}H_.prototype=new Mg;H_.prototype.constructor=H_;H_.prototype.type="maptalks3D";var f_t=Yie("maptalks3D",H_,function(e){e.forEach(function(t){t.setCameraOption(t.model.getMaptalksCameraOption())})});const d_t=f_t;function h_t(e){e.registerComponentModel(s_t),e.registerComponentView(l_t),e.registerCoordinateSystem("maptalks3D",d_t),e.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},function(t,r){r.eachComponent({mainType:"maptalks3D",query:t},function(n){n.setMaptalksCameraOption(t)})})}Dt(h_t);var v_t=Jn.vec3,p_t=JA.isDimensionStacked;function g_t(e){var t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function m_t(e,t){var r=e.getData(),n=e.get("barSize");if(n==null){var a=t.size,i,o,s=t.getAxis("x"),l=t.getAxis("y");s.type==="category"?i=s.getBandWidth()*.7:i=Math.round(a[0]/Math.sqrt(r.count()))*.6,l.type==="category"?o=l.getBandWidth()*.7:o=Math.round(a[1]/Math.sqrt(r.count()))*.6,n=[i,o]}else Ne(n)||(n=[n,n]);var u=t.getAxis("z").scale.getExtent(),c=g_t(u),f=["x","y","z"].map(function(v){return e.coordDimToDataDim(v)[0]}),d=p_t(r,f[2]),h=d?r.getCalculationInfo("stackResultDimension"):f[2];r.each(f,function(v,p,g,m){var y=r.get(h,m),_=d?y-g:c?0:u[0],w=t.dataToPoint([v,p,_]),x=t.dataToPoint([v,p,y]),S=v_t.dist(w,x),T=[0,x[1]<w[1]?-1:1,0];Math.abs(S)===0&&(S=.1);var A=[n[0],S,n[1]];r.setItemLayout(m,[w,T,A])}),r.setLayout("orient",[1,0,0])}function S4(e,t,r){for(var n=e.getDataExtent(t),a=e.getDataExtent(r),i=n[1]-n[0]||n[0],o=a[1]-a[0]||a[0],s=50,l=new Uint8Array(s*s),u=0;u<e.count();u++){var c=e.get(t,u),f=e.get(r,u),d=Math.floor((c-n[0])/i*(s-1)),h=Math.floor((f-a[0])/o*(s-1)),v=h*s+d;l[v]=l[v]||1}for(var p=0,u=0;u<l.length;u++)l[u]&&p++;return p/l.length}var pW=Jn.vec3,y_t=JA.isDimensionStacked;function __t(e,t){var r=e.getData(),n=e.get("minHeight")||0,a=e.get("barSize"),i=["lng","lat","alt"].map(function(u){return e.coordDimToDataDim(u)[0]});if(a==null){var o=t.radius*Math.PI,s=S4(r,i[0],i[1]);a=[o/Math.sqrt(r.count()/s),o/Math.sqrt(r.count()/s)]}else Ne(a)||(a=[a,a]);var l=x4(r,i);r.each(i,function(u,c,f,d){var h=r.get(l.dimension,d),v=l.isStacked?h-f:t.altitudeAxis.scale.getExtent()[0],p=Math.max(t.altitudeAxis.dataToCoord(f),n),g=t.dataToPoint([u,c,v]),m=t.dataToPoint([u,c,h]),y=pW.sub([],m,g);pW.normalize(y,y);var _=[a[0],p,a[1]];r.setItemLayout(d,[g,y,_])}),r.setLayout("orient",mt.UP.array)}function b_t(e,t){var r=e.getData(),n=e.get("barSize"),a=e.get("minHeight")||0,i=["lng","lat","alt"].map(function(c){return e.coordDimToDataDim(c)[0]});if(n==null){var o=Math.min(t.size[0],t.size[2]),s=S4(r,i[0],i[1]);n=[o/Math.sqrt(r.count()/s),o/Math.sqrt(r.count()/s)]}else Ne(n)||(n=[n,n]);var l=[0,1,0],u=x4(r,i);r.each(i,function(c,f,d,h){var v=r.get(u.dimension,h),p=u.isStacked?v-d:t.altitudeAxis.scale.getExtent()[0],g=Math.max(t.altitudeAxis.dataToCoord(d),a),m=t.dataToPoint([c,f,p]),y=[n[0],g,n[1]];r.setItemLayout(h,[m,l,y])}),r.setLayout("orient",[1,0,0])}function w_t(e,t){var r=e.getData(),n=e.coordDimToDataDim("lng")[0],a=e.coordDimToDataDim("lat")[0],i=e.coordDimToDataDim("alt")[0],o=e.get("barSize"),s=e.get("minHeight")||0;if(o==null){var l=r.getDataExtent(n),u=r.getDataExtent(a),c=t.dataToPoint([l[0],u[0]]),f=t.dataToPoint([l[1],u[1]]),d=Math.min(Math.abs(c[0]-f[0]),Math.abs(c[1]-f[1]))||1,h=S4(r,n,a);o=[d/Math.sqrt(r.count()/h),d/Math.sqrt(r.count()/h)]}else Ne(o)||(o=[o,o]),o[0]/=t.getScale()/16,o[1]/=t.getScale()/16;var v=[0,0,1],p=[n,a,i],g=x4(r,p);r.each(p,function(m,y,_,w){var x=r.get(g.dimension,w),S=g.isStacked?x-_:0,T=t.dataToPoint([m,y,S]),A=t.dataToPoint([m,y,x]),C=Math.max(A[2]-T[2],s),M=[o[0],C,o[1]];r.setItemLayout(w,[T,v,M])}),r.setLayout("orient",[1,0,0])}function x4(e,t){var r=y_t(e,t[2]);return{dimension:r?e.getCalculationInfo("stackResultDimension"):t[2],isStacked:r}}function S_t(e){e.registerLayout(function(t,r){t.eachSeriesByType("bar3D",function(n){var a=n.coordinateSystem,i=a&&a.type;i==="globe"?__t(n,a):i==="cartesian3D"?m_t(n,a):i==="geo3D"?b_t(n,a):(i==="mapbox3D"||i==="maptalks3D")&&w_t(n,a)})})}var A4={};A4.getFormattedLabel=function(e,t,r,n,a){r=r||"normal";var i=e.getData(n),o=i.getItemModel(t),s=e.getDataParams(t,n);a!=null&&s.value instanceof Array&&(s.value=s.value[a]);var l=o.get(r==="normal"?["label","formatter"]:["emphasis","label","formatter"]);l==null&&(l=o.get(["label","formatter"]));var u;return typeof l=="function"?(s.status=r,u=l(s)):typeof l=="string"&&(u=HA(l,s)),u};A4.normalizeToArray=function(e){return e instanceof Array?e:e==null?[]:[e]};const vm=A4;function x_t(e,t){var r=[];return W(e.dimensions,function(n){var a=e.getDimensionInfo(n),i=a.otherDims,o=i[t];o!=null&&o!==!1&&(r[o]=a.name)}),r}function H1(e,t,r){function n(f){var d=[],h=x_t(a,"tooltip");h.length?W(h,function(p){v(a.get(p,t),p)}):W(f,v);function v(p,g){var m=a.getDimensionInfo(g);if(!(!m||m.otherDims.tooltip===!1)){var y=m.type,_="- "+(m.tooltipName||m.name)+": "+(y==="ordinal"?p+"":y==="time"?r?"":DK("yyyy/MM/dd hh:mm:ss",p):U0(p));_&&d.push(na(_))}}return"<br/>"+d.join("<br/>")}var a=e.getData(),i=e.getRawValue(t),o=Ne(i)?n(i):na(U0(i)),s=a.getName(t),l=Ma(a,t);Mt(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var u=XO(l),c=e.name;return c==="\0-"&&(c=""),c=c?na(c)+(r?": ":"<br/>"):"",r?u+c+o:c+u+(s?na(s)+": "+o:o)}function YT(e,t,r){r=r||e.getSource();var n=t||mk(e.get("coordinateSystem"))||["x","y","z"],a=em(r,{dimensionsDefine:r.dimensionsDefine||e.get("dimensions"),encodeDefine:r.encodeDefine||e.get("encode"),coordDimensions:n.map(function(s){var l=e.getReferringComponents(s+"Axis3D").models[0];return{type:l&&l.get("type")==="category"?"ordinal":"float",name:s}})});e.get("coordinateSystem")==="cartesian3D"&&a.forEach(function(s){if(n.indexOf(s.coordDim)>=0){var l=e.getReferringComponents(s.coordDim+"Axis3D").models[0];l&&l.get("type")==="category"&&(s.ordinalMeta=l.getOrdinalMeta())}});var i=JA.enableDataStack(e,a,{byIndex:!0,stackedCoordDimension:"z"}),o=new Dn(a,e);return o.setCalculationInfo(i),o.initData(r),o}var Kie=Ir.extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(e,t){return YT(this)},getFormattedLabel:function(e,t,r,n){var a=vm.getFormattedLabel(this,e,t,r,n);return a==null&&(a=this.getData().get("z",e)),a},formatTooltip:function(e){return H1(this,e)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});st(Kie.prototype,dm);const A_t=Kie;var Fn=Jn.vec3,T_t=Jn.mat3,T4=Hr.extend(function(){return{attributes:{position:new Hr.Attribute("position","float",3,"POSITION"),normal:new Hr.Attribute("normal","float",3,"NORMAL"),color:new Hr.Attribute("color","float",4,"COLOR"),prevPosition:new Hr.Attribute("prevPosition","float",3),prevNormal:new Hr.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(e){var t=this.enableNormal,r=this.getBarVertexCount()*e,n=this.getBarTriangleCount()*e;this.vertexCount!==r&&(this.attributes.position.init(r),t?this.attributes.normal.init(r):this.attributes.normal.value=null,this.attributes.color.init(r)),this.triangleCount!==n&&(this.indices=r>65535?new Uint32Array(n*3):new Uint16Array(n*3),this._dataIndices=new Uint32Array(r))},getBarVertexCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarVertexCount(e):this.enableNormal?24:8},getBarTriangleCount:function(){var e=this.bevelSize>0?this.bevelSegments:0;return e>0?this._getBevelBarTriangleCount(e):12},_getBevelBarVertexCount:function(e){return(e+1)*4*(e+1)*2},_getBevelBarTriangleCount:function(e){var t=e*4+3,r=e*2+1;return(t+1)*r*2+4},setColor:function(e,t){for(var r=this.getBarVertexCount(),n=r*e,a=r*(e+1),i=n;i<a;i++)this.attributes.color.set(i,t);this.dirtyAttribute("color")},getDataIndexOfVertex:function(e){return this._dataIndices?this._dataIndices[e]:null},addBar:function(){for(var e=Fn.create,t=Fn.scaleAndAdd,r=e(),n=e(),a=e(),i=e(),o=e(),s=e(),l=e(),u=[],c=[],f=0;f<8;f++)u[f]=e();for(var d=[[0,1,5,4],[2,3,7,6],[4,5,6,7],[3,2,1,0],[0,4,7,3],[1,2,6,5]],h=[0,1,2,0,2,3],v=[],f=0;f<d.length;f++)for(var p=d[f],g=0;g<2;g++){for(var m=[],y=0;y<3;y++)m.push(p[h[g*3+y]]);v.push(m)}return function(_,w,x,S,T,A){var C=this._vertexOffset;if(this.bevelSize>0&&this.bevelSegments>0)this._addBevelBar(_,w,x,S,this.bevelSize,this.bevelSegments,T);else{Fn.copy(a,w),Fn.normalize(a,a),Fn.cross(i,x,a),Fn.normalize(i,i),Fn.cross(n,a,i),Fn.normalize(i,i),Fn.negate(o,n),Fn.negate(s,a),Fn.negate(l,i),t(u[0],_,n,S[0]/2),t(u[0],u[0],i,S[2]/2),t(u[1],_,n,S[0]/2),t(u[1],u[1],l,S[2]/2),t(u[2],_,o,S[0]/2),t(u[2],u[2],l,S[2]/2),t(u[3],_,o,S[0]/2),t(u[3],u[3],i,S[2]/2),t(r,_,a,S[1]),t(u[4],r,n,S[0]/2),t(u[4],u[4],i,S[2]/2),t(u[5],r,n,S[0]/2),t(u[5],u[5],l,S[2]/2),t(u[6],r,o,S[0]/2),t(u[6],u[6],l,S[2]/2),t(u[7],r,o,S[0]/2),t(u[7],u[7],i,S[2]/2);var M=this.attributes;if(this.enableNormal){c[0]=n,c[1]=o,c[2]=a,c[3]=s,c[4]=i,c[5]=l;for(var E=this._vertexOffset,D=0;D<d.length;D++){for(var P=this._triangleOffset*3,L=0;L<6;L++)this.indices[P++]=E+h[L];E+=4,this._triangleOffset+=2}for(var D=0;D<d.length;D++)for(var I=c[D],L=0;L<4;L++){var O=d[D][L];M.position.set(this._vertexOffset,u[O]),M.normal.set(this._vertexOffset,I),M.color.set(this._vertexOffset++,T)}}else{for(var D=0;D<v.length;D++){for(var P=this._triangleOffset*3,L=0;L<3;L++)this.indices[P+L]=v[D][L]+this._vertexOffset;this._triangleOffset++}for(var D=0;D<u.length;D++)M.position.set(this._vertexOffset,u[D]),M.color.set(this._vertexOffset++,T)}}for(var R=this._vertexOffset,D=C;D<R;D++)this._dataIndices[D]=A}}(),_addBevelBar:function(){var e=Fn.create(),t=Fn.create(),r=Fn.create(),n=T_t.create(),a=[],i=[1,-1,-1,1],o=[1,1,-1,-1],s=[2,0];return function(l,u,c,f,d,h,v){Fn.copy(t,u),Fn.normalize(t,t),Fn.cross(r,c,t),Fn.normalize(r,r),Fn.cross(e,t,r),Fn.normalize(r,r),n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=t[0],n[4]=t[1],n[5]=t[2],n[6]=r[0],n[7]=r[1],n[8]=r[2],d=Math.min(f[0],f[2])/2*d;for(var p=0;p<3;p++)a[p]=Math.max(f[p]-d*2,0);for(var g=(f[0]-a[0])/2,m=(f[1]-a[1])/2,y=(f[2]-a[2])/2,_=[],w=[],x=this._vertexOffset,S=[],p=0;p<2;p++){S[p]=S[p]=[];for(var T=0;T<=h;T++)for(var A=0;A<4;A++){(T===0&&p===0||p===1&&T===h)&&S[p].push(x);for(var C=0;C<=h;C++){var M=C/h*Math.PI/2+Math.PI/2*A,E=T/h*Math.PI/2+Math.PI/2*p;w[0]=g*Math.cos(M)*Math.sin(E),w[1]=m*Math.cos(E),w[2]=y*Math.sin(M)*Math.sin(E),_[0]=w[0]+i[A]*a[0]/2,_[1]=w[1]+m+s[p]*a[1]/2,_[2]=w[2]+o[A]*a[2]/2,Math.abs(g-m)<1e-6&&Math.abs(m-y)<1e-6||(w[0]/=g*g,w[1]/=m*m,w[2]/=y*y),Fn.normalize(w,w),Fn.transformMat3(_,_,n),Fn.transformMat3(w,w,n),Fn.add(_,_,l),this.attributes.position.set(x,_),this.enableNormal&&this.attributes.normal.set(x,w),this.attributes.color.set(x,v),x++}}}for(var D=h*4+3,P=h*2+1,L=D+1,A=0;A<P;A++)for(var p=0;p<=D;p++){var I=A*L+p+this._vertexOffset,O=A*L+(p+1)%L+this._vertexOffset,R=(A+1)*L+(p+1)%L+this._vertexOffset,B=(A+1)*L+p+this._vertexOffset;this.setTriangleIndices(this._triangleOffset++,[R,I,O]),this.setTriangleIndices(this._triangleOffset++,[R,B,I])}this.setTriangleIndices(this._triangleOffset++,[S[0][0],S[0][2],S[0][1]]),this.setTriangleIndices(this._triangleOffset++,[S[0][0],S[0][3],S[0][2]]),this.setTriangleIndices(this._triangleOffset++,[S[1][0],S[1][1],S[1][2]]),this.setTriangleIndices(this._triangleOffset++,[S[1][0],S[1][2],S[1][3]]),this._vertexOffset=x}}()});yt(T4.prototype,V1);yt(T4.prototype,_4);const C_t=T4;var E_t=Jn.vec3;const M_t=xr.extend({type:"bar3D",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this._api=t,this._labelsBuilder=new cc(256,256,t);var r=this;this._labelsBuilder.getLabelPosition=function(n,a,i){if(r._data){var o=r._data.getItemLayout(n),s=o[0],l=o[1],u=o[2][1];return E_t.scaleAndAdd([],s,l,i+u)}else return[0,0]},this._labelsBuilder.getMesh().renderOrder=100},render:function(e,t,r){var n=this._prevBarMesh;this._prevBarMesh=this._barMesh,this._barMesh=n,this._barMesh||(this._barMesh=new ue.Mesh({geometry:new C_t,shadowDepthMaterial:new ue.Material({shader:new ue.Shader(ue.Shader.source("ecgl.sm.depth.vertex"),ue.Shader.source("ecgl.sm.depth.fragment"))}),culling:e.coordinateSystem.type==="cartesian3D",renderOrder:10,renderNormal:!0})),this.groupGL.remove(this._prevBarMesh),this.groupGL.add(this._barMesh),this.groupGL.add(this._labelsBuilder.getMesh());var a=e.coordinateSystem;if(this._doRender(e,r),a&&a.viewGL){a.viewGL.add(this.groupGL);var i=a.viewGL.isLinearSpace()?"define":"undefine";this._barMesh.material[i]("fragment","SRGB_DECODE")}this._data=e.getData(),this._labelsBuilder.updateData(this._data),this._labelsBuilder.updateLabels(),this._updateAnimation(e)},_updateAnimation:function(e){ue.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevBarMesh,this._barMesh,e)},_doRender:function(e,t){var r=e.getData(),n=e.get("shading"),a=n!=="color",i=this,o=this._barMesh,s="ecgl."+n;(!o.material||o.material.shader.name!==s)&&(o.material=ue.createMaterial(s,["VERTEX_COLOR"])),ue.setMaterialFromModel(n,o.material,e,t),o.geometry.enableNormal=a,o.geometry.resetOffset();var l=e.get("bevelSize"),u=e.get("bevelSmoothness");o.geometry.bevelSegments=u,o.geometry.bevelSize=l;var c=[],f=new Float32Array(r.count()*4),d=0,g=0,h=!1;r.each(function(y){if(r.hasValue(y)){var _=Ma(r,y),w=Ea(r,y);w==null&&(w=1),ue.parseColor(_,c),c[3]*=w,f[d++]=c[0],f[d++]=c[1],f[d++]=c[2],f[d++]=c[3],c[3]>0&&(g++,c[3]<.99&&(h=!0))}}),o.geometry.setBarCount(g);var v=r.getLayout("orient"),p=this._barIndexOfData=new Int32Array(r.count()),g=0;r.each(function(y){if(!r.hasValue(y)){p[y]=-1;return}var _=r.getItemLayout(y),w=_[0],x=_[1],S=_[2],T=y*4;c[0]=f[T++],c[1]=f[T++],c[2]=f[T++],c[3]=f[T++],c[3]>0&&(i._barMesh.geometry.addBar(w,x,v,S,c,y),p[y]=g++)}),o.geometry.dirty(),o.geometry.updateBoundingBox();var m=o.material;m.transparent=h,m.depthMask=!h,o.geometry.sortTriangles=h,this._initHandler(e,t)},_initHandler:function(e,t){var r=e.getData(),n=this._barMesh,a=e.coordinateSystem.type==="cartesian3D";n.seriesIndex=e.seriesIndex;var i=-1;n.off("mousemove"),n.off("mouseout"),n.on("mousemove",function(o){var s=n.geometry.getDataIndexOfVertex(o.triangle[0]);s!==i&&(this._downplay(i),this._highlight(s),this._labelsBuilder.updateLabels([s]),a&&t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",s),r.get("y",s),r.get("z",s,!0)]})),i=s,n.dataIndex=s},this),n.on("mouseout",function(o){this._downplay(i),this._labelsBuilder.updateLabels(),i=-1,n.dataIndex=-1,a&&t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_highlight:function(e){var t=this._data;if(t){var r=this._barIndexOfData[e];if(!(r<0)){var n=t.getItemModel(e),a=n.getModel("emphasis.itemStyle"),i=a.get("color"),o=a.get("opacity");if(i==null){var s=Ma(t,e);i=Nh(s,-.4)}o==null&&(o=Ea(t,e));var l=ue.parseColor(i);l[3]*=o,this._barMesh.geometry.setColor(r,l),this._api.getZr().refresh()}}},_downplay:function(e){var t=this._data;if(t){var r=this._barIndexOfData[e];if(!(r<0)){var n=Ma(t,e),a=Ea(t,e),i=ue.parseColor(n);i[3]*=a,this._barMesh.geometry.setColor(r,i),this._api.getZr().refresh()}}},highlight:function(e,t,r,n){this._toggleStatus("highlight",e,t,r,n)},downplay:function(e,t,r,n){this._toggleStatus("downplay",e,t,r,n)},_toggleStatus:function(e,t,r,n,a){var i=t.getData(),o=Sr.queryDataIndex(i,a),s=this;o!=null?W(vm.normalizeToArray(o),function(l){e==="highlight"?this._highlight(l):this._downplay(l)},this):i.each(function(l){e==="highlight"?s._highlight(l):s._downplay(l)})},remove:function(){this.groupGL.removeAll()},dispose:function(){this._labelsBuilder.dispose(),this.groupGL.removeAll()}});function D_t(e){e.registerChartView(M_t),e.registerSeriesModel(A_t),S_t(e),e.registerProcessor(function(t,r){t.eachSeriesByType("bar3d",function(n){var a=n.getData();a.filterSelf(function(i){return a.hasValue(i)})})})}Dt(D_t);var P_t=Ir.extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(e,t){return YT(this)},formatTooltip:function(e){return H1(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}});const L_t=P_t;var I_t=Jn.vec3;ue.Shader.import(WT);const R_t=xr.extend({type:"line3D",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this._api=t},render:function(e,t,r){var n=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=n,this._line3DMesh||(this._line3DMesh=new ue.Mesh({geometry:new gv({useNativeLine:!1,sortTriangles:!0}),material:new ue.Material({shader:ue.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var a=e.coordinateSystem;if(a&&a.viewGL){a.viewGL.add(this.groupGL);var i=a.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[i]("fragment","SRGB_DECODE")}this._doRender(e,r),this._data=e.getData(),this._camera=a.viewGL.camera,this.updateCamera(),this._updateAnimation(e)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(e,t){var r=e.getData(),n=this._line3DMesh;n.geometry.resetOffset();var a=r.getLayout("points"),i=[],o=new Float32Array(a.length/3*4),s=0,l=!1;r.each(function(f){var d=Ma(r,f),h=Ea(r,f);h==null&&(h=1),ue.parseColor(d,i),i[3]*=h,o[s++]=i[0],o[s++]=i[1],o[s++]=i[2],o[s++]=i[3],i[3]<.99&&(l=!0)}),n.geometry.setVertexCount(n.geometry.getPolylineVertexCount(a)),n.geometry.setTriangleCount(n.geometry.getPolylineTriangleCount(a)),n.geometry.addPolyline(a,o,Sr.firstNotNull(e.get("lineStyle.width"),1)),n.geometry.dirty(),n.geometry.updateBoundingBox();var u=n.material;u.transparent=l,u.depthMask=!l;var c=e.getModel("debug.wireframe");c.get("show")?(n.geometry.createAttribute("barycentric","float",3),n.geometry.generateBarycentric(),n.material.set("both","WIREFRAME_TRIANGLE"),n.material.set("wireframeLineColor",ue.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)")),n.material.set("wireframeLineWidth",Sr.firstNotNull(c.get("lineStyle.width"),1))):n.material.set("both","WIREFRAME_TRIANGLE"),this._points=a,this._initHandler(e,t)},_updateAnimation:function(e){ue.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,e)},_initHandler:function(e,t){var r=e.getData(),n=e.coordinateSystem,a=this._line3DMesh,i=-1;a.seriesIndex=e.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",function(o){var s=n.pointToData(o.point.array),l=r.indicesOfNearest("x",s[0])[0];l!==i&&(t.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get("x",l),r.get("y",l),r.get("z",l)]}),a.dataIndex=l),i=l},this),a.on("mouseout",function(o){i=-1,a.dataIndex=-1,t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_updateNDCPosition:function(){var e=new Bt,t=this._camera;Bt.multiply(e,t.projectionMatrix,t.viewMatrix);var r=this._positionNDC,n=this._points,a=n.length/3;(!r||r.length/2!==a)&&(r=this._positionNDC=new Float32Array(a*2));for(var i=[],o=0;o<a;o++){var s=o*3,l=o*2;i[0]=n[s],i[1]=n[s+1],i[2]=n[s+2],i[3]=1,I_t.transformMat4(i,i,e.array),r[l]=i[0]/i[3],r[l+1]=i[1]/i[3]}},_pick:function(e,t,r,n,a,i){var o=this._positionNDC,s=this._data.hostModel,l=s.get("lineStyle.width"),u=-1,c=r.viewport.width,f=r.viewport.height,d=c*.5,h=f*.5;e=(e+1)*d,t=(t+1)*h;for(var v=1;v<o.length/2;v++){var p=(o[(v-1)*2]+1)*d,g=(o[(v-1)*2+1]+1)*h,m=(o[v*2]+1)*d,y=(o[v*2+1]+1)*h;if(yu(p,g,m,y,l,e,t)){var _=(p-e)*(p-e)+(g-t)*(g-t),w=(m-e)*(m-e)+(y-t)*(y-t);u=_<w?v-1:v}}if(u>=0){var x=u*3,S=new mt(this._points[x],this._points[x+1],this._points[x+2]);i.push({dataIndex:u,point:S,pointWorld:S.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(S)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function O_t(e){e.registerChartView(R_t),e.registerSeriesModel(L_t),e.registerLayout(function(t,r){t.eachSeriesByType("line3D",function(n){var a=n.getData(),i=n.coordinateSystem;if(i){if(i.type!=="cartesian3D")return;var o=new Float32Array(a.count()*3),s=[],l=[],u=i.dimensions,c=u.map(function(f){return n.coordDimToDataDim(f)[0]});i&&a.each(c,function(f,d,h,v){s[0]=f,s[1]=d,s[2]=h,i.dataToPoint(s,l),o[v*3]=l[0],o[v*3+1]=l[1],o[v*3+2]=l[2]}),a.setLayout("points",o)}})})}Dt(O_t);const k_t=Ir.extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(e,t){return YT(this)},getFormattedLabel:function(e,t,r,n){var a=vm.getFormattedLabel(this,e,t,r,n);if(a==null){var i=this.getData(),o=i.dimensions[i.dimensions.length-1];a=i.get(o,e)}return a},formatTooltip:function(e){return H1(this,e)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function ED(e,n,r){var n=n||document.createElement("canvas");n.width=e,n.height=e;var a=n.getContext("2d");return r&&r(a),n}function N_t(e,t,r,n){Ne(t)||(t=[t,t]);var a=C4.getMarginByStyle(r,n),i=t[0]+a.left+a.right,o=t[1]+a.top+a.bottom,s=jn(e,0,0,t[0],t[1]),l=Math.max(i,o);s.x=a.left,s.y=a.top,i>o?s.y+=(l-o)/2:s.x+=(l-i)/2;var u=s.getBoundingRect();return s.x-=u.x,s.y-=u.y,s.setStyle(r),s.update(),s.__size=l,s}function B_t(e,t,r){var n=t.width,a=t.height,i=e.canvas.width,o=e.canvas.height,s=n/i,l=a/o;function u(m){return m<128?1:-1}function c(m,y){var _=1/0;m=Math.floor(m*s),y=Math.floor(y*l);for(var w=y*n+m,x=t.data[w*4],S=u(x),T=Math.max(y-r,0);T<Math.min(y+r,a);T++)for(var A=Math.max(m-r,0);A<Math.min(m+r,n);A++){var w=T*n+A,C=t.data[w*4],M=u(C),E=A-m,D=T-y;if(S!==M){var P=E*E+D*D;P<_&&(_=P)}}return S*Math.sqrt(_)}for(var f=e.createImageData(i,o),d=0;d<o;d++)for(var h=0;h<i;h++){var v=c(h,d),p=v/r*.5+.5,g=(d*i+h)*4;f.data[g++]=(1-p)*255,f.data[g++]=(1-p)*255,f.data[g++]=(1-p)*255,f.data[g++]=255}return f}var C4={getMarginByStyle:function(e){var t=e.minMargin||0,r=0;e.stroke&&e.stroke!=="none"&&(r=e.lineWidth==null?1:e.lineWidth);var n=e.shadowBlur||0,a=e.shadowOffsetX||0,i=e.shadowOffsetY||0,o={};return o.left=Math.max(r/2,-a+n,t),o.right=Math.max(r/2,a+n,t),o.top=Math.max(r/2,-i+n,t),o.bottom=Math.max(r/2,i+n,t),o},createSymbolSprite:function(e,t,r,n){var a=N_t(e,t,r),i=C4.getMarginByStyle(r);return{image:ED(a.__size,n,function(o){d1(o,a)}),margin:i}},createSDFFromCanvas:function(e,t,r,n){return ED(t,n,function(a){var i=e.getContext("2d"),o=i.getImageData(0,0,e.width,e.height);a.putImageData(B_t(a,o,r),0,0)})},createSimpleSprite:function(e,t){return ED(e,t,function(r){var n=e/2;r.beginPath(),r.arc(n,n,60,0,Math.PI*2,!1),r.closePath();var a=r.createRadialGradient(n,n,0,n,n,n);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),r.fillStyle=a,r.fill()})}};const gW=C4;var mW=Jn.vec3;const F_t={needsSortVertices:function(){return this.sortVertices},needsSortVerticesProgressively:function(){return this.needsSortVertices()&&this.vertexCount>=2e4},doSortVertices:function(e,t){var r=this.indices,n=mW.create();if(!r){r=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var a=0;a<r.length;a++)r[a]=a}if(t===0){var i=this.attributes.position,e=e.array,o=0;(!this._zList||this._zList.length!==this.vertexCount)&&(this._zList=new Float32Array(this.vertexCount));for(var s,a=0;a<this.vertexCount;a++){i.get(a,n);var l=mW.sqrDist(n,e);isNaN(l)&&(l=1e7,o++),a===0?(s=l,l=0):l=l-s,this._zList[a]=l}this._noneCount=o}if(this.vertexCount<2e4)t===0&&this._simpleSort(this._noneCount/this.vertexCount>.05);else for(var a=0;a<3;a++)this._progressiveQuickSort(t*3+a);this.dirtyIndices()},_simpleSort:function(e){var t=this._zList,r=this.indices;function n(a,i){return t[i]-t[a]}e?Array.prototype.sort.call(r,n):Cg.sort(r,n,0,r.length-1)},_progressiveQuickSort:function(e){var t=this._zList,r=this.indices;this._quickSort=this._quickSort||new Cg,this._quickSort.step(r,function(n,a){return t[a]-t[n]},e)}},V_t=`@export ecgl.sdfSprite.vertex
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform float elapsedTime : 0;
|
||
|
||
attribute vec3 position : POSITION;
|
||
|
||
#ifdef VERTEX_SIZE
|
||
attribute float size;
|
||
#else
|
||
uniform float u_Size;
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
attribute vec4 a_FillColor: COLOR;
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
attribute vec3 prevPosition;
|
||
attribute float prevSize;
|
||
uniform float percent : 1.0;
|
||
#endif
|
||
|
||
|
||
#ifdef POSITIONTEXTURE_ENABLED
|
||
uniform sampler2D positionTexture;
|
||
#endif
|
||
|
||
varying float v_Size;
|
||
|
||
void main()
|
||
{
|
||
|
||
#ifdef POSITIONTEXTURE_ENABLED
|
||
gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);
|
||
#else
|
||
|
||
#ifdef VERTEX_ANIMATION
|
||
vec3 pos = mix(prevPosition, position, percent);
|
||
#else
|
||
vec3 pos = position;
|
||
#endif
|
||
gl_Position = worldViewProjection * vec4(pos, 1.0);
|
||
#endif
|
||
|
||
#ifdef VERTEX_SIZE
|
||
#ifdef VERTEX_ANIMATION
|
||
v_Size = mix(prevSize, size, percent);
|
||
#else
|
||
v_Size = size;
|
||
#endif
|
||
#else
|
||
v_Size = u_Size;
|
||
#endif
|
||
|
||
#ifdef VERTEX_COLOR
|
||
v_Color = a_FillColor;
|
||
#endif
|
||
|
||
gl_PointSize = v_Size;
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.sdfSprite.fragment
|
||
|
||
uniform vec4 color: [1, 1, 1, 1];
|
||
uniform vec4 strokeColor: [1, 1, 1, 1];
|
||
uniform float smoothing: 0.07;
|
||
|
||
uniform float lineWidth: 0.0;
|
||
|
||
#ifdef VERTEX_COLOR
|
||
varying vec4 v_Color;
|
||
#endif
|
||
|
||
varying float v_Size;
|
||
|
||
uniform sampler2D sprite;
|
||
|
||
@import clay.util.srgb
|
||
|
||
void main()
|
||
{
|
||
gl_FragColor = color;
|
||
|
||
vec4 _strokeColor = strokeColor;
|
||
|
||
#ifdef VERTEX_COLOR
|
||
gl_FragColor *= v_Color;
|
||
#endif
|
||
|
||
#ifdef SPRITE_ENABLED
|
||
float d = texture2D(sprite, gl_PointCoord).r;
|
||
gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);
|
||
|
||
if (lineWidth > 0.0) {
|
||
float sLineWidth = lineWidth / 2.0;
|
||
|
||
float outlineMaxValue0 = 0.5 + sLineWidth;
|
||
float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;
|
||
float outlineMinValue0 = 0.5 - sLineWidth - smoothing;
|
||
float outlineMinValue1 = 0.5 - sLineWidth;
|
||
|
||
if (d <= outlineMaxValue1 && d >= outlineMinValue0) {
|
||
float a = _strokeColor.a;
|
||
if (d <= outlineMinValue1) {
|
||
a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);
|
||
}
|
||
else {
|
||
a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);
|
||
}
|
||
gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);
|
||
gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;
|
||
}
|
||
}
|
||
#endif
|
||
|
||
#ifdef SRGB_DECODE
|
||
gl_FragColor = sRGBToLinear(gl_FragColor);
|
||
#endif
|
||
}
|
||
@end`;var MD=Jn.vec4;ue.Shader.import(V_t);var z_t=ue.Mesh.extend(function(){var e=new ue.Geometry({dynamic:!0,attributes:{color:new ue.Geometry.Attribute("color","float",4,"COLOR"),position:new ue.Geometry.Attribute("position","float",3,"POSITION"),size:new ue.Geometry.Attribute("size","float",1),prevPosition:new ue.Geometry.Attribute("prevPosition","float",3),prevSize:new ue.Geometry.Attribute("prevSize","float",1)}});Object.assign(e,F_t);var t=new ue.Material({shader:ue.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});t.enableTexture("sprite"),t.define("both","VERTEX_COLOR"),t.define("both","VERTEX_SIZE");var r=new ue.Texture2D({image:document.createElement("canvas"),flipY:!1});return t.set("sprite",r),e.pick=this._pick.bind(this),{geometry:e,material:t,mode:ue.Mesh.POINTS,sizeScale:1}},{_pick:function(e,t,r,n,a,i){var o=this._positionNDC;if(o)for(var s=r.viewport,l=2/s.width,u=2/s.height,c=this.geometry.vertexCount-1;c>=0;c--){var f;this.geometry.indices?f=this.geometry.indices[c]:f=c;var d=o[f*2],h=o[f*2+1],v=this.geometry.attributes.size.get(f)/this.sizeScale,p=v/2;if(e>d-p*l&&e<d+p*l&&t>h-p*u&&t<h+p*u){var g=new ue.Vector3,m=new ue.Vector3;this.geometry.attributes.position.get(f,g.array),ue.Vector3.transformMat4(m,g,this.worldTransform),i.push({vertexIndex:f,point:g,pointWorld:m,target:this,distance:m.distance(n.getWorldPosition())})}}},updateNDCPosition:function(e,t,r){var n=this._positionNDC,a=this.geometry;(!n||n.length/2!==a.vertexCount)&&(n=this._positionNDC=new Float32Array(a.vertexCount*2));for(var i=MD.create(),o=0;o<a.vertexCount;o++)a.attributes.position.get(o,i),i[3]=1,MD.transformMat4(i,i,e.array),MD.scale(i,i,1/i[3]),n[o*2]=i[0],n[o*2+1]=i[1]}});const H_t=z_t;var yW=20,_W=-10;function G_t(e,t){return e&&t&&e[0]===t[0]&&e[1]===t[1]}function Qh(e,t){this.rootNode=new ue.Node,this.is2D=e,this._labelsBuilder=new cc(256,256,t),this._labelsBuilder.getMesh().renderOrder=100,this.rootNode.add(this._labelsBuilder.getMesh()),this._api=t,this._spriteImageCanvas=document.createElement("canvas"),this._startDataIndex=0,this._endDataIndex=0,this._sizeScale=1}Qh.prototype={constructor:Qh,highlightOnMouseover:!0,update:function(e,t,r,n,a){var i=this._prevMesh;this._prevMesh=this._mesh,this._mesh=i;var o=e.getData();if(n==null&&(n=0),a==null&&(a=o.count()),this._startDataIndex=n,this._endDataIndex=a-1,!this._mesh){var s=this._prevMesh&&this._prevMesh.material;this._mesh=new H_t({renderOrder:10,frustumCulling:!1}),s&&(this._mesh.material=s)}var s=this._mesh.material,l=this._mesh.geometry,u=l.attributes;this.rootNode.remove(this._prevMesh),this.rootNode.add(this._mesh),this._setPositionTextureToMesh(this._mesh,this._positionTexture);var c=this._getSymbolInfo(e,n,a),f=r.getDevicePixelRatio(),d=e.getModel("itemStyle").getItemStyle(),h=e.get("large"),v=1;c.maxSize>2?(v=this._updateSymbolSprite(e,d,c,f),s.enableTexture("sprite")):s.disableTexture("sprite"),u.position.init(a-n);var p=[];if(h){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var g=x0t(o),m=A0t(o);ue.parseColor(g,p),p[3]*=m,s.set({color:p,u_Size:c.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),u.size.init(a-n),u.color.init(a-n),this._originalOpacity=new Float32Array(a-n);for(var y=o.getLayout("points"),_=u.position.value,w=0;w<a-n;w++){var x=w*3,S=w*2;if(this.is2D?(_[x]=y[S],_[x+1]=y[S+1],_[x+2]=_W):(_[x]=y[x],_[x+1]=y[x+1],_[x+2]=y[x+2]),!h){var g=Ma(o,w),m=Ea(o,w);ue.parseColor(g,p),p[3]*=m,u.color.set(w,p),p[3]<.99;var T=o.getItemVisual(w,"symbolSize");T=T instanceof Array?Math.max(T[0],T[1]):T,isNaN(T)&&(T=0),u.size.value[w]=T*v*this._sizeScale,this._originalOpacity[w]=p[3]}}this._mesh.sizeScale=v,l.updateBoundingBox(),l.dirty(),this._updateMaterial(e,d);var A=e.coordinateSystem;if(A&&A.viewGL){var C=A.viewGL.isLinearSpace()?"define":"undefine";s[C]("fragment","SRGB_DECODE")}h||this._updateLabelBuilder(e,n,a),this._updateHandler(e,t,r),this._updateAnimation(e),this._api=r},getPointsMesh:function(){return this._mesh},updateLabels:function(e){this._labelsBuilder.updateLabels(e)},hideLabels:function(){this.rootNode.remove(this._labelsBuilder.getMesh())},showLabels:function(){this.rootNode.add(this._labelsBuilder.getMesh())},dispose:function(){this._labelsBuilder.dispose()},_updateSymbolSprite:function(e,t,r,n){r.maxSize=Math.min(r.maxSize*2,200);var a=[];return r.aspect>1?(a[0]=r.maxSize,a[1]=r.maxSize/r.aspect):(a[1]=r.maxSize,a[0]=r.maxSize*r.aspect),a[0]=a[0]||1,a[1]=a[1]||1,(this._symbolType!==r.type||!G_t(this._symbolSize,a)||this._lineWidth!==t.lineWidth)&&(gW.createSymbolSprite(r.type,a,{fill:"#fff",lineWidth:t.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(a[0]/2,10)},this._spriteImageCanvas),gW.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),yW,this._mesh.material.get("sprite").image),this._symbolType=r.type,this._symbolSize=a,this._lineWidth=t.lineWidth),this._spriteImageCanvas.width/r.maxSize*n},_updateMaterial:function(e,t){var r=e.get("blendMode")==="lighter"?ue.additiveBlend:null,n=this._mesh.material;n.blend=r,n.set("lineWidth",t.lineWidth/yW);var a=ue.parseColor(t.stroke);n.set("strokeColor",a),n.transparent=!0,n.depthMask=!1,n.depthTest=!this.is2D,n.sortVertices=!this.is2D},_updateLabelBuilder:function(e,o,r){var n=e.getData(),a=this._mesh.geometry,i=a.attributes.position.value,o=this._startDataIndex,s=this._mesh.sizeScale;this._labelsBuilder.updateData(n,o,r),this._labelsBuilder.getLabelPosition=function(l,u,c){var f=(l-o)*3;return[i[f],i[f+1],i[f+2]]},this._labelsBuilder.getLabelDistance=function(l,u,c){var f=a.attributes.size.get(l-o)/s;return f/2+c},this._labelsBuilder.updateLabels()},_updateAnimation:function(e){ue.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,e)},_updateHandler:function(e,t,r){var n=e.getData(),a=this._mesh,i=this,o=-1,s=e.coordinateSystem&&e.coordinateSystem.type==="cartesian3D",l;s&&(l=e.coordinateSystem.model),a.seriesIndex=e.seriesIndex,a.off("mousemove"),a.off("mouseout"),a.on("mousemove",function(u){var c=u.vertexIndex+i._startDataIndex;c!==o&&(this.highlightOnMouseover&&(this.downplay(n,o),this.highlight(n,c),this._labelsBuilder.updateLabels([c])),s&&r.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get(e.coordDimToDataDim("x")[0],c),n.get(e.coordDimToDataDim("y")[0],c),n.get(e.coordDimToDataDim("z")[0],c)],grid3DIndex:l.componentIndex})),a.dataIndex=c,o=c},this),a.on("mouseout",function(u){var c=u.vertexIndex+i._startDataIndex;this.highlightOnMouseover&&(this.downplay(n,c),this._labelsBuilder.updateLabels()),o=-1,a.dataIndex=-1,s&&r.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:l.componentIndex})},this)},updateLayout:function(e,t,r){var n=e.getData();if(this._mesh){var a=this._mesh.geometry.attributes.position.value,i=n.getLayout("points");if(this.is2D)for(var o=0;o<i.length/2;o++){var s=o*3,l=o*2;a[s]=i[l],a[s+1]=i[l+1],a[s+2]=_W}else for(var o=0;o<i.length;o++)a[o]=i[o];this._mesh.geometry.dirty(),r.getZr().refresh()}},updateView:function(e){if(this._mesh){var t=new Bt;Bt.mul(t,e.viewMatrix,this._mesh.worldTransform),Bt.mul(t,e.projectionMatrix,t),this._mesh.updateNDCPosition(t,this.is2D,this._api)}},highlight:function(e,t){if(!(t>this._endDataIndex||t<this._startDataIndex)){var r=e.getItemModel(t),n=r.getModel("emphasis.itemStyle"),a=n.get("color"),i=n.get("opacity");if(a==null){var o=Ma(e,t);a=Nh(o,-.4)}i==null&&(i=Ea(e,t));var s=ue.parseColor(a);s[3]*=i,this._mesh.geometry.attributes.color.set(t-this._startDataIndex,s),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},downplay:function(e,t){if(!(t>this._endDataIndex||t<this._startDataIndex)){var r=Ma(e,t),n=Ea(e,t),a=ue.parseColor(r);a[3]*=n,this._mesh.geometry.attributes.color.set(t-this._startDataIndex,a),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeOutAll:function(e){if(this._originalOpacity){for(var t=this._mesh.geometry,r=0;r<t.vertexCount;r++){var n=this._originalOpacity[r]*e;t.attributes.color.value[r*4+3]=n}t.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeInAll:function(){this.fadeOutAll(1)},setPositionTexture:function(e){this._mesh&&this._setPositionTextureToMesh(this._mesh,e),this._positionTexture=e},removePositionTexture:function(){this._positionTexture=null,this._mesh&&this._setPositionTextureToMesh(this._mesh,null)},setSizeScale:function(e){if(e!==this._sizeScale){if(this._mesh){var t=this._mesh.material.get("u_Size");this._mesh.material.set("u_Size",t/this._sizeScale*e);var r=this._mesh.geometry.attributes;if(r.size.value)for(var n=0;n<r.size.value.length;n++)r.size.value[n]=r.size.value[n]/this._sizeScale*e}this._sizeScale=e}},_setPositionTextureToMesh:function(e,t){t&&e.material.set("positionTexture",t),e.material[t?"enableTexture":"disableTexture"]("positionTexture")},_getSymbolInfo:function(e,t,r){if(e.get("large")){var n=Sr.firstNotNull(e.get("symbolSize"),1),s,i;return n instanceof Array?(s=Math.max(n[0],n[1]),i=n[0]/n[1]):(s=n,i=1),{maxSize:n,type:e.get("symbol"),aspect:i}}for(var a=e.getData(),i,o=a.getItemVisual(0,"symbol")||"circle",s=0,l=t;l<r;l++){var n=a.getItemVisual(l,"symbolSize"),u=a.getItemVisual(l,"symbol"),c;if(n instanceof Array)c=n[0]/n[1],s=Math.max(Math.max(n[0],n[1]),s);else{if(isNaN(n))continue;c=1,s=Math.max(n,s)}o=u,i=c}return{maxSize:s,type:o,aspect:i}}};const U_t=xr.extend({type:"scatter3D",hasSymbolVisual:!0,__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this._pointsBuilderList=[],this._currentStep=0},render:function(e,t,r){if(this.groupGL.removeAll(),!!e.getData().count()){var n=e.coordinateSystem;if(n&&n.viewGL){n.viewGL.add(this.groupGL),this._camera=n.viewGL.camera;var a=this._pointsBuilderList[0];a||(a=this._pointsBuilderList[0]=new Qh(!1,r)),this._pointsBuilderList.length=1,this.groupGL.add(a.rootNode),a.update(e,t,r),a.updateView(n.viewGL.camera)}}},incrementalPrepareRender:function(e,t,r){var n=e.coordinateSystem;n&&n.viewGL&&(n.viewGL.add(this.groupGL),this._camera=n.viewGL.camera),this.groupGL.removeAll(),this._currentStep=0},incrementalRender:function(e,t,r,n){if(!(e.end<=e.start)){var a=this._pointsBuilderList[this._currentStep];a||(a=new Qh(!1,n),this._pointsBuilderList[this._currentStep]=a),this.groupGL.add(a.rootNode),a.update(t,r,n,e.start,e.end),a.updateView(t.coordinateSystem.viewGL.camera),this._currentStep++}},updateCamera:function(){this._pointsBuilderList.forEach(function(e){e.updateView(this._camera)},this)},highlight:function(e,t,r,n){this._toggleStatus("highlight",e,t,r,n)},downplay:function(e,t,r,n){this._toggleStatus("downplay",e,t,r,n)},_toggleStatus:function(e,t,r,n,a){var i=t.getData(),o=Sr.queryDataIndex(i,a),s=e==="highlight";o!=null?W(vm.normalizeToArray(o),function(l){for(var u=0;u<this._pointsBuilderList.length;u++){var c=this._pointsBuilderList[u];s?c.highlight(i,l):c.downplay(i,l)}},this):i.each(function(l){for(var u=0;u<this._pointsBuilderList.length;u++){var c=this._pointsBuilderList[u];s?c.highlight(i,l):c.downplay(i,l)}})},dispose:function(){this._pointsBuilderList.forEach(function(e){e.dispose()}),this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function $_t(e){e.registerChartView(U_t),e.registerSeriesModel(k_t),e.registerLayout({seriesType:"scatter3D",reset:function(t){var r=t.coordinateSystem;if(r){var n=r.dimensions;if(n.length<3)return;var a=n.map(function(s){return t.coordDimToDataDim(s)[0]}),i=[],o=[];return{progress:function(s,l){for(var u=new Float32Array((s.end-s.start)*3),c=s.start;c<s.end;c++){var f=(c-s.start)*3;i[0]=l.get(a[0],c),i[1]=l.get(a[1],c),i[2]=l.get(a[2],c),r.dataToPoint(i,o),u[f]=o[0],u[f+1]=o[1],u[f+2]=o[2]}l.setLayout("points",u)}}}}})}Dt($_t);var da=Jn.vec3,bW=Jn.vec2,cu=da.normalize,Lw=da.cross,wW=da.sub,DD=da.add,tf=da.create,Ec=tf(),Fo=tf(),Mc=tf(),cy=tf(),SW=[],xW=[];function W_t(e,t){bW.copy(SW,e[0]),bW.copy(xW,e[1]);var r=[],n=r[0]=tf(),a=r[1]=tf(),i=r[2]=tf(),o=r[3]=tf();t.dataToPoint(SW,n),t.dataToPoint(xW,o),cu(Ec,n),wW(Fo,o,n),cu(Fo,Fo),Lw(Mc,Fo,Ec),cu(Mc,Mc),Lw(Fo,Ec,Mc),DD(a,Ec,Fo),cu(a,a),cu(Ec,o),wW(Fo,n,o),cu(Fo,Fo),Lw(Mc,Fo,Ec),cu(Mc,Mc),Lw(Fo,Ec,Mc),DD(i,Ec,Fo),cu(i,i),DD(cy,n,o),cu(cy,cy);var s=da.dot(n,cy),l=da.dot(cy,a),u=(Math.max(da.len(n),da.len(o))-s)/l*2;return da.scaleAndAdd(a,n,a,u),da.scaleAndAdd(i,o,i,u),r}function Y_t(e,t,r){var n=[],a=n[0]=da.create(),i=n[1]=da.create(),o=n[2]=da.create(),s=n[3]=da.create();t.dataToPoint(e[0],a),t.dataToPoint(e[1],s);var l=da.dist(a,s);return da.lerp(i,a,s,.3),da.lerp(o,a,s,.3),da.scaleAndAdd(i,i,r,Math.min(l*.1,10)),da.scaleAndAdd(o,o,r,Math.min(l*.1,10)),n}function Xie(e,t){for(var r=new Float32Array(e.length*3),n=0,a=[],i=0;i<e.length;i++)t.dataToPoint(e[i],a),r[n++]=a[0],r[n++]=a[1],r[n++]=a[2];return r}function Zie(e){var t=[];return e.each(function(r){var n=e.getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords",!0);t.push(a)}),{coordsList:t}}function j_t(e,t){var r=e.getData(),n=e.get("polyline");r.setLayout("lineType",n?"polyline":"cubicBezier");var a=Zie(r);r.each(function(i){var o=a.coordsList[i],s=n?Xie:W_t;r.setItemLayout(i,s(o,t))})}function AW(e,t,r){var n=e.getData(),a=e.get("polyline"),i=Zie(n);n.setLayout("lineType",a?"polyline":"cubicBezier"),n.each(function(o){var s=i.coordsList[o],l=a?Xie(s,t):Y_t(s,t,r);n.setItemLayout(o,l)})}function K_t(e,t){e.eachSeriesByType("lines3D",function(r){var n=r.coordinateSystem;n.type==="globe"?j_t(r,n):n.type==="geo3D"?AW(r,n,[0,1,0]):(n.type==="mapbox3D"||n.type==="maptalks3D")&&AW(r,n,[0,0,1])})}const X_t=Ir.extend({type:"series.lines3D",dependencies:["globe"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(e,t){var r=new Dn(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],function(n,a,i,o){if(n instanceof Array)return NaN;r.hasItemOption=!0;var s=n.value;if(s!=null)return s instanceof Array?s[o]:s}),r},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}}),Z_t=`@export ecgl.trail2.vertex
|
||
attribute vec3 position: POSITION;
|
||
attribute vec3 positionPrev;
|
||
attribute vec3 positionNext;
|
||
attribute float offset;
|
||
attribute float dist;
|
||
attribute float distAll;
|
||
attribute float start;
|
||
|
||
attribute vec4 a_Color : COLOR;
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform vec4 viewport : VIEWPORT;
|
||
uniform float near : NEAR;
|
||
|
||
uniform float speed : 0;
|
||
uniform float trailLength: 0.3;
|
||
uniform float time;
|
||
uniform float period: 1000;
|
||
|
||
uniform float spotSize: 1;
|
||
|
||
varying vec4 v_Color;
|
||
varying float v_Percent;
|
||
varying float v_SpotPercent;
|
||
|
||
@import ecgl.common.wireframe.vertexHeader
|
||
|
||
@import ecgl.lines3D.clipNear
|
||
|
||
void main()
|
||
{
|
||
@import ecgl.lines3D.expandLine
|
||
|
||
gl_Position = currProj;
|
||
|
||
v_Color = a_Color;
|
||
|
||
@import ecgl.common.wireframe.vertexMain
|
||
|
||
#ifdef CONSTANT_SPEED
|
||
float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;
|
||
#else
|
||
float t = mod((time + start) / period, 1. + trailLength) - trailLength;
|
||
#endif
|
||
|
||
float trailLen = distAll * trailLength;
|
||
|
||
v_Percent = (dist - t * distAll) / trailLen;
|
||
|
||
v_SpotPercent = spotSize / distAll;
|
||
|
||
}
|
||
@end
|
||
|
||
|
||
@export ecgl.trail2.fragment
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
uniform float spotIntensity: 5;
|
||
|
||
varying vec4 v_Color;
|
||
varying float v_Percent;
|
||
varying float v_SpotPercent;
|
||
|
||
@import ecgl.common.wireframe.fragmentHeader
|
||
|
||
@import clay.util.srgb
|
||
|
||
void main()
|
||
{
|
||
if (v_Percent > 1.0 || v_Percent < 0.0) {
|
||
discard;
|
||
}
|
||
|
||
float fade = v_Percent;
|
||
|
||
#ifdef SRGB_DECODE
|
||
gl_FragColor = sRGBToLinear(color * v_Color);
|
||
#else
|
||
gl_FragColor = color * v_Color;
|
||
#endif
|
||
|
||
@import ecgl.common.wireframe.fragmentMain
|
||
|
||
if (v_Percent > (1.0 - v_SpotPercent)) {
|
||
gl_FragColor.rgb *= spotIntensity;
|
||
}
|
||
|
||
gl_FragColor.a *= fade;
|
||
}
|
||
|
||
@end`;var TW=Jn.vec3;function q_t(e){return e>0?1:-1}ue.Shader.import(Z_t);const Q_t=ue.Mesh.extend(function(){var e=new ue.Material({shader:new ue.Shader(ue.Shader.source("ecgl.trail2.vertex"),ue.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),t=new gv({dynamic:!0});return t.createAttribute("dist","float",1),t.createAttribute("distAll","float",1),t.createAttribute("start","float",1),{geometry:t,material:e,culling:!1,$ignorePicking:!0}},{updateData:function(e,t,r){var n=e.hostModel,a=this.geometry,i=n.getModel("effect"),o=i.get("trailWidth")*t.getDevicePixelRatio(),s=i.get("trailLength"),l=n.get("effect.constantSpeed"),u=n.get("effect.period")*1e3,c=l!=null;c?this.material.set("speed",l/1e3):this.material.set("period",u),this.material[c?"define":"undefine"]("vertex","CONSTANT_SPEED");var f=n.get("polyline");a.trailLength=s,this.material.set("trailLength",s),a.resetOffset(),["position","positionPrev","positionNext"].forEach(function(T){a.attributes[T].value=r.attributes[T].value});var d=["dist","distAll","start","offset","color"];d.forEach(function(T){a.attributes[T].init(a.vertexCount)}),a.indices=r.indices;var h=[],v=i.get("trailColor"),p=i.get("trailOpacity"),g=v!=null,m=p!=null;this.updateWorldTransform();var y=this.worldTransform.x.len(),_=this.worldTransform.y.len(),w=this.worldTransform.z.len(),x=0,S=0;e.each(function(T){var A=e.getItemLayout(T),C=m?p:Ea(e,T),M=Ma(e,T);C==null&&(C=1),h=ue.parseColor(g?v:M,h),h[3]*=C;for(var E=f?r.getPolylineVertexCount(A):r.getCubicCurveVertexCount(A[0],A[1],A[2],A[3]),D=0,P=[],L=[],I=x;I<x+E;I++)a.attributes.position.get(I,P),P[0]*=y,P[1]*=_,P[2]*=w,I>x&&(D+=TW.dist(P,L)),a.attributes.dist.set(I,D),TW.copy(L,P);S=Math.max(S,D);for(var O=Math.random()*(c?D:u),I=x;I<x+E;I++)a.attributes.distAll.set(I,D),a.attributes.start.set(I,O),a.attributes.offset.set(I,q_t(r.attributes.offset.get(I))*o/2),a.attributes.color.set(I,h);x+=E}),this.material.set("spotSize",S*.1*s),this.material.set("spotIntensity",i.get("spotIntensity")),a.dirty()},setAnimationTime:function(e){this.material.set("time",e)}});ue.Shader.import(WT);function J_t(e){return e.radius!=null?e.radius:e.size!=null?Math.max(e.size[0],e.size[1],e.size[2]):100}const e1t=xr.extend({type:"lines3D",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this._meshLinesMaterial=new ue.Material({shader:ue.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new ue.Mesh({geometry:new gv,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new Q_t},render:function(e,t,r){this.groupGL.add(this._linesMesh);var n=e.coordinateSystem,a=e.getData();if(n&&n.viewGL){var i=n.viewGL;i.add(this.groupGL),this._updateLines(e,t,r);var o=n.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[o]("fragment","SRGB_DECODE"),this._trailMesh.material[o]("fragment","SRGB_DECODE")}var s=this._trailMesh;if(s.stopAnimation(),e.get("effect.show")){this.groupGL.add(s),s.updateData(a,r,this._linesMesh.geometry),s.__time=s.__time||0;var l=3600*1e3;this._curveEffectsAnimator=s.animate("",{loop:!0}).when(l,{__time:l}).during(function(){s.setAnimationTime(s.__time)}).start()}else this.groupGL.remove(s),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend=e.get("blendMode")==="lighter"?ue.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var e=this._curveEffectsAnimator;e&&(e.isPaused()?e.resume():e.pause())},_updateLines:function(e,t,r){var n=e.getData(),a=e.coordinateSystem,i=this._linesMesh.geometry,o=e.get("polyline");i.expandLine=!0;var s=J_t(a);i.segmentScale=s/20;var l="lineStyle.width".split("."),u=r.getDevicePixelRatio();n.each(function(h){var v=n.getItemModel(h),p=v.get(l);p==null&&(p=1),n.setItemVisual(h,"lineWidth",p)}),i.useNativeLine=!1;var c=0,f=0;n.each(function(h){var v=n.getItemLayout(h);o?(c+=i.getPolylineVertexCount(v),f+=i.getPolylineTriangleCount(v)):(c+=i.getCubicCurveVertexCount(v[0],v[1],v[2],v[3]),f+=i.getCubicCurveTriangleCount(v[0],v[1],v[2],v[3]))}),i.setVertexCount(c),i.setTriangleCount(f),i.resetOffset();var d=[];n.each(function(h){var v=n.getItemLayout(h),p=Ma(n,h),g=Ea(n,h),m=n.getItemVisual(h,"lineWidth")*u;g==null&&(g=1),d=ue.parseColor(p,d),d[3]*=g,o?i.addPolyline(v,d,m):i.addCubicCurve(v[0],v[1],v[2],v[3],d,m)}),i.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function t1t(e){e.registerChartView(e1t),e.registerSeriesModel(X_t),e.registerLayout(K_t),e.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},function(){}),e.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},function(){}),e.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},function(){})}Dt(t1t);function CW(e,t){for(var r=[],n=0;n<t.length;n++)r.push(e.dataToPoint(t[n]));return r}var qie=Ir.extend({type:"series.polygons3D",getRegionModel:function(e){return this.getData().getItemModel(e)},getRegionPolygonCoords:function(e){var t=this.coordinateSystem,r=this.getData().getItemModel(e),n=r.option instanceof Array?r.option:r.getShallow("coords");r.get("multiPolygon")||(n=[n]);for(var a=[],i=0;i<n.length;i++){for(var o=[],s=1;s<n[i].length;s++)o.push(CW(t,n[i][s]));a.push({exterior:CW(t,n[i][0]),interiors:o})}return a},getInitialData:function(e){var t=new Dn(["value"],this);return t.hasItemOption=!1,t.initData(e.data,[],function(r,n,a,i){if(r instanceof Array)return NaN;t.hasItemOption=!0;var o=r.value;if(o!=null)return o instanceof Array?o[i]:o}),t},defaultOption:{show:!0,data:null,multiPolygon:!1,progressiveThreshold:1e3,progressive:1e3,zlevel:-10,label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}});st(qie.prototype,dm);const r1t=qie,n1t=xr.extend({type:"polygons3D",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this._geo3DBuilderList=[],this._currentStep=0},render:function(e,t,r){this.groupGL.removeAll();var n=e.coordinateSystem;n&&n.viewGL&&n.viewGL.add(this.groupGL);var a=this._geo3DBuilderList[0];a||(a=new Eg(r),a.extrudeY=n.type!=="mapbox3D"&&n.type!=="maptalks3D",this._geo3DBuilderList[0]=a),this._updateShaderDefines(n,a),a.update(e,t,r),this._geo3DBuilderList.length=1,this.groupGL.add(a.rootNode)},incrementalPrepareRender:function(e,t,r){this.groupGL.removeAll();var n=e.coordinateSystem;n&&n.viewGL&&n.viewGL.add(this.groupGL),this._currentStep=0},incrementalRender:function(e,t,r,n){var a=this._geo3DBuilderList[this._currentStep],i=t.coordinateSystem;a||(a=new Eg(n),a.extrudeY=i.type!=="mapbox3D"&&i.type!=="maptalks3D",this._geo3DBuilderList[this._currentStep]=a),a.update(t,r,n,e.start,e.end),this.groupGL.add(a.rootNode),this._updateShaderDefines(i,a),this._currentStep++},_updateShaderDefines:function(e,t){var r=e.viewGL.isLinearSpace()?"define":"undefine";t.rootNode.traverse(function(n){n.material&&(n.material[r]("fragment","SRGB_DECODE"),(e.type==="mapbox3D"||e.type==="maptalks3D")&&(n.material.define("fragment","NORMAL_UP_AXIS",2),n.material.define("fragment","NORMAL_FRONT_AXIS",1)))})},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll(),this._geo3DBuilderList.forEach(function(e){e.dispose()})}});function a1t(e){e.registerChartView(n1t),e.registerSeriesModel(r1t)}Dt(a1t);var Qie=Ir.extend({type:"series.surface",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",formatTooltip:function(e){return H1(this,e)},getInitialData:function(e,t){var r=e.data;function n(R){return!(isNaN(R.min)||isNaN(R.max)||isNaN(R.step))}function a(R){var B=xA;return Math.max(B(R.min),B(R.max),B(R.step))+1}if(!r)if(e.parametric){var w=e.parametricEquation||{},x=w.u||{},S=w.v||{};["u","v"].forEach(function(B){n(w[B])}),["x","y","z"].forEach(function(B){w[B]});var T=Math.floor((x.max+x.step-x.min)/x.step),A=Math.floor((S.max+S.step-S.min)/S.step);r=new Float32Array(T*A*5);for(var C=a(x),M=a(S),d=0,h=0;h<A;h++)for(var v=0;v<T;v++){var E=v*x.step+x.min,D=h*S.step+S.min,P=yn(Math.min(E,x.max),C),L=yn(Math.min(D,S.max),M),p=w.x(P,L),g=w.y(P,L),_=w.z(P,L);r[d++]=p,r[d++]=g,r[d++]=_,r[d++]=P,r[d++]=L}}else{var i=e.equation||{},o=i.x||{},s=i.y||{};if(["x","y"].forEach(function(R){n(i[R])}),typeof i.z!="function")return;var l=Math.floor((o.max+o.step-o.min)/o.step),u=Math.floor((s.max+s.step-s.min)/s.step);r=new Float32Array(l*u*3);for(var c=a(o),f=a(s),d=0,h=0;h<u;h++)for(var v=0;v<l;v++){var p=v*o.step+o.min,g=h*s.step+s.min,m=yn(Math.min(p,o.max),c),y=yn(Math.min(g,s.max),f),_=i.z(m,y);r[d++]=m,r[d++]=y,r[d++]=_}}var I=["x","y","z"];e.parametric&&I.push("u","v");var O=YT(this,I,r);return O},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,shading:"lambert",parametric:!1,wireframe:{show:!0,lineStyle:{color:"rgba(0,0,0,0.5)",width:1}},equation:{x:{min:-1,max:1,step:.1},y:{min:-1,max:1,step:.1},z:null},parametricEquation:{u:{min:-1,max:1,step:.1},v:{min:-1,max:1,step:.1},x:null,y:null,z:null},dataShape:null,itemStyle:{},animationDurationUpdate:500}});st(Qie.prototype,dm);const i1t=Qie;var Ld=Jn.vec3;function o1t(e){return isNaN(e[0])||isNaN(e[1])||isNaN(e[2])}const s1t=xr.extend({type:"surface",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node},render:function(e,t,r){var n=this._prevSurfaceMesh;this._prevSurfaceMesh=this._surfaceMesh,this._surfaceMesh=n,this._surfaceMesh||(this._surfaceMesh=this._createSurfaceMesh()),this.groupGL.remove(this._prevSurfaceMesh),this.groupGL.add(this._surfaceMesh);var a=e.coordinateSystem,i=e.get("shading"),o=e.getData(),s="ecgl."+i;if((!this._surfaceMesh.material||this._surfaceMesh.material.shader.name!==s)&&(this._surfaceMesh.material=ue.createMaterial(s,["VERTEX_COLOR","DOUBLE_SIDED"])),ue.setMaterialFromModel(i,this._surfaceMesh.material,e,r),a&&a.viewGL){a.viewGL.add(this.groupGL);var l=a.viewGL.isLinearSpace()?"define":"undefine";this._surfaceMesh.material[l]("fragment","SRGB_DECODE")}var u=e.get("parametric"),c=e.get("dataShape");c||(c=this._getDataShape(o,u));var f=e.getModel("wireframe"),d=f.get("lineStyle.width"),h=f.get("show")&&d>0;this._updateSurfaceMesh(this._surfaceMesh,e,c,h);var v=this._surfaceMesh.material;h?(v.define("WIREFRAME_QUAD"),v.set("wireframeLineWidth",d),v.set("wireframeLineColor",ue.parseColor(f.get("lineStyle.color")))):v.undefine("WIREFRAME_QUAD"),this._initHandler(e,r),this._updateAnimation(e)},_updateAnimation:function(e){ue.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,e)},_createSurfaceMesh:function(){var e=new ue.Mesh({geometry:new ue.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new ue.Material({shader:new ue.Shader(ue.Shader.source("ecgl.sm.depth.vertex"),ue.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return e.geometry.createAttribute("barycentric","float",4),e.geometry.createAttribute("prevPosition","float",3),e.geometry.createAttribute("prevNormal","float",3),Object.assign(e.geometry,_4),e},_initHandler:function(e,t){var r=e.getData(),n=this._surfaceMesh,a=e.coordinateSystem;function i(s,l){for(var u=1/0,c=-1,f=[],d=0;d<s.length;d++){n.geometry.attributes.position.get(s[d],f);var h=Ld.dist(l.array,f);h<u&&(u=h,c=s[d])}return c}n.seriesIndex=e.seriesIndex;var o=-1;n.off("mousemove"),n.off("mouseout"),n.on("mousemove",function(s){var l=i(s.triangle,s.point);if(l>=0){var u=[];n.geometry.attributes.position.get(l,u);for(var c=a.pointToData(u),f=1/0,d=-1,h=[],v=0;v<r.count();v++){h[0]=r.get("x",v),h[1]=r.get("y",v),h[2]=r.get("z",v);var p=Ld.squaredDistance(h,c);p<f&&(d=v,f=p)}d!==o&&t.dispatchAction({type:"grid3DShowAxisPointer",value:c}),o=d,n.dataIndex=d}else n.dataIndex=-1},this),n.on("mouseout",function(s){o=-1,n.dataIndex=-1,t.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_updateSurfaceMesh:function(e,t,r,n){var a=e.geometry,i=t.getData(),o=i.getLayout("points"),s=0;i.each(function(q){i.hasValue(q)||s++});var l=s||n,u=a.attributes.position,c=a.attributes.normal,f=a.attributes.texcoord0,d=a.attributes.barycentric,h=a.attributes.color,v=r[0],p=r[1],g=t.get("shading"),m=g!=="color";if(l){var y=(v-1)*(p-1)*4;u.init(y),n&&d.init(y)}else u.value=new Float32Array(o);h.init(a.vertexCount),f.init(a.vertexCount);var _=[0,3,1,1,3,2],w=[[1,1,0,0],[0,1,0,1],[1,0,0,1],[1,0,1,0]],x=a.indices=new(a.vertexCount>65535?Uint32Array:Uint16Array)((v-1)*(p-1)*6),S=function(q,oe,ve){ve[1]=q*p+oe,ve[0]=q*p+oe+1,ve[3]=(q+1)*p+oe+1,ve[2]=(q+1)*p+oe},T=!1;if(l){var A=[],C=[],M=0;m?c.init(a.vertexCount):c.value=null;for(var E=[[],[],[]],D=[],P=[],L=Ld.create(),I=function(q,oe,ve){var _e=oe*3;return ve[0]=q[_e],ve[1]=q[_e+1],ve[2]=q[_e+2],ve},O=new Float32Array(o.length),R=new Float32Array(o.length/3*4),B=0;B<i.count();B++)if(i.hasValue(B)){var re=ue.parseColor(Ma(i,B)),k=Ea(i,B);k!=null&&(re[3]*=k),re[3]<.99&&(T=!0);for(var z=0;z<4;z++)R[B*4+z]=re[z]}for(var $=[1e7,1e7,1e7],B=0;B<v-1;B++)for(var j=0;j<p-1;j++){var X=B*(p-1)+j,Q=X*4;S(B,j,A);for(var se=!1,z=0;z<4;z++)I(o,A[z],C),o1t(C)&&(se=!0);for(var z=0;z<4;z++)se?u.set(Q+z,$):(I(o,A[z],C),u.set(Q+z,C)),n&&d.set(Q+z,w[z]);for(var z=0;z<6;z++)x[M++]=_[z]+Q;if(m&&!se)for(var z=0;z<2;z++){for(var ee=z*3,K=0;K<3;K++){var Z=A[_[ee]+K];I(o,Z,E[K])}Ld.sub(D,E[0],E[1]),Ld.sub(P,E[1],E[2]),Ld.cross(L,D,P);for(var K=0;K<3;K++){var ne=A[_[ee]+K]*3;O[ne]=O[ne]+L[0],O[ne+1]=O[ne+1]+L[1],O[ne+2]=O[ne+2]+L[2]}}}if(m)for(var B=0;B<O.length/3;B++)I(O,B,L),Ld.normalize(L,L),O[B*3]=L[0],O[B*3+1]=L[1],O[B*3+2]=L[2];for(var re=[],ie=[],B=0;B<v-1;B++)for(var j=0;j<p-1;j++){var X=B*(p-1)+j,Q=X*4;S(B,j,A);for(var z=0;z<4;z++){for(var K=0;K<4;K++)re[K]=R[A[z]*4+K];h.set(Q+z,re),m&&(I(O,A[z],L),c.set(Q+z,L));var Z=A[z];ie[0]=Z%p/(p-1),ie[1]=Math.floor(Z/p)/(v-1),f.set(Q+z,ie)}X++}}else{for(var ie=[],B=0;B<i.count();B++){ie[0]=B%p/(p-1),ie[1]=Math.floor(B/p)/(v-1);var re=ue.parseColor(Ma(i,B)),k=Ea(i,B);k!=null&&(re[3]*=k),re[3]<.99&&(T=!0),h.set(B,re),f.set(B,ie)}for(var A=[],Y=0,B=0;B<v-1;B++)for(var j=0;j<p-1;j++){S(B,j,A);for(var z=0;z<6;z++)x[Y++]=A[_[z]]}m?a.generateVertexNormals():c.value=null}e.material.get("normalMap")&&a.generateTangents(),a.updateBoundingBox(),a.dirty(),e.material.transparent=T,e.material.depthMask=!T},_getDataShape:function(e,t){for(var r=-1/0,n=0,a=0,i=!1,o=t?"u":"x",s=e.count(),l=0;l<s;l++){var u=e.get(o,l);u<r&&(a=0,n++),r=u,a++}if((!n||a===1)&&(i=!0),!i)return[n+1,a];for(var c=Math.floor(Math.sqrt(s));c>0;){if(Math.floor(s/c)===s/c)return[c,s/c];c--}return c=Math.floor(Math.sqrt(s)),[c,c]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function l1t(e){e.registerChartView(s1t),e.registerSeriesModel(i1t),e.registerLayout(function(t,r){t.eachSeriesByType("surface",function(n){var a=n.coordinateSystem;!a||a.type;var i=n.getData(),o=new Float32Array(3*i.count()),s=[NaN,NaN,NaN];if(a&&a.type==="cartesian3D"){var l=a.dimensions,u=l.map(function(c){return n.coordDimToDataDim(c)[0]});i.each(u,function(c,f,d,h){var v;i.hasValue(h)?v=a.dataToPoint([c,f,d]):v=s,o[h*3]=v[0],o[h*3+1]=v[1],o[h*3+2]=v[2]})}i.setLayout("points",o)})})}Dt(l1t);function EW(e,t){for(var r=[],n=0;n<t.length;n++)r.push(e.dataToPoint(t[n]));return r}var pm=Ir.extend({type:"series.map3D",layoutMode:"box",coordinateSystem:null,visualStyleAccessPath:"itemStyle",optionUpdated:function(e){var t=this.get("coordinateSystem");t==null||t==="geo3D"||(this.get("groundPlane.show")&&(this.option.groundPlane.show=!1),this._geo=null)},getInitialData:function(e){e.data=this.getFilledRegions(e.data,e.map);var t=em(e.data,{coordDimensions:["value"]}),r=new Dn(t,this);r.initData(e.data);var n={};return r.each(function(a){var i=r.getName(a),o=r.getItemModel(a);n[i]=o}),this._regionModelMap=n,r},formatTooltip:function(e){return H1(this,e)},getRegionModel:function(e){var t=this.getData().getName(e);return this._regionModelMap[t]||new $r(null,this)},getRegionPolygonCoords:function(e){var t=this.coordinateSystem,r=this.getData().getName(e);if(t.transform){var n=t.getRegion(r);return n?n.geometries:[]}else{this._geo||(this._geo=Bie.createGeo3D(this));for(var n=this._geo.getRegion(r),a=[],i=0;i<n.geometries.length;i++){var o=n.geometries[i],s=[],l=EW(t,o.exterior);if(s&&s.length)for(var u=0;u<o.interiors.length;u++)s.push(EW(t,s[u]));a.push({interiors:s,exterior:l})}return a}},getFormattedLabel:function(e,t){var r=vm.getFormattedLabel(this,e,t);return r==null&&(r=this.getData().getName(e)),r},defaultOption:{coordinateSystem:"geo3D",data:null}});st(pm.prototype,Mie);st(pm.prototype,HT);st(pm.prototype,um);st(pm.prototype,cm);st(pm.prototype,dm);const u1t=pm,c1t=xr.extend({type:"map3D",__ecgl__:!0,init:function(e,t){this._geo3DBuilder=new Eg(t),this.groupGL=new ue.Node},render:function(e,t,r){var n=e.coordinateSystem;if(!(!n||!n.viewGL)){if(this.groupGL.add(this._geo3DBuilder.rootNode),n.viewGL.add(this.groupGL),n.type==="geo3D"){this._sceneHelper||(this._sceneHelper=new Lf,this._sceneHelper.initLight(this.groupGL)),this._sceneHelper.setScene(n.viewGL.scene),this._sceneHelper.updateLight(e),n.viewGL.setPostEffect(e.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(e.getModel("temporalSuperSampling"));var a=this._control;a||(a=this._control=new UT({zr:r.getZr()}),this._control.init());var i=e.getModel("viewControl");a.setViewGL(n.viewGL),a.setFromViewControlModel(i,0),a.off("update"),a.on("update",function(){r.dispatchAction({type:"map3DChangeCamera",alpha:a.getAlpha(),beta:a.getBeta(),distance:a.getDistance(),from:this.uid,map3DId:e.id})}),this._geo3DBuilder.extrudeY=!0}else this._control&&(this._control.dispose(),this._control=null),this._sceneHelper&&(this._sceneHelper.dispose(),this._sceneHelper=null),e.getData().getLayout("geo3D"),this._geo3DBuilder.extrudeY=!1;this._geo3DBuilder.update(e,t,r,0,e.getData().count());var o=n.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse(function(s){s.material&&s.material[o]("fragment","SRGB_DECODE")})}},afterRender:function(e,t,r,n){var a=n.renderer,i=e.coordinateSystem;i&&i.type==="geo3D"&&(this._sceneHelper.updateAmbientCubemap(a,e,r),this._sceneHelper.updateSkybox(a,e,r))},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._geo3DBuilder.dispose()}});function f1t(e){Fie(e),e.registerChartView(c1t),e.registerSeriesModel(u1t),e.registerAction({type:"map3DChangeCamera",event:"map3dcamerachanged",update:"series:updateCamera"},function(t,r){r.eachComponent({mainType:"series",subType:"map3D",query:t},function(n){n.setView(t)})})}Dt(f1t);const d1t=Ir.extend({type:"series.scatterGL",dependencies:["grid","polar","geo","singleAxis"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(){return pZ(this)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,progressive:1e5,progressiveThreshold:1e5,large:!1,symbol:"circle",symbolSize:10,zoomScale:0,blendMode:"source-over",itemStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}});function fc(e){this.viewGL=e}fc.prototype.reset=function(e,t){this._updateCamera(t.getWidth(),t.getHeight(),t.getDevicePixelRatio()),this._viewTransform=lo(),this.updateTransform(e,t)};fc.prototype.updateTransform=function(e,t){var r=e.coordinateSystem;r.getRoamTransform&&(kf(this._viewTransform,r.getRoamTransform()),this._setCameraTransform(this._viewTransform),t.getZr().refresh())};fc.prototype.dataToPoint=function(e,t,r){r=e.dataToPoint(t,null,r);var n=this._viewTransform;n&&va(r,r,n)};fc.prototype.removeTransformInPoint=function(e){return this._viewTransform&&va(e,e,this._viewTransform),e};fc.prototype.getZoom=function(){if(this._viewTransform){var e=this._viewTransform;return 1/Math.max(Math.sqrt(e[0]*e[0]+e[1]*e[1]),Math.sqrt(e[2]*e[2]+e[3]*e[3]))}return 1};fc.prototype._setCameraTransform=function(e){var t=this.viewGL.camera;t.position.set(e[4],e[5],0),t.scale.set(Math.sqrt(e[0]*e[0]+e[1]*e[1]),Math.sqrt(e[2]*e[2]+e[3]*e[3]),1)};fc.prototype._updateCamera=function(e,t,r){this.viewGL.setViewport(0,0,e,t,r);var n=this.viewGL.camera;n.left=n.top=0,n.bottom=t,n.right=e,n.near=0,n.far=100};const h1t=xr.extend({type:"scatterGL",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this.viewGL=new an("orthographic"),this.viewGL.add(this.groupGL),this._pointsBuilderList=[],this._currentStep=0,this._sizeScale=1,this._glViewHelper=new fc(this.viewGL)},render:function(e,t,r){if(this.groupGL.removeAll(),this._glViewHelper.reset(e,r),!!e.getData().count()){var n=this._pointsBuilderList[0];n||(n=this._pointsBuilderList[0]=new Qh(!0,r)),this._pointsBuilderList.length=1,this.groupGL.add(n.rootNode),this._removeTransformInPoints(e.getData().getLayout("points")),n.update(e,t,r),this.viewGL.setPostEffect(e.getModel("postEffect"),r)}},incrementalPrepareRender:function(e,t,r){this.groupGL.removeAll(),this._glViewHelper.reset(e,r),this._currentStep=0,this.viewGL.setPostEffect(e.getModel("postEffect"),r)},incrementalRender:function(e,t,r,n){if(!(e.end<=e.start)){var a=this._pointsBuilderList[this._currentStep];a||(a=new Qh(!0,n),this._pointsBuilderList[this._currentStep]=a),this.groupGL.add(a.rootNode),this._removeTransformInPoints(t.getData().getLayout("points")),a.setSizeScale(this._sizeScale),a.update(t,r,n,e.start,e.end),n.getZr().refresh(),this._currentStep++}},updateTransform:function(e,t,r){if(e.coordinateSystem.getRoamTransform){this._glViewHelper.updateTransform(e,r);var n=this._glViewHelper.getZoom(),a=Math.max((e.get("zoomScale")||0)*(n-1)+1,0);this._sizeScale=a,this._pointsBuilderList.forEach(function(i){i.setSizeScale(a)})}},_removeTransformInPoints:function(e){if(e)for(var t=[],r=0;r<e.length;r+=2)t[0]=e[r],t[1]=e[r+1],this._glViewHelper.removeTransformInPoint(t),e[r]=t[0],e[r+1]=t[1]},dispose:function(){this.groupGL.removeAll(),this._pointsBuilderList.forEach(function(e){e.dispose()})},remove:function(){this.groupGL.removeAll()}});function v1t(e){e.registerChartView(h1t),e.registerSeriesModel(d1t),e.registerLayout({seriesType:"scatterGL",reset:function(t){var r=t.coordinateSystem,n=t.getData(),a;if(r){var i=r.dimensions.map(function(s){return n.mapDimension(s)}).slice(0,2),o=[];i.length===1?a=function(s){for(var l=new Float32Array((s.end-s.start)*2),u=s.start;u<s.end;u++){var c=(u-s.start)*2,f=n.get(i[0],u),d=r.dataToPoint(f);l[c]=d[0],l[c+1]=d[1]}n.setLayout("points",l)}:i.length===2&&(a=function(s){for(var l=new Float32Array((s.end-s.start)*2),u=s.start;u<s.end;u++){var c=(u-s.start)*2,f=n.get(i[0],u),d=n.get(i[1],u);o[0]=f,o[1]=d,o=r.dataToPoint(o),l[c]=o[0],l[c+1]=o[1]}n.setLayout("points",l)})}return{progress:a}}})}Dt(v1t);function p1t(e,t,r,n,a){for(var i=new Xq(n),o=0;o<e.length;o++)i.addNode(Sr.firstNotNull(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(Sr.firstNotNull(c.id,f+" > "+d)),u++)}var h,v=em(e,{coordDimensions:["value"]});h=new Dn(v,r),h.initData(e);var p=new Dn(["value"],r);return p.initData(l,s),a&&a(h,p),Hk({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:p},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ly=Ir.extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(e){Ly.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(e){Ly.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(e,t,r,n){var a=vm.getFormattedLabel(this,e,t,r,n);if(a==null){var i=this.getData(),o=i.dimensions[i.dimensions.length-1];a=i.get(o,e)}return a},getInitialData:function(e,t){var r=e.edges||e.links||[],n=e.data||e.nodes||[],a=this;if(n&&r)return p1t(n,r,this,!0,i).data;function i(o,s){o.wrapMethod("getItemModel",function(f){const d=a._categoriesModels,h=f.getShallow("category"),v=d[h];return v&&(v.parentModel=f.parentModel,f.parentModel=v),f});const l=t.getModel([]).getModel;function u(f,d){const h=l.call(this,f,d);return h.resolveParentPath=c,h}s.wrapMethod("getItemModel",function(f){return f.resolveParentPath=c,f.getModel=u,f});function c(f){if(f&&(f[0]==="label"||f[1]==="label")){const d=f.slice();return f[0]==="label"?d[0]="edgeLabel":f[1]==="label"&&(d[1]="edgeLabel"),d}return f}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,r){if(r==="edge"){var n=this.getData(),a=this.getDataParams(e,r),i=n.graph.getEdgeByIndex(e),o=n.getName(i.node1.dataIndex),s=n.getName(i.node2.dataIndex),l=[];return o!=null&&l.push(o),s!=null&&l.push(s),l=na(l.join(" > ")),a.value&&(l+=" : "+na(a.value)),l}else return Ly.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=(this.option.categories||[]).map(function(r){return r.value!=null?r:Object.assign({value:0},r)}),t=new Dn(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(r){return t.getItemModel(r,!0)})},setView:function(e){e.zoom!=null&&(this.option.zoom=e.zoom),e.offset!=null&&(this.option.offset=e.offset)},setNodePosition:function(e){for(var t=0;t<e.length/2;t++){var r=e[t*2],n=e[t*2+1],a=this.getData().getRawDataItem(t);a.x=r,a.y=n}},isAnimationEnabled:function(){return Ly.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:10,z:2,legendHoverLink:!0,layout:"forceAtlas2",forceAtlas2:{initLayout:null,GPU:!0,steps:1,maxSteps:1e3,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,edgeWeightInfluence:1,edgeWeight:[1,4],nodeWeight:[1,4],preventOverlap:!1,gravityCenter:null},focusNodeAdjacency:!0,focusNodeAdjacencyOn:"mouseover",left:"center",top:"center",symbol:"circle",symbolSize:5,roam:!1,center:null,zoom:1,label:{show:!1,formatter:"{b}",position:"right",distance:5,textStyle:{fontSize:14}},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}},animation:!1}});const g1t=Ly;var fa=Jn.vec2,MW=[[0,0],[1,1]],Jie=Hr.extend(function(){return{segmentScale:4,dynamic:!0,useNativeLine:!0,attributes:{position:new Hr.Attribute("position","float",2,"POSITION"),normal:new Hr.Attribute("normal","float",2),offset:new Hr.Attribute("offset","float",1),color:new Hr.Attribute("color","float",4,"COLOR")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(e){var t=this.attributes;this.vertexCount!==e&&(t.position.init(e),t.color.init(e),this.useNativeLine||(t.offset.init(e),t.normal.init(e)),e>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(e){this.triangleCount!==e&&(e===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(e*3):new Uint16Array(e*3))},_getCubicCurveApproxStep:function(e,t,r,n){var a=fa.dist(e,t)+fa.dist(r,t)+fa.dist(n,r),i=1/(a+1)*this.segmentScale;return i},getCubicCurveVertexCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?i*2:i*2+2},getCubicCurveTriangleCount:function(e,t,r,n){var a=this._getCubicCurveApproxStep(e,t,r,n),i=Math.ceil(1/a);return this.useNativeLine?0:i*2},getLineVertexCount:function(){return this.getPolylineVertexCount(MW)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(MW)},getPolylineVertexCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?(t-1)*2:(t-1)*2+2},getPolylineTriangleCount:function(e){var t;if(typeof e=="number")t=e;else{var r=typeof e[0]!="number";t=r?e.length:e.length/2}return this.useNativeLine?0:(t-1)*2},addCubicCurve:function(e,t,r,n,a,i){i==null&&(i=1);for(var o=e[0],s=e[1],l=t[0],u=t[1],c=r[0],f=r[1],d=n[0],h=n[1],v=this._getCubicCurveApproxStep(e,t,r,n),p=v*v,g=p*v,m=3*v,y=3*p,_=6*p,w=6*g,x=o-l*2+c,S=s-u*2+f,T=(l-c)*3-o+d,A=(u-f)*3-s+h,C=o,M=s,E=(l-o)*m+x*y+T*g,D=(u-s)*m+S*y+A*g,P=x*_+T*w,L=S*_+A*w,I=T*w,O=A*w,R=0,B=0,k=Math.ceil(1/v),z=new Float32Array((k+1)*3),z=[],$=0,B=0;B<k+1;B++)z[$++]=C,z[$++]=M,C+=E,M+=D,E+=P,D+=L,P+=I,L+=O,R+=v,R>1&&(C=E>0?Math.min(C,d):Math.max(C,d),M=D>0?Math.min(M,h):Math.max(M,h));this.addPolyline(z,a,i)},addLine:function(e,t,r,n){this.addPolyline([e,t],r,n)},addPolyline:function(){var e=fa.create(),t=fa.create(),r=fa.create(),n=fa.create(),a=[],i=[],o=[];return function(s,l,u,c,f){if(s.length){var d=typeof s[0]!="number";if(f==null&&(f=d?s.length:s.length/2),!(f<2)){c==null&&(c=0),u==null&&(u=1),this._itemVertexOffsets.push(this._vertexOffset);for(var h=d?typeof l[0]!="number":l.length/4===f,v=this.attributes.position,p=this.attributes.color,g=this.attributes.offset,m=this.attributes.normal,y=this.indices,_=this._vertexOffset,w,x=0;x<f;x++){if(d)a=s[x+c],h?w=l[x+c]:w=l;else{var S=x*2+c;if(a=a||[],a[0]=s[S],a[1]=s[S+1],h){var T=x*4+c;w=w||[],w[0]=l[T],w[1]=l[T+1],w[2]=l[T+2],w[3]=l[T+3]}else w=l}if(this.useNativeLine)x>1&&(v.copy(_,_-1),p.copy(_,_-1),_++);else{var A;if(x<f-1){if(d)fa.copy(i,s[x+1]);else{var S=(x+1)*2+c;i=i||[],i[0]=s[S],i[1]=s[S+1]}if(x>0){fa.sub(e,a,o),fa.sub(t,i,a),fa.normalize(e,e),fa.normalize(t,t),fa.add(n,e,t),fa.normalize(n,n);var C=u/2*Math.min(1/fa.dot(e,n),2);r[0]=-n[1],r[1]=n[0],A=C}else fa.sub(e,i,a),fa.normalize(e,e),r[0]=-e[1],r[1]=e[0],A=u/2}else fa.sub(e,a,o),fa.normalize(e,e),r[0]=-e[1],r[1]=e[0],A=u/2;m.set(_,r),m.set(_+1,r),g.set(_,A),g.set(_+1,-A),fa.copy(o,a),v.set(_,a),v.set(_+1,a),p.set(_,w),p.set(_+1,w),_+=2}if(this.useNativeLine)p.set(_,w),v.set(_,a),_++;else if(x>0){var M=this._faceOffset*3,y=this.indices;y[M]=_-4,y[M+1]=_-3,y[M+2]=_-2,y[M+3]=_-3,y[M+4]=_-1,y[M+5]=_-2,this._faceOffset+=2}}this._vertexOffset=_}}}}(),setItemColor:function(e,t){for(var r=this._itemVertexOffsets[e],n=e<this._itemVertexOffsets.length-1?this._itemVertexOffsets[e+1]:this._vertexOffset,a=r;a<n;a++)this.attributes.color.set(a,t);this.dirty("color")}});yt(Jie.prototype,V1);const eoe=Jie,m1t=`@export ecgl.forceAtlas2.updateNodeRepulsion
|
||
|
||
#define NODE_COUNT 0
|
||
|
||
uniform sampler2D positionTex;
|
||
|
||
uniform vec2 textureSize;
|
||
uniform float gravity;
|
||
uniform float scaling;
|
||
uniform vec2 gravityCenter;
|
||
|
||
uniform bool strongGravityMode;
|
||
uniform bool preventOverlap;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
void main() {
|
||
|
||
vec4 n0 = texture2D(positionTex, v_Texcoord);
|
||
|
||
vec2 force = vec2(0.0);
|
||
for (int i = 0; i < NODE_COUNT; i++) {
|
||
vec2 uv = vec2(
|
||
mod(float(i), textureSize.x) / (textureSize.x - 1.0),
|
||
floor(float(i) / textureSize.x) / (textureSize.y - 1.0)
|
||
);
|
||
vec4 n1 = texture2D(positionTex, uv);
|
||
|
||
vec2 dir = n0.xy - n1.xy;
|
||
float d2 = dot(dir, dir);
|
||
|
||
if (d2 > 0.0) {
|
||
float factor = 0.0;
|
||
if (preventOverlap) {
|
||
float d = sqrt(d2);
|
||
d = d - n0.w - n1.w;
|
||
if (d > 0.0) {
|
||
factor = scaling * n0.z * n1.z / (d * d);
|
||
}
|
||
else if (d < 0.0) {
|
||
factor = scaling * 100.0 * n0.z * n1.z;
|
||
}
|
||
}
|
||
else {
|
||
factor = scaling * n0.z * n1.z / d2;
|
||
}
|
||
force += dir * factor;
|
||
}
|
||
}
|
||
|
||
vec2 dir = gravityCenter - n0.xy;
|
||
float d = 1.0;
|
||
if (!strongGravityMode) {
|
||
d = length(dir);
|
||
}
|
||
|
||
force += dir * n0.z * gravity / (d + 1.0);
|
||
|
||
gl_FragColor = vec4(force, 0.0, 1.0);
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.updateEdgeAttraction.vertex
|
||
|
||
attribute vec2 node1;
|
||
attribute vec2 node2;
|
||
attribute float weight;
|
||
|
||
uniform sampler2D positionTex;
|
||
uniform float edgeWeightInfluence;
|
||
uniform bool preventOverlap;
|
||
uniform bool linLogMode;
|
||
|
||
uniform vec2 windowSize: WINDOW_SIZE;
|
||
|
||
varying vec2 v_Force;
|
||
|
||
void main() {
|
||
|
||
vec4 n0 = texture2D(positionTex, node1);
|
||
vec4 n1 = texture2D(positionTex, node2);
|
||
|
||
vec2 dir = n1.xy - n0.xy;
|
||
float d = length(dir);
|
||
float w;
|
||
if (edgeWeightInfluence == 0.0) {
|
||
w = 1.0;
|
||
}
|
||
else if (edgeWeightInfluence == 1.0) {
|
||
w = weight;
|
||
}
|
||
else {
|
||
w = pow(weight, edgeWeightInfluence);
|
||
}
|
||
vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);
|
||
vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);
|
||
vec2 pos = node1 * scale * 2.0 - 1.0;
|
||
gl_Position = vec4(pos + offset, 0.0, 1.0);
|
||
gl_PointSize = 1.0;
|
||
|
||
float factor;
|
||
if (preventOverlap) {
|
||
d = d - n1.w - n0.w;
|
||
}
|
||
if (d <= 0.0) {
|
||
v_Force = vec2(0.0);
|
||
return;
|
||
}
|
||
|
||
if (linLogMode) {
|
||
factor = w * log(d) / d;
|
||
}
|
||
else {
|
||
factor = w;
|
||
}
|
||
v_Force = dir * factor;
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.updateEdgeAttraction.fragment
|
||
|
||
varying vec2 v_Force;
|
||
|
||
void main() {
|
||
gl_FragColor = vec4(v_Force, 0.0, 0.0);
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.calcWeightedSum.vertex
|
||
|
||
attribute vec2 node;
|
||
|
||
varying vec2 v_NodeUv;
|
||
|
||
void main() {
|
||
|
||
v_NodeUv = node;
|
||
gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
|
||
gl_PointSize = 1.0;
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.calcWeightedSum.fragment
|
||
|
||
varying vec2 v_NodeUv;
|
||
|
||
uniform sampler2D positionTex;
|
||
uniform sampler2D forceTex;
|
||
uniform sampler2D forcePrevTex;
|
||
|
||
void main() {
|
||
vec2 force = texture2D(forceTex, v_NodeUv).rg;
|
||
vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;
|
||
|
||
float mass = texture2D(positionTex, v_NodeUv).z;
|
||
float swing = length(force - forcePrev) * mass;
|
||
float traction = length(force + forcePrev) * 0.5 * mass;
|
||
|
||
gl_FragColor = vec4(swing, traction, 0.0, 0.0);
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.calcGlobalSpeed
|
||
|
||
uniform sampler2D globalSpeedPrevTex;
|
||
uniform sampler2D weightedSumTex;
|
||
uniform float jitterTolerence;
|
||
|
||
void main() {
|
||
vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;
|
||
float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;
|
||
float globalSpeed = jitterTolerence * jitterTolerence
|
||
* weightedSum.y / weightedSum.x;
|
||
if (prevGlobalSpeed > 0.0) {
|
||
globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;
|
||
}
|
||
gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.updatePosition
|
||
|
||
uniform sampler2D forceTex;
|
||
uniform sampler2D forcePrevTex;
|
||
uniform sampler2D positionTex;
|
||
uniform sampler2D globalSpeedTex;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
void main() {
|
||
vec2 force = texture2D(forceTex, v_Texcoord).xy;
|
||
vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;
|
||
vec4 node = texture2D(positionTex, v_Texcoord);
|
||
|
||
float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;
|
||
float swing = length(force - forcePrev);
|
||
float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));
|
||
|
||
float df = length(force);
|
||
if (df > 0.0) {
|
||
speed = min(df * speed, 10.0) / df;
|
||
|
||
gl_FragColor = vec4(node.xy + speed * force, node.zw);
|
||
}
|
||
else {
|
||
gl_FragColor = node;
|
||
}
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.edges.vertex
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
|
||
attribute vec2 node;
|
||
attribute vec4 a_Color : COLOR;
|
||
varying vec4 v_Color;
|
||
|
||
uniform sampler2D positionTex;
|
||
|
||
void main()
|
||
{
|
||
gl_Position = worldViewProjection * vec4(
|
||
texture2D(positionTex, node).xy, -10.0, 1.0
|
||
);
|
||
v_Color = a_Color;
|
||
}
|
||
@end
|
||
|
||
@export ecgl.forceAtlas2.edges.fragment
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
varying vec4 v_Color;
|
||
void main() {
|
||
gl_FragColor = color * v_Color;
|
||
}
|
||
@end`;ue.Shader.import(m1t);var PD={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function ga(e){var t={type:ue.Texture.FLOAT,minFilter:ue.Texture.NEAREST,magFilter:ue.Texture.NEAREST};this._positionSourceTex=new ue.Texture2D(t),this._positionSourceTex.flipY=!1,this._positionTex=new ue.Texture2D(t),this._positionPrevTex=new ue.Texture2D(t),this._forceTex=new ue.Texture2D(t),this._forcePrevTex=new ue.Texture2D(t),this._weightedSumTex=new ue.Texture2D(t),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new ue.Texture2D(t),this._globalSpeedPrevTex=new ue.Texture2D(t),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new sa({fragment:ue.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new sa({fragment:ue.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new sa({fragment:ue.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new sa({fragment:ue.Shader.source("clay.compositor.output")});var r=function(n){n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ONE)};this._edgeForceMesh=new ue.Mesh({geometry:new ue.Geometry({attributes:{node1:new ue.Geometry.Attribute("node1","float",2),node2:new ue.Geometry.Attribute("node2","float",2),weight:new ue.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new ue.Material({transparent:!0,shader:ue.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:r,depthMask:!1,depthText:!1}),mode:ue.Mesh.POINTS}),this._weightedSumMesh=new ue.Mesh({geometry:new ue.Geometry({attributes:{node:new ue.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new ue.Material({transparent:!0,shader:ue.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:r,depthMask:!1,depthText:!1}),mode:ue.Mesh.POINTS}),this._framebuffer=new Ua({depthBuffer:!1}),this._dummyCamera=new ue.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}ga.prototype.updateOption=function(e){for(var t in PD)this[t]=PD[t];var r=this._nodes.length;if(r>5e4?this.jitterTolerence=10:r>5e3?this.jitterTolerence=1:this.jitterTolerence=.1,r>100?this.scaling=2:this.scaling=10,e)for(var t in PD)e[t]!=null&&(this[t]=e[t]);if(this.repulsionByDegree)for(var n=this._positionSourceTex.pixels,a=0;a<this._nodes.length;a++)n[a*4+2]=(this._nodes[a].degree||0)+1};ga.prototype._updateGravityCenter=function(e){var t=this._nodes,r=this._edges;if(this.gravityCenter)this._gravityCenter=this.gravityCenter;else{for(var n=[1/0,1/0],a=[-1/0,-1/0],i=0;i<t.length;i++)n[0]=Math.min(t[i].x,n[0]),n[1]=Math.min(t[i].y,n[1]),a[0]=Math.max(t[i].x,a[0]),a[1]=Math.max(t[i].y,a[1]);this._gravityCenter=[(n[0]+a[0])*.5,(n[1]+a[1])*.5]}for(var i=0;i<r.length;i++){var o=r[i].node1,s=r[i].node2;t[o].degree=(t[o].degree||0)+1,t[s].degree=(t[s].degree||0)+1}};ga.prototype.initData=function(e,t){this._nodes=e,this._edges=t,this._updateGravityCenter();var r=Math.ceil(Math.sqrt(e.length)),n=r,a=new Float32Array(r*n*4);this._resize(r,n);for(var i=0,o=0;o<e.length;o++){var s=e[o];a[i++]=s.x||0,a[i++]=s.y||0,a[i++]=s.mass||1,a[i++]=s.size||1}this._positionSourceTex.pixels=a;var l=this._edgeForceMesh.geometry,u=t.length;l.attributes.node1.init(u*2),l.attributes.node2.init(u*2),l.attributes.weight.init(u*2);for(var c=[],o=0;o<t.length;o++){var f=l.attributes,d=t[o].weight;d==null&&(d=1),f.node1.set(o,this.getNodeUV(t[o].node1,c)),f.node2.set(o,this.getNodeUV(t[o].node2,c)),f.weight.set(o,d),f.node1.set(o+u,this.getNodeUV(t[o].node2,c)),f.node2.set(o+u,this.getNodeUV(t[o].node1,c)),f.weight.set(o+u,d)}var h=this._weightedSumMesh.geometry;h.attributes.node.init(e.length);for(var o=0;o<e.length;o++)h.attributes.node.set(o,this.getNodeUV(o,c));l.dirty(),h.dirty(),this._nodeRepulsionPass.material.define("fragment","NODE_COUNT",e.length),this._nodeRepulsionPass.material.setUniform("textureSize",[r,n]),this._inited=!1,this._frame=0};ga.prototype.getNodes=function(){return this._nodes};ga.prototype.getEdges=function(){return this._edges};ga.prototype.step=function(e){this._inited||(this._initFromSource(e),this._inited=!0),this._frame++,this._framebuffer.attach(this._forceTex),this._framebuffer.bind(e);var t=this._nodeRepulsionPass;t.setUniform("strongGravityMode",this.strongGravityMode),t.setUniform("gravity",this.gravity),t.setUniform("gravityCenter",this._gravityCenter),t.setUniform("scaling",this.scaling),t.setUniform("preventOverlap",this.preventOverlap),t.setUniform("positionTex",this._positionPrevTex),t.render(e);var r=this._edgeForceMesh;r.material.set("linLogMode",this.linLogMode),r.material.set("edgeWeightInfluence",this.edgeWeightInfluence),r.material.set("preventOverlap",this.preventOverlap),r.material.set("positionTex",this._positionPrevTex),e.gl.enable(e.gl.BLEND),e.renderPass([r],this._dummyCamera),this._framebuffer.attach(this._weightedSumTex),e.gl.clearColor(0,0,0,0),e.gl.clear(e.gl.COLOR_BUFFER_BIT),e.gl.enable(e.gl.BLEND);var n=this._weightedSumMesh;n.material.set("positionTex",this._positionPrevTex),n.material.set("forceTex",this._forceTex),n.material.set("forcePrevTex",this._forcePrevTex),e.renderPass([n],this._dummyCamera),this._framebuffer.attach(this._globalSpeedTex);var a=this._globalSpeedPass;a.setUniform("globalSpeedPrevTex",this._globalSpeedPrevTex),a.setUniform("weightedSumTex",this._weightedSumTex),a.setUniform("jitterTolerence",this.jitterTolerence),e.gl.disable(e.gl.BLEND),a.render(e);var i=this._positionPass;this._framebuffer.attach(this._positionTex),i.setUniform("globalSpeedTex",this._globalSpeedTex),i.setUniform("positionTex",this._positionPrevTex),i.setUniform("forceTex",this._forceTex),i.setUniform("forcePrevTex",this._forcePrevTex),i.render(e),this._framebuffer.unbind(e),this._swapTexture()};ga.prototype.update=function(e,t,r){t==null&&(t=1),t=Math.max(t,1);for(var n=0;n<t;n++)this.step(e);r&&r()};ga.prototype.getNodePositionTexture=function(){return this._inited?this._positionPrevTex:this._positionSourceTex};ga.prototype.getNodeUV=function(e,t){t=t||[];var r=this._positionTex.width,n=this._positionTex.height;return t[0]=e%r/(r-1),t[1]=Math.floor(e/r)/(n-1)||0,t};ga.prototype.getNodePosition=function(e,t){var r=this._positionArr,n=this._positionTex.width,a=this._positionTex.height,i=n*a;(!r||r.length!==i*4)&&(r=this._positionArr=new Float32Array(i*4)),this._framebuffer.bind(e),this._framebuffer.attach(this._positionPrevTex),e.gl.readPixels(0,0,n,a,e.gl.RGBA,e.gl.FLOAT,r),this._framebuffer.unbind(e),t||(t=new Float32Array(this._nodes.length*2));for(var o=0;o<this._nodes.length;o++)t[o*2]=r[o*4],t[o*2+1]=r[o*4+1];return t};ga.prototype.getTextureData=function(e,t){var r=this["_"+t+"Tex"],n=r.width,a=r.height;this._framebuffer.bind(e),this._framebuffer.attach(r);var i=new Float32Array(n*a*4);return e.gl.readPixels(0,0,n,a,e.gl.RGBA,e.gl.FLOAT,i),this._framebuffer.unbind(e),i};ga.prototype.getTextureSize=function(){return{width:this._positionTex.width,height:this._positionTex.height}};ga.prototype.isFinished=function(e){return this._frame>e};ga.prototype._swapTexture=function(){var e=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=e;var e=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=e;var e=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=e};ga.prototype._initFromSource=function(e){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(e),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(e),e.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),e.gl.clear(e.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(e)};ga.prototype._resize=function(e,t){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach(function(r){this[r].width=e,this[r].height=t,this[r].dirty()},this)};ga.prototype.dispose=function(e){this._framebuffer.dispose(e),this._copyPass.dispose(e),this._nodeRepulsionPass.dispose(e),this._positionPass.dispose(e),this._globalSpeedPass.dispose(e),this._edgeForceMesh.geometry.dispose(e),this._weightedSumMesh.geometry.dispose(e),this._positionSourceTex.dispose(e),this._positionTex.dispose(e),this._positionPrevTex.dispose(e),this._forceTex.dispose(e),this._forcePrevTex.dispose(e),this._weightedSumTex.dispose(e),this._globalSpeedTex.dispose(e),this._globalSpeedPrevTex.dispose(e)};function y1t(){var e={create:function(){return new Float32Array(2)},dist:function(l,u){var c=u[0]-l[0],f=u[1]-l[1];return Math.sqrt(c*c+f*f)},len:function(l){var u=l[0],c=l[1];return Math.sqrt(u*u+c*c)},scaleAndAdd:function(l,u,c,f){return l[0]=u[0]+c[0]*f,l[1]=u[1]+c[1]*f,l},scale:function(l,u,c){return l[0]=u[0]*c,l[1]=u[1]*c,l},add:function(l,u,c){return l[0]=u[0]+c[0],l[1]=u[1]+c[1],l},sub:function(l,u,c){return l[0]=u[0]-c[0],l[1]=u[1]-c[1],l},normalize:function(l,u){var c=u[0],f=u[1],d=c*c+f*f;return d>0&&(d=1/Math.sqrt(d),l[0]=u[0]*d,l[1]=u[1]*d),l},negate:function(l,u){return l[0]=-u[0],l[1]=-u[1],l},copy:function(l,u){return l[0]=u[0],l[1]=u[1],l},set:function(l,u,c){return l[0]=u,l[1]=c,l}};function t(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var r=t.prototype;r.beforeUpdate=function(){for(var l=0;l<this.nSubRegions;l++)this.subRegions[l].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},r.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var l=0;l<this.nSubRegions;l++)this.subRegions[l].afterUpdate()},r.addNode=function(l){if(this.nSubRegions===0)if(this.node==null){this.node=l;return}else this._addNodeToSubRegion(this.node),this.node=null;this._addNodeToSubRegion(l),this._updateCenterOfMass(l)},r.findSubRegion=function(l,u){for(var c=0;c<this.nSubRegions;c++){var f=this.subRegions[c];if(f.contain(l,u))return f}},r.contain=function(l,u){return this.bbox[0]<=l&&this.bbox[2]>=l&&this.bbox[1]<=u&&this.bbox[3]>=u},r.setBBox=function(l,u,c,f){this.bbox[0]=l,this.bbox[1]=u,this.bbox[2]=c,this.bbox[3]=f,this.size=(c-l+f-u)/2},r._newSubRegion=function(){var l=this.subRegions[this.nSubRegions];return l||(l=new t,this.subRegions[this.nSubRegions]=l),this.nSubRegions++,l},r._addNodeToSubRegion=function(l){var u=this.findSubRegion(l.position[0],l.position[1]),c=this.bbox;if(!u){var f=(c[0]+c[2])/2,d=(c[1]+c[3])/2,h=(c[2]-c[0])/2,v=(c[3]-c[1])/2,p=l.position[0]>=f?1:0,g=l.position[1]>=d?1:0,u=this._newSubRegion();u.setBBox(p*h+c[0],g*v+c[1],(p+1)*h+c[0],(g+1)*v+c[1])}u.addNode(l)},r._updateCenterOfMass=function(l){this.centerOfMass==null&&(this.centerOfMass=new Float32Array(2));var u=this.centerOfMass[0]*this.mass,c=this.centerOfMass[1]*this.mass;u+=l.position[0]*l.mass,c+=l.position[1]*l.mass,this.mass+=l.mass,this.centerOfMass[0]=u/this.mass,this.centerOfMass[1]=c/this.mass};function n(){this.position=new Float32Array(2),this.force=e.create(),this.forcePrev=e.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function a(l,u){this.source=l,this.target=u,this.weight=1}function i(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new t,this.rootRegion.centerOfMass=e.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}var o=i.prototype;o.initNodes=function(l,u,c){var f=u.length;this.nodes.length=0;for(var d=typeof c<"u",h=0;h<f;h++){var v=new n;v.position[0]=l[h*2],v.position[1]=l[h*2+1],v.mass=u[h],d&&(v.size=c[h]),this.nodes.push(v)}this._massArr=u,this._swingingArr=new Float32Array(f),d&&(this._sizeArr=c)},o.initEdges=function(l,u){var c=l.length/2;this.edges.length=0;for(var f=0;f<c;f++){var d=l[f*2],h=l[f*2+1],v=this.nodes[d],p=this.nodes[h];if(!v||!p){console.error("Node not exists, try initNodes before initEdges");return}v.outDegree++,p.inDegree++;var g=new a(v,p);u&&(g.weight=u[f]),this.edges.push(g)}},o.updateSettings=function(){if(this.repulsionByDegree)for(var l=0;l<this.nodes.length;l++){var u=this.nodes[l];u.mass=u.inDegree+u.outDegree+1}else for(var l=0;l<this.nodes.length;l++){var u=this.nodes[l];u.mass=this._massArr[l]}},o.update=function(){var l=this.nodes.length;if(this.updateSettings(),this.updateBBox(),this.barnesHutOptimize){this.rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this.rootRegion.beforeUpdate();for(var u=0;u<l;u++)this.rootRegion.addNode(this.nodes[u]);this.rootRegion.afterUpdate()}for(var u=0;u<l;u++){var c=this.nodes[u];e.copy(c.forcePrev,c.force),e.set(c.force,0,0)}for(var u=0;u<l;u++){var f=this.nodes[u];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this.rootRegion,f);else for(var d=u+1;d<l;d++){var h=this.nodes[d];this.applyNodeToNodeRepulsion(f,h,!1)}this.gravity>0&&(this.strongGravityMode?this.applyNodeStrongGravity(f):this.applyNodeGravity(f))}for(var u=0;u<this.edges.length;u++)this.applyEdgeAttraction(this.edges[u]);for(var v=0,p=0,g=e.create(),u=0;u<l;u++){var c=this.nodes[u],m=e.dist(c.force,c.forcePrev);v+=m*c.mass,e.add(g,c.force,c.forcePrev);var y=e.len(g)*.5;p+=y*c.mass,this._swingingArr[u]=m}var _=this.jitterTolerence*this.jitterTolerence*p/v;this._globalSpeed>0&&(_=Math.min(_/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=_;for(var u=0;u<l;u++){var c=this.nodes[u],m=this._swingingArr[u],w=.1*_/(1+_*Math.sqrt(m)),x=e.len(c.force);x>0&&(w=Math.min(x*w,10)/x,e.scaleAndAdd(c.position,c.position,c.force,w))}},o.applyRegionToNodeRepulsion=function(){var l=e.create();return function(c,f){if(c.node)this.applyNodeToNodeRepulsion(c.node,f,!0);else{e.sub(l,f.position,c.centerOfMass);var d=l[0]*l[0]+l[1]*l[1];if(d>this.barnesHutTheta*c.size*c.size){var h=this.scaling*f.mass*c.mass/d;e.scaleAndAdd(f.force,f.force,l,h)}else for(var v=0;v<c.nSubRegions;v++)this.applyRegionToNodeRepulsion(c.subRegions[v],f)}}}(),o.applyNodeToNodeRepulsion=function(){var l=e.create();return function(c,f,d){if(c!=f){e.sub(l,c.position,f.position);var h=l[0]*l[0]+l[1]*l[1];if(h!==0){var v;if(this.preventOverlap){var p=Math.sqrt(h);if(p=p-c.size-f.size,p>0)v=this.scaling*c.mass*f.mass/(p*p);else if(p<0)v=this.scaling*100*c.mass*f.mass;else return}else v=this.scaling*c.mass*f.mass/h;e.scaleAndAdd(c.force,c.force,l,v),e.scaleAndAdd(f.force,f.force,l,-v)}}}}(),o.applyEdgeAttraction=function(){var l=e.create();return function(c){var f=c.source,d=c.target;e.sub(l,f.position,d.position);var h=e.len(l),v;this.edgeWeightInfluence===0?v=1:this.edgeWeightInfluence===1?v=c.weight:v=Math.pow(c.weight,this.edgeWeightInfluence);var p;this.preventOverlap&&(h=h-f.size-d.size,h<=0)||(this.linLogMode?p=-v*Math.log(h+1)/(h+1):p=-v,e.scaleAndAdd(f.force,f.force,l,p),e.scaleAndAdd(d.force,d.force,l,-p))}}(),o.applyNodeGravity=function(){var l=e.create();return function(u){e.sub(l,this.gravityCenter,u.position);var c=e.len(l);e.scaleAndAdd(u.force,u.force,l,this.gravity*u.mass/(c+1))}}(),o.applyNodeStrongGravity=function(){var l=e.create();return function(u){e.sub(l,this.gravityCenter,u.position),e.scaleAndAdd(u.force,u.force,l,this.gravity*u.mass)}}(),o.updateBBox=function(){for(var l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<this.nodes.length;d++){var h=this.nodes[d].position;l=Math.min(l,h[0]),u=Math.min(u,h[1]),c=Math.max(c,h[0]),f=Math.max(f,h[1])}this.bbox[0]=l,this.bbox[1]=u,this.bbox[2]=c,this.bbox[3]=f},o.getGlobalSpeed=function(){return this._globalSpeed};var s=null;self.onmessage=function(l){switch(l.data.cmd){case"init":s=new i,s.initNodes(l.data.nodesPosition,l.data.nodesMass,l.data.nodesSize),s.initEdges(l.data.edges,l.data.edgesWeight);break;case"updateConfig":if(s)for(var u in l.data.config)s[u]=l.data.config[u];break;case"update":var c=l.data.steps;if(s){for(var f=0;f<c;f++)s.update();for(var d=s.nodes.length,h=new Float32Array(d*2),f=0;f<d;f++){var v=s.nodes[f];h[f*2]=v.position[0],h[f*2+1]=v.position[1]}self.postMessage({buffer:h.buffer,globalSpeed:s.getGlobalSpeed()},[h.buffer])}else{var p=new Float32Array;self.postMessage({buffer:p.buffer,globalSpeed:s.getGlobalSpeed()},[p.buffer])}break}}}var Iy=y1t.toString();Iy=Iy.slice(Iy.indexOf("{")+1,Iy.lastIndexOf("}"));var d0={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},Lo=function(e){for(var t in d0)this[t]=d0[t];if(e)for(var t in e)this[t]=e[t];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new _r({type:$t.FLOAT,flipY:!1,minFilter:$t.NEAREST,magFilter:$t.NEAREST})};Lo.prototype.initData=function(e,t){var r=new Blob([Iy]),n=window.URL.createObjectURL(r);this._worker=new Worker(n),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=e,this._edges=t,this._frame=0;for(var a=e.length,i=t.length,o=new Float32Array(a*2),s=new Float32Array(a),l=new Float32Array(a),u=new Float32Array(i*2),c=new Float32Array(i),f=0;f<e.length;f++){var d=e[f];o[f*2]=d.x,o[f*2+1]=d.y,s[f]=d.mass==null?1:d.mass,l[f]=d.size==null?1:d.size}for(var f=0;f<t.length;f++){var h=t[f],v=h.node1,p=h.node2;u[f*2]=v,u[f*2+1]=p,c[f]=h.weight==null?1:h.weight}var g=Math.ceil(Math.sqrt(e.length)),m=g,y=new Float32Array(g*m*4),_=this._positionTex;_.width=g,_.height=m,_.pixels=y,this._worker.postMessage({cmd:"init",nodesPosition:o,nodesMass:s,nodesSize:l,edges:u,edgesWeight:c}),this._globalSpeed=1/0};Lo.prototype.updateOption=function(e){var t={};for(var r in d0)t[r]=d0[r];var n=this._nodes,a=this._edges,i=n.length;if(i>5e4?t.jitterTolerence=10:i>5e3?t.jitterTolerence=1:t.jitterTolerence=.1,i>100?t.scaling=2:t.scaling=10,i>1e3?t.barnesHutOptimize=!0:t.barnesHutOptimize=!1,e)for(var r in d0)e[r]!=null&&(t[r]=e[r]);if(!t.gravityCenter){for(var o=[1/0,1/0],s=[-1/0,-1/0],l=0;l<n.length;l++)o[0]=Math.min(n[l].x,o[0]),o[1]=Math.min(n[l].y,o[1]),s[0]=Math.max(n[l].x,s[0]),s[1]=Math.max(n[l].y,s[1]);t.gravityCenter=[(o[0]+s[0])*.5,(o[1]+s[1])*.5]}for(var l=0;l<a.length;l++){var u=a[l].node1,c=a[l].node2;n[u].degree=(n[u].degree||0)+1,n[c].degree=(n[c].degree||0)+1}this._worker&&this._worker.postMessage({cmd:"updateConfig",config:t})};Lo.prototype.update=function(e,t,r){t==null&&(t=1),t=Math.max(t,1),this._frame+=t,this._onupdate=r,this._worker&&this._worker.postMessage({cmd:"update",steps:Math.round(t)})};Lo.prototype._$onupdate=function(e){if(!this._disposed){var t=new Float32Array(e.data.buffer);this._globalSpeed=e.data.globalSpeed,this._positionArr=t,this._updateTexture(t),this._onupdate&&this._onupdate()}};Lo.prototype.getNodePositionTexture=function(){return this._positionTex};Lo.prototype.getNodeUV=function(e,t){t=t||[];var r=this._positionTex.width,n=this._positionTex.height;return t[0]=e%r/(r-1),t[1]=Math.floor(e/r)/(n-1),t};Lo.prototype.getNodes=function(){return this._nodes};Lo.prototype.getEdges=function(){return this._edges};Lo.prototype.isFinished=function(e){return this._frame>e};Lo.prototype.getNodePosition=function(e,t){if(t||(t=new Float32Array(this._nodes.length*2)),this._positionArr)for(var r=0;r<this._positionArr.length;r++)t[r]=this._positionArr[r];return t};Lo.prototype._updateTexture=function(e){for(var t=this._positionTex.pixels,r=0,n=0;n<e.length;)t[r++]=e[n++],t[r++]=e[n++],t[r++]=1,t[r++]=1;this._positionTex.dirty()};Lo.prototype.dispose=function(e){this._disposed=!0,this._worker=null};const DW=Lo;var _1t=zi.extend(function(){return{zr:null,viewGL:null,minZoom:.2,maxZoom:5,_needsUpdate:!1,_dx:0,_dy:0,_zoom:1}},function(){this._mouseDownHandler=this._mouseDownHandler.bind(this),this._mouseWheelHandler=this._mouseWheelHandler.bind(this),this._mouseMoveHandler=this._mouseMoveHandler.bind(this),this._mouseUpHandler=this._mouseUpHandler.bind(this),this._update=this._update.bind(this)},{init:function(){var e=this.zr;e.on("mousedown",this._mouseDownHandler),e.on("mousewheel",this._mouseWheelHandler),e.on("globalout",this._mouseUpHandler),e.animation.on("frame",this._update)},setTarget:function(e){this._target=e},setZoom:function(e){this._zoom=Math.max(Math.min(e,this.maxZoom),this.minZoom),this._needsUpdate=!0},setOffset:function(e){this._dx=e[0],this._dy=e[1],this._needsUpdate=!0},getZoom:function(){return this._zoom},getOffset:function(){return[this._dx,this._dy]},_update:function(){if(this._target&&this._needsUpdate){var e=this._target,t=this._zoom;e.position.x=this._dx,e.position.y=this._dy,e.scale.set(t,t,t),this.zr.refresh(),this._needsUpdate=!1,this.trigger("update")}},_mouseDownHandler:function(e){if(!e.target){var t=e.offsetX,r=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(t,r))){this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler);var n=this._convertPos(t,r);this._x=n.x,this._y=n.y}}},_convertPos:function(e,t){var r=this.viewGL.camera,n=this.viewGL.viewport;return{x:(e-n.x)/n.width*(r.right-r.left)+r.left,y:(t-n.y)/n.height*(r.bottom-r.top)+r.top}},_mouseMoveHandler:function(e){var t=this._convertPos(e.offsetX,e.offsetY);this._dx+=t.x-this._x,this._dy+=t.y-this._y,this._x=t.x,this._y=t.y,this._needsUpdate=!0},_mouseUpHandler:function(e){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_mouseWheelHandler:function(e){e=e.event;var t=e.wheelDelta||-e.detail;if(t!==0){var r=e.offsetX,n=e.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(r,n))){var a=t>0?1.1:.9,i=Math.max(Math.min(this._zoom*a,this.maxZoom),this.minZoom);a=i/this._zoom;var o=this._convertPos(r,n),s=(o.x-this._dx)*(a-1),l=(o.y-this._dy)*(a-1);this._dx-=s,this._dy-=l,this._zoom=i,this._needsUpdate=!0}}},dispose:function(){var e=this.zr;e.off("mousedown",this._mouseDownHandler),e.off("mousemove",this._mouseMoveHandler),e.off("mouseup",this._mouseUpHandler),e.off("mousewheel",this._mouseWheelHandler),e.off("globalout",this._mouseUpHandler),e.animation.off("frame",this._update)}});const b1t=_1t,w1t=`@export ecgl.lines2D.vertex
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
|
||
attribute vec2 position: POSITION;
|
||
attribute vec4 a_Color : COLOR;
|
||
varying vec4 v_Color;
|
||
|
||
#ifdef POSITIONTEXTURE_ENABLED
|
||
uniform sampler2D positionTexture;
|
||
#endif
|
||
|
||
void main()
|
||
{
|
||
gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);
|
||
|
||
v_Color = a_Color;
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.lines2D.fragment
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
varying vec4 v_Color;
|
||
|
||
void main()
|
||
{
|
||
gl_FragColor = color * v_Color;
|
||
}
|
||
@end
|
||
|
||
|
||
@export ecgl.meshLines2D.vertex
|
||
|
||
attribute vec2 position: POSITION;
|
||
attribute vec2 normal;
|
||
attribute float offset;
|
||
attribute vec4 a_Color : COLOR;
|
||
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
uniform vec4 viewport : VIEWPORT;
|
||
|
||
varying vec4 v_Color;
|
||
varying float v_Miter;
|
||
|
||
void main()
|
||
{
|
||
vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);
|
||
gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);
|
||
|
||
p2.xy /= p2.w;
|
||
gl_Position.xy /= gl_Position.w;
|
||
|
||
vec2 N = normalize(p2.xy - gl_Position.xy);
|
||
gl_Position.xy += N * offset / viewport.zw * 2.0;
|
||
|
||
gl_Position.xy *= gl_Position.w;
|
||
|
||
v_Color = a_Color;
|
||
}
|
||
@end
|
||
|
||
|
||
@export ecgl.meshLines2D.fragment
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
|
||
varying vec4 v_Color;
|
||
varying float v_Miter;
|
||
|
||
void main()
|
||
{
|
||
gl_FragColor = color * v_Color;
|
||
}
|
||
|
||
@end`;var Iw=Jn.vec2;ue.Shader.import(w1t);var S1t=1;const x1t=xr.extend({type:"graphGL",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this.viewGL=new an("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new Qh(!0,t),this._forceEdgesMesh=new ue.Mesh({material:new ue.Material({shader:ue.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new ue.Geometry({attributes:{node:new ue.Geometry.Attribute("node","float",2),color:new ue.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:ue.Mesh.LINES}),this._edgesMesh=new ue.Mesh({material:new ue.Material({shader:ue.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new eoe({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new b1t({zr:t.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(e,t,r){this.groupGL.add(this._pointsBuilder.rootNode),this._model=e,this._api=r,this._initLayout(e,t,r),this._pointsBuilder.update(e,t,r),this._forceLayoutInstance instanceof ga||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(e,r),this._control.off("update"),this._control.on("update",function(){r.dispatchAction({type:"graphGLRoam",seriesId:e.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)},this),this._control.setZoom(Sr.firstNotNull(e.get("zoom"),1)),this._control.setOffset(e.get("offset")||[0,0]);var n=this._pointsBuilder.getPointsMesh();if(n.off("mousemove",this._mousemoveHandler),n.off("mouseout",this._mouseOutHandler,this),r.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,e.get("focusNodeAdjacency")){var a=e.get("focusNodeAdjacencyOn");a==="click"?r.getZr().on("click",this._clickHandler):a==="mouseover"&&(n.on("mousemove",this._mousemoveHandler,this),n.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(e){if(!this._layouting){var t=this._pointsBuilder.getPointsMesh().dataIndex;t>=0?t!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:t}):this._mouseOutHandler(e),this._lastMouseOverDataIndex=t}},_mouseOutHandler:function(e){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(e,t){var r=this._forceEdgesMesh.geometry,n=t.getEdgeData(),a=0,i=this._forceLayoutInstance,o=n.count()*2;r.attributes.node.init(o),r.attributes.color.init(o),n.each(function(s){var l=e[s];r.attributes.node.set(a,i.getNodeUV(l.node1)),r.attributes.node.set(a+1,i.getNodeUV(l.node2));var u=Ma(n,l.dataIndex),c=ue.parseColor(u);c[3]*=Sr.firstNotNull(Ea(n,l.dataIndex),1),r.attributes.color.set(a,c),r.attributes.color.set(a+1,c),a+=2}),r.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,t=this._model.getEdgeData(),r=this._model.getData().getLayout("points");e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var n=[],a=[],i=["lineStyle","width"];this._originalEdgeColors=new Float32Array(t.count()*4),this._edgeIndicesMap=new Float32Array(t.count()),t.each(function(o){var s=t.graph.getEdgeByIndex(o),l=s.node1.dataIndex*2,u=s.node2.dataIndex*2;n[0]=r[l],n[1]=r[l+1],a[0]=r[u],a[1]=r[u+1];var c=Ma(t,s.dataIndex),f=ue.parseColor(c);f[3]*=Sr.firstNotNull(Ea(t,s.dataIndex),1);var d=t.getItemModel(s.dataIndex),h=Sr.firstNotNull(d.get(i),1)*this._api.getDevicePixelRatio();e.addLine(n,a,f,h);for(var v=0;v<4;v++)this._originalEdgeColors[s.dataIndex*4+v]=f[v];this._edgeIndicesMap[s.dataIndex]=o},this),e.dirty()},_updateForceNodesGeometry:function(e){for(var t=this._pointsBuilder.getPointsMesh(),r=[],n=0;n<e.count();n++)this._forceLayoutInstance.getNodeUV(n,r),t.geometry.attributes.position.set(n,r);t.geometry.dirty("position")},_initLayout:function(e,t,r){var n=e.get("layout"),a=e.getGraph(),i=e.getBoxLayoutParams(),o=kn(i,{width:r.getWidth(),height:r.getHeight()});n==="force"&&(n="forceAtlas2"),this.stopLayout(e,t,r,{beforeLayout:!0});var s=e.getData(),l=e.getData();if(n==="forceAtlas2"){var u=e.getModel("forceAtlas2"),c=this._forceLayoutInstance,f=[],d=[],h=s.getDataExtent("value"),v=l.getDataExtent("value"),p=Sr.firstNotNull(u.get("edgeWeight"),1),g=Sr.firstNotNull(u.get("nodeWeight"),1);typeof p=="number"&&(p=[p,p]),typeof g=="number"&&(g=[g,g]);var m=0,y={},_=new Float32Array(s.count()*2);if(a.eachNode(function(x){var S=x.dataIndex,T=s.get("value",S),A,C;if(s.hasItemOption){var M=s.getItemModel(S);A=M.get("x"),C=M.get("y")}A==null&&(A=o.x+Math.random()*o.width,C=o.y+Math.random()*o.height),_[m*2]=A,_[m*2+1]=C,y[x.id]=m++;var E=Vr(T,h,g);isNaN(E)&&(isNaN(g[0])?E=1:E=g[0]),f.push({x:A,y:C,mass:E,size:s.getItemVisual(S,"symbolSize")})}),s.setLayout("points",_),a.eachEdge(function(x){var S=x.dataIndex,T=s.get("value",S),A=Vr(T,v,p);isNaN(A)&&(isNaN(p[0])?A=1:A=p[0]),d.push({node1:y[x.node1.id],node2:y[x.node2.id],weight:A,dataIndex:S})}),!c){var w=u.get("GPU");this._forceLayoutInstance&&(w&&!(this._forceLayoutInstance instanceof ga)||!w&&!(this._forceLayoutInstance instanceof DW))&&(this._forceLayoutInstanceToDispose=this._forceLayoutInstance),c=this._forceLayoutInstance=w?new ga:new DW}c.initData(f,d),c.updateOption(u.option),this._updateForceEdgesGeometry(c.getEdges(),e),this._updatePositionTexture(),r.dispatchAction({type:"graphGLStartLayout",from:this.uid})}else{var _=new Float32Array(s.count()*2),m=0;a.eachNode(function(T){var A=T.dataIndex,C,M;if(s.hasItemOption){var E=s.getItemModel(A);C=E.get("x"),M=E.get("y")}_[m++]=C,_[m++]=M}),s.setLayout("points",_),this._updateAfterLayout(e,t,r)}},_updatePositionTexture:function(){var e=this._forceLayoutInstance.getNodePositionTexture();this._pointsBuilder.setPositionTexture(e),this._forceEdgesMesh.material.set("positionTex",e)},startLayout:function(e,t,i,n){if(!(n&&n.from!=null&&n.from!==this.uid)){var a=this.viewGL,i=this._api,o=this._forceLayoutInstance,s=this._model.getData(),l=this._model.getModel("forceAtlas2");if(o&&(this.groupGL.remove(this._edgesMesh),this.groupGL.add(this._forceEdgesMesh),!!this._forceLayoutInstance)){this._updateForceNodesGeometry(e.getData()),this._pointsBuilder.hideLabels();var u=this,c=this._layoutId=S1t++,f=l.getShallow("maxSteps"),d=l.getShallow("steps"),h=0,v=Math.max(d*2,20),p=function(g){if(g===u._layoutId){if(o.isFinished(f)){i.dispatchAction({type:"graphGLStopLayout",from:u.uid}),i.dispatchAction({type:"graphGLFinishLayout",points:s.getLayout("points"),from:u.uid});return}o.update(a.layer.renderer,d,function(){u._updatePositionTexture(),h+=d,h>=v&&(u._syncNodePosition(e),h=0),i.getZr().refresh(),qp(function(){p(g)})})}};qp(function(){u._forceLayoutInstanceToDispose&&(u._forceLayoutInstanceToDispose.dispose(a.layer.renderer),u._forceLayoutInstanceToDispose=null),p(c)}),this._layouting=!0}}},stopLayout:function(e,t,r,n){n&&n.from!=null&&n.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(n&&n.beforeLayout||(this._syncNodePosition(e),this._updateAfterLayout(e,t,r)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(e){var t=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);e.getData().setLayout("points",t),e.setNodePosition(t)},_updateAfterLayout:function(e,t,r){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(e,t,r),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(e,t,r,n){var a=this._model.getData();this._downplayAll();var i=n.dataIndex,o=a.graph,s=[],l=o.getNodeByIndex(i);s.push(l),l.edges.forEach(function(c){c.dataIndex<0||(c.node1!==l&&s.push(c.node1),c.node2!==l&&s.push(c.node2))},this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach(function(c){this._pointsBuilder.highlight(a,c.dataIndex)},this),this._pointsBuilder.updateLabels(s.map(function(c){return c.dataIndex}));var u=[];l.edges.forEach(function(c){c.dataIndex>=0&&(this._highlightEdge(c.dataIndex),u.push(c))},this),this._focusNodes=s,this._focusEdges=u},unfocusNodeAdjacency:function(e,t,r,n){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(e){var t=this._model.getEdgeData().getItemModel(e),r=ue.parseColor(t.get("emphasis.lineStyle.color")||t.get("lineStyle.color")),n=Sr.firstNotNull(t.get("emphasis.lineStyle.opacity"),t.get("lineStyle.opacity"),1);r[3]*=n,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],r)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach(function(e){this._pointsBuilder.downplay(this._model.getData(),e.dataIndex)},this),this._focusEdges&&this._focusEdges.forEach(function(e){this._downplayEdge(e.dataIndex)},this)},_downplayEdge:function(e){var t=this._getColor(e,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)},_setEdgeFade:function(){var e=[];return function(t,r){this._getColor(t,e),e[3]*=r,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)}}(),_getColor:function(e,t){for(var r=0;r<4;r++)t[r]=this._originalEdgeColors[e*4+r];return t},_fadeOutEdgesAll:function(e){var t=this._model.getData().graph;t.eachEdge(function(r){this._setEdgeFade(r.dataIndex,e)},this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(e,t){this.viewGL.setViewport(0,0,t.getWidth(),t.getHeight(),t.getDevicePixelRatio());for(var r=this.viewGL.camera,n=e.getData(),a=n.getLayout("points"),i=Iw.create(1/0,1/0),o=Iw.create(-1/0,-1/0),s=[],l=0;l<a.length;)s[0]=a[l++],s[1]=a[l++],Iw.min(i,i,s),Iw.max(o,o,s);var u=(o[1]+i[1])/2,c=(o[0]+i[0])/2;if(!(c>r.left&&c<r.right&&u<r.bottom&&u>r.top)){var f=Math.max(o[0]-i[0],10),d=f/t.getWidth()*t.getHeight();f*=1.4,d*=1.4,i[0]-=f*.2,r.left=i[0],r.top=u-d/2,r.bottom=u+d/2,r.right=f+i[0],r.near=0,r.far=100}},dispose:function(){var e=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(e),this.groupGL.removeAll(),this._layoutId=-1,this._pointsBuilder.dispose()},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function Rw(e){return e instanceof Array||(e=[e,e]),e}function A1t(e){e.registerChartView(x1t),e.registerSeriesModel(g1t),e.registerVisual(function(r){const n={};r.eachSeriesByType("graphGL",function(a){var i=a.getCategoriesData(),o=a.getData(),s={};i.each(function(l){var u=i.getName(l);s["ec-"+u]=l;var c=i.getItemModel(l),f=c.getModel("itemStyle").getItemStyle();f.fill||(f.fill=a.getColorFromPalette(u,n)),i.setItemVisual(l,"style",f);var d=["symbol","symbolSize","symbolKeepAspect"];for(let v=0;v<d.length;v++){var h=c.getShallow(d[v],!0);h!=null&&i.setItemVisual(l,d[v],h)}}),i.count()&&o.each(function(l){var u=o.getItemModel(l);let c=u.getShallow("category");if(c!=null){typeof c=="string"&&(c=s["ec-"+c]);var f=i.getItemVisual(c,"style"),d=o.ensureUniqueItemVisual(l,"style");Ie(d,f);var h=["symbol","symbolSize","symbolKeepAspect"];for(let v=0;v<h.length;v++)o.setItemVisual(l,h[v],i.getItemVisual(c,h[v]))}})})}),e.registerVisual(function(r){r.eachSeriesByType("graphGL",function(n){var a=n.getGraph(),i=n.getEdgeData(),o=Rw(n.get("edgeSymbol")),s=Rw(n.get("edgeSymbolSize"));i.setVisual("drawType","stroke"),i.setVisual("fromSymbol",o&&o[0]),i.setVisual("toSymbol",o&&o[1]),i.setVisual("fromSymbolSize",s&&s[0]),i.setVisual("toSymbolSize",s&&s[1]),i.setVisual("style",n.getModel("lineStyle").getLineStyle()),i.each(function(l){var u=i.getItemModel(l),c=a.getEdgeByIndex(l),f=Rw(u.getShallow("symbol",!0)),d=Rw(u.getShallow("symbolSize",!0)),h=u.getModel("lineStyle").getLineStyle(),v=i.ensureUniqueItemVisual(l,"style");switch(Ie(v,h),v.stroke){case"source":{var p=c.node1.getVisual("style");v.stroke=p&&p.fill;break}case"target":{var p=c.node2.getVisual("style");v.stroke=p&&p.fill;break}}f[0]&&c.setVisual("fromSymbol",f[0]),f[1]&&c.setVisual("toSymbol",f[1]),d[0]&&c.setVisual("fromSymbolSize",d[0]),d[1]&&c.setVisual("toSymbolSize",d[1])})})}),e.registerAction({type:"graphGLRoam",event:"graphglroam",update:"series.graphGL:roam"},function(r,n){n.eachComponent({mainType:"series",query:r},function(a){a.setView(r)})});function t(){}e.registerAction({type:"graphGLStartLayout",event:"graphgllayoutstarted",update:"series.graphGL:startLayout"},t),e.registerAction({type:"graphGLStopLayout",event:"graphgllayoutstopped",update:"series.graphGL:stopLayout"},t),e.registerAction({type:"graphGLFocusNodeAdjacency",event:"graphGLFocusNodeAdjacency",update:"series.graphGL:focusNodeAdjacency"},t),e.registerAction({type:"graphGLUnfocusNodeAdjacency",event:"graphGLUnfocusNodeAdjacency",update:"series.graphGL:unfocusNodeAdjacency"},t)}Dt(A1t);const T1t=Ir.extend({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualStyleAccessPath:"itemStyle",getInitialData:function(e,t){var r=this.get("coordinateSystem"),n=r==="geo"?["lng","lat"]:mk(r)||["x","y"];n.push("vx","vy");var a=em(this.getSource(),{coordDimensions:n,encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),i=new Dn(a,this);return i.initData(this.getSource()),i},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}});var C1t=Hr.extend(function(){return{dynamic:!0,attributes:{position:new Hr.Attribute("position","float",3,"POSITION")}}},{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setLineCount:function(e){var t=this.attributes,r=4*e,n=2*e;this.vertexCount!==r&&t.position.init(r),this.triangleCount!==n&&(n===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(n*3):new Uint16Array(n*3))},addLine:function(e){var t=this._vertexOffset;this.attributes.position.set(t,[e[0],e[1],1]),this.attributes.position.set(t+1,[e[0],e[1],-1]),this.attributes.position.set(t+2,[e[0],e[1],2]),this.attributes.position.set(t+3,[e[0],e[1],-2]),this.setTriangleIndices(this._faceOffset++,[t,t+1,t+2]),this.setTriangleIndices(this._faceOffset++,[t+1,t+2,t+3]),this._vertexOffset+=4}});const E1t=C1t,M1t=`@export ecgl.vfParticle.particle.fragment
|
||
|
||
uniform sampler2D particleTexture;
|
||
uniform sampler2D spawnTexture;
|
||
uniform sampler2D velocityTexture;
|
||
|
||
uniform float deltaTime;
|
||
uniform float elapsedTime;
|
||
|
||
uniform float speedScaling : 1.0;
|
||
|
||
uniform vec2 textureSize;
|
||
uniform vec4 region : [0, 0, 1, 1];
|
||
uniform float firstFrameTime;
|
||
|
||
varying vec2 v_Texcoord;
|
||
|
||
|
||
void main()
|
||
{
|
||
vec4 p = texture2D(particleTexture, v_Texcoord);
|
||
bool spawn = false;
|
||
if (p.w <= 0.0) {
|
||
p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));
|
||
p.w -= firstFrameTime;
|
||
spawn = true;
|
||
}
|
||
vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;
|
||
v = (v - 0.5) * 2.0;
|
||
p.z = length(v);
|
||
p.xy += v * deltaTime / 10.0 * speedScaling;
|
||
p.w -= deltaTime;
|
||
|
||
if (spawn || p.xy != fract(p.xy)) {
|
||
p.z = 0.0;
|
||
}
|
||
p.xy = fract(p.xy);
|
||
|
||
gl_FragColor = p;
|
||
}
|
||
@end
|
||
|
||
@export ecgl.vfParticle.renderPoints.vertex
|
||
|
||
#define PI 3.1415926
|
||
|
||
attribute vec2 texcoord : TEXCOORD_0;
|
||
|
||
uniform sampler2D particleTexture;
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
|
||
uniform float size : 1.0;
|
||
|
||
varying float v_Mag;
|
||
varying vec2 v_Uv;
|
||
|
||
void main()
|
||
{
|
||
vec4 p = texture2D(particleTexture, texcoord);
|
||
|
||
if (p.w > 0.0 && p.z > 1e-5) {
|
||
gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);
|
||
}
|
||
else {
|
||
gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);
|
||
}
|
||
|
||
v_Mag = p.z;
|
||
v_Uv = p.xy;
|
||
|
||
gl_PointSize = size;
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.vfParticle.renderPoints.fragment
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
uniform sampler2D gradientTexture;
|
||
uniform sampler2D colorTexture;
|
||
uniform sampler2D spriteTexture;
|
||
|
||
varying float v_Mag;
|
||
varying vec2 v_Uv;
|
||
|
||
void main()
|
||
{
|
||
gl_FragColor = color;
|
||
#ifdef SPRITETEXTURE_ENABLED
|
||
gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);
|
||
if (color.a == 0.0) {
|
||
discard;
|
||
}
|
||
#endif
|
||
#ifdef GRADIENTTEXTURE_ENABLED
|
||
gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));
|
||
#endif
|
||
#ifdef COLORTEXTURE_ENABLED
|
||
gl_FragColor *= texture2D(colorTexture, v_Uv);
|
||
#endif
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.vfParticle.renderLines.vertex
|
||
|
||
#define PI 3.1415926
|
||
|
||
attribute vec3 position : POSITION;
|
||
|
||
uniform sampler2D particleTexture;
|
||
uniform sampler2D prevParticleTexture;
|
||
|
||
uniform float size : 1.0;
|
||
uniform vec4 vp: VIEWPORT;
|
||
uniform mat4 worldViewProjection : WORLDVIEWPROJECTION;
|
||
|
||
varying float v_Mag;
|
||
varying vec2 v_Uv;
|
||
|
||
@import clay.util.rand
|
||
|
||
void main()
|
||
{
|
||
vec4 p = texture2D(particleTexture, position.xy);
|
||
vec4 p2 = texture2D(prevParticleTexture, position.xy);
|
||
|
||
p.xy = p.xy * 2.0 - 1.0;
|
||
p2.xy = p2.xy * 2.0 - 1.0;
|
||
|
||
if (p.w > 0.0 && p.z > 1e-5) {
|
||
vec2 dir = normalize(p.xy - p2.xy);
|
||
vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;
|
||
if (abs(position.z) == 2.0) {
|
||
gl_Position = vec4(p.xy + norm, 0.0, 1.0);
|
||
v_Uv = p.xy;
|
||
v_Mag = p.z;
|
||
}
|
||
else {
|
||
gl_Position = vec4(p2.xy + norm, 0.0, 1.0);
|
||
v_Mag = p2.z;
|
||
v_Uv = p2.xy;
|
||
}
|
||
gl_Position = worldViewProjection * gl_Position;
|
||
}
|
||
else {
|
||
gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);
|
||
}
|
||
}
|
||
|
||
@end
|
||
|
||
@export ecgl.vfParticle.renderLines.fragment
|
||
|
||
uniform vec4 color : [1.0, 1.0, 1.0, 1.0];
|
||
uniform sampler2D gradientTexture;
|
||
uniform sampler2D colorTexture;
|
||
|
||
varying float v_Mag;
|
||
varying vec2 v_Uv;
|
||
|
||
void main()
|
||
{
|
||
gl_FragColor = color;
|
||
#ifdef GRADIENTTEXTURE_ENABLED
|
||
gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));
|
||
#endif
|
||
#ifdef COLORTEXTURE_ENABLED
|
||
gl_FragColor *= texture2D(colorTexture, v_Uv);
|
||
#endif
|
||
}
|
||
|
||
@end
|
||
`;nt.import(M1t);function D1t(e){var t=document.createElement("canvas");t.width=t.height=e;var r=t.getContext("2d");return r.fillStyle="#fff",r.arc(e/2,e/2,e/2,0,Math.PI*2),r.fill(),t}var cR=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new _r({type:$t.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};cR.prototype={constructor:cR,init:function(){var e={type:$t.FLOAT,minFilter:$t.NEAREST,magFilter:$t.NEAREST,useMipmap:!1};this._spawnTexture=new _r(e),this._particleTexture0=new _r(e),this._particleTexture1=new _r(e),this._frameBuffer=new Ua({depthBuffer:!1}),this._particlePass=new sa({fragment:nt.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new sa({fragment:nt.source("clay.compositor.downsample")});var t=new dh({renderOrder:10,material:new as({shader:new nt(nt.source("ecgl.vfParticle.renderPoints.vertex"),nt.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:dh.POINTS,geometry:new Hr({dynamic:!0,mainAttribute:"texcoord0"})}),r=new dh({renderOrder:10,material:new as({shader:new nt(nt.source("ecgl.vfParticle.renderLines.vertex"),nt.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new E1t,culling:!1}),n=new dh({material:new as({shader:new nt(nt.source("ecgl.color.vertex"),nt.source("ecgl.color.fragment"))}),geometry:new zT});n.material.enableTexture("diffuseMap"),this._particlePointsMesh=t,this._particleLinesMesh=r,this._lastFrameFullQuadMesh=n,this._camera=new Ag,this._thisFrameTexture=new _r,this._lastFrameTexture=new _r},setParticleDensity:function(e,t){for(var r=e*t,n=new Float32Array(r*4),a=0,i=this.particleLife,o=0;o<e;o++)for(var s=0;s<t;s++,a++){n[a*4]=Math.random(),n[a*4+1]=Math.random(),n[a*4+2]=Math.random();var l=(i[1]-i[0])*Math.random()+i[0];n[a*4+3]=l}this._particleType==="line"?this._setLineGeometry(e,t):this._setPointsGeometry(e,t),this._spawnTexture.width=e,this._spawnTexture.height=t,this._spawnTexture.pixels=n,this._particleTexture0.width=this._particleTexture1.width=e,this._particleTexture0.height=this._particleTexture1.height=t,this._particlePass.setUniform("textureSize",[e,t])},_setPointsGeometry:function(e,t){var r=e*t,n=this._particlePointsMesh.geometry,a=n.attributes;a.texcoord0.init(r);for(var i=0,o=0;o<e;o++)for(var s=0;s<t;s++,i++)a.texcoord0.value[i*2]=o/e,a.texcoord0.value[i*2+1]=s/t;n.dirty()},_setLineGeometry:function(e,t){var r=e*t,n=this._getParticleMesh().geometry;n.setLineCount(r),n.resetOffset();for(var a=0;a<e;a++)for(var i=0;i<t;i++)n.addLine([a/e,i/t]);n.dirty()},_getParticleMesh:function(){return this._particleType==="line"?this._particleLinesMesh:this._particlePointsMesh},update:function(e,t,r,n){var a=this._getParticleMesh(),i=this._frameBuffer,o=this._particlePass;n&&this._updateDownsampleTextures(e,t),a.material.set("size",this._particleSize*this._supersampling),a.material.set("color",this.particleColor),o.setUniform("speedScaling",this.particleSpeedScaling),i.attach(this._particleTexture1),o.setUniform("firstFrameTime",n?(this.particleLife[1]+this.particleLife[0])/2:0),o.setUniform("particleTexture",this._particleTexture0),o.setUniform("deltaTime",r),o.setUniform("elapsedTime",this._elapsedTime),o.render(e,i),a.material.set("particleTexture",this._particleTexture1),a.material.set("prevParticleTexture",this._particleTexture0),i.attach(this._thisFrameTexture),i.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT);var s=this._lastFrameFullQuadMesh;s.material.set("diffuseMap",this._lastFrameTexture),s.material.set("color",[1,1,1,this.motionBlurFactor]),this._camera.update(!0),e.renderPass([s,a],this._camera),i.unbind(e),this._downsample(e),this._swapTexture(),this._elapsedTime+=r},_downsample:function(e){var t=this._downsampleTextures;if(t.length!==0)for(var r=0,n=this._thisFrameTexture,a=t[r];a;)this._frameBuffer.attach(a),this._downsamplePass.setUniform("texture",n),this._downsamplePass.setUniform("textureSize",[n.width,n.height]),this._downsamplePass.render(e,this._frameBuffer),n=a,a=t[++r]},getSurfaceTexture:function(){var e=this._downsampleTextures;return e.length>0?e[e.length-1]:this._lastFrameTexture},setRegion:function(e){this._particlePass.setUniform("region",e)},resize:function(e,t){this._lastFrameTexture.width=e*this._supersampling,this._lastFrameTexture.height=t*this._supersampling,this._thisFrameTexture.width=e*this._supersampling,this._thisFrameTexture.height=t*this._supersampling,this._width=e,this._height=t},setParticleSize:function(e){var t=this._getParticleMesh();if(e<=2){t.material.disableTexture("spriteTexture"),t.material.transparent=!1;return}this._spriteTexture||(this._spriteTexture=new _r),(!this._spriteTexture.image||this._spriteTexture.image.width!==e)&&(this._spriteTexture.image=D1t(e),this._spriteTexture.dirty()),t.material.transparent=!0,t.material.enableTexture("spriteTexture"),t.material.set("spriteTexture",this._spriteTexture),this._particleSize=e},setGradientTexture:function(e){var t=this._getParticleMesh().material;t[e?"enableTexture":"disableTexture"]("gradientTexture"),t.setUniform("gradientTexture",e)},setColorTextureImage:function(e,t){var r=this._getParticleMesh().material;r.setTextureImage("colorTexture",e,t,{flipY:!0})},setParticleType:function(e){this._particleType=e},clearFrame:function(e){var t=this._frameBuffer;t.attach(this._lastFrameTexture),t.bind(e),e.gl.clear(e.gl.DEPTH_BUFFER_BIT|e.gl.COLOR_BUFFER_BIT),t.unbind(e)},setSupersampling:function(e){this._supersampling=e,this.resize(this._width,this._height)},_updateDownsampleTextures:function(e,t){for(var r=this._downsampleTextures,n=Math.max(Math.floor(Math.log(this._supersampling/t.getDevicePixelRatio())/Math.log(2)),0),a=2,i=this._width*this._supersampling,o=this._height*this._supersampling,s=0;s<n;s++)r[s]=r[s]||new _r,r[s].width=i/a,r[s].height=o/a,a*=2;for(;s<r.length;s++)r[s].dispose(e);r.length=n},_swapTexture:function(){var e=this._particleTexture0;this._particleTexture0=this._particleTexture1,this._particleTexture1=e;var e=this._thisFrameTexture;this._thisFrameTexture=this._lastFrameTexture,this._lastFrameTexture=e},dispose:function(e){e.disposeFrameBuffer(this._frameBuffer),e.disposeTexture(this.vectorFieldTexture),e.disposeTexture(this._spawnTexture),e.disposeTexture(this._particleTexture0),e.disposeTexture(this._particleTexture1),e.disposeTexture(this._thisFrameTexture),e.disposeTexture(this._lastFrameTexture),e.disposeGeometry(this._particleLinesMesh.geometry),e.disposeGeometry(this._particlePointsMesh.geometry),e.disposeGeometry(this._lastFrameFullQuadMesh.geometry),this._spriteTexture&&e.disposeTexture(this._spriteTexture),this._particlePass.dispose(e),this._downsamplePass.dispose(e),this._downsampleTextures.forEach(function(t){t.dispose(e)})}};const P1t=cR,L1t=xr.extend({type:"flowGL",__ecgl__:!0,init:function(e,t){this.viewGL=new an("orthographic"),this.groupGL=new ue.Node,this.viewGL.add(this.groupGL),this._particleSurface=new P1t;var r=new ue.Mesh({geometry:new ue.PlaneGeometry,material:new ue.Material({shader:new ue.Shader({vertex:ue.Shader.source("ecgl.color.vertex"),fragment:ue.Shader.source("ecgl.color.fragment")}),transparent:!0})});r.material.enableTexture("diffuseMap"),this.groupGL.add(r),this._planeMesh=r},render:function(e,t,r){var n=this._particleSurface;n.setParticleType(e.get("particleType")),n.setSupersampling(e.get("supersampling")),this._updateData(e,r),this._updateCamera(r.getWidth(),r.getHeight(),r.getDevicePixelRatio());var a=Sr.firstNotNull(e.get("particleDensity"),128);n.setParticleDensity(a,a);var i=this._planeMesh,o=+new Date,s=this,l=!0;i.__percent=0,i.stopAnimation(),i.animate("",{loop:!0}).when(1e5,{__percent:1}).during(function(){var f=+new Date,d=Math.min(f-o,20);o=o+d,s._renderer&&(n.update(s._renderer,r,d/1e3,l),i.material.set("diffuseMap",n.getSurfaceTexture())),l=!1}).start();var u=e.getModel("itemStyle"),c=ue.parseColor(u.get("color"));c[3]*=Sr.firstNotNull(u.get("opacity"),1),i.material.set("color",c),n.setColorTextureImage(e.get("colorTexture"),r),n.setParticleSize(e.get("particleSize")),n.particleSpeedScaling=e.get("particleSpeed"),n.motionBlurFactor=1-Math.pow(.1,e.get("particleTrail"))},updateTransform:function(e,t,r){this._updateData(e,r)},afterRender:function(e,t,r,n){var a=n.renderer;this._renderer=a},_updateData:function(e,t){var r=e.coordinateSystem,n=r.dimensions.map(function(y){return e.coordDimToDataDim(y)[0]}),a=e.getData(),i=a.getDataExtent(n[0]),o=a.getDataExtent(n[1]),s=e.get("gridWidth"),l=e.get("gridHeight");if(s==null||s==="auto"){var u=(i[1]-i[0])/(o[1]-o[0]);s=Math.round(Math.sqrt(u*a.count()))}(l==null||l==="auto")&&(l=Math.ceil(a.count()/s));var c=this._particleSurface.vectorFieldTexture,f=c.pixels;if(!f||f.length!==l*s*4)f=c.pixels=new Float32Array(s*l*4);else for(var d=0;d<f.length;d++)f[d]=0;var h=0,v=1/0,p=new Float32Array(a.count()*2),g=0,m=[[1/0,1/0],[-1/0,-1/0]];a.each([n[0],n[1],"vx","vy"],function(y,_,w,x){var S=r.dataToPoint([y,_]);p[g++]=S[0],p[g++]=S[1],m[0][0]=Math.min(S[0],m[0][0]),m[0][1]=Math.min(S[1],m[0][1]),m[1][0]=Math.max(S[0],m[1][0]),m[1][1]=Math.max(S[1],m[1][1]);var T=Math.sqrt(w*w+x*x);h=Math.max(h,T),v=Math.min(v,T)}),a.each(["vx","vy"],function(y,_,w){var x=Math.round((p[w*2]-m[0][0])/(m[1][0]-m[0][0])*(s-1)),S=l-1-Math.round((p[w*2+1]-m[0][1])/(m[1][1]-m[0][1])*(l-1)),T=(S*s+x)*4;f[T]=y/h*.5+.5,f[T+1]=_/h*.5+.5,f[T+3]=1}),c.width=s,c.height=l,e.get("coordinateSystem")==="bmap"&&this._fillEmptyPixels(c),c.dirty(),this._updatePlanePosition(m[0],m[1],e,t),this._updateGradientTexture(a.getVisual("visualMeta"),[v,h])},_fillEmptyPixels:function(e){var t=e.pixels,r=e.width,n=e.height;function a(p,g,m){p=Math.max(Math.min(p,r-1),0),g=Math.max(Math.min(g,n-1),0);var y=(g*(r-1)+p)*4;return t[y+3]===0?!1:(m[0]=t[y],m[1]=t[y+1],!0)}function i(p,g,m){m[0]=p[0]+g[0],m[1]=p[1]+g[1]}for(var o=[],s=[],l=[],u=[],c=[],f=0,d=0;d<n;d++)for(var h=0;h<r;h++){var v=(d*(r-1)+h)*4;t[v+3]===0&&(f=o[0]=o[1]=0,a(h-1,d,s)&&(f++,i(s,o,o)),a(h+1,d,l)&&(f++,i(l,o,o)),a(h,d-1,u)&&(f++,i(u,o,o)),a(h,d+1,c)&&(f++,i(c,o,o)),o[0]/=f,o[1]/=f,t[v]=o[0],t[v+1]=o[1]),t[v+3]=1}},_updateGradientTexture:function(e,t){if(!e||!e.length){this._particleSurface.setGradientTexture(null);return}this._gradientTexture=this._gradientTexture||new ue.Texture2D({image:document.createElement("canvas")});var r=this._gradientTexture,n=r.image;n.width=200,n.height=1;var a=n.getContext("2d"),i=a.createLinearGradient(0,.5,n.width,.5);e[0].stops.forEach(function(o){var s;t[1]===t[0]?s=0:(s=o.value/t[1],s=Math.min(Math.max(s,0),1)),i.addColorStop(s,o.color)}),a.fillStyle=i,a.fillRect(0,0,n.width,n.height),r.dirty(),this._particleSurface.setGradientTexture(this._gradientTexture)},_updatePlanePosition:function(e,t,r,n){var a=this._limitInViewportAndFullFill(e,t,r,n);e=a.leftTop,t=a.rightBottom,this._particleSurface.setRegion(a.region),this._planeMesh.position.set((e[0]+t[0])/2,n.getHeight()-(e[1]+t[1])/2,0);var i=t[0]-e[0],o=t[1]-e[1];this._planeMesh.scale.set(i/2,o/2,1),this._particleSurface.resize(Math.max(Math.min(i,2048),1),Math.max(Math.min(o,2048),1)),this._renderer&&this._particleSurface.clearFrame(this._renderer)},_limitInViewportAndFullFill:function(e,t,r,n){var a=[Math.max(e[0],0),Math.max(e[1],0)],i=[Math.min(t[0],n.getWidth()),Math.min(t[1],n.getHeight())];if(r.get("coordinateSystem")==="bmap"){var o=r.getData().getDataExtent(r.coordDimToDataDim("lng")[0]),s=Math.floor(o[1]-o[0])>=359;s&&(a[0]>0&&(a[0]=0),i[0]<n.getWidth()&&(i[0]=n.getWidth()))}var l=t[0]-e[0],u=t[1]-e[1],c=i[0]-a[0],f=i[1]-a[1],d=[(a[0]-e[0])/l,1-f/u-(a[1]-e[1])/u,c/l,f/u];return{leftTop:a,rightBottom:i,region:d}},_updateCamera:function(e,t,r){this.viewGL.setViewport(0,0,e,t,r);var n=this.viewGL.camera;n.left=n.bottom=0,n.top=t,n.right=e,n.near=0,n.far=100,n.position.z=10},remove:function(){this._planeMesh.stopAnimation(),this.groupGL.removeAll()},dispose:function(){this._renderer&&this._particleSurface.dispose(this._renderer),this.groupGL.removeAll()}});function I1t(e){e.registerChartView(L1t),e.registerSeriesModel(T1t)}Dt(I1t);var fR=Ir.extend({type:"series.linesGL",dependencies:["grid","geo"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",streamEnabled:!0,init:function(e){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),fR.superApply(this,"init",arguments)},mergeOption:function(e){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),fR.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=kh(this._flatCoords,t.flatCoords),this._flatCoordsOffset=kh(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),r=t.option instanceof Array?t.option:t.getShallow("coords");return r},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var r=this._flatCoordsOffset[e*2],n=this._flatCoordsOffset[e*2+1],a=0;a<n;a++)t[a]=t[a]||[],t[a][0]=this._flatCoords[r+a*2],t[a][1]=this._flatCoords[r+a*2+1];return n}else{for(var i=this._getCoordsFromItemModel(e),a=0;a<i.length;a++)t[a]=t[a]||[],t[a][0]=i[a][0],t[a][1]=i[a][1];return i.length}},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),typeof e[0]=="number"){for(var r=e.length,n=new Uint32Array(r),a=new Float64Array(r),i=0,o=0,s=0,l=0;l<r;){s++;var u=e[l++];n[o++]=i+t,n[o++]=u;for(var c=0;c<u;c++){var f=e[l++],d=e[l++];a[i++]=f,a[i++]=d}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,o),flatCoords:a,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var r=new Dn(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],function(n,a,i,o){if(n instanceof Array)return NaN;r.hasItemOption=!0;var s=n.value;if(s!=null)return s instanceof Array?s[o]:s}),r},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}});const R1t=fR,O1t=xr.extend({type:"linesGL",__ecgl__:!0,init:function(e,t){this.groupGL=new ue.Node,this.viewGL=new an("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new fc(this.viewGL),this._nativeLinesShader=ue.createShader("ecgl.lines3D"),this._meshLinesShader=ue.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(e,t,r){this.groupGL.removeAll(),this._glViewHelper.reset(e,r);var n=this._linesMeshes[0];n||(n=this._linesMeshes[0]=this._createLinesMesh(e)),this._linesMeshes.length=1,this.groupGL.add(n),this._updateLinesMesh(e,n,0,e.getData().count()),this.viewGL.setPostEffect(e.getModel("postEffect"),r)},incrementalPrepareRender:function(e,t,r){this.groupGL.removeAll(),this._glViewHelper.reset(e,r),this._currentStep=0,this.viewGL.setPostEffect(e.getModel("postEffect"),r)},incrementalRender:function(e,t,r,n){var a=this._linesMeshes[this._currentStep];a||(a=this._createLinesMesh(t),this._linesMeshes[this._currentStep]=a),this._updateLinesMesh(t,a,e.start,e.end),this.groupGL.add(a),n.getZr().refresh(),this._currentStep++},updateTransform:function(e,t,r){e.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(e,r)},_createLinesMesh:function(e){var t=new ue.Mesh({$ignorePicking:!0,material:new ue.Material({shader:ue.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new eoe({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:ue.Mesh.LINES,culling:!1});return t},_updateLinesMesh:function(e,t,r,n){var a=e.getData();t.material.blend=e.get("blendMode")==="lighter"?ue.additiveBlend:null;var i=e.get("lineStyle.curveness")||0,o=e.get("polyline"),s=t.geometry,l=e.coordinateSystem,u=Sr.firstNotNull(e.get("lineStyle.width"),1);u>1?(t.material.shader!==this._meshLinesShader&&t.material.attachShader(this._meshLinesShader),t.mode=ue.Mesh.TRIANGLES):(t.material.shader!==this._nativeLinesShader&&t.material.attachShader(this._nativeLinesShader),t.mode=ue.Mesh.LINES),r=r||0,n=n||a.count(),s.resetOffset();var c=0,f=0,d=[],h=[],v=[],p=[],g=[],m=.3,y=.7;function _(){h[0]=d[0]*y+p[0]*m-(d[1]-p[1])*i,h[1]=d[1]*y+p[1]*m-(p[0]-d[0])*i,v[0]=d[0]*m+p[0]*y-(d[1]-p[1])*i,v[1]=d[1]*m+p[1]*y-(p[0]-d[0])*i}if(o||i!==0)for(var w=r;w<n;w++)if(o){var x=e.getLineCoordsCount(w);c+=s.getPolylineVertexCount(x),f+=s.getPolylineTriangleCount(x)}else e.getLineCoords(w,g),this._glViewHelper.dataToPoint(l,g[0],d),this._glViewHelper.dataToPoint(l,g[1],p),_(),c+=s.getCubicCurveVertexCount(d,h,v,p),f+=s.getCubicCurveTriangleCount(d,h,v,p);else{var S=n-r;c+=S*s.getLineVertexCount(),f+=S*s.getLineVertexCount()}s.setVertexCount(c),s.setTriangleCount(f);for(var T=r,A=[],w=r;w<n;w++){ue.parseColor(Ma(a,T),A);var C=Sr.firstNotNull(Ea(a,T),1);A[3]*=C;for(var x=e.getLineCoords(w,g),M=0;M<x;M++)this._glViewHelper.dataToPoint(l,g[M],g[M]);o?s.addPolyline(g,A,u,0,x):i!==0?(d=g[0],p=g[1],_(),s.addCubicCurve(d,h,v,p,A,u)):s.addPolyline(g,A,u,0,2),T++}},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function k1t(e){e.registerChartView(O1t),e.registerSeriesModel(R1t)}Dt(k1t);const N1t=(e,t,r,n,a,i=1)=>{const o=[];let s=0,l=0,u=0,c=[],f=[];const d=1-t;e.sort((p,g)=>g.value-p.value);for(let p=0;p<e.length;p++){s+=Number(e[p].value);const g={name:typeof e[p].name>"u"?`series${p}`:e[p].name,type:"surface",parametric:!0,wireframe:{show:!1},pieData:e[p],pieStatus:{selected:!1,hovered:!1,k:d},center:["10%","50%"]};if(typeof e[p].itemStyle<"u"){const m={};m.color=typeof e[p].itemStyle.color<"u"?e[p].itemStyle.color:i,m.opacity=typeof e[p].itemStyle.opacity<"u"?e[p].itemStyle.opacity:i,g.itemStyle=m}o.push(g)}c=[],f=[];for(let p=0;p<o.length;p++){u=l+o[p].pieData.value,o[p].pieData.startRatio=l/s,o[p].pieData.endRatio=u/s,o[p].parametricEquation=B1t(o[p].pieData.startRatio,o[p].pieData.endRatio,!1,!1,d,o[p].pieData.value),l=u;const g=PW(o[p].pieData.value/s,4);c.push({name:o[p].name,value:g}),f.push({name:o[p].name,value:g})}const h=F1t(o,a);return{legend:{show:!1,data:c,orient:"vertical",left:10,top:10,itemGap:10,textStyle:{color:"#A1E2FF"},icon:"circle",formatter:function(p){const g=f.filter(y=>y.name===p)[0],m=PW(g.value*100,2)+"%";return`${g.name} ${m}`}},labelLine:{show:!0,lineStyle:{color:"#fff"}},label:{show:!0,position:"outside",formatter:`{b}
|
||
{c} {d}%`},xAxis3D:{min:-1,max:1},yAxis3D:{min:-1,max:1},zAxis3D:{min:-1,max:1},grid3D:{show:!1,boxHeight:h,viewControl:{alpha:n,distance:r,rotateSensitivity:0,zoomSensitivity:0,panSensitivity:0,autoRotate:!1}},series:o}},B1t=(e,t,r,n,a,i)=>{const o=(e+t)/2,s=e*Math.PI*2,l=t*Math.PI*2,u=o*Math.PI*2;e===0&&t===1&&(r=!1),a=typeof a<"u"?a:1/3;const c=r?Math.cos(u)*.1:0,f=r?Math.sin(u)*.1:0,d=n?1.05:1;return{u:{min:-Math.PI,max:Math.PI*3,step:Math.PI/32},v:{min:0,max:Math.PI*2,step:Math.PI/20},x:function(h,v){return h<s?c+Math.cos(s)*(1+Math.cos(v)*a)*d:h>l?c+Math.cos(l)*(1+Math.cos(v)*a)*d:c+Math.cos(h)*(1+Math.cos(v)*a)*d},y:function(h,v){return h<s?f+Math.sin(s)*(1+Math.cos(v)*a)*d:h>l?f+Math.sin(l)*(1+Math.cos(v)*a)*d:f+Math.sin(h)*(1+Math.cos(v)*a)*d},z:function(h,v){return h<-Math.PI*.5?Math.sin(h):h>Math.PI*2.5?Math.sin(h)*i*.1:Math.sin(v)>0?1*i*.1:-1}}},F1t=(e,t)=>(e.sort((r,n)=>n.pieData.value-r.pieData.value),t*25/e[0].pieData.value),PW=(e,t)=>{let r=parseFloat(e);if(isNaN(r))return!1;r=Math.round(e*Math.pow(10,t))/Math.pow(10,t);let n=r.toString(),a=n.indexOf(".");for(a<0&&(a=n.length,n+=".");n.length<=a+t;)n+="0";return n};function V1t(e){return ir({url:"/api/GetCarbonOverview",method:"get",params:e})}function z1t(){return ir({url:"/api/GetCarbonFlux",method:"get"})}function H1t(e){return ir({url:"/api/GetCarbonTrend",method:"get",params:e})}function G1t(){return ir({url:"/api/GetCarbonIntensity",method:"get"})}function U1t(){return ir({url:"/api/GetSystemPurge",method:"get"})}function $1t(){return ir({url:"/api/GetCarbonNeutral",method:"get"})}function W1t(){return ir({url:"/api/ExportCarbonTrend",method:"get",responseType:"blob"})}const G1=e=>(jl("data-v-9163df22"),e=e(),Kl(),e),Y1t={class:"page m100"},j1t={class:"page-left-box"},K1t={class:"title"},X1t=G1(()=>V("span",null,"总览",-1)),Z1t={class:"titleDate"},q1t=["onClick"],Q1t={class:"margin10 box-bg",style:{display:"flex","flex-wrap":"wrap","flex-direction":"column","align-content":"space-around","justify-content":"space-evenly"}},J1t={class:""},ebt={class:"overviewValue"},tbt={class:"value"},rbt={class:"unit"},nbt=G1(()=>V("div",{class:"title margin10"},[V("span",null,"碳流图")],-1)),abt=G1(()=>V("div",{class:"margin10 box-bg",id:"energyFlow"},null,-1)),ibt={class:"title margin10"},obt=G1(()=>V("span",null,"碳排放趋势",-1)),sbt={class:"titleDate"},lbt=["onClick"],ubt=G1(()=>V("div",{id:"carbonTrends",style:{width:"100%",height:"100%"}},null,-1)),cbt=H9('<div class="page-right-box" data-v-9163df22><div class="title" data-v-9163df22><span data-v-9163df22>碳排放强度</span></div><div class="margin10 box-bg" id="carbonIntensity" data-v-9163df22></div><div class="title margin10" data-v-9163df22><span data-v-9163df22>各系统碳排放量统计</span></div><div class="margin10 box-bg" id="carbonEmissionStatistics" data-v-9163df22></div><div class="title margin10" data-v-9163df22><span data-v-9163df22>碳中和</span></div><div class="margin10 box-bg" data-v-9163df22><div id="carbonNeutrality" style="width:100%;height:100%;" data-v-9163df22></div><div class="carbonNeutralityBg" data-v-9163df22></div></div></div>',1),fbt={__name:"index",setup(e){const t=G([{name:"年"},{name:"月"}]),r=G(0),n=G([{name:"总排放量",num:83,unit:"万tCO₂"},{name:"碳抵消量",num:83,unit:"万tCO₂"},{name:"碳减排量",num:83,unit:"万tCO₂"}]);function a(A){r.value=A,y()}function i(A){o.value=A,w()}const o=G(0),s=G([{name:"月"},{name:"日"}]);function l(){W1t().then(A=>{var C=A;if(C){var M=document.createElement("a");M.download="碳排放统计报表.docx",M.style.display="none";var E=new Blob([C],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"});M.href=URL.createObjectURL(E),document.body.appendChild(M),M.click(),document.body.removeChild(M)}else this.$message.error("导出异常请联系管理员")}).catch(A=>{})}function u(A){let C=[],M=[];A.forEach(L=>{C.push(L.time),M.push(L.EH)});let E=document.getElementById("carbonTrends");E.removeAttribute("_echarts_instance_");let D;D=$n(E);const P={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:C}],yAxis:[{type:"value",name:"单位:万tCO₂",nameTextStyle:{color:"#DDFFFD",padding:[0,10,0,0]},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"碳排放量",type:"line",smooth:!0,symbolSize:0,lineStyle:{color:"#5BFAF1"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 0.40)"},{offset:1,color:"rgba(91, 250, 241, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:M}]};D.setOption(P),window.addEventListener("resize",function(){D.resize()})}const c=A=>{let C=[],M=[];A.forEach(z=>{C.push(z.time),M.push(parseInt(z.CarbonIntensity))});const E=eo({shape:{x:0,y:0},buildPath:function(z,$){const j=$.xAxisPoint,X=[$.x-7,$.y],Q=[$.x+7,$.y],se=[j[0]+7,j[1]],ee=[j[0]-7,j[1]];z.moveTo(X[0],X[1]).lineTo(Q[0],Q[1]).lineTo(se[0],se[1]).lineTo(ee[0],ee[1]).closePath(),z.stroke()}}),D=eo({shape:{x:0,y:0},buildPath:function(z,$){const j=$.xAxisPoint,X=[$.x+7,$.y],Q=[j[0]+7,j[1]],se=[j[0]+7+7,j[1]-5],ee=[$.x+7+7,$.y-5];z.moveTo(X[0],X[1]).lineTo(Q[0],Q[1]).lineTo(se[0],se[1]).lineTo(ee[0],ee[1]).closePath(),z.stroke()}}),P=eo({shape:{x:0,y:0},buildPath:function(z,$){const j=[$.x-7,$.y],X=[$.x+8,$.y],Q=[$.x+15,$.y-5],se=[$.x-2,$.y-5];z.moveTo(j[0],j[1]).lineTo(X[0],X[1]).lineTo(Q[0],Q[1]).lineTo(se[0],se[1]).closePath(),z.stroke()}});zn("CubeLeft",E),zn("CubeRight",D),zn("CubeTop",P);let L=C,I=M,O=[["rgba(0, 170, 193, 1)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"]],R=document.getElementById("carbonIntensity");R.removeAttribute("_echarts_instance_");let B;B=$n(R);const k={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(z,$,j){const X=z[1];return X.name+" : "+X.value}},color:"#01DDF9",legend:{icon:"rect",right:"4%",top:"3%",itemWidth:20,itemHeight:10,textStyle:{color:"rgba(221, 255, 253, 1)"},data:["单位面积碳排放强度限值"]},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:L,axisLine:{show:!0,lineStyle:{width:1,type:"solid",color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:12,interval:0}},yAxis:{type:"value",name:"单位:万tCO₂/m²",nameTextStyle:{color:"#DDFFFD",padding:[0,0,0,27]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisTick:{show:!1},axisLabel:{fontSize:12,color:"#DDFFFD",formatter:function(z){return console.log(z,"定额"),z===Math.max(...I)/2?"{a|"+z+"}":z},rich:{a:{color:"rgba(255, 221, 0, 1)"}}}},series:[{type:"custom",name:"单位面积碳排放强度限值",renderItem:(z,$)=>{const j=$.coord([$.value(0),$.value(1)]);return{type:"group",children:[{type:"CubeLeft",shape:{api:$,xValue:$.value(0),yValue:$.value(1),x:j[0],y:j[1],xAxisPoint:$.coord([$.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:O[1][0]},{offset:1,color:O[1][1]}])}},{type:"CubeRight",shape:{api:$,xValue:$.value(0),yValue:$.value(1),x:j[0],y:j[1],xAxisPoint:$.coord([$.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:O[2][0]},{offset:1,color:O[2][1]}])}},{type:"CubeTop",shape:{api:$,xValue:$.value(0),yValue:$.value(1),x:j[0],y:j[1],xAxisPoint:$.coord([$.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:O[0][0]},{offset:1,color:O[0][0]}])}}]}},data:I},{type:"bar",label:{normal:{show:!1,position:"top",formatter:z=>z.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:I,markLine:{symbol:"none",data:[{yAxis:Math.max(...I)/2+"",lineStyle:{color:"rgba(255, 221, 0, 1)",type:"dashed",width:1},label:{show:!1,position:"end"}}]}}]};B.setOption(k),window.addEventListener("resize",function(){B.resize()})},f=A=>{let C=0,M=[],E=[];A.forEach(I=>{C+=I.CarbonEmission,M.push(I.name),E.push(I.CarbonEmission)}),console.log(C);let D=document.getElementById("carbonEmissionStatistics");D.removeAttribute("_echarts_instance_");let P;P=$n(D);let L={grid:{left:"5%",right:"5%",bottom:"-10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(I){return I[0].name+"<br/><span style='display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgba(36,207,233,0.9)'></span>"+I[0].seriesName+Number(I[0].value.toFixed(2)).toLocaleString()+" 万tCO₂<br/>"}},xAxis:{max:C,show:!1,type:"value"},yAxis:[{type:"category",inverse:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,show:!0,textStyle:{color:"#fff",fontSize:"14"}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},data:M},{type:"category",inverse:!0,axisTick:"none",axisLine:"none",show:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,textStyle:{},formatter:function(I){return"{a|"+I.toLocaleString()+"}{b|万tCO₂}"},rich:{a:{fontSize:"20",fontFamily:"D-DIN-Bold",color:"rgba(0, 255, 240, 1)",padding:[0,6,0,0]},b:{color:"#fff",fontSize:"12"}}},data:E}],series:[{name:"",type:"bar",zlevel:1,itemStyle:{color:new kr(0,0,1,0,[{offset:0,color:"rgba(29, 169, 153, 1)"},{offset:1,color:"rgba(223, 243, 240, 1)"}])},barWidth:8,data:E},{name:"背景",type:"bar",barWidth:10,barGap:"-115%",data:[C,C,C,C,C],itemStyle:{color:"rgba(5, 33, 31, 0.32)",borderColor:"rgba(4, 24, 44, 1)",borderWidth:2}}]};P.setOption(L),window.addEventListener("resize",function(){P.resize()})},d=G([]),h=["rgba(27, 255, 118, 1)","rgba(1, 225, 242, 1)","rgba(0, 140, 255, 1)"],v=["rgba(0, 140, 255, 1)","rgba(1, 225, 242, 1)","rgba(27, 255, 118, 1)"],p=()=>{d.value.forEach((A,C)=>{A.itemStyle={color:h[C]},console.log(h[C]),A.label={normal:{show:!0,padding:[0,-50],offset:[0,3],formatter:["{d|{d}%}","{b|{b}}"].join(`
|
||
`),rich:{b:{lineHeight:30,align:"left",fontSize:12,color:"#fff"},c:{fontSize:15,textShadowColor:"#1c90a6",textShadowOffsetX:0,textShadowOffsetY:2,textShadowBlur:5},d:{color:v[C],fontSize:18,fontWeight:600,align:"left"}}}},A.labelLine={normal:{length2:100,lineStyle:{width:1,color:v[C]}}}})},g=()=>{p();let A=document.getElementById("carbonNeutrality");A.removeAttribute("_echarts_instance_");let C;C=$n(A);let M=N1t(d.value,0,270,26,30,1);M.series.push({name:"",backgroundColor:"transparent",type:"pie",label:{opacity:1,fontSize:13,lineHeight:20},startAngle:-40,clockwise:!0,radius:["20%","60%"],center:["50%","50%"],data:d.value,itemStyle:{opacity:0}}),C.setOption(M),window.addEventListener("resize",function(){C.resize()})},m=A=>{let C=document.getElementById("energyFlow");C.removeAttribute("_echarts_instance_");let M;M=$n(C);let E=[{name:"碳",nameValue:A[0].Amount,valueUnit:"万tCO₂"},{name:"空调",nameValue:A[0].data[0].AirConditioner,valueUnit:"万tCO₂"},{name:"照明",nameValue:A[0].data[0].Lighting,valueUnit:"万tCO₂"},{name:"电梯",nameValue:A[0].data[0].Elevator,valueUnit:"万tCO₂"},{name:"其他",nameValue:A[0].data[0].Other,valueUnit:"万tCO₂"}],D=["rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)","rgba(91, 250, 241, 1)"],P=[];for(let I=0;I<E.length;I++)E[I].name==="碳"&&(E[I].label={position:"right"}),E[I].itemStyle={color:D[I]},P.push(E[I]);let L={series:[{type:"sankey",layout:"none",top:"5%",bottom:"4%",left:"6%",right:"5%",nodeAlign:"right",nodeWidth:"13",focusNodeAdjacency:"allEdges",data:P,links:[{source:"碳",target:"空调",value:8},{source:"碳",target:"照明",value:8},{source:"碳",target:"电梯",value:8},{source:"碳",target:"其他",value:8}],label:{position:"left",color:"#fff",fontSize:14,formatter:function(I){return I.dataIndex===0?"{a|"+I.data.name+`}
|
||
{b|`+I.data.nameValue+"} {c|"+I.data.valueUnit+"}":"{name|"+I.data.name+"}{value|"+I.data.nameValue+"}{c|"+I.data.valueUnit+"}"},rich:{c:{fontSize:"12"},a:{padding:[0,15,10,0],fontSize:"14"},b:{fontFamily:"D-DIN-Bold",color:"rgba(91, 250, 241, 1)",fontWeight:"600",fontSize:"20"},name:{fontSize:14},value:{fontFamily:"D-DIN-Bold",color:"rgba(91, 250, 241, 1)",fontWeight:"600",fontSize:"20",padding:[0,10,0,10]}}},lineStyle:{color:"source"},itemStyle:{borderWidth:1,borderColor:"transparent"}}]};M.setOption(L),window.addEventListener("resize",function(){M.resize()})};function y(){let A=r.value==0?"年":"月";V1t({date:A}).then(C=>{if(C.code==200)n.value[0].num=C.data[0].TotalRelease,n.value[1].num=C.data[0].CarbonOffset,n.value[2].num=C.data[0].CarbonReduction;else return!1}).catch(C=>{console.log(C)})}function _(A){z1t().then(C=>{if(C.code==200)m(C.data);else return!1}).catch(C=>{console.log(C)})}function w(){let A=o.value==0?"月":"日";H1t({date:A}).then(C=>{if(C.code==200)u(C.data.slice(-10));else return!1}).catch(C=>{console.log(C)})}function x(){G1t().then(A=>{if(A.code==200)c(A.data);else return!1}).catch(A=>{console.log(A)})}function S(){U1t().then(A=>{if(A.code==200)f(A.data);else return!1}).catch(A=>{console.log(A)})}function T(A){$1t().then(C=>{if(C.code==200)console.log(C.data,"碳中和数据"),d.value=Object.keys(C.data).map((M,E)=>({name:C.data[E].name,value:Number(C.data[E].CarbonNeutral)})),g();else return!1}).catch(C=>{console.log(C)})}return xt(()=>{y(),_(),w(),x(),S(),T()}),(A,C)=>(N(),U("div",Y1t,[V("div",j1t,[V("div",K1t,[X1t,V("div",Z1t,[(N(!0),U(Be,null,ht(t.value,(M,E)=>(N(),U("div",{key:E,class:H([r.value===E?"dateAc":"date"]),onClick:D=>a(E)},me(M.name),11,q1t))),128))])]),V("div",Q1t,[(N(!0),U(Be,null,ht(n.value,(M,E)=>(N(),U("div",{class:H("overview-item"+E)},[V("span",J1t,me(M.name),1),V("p",ebt,[V("span",tbt,me(M.num),1),V("span",rbt,me(M.unit),1)])],2))),256))]),nbt,abt,V("div",ibt,[obt,V("div",sbt,[(N(!0),U(Be,null,ht(s.value,(M,E)=>(N(),U("div",{key:E,class:H([o.value===E?"dateAc":"date"]),onClick:D=>i(E)},me(M.name),11,lbt))),128))])]),V("div",{class:"margin10 box-bg"},[ubt,V("div",{class:"carbonTrendsReport",onClick:l})])]),cbt]))}},dbt=al(fbt,[["__scopeId","data-v-9163df22"]]);function hbt(){return ir({url:"/api/GetBigScreen",method:"get"})}function vbt(){return ir({url:"/api/GetOperatingState",method:"get"})}function pbt(e){return ir({url:"/api/SetScreenState",method:"get",params:e})}const E4=e=>(jl("data-v-185ab9d8"),e=e(),Kl(),e),gbt={class:"page m100"},mbt={class:"floor"},ybt=["onClick"],_bt={class:"page-left-box",style:{opacity:"0 !important"}},bbt=E4(()=>V("div",{class:"title"},[V("span",null,"设备名称")],-1)),wbt={class:"page-big-box margin10",style:{display:"flex","align-items":"center"}},Sbt={class:"alarm"},xbt={class:"name"},Abt={class:"content"},Tbt={class:"location"},Cbt={class:"time"},Ebt={class:"page-right-box"},Mbt={class:"title"},Dbt=E4(()=>V("span",null,"运行状态",-1)),Pbt={class:"control-btn"},Lbt={class:"page-big-box margin10"},Ibt={class:"runningState"},Rbt=E4(()=>V("div",{class:"tableTitle"},[V("span",null,"区域名称"),V("span",null,"状态")],-1)),Obt={class:"tableContent"},kbt={class:"control"},Nbt={key:0,class:"tooltip-text"},Bbt={key:1,class:"tooltip-text"},Fbt={key:2,class:"tooltip-text"},Vbt={__name:"index",emits:["sendVal"],setup(e,{emit:t}){const r=G([]),n=G([]),a=G([{name:"一层"},{name:"二层"},{name:"三层"}]),i=G(-1),o=t,s=(v,p)=>{v.name==="一层"?o("sendVal",10):v.name==="二层"?o("sendVal",11):v.name==="三层"&&o("sendVal",12),i.value=p};function l(){hbt().then(v=>{if(v.code==200)r.value=v.data;else return!1}).catch(v=>{console.log(v)})}function u(){vbt().then(v=>{if(v.code==200)n.value=v.data;else return!1}).catch(v=>{console.log(v)})}function c(v){return console.log(v),v=="1"?"state2":v=="2"||v=="3"?"state1":"state2"}const f=G(""),d=v=>{v.srcElement.className=="on"?(f.value="on",h("全开")):v.srcElement.className=="off"&&(f.value="off",h("全关"))};function h(v){pbt({type:v}).then(p=>{p.code==200&&(Jc({message:"设置"+v+p.msg,type:"success"}),u())})}return xt(()=>{l(),u()}),(v,p)=>(N(),U("div",gbt,[V("div",mbt,[(N(!0),U(Be,null,ht(a.value,(g,m)=>(N(),U("div",{class:H(m===i.value?"floor-select":"floor-default"),onClick:y=>s(g,m)},me(g.name),11,ybt))),256))]),V("div",_bt,[bbt,V("div",wbt,[V("div",Sbt,[(N(!0),U(Be,null,ht(r.value,(g,m)=>(N(),U("div",{class:"alarmList",key:m},[V("span",xbt,me(g.Device),1),V("div",Abt,[V("span",Tbt,"地点:"+me(g.Place),1),V("span",Cbt,"时间:"+me(g.time),1)])]))),128))])])]),V("div",Ebt,[V("div",Mbt,[Dbt,V("p",Pbt,[V("span",{class:H([f.value==="on"?"select":"","on"]),onClick:d},"全开",2),V("span",{class:H([f.value==="off"?"select":"","off"]),style:{"margin-left":"0.7rem"},onClick:d},"全关",2)])]),V("div",Lbt,[V("div",Ibt,[Rbt,V("div",Obt,[(N(!0),U(Be,null,ht(n.value,(g,m)=>(N(),U("div",{class:"tableBoby",key:m},[V("span",null,me(g.Name),1),V("span",kbt,[g.State=="1"?(N(),U("div",Nbt,"停止")):g.State=="2"||g.State=="3"?(N(),U("div",Bbt,"运行")):(N(),U("div",Fbt,"离线")),V("i",{class:H(c(g.State))},null,2)])]))),128))])])])])]))}},zbt=al(Vbt,[["__scopeId","data-v-185ab9d8"]]);function Hbt(e){return console.log(e,ir),ir({url:"/api/GetRealLoad",method:"get",params:e})}function Gbt(e){return ir({url:"/api/GetDailyElectricity",method:"get",params:e})}function Ubt(e){return ir({url:"/api/GetLoadClassification",method:"get",params:e})}function $bt(e){return ir({url:"/api/GetAirconditioningLoad",method:"get",params:e})}function Wbt(e){return ir({url:"/api/GetDisplayLoad",method:"get",params:e})}function Ybt(e){return ir({url:"/api/GetLoopRanking",method:"get",params:e})}const jbt={class:"page m100"},Kbt=H9('<div class="page-left-box"><div class="title"><span>实时负荷</span></div><div class="margin10 box-bg" id="realTimeLoad"></div><div class="title margin10"><span>当日累计用电量</span></div><div class="margin10 box-bg" id="dailyElectricityConsumption"></div><div class="title margin10"><span>负荷分类</span></div><div class="margin10 box-bg" id="loadClassification"></div></div><div class="page-right-box"><div class="title"><span>空调负荷</span></div><div class="margin10 box-bg" id="airConditioningLoad"></div><div class="title margin10"><span>展陈负荷</span></div><div class="margin10 box-bg" id="exhibitionLoad"></div><div class="title margin10"><span>配电回路排名</span></div><div class="margin10 box-bg" id="ranking"></div></div>',2),Xbt=[Kbt],Zbt={__name:"index",setup(e){const t=v=>new URL(v,import.meta.url).href,r=v=>{let p=document.getElementById("realTimeLoad");p.removeAttribute("_echarts_instance_");let g;g=$n(p);const m={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:v.map(y=>y.time)}],yAxis:[{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-10,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.20)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"实时负荷",type:"line",symbol:"circle",symbolSize:6,itemStyle:{color:"#44C558"},lineStyle:{width:2},data:v.map(y=>y.P)}]};g.setOption(m),window.addEventListener("resize",function(){g.resize()})},n=v=>{const p=eo({shape:{x:0,y:0},buildPath:function(A,C){const M=C.xAxisPoint,E=[C.x-7,C.y],D=[C.x+7,C.y],P=[M[0]+7,M[1]],L=[M[0]-7,M[1]];A.moveTo(E[0],E[1]).lineTo(D[0],D[1]).lineTo(P[0],P[1]).lineTo(L[0],L[1]).closePath(),A.stroke()}}),g=eo({shape:{x:0,y:0},buildPath:function(A,C){const M=C.xAxisPoint,E=[C.x+7,C.y],D=[M[0]+7,M[1]],P=[M[0]+7+7,M[1]-5],L=[C.x+7+7,C.y-5];A.moveTo(E[0],E[1]).lineTo(D[0],D[1]).lineTo(P[0],P[1]).lineTo(L[0],L[1]).closePath(),A.stroke()}}),m=eo({shape:{x:0,y:0},buildPath:function(A,C){const M=[C.x-7,C.y],E=[C.x+8,C.y],D=[C.x+15,C.y-5],P=[C.x-2,C.y-5];A.moveTo(M[0],M[1]).lineTo(E[0],E[1]).lineTo(D[0],D[1]).lineTo(P[0],P[1]).closePath(),A.stroke()}});zn("CubeLeft",p),zn("CubeRight",g),zn("CubeTop",m);let y=v.map(A=>A.time),_=v.map(A=>A.EH),w=[["rgba(0, 170, 193, 1)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"],["rgba(0, 224, 255, 1)","rgba(0, 224, 255,0)"]],x=document.getElementById("dailyElectricityConsumption");x.removeAttribute("_echarts_instance_");let S;S=$n(x);const T={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(A,C,M){const E=A[1];return E.name+" : "+E.value}},grid:{left:"4%",right:"5%",top:"18%",bottom:"5%",containLabel:!0},xAxis:{type:"category",data:y,axisLine:{show:!0,lineStyle:{width:1,type:"solid",color:"#557775"}},axisTick:{show:!1},axisLabel:{color:"rgba(221, 255, 253, 1)",fontSize:12,interval:1}},yAxis:{type:"value",name:"单位:kWh",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-17,0,0]},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisTick:{show:!1},axisLabel:{fontSize:12,color:"#DDFFFD"}},series:[{type:"custom",renderItem:(A,C)=>{const M=C.coord([C.value(0),C.value(1)]);return{type:"group",children:[{type:"CubeLeft",shape:{api:C,xValue:C.value(0),yValue:C.value(1),x:M[0],y:M[1],xAxisPoint:C.coord([C.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:w[1][0]},{offset:1,color:w[1][1]}])}},{type:"CubeRight",shape:{api:C,xValue:C.value(0),yValue:C.value(1),x:M[0],y:M[1],xAxisPoint:C.coord([C.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:w[2][0]},{offset:1,color:w[2][1]}])}},{type:"CubeTop",shape:{api:C,xValue:C.value(0),yValue:C.value(1),x:M[0],y:M[1],xAxisPoint:C.coord([C.value(0),0])},style:{fill:new kr(0,0,0,1,[{offset:0,color:w[0][0]},{offset:1,color:w[0][0]}])}}]}},data:_},{type:"bar",label:{normal:{show:!1,position:"top",formatter:A=>A.value,fontSize:16,color:"#43C4F1",offset:[0,-5]}},itemStyle:{color:"transparent"},tooltip:{},data:_}]};S.setOption(T),window.addEventListener("resize",function(){S.resize()})},a=v=>{let p=document.getElementById("airConditioningLoad");p.removeAttribute("_echarts_instance_");let g;g=$n(p);const m={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:v.map(y=>y.time)}],yAxis:[{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-10,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"空调负荷",type:"line",smooth:!0,symbolSize:0,itemStyle:{color:"#5BFAF1"},lineStyle:{color:"#5BFAF1"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(91, 250, 241, 0.40)"},{offset:1,color:"rgba(91, 250, 241, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:v.map(y=>y.P)}]};g.setOption(m),window.addEventListener("resize",function(){g.resize()})},i=v=>{let p=document.getElementById("exhibitionLoad");p.removeAttribute("_echarts_instance_");let g;g=$n(p);const m={tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},grid:{top:"18%",left:"4%",right:"4%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",axisLine:{show:!0,lineStyle:{color:"#557775"}},axisLabel:{textStyle:{color:"#DDFFFD",margin:40}},axisTick:{show:!1},boundaryGap:!0,data:v.map(y=>y.time)}],yAxis:[{type:"value",name:"单位:kW",nameTextStyle:{color:"#DDFFFD",align:"right",padding:[0,-10,0,0]},splitNumber:5,splitLine:{show:!0,lineStyle:{type:"dashed",color:"rgba(255, 255, 255, 0.30)"}},axisLine:{show:!1},axisLabel:{textStyle:{color:"#DDFFFD"}},axisTick:{show:!1}}],series:[{name:"展陈负荷",type:"line",smooth:!0,symbol:"circle",symbolSize:0,itemStyle:{color:"rgba(1, 246, 139, 1)"},lineStyle:{color:"rgba(1, 246, 139, 1)"},areaStyle:{color:new kr(0,0,0,1,[{offset:0,color:"rgba(1, 246, 139, 0.7)"},{offset:1,color:"rgba(1, 246, 139, 0)"}],!1),shadowColor:"rgba(53,142,215, 0.9)",shadowBlur:20},data:v.map(y=>y.P)}]};g.setOption(m),window.addEventListener("resize",function(){g.resize()})},o=v=>{let p=0;v.forEach(x=>{p+=x.EH});let g=[],m=[];v.forEach(x=>{m.push(x.Ranking+" "+x.DeviceName),g.push(parseInt(x.EH))});let y=document.getElementById("ranking");y.removeAttribute("_echarts_instance_");let _;_=$n(y);let w={grid:{left:"5%",right:"5%",bottom:"-10%",top:"8%",containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"none"},formatter:function(x){return x[0].name+"<br/><span style='display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:rgba(36,207,233,0.9)'></span>"+x[0].seriesName+" : "+Number(x[0].value).toLocaleString()+"kWh<br/>"}},xAxis:{show:!1,type:"value",max:p},yAxis:[{type:"category",inverse:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,show:!0,textStyle:{color:"#fff",fontSize:"14"},formatter:function(x,S){return"{a|"+x.slice(0,4)+"}{b|"+x.slice(4)+"}"},rich:{a:{width:45,fontSize:"16",fontFamily:"title",backgroundColor:{image:t("../../assets/images/rank-bg.png")},b:{fontSize:"14"}}}},splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!1},data:m.slice(0,5)},{type:"category",inverse:!0,axisTick:"none",axisLine:"none",show:!0,axisLabel:{padding:[0,0,10,-10],verticalAlign:"bottom",inside:!0,textStyle:{},formatter:function(x){return"{a|"+x.toLocaleString()+"}{b|kWh}"},rich:{a:{fontSize:"20",color:"rgba(0, 255, 240, 1)",padding:[0,6,0,0],fontFamily:"D-DIN-Bold"},b:{color:"#fff",fontSize:"12"}}},data:g.slice(0,5)}],series:[{name:"用电量",type:"bar",zlevel:1,itemStyle:{color:new kr(0,0,1,0,[{offset:0,color:"rgba(29, 169, 153, 1)"},{offset:1,color:"rgba(223, 243, 240, 1)"}])},barWidth:8,data:g.slice(0,5)},{name:"背景",type:"bar",barWidth:10,barGap:"-115%",data:[p,p,p,p,p],itemStyle:{borderColor:"rgba(4, 24, 44, 1)",borderWidth:2,color:"rgba(5, 33, 31, 0.32)"}}]};_.setOption(w),window.addEventListener("resize",function(){_.resize()})},s=v=>{let p="kW";v[0].Amount>1e3?p="万kW":v[0].Amount>1e7&&(p="亿kW"),v[0].Amount>1e3?v[0].Amount=(v[0].Amount/1e4).toFixed(2):v[0].Amount>1e7&&(v[0].Amount=(v[0].Amount/1e8).toFixed(2));for(var g=v[0].list.map(A=>({name:A.type,value:A.P})),m=0,y=0;y<g.length;y++)m+=g[y].value;for(var _=[],w=["rgba(1, 246, 139, 1)","rgba(91, 250, 241,1)","rgba(255, 221, 0, 1)"],y=0;y<g.length;y++)console.log(g[y].value),_.push({value:g[y].value,name:g[y].name,itemStyle:{normal:{borderWidth:5,shadowBlur:20,borderRadius:10,borderColor:w[y],shadowColor:w[y]}}},{value:m*.04,name:"",itemStyle:{normal:{label:{show:!1},labelLine:{show:!1},color:"rgba(0, 0, 0, 0)",borderWidth:0}}});let x=document.getElementById("loadClassification");x.removeAttribute("_echarts_instance_");let S;S=$n(x);let T={graphic:{elements:[{type:"image",z:3,style:{image:jr.loadClassification,width:180,height:180},left:"center",top:"center"}]},color:w,title:[{text:v[0].Amount,x:"47%",y:"42%",textAlign:"center",textStyle:{fontFamily:"Verdana-Bold",fontSize:"24",fontWeight:"bold",color:"#FFF"}},{text:p,x:"58%",y:"45%",textAlign:"center",textStyle:{fontSize:"12",fontWeight:"100",color:"#FFF"}},{text:"总负荷",left:"49%",top:"55%",textAlign:"center",textStyle:{fontFamily:"MicrosoftYaHei",fontSize:"14",fontWeight:"100",color:"#fff"}}],tooltip:{show:!0},series:[{name:"",type:"pie",clockWise:!1,radius:[53,60],hoverAnimation:!1,itemStyle:{normal:{label:{show:!0,position:"outside",color:"#FFFFFF",fontSize:16,formatter:function(A){console.log(A,"xxxxxxxxxx"),A.percent;let C="kW";return A.name!==""?`{a${A.dataIndex/2}|`+A.value+"}{s0|"+C+`}
|
||
{s1|`+A.name+"}":""},padding:[60,-50],textStyle:{rich:{a0:{color:"rgba(1, 246, 139, 1)",padding:[0,0,10,0],fontSize:15},a1:{color:"rgba(91, 250, 241,1)",padding:[0,0,10,0],fontSize:15},a2:{color:"rgba(255, 221, 0, 1)",padding:[0,0,10,0],fontSize:15},s0:{color:"#fff",padding:[0,0,10,5],fontSize:12},s1:{color:"#fff",padding:[0,10,0,0],fontSize:12}}}},labelLine:{length:60,length2:70,show:!0,color:"#00ffff"}}},data:_}]};S.setOption(T),window.addEventListener("resize",function(){S.resize()})},l=()=>{Hbt().then(v=>{r(v.data.slice(-10))})},u=()=>{Gbt().then(v=>{n(v.data.slice(-10))})},c=()=>{Ubt().then(v=>{s(v.data)})},f=()=>{$bt().then(v=>{a(v.data.slice(-10))})},d=()=>{Wbt().then(v=>{i(v.data.slice(-10))})},h=()=>{Ybt().then(v=>{o(v.data)})};return xt(()=>{l(),u(),f(),d(),h(),c()}),Xl(()=>{}),(v,p)=>(N(),U("div",jbt,Xbt))}};const U1=e=>(jl("data-v-44cb99c7"),e=e(),Kl(),e),qbt={class:"container"},Qbt=U1(()=>V("div",{class:"bg-border"},null,-1)),Jbt=U1(()=>V("div",{class:"header"},null,-1)),ewt=U1(()=>V("div",{class:"left-mask"},null,-1)),twt=U1(()=>V("div",{class:"right-mask"},null,-1)),rwt=U1(()=>V("div",{class:"bottom-mask"},null,-1)),nwt={class:"date"},awt={class:"m10"},iwt={class:"m10"},owt={class:"menu"},swt=["onClick"],lwt={__name:"index",setup(e){const t=G(""),r=G(""),n=G(""),a=G(0),i=()=>{t.value=vt().format("YYYY年MM月DD日"),r.value=vt().format("dddd"),n.value=vt().format("HH:mm:ss")};i(),a.value=setInterval(()=>{i()},1e3);const o=G([{text:"总览",name:yr(DH),default:jr.overview,select:jr.overviewselect},{text:"用能监测",name:yr(Zbt),default:jr.energy,select:jr.energyselect},{text:"能效",name:yr(Zdt),default:jr.energyefficiency,select:jr.energyefficiencyselect},{text:"排水",name:yr(yht),default:jr.drainage,select:jr.drainageselect},{text:"空调",name:yr(Ovt),default:jr.airconditioning,select:jr.airconditioningselect},{text:"照明",name:yr(Vpt),default:jr.lighting,select:jr.lightingselect},{text:"碳排放",name:yr(dbt),default:jr.carbon,select:jr.carbonselect},{text:"显示屏",name:yr(zbt),default:jr.screen,select:jr.screenselect}]),s=G(0),l=G(""),u=(p,g)=>{f.value=p==null?void 0:p.name,s.value=g,p.text==="总览"||p.text==="用能监测"||p.text==="能效"||p.text==="碳排放"?l.value.contentWindow.unity3D(1):p.text==="排水"?l.value.contentWindow.unity3D(2):p.text==="空调"?l.value.contentWindow.unity3D(3):p.text==="照明"?l.value.contentWindow.unity3D(4):p.text=="显示屏"&&l.value.contentWindow.unity3D(9)},c=p=>{l.value.contentWindow.unity3D(p)},f=yr(DH),d=()=>{l.value.contentWindow.closeLight()},h=G("4");function v(p){console.log(p,"室外温度"),h.value=p}return xt(()=>{}),(p,g)=>(N(),U("div",qbt,[Qbt,V("iframe",{id:"iframe",ref_key:"dome",ref:l,width:"100%",height:"100%",src:"ChangDaobuild/index.html",frameborder:"0"},null,512),Jbt,ewt,twt,rwt,V("div",nwt,[V("p",null,[V("span",awt,me(t.value),1),V("span",iwt,me(r.value),1),V("span",null,me(n.value),1)]),V("p",null,[V("span",null,me(h.value)+"℃",1)])]),V("div",owt,[V("ul",null,[(N(!0),U(Be,null,ht(o.value,(m,y)=>(N(),U("li",{class:H("menu-icon"+y),style:Xe(s.value===y?"background-image:url("+m.select+")":"background-image:url("+m.default+")"),onClick:_=>u(m,y),key:"icon"+y},null,14,swt))),128))])]),(N(),he(Ft(f.value),{key:f.value,onGetHeart:v,onSendVal:c,onCloseBox:d,onCloseAir:g[0]||(g[0]=m=>l.value.contentWindow.closeStrategy())},null,32))]))}},uwt=al(lwt,[["__scopeId","data-v-44cb99c7"]]),cwt={__name:"App",setup(e){return(t,r)=>(N(),he(uwt))}};/*!
|
||
* vue-router v4.2.5
|
||
* (c) 2023 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const up=typeof window<"u";function fwt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const cn=Object.assign;function LD(e,t){const r={};for(const n in t){const a=t[n];r[n]=rl(a)?a.map(e):e(a)}return r}const h0=()=>{},rl=Array.isArray,dwt=/\/$/,hwt=e=>e.replace(dwt,"");function ID(e,t,r="/"){let n,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=mwt(n??t,r),{fullPath:n+(i&&"?")+i+o,path:n,query:a,hash:o}}function vwt(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function LW(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function pwt(e,t,r){const n=t.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&Dg(t.matched[n],r.matched[a])&&toe(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Dg(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function toe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!gwt(e[r],t[r]))return!1;return!0}function gwt(e,t){return rl(e)?IW(e,t):rl(t)?IW(t,e):e===t}function IW(e,t){return rl(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function mwt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let i=r.length-1,o,s;for(o=0;o<n.length;o++)if(s=n[o],s!==".")if(s==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var G_;(function(e){e.pop="pop",e.push="push"})(G_||(G_={}));var v0;(function(e){e.back="back",e.forward="forward",e.unknown=""})(v0||(v0={}));function ywt(e){if(!e)if(up){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hwt(e)}const _wt=/^[^#]+#/;function bwt(e,t){return e.replace(_wt,"#")+t}function wwt(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const jT=()=>({left:window.pageXOffset,top:window.pageYOffset});function Swt(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;t=wwt(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function RW(e,t){return(history.state?history.state.position-t:-1)+e}const dR=new Map;function xwt(e,t){dR.set(e,t)}function Awt(e){const t=dR.get(e);return dR.delete(e),t}let Twt=()=>location.protocol+"//"+location.host;function roe(e,t){const{pathname:r,search:n,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),LW(l,"")}return LW(r,e)+n+a}function Cwt(e,t,r,n){let a=[],i=[],o=null;const s=({state:d})=>{const h=roe(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);a.forEach(m=>{m(r.value,v,{delta:g,type:G_.pop,direction:g?g>0?v0.forward:v0.back:v0.unknown})})};function l(){o=r.value}function u(d){a.push(d);const h=()=>{const v=a.indexOf(d);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(cn({},d.state,{scroll:jT()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function OW(e,t,r,n=!1,a=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:a?jT():null}}function Ewt(e){const{history:t,location:r}=window,n={value:roe(e,r)},a={value:t.state};a.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:Twt()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(h){console.error(h),r[c?"replace":"assign"](d)}}function o(l,u){const c=cn({},t.state,OW(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),n.value=l}function s(l,u){const c=cn({},a.value,t.state,{forward:l,scroll:jT()});i(c.current,c,!0);const f=cn({},OW(n.value,l,null),{position:c.position+1},u);i(l,f,!1),n.value=l}return{location:n,state:a,push:s,replace:o}}function Mwt(e){e=ywt(e);const t=Ewt(e),r=Cwt(e,t.state,t.location,t.replace);function n(i,o=!0){o||r.pauseListeners(),history.go(i)}const a=cn({location:"",base:e,go:n,createHref:bwt.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function Dwt(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Mwt(e)}function Pwt(e){return typeof e=="string"||e&&typeof e=="object"}function noe(e){return typeof e=="string"||typeof e=="symbol"}const Dc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},aoe=Symbol("");var kW;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(kW||(kW={}));function Pg(e,t){return cn(new Error,{type:e,[aoe]:!0},t)}function fu(e,t){return e instanceof Error&&aoe in e&&(t==null||!!(e.type&t))}const NW="[^/]+?",Lwt={sensitive:!1,strict:!1,start:!0,end:!0},Iwt=/[.+*?^${}()[\]/\\]/g;function Rwt(e,t){const r=cn({},Lwt,t),n=[];let a=r.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(a+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(r.sensitive?.25:0);if(d.type===0)f||(a+="/"),a+=d.value.replace(Iwt,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;i.push({name:v,repeatable:p,optional:g});const y=m||NW;if(y!==NW){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+w.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),a+=_,h+=20,g&&(h+=-8),p&&(h+=-20),y===".*"&&(h+=-50)}c.push(h)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const o=new RegExp(a,r.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=i[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(rl(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=rl(m)?m.join("/"):m;if(!y)if(g)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=y}}return c||"/"}return{re:o,score:n,keys:i,parse:s,stringify:l}}function Owt(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function kwt(e,t){let r=0;const n=e.score,a=t.score;for(;r<n.length&&r<a.length;){const i=Owt(n[r],a[r]);if(i)return i;r++}if(Math.abs(a.length-n.length)===1){if(BW(n))return 1;if(BW(a))return-1}return a.length-n.length}function BW(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nwt={type:0,value:""},Bwt=/[a-zA-Z0-9_]/;function Fwt(e){if(!e)return[[]];if(e==="/")return[[Nwt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(r===0?i.push({type:0,value:u}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),r=1):d();break;case 4:d(),r=n;break;case 1:l==="("?r=2:Bwt.test(l)?d():(f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),a}function Vwt(e,t,r){const n=Rwt(Fwt(e.path),r),a=cn(n,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function zwt(e,t){const r=[],n=new Map;t=zW({strict:!1,end:!0,sensitive:!1},t);function a(c){return n.get(c)}function i(c,f,d){const h=!d,v=Hwt(c);v.aliasOf=d&&d.record;const p=zW(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of _)g.push(cn({},v,{components:d?d.record.components:v.components,path:w,aliasOf:d?d.record:v}))}let m,y;for(const _ of g){const{path:w}=_;if(f&&w[0]!=="/"){const x=f.record.path,S=x[x.length-1]==="/"?"":"/";_.path=f.record.path+(w&&S+w)}if(m=Vwt(_,f,p),d?d.alias.push(m):(y=y||m,y!==m&&y.alias.push(m),h&&c.name&&!VW(m)&&o(c.name)),v.children){const x=v.children;for(let S=0;S<x.length;S++)i(x[S],m,d&&d.children[S])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return y?()=>{o(y)}:h0}function o(c){if(noe(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){let f=0;for(;f<r.length&&kwt(c,r[f])>=0&&(c.record.path!==r[f].record.path||!ioe(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!VW(c)&&n.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=n.get(c.name),!d)throw Pg(1,{location:c});p=d.record.name,h=cn(FW(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&FW(c.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in c)v=c.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?n.get(f.name):r.find(y=>y.re.test(f.path)),!d)throw Pg(1,{location:c,currentLocation:f});p=d.record.name,h=cn({},f.params,c.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:Uwt(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function FW(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Hwt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Gwt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Gwt(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function VW(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Uwt(e){return e.reduce((t,r)=>cn(t,r.meta),{})}function zW(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function ioe(e,t){return t.children.some(r=>r===e||ioe(e,r))}const ooe=/#/g,$wt=/&/g,Wwt=/\//g,Ywt=/=/g,jwt=/\?/g,soe=/\+/g,Kwt=/%5B/g,Xwt=/%5D/g,loe=/%5E/g,Zwt=/%60/g,uoe=/%7B/g,qwt=/%7C/g,coe=/%7D/g,Qwt=/%20/g;function M4(e){return encodeURI(""+e).replace(qwt,"|").replace(Kwt,"[").replace(Xwt,"]")}function Jwt(e){return M4(e).replace(uoe,"{").replace(coe,"}").replace(loe,"^")}function hR(e){return M4(e).replace(soe,"%2B").replace(Qwt,"+").replace(ooe,"%23").replace($wt,"%26").replace(Zwt,"`").replace(uoe,"{").replace(coe,"}").replace(loe,"^")}function eSt(e){return hR(e).replace(Ywt,"%3D")}function tSt(e){return M4(e).replace(ooe,"%23").replace(jwt,"%3F")}function rSt(e){return e==null?"":tSt(e).replace(Wwt,"%2F")}function N2(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function nSt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const i=n[a].replace(soe," "),o=i.indexOf("="),s=N2(o<0?i:i.slice(0,o)),l=o<0?null:N2(i.slice(o+1));if(s in t){let u=t[s];rl(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function HW(e){let t="";for(let r in e){const n=e[r];if(r=eSt(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(rl(n)?n.map(i=>i&&hR(i)):[n&&hR(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function aSt(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=rl(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}const iSt=Symbol(""),GW=Symbol(""),D4=Symbol(""),foe=Symbol(""),vR=Symbol("");function fy(){let e=[];function t(n){return e.push(n),()=>{const a=e.indexOf(n);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Vc(e,t,r,n,a){const i=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Pg(4,{from:r,to:t})):f instanceof Error?s(f):Pwt(f)?s(Pg(2,{from:t,to:f})):(i&&n.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(n&&n.instances[a],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function RD(e,t,r,n){const a=[];for(const i of e)for(const o in i.components){let s=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(oSt(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Vc(u,r,n,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=fwt(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Vc(d,r,n,i,o)()}))}}return a}function oSt(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function UW(e){const t=Ye(D4),r=Ye(foe),n=F(()=>t.resolve(b(e.to))),a=F(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(Dg.bind(null,c));if(d>-1)return d;const h=$W(l[u-2]);return u>1&&$W(c)===h&&f[f.length-1].path!==h?f.findIndex(Dg.bind(null,l[u-2])):d}),i=F(()=>a.value>-1&&cSt(r.params,n.value.params)),o=F(()=>a.value>-1&&a.value===r.matched.length-1&&toe(r.params,n.value.params));function s(l={}){return uSt(l)?t[b(e.replace)?"replace":"push"](b(e.to)).catch(h0):Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:i,isExactActive:o,navigate:s}}const sSt=te({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:UW,setup(e,{slots:t}){const r=Ar(UW(e)),{options:n}=Ye(D4),a=F(()=>({[WW(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[WW(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:et("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}}),lSt=sSt;function uSt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function cSt(e,t){for(const r in t){const n=t[r],a=e[r];if(typeof n=="string"){if(n!==a)return!1}else if(!rl(a)||a.length!==n.length||n.some((i,o)=>i!==a[o]))return!1}return!0}function $W(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const WW=(e,t,r)=>e??t??r,fSt=te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ye(vR),a=F(()=>e.route||n.value),i=Ye(GW,0),o=F(()=>{let u=b(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=F(()=>a.value.matched[o.value]);Wt(GW,F(()=>o.value+1)),Wt(iSt,s),Wt(vR,a);const l=G();return Ae(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Dg(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return YW(r.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=et(d,cn({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return YW(r.default,{Component:g,route:u})||g}}});function YW(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const dSt=fSt;function hSt(e){const t=zwt(e.routes,e),r=e.parseQuery||nSt,n=e.stringifyQuery||HW,a=e.history,i=fy(),o=fy(),s=fy(),l=yr(Dc);let u=Dc;up&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=LD.bind(null,K=>""+K),f=LD.bind(null,rSt),d=LD.bind(null,N2);function h(K,Z){let ne,re;return noe(K)?(ne=t.getRecordMatcher(K),re=Z):re=K,t.addRoute(re,ne)}function v(K){const Z=t.getRecordMatcher(K);Z&&t.removeRoute(Z)}function p(){return t.getRoutes().map(K=>K.record)}function g(K){return!!t.getRecordMatcher(K)}function m(K,Z){if(Z=cn({},Z||l.value),typeof K=="string"){const oe=ID(r,K,Z.path),ve=t.resolve({path:oe.path},Z),_e=a.createHref(oe.fullPath);return cn(oe,ve,{params:d(ve.params),hash:N2(oe.hash),redirectedFrom:void 0,href:_e})}let ne;if("path"in K)ne=cn({},K,{path:ID(r,K.path,Z.path).path});else{const oe=cn({},K.params);for(const ve in oe)oe[ve]==null&&delete oe[ve];ne=cn({},K,{params:f(oe)}),Z.params=f(Z.params)}const re=t.resolve(ne,Z),ie=K.hash||"";re.params=c(d(re.params));const Y=vwt(n,cn({},K,{hash:Jwt(ie),path:re.path})),q=a.createHref(Y);return cn({fullPath:Y,hash:ie,query:n===HW?aSt(K.query):K.query||{}},re,{redirectedFrom:void 0,href:q})}function y(K){return typeof K=="string"?ID(r,K,l.value.path):cn({},K)}function _(K,Z){if(u!==K)return Pg(8,{from:Z,to:K})}function w(K){return T(K)}function x(K){return w(cn(y(K),{replace:!0}))}function S(K){const Z=K.matched[K.matched.length-1];if(Z&&Z.redirect){const{redirect:ne}=Z;let re=typeof ne=="function"?ne(K):ne;return typeof re=="string"&&(re=re.includes("?")||re.includes("#")?re=y(re):{path:re},re.params={}),cn({query:K.query,hash:K.hash,params:"path"in re?{}:K.params},re)}}function T(K,Z){const ne=u=m(K),re=l.value,ie=K.state,Y=K.force,q=K.replace===!0,oe=S(ne);if(oe)return T(cn(y(oe),{state:typeof oe=="object"?cn({},ie,oe.state):ie,force:Y,replace:q}),Z||ne);const ve=ne;ve.redirectedFrom=Z;let _e;return!Y&&pwt(n,re,ne)&&(_e=Pg(16,{to:ve,from:re}),$(re,re,!0,!1)),(_e?Promise.resolve(_e):M(ve,re)).catch(ge=>fu(ge)?fu(ge,2)?ge:z(ge):B(ge,ve,re)).then(ge=>{if(ge){if(fu(ge,2))return T(cn({replace:q},y(ge.to),{state:typeof ge.to=="object"?cn({},ie,ge.to.state):ie,force:Y}),Z||ve)}else ge=D(ve,re,!0,q,ie);return E(ve,re,ge),ge})}function A(K,Z){const ne=_(K,Z);return ne?Promise.reject(ne):Promise.resolve()}function C(K){const Z=Q.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(K):K()}function M(K,Z){let ne;const[re,ie,Y]=vSt(K,Z);ne=RD(re.reverse(),"beforeRouteLeave",K,Z);for(const oe of re)oe.leaveGuards.forEach(ve=>{ne.push(Vc(ve,K,Z))});const q=A.bind(null,K,Z);return ne.push(q),ee(ne).then(()=>{ne=[];for(const oe of i.list())ne.push(Vc(oe,K,Z));return ne.push(q),ee(ne)}).then(()=>{ne=RD(ie,"beforeRouteUpdate",K,Z);for(const oe of ie)oe.updateGuards.forEach(ve=>{ne.push(Vc(ve,K,Z))});return ne.push(q),ee(ne)}).then(()=>{ne=[];for(const oe of Y)if(oe.beforeEnter)if(rl(oe.beforeEnter))for(const ve of oe.beforeEnter)ne.push(Vc(ve,K,Z));else ne.push(Vc(oe.beforeEnter,K,Z));return ne.push(q),ee(ne)}).then(()=>(K.matched.forEach(oe=>oe.enterCallbacks={}),ne=RD(Y,"beforeRouteEnter",K,Z),ne.push(q),ee(ne))).then(()=>{ne=[];for(const oe of o.list())ne.push(Vc(oe,K,Z));return ne.push(q),ee(ne)}).catch(oe=>fu(oe,8)?oe:Promise.reject(oe))}function E(K,Z,ne){s.list().forEach(re=>C(()=>re(K,Z,ne)))}function D(K,Z,ne,re,ie){const Y=_(K,Z);if(Y)return Y;const q=Z===Dc,oe=up?history.state:{};ne&&(re||q?a.replace(K.fullPath,cn({scroll:q&&oe&&oe.scroll},ie)):a.push(K.fullPath,ie)),l.value=K,$(K,Z,ne,q),z()}let P;function L(){P||(P=a.listen((K,Z,ne)=>{if(!se.listening)return;const re=m(K),ie=S(re);if(ie){T(cn(ie,{replace:!0}),re).catch(h0);return}u=re;const Y=l.value;up&&xwt(RW(Y.fullPath,ne.delta),jT()),M(re,Y).catch(q=>fu(q,12)?q:fu(q,2)?(T(q.to,re).then(oe=>{fu(oe,20)&&!ne.delta&&ne.type===G_.pop&&a.go(-1,!1)}).catch(h0),Promise.reject()):(ne.delta&&a.go(-ne.delta,!1),B(q,re,Y))).then(q=>{q=q||D(re,Y,!1),q&&(ne.delta&&!fu(q,8)?a.go(-ne.delta,!1):ne.type===G_.pop&&fu(q,20)&&a.go(-1,!1)),E(re,Y,q)}).catch(h0)}))}let I=fy(),O=fy(),R;function B(K,Z,ne){z(K);const re=O.list();return re.length?re.forEach(ie=>ie(K,Z,ne)):console.error(K),Promise.reject(K)}function k(){return R&&l.value!==Dc?Promise.resolve():new Promise((K,Z)=>{I.add([K,Z])})}function z(K){return R||(R=!K,L(),I.list().forEach(([Z,ne])=>K?ne(K):Z()),I.reset()),K}function $(K,Z,ne,re){const{scrollBehavior:ie}=e;if(!up||!ie)return Promise.resolve();const Y=!ne&&Awt(RW(K.fullPath,0))||(re||!ne)&&history.state&&history.state.scroll||null;return qe().then(()=>ie(K,Z,Y)).then(q=>q&&Swt(q)).catch(q=>B(q,K,Z))}const j=K=>a.go(K);let X;const Q=new Set,se={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:w,replace:x,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:O.add,isReady:k,install(K){const Z=this;K.component("RouterLink",lSt),K.component("RouterView",dSt),K.config.globalProperties.$router=Z,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>b(l)}),up&&!X&&l.value===Dc&&(X=!0,w(a.location).catch(ie=>{}));const ne={};for(const ie in Dc)Object.defineProperty(ne,ie,{get:()=>l.value[ie],enumerable:!0});K.provide(D4,Z),K.provide(foe,xR(ne)),K.provide(vR,l);const re=K.unmount;Q.add(K),K.unmount=function(){Q.delete(K),Q.size<1&&(u=Dc,P&&P(),P=null,l.value=Dc,X=!1,R=!1),re()}}};function ee(K){return K.reduce((Z,ne)=>Z.then(()=>C(ne)),Promise.resolve())}return se}function vSt(e,t){const r=[],n=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const s=t.matched[o];s&&(e.matched.find(u=>Dg(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Dg(u,l))||a.push(l))}return[r,n,a]}const pSt=[],gSt=hSt({history:Dwt(),routes:pSt});/*! Element Plus v2.4.3 */var mSt={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:"取消"}}};vt.locale("zh-cn",{weekdays:"周日_周一_周二_周三_周四_周五_周六".split("_")});const doe=n7(cwt);doe.config.globalProperties.$echarts=BNe;doe.use(gSt).use(vdt,{locale:mSt}).mount("#app");
|