From d6d1221c2ffbaea5d833cff891572da0aada427c Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 5 Oct 2024 05:44:19 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=B0=E5=A2=9E=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=89=88=E6=9C=AC=EF=BC=8C=E5=A4=84=E7=90=86=E5=99=A8?= =?UTF-8?q?=E6=9E=B6=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{index-BRH3_vwJ.js => index-CfoVJnnc.js} | 24 +++++++++---------- ...{index-CXDsYpdO.css => index-DA_E7Rpb.css} | 2 +- api/frontend/web/index.html | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) rename api/frontend/web/assets/{index-BRH3_vwJ.js => index-CfoVJnnc.js} (98%) rename api/frontend/web/assets/{index-CXDsYpdO.css => index-DA_E7Rpb.css} (65%) diff --git a/api/frontend/web/assets/index-BRH3_vwJ.js b/api/frontend/web/assets/index-CfoVJnnc.js similarity index 98% rename from api/frontend/web/assets/index-BRH3_vwJ.js rename to api/frontend/web/assets/index-CfoVJnnc.js index 33d2e3e..e56c313 100644 --- a/api/frontend/web/assets/index-BRH3_vwJ.js +++ b/api/frontend/web/assets/index-CfoVJnnc.js @@ -2,7 +2,7 @@ * @vue/shared v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function uB(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const he={},ms=[],sa=()=>{},tk=()=>!1,Bd=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),fB=r=>r.startsWith("onUpdate:"),Ze=Object.assign,cB=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},ek=Object.prototype.hasOwnProperty,re=(r,t)=>ek.call(r,t),Ot=Array.isArray,ws=r=>_d(r)==="[object Map]",JD=r=>_d(r)==="[object Set]",kt=r=>typeof r=="function",De=r=>typeof r=="string",ji=r=>typeof r=="symbol",ge=r=>r!==null&&typeof r=="object",qD=r=>(ge(r)||kt(r))&&kt(r.then)&&kt(r.catch),jD=Object.prototype.toString,_d=r=>jD.call(r),rk=r=>_d(r).slice(8,-1),tQ=r=>_d(r)==="[object Object]",hB=r=>De(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,vu=uB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cd=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},nk=/-(\w)/g,pn=Cd(r=>r.replace(nk,(t,e)=>e?e.toUpperCase():"")),ak=/\B([A-Z])/g,wo=Cd(r=>r.replace(ak,"-$1").toLowerCase()),Sd=Cd(r=>r.charAt(0).toUpperCase()+r.slice(1)),Dp=Cd(r=>r?`on${Sd(r)}`:""),Gi=(r,t)=>!Object.is(r,t),Qp=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},ik=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let qC;const rQ=()=>qC||(qC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ga(r){if(Ot(r)){const t={};for(let e=0;e{if(e){const n=e.split(ok);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function vB(r){let t="";if(De(r))t=r;else if(Ot(r))for(let e=0;e!!(r&&r.__v_isRef===!0),ze=r=>De(r)?r:r==null?"":Ot(r)||ge(r)&&(r.toString===jD||!kt(r.toString))?aQ(r)?ze(r.value):JSON.stringify(r,iQ,2):String(r),iQ=(r,t)=>aQ(t)?iQ(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[Lp(n,i)+" =>"]=a,e),{})}:JD(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Lp(e))}:ji(t)?Lp(t):ge(t)&&!Ot(t)&&!tQ(t)?String(t):t,Lp=(r,t="")=>{var e;return ji(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** +**//*! #__NO_SIDE_EFFECTS__ */function uB(r){const t=Object.create(null);for(const e of r.split(","))t[e]=1;return e=>e in t}const he={},ms=[],sa=()=>{},tk=()=>!1,Bd=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),fB=r=>r.startsWith("onUpdate:"),Ze=Object.assign,cB=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},ek=Object.prototype.hasOwnProperty,re=(r,t)=>ek.call(r,t),Ot=Array.isArray,ws=r=>_d(r)==="[object Map]",JD=r=>_d(r)==="[object Set]",kt=r=>typeof r=="function",De=r=>typeof r=="string",ji=r=>typeof r=="symbol",ge=r=>r!==null&&typeof r=="object",qD=r=>(ge(r)||kt(r))&&kt(r.then)&&kt(r.catch),jD=Object.prototype.toString,_d=r=>jD.call(r),rk=r=>_d(r).slice(8,-1),tQ=r=>_d(r)==="[object Object]",hB=r=>De(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,vu=uB(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cd=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},nk=/-(\w)/g,pn=Cd(r=>r.replace(nk,(t,e)=>e?e.toUpperCase():"")),ak=/\B([A-Z])/g,wo=Cd(r=>r.replace(ak,"-$1").toLowerCase()),Sd=Cd(r=>r.charAt(0).toUpperCase()+r.slice(1)),Dp=Cd(r=>r?`on${Sd(r)}`:""),Gi=(r,t)=>!Object.is(r,t),Qp=(r,...t)=>{for(let e=0;e{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,writable:n,value:e})},ik=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let qC;const rQ=()=>qC||(qC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ga(r){if(Ot(r)){const t={};for(let e=0;e{if(e){const n=e.split(ok);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function vB(r){let t="";if(De(r))t=r;else if(Ot(r))for(let e=0;e!!(r&&r.__v_isRef===!0),Le=r=>De(r)?r:r==null?"":Ot(r)||ge(r)&&(r.toString===jD||!kt(r.toString))?aQ(r)?Le(r.value):JSON.stringify(r,iQ,2):String(r),iQ=(r,t)=>aQ(t)?iQ(r,t.value):ws(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[Lp(n,i)+" =>"]=a,e),{})}:JD(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Lp(e))}:ji(t)?Lp(t):ge(t)&&!Ot(t)&&!tQ(t)?String(t):t,Lp=(r,t="")=>{var e;return ji(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/** * @vue/reactivity v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -14,7 +14,7 @@ * @vue/runtime-dom v3.5.10 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Xm;const y1=typeof window<"u"&&window.trustedTypes;if(y1)try{Xm=y1.createPolicy("vue",{createHTML:r=>r})}catch{}const eL=Xm?r=>Xm.createHTML(r):r=>r,jN="http://www.w3.org/2000/svg",t4="http://www.w3.org/1998/Math/MathML",Ea=typeof document<"u"?document:null,m1=Ea&&Ea.createElement("template"),e4={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const a=t==="svg"?Ea.createElementNS(jN,r):t==="mathml"?Ea.createElementNS(t4,r):e?Ea.createElement(r,{is:e}):Ea.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Ea.createTextNode(r),createComment:r=>Ea.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Ea.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const A=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{m1.innerHTML=eL(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const o=m1.content;if(n==="svg"||n==="mathml"){const s=o.firstChild;for(;s.firstChild;)o.appendChild(s.firstChild);o.removeChild(s)}t.insertBefore(o,e)}return[A?A.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},r4=Symbol("_vtc");function n4(r,t,e){const n=r[r4];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const w1=Symbol("_vod"),a4=Symbol("_vsh"),i4=Symbol(""),A4=/(^|;)\s*display\s*:/;function o4(r,t,e){const n=r.style,a=De(e);let i=!1;if(e&&!a){if(t)if(De(t))for(const A of t.split(";")){const o=A.slice(0,A.indexOf(":")).trim();e[o]==null&&Uh(n,o,"")}else for(const A in t)e[A]==null&&Uh(n,A,"");for(const A in e)A==="display"&&(i=!0),Uh(n,A,e[A])}else if(a){if(t!==e){const A=n[i4];A&&(e+=";"+A),n.cssText=e,i=A4.test(e)}}else t&&r.removeAttribute("style");w1 in r&&(r[w1]=i?n.display:"",r[a4]&&(n.display="none"))}const B1=/\s*!important$/;function Uh(r,t,e){if(Ot(e))e.forEach(n=>Uh(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=s4(r,t);B1.test(e)?r.setProperty(wo(n),e.replace(B1,""),"important"):r[n]=e}}const _1=["Webkit","Moz","ms"],Np={};function s4(r,t){const e=Np[t];if(e)return e;let n=pn(t);if(n!=="filter"&&n in r)return Np[t]=n;n=Sd(n);for(let a=0;a<_1.length;a++){const i=_1[a]+n;if(i in r)return Np[t]=i}return t}const C1="http://www.w3.org/1999/xlink";function S1(r,t,e,n,a,i=fk(t)){n&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(C1,t.slice(6,t.length)):r.setAttributeNS(C1,t,e):e==null||i&&!nQ(e)?r.removeAttribute(t):r.setAttribute(t,i?"":ji(e)?String(e):e)}function x1(r,t,e,n){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?eL(e):e);return}const a=r.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const A=a==="OPTION"?r.getAttribute("value")||"":r.value,o=e==null?r.type==="checkbox"?"on":"":String(e);(A!==o||!("_value"in r))&&(r.value=o),e==null&&r.removeAttribute(t),r._value=e;return}let i=!1;if(e===""||e==null){const A=typeof r[t];A==="boolean"?e=nQ(e):e==null&&A==="string"?(e="",i=!0):A==="number"&&(e=0,i=!0)}try{r[t]=e}catch{}i&&r.removeAttribute(t)}function l4(r,t,e,n){r.addEventListener(t,e,n)}function u4(r,t,e,n){r.removeEventListener(t,e,n)}const b1=Symbol("_vei");function f4(r,t,e,n,a=null){const i=r[b1]||(r[b1]={}),A=i[t];if(n&&A)A.value=n;else{const[o,s]=c4(t);if(n){const l=i[t]=d4(n,a);l4(r,o,l,s)}else A&&(u4(r,o,A,s),i[t]=void 0)}}const T1=/(?:Once|Passive|Capture)$/;function c4(r){let t;if(T1.test(r)){t={};let n;for(;n=r.match(T1);)r=r.slice(0,r.length-n[0].length),t[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):wo(r.slice(2)),t]}let Vp=0;const h4=Promise.resolve(),v4=()=>Vp||(h4.then(()=>Vp=0),Vp=Date.now());function d4(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ca(p4(n,e.value),t,5,[n])};return e.value=r,e.attached=v4(),e}function p4(r,t){if(Ot(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const I1=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,g4=(r,t,e,n,a,i)=>{const A=a==="svg";t==="class"?n4(r,n,A):t==="style"?o4(r,e,n):Bd(t)?fB(t)||f4(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):y4(r,t,n,A))?(x1(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&S1(r,t,n,A,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!De(n))?x1(r,pn(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),S1(r,t,n,A))};function y4(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&I1(t)&&kt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return I1(t)&&De(e)?!1:t in r}const m4=Ze({patchProp:g4},e4);let F1;function w4(){return F1||(F1=SN(m4))}const B4=(...r)=>{const t=w4().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=C4(n);if(!a)return;const i=t._component;!kt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const A=e(a,!1,_4(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),A},t};function _4(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function C4(r){return De(r)?document.querySelector(r):r}const S4=Bo({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=oN("router-view");return Vr(),na(Fr,null,[n[4]||(n[4]=Tt("h1",{style:{"text-align":"center"}},"Server Status",-1)),yr(a),Tt("footer",null,[n[0]||(n[0]=Tt("a",{href:"https://github.com/snowykami/server-status-server"},"Server Status Dashboard",-1)),n[1]||(n[1]=Tt("br",null,null,-1)),vv(" © Copyright 2024-"+ze(la(t))+" ",1),n[2]||(n[2]=Tt("a",{href:"https://sfkm.me",target:"_blank"},"Snowykami",-1)),n[3]||(n[3]=vv(" All Rights Reserved "))])],64)}}}),Ws=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},x4=Ws(S4,[["__scopeId","data-v-ffc01d8f"]]);/*! +**/let Xm;const y1=typeof window<"u"&&window.trustedTypes;if(y1)try{Xm=y1.createPolicy("vue",{createHTML:r=>r})}catch{}const eL=Xm?r=>Xm.createHTML(r):r=>r,jN="http://www.w3.org/2000/svg",t4="http://www.w3.org/1998/Math/MathML",Ea=typeof document<"u"?document:null,m1=Ea&&Ea.createElement("template"),e4={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const a=t==="svg"?Ea.createElementNS(jN,r):t==="mathml"?Ea.createElementNS(t4,r):e?Ea.createElement(r,{is:e}):Ea.createElement(r);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Ea.createTextNode(r),createComment:r=>Ea.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Ea.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const A=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{m1.innerHTML=eL(n==="svg"?`${r}`:n==="mathml"?`${r}`:r);const o=m1.content;if(n==="svg"||n==="mathml"){const s=o.firstChild;for(;s.firstChild;)o.appendChild(s.firstChild);o.removeChild(s)}t.insertBefore(o,e)}return[A?A.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},r4=Symbol("_vtc");function n4(r,t,e){const n=r[r4];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const w1=Symbol("_vod"),a4=Symbol("_vsh"),i4=Symbol(""),A4=/(^|;)\s*display\s*:/;function o4(r,t,e){const n=r.style,a=De(e);let i=!1;if(e&&!a){if(t)if(De(t))for(const A of t.split(";")){const o=A.slice(0,A.indexOf(":")).trim();e[o]==null&&Uh(n,o,"")}else for(const A in t)e[A]==null&&Uh(n,A,"");for(const A in e)A==="display"&&(i=!0),Uh(n,A,e[A])}else if(a){if(t!==e){const A=n[i4];A&&(e+=";"+A),n.cssText=e,i=A4.test(e)}}else t&&r.removeAttribute("style");w1 in r&&(r[w1]=i?n.display:"",r[a4]&&(n.display="none"))}const B1=/\s*!important$/;function Uh(r,t,e){if(Ot(e))e.forEach(n=>Uh(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=s4(r,t);B1.test(e)?r.setProperty(wo(n),e.replace(B1,""),"important"):r[n]=e}}const _1=["Webkit","Moz","ms"],Np={};function s4(r,t){const e=Np[t];if(e)return e;let n=pn(t);if(n!=="filter"&&n in r)return Np[t]=n;n=Sd(n);for(let a=0;a<_1.length;a++){const i=_1[a]+n;if(i in r)return Np[t]=i}return t}const C1="http://www.w3.org/1999/xlink";function S1(r,t,e,n,a,i=fk(t)){n&&t.startsWith("xlink:")?e==null?r.removeAttributeNS(C1,t.slice(6,t.length)):r.setAttributeNS(C1,t,e):e==null||i&&!nQ(e)?r.removeAttribute(t):r.setAttribute(t,i?"":ji(e)?String(e):e)}function x1(r,t,e,n){if(t==="innerHTML"||t==="textContent"){e!=null&&(r[t]=t==="innerHTML"?eL(e):e);return}const a=r.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const A=a==="OPTION"?r.getAttribute("value")||"":r.value,o=e==null?r.type==="checkbox"?"on":"":String(e);(A!==o||!("_value"in r))&&(r.value=o),e==null&&r.removeAttribute(t),r._value=e;return}let i=!1;if(e===""||e==null){const A=typeof r[t];A==="boolean"?e=nQ(e):e==null&&A==="string"?(e="",i=!0):A==="number"&&(e=0,i=!0)}try{r[t]=e}catch{}i&&r.removeAttribute(t)}function l4(r,t,e,n){r.addEventListener(t,e,n)}function u4(r,t,e,n){r.removeEventListener(t,e,n)}const b1=Symbol("_vei");function f4(r,t,e,n,a=null){const i=r[b1]||(r[b1]={}),A=i[t];if(n&&A)A.value=n;else{const[o,s]=c4(t);if(n){const l=i[t]=d4(n,a);l4(r,o,l,s)}else A&&(u4(r,o,A,s),i[t]=void 0)}}const T1=/(?:Once|Passive|Capture)$/;function c4(r){let t;if(T1.test(r)){t={};let n;for(;n=r.match(T1);)r=r.slice(0,r.length-n[0].length),t[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):wo(r.slice(2)),t]}let Vp=0;const h4=Promise.resolve(),v4=()=>Vp||(h4.then(()=>Vp=0),Vp=Date.now());function d4(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ca(p4(n,e.value),t,5,[n])};return e.value=r,e.attached=v4(),e}function p4(r,t){if(Ot(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const I1=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,g4=(r,t,e,n,a,i)=>{const A=a==="svg";t==="class"?n4(r,n,A):t==="style"?o4(r,e,n):Bd(t)?fB(t)||f4(r,t,e,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):y4(r,t,n,A))?(x1(r,t,n),!r.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&S1(r,t,n,A,i,t!=="value")):r._isVueCE&&(/[A-Z]/.test(t)||!De(n))?x1(r,pn(t),n):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),S1(r,t,n,A))};function y4(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&I1(t)&&kt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return I1(t)&&De(e)?!1:t in r}const m4=Ze({patchProp:g4},e4);let F1;function w4(){return F1||(F1=SN(m4))}const B4=(...r)=>{const t=w4().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=C4(n);if(!a)return;const i=t._component;!kt(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const A=e(a,!1,_4(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),A},t};function _4(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function C4(r){return De(r)?document.querySelector(r):r}const S4=Bo({__name:"App",setup(r){console.log("App.vue");const t=new Date().getFullYear();return(e,n)=>{const a=oN("router-view");return Vr(),na(Fr,null,[n[4]||(n[4]=Tt("h1",{style:{"text-align":"center"}},"Server Status",-1)),yr(a),Tt("footer",null,[n[0]||(n[0]=Tt("a",{href:"https://github.com/snowykami/server-status-server"},"Server Status Dashboard",-1)),n[1]||(n[1]=Tt("br",null,null,-1)),vv(" © Copyright 2024-"+Le(la(t))+" ",1),n[2]||(n[2]=Tt("a",{href:"https://sfkm.me",target:"_blank"},"Snowykami",-1)),n[3]||(n[3]=vv(" All Rights Reserved "))])],64)}}}),Ws=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},x4=Ws(S4,[["__scopeId","data-v-ffc01d8f"]]);/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT @@ -31,7 +31,7 @@ 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 Jm=function(r,t){return Jm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Jm(r,t)};function H(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jm(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var QV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),LV=function(){function r(){this.browser=new QV,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 r}(),Ut=new LV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ut.wxa=!0,Ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ut.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ut.node=!0,Ut.svgSupported=!0):MV(navigator.userAgent,Ut);function MV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),A=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),A&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var o=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in o||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var PB=12,dL="sans-serif",Ki=PB+"px "+dL,UV=20,PV=100,RV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function HV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)o=A*e.length;else for(var s=0;s>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",a[l]+":0",n[1-s]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(A),e.push(A)}return e}function iG(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,A=[],o=[],s=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),f=2*l,c=u.left,h=u.top;A.push(c,h),s=s&&i&&c===i[f]&&h===i[f+1],o.push(r[l].offsetLeft,r[l].offsetTop)}return s&&a?a:(t.srcCoords=A,t[n]=e?J1(o,A):J1(A,o))}function _L(r){return r.nodeName.toUpperCase()==="CANVAS"}var AG=/([&<>"'])/g,oG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Er(r){return r==null?"":(r+"").replace(AG,function(t,e){return oG[e]})}var sG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xp=[],lG=Ut.browser.firefox&&+Ut.browser.version.split(".")[0]<39;function a0(r,t,e,n){return e=e||{},n?j1(r,t,e):lG&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):j1(r,t,e),e}function j1(r,t,e){if(Ut.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(_L(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(n0(Xp,r,n,a)){e.zrX=Xp[0],e.zrY=Xp[1];return}}e.zrX=e.zrY=0}function GB(r){return r||window.event}function tn(r,t,e){if(t=GB(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var A=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];A&&a0(r,A,t,e)}else{a0(r,t,t,e);var i=uG(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&sG.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function uG(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function i0(r,t,e,n){r.addEventListener(t,e,n)}function fG(r,t,e,n){r.removeEventListener(t,e,n)}var Ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function tS(r){return r.which===2||r.which===3}var cG=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},A=0,o=a.length;A1&&n&&n.length>1){var i=eS(n)/eS(a);!isFinite(i)&&(i=1),t.pinchScale=i;var A=hG(n);return t.pinchX=A[0],t.pinchY=A[1],{type:"pinch",target:r[0].target,event:t}}}}};function Wr(){return[1,0,0,1,0,0]}function Rd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function KB(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ha(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],A=t[1]*e[2]+t[3]*e[3],o=t[0]*e[4]+t[2]*e[5]+t[4],s=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=A,r[4]=o,r[5]=s,r}function va(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Co(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],A=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*(A-n[0])+u*(l-n[1])+n[0],r[5]=f*(l-n[1])-u*(A-n[0])+n[1],r}function zB(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Zs(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],A=t[3],o=t[5],s=e*A-i*n;return s?(s=1/s,r[0]=A*s,r[1]=-i*s,r[2]=-n*s,r[3]=e*s,r[4]=(n*o-A*a)*s,r[5]=(i*a-e*o)*s,r):null}function vG(r){var t=Wr();return KB(t,r),t}var It=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),Ac=Math.min,oc=Math.max,AA=new It,oA=new It,sA=new It,lA=new It,dl=new It,pl=new It,Dt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=Ac(t.x,this.x),n=Ac(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=oc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=oc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=Wr();return va(i,i,[-e.x,-e.y]),zB(i,i,[n,a]),va(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,A=n.y,o=n.y+n.height,s=t.x,l=t.x+t.width,u=t.y,f=t.y+t.height,c=!(iv&&(v=m,dv&&(v=w,g=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);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],A=n[4],o=n[5];t.x=e.x*a+A,t.y=e.y*i+o,t.width=e.width*a,t.height=e.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}AA.x=sA.x=e.x,AA.y=lA.y=e.y,oA.x=lA.x=e.x+e.width,oA.y=sA.y=e.y+e.height,AA.transform(n),lA.transform(n),oA.transform(n),sA.transform(n),t.x=Ac(AA.x,oA.x,sA.x,lA.x),t.y=Ac(AA.y,oA.y,sA.y,lA.y);var s=oc(AA.x,oA.x,sA.x,lA.x),l=oc(AA.y,oA.y,sA.y,lA.y);t.width=s-t.x,t.height=l-t.y},r}(),CL="silent";function dG(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:pG}}function pG(){Ka(this.event)}var gG=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(yn),gl=function(){function r(t,e){this.x=t,this.y=e}return r}(),yG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zp=new Dt(0,0,0,0),SL=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this)||this;return o._hovered=new gl(0,0),o.storage=e,o.painter=n,o.painterRoot=i,o._pointerSize=A,a=a||new gG,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new eG(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(yG,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=xL(this,n,a),A=this._hovered,o=A.target;o&&!o.__zr&&(A=this.findHover(A.x,A.y),o=A.target);var s=this._hovered=i?new gl(n,a):this.findHover(n,a),l=s.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),o&&l!==o&&this.dispatchToElement(A,"mouseout",e),this.dispatchToElement(s,"mousemove",e),l&&l!==o&&this.dispatchToElement(s,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new gl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];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(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var A="on"+n,o=dG(n,e,a);i&&(i[A]&&(o.cancelBubble=!!i[A].call(i,o)),i.trigger(n,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(n,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[A]=="function"&&s[A].call(s,o),s.trigger&&s.trigger(n,o)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),A=new gl(e,n);if(rS(i,A,e,n,a),this._pointerSize&&!A.target){for(var o=[],s=this._pointerSize,l=s/2,u=new Dt(e-l,n-l,s,s),f=i.length-1;f>=0;f--){var c=i[f];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Zp.copy(c.getBoundingRect()),c.transform&&Zp.applyTransform(c.transform),Zp.intersect(u)&&o.push(c))}if(o.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function mG(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var A=n.getClipPath();if(A&&!A.contain(t,e))return!1}n.silent&&(a=!0);var o=n.__hostTarget;n=o||n.parent}return a?CL:!0}return!1}function rS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var A=r[i],o=void 0;if(A!==a&&!A.ignore&&(o=mG(A,e,n))&&(!t.topTarget&&(t.topTarget=A),o!==CL)){t.target=A;break}}}function xL(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var bL=32,yl=7;function wG(r){for(var t=0;r>=bL;)t|=r&1,r>>=1;return r+t}function nS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a=0;)a++;return a-t}function BG(r,t,e){for(e--;t>>1,a(i,r[s])<0?o=s:A=s+1;var l=n-A;switch(l){case 3:r[A+3]=r[A+2];case 2:r[A+2]=r[A+1];case 1:r[A+1]=r[A];break;default:for(;l>0;)r[A+l]=r[A+l-1],l--}r[A]=i}}function $p(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])>0){for(o=n-a;s0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}else{for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}for(A++;A>>1);i(r,t[e+u])>0?A=u+1:s=u}return s}function Jp(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])<0){for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}else{for(o=n-a;s=0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}for(A++;A>>1);i(r,t[e+u])<0?s=u:A=u+1}return s}function _G(r,t){var e=yl,n,a,i=0,A=[];n=[],a=[];function o(h,v){n[i]=h,a[i]=v,i+=1}function s(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]=yl||C>=yl);if(S)break;_<0&&(_=0),_+=2}if(e=_,e<1&&(e=1),v===1){for(g=0;g=0;g--)r[B+g]=r[_+g];r[w]=A[m];return}for(var C=e;;){var S=0,x=0,b=!1;do if(t(A[m],r[y])<0){if(r[w--]=r[y--],S++,x=0,--v===0){b=!0;break}}else if(r[w--]=A[m--],x++,S=0,--p===1){b=!0;break}while((S|x)=0;g--)r[B+g]=r[_+g];if(v===0){b=!0;break}}if(r[w--]=A[m--],--p===1){b=!0;break}if(x=p-$p(r[y],A,0,p,p-1,t),x!==0){for(w-=x,m-=x,p-=x,B=w+1,_=m+1,g=0;g=yl||x>=yl);if(b)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),p===1){for(w-=v,y-=v,B=w+1,_=y+1,g=v-1;g>=0;g--)r[B+g]=r[_+g];r[w]=A[m]}else{if(p===0)throw new Error;for(_=w-(p-1),g=0;go&&(s=o),aS(r,e,e+s,e+i,t),i=s}A.pushRun(e,i),A.mergeRuns(),a-=i,e+=i}while(a!==0);A.forceMergeRuns()}}var Gr=1,Zl=2,As=4,iS=!1;function qp(){iS||(iS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function AS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var CG=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=AS}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(qp(),u.z=0),isNaN(u.z2)&&(qp(),u.z2=0),isNaN(u.zlevel)&&(qp(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),yv;yv=Ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var _u={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-_u.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?_u.bounceIn(r*2)*.5:_u.bounceOut(r*2-1)*.5+.5}},sc=Math.pow,Ri=Math.sqrt,mv=1e-8,TL=1e-4,oS=Ri(3),lc=1/3,ea=_o(),An=_o(),Ss=_o();function Ii(r){return r>-mv&&rmv||r<-mv}function Le(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function sS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function wv(r,t,e,n,a,i){var A=n+3*(t-e)-r,o=3*(e-t*2+r),s=3*(t-r),l=r-a,u=o*o-3*A*s,f=o*s-9*A*l,c=s*s-3*o*l,h=0;if(Ii(u)&&Ii(f))if(Ii(o))i[0]=0;else{var v=-s/o;v>=0&&v<=1&&(i[h++]=v)}else{var d=f*f-4*u*c;if(Ii(d)){var p=f/u,v=-o/A+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=Ri(d),m=u*o+1.5*A*(-f+y),w=u*o+1.5*A*(-f-y);m<0?m=-sc(-m,lc):m=sc(m,lc),w<0?w=-sc(-w,lc):w=sc(w,lc);var v=(-o-(m+w))/(3*A);v>=0&&v<=1&&(i[h++]=v)}else{var _=(2*u*o-3*A*f)/(2*Ri(u*u*u)),B=Math.acos(_)/3,C=Ri(u),S=Math.cos(B),v=(-o-2*C*S)/(3*A),g=(-o+C*(S+oS*Math.sin(B)))/(3*A),x=(-o+C*(S-oS*Math.sin(B)))/(3*A);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),x>=0&&x<=1&&(i[h++]=x)}}return h}function FL(r,t,e,n,a){var i=6*e-12*t+6*r,A=9*t+3*n-3*r-9*e,o=3*t-3*r,s=0;if(Ii(A)){if(IL(i)){var l=-o/i;l>=0&&l<=1&&(a[s++]=l)}}else{var u=i*i-4*A*o;if(Ii(u))a[0]=-i/(2*A);else if(u>0){var f=Ri(u),l=(-i+f)/(2*A),c=(-i-f)/(2*A);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function Wi(r,t,e,n,a,i){var A=(t-r)*a+r,o=(e-t)*a+t,s=(n-e)*a+e,l=(o-A)*a+A,u=(s-o)*a+o,f=(u-l)*a+l;i[0]=r,i[1]=A,i[2]=l,i[3]=f,i[4]=f,i[5]=u,i[6]=s,i[7]=n}function EL(r,t,e,n,a,i,A,o,s,l,u){var f,c=.005,h=1/0,v,d,p,g;ea[0]=s,ea[1]=l;for(var y=0;y<1;y+=.05)An[0]=Le(r,e,a,A,y),An[1]=Le(t,n,i,o,y),p=jA(ea,An),p=0&&p=0&&l<=1&&(a[s++]=l)}}else{var u=A*A-4*i*o;if(Ii(u)){var l=-A/(2*i);l>=0&&l<=1&&(a[s++]=l)}else if(u>0){var f=Ri(u),l=(-A+f)/(2*i),c=(-A-f)/(2*i);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function DL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function $u(r,t,e,n,a){var i=(t-r)*n+r,A=(e-t)*n+t,o=(A-i)*n+i;a[0]=r,a[1]=i,a[2]=o,a[3]=o,a[4]=A,a[5]=e}function QL(r,t,e,n,a,i,A,o,s){var l,u=.005,f=1/0;ea[0]=A,ea[1]=o;for(var c=0;c<1;c+=.05){An[0]=Ne(r,e,a,c),An[1]=Ne(t,n,i,c);var h=jA(ea,An);h=0&&h=1?1:wv(0,n,i,1,s,o)&&Le(0,a,A,1,o[0])}}}var IG=function(){function r(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||Be,this.ondestroy=t.ondestroy||Be,this.onrestart=t.onrestart||Be,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var A=this.easingFunc,o=A?A(i):i;if(this.onframe(o),i===1)if(this.loop){var s=a%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:_u[t]||WB(t)},r}(),LL=function(){function r(t){this.value=t}return r}(),FG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new LL(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Ff=function(){function r(t){this._list=new FG,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var A=n.len(),o=this._lastRemovedEntry;if(A>=this._maxSize&&A>0){var s=n.head;n.remove(s),delete a[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new LL(e),o.key=t,n.insertEntry(o),a[t]=o}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),lS={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 Ln(r){return r=Math.round(r),r<0?0:r>255?255:r}function EG(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ju(r){return r<0?0:r>1?1:r}function jp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ln(parseFloat(t)/100*255):Ln(parseInt(t,10))}function to(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ju(parseFloat(t)/100):Ju(parseFloat(t))}function tg(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Fi(r,t,e){return r+(t-r)*e}function jr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function o0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var ML=new Ff(20),uc=null;function Qo(r,t){uc&&o0(uc,t),uc=ML.put(r,uc||t.slice())}function Xr(r,t){if(r){t=t||[];var e=ML.get(r);if(e)return o0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in lS)return o0(t,lS[n]),Qo(r,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)){jr(t,0,0,0,1);return}return jr(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),Qo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){jr(t,0,0,0,1);return}return jr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Qo(r,t),t}return}var A=n.indexOf("("),o=n.indexOf(")");if(A!==-1&&o+1===a){var s=n.substr(0,A),l=n.substr(A+1,o-(A+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4)return l.length===3?jr(t,+l[0],+l[1],+l[2],1):jr(t,0,0,0,1);u=to(l.pop());case"rgb":if(l.length>=3)return jr(t,jp(l[0]),jp(l[1]),jp(l[2]),l.length===3?u:to(l[3])),Qo(r,t),t;jr(t,0,0,0,1);return;case"hsla":if(l.length!==4){jr(t,0,0,0,1);return}return l[3]=to(l[3]),s0(l,t),Qo(r,t),t;case"hsl":if(l.length!==3){jr(t,0,0,0,1);return}return s0(l,t),Qo(r,t),t;default:return}}jr(t,0,0,0,1)}}function s0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=to(r[1]),a=to(r[2]),i=a<=.5?a*(n+1):a+n-a*n,A=a*2-i;return t=t||[],jr(t,Ln(tg(A,i,e+1/3)*255),Ln(tg(A,i,e)*255),Ln(tg(A,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function DG(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),A=i-a,o=(i+a)/2,s,l;if(A===0)s=0,l=0;else{o<.5?l=A/(i+a):l=A/(2-i-a);var u=((i-t)/6+A/2)/A,f=((i-e)/6+A/2)/A,c=((i-n)/6+A/2)/A;t===i?s=c-f:e===i?s=1/3+u-c:n===i&&(s=2/3+f-u),s<0&&(s+=1),s>1&&(s-=1)}var h=[s*360,l,o];return r[3]!=null&&h.push(r[3]),h}}function l0(r,t){var e=Xr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Oa(e,e.length===4?"rgba":"rgb")}}function eg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=t[a],o=t[i],s=n-a;return e[0]=Ln(Fi(A[0],o[0],s)),e[1]=Ln(Fi(A[1],o[1],s)),e[2]=Ln(Fi(A[2],o[2],s)),e[3]=Ju(Fi(A[3],o[3],s)),e}}function QG(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=Xr(t[a]),o=Xr(t[i]),s=n-a,l=Oa([Ln(Fi(A[0],o[0],s)),Ln(Fi(A[1],o[1],s)),Ln(Fi(A[2],o[2],s)),Ju(Fi(A[3],o[3],s))],"rgba");return e?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function Cu(r,t,e,n){var a=Xr(r);if(r)return a=DG(a),t!=null&&(a[0]=EG(t)),e!=null&&(a[1]=to(e)),n!=null&&(a[2]=to(n)),Oa(s0(a),"rgba")}function Bv(r,t){var e=Xr(r);if(e&&t!=null)return e[3]=Ju(t),Oa(e,"rgba")}function Oa(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function _v(r,t){var e=Xr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var uS=new Ff(100);function u0(r){if(nt(r)){var t=uS.get(r);return t||(t=l0(r,-.1),uS.put(r,t)),t}else if(Ud(r)){var e=V({},r);return e.colorStops=Y(r.colorStops,function(n){return{offset:n.offset,color:l0(n.color,-.1)}}),e}return r}var Cv=Math.round;function qu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Xr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var fS=1e-4;function Ei(r){return r-fS}function fc(r){return Cv(r*1e3)/1e3}function f0(r){return Cv(r*1e4)/1e4}function LG(r){return"matrix("+fc(r[0])+","+fc(r[1])+","+fc(r[2])+","+fc(r[3])+","+f0(r[4])+","+f0(r[5])+")"}var MG={left:"start",right:"end",center:"middle",middle:"middle"};function UG(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function PG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function RG(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function UL(r){return r&&!!r.image}function HG(r){return r&&!!r.svgElement}function XB(r){return UL(r)||HG(r)}function PL(r){return r.type==="linear"}function RL(r){return r.type==="radial"}function HL(r){return r&&(r.type==="linear"||r.type==="radial")}function Hd(r){return"url(#"+r+")"}function OL(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function kL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Ph,a=St(r.scaleX,1),i=St(r.scaleY,1),A=r.skewX||0,o=r.skewY||0,s=[];return(t||e)&&s.push("translate("+t+"px,"+e+"px)"),n&&s.push("rotate("+n+")"),(a!==1||i!==1)&&s.push("scale("+a+","+i+")"),(A||o)&&s.push("skew("+Cv(A*Ph)+"deg, "+Cv(o*Ph)+"deg)"),s.join(" ")}var OG=function(){return Ut.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),c0=Array.prototype.slice;function Da(r,t,e){return(t-r)*e+r}function rg(r,t,e,n){for(var a=t.length,i=0;in?t:r,i=Math.min(e,n),A=a[i-1]||{color:[0,0,0,0],offset:0},o=i;oA;if(o)n.length=A;else for(var s=i;s=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,A=!1,o=hS,s=e;if(sr(e)){var l=GG(e);o=l,(l===1&&!Kt(e[0])||l===2&&!Kt(e[0][0]))&&(A=!0)}else if(Kt(e)&&!Zu(e))o=hc;else if(nt(e))if(!isNaN(+e))o=hc;else{var u=Xr(e);u&&(s=u,o=$l)}else if(Ud(e)){var f=V({},s);f.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:Xr(h.color)}}),PL(e)?o=h0:RL(e)&&(o=v0),s=f}i===0?this.valType=o:(o!==this.valType||o===hS)&&(A=!0),this.discrete=this.discrete||A;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=vt(n)?n:_u[n]||WB(n)),a.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,A=n[i-1],o=this.discrete,s=vc(a),l=vS(a),u=0;u=0&&!(A[u].percent<=e);u--);u=c(u,o-2)}else{for(u=f;ue);u++);u=c(u-1,o-2)}v=A[u+1],h=A[u]}if(h&&v){this._lastFr=u,this._lastFrP=e;var p=v.percent-h.percent,g=p===0?1:c((e-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?ml:t[s];if((vc(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[s]=g<1?h.rawValue:v.rawValue;else if(vc(i))i===Nh?rg(y,h[a],v[a],g):kG(y,h[a],v[a],g);else if(vS(i)){var m=h[a],w=v[a],_=i===h0;t[s]={type:_?"linear":"radial",x:Da(m.x,w.x,g),y:Da(m.y,w.y,g),colorStops:Y(m.colorStops,function(C,S){var x=w.colorStops[S];return{offset:Da(C.offset,x.offset,g),color:kh(rg([],C.color,x.color,g))}}),global:w.global},_?(t[s].x2=Da(m.x2,w.x2,g),t[s].y2=Da(m.y2,w.y2,g)):t[s].r=Da(m.r,w.r,g)}else if(l)rg(y,h[a],v[a],g),n||(t[s]=kh(y));else{var B=Da(h[a],v[a],g);n?this._additiveValue=B:t[s]=B}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===hc?t[n]=t[n]+a:e===$l?(Xr(t[n],ml),cc(ml,ml,a,1),t[n]=kh(ml)):e===Nh?cc(t[n],t[n],a,1):e===NL&&cS(t[n],t[n],a,1)},r}(),YB=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){OB("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ht(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,A=0;A0&&s.addKeyframe(0,Su(l),a),this._trackKeys.push(o)}s.addKeyframe(t,Su(e[o]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i1){var o=A.pop();i.addKeyframe(o.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function vs(){return new Date().getTime()}var zG=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=vs()-this._pausedTime,a=n-this._time,i=this._head;i;){var A=i.next,o=i.step(n,a);o&&(i.ondestroy(),this.removeClip(i)),i=A}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(yv(n),!e._paused&&e.update())}yv(n)},t.prototype.start=function(){this._running||(this._time=vs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vs()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new YB(e,n.loop);return this.addAnimator(a),a},t}(yn),WG=300,ng=Ut.domSupported,ag=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Y(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),dS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},pS=!1;function d0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function XG(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ig(r){r&&(r.zrByTouch=!0)}function YG(r,t){return tn(r.dom,new ZG(r,t),!0)}function VL(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var ZG=function(){function r(t,e){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),bn={mousedown:function(r){r=tn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=tn(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=tn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=tn(this.dom,r);var t=r.toElement||r.relatedTarget;VL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){pS=!0,r=tn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){pS||(r=tn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=tn(this.dom,r),ig(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),bn.mousemove.call(this,r),bn.mousedown.call(this,r)},touchmove:function(r){r=tn(this.dom,r),ig(r),this.handler.processGesture(r,"change"),bn.mousemove.call(this,r)},touchend:function(r){r=tn(this.dom,r),ig(r),this.handler.processGesture(r,"end"),bn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentmS||r<-mS}var fA=[],Lo=[],og=Wr(),sg=Math.abs,La=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return uA(this.rotation)||uA(this.x)||uA(this.y)||uA(this.scaleX-1)||uA(this.scaleY-1)||uA(this.skewX)||uA(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(yS(n),this.invTransform=null);return}n=n||Wr(),e?this.getLocalTransform(n):yS(n),t&&(e?Ha(n,t,n):KB(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(fA);var n=fA[0]<0?-1:1,a=fA[1]<0?-1:1,i=((fA[0]-n)*e+n)/fA[0]||0,A=((fA[1]-a)*e+a)/fA[1]||0;t[0]*=i,t[1]*=i,t[2]*=A,t[3]*=A}this.invTransform=this.invTransform||Wr(),Zs(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=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),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Wr(),Ha(Lo,t.invTransform,e),e=Lo);var n=this.originX,a=this.originY;(n||a)&&(og[4]=n,og[5]=a,Ha(Lo,e,og),Lo[4]-=n,Lo[5]-=a,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&Ye(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ye(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&sg(t[0]-1)>1e-10&&sg(t[3]-1)>1e-10?Math.sqrt(sg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){KL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,A=t.scaleY,o=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,f=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||o||s){var v=n+o,d=a+s;e[4]=-v*i-c*d*A,e[5]=-d*A-h*v*i}else e[4]=e[5]=0;return e[0]=i,e[3]=A,e[1]=h*i,e[2]=c*A,l&&Co(e,e,l),e[4]+=n+u,e[5]+=a+f,e},r.initDefaultProps=function(){var t=r.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}(),r}(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function KL(r,t){for(var e=0;e"u"&&typeof self<"u"?Ut.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ut.node=!0,Ut.svgSupported=!0):MV(navigator.userAgent,Ut);function MV(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),A=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),A&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var o=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in o||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var PB=12,dL="sans-serif",Ki=PB+"px "+dL,UV=20,PV=100,RV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function HV(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)o=A*e.length;else for(var s=0;s>1)%2;o.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",a[l]+":0",n[1-s]+":auto",a[1-l]+":auto",""].join("!important;"),r.appendChild(A),e.push(A)}return e}function iG(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,A=[],o=[],s=!0,l=0;l<4;l++){var u=r[l].getBoundingClientRect(),f=2*l,c=u.left,h=u.top;A.push(c,h),s=s&&i&&c===i[f]&&h===i[f+1],o.push(r[l].offsetLeft,r[l].offsetTop)}return s&&a?a:(t.srcCoords=A,t[n]=e?J1(o,A):J1(A,o))}function _L(r){return r.nodeName.toUpperCase()==="CANVAS"}var AG=/([&<>"'])/g,oG={"&":"&","<":"<",">":">",'"':""","'":"'"};function Er(r){return r==null?"":(r+"").replace(AG,function(t,e){return oG[e]})}var sG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xp=[],lG=Ut.browser.firefox&&+Ut.browser.version.split(".")[0]<39;function a0(r,t,e,n){return e=e||{},n?j1(r,t,e):lG&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):j1(r,t,e),e}function j1(r,t,e){if(Ut.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(_L(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(n0(Xp,r,n,a)){e.zrX=Xp[0],e.zrY=Xp[1];return}}e.zrX=e.zrY=0}function GB(r){return r||window.event}function tn(r,t,e){if(t=GB(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var A=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];A&&a0(r,A,t,e)}else{a0(r,t,t,e);var i=uG(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&sG.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function uG(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function i0(r,t,e,n){r.addEventListener(t,e,n)}function fG(r,t,e,n){r.removeEventListener(t,e,n)}var Ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function tS(r){return r.which===2||r.which===3}var cG=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},A=0,o=a.length;A1&&n&&n.length>1){var i=eS(n)/eS(a);!isFinite(i)&&(i=1),t.pinchScale=i;var A=hG(n);return t.pinchX=A[0],t.pinchY=A[1],{type:"pinch",target:r[0].target,event:t}}}}};function Wr(){return[1,0,0,1,0,0]}function Rd(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function KB(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ha(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],A=t[1]*e[2]+t[3]*e[3],o=t[0]*e[4]+t[2]*e[5]+t[4],s=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=A,r[4]=o,r[5]=s,r}function va(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Co(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],A=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*(A-n[0])+u*(l-n[1])+n[0],r[5]=f*(l-n[1])-u*(A-n[0])+n[1],r}function zB(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function Zs(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],A=t[3],o=t[5],s=e*A-i*n;return s?(s=1/s,r[0]=A*s,r[1]=-i*s,r[2]=-n*s,r[3]=e*s,r[4]=(n*o-A*a)*s,r[5]=(i*a-e*o)*s,r):null}function vG(r){var t=Wr();return KB(t,r),t}var It=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}(),Ac=Math.min,oc=Math.max,AA=new It,oA=new It,sA=new It,lA=new It,dl=new It,pl=new It,Dt=function(){function r(t,e,n,a){n<0&&(t=t+n,n=-n),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=n,this.height=a}return r.prototype.union=function(t){var e=Ac(t.x,this.x),n=Ac(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=oc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=oc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,a=t.height/e.height,i=Wr();return va(i,i,[-e.x,-e.y]),zB(i,i,[n,a]),va(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,a=n.x,i=n.x+n.width,A=n.y,o=n.y+n.height,s=t.x,l=t.x+t.width,u=t.y,f=t.y+t.height,c=!(iv&&(v=m,dv&&(v=w,g=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);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],A=n[4],o=n[5];t.x=e.x*a+A,t.y=e.y*i+o,t.width=e.width*a,t.height=e.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}AA.x=sA.x=e.x,AA.y=lA.y=e.y,oA.x=lA.x=e.x+e.width,oA.y=sA.y=e.y+e.height,AA.transform(n),lA.transform(n),oA.transform(n),sA.transform(n),t.x=Ac(AA.x,oA.x,sA.x,lA.x),t.y=Ac(AA.y,oA.y,sA.y,lA.y);var s=oc(AA.x,oA.x,sA.x,lA.x),l=oc(AA.y,oA.y,sA.y,lA.y);t.width=s-t.x,t.height=l-t.y},r}(),CL="silent";function dG(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:pG}}function pG(){Ka(this.event)}var gG=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(yn),gl=function(){function r(t,e){this.x=t,this.y=e}return r}(),yG=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zp=new Dt(0,0,0,0),SL=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this)||this;return o._hovered=new gl(0,0),o.storage=e,o.painter=n,o.painterRoot=i,o._pointerSize=A,a=a||new gG,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new eG(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(yG,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,a=e.zrY,i=xL(this,n,a),A=this._hovered,o=A.target;o&&!o.__zr&&(A=this.findHover(A.x,A.y),o=A.target);var s=this._hovered=i?new gl(n,a):this.findHover(n,a),l=s.target,u=this.proxy;u.setCursor&&u.setCursor(l?l.cursor:"default"),o&&l!==o&&this.dispatchToElement(A,"mouseout",e),this.dispatchToElement(s,"mousemove",e),l&&l!==o&&this.dispatchToElement(s,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new gl(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];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(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var A="on"+n,o=dG(n,e,a);i&&(i[A]&&(o.cancelBubble=!!i[A].call(i,o)),i.trigger(n,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(n,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(s){typeof s[A]=="function"&&s[A].call(s,o),s.trigger&&s.trigger(n,o)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),A=new gl(e,n);if(rS(i,A,e,n,a),this._pointerSize&&!A.target){for(var o=[],s=this._pointerSize,l=s/2,u=new Dt(e-l,n-l,s,s),f=i.length-1;f>=0;f--){var c=i[f];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Zp.copy(c.getBoundingRect()),c.transform&&Zp.applyTransform(c.transform),Zp.intersect(u)&&o.push(c))}if(o.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function mG(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var A=n.getClipPath();if(A&&!A.contain(t,e))return!1}n.silent&&(a=!0);var o=n.__hostTarget;n=o||n.parent}return a?CL:!0}return!1}function rS(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var A=r[i],o=void 0;if(A!==a&&!A.ignore&&(o=mG(A,e,n))&&(!t.topTarget&&(t.topTarget=A),o!==CL)){t.target=A;break}}}function xL(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var bL=32,yl=7;function wG(r){for(var t=0;r>=bL;)t|=r&1,r>>=1;return r+t}function nS(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a=0;)a++;return a-t}function BG(r,t,e){for(e--;t>>1,a(i,r[s])<0?o=s:A=s+1;var l=n-A;switch(l){case 3:r[A+3]=r[A+2];case 2:r[A+2]=r[A+1];case 1:r[A+1]=r[A];break;default:for(;l>0;)r[A+l]=r[A+l-1],l--}r[A]=i}}function $p(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])>0){for(o=n-a;s0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}else{for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}for(A++;A>>1);i(r,t[e+u])>0?A=u+1:s=u}return s}function Jp(r,t,e,n,a,i){var A=0,o=0,s=1;if(i(r,t[e+a])<0){for(o=a+1;so&&(s=o);var l=A;A=a-s,s=a-l}else{for(o=n-a;s=0;)A=s,s=(s<<1)+1,s<=0&&(s=o);s>o&&(s=o),A+=a,s+=a}for(A++;A>>1);i(r,t[e+u])<0?s=u:A=u+1}return s}function _G(r,t){var e=yl,n,a,i=0,A=[];n=[],a=[];function o(h,v){n[i]=h,a[i]=v,i+=1}function s(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;u(h)}}function l(){for(;i>1;){var h=i-2;h>0&&a[h-1]=yl||C>=yl);if(S)break;_<0&&(_=0),_+=2}if(e=_,e<1&&(e=1),v===1){for(g=0;g=0;g--)r[B+g]=r[_+g];r[w]=A[m];return}for(var C=e;;){var S=0,x=0,b=!1;do if(t(A[m],r[y])<0){if(r[w--]=r[y--],S++,x=0,--v===0){b=!0;break}}else if(r[w--]=A[m--],x++,S=0,--p===1){b=!0;break}while((S|x)=0;g--)r[B+g]=r[_+g];if(v===0){b=!0;break}}if(r[w--]=A[m--],--p===1){b=!0;break}if(x=p-$p(r[y],A,0,p,p-1,t),x!==0){for(w-=x,m-=x,p-=x,B=w+1,_=m+1,g=0;g=yl||x>=yl);if(b)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),p===1){for(w-=v,y-=v,B=w+1,_=y+1,g=v-1;g>=0;g--)r[B+g]=r[_+g];r[w]=A[m]}else{if(p===0)throw new Error;for(_=w-(p-1),g=0;go&&(s=o),aS(r,e,e+s,e+i,t),i=s}A.pushRun(e,i),A.mergeRuns(),a-=i,e+=i}while(a!==0);A.forceMergeRuns()}}var Gr=1,Zl=2,As=4,iS=!1;function qp(){iS||(iS=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function AS(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var CG=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=AS}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(qp(),u.z=0),isNaN(u.z2)&&(qp(),u.z2=0),isNaN(u.zlevel)&&(qp(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),yv;yv=Ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var _u={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-_u.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?_u.bounceIn(r*2)*.5:_u.bounceOut(r*2-1)*.5+.5}},sc=Math.pow,Ri=Math.sqrt,mv=1e-8,TL=1e-4,oS=Ri(3),lc=1/3,ea=_o(),An=_o(),Ss=_o();function Ii(r){return r>-mv&&rmv||r<-mv}function Me(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function sS(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function wv(r,t,e,n,a,i){var A=n+3*(t-e)-r,o=3*(e-t*2+r),s=3*(t-r),l=r-a,u=o*o-3*A*s,f=o*s-9*A*l,c=s*s-3*o*l,h=0;if(Ii(u)&&Ii(f))if(Ii(o))i[0]=0;else{var v=-s/o;v>=0&&v<=1&&(i[h++]=v)}else{var d=f*f-4*u*c;if(Ii(d)){var p=f/u,v=-o/A+p,g=-p/2;v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g)}else if(d>0){var y=Ri(d),m=u*o+1.5*A*(-f+y),w=u*o+1.5*A*(-f-y);m<0?m=-sc(-m,lc):m=sc(m,lc),w<0?w=-sc(-w,lc):w=sc(w,lc);var v=(-o-(m+w))/(3*A);v>=0&&v<=1&&(i[h++]=v)}else{var _=(2*u*o-3*A*f)/(2*Ri(u*u*u)),B=Math.acos(_)/3,C=Ri(u),S=Math.cos(B),v=(-o-2*C*S)/(3*A),g=(-o+C*(S+oS*Math.sin(B)))/(3*A),x=(-o+C*(S-oS*Math.sin(B)))/(3*A);v>=0&&v<=1&&(i[h++]=v),g>=0&&g<=1&&(i[h++]=g),x>=0&&x<=1&&(i[h++]=x)}}return h}function FL(r,t,e,n,a){var i=6*e-12*t+6*r,A=9*t+3*n-3*r-9*e,o=3*t-3*r,s=0;if(Ii(A)){if(IL(i)){var l=-o/i;l>=0&&l<=1&&(a[s++]=l)}}else{var u=i*i-4*A*o;if(Ii(u))a[0]=-i/(2*A);else if(u>0){var f=Ri(u),l=(-i+f)/(2*A),c=(-i-f)/(2*A);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function Wi(r,t,e,n,a,i){var A=(t-r)*a+r,o=(e-t)*a+t,s=(n-e)*a+e,l=(o-A)*a+A,u=(s-o)*a+o,f=(u-l)*a+l;i[0]=r,i[1]=A,i[2]=l,i[3]=f,i[4]=f,i[5]=u,i[6]=s,i[7]=n}function EL(r,t,e,n,a,i,A,o,s,l,u){var f,c=.005,h=1/0,v,d,p,g;ea[0]=s,ea[1]=l;for(var y=0;y<1;y+=.05)An[0]=Me(r,e,a,A,y),An[1]=Me(t,n,i,o,y),p=jA(ea,An),p=0&&p=0&&l<=1&&(a[s++]=l)}}else{var u=A*A-4*i*o;if(Ii(u)){var l=-A/(2*i);l>=0&&l<=1&&(a[s++]=l)}else if(u>0){var f=Ri(u),l=(-A+f)/(2*i),c=(-A-f)/(2*i);l>=0&&l<=1&&(a[s++]=l),c>=0&&c<=1&&(a[s++]=c)}}return s}function DL(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function $u(r,t,e,n,a){var i=(t-r)*n+r,A=(e-t)*n+t,o=(A-i)*n+i;a[0]=r,a[1]=i,a[2]=o,a[3]=o,a[4]=A,a[5]=e}function QL(r,t,e,n,a,i,A,o,s){var l,u=.005,f=1/0;ea[0]=A,ea[1]=o;for(var c=0;c<1;c+=.05){An[0]=Ve(r,e,a,c),An[1]=Ve(t,n,i,c);var h=jA(ea,An);h=0&&h=1?1:wv(0,n,i,1,s,o)&&Me(0,a,A,1,o[0])}}}var IG=function(){function r(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||Be,this.ondestroy=t.ondestroy||Be,this.onrestart=t.onrestart||Be,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var A=this.easingFunc,o=A?A(i):i;if(this.onframe(o),i===1)if(this.loop){var s=a%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=vt(t)?t:_u[t]||WB(t)},r}(),LL=function(){function r(t){this.value=t}return r}(),FG=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new LL(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Ff=function(){function r(t){this._list=new FG,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var A=n.len(),o=this._lastRemovedEntry;if(A>=this._maxSize&&A>0){var s=n.head;n.remove(s),delete a[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new LL(e),o.key=t,n.insertEntry(o),a[t]=o}return i},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),lS={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 Ln(r){return r=Math.round(r),r<0?0:r>255?255:r}function EG(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ju(r){return r<0?0:r>1?1:r}function jp(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ln(parseFloat(t)/100*255):Ln(parseInt(t,10))}function to(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ju(parseFloat(t)/100):Ju(parseFloat(t))}function tg(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Fi(r,t,e){return r+(t-r)*e}function jr(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function o0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var ML=new Ff(20),uc=null;function Qo(r,t){uc&&o0(uc,t),uc=ML.put(r,uc||t.slice())}function Xr(r,t){if(r){t=t||[];var e=ML.get(r);if(e)return o0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in lS)return o0(t,lS[n]),Qo(r,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)){jr(t,0,0,0,1);return}return jr(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),Qo(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){jr(t,0,0,0,1);return}return jr(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Qo(r,t),t}return}var A=n.indexOf("("),o=n.indexOf(")");if(A!==-1&&o+1===a){var s=n.substr(0,A),l=n.substr(A+1,o-(A+1)).split(","),u=1;switch(s){case"rgba":if(l.length!==4)return l.length===3?jr(t,+l[0],+l[1],+l[2],1):jr(t,0,0,0,1);u=to(l.pop());case"rgb":if(l.length>=3)return jr(t,jp(l[0]),jp(l[1]),jp(l[2]),l.length===3?u:to(l[3])),Qo(r,t),t;jr(t,0,0,0,1);return;case"hsla":if(l.length!==4){jr(t,0,0,0,1);return}return l[3]=to(l[3]),s0(l,t),Qo(r,t),t;case"hsl":if(l.length!==3){jr(t,0,0,0,1);return}return s0(l,t),Qo(r,t),t;default:return}}jr(t,0,0,0,1)}}function s0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=to(r[1]),a=to(r[2]),i=a<=.5?a*(n+1):a+n-a*n,A=a*2-i;return t=t||[],jr(t,Ln(tg(A,i,e+1/3)*255),Ln(tg(A,i,e)*255),Ln(tg(A,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function DG(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),A=i-a,o=(i+a)/2,s,l;if(A===0)s=0,l=0;else{o<.5?l=A/(i+a):l=A/(2-i-a);var u=((i-t)/6+A/2)/A,f=((i-e)/6+A/2)/A,c=((i-n)/6+A/2)/A;t===i?s=c-f:e===i?s=1/3+u-c:n===i&&(s=2/3+f-u),s<0&&(s+=1),s>1&&(s-=1)}var h=[s*360,l,o];return r[3]!=null&&h.push(r[3]),h}}function l0(r,t){var e=Xr(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Oa(e,e.length===4?"rgba":"rgb")}}function eg(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=t[a],o=t[i],s=n-a;return e[0]=Ln(Fi(A[0],o[0],s)),e[1]=Ln(Fi(A[1],o[1],s)),e[2]=Ln(Fi(A[2],o[2],s)),e[3]=Ju(Fi(A[3],o[3],s)),e}}function QG(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),A=Xr(t[a]),o=Xr(t[i]),s=n-a,l=Oa([Ln(Fi(A[0],o[0],s)),Ln(Fi(A[1],o[1],s)),Ln(Fi(A[2],o[2],s)),Ju(Fi(A[3],o[3],s))],"rgba");return e?{color:l,leftIndex:a,rightIndex:i,value:n}:l}}function Cu(r,t,e,n){var a=Xr(r);if(r)return a=DG(a),t!=null&&(a[0]=EG(t)),e!=null&&(a[1]=to(e)),n!=null&&(a[2]=to(n)),Oa(s0(a),"rgba")}function Bv(r,t){var e=Xr(r);if(e&&t!=null)return e[3]=Ju(t),Oa(e,"rgba")}function Oa(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function _v(r,t){var e=Xr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var uS=new Ff(100);function u0(r){if(nt(r)){var t=uS.get(r);return t||(t=l0(r,-.1),uS.put(r,t)),t}else if(Ud(r)){var e=V({},r);return e.colorStops=Y(r.colorStops,function(n){return{offset:n.offset,color:l0(n.color,-.1)}}),e}return r}var Cv=Math.round;function qu(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Xr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var fS=1e-4;function Ei(r){return r-fS}function fc(r){return Cv(r*1e3)/1e3}function f0(r){return Cv(r*1e4)/1e4}function LG(r){return"matrix("+fc(r[0])+","+fc(r[1])+","+fc(r[2])+","+fc(r[3])+","+f0(r[4])+","+f0(r[5])+")"}var MG={left:"start",right:"end",center:"middle",middle:"middle"};function UG(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function PG(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function RG(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function UL(r){return r&&!!r.image}function HG(r){return r&&!!r.svgElement}function XB(r){return UL(r)||HG(r)}function PL(r){return r.type==="linear"}function RL(r){return r.type==="radial"}function HL(r){return r&&(r.type==="linear"||r.type==="radial")}function Hd(r){return"url(#"+r+")"}function OL(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function kL(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Ph,a=St(r.scaleX,1),i=St(r.scaleY,1),A=r.skewX||0,o=r.skewY||0,s=[];return(t||e)&&s.push("translate("+t+"px,"+e+"px)"),n&&s.push("rotate("+n+")"),(a!==1||i!==1)&&s.push("scale("+a+","+i+")"),(A||o)&&s.push("skew("+Cv(A*Ph)+"deg, "+Cv(o*Ph)+"deg)"),s.join(" ")}var OG=function(){return Ut.hasGlobalWindow&&vt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),c0=Array.prototype.slice;function Da(r,t,e){return(t-r)*e+r}function rg(r,t,e,n){for(var a=t.length,i=0;in?t:r,i=Math.min(e,n),A=a[i-1]||{color:[0,0,0,0],offset:0},o=i;oA;if(o)n.length=A;else for(var s=i;s=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,A=!1,o=hS,s=e;if(sr(e)){var l=GG(e);o=l,(l===1&&!Kt(e[0])||l===2&&!Kt(e[0][0]))&&(A=!0)}else if(Kt(e)&&!Zu(e))o=hc;else if(nt(e))if(!isNaN(+e))o=hc;else{var u=Xr(e);u&&(s=u,o=$l)}else if(Ud(e)){var f=V({},s);f.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:Xr(h.color)}}),PL(e)?o=h0:RL(e)&&(o=v0),s=f}i===0?this.valType=o:(o!==this.valType||o===hS)&&(A=!0),this.discrete=this.discrete||A;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=vt(n)?n:_u[n]||WB(n)),a.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(d,p){return d.time-p.time});for(var a=this.valType,i=n.length,A=n[i-1],o=this.discrete,s=vc(a),l=vS(a),u=0;u=0&&!(A[u].percent<=e);u--);u=c(u,o-2)}else{for(u=f;ue);u++);u=c(u-1,o-2)}v=A[u+1],h=A[u]}if(h&&v){this._lastFr=u,this._lastFrP=e;var p=v.percent-h.percent,g=p===0?1:c((e-h.percent)/p,1);v.easingFunc&&(g=v.easingFunc(g));var y=n?this._additiveValue:l?ml:t[s];if((vc(i)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[s]=g<1?h.rawValue:v.rawValue;else if(vc(i))i===Nh?rg(y,h[a],v[a],g):kG(y,h[a],v[a],g);else if(vS(i)){var m=h[a],w=v[a],_=i===h0;t[s]={type:_?"linear":"radial",x:Da(m.x,w.x,g),y:Da(m.y,w.y,g),colorStops:Y(m.colorStops,function(C,S){var x=w.colorStops[S];return{offset:Da(C.offset,x.offset,g),color:kh(rg([],C.color,x.color,g))}}),global:w.global},_?(t[s].x2=Da(m.x2,w.x2,g),t[s].y2=Da(m.y2,w.y2,g)):t[s].r=Da(m.r,w.r,g)}else if(l)rg(y,h[a],v[a],g),n||(t[s]=kh(y));else{var B=Da(h[a],v[a],g);n?this._additiveValue=B:t[s]=B}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===hc?t[n]=t[n]+a:e===$l?(Xr(t[n],ml),cc(ml,ml,a,1),t[n]=kh(ml)):e===Nh?cc(t[n],t[n],a,1):e===NL&&cS(t[n],t[n],a,1)},r}(),YB=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){OB("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Ht(e),n)},r.prototype.whenWithKeys=function(t,e,n,a){for(var i=this._tracks,A=0;A0&&s.addKeyframe(0,Su(l),a),this._trackKeys.push(o)}s.addKeyframe(t,Su(e[o]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i1){var o=A.pop();i.addKeyframe(o.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function vs(){return new Date().getTime()}var zG=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,a=e.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=vs()-this._pausedTime,a=n-this._time,i=this._head;i;){var A=i.next,o=i.step(n,a);o&&(i.ondestroy(),this.removeClip(i)),i=A}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(yv(n),!e._paused&&e.update())}yv(n)},t.prototype.start=function(){this._running||(this._time=vs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vs()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var a=new YB(e,n.loop);return this.addAnimator(a),a},t}(yn),WG=300,ng=Ut.domSupported,ag=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Y(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),dS={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},pS=!1;function d0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function XG(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ig(r){r&&(r.zrByTouch=!0)}function YG(r,t){return tn(r.dom,new ZG(r,t),!0)}function VL(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var ZG=function(){function r(t,e){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),bn={mousedown:function(r){r=tn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=tn(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=tn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=tn(this.dom,r);var t=r.toElement||r.relatedTarget;VL(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){pS=!0,r=tn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){pS||(r=tn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=tn(this.dom,r),ig(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),bn.mousemove.call(this,r),bn.mousedown.call(this,r)},touchmove:function(r){r=tn(this.dom,r),ig(r),this.handler.processGesture(r,"change"),bn.mousemove.call(this,r)},touchend:function(r){r=tn(this.dom,r),ig(r),this.handler.processGesture(r,"end"),bn.mouseup.call(this,r),+new Date-+this.__lastTouchMomentmS||r<-mS}var fA=[],Lo=[],og=Wr(),sg=Math.abs,La=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return uA(this.rotation)||uA(this.x)||uA(this.y)||uA(this.scaleX-1)||uA(this.scaleY-1)||uA(this.skewX)||uA(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(yS(n),this.invTransform=null);return}n=n||Wr(),e?this.getLocalTransform(n):yS(n),t&&(e?Ha(n,t,n):KB(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(fA);var n=fA[0]<0?-1:1,a=fA[1]<0?-1:1,i=((fA[0]-n)*e+n)/fA[0]||0,A=((fA[1]-a)*e+a)/fA[1]||0;t[0]*=i,t[1]*=i,t[2]*=A,t[3]*=A}this.invTransform=this.invTransform||Wr(),Zs(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=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),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Wr(),Ha(Lo,t.invTransform,e),e=Lo);var n=this.originX,a=this.originY;(n||a)&&(og[4]=n,og[5]=a,Ha(Lo,e,og),Lo[4]-=n,Lo[5]-=a,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],a=this.invTransform;return a&&Ye(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ye(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&sg(t[0]-1)>1e-10&&sg(t[3]-1)>1e-10?Math.sqrt(sg(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){KL(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,A=t.scaleY,o=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,f=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||o||s){var v=n+o,d=a+s;e[4]=-v*i-c*d*A,e[5]=-d*A-h*v*i}else e[4]=e[5]=0;return e[0]=i,e[3]=A,e[1]=h*i,e[2]=c*A,l&&Co(e,e,l),e[4]+=n+u,e[5]+=a+f,e},r.initDefaultProps=function(){var t=r.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}(),r}(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function KL(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function xv(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,A=e.width,o=i/2,s=e.x,l=e.y,u="left",f="top";if(n instanceof Array)s+=Pn(n[0],e.width),l+=Pn(n[1],e.height),u=null,f=null;else switch(n){case"left":s-=a,l+=o,u="right",f="middle";break;case"right":s+=a+A,l+=o,f="middle";break;case"top":s+=A/2,l-=a,u="center",f="bottom";break;case"bottom":s+=A/2,l+=i+a,u="center";break;case"inside":s+=A/2,l+=o,u="center",f="middle";break;case"insideLeft":s+=a,l+=o,f="middle";break;case"insideRight":s+=A-a,l+=o,u="right",f="middle";break;case"insideTop":s+=A/2,l+=a,u="center";break;case"insideBottom":s+=A/2,l+=i-a,u="center",f="bottom";break;case"insideTopLeft":s+=a,l+=a;break;case"insideTopRight":s+=A-a,l+=a,u="right";break;case"insideBottomLeft":s+=a,l+=i-a,f="bottom";break;case"insideBottomRight":s+=A-a,l+=i-a,u="right",f="bottom";break}return r=r||{},r.x=s,r.y=l,r.align=u,r.verticalAlign=f,r}var lg="__zr_normal__",ug=da.concat(["ignore"]),tK=ha(da,function(r,t){return r[t]=!0,r},{ignore:!1}),Mo={},eK=new Dt(0,0,0,0),kd=function(){function r(t){this.id=yL(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=e.innerTransformable,A=void 0,o=void 0,s=!1;i.parent=a?this:null;var l=!1;if(i.copyTransform(e),n.position!=null){var u=eK;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),a||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mo,n,u):xv(Mo,n,u),i.x=Mo.x,i.y=Mo.y,A=Mo.align,o=Mo.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var c=void 0,h=void 0;f==="center"?(c=u.width*.5,h=u.height*.5):(c=Pn(f[0],u.width),h=Pn(f[1],u.height)),l=!0,i.originX=-i.x+c+(a?0:u.x),i.originY=-i.y+h+(a?0:u.y)}}n.rotation!=null&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],l||(i.originX=-v[0],i.originY=-v[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(g=n.insideFill,y=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(g),m=!0)):(g=n.outsideFill,y=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||y!==p.stroke||m!==p.autoStroke||A!==p.align||o!==p.verticalAlign)&&(s=!0,p.fill=g,p.stroke=y,p.autoStroke=m,p.align=A,p.verticalAlign=o,e.setDefaultTextStyle(p)),e.__dirty|=Gr,s&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?m0:y0},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Xr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),A=0;A<3;A++)n[A]=n[A]*a+(i?0:255)*(1-a);return n[3]=1,Oa(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},V(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(yt(t))for(var n=t,a=Ht(n),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(lg,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===lg,A=this.hasState();if(!(!A&&i)){var o=this.currentStates,s=this.stateTransition;if(!(Qt(o,t)>=0&&(e||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!i){OB("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||a);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var f=this._textContent,c=this._textGuide;return f&&f.useState(t,e,n,u),c&&c.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gr),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,A=t.length,o=A===i.length;if(o){for(var s=0;s0,v);var d=this._textContent,p=this._textGuide;d&&d.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Gr)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=Qt(a,t),A=Qt(a,e)>=0;i>=0?A?a.splice(i,1):a[i]=e:n&&!A&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a=0&&i.splice(A,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,a=n.length,i=[],A=0;A0&&e.during&&i[0].during(function(v,d){e.during(d)});for(var c=0;c0||a.force&&!A.length){var S=void 0,x=void 0,b=void 0;if(o){x={},c&&(S={});for(var w=0;w=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=Qt(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var A=this.__zr;A&&i.removeSelfFromZr(A),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=Qt(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;ah&&l){var v=Math.floor(h/o);f=f.slice(0,v)}if(r&&i&&u!=null)for(var d=sM(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;po&&dg(e,r.substring(o,l),t,A),dg(e,s[2],t,A,s[1]),o=vg.lastIndex}oa){_>0?(y.tokens=y.tokens.slice(0,_),p(y,w,m),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var F=C.width,E=F==null||F==="auto";if(typeof F=="string"&&F.charAt(F.length-1)==="%")B.percentWidth=F,u.push(B),B.contentWidth=Yr(B.text,b);else{if(E){var D=C.backgroundColor,Q=D&&D.image;Q&&(Q=KK(Q),Vd(Q)&&(B.width=Math.max(B.width,Q.width*I/Q.height)))}var M=v&&n!=null?n-w:null;M!=null&&M0&&v+n.accumWidth>n.width&&(u=t.split(` `),l=!0),n.accumWidth=v}else{var d=uM(t,s,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+h,f=d.linesWidths,u=d.lines}}else u=t.split(` `);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var qK=ha(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function jK(r){return JK(r)?!!qK[r]:!0}function uM(r,t,e,n,a){for(var i=[],A=[],o="",s="",l=0,u=0,f=0;fe:a+u+h>e){u?(o||s)&&(v?(o||(o=s,s="",l=0,u=l),i.push(o),A.push(u-l),s+=c,l+=h,o="",u=l):(s&&(o+=s,s="",l=0),i.push(o),A.push(u),o=c,u=h)):v?(i.push(s),A.push(l),s=c,l=h):(i.push(c),A.push(h));continue}u+=h,v?(s+=c,l+=h):(s&&(o+=s,s="",l=0),o+=c)}return!i.length&&!o&&(o=r,s="",l=0),s&&(o+=s),o&&(i.push(o),A.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:A}}var C0="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Gd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[C0]=!0;var DS=["z","z2","invisible"],t3=["invisible"],gn=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ht(e),a=0;a1e-4){o[0]=r-e,o[1]=t-n,s[0]=r+e,s[1]=t+n;return}if(dc[0]=mg(a)*e+r,dc[1]=yg(a)*n+t,pc[0]=mg(i)*e+r,pc[1]=yg(i)*n+t,l(o,dc,pc),u(s,dc,pc),a=a%hA,a<0&&(a=a+hA),i=i%hA,i<0&&(i=i+hA),a>i&&!A?i+=hA:aa&&(gc[0]=mg(h)*e+r,gc[1]=yg(h)*n+t,l(o,gc,o),u(s,gc,s))}var te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vA=[],dA=[],Gn=[],ii=[],Kn=[],zn=[],wg=Math.min,Bg=Math.max,pA=Math.cos,gA=Math.sin,xa=Math.abs,S0=Math.PI,vi=S0*2,_g=typeof Float32Array<"u",wl=[];function Cg(r){var t=Math.round(r/S0*1e8)/1e8;return t%2*S0}function t_(r,t){var e=Cg(r[0]);e<0&&(e+=vi);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=vi?a=e+vi:t&&e-a>=vi?a=e-vi:!t&&e>a?a=e+(vi-Cg(e-a)):t&&e0&&(this._ux=xa(n/Sv/t)||0,this._uy=xa(n/Sv/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(te.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=xa(t-this._xi),a=xa(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(te.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var A=n*n+a*a;A>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=A)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){return this._drawPendingPt(),this.addData(te.C,t,e,n,a,i,A),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,A),this._xi=i,this._yi=A,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(te.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,A){this._drawPendingPt(),wl[0]=a,wl[1]=i,t_(wl,A),a=wl[0],i=wl[1];var o=i-a;return this.addData(te.A,t,e,n,n,a,o,0,A?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,A),this._xi=pA(i)*n+t,this._yi=gA(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(te.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(te.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&_g&&(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Gn[0]=Gn[1]=Kn[0]=Kn[1]=Number.MAX_VALUE,ii[0]=ii[1]=zn[0]=zn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,A;for(A=0;An||xa(m)>a||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=p,A=g);break}case te.C:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++],B=t[c++],C=t[c++];d=SG(i,A,w,_,p,g,B,C,10),i=B,A=C;break}case te.Q:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++];d=bG(i,A,w,_,p,g,10),i=p,A=g;break}case te.A:var S=t[c++],x=t[c++],b=t[c++],I=t[c++],F=t[c++],E=t[c++],D=E+F;c+=1,v&&(o=pA(F)*b+S,s=gA(F)*I+x),d=Bg(b,I)*wg(vi,Math.abs(E)),i=pA(D)*b+S,A=gA(D)*I+x;break;case te.R:{o=i=t[c++],s=A=t[c++];var Q=t[c++],M=t[c++];d=Q*2+M*2;break}case te.Z:{var y=o-i,m=s-A;d=Math.sqrt(y*y+m*m),i=o,A=s;break}}d>=0&&(l[f++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,A=this._len,o,s,l,u,f,c,h=e<1,v,d,p=0,g=0,y,m=0,w,_;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=e*d,!y)))t:for(var B=0;B0&&(t.lineTo(w,_),m=0),C){case te.M:o=l=n[B++],s=u=n[B++],t.moveTo(l,u);break;case te.L:{f=n[B++],c=n[B++];var x=xa(f-l),b=xa(c-u);if(x>a||b>i){if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+f*F,u*(1-F)+c*F);break t}p+=I}t.lineTo(f,c),l=f,u=c,m=0}else{var E=x*x+b*b;E>m&&(w=f,_=c,m=E)}break}case te.C:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++],P=n[B++],O=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;Wi(l,D,M,P,F,vA),Wi(u,Q,R,O,F,dA),t.bezierCurveTo(vA[1],dA[1],vA[2],dA[2],vA[3],dA[3]);break t}p+=I}t.bezierCurveTo(D,Q,M,R,P,O),l=P,u=O;break}case te.Q:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;$u(l,D,M,F,vA),$u(u,Q,R,F,dA),t.quadraticCurveTo(vA[1],dA[1],vA[2],dA[2]);break t}p+=I}t.quadraticCurveTo(D,Q,M,R),l=M,u=R;break}case te.A:var G=n[B++],X=n[B++],J=n[B++],At=n[B++],lt=n[B++],wt=n[B++],Bt=n[B++],N=!n[B++],z=J>At?J:At,$=xa(J-At)>.001,q=lt+wt,j=!1;if(h){var I=v[g++];p+I>y&&(q=lt+wt*(y-p)/I,j=!0),p+=I}if($&&t.ellipse?t.ellipse(G,X,J,At,Bt,lt,q,N):t.arc(G,X,z,lt,q,N),j)break t;S&&(o=pA(lt)*J+G,s=gA(lt)*At+X),l=pA(q)*J+G,u=gA(q)*At+X;break;case te.R:o=l=n[B],s=u=n[B+1],f=n[B++],c=n[B++];var ct=n[B++],L=n[B++];if(h){var I=v[g++];if(p+I>y){var U=y-p;t.moveTo(f,c),t.lineTo(f+wg(U,ct),c),U-=ct,U>0&&t.lineTo(f+ct,c+wg(U,L)),U-=L,U>0&&t.lineTo(f+Bg(ct-U,0),c+L),U-=ct,U>0&&t.lineTo(f,c+Bg(L-U,0));break t}p+=I}t.rect(f,c,ct,L);break;case te.Z:if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+o*F,u*(1-F)+s*F);break t}p+=I}t.closePath(),l=o,u=s}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=te,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Bi(r,t,e,n,a,i,A){if(a===0)return!1;var o=a,s=0,l=r;if(A>t+o&&A>n+o||Ar+o&&i>e+o||it+f&&u>n+f&&u>i+f&&u>o+f||ur+f&&l>e+f&&l>a+f&&l>A+f||lt+l&&s>n+l&&s>i+l||sr+l&&o>e+l&&o>a+l||oe||u+la&&(a+=Bl);var c=Math.atan2(s,o);return c<0&&(c+=Bl),c>=n&&c<=a||c+Bl>=n&&c+Bl<=a}function Qa(r,t,e,n,a,i){if(i>t&&i>n||ia?o:0}var Ai=ga.CMD,yA=Math.PI*2,o3=1e-4;function s3(r,t){return Math.abs(r-t)t&&l>n&&l>i&&l>o||l1&&l3(),h=Le(t,n,i,o,nn[0]),c>1&&(v=Le(t,n,i,o,nn[1]))),c===2?pt&&o>n&&o>i||o=0&&l<=1){for(var u=0,f=Ne(t,n,i,l),c=0;ce||o<-e)return 0;var s=Math.sqrt(e*e-o*o);dr[0]=-s,dr[1]=s;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=yA-1e-4){n=0,a=yA;var u=i?1:-1;return A>=dr[0]+r&&A<=dr[1]+r?u:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=yA,a+=yA);for(var c=0,h=0;h<2;h++){var v=dr[h];if(v+r>A){var d=Math.atan2(o,v),u=i?1:-1;d<0&&(d=yA+d),(d>=n&&d<=a||d+yA>=n&&d+yA<=a)&&(d>Math.PI/2&&d1&&(e||(o+=Qa(s,l,u,f,n,a))),p&&(s=i[v],l=i[v+1],u=s,f=l),d){case Ai.M:u=i[v++],f=i[v++],s=u,l=f;break;case Ai.L:if(e){if(Bi(s,l,i[v],i[v+1],t,n,a))return!0}else o+=Qa(s,l,i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.C:if(e){if(i3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=u3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.Q:if(e){if(fM(s,l,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=f3(s,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],_=i[v++],B=i[v++];v+=1;var C=!!(1-i[v++]);c=Math.cos(_)*m+g,h=Math.sin(_)*w+y,p?(u=c,f=h):o+=Qa(s,l,c,h,n,a);var S=(n-g)*w/m+g;if(e){if(A3(g,y,w,_,_+B,C,t,S,a))return!0}else o+=c3(g,y,w,_,_+B,C,S,a);s=Math.cos(_+B)*m+g,l=Math.sin(_+B)*w+y;break;case Ai.R:u=s=i[v++],f=l=i[v++];var x=i[v++],b=i[v++];if(c=u+x,h=f+b,e){if(Bi(u,f,c,f,t,n,a)||Bi(c,f,c,h,t,n,a)||Bi(c,h,u,h,t,n,a)||Bi(u,h,u,f,t,n,a))return!0}else o+=Qa(c,f,c,h,n,a),o+=Qa(u,h,u,f,n,a);break;case Ai.Z:if(e){if(Bi(s,l,u,f,t,n,a))return!0}else o+=Qa(s,l,u,f,n,a);s=u,l=f;break}}return!e&&!s3(l,f)&&(o+=Qa(s,l,u,f,n,a)||0),o!==0}function h3(r,t,e){return cM(r,0,!1,t,e)}function v3(r,t,e,n){return cM(r,t,!0,e,n)}var bv=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),d3={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gd.style)},Sg=da.concat(["invisible","culling","z","z2","zlevel","parent"]),Mt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.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(s){e.buildPath(s,e.shape)}),a.silent=!0;var i=a.style;for(var A in n)i[A]!==n[A]&&(i[A]=n[A]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var o=0;o.5?y0:n>.2?jG:m0}else if(e)return m0}return y0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),A=_v(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var A=this.path;(i||this.__dirty&As)&&(A.beginPath(),this.buildPath(A,this.shape,!1),this.pathUpdated()),e=A.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),A=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var o=this.path;if(this.hasStroke()){var s=A.lineWidth,l=A.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),v3(o,s/l,e,n)))return!0}if(this.hasFill())return h3(o,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=As,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:V(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&As)},t.prototype.createStyle=function(e){return Pd(bv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,A,o){r.prototype._applyStateObj.call(this,e,n,a,i,A,o);var s=!(n&&i),l;if(n&&n.shape?A?i?l=n.shape:(l=V({},a.shape),V(l,n.shape)):(l=V({},i?this.shape:a.shape),V(l,n.shape)):s&&(l=a.shape),l)if(A){this.shape=V({},this.shape);for(var u={},f=Ht(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Pd(p3,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=Ef(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.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 e=t.prototype;e.dirtyRectTolerance=10}(),t}(gn);Us.prototype.type="tspan";var g3=gt({x:0,y:0},eo),y3={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gd.style)};function m3(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ge=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Pd(g3,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=m3(n.image)?n.image:this.__image;if(!i)return 0;var A=e==="width"?"height":"width",o=n[A];return o==null?i[e]:i[e]/i[A]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return y3},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Dt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gn);Ge.prototype.type="image";function w3(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,A=t.r,o,s,l,u;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof A=="number"?o=s=l=u=A:A instanceof Array?A.length===1?o=s=l=u=A[0]:A.length===2?(o=l=A[0],s=u=A[1]):A.length===3?(o=A[0],s=u=A[1],l=A[2]):(o=A[0],s=A[1],l=A[2],u=A[3]):o=s=l=u=0;var f;o+s>a&&(f=o+s,o*=a/f,s*=a/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+l>i&&(f=s+l,s*=i/f,l*=i/f),o+u>i&&(f=o+u,o*=i/f,u*=i/f),r.moveTo(e+o,n),r.lineTo(e+a-s,n),s!==0&&r.arc(e+a-s,n+s,s,-Math.PI/2,0),r.lineTo(e+a,n+i-l),l!==0&&r.arc(e+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(e+u,n+i),u!==0&&r.arc(e+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(e,n+o),o!==0&&r.arc(e+o,n+o,o,Math.PI,Math.PI*1.5)}var ds=Math.round;function hM(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,A=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=A;var o=e&&e.lineWidth;return o&&(ds(n*2)===ds(a*2)&&(r.x1=r.x2=KA(n,o,!0)),ds(i*2)===ds(A*2)&&(r.y1=r.y2=KA(i,o,!0))),r}}function vM(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,A=t.height;r.x=n,r.y=a,r.width=i,r.height=A;var o=e&&e.lineWidth;return o&&(r.x=KA(n,o,!0),r.y=KA(a,o,!0),r.width=Math.max(KA(n+i,o,!1)-r.x,i===0?0:1),r.height=Math.max(KA(a+A,o,!1)-r.y,A===0?0:1)),r}}function KA(r,t,e){if(!t)return r;var n=ds(r*2);return(n+ds(t))%2===0?n/2:(n+(e?1:-1))/2}var B3=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),_3={},Nt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new B3},t.prototype.buildPath=function(e,n){var a,i,A,o;if(this.subPixelOptimize){var s=vM(_3,n,this.style);a=s.x,i=s.y,A=s.width,o=s.height,s.r=n.r,n=s}else a=n.x,i=n.y,A=n.width,o=n.height;n.r?w3(e,n):e.rect(a,i,A,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mt);Nt.prototype.type="rect";var PS={fill:"#000"},RS=2,C3={style:gt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Gd.style)},Gt=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=PS,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,F=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),E=A.calculatedLineHeight,D=0;D=0&&(D=B[E],D.align==="right");)this._placeToken(D,e,S,g,F,"right",m),x-=D.width,F-=D.width,E--;for(I+=(i-(I-p)-(y-F)-x)/2;b<=E;)D=B[b],this._placeToken(D,e,S,g,I+D.width/2,"center",m),I+=D.width,b++;g+=S}},t.prototype._placeToken=function(e,n,a,i,A,o,s){var l=n.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,f=i+a/2;u==="top"?f=i+e.height/2:u==="bottom"&&(f=i+a-e.height/2);var c=!e.isLineHolder&&xg(l);c&&this._renderBackground(l,n,o==="right"?A-e.width:o==="center"?A-e.width/2:A,f-e.height/2,e.width,e.height);var h=!!l.backgroundColor,v=e.textPadding;v&&(A=GS(A,o,v),f-=e.height/2-v[0]-e.innerHeight/2);var d=this._getOrCreateChild(Us),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=VS("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),_=NS("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!s&&(!g.autoStroke||y)?(m=RS,g.stroke):null),B=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=A,p.y=f,B&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Ki,p.opacity=ua(l.opacity,n.opacity,1),OS(p,l),_&&(p.lineWidth=ua(l.lineWidth,n.lineWidth,m),p.lineDash=St(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=_),w&&(p.fill=w);var C=e.contentWidth,S=e.contentHeight;d.setBoundingRect(new Dt(Jl(p.x,C,p.textAlign),os(p.y,S,p.textBaseline),C,S))},t.prototype._renderBackground=function(e,n,a,i,A,o){var s=e.backgroundColor,l=e.borderWidth,u=e.borderColor,f=s&&s.image,c=s&&!f,h=e.borderRadius,v=this,d,p;if(c||e.lineHeight||l&&u){d=this._getOrCreateChild(Nt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=A,g.height=o,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=s||null,y.fillOpacity=St(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Ge),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=s.image,m.x=a,m.y=i,m.width=A,m.height=o}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=St(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=ua(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return pM(e)&&(n=[e.fontStyle,e.fontWeight,dM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&En(n)||e.textFont||e.font},t}(gn),S3={left:!0,right:1,center:1},x3={top:1,bottom:1,middle:1},HS=["fontStyle","fontWeight","fontSize","fontFamily"];function dM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?PB+"px":r+"px"}function OS(r,t){for(var e=0;e=0,i=!1;if(r instanceof Mt){var A=gM(r),o=a&&A.selectFill||A.normalFill,s=a&&A.selectStroke||A.normalStroke;if(Uo(o)||Uo(s)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=V({},n),l=V({},l),l.fill=o):!Uo(l.fill)&&Uo(o)?(i=!0,n=V({},n),l=V({},l),l.fill=u0(o)):!Uo(l.stroke)&&Uo(s)&&(i||(n=V({},n),l=V({},l)),l.stroke=u0(s)),n.style=l}}if(n&&n.z2==null){i||(n=V({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??Js)}return n}function Q3(r,t,e){if(e&&e.z2==null){e=V({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??T3)}return e}function L3(r,t,e){var n=Qt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:E3(r,["opacity"],t,{opacity:1});e=e||{};var A=e.style||{};return A.opacity==null&&(e=V({},e),A=V({opacity:n?a:i.opacity*.1},A),e.style=A),e}function bg(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return D3(this,r,t,e);if(r==="blur")return L3(this,r,e);if(r==="select")return Q3(this,r,e)}return e}function po(r){r.stateProxy=bg;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=bg),e&&(e.stateProxy=bg)}function YS(r,t){!SM(r,t)&&!r.__highByOuter&&ti(r,yM)}function ZS(r,t){!SM(r,t)&&!r.__highByOuter&&ti(r,mM)}function Wa(r,t){r.__highByOuter|=1<<(t||0),ti(r,yM)}function Xa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ti(r,mM)}function BM(r){ti(r,n_)}function a_(r){ti(r,wM)}function _M(r){ti(r,I3)}function CM(r){ti(r,F3)}function SM(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function xM(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var A=e_(i),o=a==="series",s=o?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!o&&n.push(s),A.isBlured&&(s.group.traverse(function(l){wM(l)}),o&&e.push(i)),A.isBlured=!1}),T(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function b0(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(l,u){for(var f=0;f0){var o={dataIndex:A,seriesIndex:e.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function no(r,t,e){zA(r,!0),ti(r,po),I0(r,t,e)}function O3(r){zA(r,!1)}function ye(r,t,e,n){n?O3(r):no(r,t,e)}function I0(r,t,e){var n=Ct(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var JS=["emphasis","blur","select"],k3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $e(r,t,e,n){e=e||"itemStyle";for(var a=0;a1&&(A*=Tg(v),o*=Tg(v));var d=(a===i?-1:1)*Tg((A*A*(o*o)-A*A*(h*h)-o*o*(c*c))/(A*A*(h*h)+o*o*(c*c)))||0,p=d*A*h/o,g=d*-o*c/A,y=(r+e)/2+mc(f)*p-yc(f)*g,m=(t+n)/2+yc(f)*p+mc(f)*g,w=ex([1,0],[(c-p)/A,(h-g)/o]),_=[(c-p)/A,(h-g)/o],B=[(-1*c-p)/A,(-1*h-g)/o],C=ex(_,B);if(E0(_,B)<=-1&&(C=_l),E0(_,B)>=1&&(C=0),C<0){var S=Math.round(C/_l*1e6)/1e6;C=_l*2+S%2*_l}u.addData(l,y,m,A,o,w,C,f,i)}var W3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,X3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Y3(r){var t=new ga;if(!r)return t;var e=0,n=0,a=e,i=n,A,o=ga.CMD,s=r.match(W3);if(!s)return t;for(var l=0;lD*D+Q*Q&&(S=b,x=I),{cx:S,cy:x,x0:-u,y0:-f,x1:S*(a/_-1),y1:x*(a/_-1)}}function e5(r){var t;if(K(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function r5(r,t){var e,n=ql(t.r,0),a=ql(t.r0||0,0),i=n>0,A=a>0;if(!(!i&&!A)){if(i||(n=a,a=0),a>n){var o=n;n=a,a=o}var s=t.startAngle,l=t.endAngle;if(!(isNaN(s)||isNaN(l))){var u=t.cx,f=t.cy,c=!!t.clockwise,h=nx(l-s),v=h>Ig&&h%Ig;if(v>Sn&&(h=v),!(n>Sn))r.moveTo(u,f);else if(h>Ig-Sn)r.moveTo(u+n*Ro(s),f+n*mA(s)),r.arc(u,f,n,s,l,!c),a>Sn&&(r.moveTo(u+a*Ro(l),f+a*mA(l)),r.arc(u,f,a,l,s,c));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0,C=void 0,S=void 0,x=void 0,b=void 0,I=void 0,F=void 0,E=void 0,D=void 0,Q=n*Ro(s),M=n*mA(s),R=a*Ro(l),P=a*mA(l),O=h>Sn;if(O){var G=t.cornerRadius;G&&(e=e5(G),d=e[0],p=e[1],g=e[2],y=e[3]);var X=nx(n-a)/2;if(m=Wn(X,g),w=Wn(X,y),_=Wn(X,d),B=Wn(X,p),x=C=ql(m,w),b=S=ql(_,B),(C>Sn||S>Sn)&&(I=n*Ro(l),F=n*mA(l),E=a*Ro(s),D=a*mA(s),hSn){var $=Wn(g,x),q=Wn(y,x),j=wc(E,D,Q,M,n,$,c),ct=wc(I,F,R,P,n,q,c);r.moveTo(u+j.cx+j.x0,f+j.cy+j.y0),x0&&r.arc(u+j.cx,f+j.cy,$,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,n,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),!c),q>0&&r.arc(u+ct.cx,f+ct.cy,q,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.moveTo(u+Q,f+M),r.arc(u,f,n,s,l,!c);if(!(a>Sn)||!O)r.lineTo(u+R,f+P);else if(b>Sn){var $=Wn(d,b),q=Wn(p,b),j=wc(R,P,I,F,a,-q,c),ct=wc(Q,M,E,D,a,-$,c);r.lineTo(u+j.cx+j.x0,f+j.cy+j.y0),b0&&r.arc(u+j.cx,f+j.cy,q,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,a,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),c),$>0&&r.arc(u+ct.cx,f+ct.cy,$,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.lineTo(u+R,f+P),r.arc(u,f,a,l,s,c)}r.closePath()}}}var n5=function(){function r(){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 r}(),Cr=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new n5},t.prototype.buildPath=function(e,n){r5(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mt);Cr.prototype.type="sector";var a5=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Lf=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new a5},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,A,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,A,!0)},t}(Mt);Lf.prototype.type="ring";function i5(r,t,e,n){var a=[],i=[],A=[],o=[],s,l,u,f;if(n){u=[1/0,1/0],f=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(n){var i=i5(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var A=a.length,o=0;o<(e?A:A-1);o++){var s=i[o*2],l=i[o*2+1],u=a[(o+1)%A];r.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var o=1,f=a.length;oBA[1]){if(o=!1,i)return o;var u=Math.abs(BA[0]-wA[1]),f=Math.abs(wA[0]-BA[1]);Math.min(u,f)>a.len()&&(u0){var f=u.duration,c=u.delay,h=u.easing,v={duration:f,delay:c||0,easing:h,done:i,force:!!i||!!A,setToFinal:!l,scope:r,during:A};o?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!o&&t.attr(e),A&&A(1),i&&i()}function zt(r,t,e,n,a,i){s_("update",r,t,e,n,a,i)}function ue(r,t,e,n,a,i){s_("enter",r,t,e,n,a,i)}function xs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Ax(r){return!r.isGroup}function m5(r){return r.shape!=null}function Pf(r,t,e){if(!r||!t)return;function n(A){var o={};return A.traverse(function(s){Ax(s)&&s.anid&&(o[s.anid]=s)}),o}function a(A){var o={x:A.x,y:A.y,rotation:A.rotation};return m5(A)&&(o.shape=V({},A.shape)),o}var i=n(r);t.traverse(function(A){if(Ax(A)&&A.anid){var o=i[A.anid];if(o){var s=a(A);A.attr(a(o)),zt(A,s,e,Ct(A).dataIndex)}}})}function OM(r,t){return Y(r,function(e){var n=e[0];n=Fv(n,t.x),n=Ev(n,t.x+t.width);var a=e[1];return a=Fv(a,t.y),a=Ev(a,t.y+t.height),[n,a]})}function w5(r,t){var e=Fv(r.x,t.x),n=Ev(r.x+r.width,t.x+t.width),a=Fv(r.y,t.y),i=Ev(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Rf(r,t,e){var n=V({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),gt(a,e),new Ge(n)):Zd(r.replace("path://",""),n,e,"center")}function jl(r,t,e,n,a){for(var i=0,A=a[a.length-1];i1)return!1;var p=Fg(h,v,u,f)/c;return!(p<0||p>1)}function Fg(r,t,e,n){return r*n-e*t}function B5(r){return r<=1e-6&&r>=-1e-6}function js(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,A=e.componentIndex,o={componentType:i,name:n,$vars:["name"]};o[i+"Index"]=A;var s=r.formatterParamsExtra;s&&T(Ht(s),function(u){st(o,u)||(o[u]=s[u],o.$vars.push(u))});var l=Ct(r.el);l.componentMainType=i,l.componentIndex=A,l.tooltipConfig={name:n,option:gt({content:n,encodeHTMLContent:!0,formatterParams:o},a)}}function ox(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function rA(r,t){if(r)if(K(r))for(var e=0;e=0&&o.push(s)}),o}}function nA(r,t){return Et(Et({},r,!0),t,!0)}const L5={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},M5={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:"旭日图",custom:"自定义图表",chart:"图表"}},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 Qv="ZH",f_="EN",bs=f_,Xh={},c_={},WM=Ut.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bs).toUpperCase();return r.indexOf(Qv)>-1?Qv:bs}():bs;function XM(r,t){r=r.toUpperCase(),c_[r]=new Yt(t),Xh[r]=t}function U5(r){if(nt(r)){var t=Xh[r.toUpperCase()]||{};return r===Qv||r===f_?mt(t):Et(mt(t),mt(Xh[bs]),!1)}else return Et(mt(r),mt(Xh[bs]),!1)}function L0(r){return c_[r]}function P5(){return c_[bs]}XM(f_,L5);XM(Qv,M5);var h_=1e3,v_=h_*60,Eu=v_*60,un=Eu*24,cx=un*365,tu={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}"},Cc="{yyyy}-{MM}-{dd}",hx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Cc,hour:Cc+" "+tu.hour,minute:Cc+" "+tu.minute,second:Cc+" "+tu.second,millisecond:tu.none},Qg=["year","month","day","hour","minute","second","millisecond"],YM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oi(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ts(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function R5(r){return r===Ts(r)}function H5(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qd(r,t,e,n){var a=pa(r),i=a[d_(e)](),A=a[Is(e)]()+1,o=Math.floor((A-1)/3)+1,s=a[jd(e)](),l=a["get"+(e?"UTC":"")+"Day"](),u=a[af(e)](),f=(u-1)%12+1,c=a[tp(e)](),h=a[ep(e)](),v=a[rp(e)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof Yt?n:L0(n||WM)||P5(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),_=y.get("dayOfWeek"),B=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,oi(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,m[A-1]).replace(/{MMM}/g,w[A-1]).replace(/{MM}/g,oi(A,2)).replace(/{M}/g,A+"").replace(/{dd}/g,oi(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,B[l]).replace(/{e}/g,l+"").replace(/{HH}/g,oi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,oi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,oi(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,oi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,oi(v,3)).replace(/{S}/g,v+"")}function O5(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var A=V({},tu);if(r.level>0)for(var o=0;o=0;--o)if(s[l]){i=s[l];break}i=i||A.none}if(K(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return qd(new Date(r.value),i,a,n)}function ZM(r,t){var e=pa(r),n=e[Is(t)]()+1,a=e[jd(t)](),i=e[af(t)](),A=e[tp(t)](),o=e[ep(t)](),s=e[rp(t)](),l=s===0,u=l&&o===0,f=u&&A===0,c=f&&i===0,h=c&&a===1,v=h&&n===1;return v?"year":h?"month":c?"day":f?"hour":u?"minute":l?"second":"millisecond"}function vx(r,t,e){var n=Kt(r)?pa(r):r;switch(t=t||ZM(r,e),t){case"year":return n[d_(e)]();case"half-year":return n[Is(e)]()>=6?1:0;case"quarter":return Math.floor((n[Is(e)]()+1)/4);case"month":return n[Is(e)]();case"day":return n[jd(e)]();case"half-day":return n[af(e)]()/24;case"hour":return n[af(e)]();case"minute":return n[tp(e)]();case"second":return n[ep(e)]();case"millisecond":return n[rp(e)]()}}function d_(r){return r?"getUTCFullYear":"getFullYear"}function Is(r){return r?"getUTCMonth":"getMonth"}function jd(r){return r?"getUTCDate":"getDate"}function af(r){return r?"getUTCHours":"getHours"}function tp(r){return r?"getUTCMinutes":"getMinutes"}function ep(r){return r?"getUTCSeconds":"getSeconds"}function rp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function k5(r){return r?"setUTCFullYear":"setFullYear"}function $M(r){return r?"setUTCMonth":"setMonth"}function JM(r){return r?"setUTCDate":"setDate"}function qM(r){return r?"setUTCHours":"setHours"}function jM(r){return r?"setUTCMinutes":"setMinutes"}function tU(r){return r?"setUTCSeconds":"setSeconds"}function eU(r){return r?"setUTCMilliseconds":"setMilliseconds"}function rU(r){if(!JL(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function nU(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var rl=VB;function M0(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&En(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var A=t==="time",o=r instanceof Date;if(A||o){var s=A?pa(r):r;if(isNaN(+s)){if(o)return"-"}else return qd(s,n,e)}if(t==="ordinal")return qm(r)?a(r):Kt(r)&&i(r)?r+"":"-";var l=za(r);return i(l)?rU(l):qm(r)?a(r):typeof r=="boolean"?r+"":"-"}var dx=["a","b","c","d","e","f","g"],Lg=function(r,t){return"{"+r+(t??"")+"}"};function aU(r,t,e){K(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var A=e.markerId||"markerX";return{renderMode:i,content:"{"+A+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function go(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Lv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Yh=T,iU=["left","right","top","bottom","width","height"],WA=[["width","left","right"],["height","top","bottom"]];function p_(r,t,e,n,a){var i=0,A=0;n==null&&(n=1/0),a==null&&(a=1/0);var o=0;t.eachChild(function(s,l){var u=s.getBoundingRect(),f=t.childAt(l+1),c=f&&f.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(c?-c.x+u.x:0);h=i+d,h>n||s.newline?(i=0,h=d,A+=o+e,o=u.height):o=Math.max(o,u.height)}else{var p=u.height+(c?-c.y+u.y:0);v=A+p,v>a||s.newline?(i+=o+e,A=0,v=p,o=u.width):o=Math.max(o,u.width)}s.newline||(s.x=i,s.y=A,s.markRedraw(),r==="horizontal"?i=h+e:A=v+e)})}var io=p_;xt(p_,"vertical");xt(p_,"horizontal");function G5(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(o)||isNaN(parseFloat(r.right)))&&(o=n),(isNaN(A)||isNaN(parseFloat(r.top)))&&(A=0),(isNaN(s)||isNaN(parseFloat(r.bottom)))&&(s=a),e=rl(e||0),{width:Math.max(o-i-e[1]-e[3],0),height:Math.max(s-A-e[0]-e[2],0)}}function Qe(r,t,e){e=rl(e||0);var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a),l=et(r.width,n),u=et(r.height,a),f=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(l)&&(l=n-o-c-i),isNaN(u)&&(u=a-s-f-A),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-o-l-c),isNaN(A)&&(A=a-s-u-f),r.left||r.right){case"center":i=n/2-l/2-e[3];break;case"right":i=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":A=a/2-u/2-e[0];break;case"bottom":A=a-u-f;break}i=i||0,A=A||0,isNaN(l)&&(l=n-c-i-(o||0)),isNaN(u)&&(u=a-f-A-(s||0));var v=new Dt(i+e[3],A+e[0],l,u);return v.margin=e,v}function np(r,t,e,n,a,i){var A=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!A&&!o)return!1;var l;if(s==="raw")l=r.type==="group"?new Dt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var f=Qe(gt({width:l.width,height:l.height},t),e,n),c=A?f.x-l.x:0,h=o?f.y-l.y:0;return s==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function K5(r,t){return r[WA[t][0]]!=null||r[WA[t][1]]!=null&&r[WA[t][2]]!=null}function Af(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function Yi(r,t,e){var n=e&&e.ignoreSize;!K(n)&&(n=[n,n]);var a=A(WA[0],0),i=A(WA[1],1);l(WA[0],r,a),l(WA[1],r,i);function A(u,f){var c={},h=0,v={},d=0,p=2;if(Yh(u,function(m){v[m]=r[m]}),Yh(u,function(m){o(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g=0;s--)o=Et(o,a[s],!0);n.defaultOption=o}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Df(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Yt);oM(Rt,Yt);Nd(Rt);D5(Rt);Q5(Rt,W5);function W5(r){var t=[];return T(Rt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ia(e).main}),r!=="dataset"&&Qt(t,"dataset")<=0&&t.unshift("dataset"),t}var oU="";typeof navigator<"u"&&(oU=navigator.platform||"");var Ho="rgba(0, 0, 0, 0.2)";const X5={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ho,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ho,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ho,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ho,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ho,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ho,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:oU.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 sU=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mn="original",lr="arrayRows",wn="objectRows",ya="keyedColumns",Hi="typedArray",lU="unknown",fa="column",al="row",Ke={Must:1,Might:2,Not:3},uU=Vt();function Y5(r){uU(r).datasetMap=ft()}function fU(r,t,e){var n={},a=y_(t);if(!a||!r)return n;var i=[],A=[],o=t.ecModel,s=uU(o).datasetMap,l=a.uid+"_"+e.seriesLayoutBy,u,f;r=r.slice(),T(r,function(d,p){var g=yt(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,f=v(g)),n[g.name]=[]});var c=s.get(l)||s.set(l,{categoryWayDim:f,valueWayDim:0});T(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=c.valueWayDim;h(n[g],m,y),h(A,m,y),c.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=c.categoryWayDim;h(n[g],m,y),h(A,m,y),c.categoryWayDim+=y}});function h(d,p,g){for(var y=0;yt)return r[n];return r[e-1]}function vU(r,t,e,n,a,i,A){i=i||r;var o=t(i),s=o.paletteIdx||0,l=o.paletteNameMap=o.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=A==null||!n?e:j5(n,A);if(u=u||e,!(!u||!u.length)){var f=u[s];return a&&(l[a]=f),o.paletteIdx=(s+1)%u.length,f}}function tz(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Sc,Cl,gx,yx="\0_ec_inner",ez=1,w_=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,A,o){i=i||{},this.option=null,this._theme=new Yt(i),this._locale=new Yt(A),this._optionManager=o},t.prototype.setOption=function(e,n,a){var i=_x(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,_x(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var A=i.mountOption(e==="recreate");!this.option||e==="recreate"?gx(this,A):(this.restoreData(),this._mergeOption(A,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var o=i.getTimelineOption(this);o&&(a=!0,this._mergeOption(o,n))}if(!e||e==="recreate"||e==="media"){var s=i.getMediaOption(this);s.length&&T(s,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,A=this._componentsCount,o=[],s=ft(),l=n&&n.replaceMergeMainTypeMap;Y5(this),T(e,function(f,c){f!=null&&(Rt.hasClass(c)?c&&(o.push(c),s.set(c,!0)):a[c]=a[c]==null?mt(f):Et(a[c],f,!0))}),l&&l.each(function(f,c){Rt.hasClass(c)&&!s.get(c)&&(o.push(c),s.set(c,!0))}),Rt.topologicalTravel(o,Rt.getAllClassMainTypes(),u,this);function u(f){var c=J5(this,f,qt(e[f])),h=i.get(f),v=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=rM(h,c,v);bK(d,f,Rt),a[f]=null,i.set(f,null),A.set(f,0);var p=[],g=[],y=0,m;T(d,function(w,_){var B=w.existing,C=w.newOption;if(!C)B&&(B.mergeOption({},this),B.optionUpdated({},!1));else{var S=f==="series",x=Rt.getClass(f,w.keyInfo.subType,!S);if(!x)return;if(f==="tooltip"){if(m)return;m=!0}if(B&&B.constructor===x)B.name=w.keyInfo.name,B.mergeOption(C,this),B.optionUpdated(C,!1);else{var b=V({componentIndex:_},w.keyInfo);B=new x(C,this,this,b),V(B,b),w.brandNew&&(B.__requireNewView=!0),B.init(C,this,this),B.optionUpdated(null,!0)}}B?(p.push(B.option),g.push(B),y++):(p.push(void 0),g.push(void 0))},this),a[f]=p,i.set(f,g),A.set(f,y),f==="series"&&Sc(this)}this._seriesIndices||Sc(this)},t.prototype.getOption=function(){var e=mt(this.option);return T(e,function(n,a){if(Rt.hasClass(a)){for(var i=qt(n),A=i.length,o=!1,s=A-1;s>=0;s--)i[s]&&!tf(i[s])?o=!0:(i[s]=null,!o&&A--);i.length=A,e[a]=i}}),delete e[yx],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var A=0;A=t:e==="max"?r<=t:r===t}function uz(r,t){return r.join(",")===t.join(",")}var _n=T,of=yt,Cx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ug(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Cx.length;e=0;p--){var g=r[p];if(o||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(s==="all"||s==="positive"&&y>0||s==="negative"&&y<0||s==="samesign"&&c>=0&&y>0||s==="samesign"&&c<=0&&y<0){c=dK(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}var ap=function(){function r(t){this.data=t.data||(t.sourceFormat===ya?{}:[]),this.sourceFormat=t.sourceFormat||lU,this.seriesLayoutBy=t.seriesLayoutBy||fa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nd&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};Ex=(t={},t[lr+"_"+fa]={pure:!0,appendData:i},t[lr+"_"+al]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wn]={pure:!0,appendData:i},t[ya]={pure:!0,appendData:function(A){var o=this._data;T(A,function(s,l){for(var u=o[l]||(o[l]=[]),f=0;f<(s||[]).length;f++)u.push(s[f])})}},t[mn]={appendData:i},t[Hi]={persistent:!1,pure:!0,appendData:function(A){this._data=A},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(A){for(var o=0;o=0&&(d=A.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Rs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Mx(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Du(r){return new Tz(r)}var Tz=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var A=u(this._modBy),o=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;(A!==s||o!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=s,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?o:A}};return i;function A(){return t=r?null:st},gte:function(r,t){return r>=t}},Fz=function(){function r(t,e){if(!Kt(e)){var n="";Xt(n)}this._opFn=xU[t],this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){return Kt(t)?this._opFn(t,this._rvalFloat):this._opFn(za(t),this._rvalFloat)},r}(),bU=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Kt(t)?t:za(t),a=Kt(e)?e:za(e),i=isNaN(n),A=isNaN(a);if(i&&(n=this._incomparable),A&&(a=this._incomparable),i&&A){var o=nt(t),s=nt(e);o&&(n=s?t:0),s&&(a=o?e:0)}return na?-this._resultLT:0},r}(),Ez=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=za(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Dz(r,t){return r==="eq"||r==="ne"?new Ez(r==="eq",t):st(xU,r)?new Fz(r,t):null}var Qz=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Oi(t,e)},r}();function Lz(r,t){var e=new Qz,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,A="";r.seriesLayoutBy!==fa&&Xt(A);var o=[],s={},l=r.dimensionsDefine;if(l)T(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(o.push(y),g!=null){var m="";st(s,g)&&Xt(m),s[g]=y}});else for(var u=0;u65535?Nz:Vz}function Oo(){return[1/0,-1/0]}function Gz(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Rx(r,t,e,n,a){var i=FU[e||"float"];if(a){var A=r[t],o=A&&A.length;if(o!==n){for(var s=new i(n),l=0;lp[1]&&(p[1]=d)}return this._rawCount=this._count=s,{start:o,end:s}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,A=this._dimensions,o=A.length,s=this._rawExtent,l=Y(A,function(y){return y.property}),u=0;ug[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=A-1;else return A}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],A=[];if(!i)return A;n==null&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,f=this.count();u=0&&s<0)&&(o=v,s=h,l=0),h===s&&(A[l++]=u))}return A.length=l,A},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=c||isNaN(y))&&(s[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=t[a[1]][0],_=t[a[1]][1],g=0;g=f&&y<=c||isNaN(y))&&(B>=w&&B<=_||isNaN(B))&&(s[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g=f&&y<=c||isNaN(y))&&(s[l++]=C)}else for(var g=0;gt[b][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(g))}return lg[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],A=this.count(),o=0,s=Math.floor(1/e),l=this.getRawIndex(0),u,f,c,h=new(xl(this._rawCount))(Math.min((Math.ceil(A/s)+2)*2,A));h[o++]=l;for(var v=1;vu&&(u=f,c=w)}I>0&&Iu-v&&(s=u-v,o.length=s);for(var d=0;df[1]&&(f[1]=g),c[h++]=y}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,A=this.count();is&&(s=f)}return A=[o,s],this._extent[t]=A,A},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return Oi(e[i],this._dimensions[i])}Hg={arrayRows:t,objectRows:function(e,n,a,i){return Oi(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var A=e&&(e.value==null?e:e.value);return Oi(A instanceof Array?A[i]:A,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),EU=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(xc(t)){var A=t,o=void 0,s=void 0,l=void 0;if(n){var u=e[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,i=[u._getVersionSign()]}else o=A.get("data",!0),s=Mr(o)?Hi:mn,i=[];var f=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},h=St(f.seriesLayoutBy,c.seriesLayoutBy)||null,v=St(f.sourceHeader,c.sourceHeader),d=St(f.dimensions,c.dimensions),p=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=p?[R0(o,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},s)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[R0(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Ox(i)}var A,o=[],s=[];return T(t,function(l){l.prepareSource();var u=l.getSource(a||0),f="";a!=null&&!u&&Ox(f),o.push(u),s.push(l._getVersionSign())}),n?A=Oz(n,o,{datasetIndex:e.componentIndex}):a!=null&&(A=[wz(o[0])]),{sourceList:A,upstreamSignList:s}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;ee:a+u+h>e){u?(o||s)&&(v?(o||(o=s,s="",l=0,u=l),i.push(o),A.push(u-l),s+=c,l+=h,o="",u=l):(s&&(o+=s,s="",l=0),i.push(o),A.push(u),o=c,u=h)):v?(i.push(s),A.push(l),s=c,l=h):(i.push(c),A.push(h));continue}u+=h,v?(s+=c,l+=h):(s&&(o+=s,s="",l=0),o+=c)}return!i.length&&!o&&(o=r,s="",l=0),s&&(o+=s),o&&(i.push(o),A.push(u)),i.length===1&&(u+=a),{accumWidth:u,lines:i,linesWidths:A}}var C0="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Gd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[C0]=!0;var DS=["z","z2","invisible"],t3=["invisible"],gn=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ht(e),a=0;a1e-4){o[0]=r-e,o[1]=t-n,s[0]=r+e,s[1]=t+n;return}if(dc[0]=mg(a)*e+r,dc[1]=yg(a)*n+t,pc[0]=mg(i)*e+r,pc[1]=yg(i)*n+t,l(o,dc,pc),u(s,dc,pc),a=a%hA,a<0&&(a=a+hA),i=i%hA,i<0&&(i=i+hA),a>i&&!A?i+=hA:aa&&(gc[0]=mg(h)*e+r,gc[1]=yg(h)*n+t,l(o,gc,o),u(s,gc,s))}var te={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vA=[],dA=[],Gn=[],ii=[],Kn=[],zn=[],wg=Math.min,Bg=Math.max,pA=Math.cos,gA=Math.sin,xa=Math.abs,S0=Math.PI,vi=S0*2,_g=typeof Float32Array<"u",wl=[];function Cg(r){var t=Math.round(r/S0*1e8)/1e8;return t%2*S0}function t_(r,t){var e=Cg(r[0]);e<0&&(e+=vi);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=vi?a=e+vi:t&&e-a>=vi?a=e-vi:!t&&e>a?a=e+(vi-Cg(e-a)):t&&e0&&(this._ux=xa(n/Sv/t)||0,this._uy=xa(n/Sv/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(te.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=xa(t-this._xi),a=xa(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(te.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var A=n*n+a*a;A>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=A)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){return this._drawPendingPt(),this.addData(te.C,t,e,n,a,i,A),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,A),this._xi=i,this._yi=A,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(te.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,A){this._drawPendingPt(),wl[0]=a,wl[1]=i,t_(wl,A),a=wl[0],i=wl[1];var o=i-a;return this.addData(te.A,t,e,n,n,a,o,0,A?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,A),this._xi=pA(i)*n+t,this._yi=gA(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(te.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(te.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&_g&&(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Gn[0]=Gn[1]=Kn[0]=Kn[1]=Number.MAX_VALUE,ii[0]=ii[1]=zn[0]=zn[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,A;for(A=0;An||xa(m)>a||c===e-1)&&(d=Math.sqrt(y*y+m*m),i=p,A=g);break}case te.C:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++],B=t[c++],C=t[c++];d=SG(i,A,w,_,p,g,B,C,10),i=B,A=C;break}case te.Q:{var w=t[c++],_=t[c++],p=t[c++],g=t[c++];d=bG(i,A,w,_,p,g,10),i=p,A=g;break}case te.A:var S=t[c++],x=t[c++],b=t[c++],I=t[c++],F=t[c++],E=t[c++],D=E+F;c+=1,v&&(o=pA(F)*b+S,s=gA(F)*I+x),d=Bg(b,I)*wg(vi,Math.abs(E)),i=pA(D)*b+S,A=gA(D)*I+x;break;case te.R:{o=i=t[c++],s=A=t[c++];var Q=t[c++],M=t[c++];d=Q*2+M*2;break}case te.Z:{var y=o-i,m=s-A;d=Math.sqrt(y*y+m*m),i=o,A=s;break}}d>=0&&(l[f++]=d,u+=d)}return this._pathLen=u,u},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,A=this._len,o,s,l,u,f,c,h=e<1,v,d,p=0,g=0,y,m=0,w,_;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=e*d,!y)))t:for(var B=0;B0&&(t.lineTo(w,_),m=0),C){case te.M:o=l=n[B++],s=u=n[B++],t.moveTo(l,u);break;case te.L:{f=n[B++],c=n[B++];var x=xa(f-l),b=xa(c-u);if(x>a||b>i){if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+f*F,u*(1-F)+c*F);break t}p+=I}t.lineTo(f,c),l=f,u=c,m=0}else{var E=x*x+b*b;E>m&&(w=f,_=c,m=E)}break}case te.C:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++],P=n[B++],O=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;Wi(l,D,M,P,F,vA),Wi(u,Q,R,O,F,dA),t.bezierCurveTo(vA[1],dA[1],vA[2],dA[2],vA[3],dA[3]);break t}p+=I}t.bezierCurveTo(D,Q,M,R,P,O),l=P,u=O;break}case te.Q:{var D=n[B++],Q=n[B++],M=n[B++],R=n[B++];if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;$u(l,D,M,F,vA),$u(u,Q,R,F,dA),t.quadraticCurveTo(vA[1],dA[1],vA[2],dA[2]);break t}p+=I}t.quadraticCurveTo(D,Q,M,R),l=M,u=R;break}case te.A:var G=n[B++],X=n[B++],J=n[B++],At=n[B++],lt=n[B++],wt=n[B++],Bt=n[B++],N=!n[B++],z=J>At?J:At,$=xa(J-At)>.001,q=lt+wt,j=!1;if(h){var I=v[g++];p+I>y&&(q=lt+wt*(y-p)/I,j=!0),p+=I}if($&&t.ellipse?t.ellipse(G,X,J,At,Bt,lt,q,N):t.arc(G,X,z,lt,q,N),j)break t;S&&(o=pA(lt)*J+G,s=gA(lt)*At+X),l=pA(q)*J+G,u=gA(q)*At+X;break;case te.R:o=l=n[B],s=u=n[B+1],f=n[B++],c=n[B++];var ct=n[B++],L=n[B++];if(h){var I=v[g++];if(p+I>y){var U=y-p;t.moveTo(f,c),t.lineTo(f+wg(U,ct),c),U-=ct,U>0&&t.lineTo(f+ct,c+wg(U,L)),U-=L,U>0&&t.lineTo(f+Bg(ct-U,0),c+L),U-=ct,U>0&&t.lineTo(f,c+Bg(L-U,0));break t}p+=I}t.rect(f,c,ct,L);break;case te.Z:if(h){var I=v[g++];if(p+I>y){var F=(y-p)/I;t.lineTo(l*(1-F)+o*F,u*(1-F)+s*F);break t}p+=I}t.closePath(),l=o,u=s}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=te,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Bi(r,t,e,n,a,i,A){if(a===0)return!1;var o=a,s=0,l=r;if(A>t+o&&A>n+o||Ar+o&&i>e+o||it+f&&u>n+f&&u>i+f&&u>o+f||ur+f&&l>e+f&&l>a+f&&l>A+f||lt+l&&s>n+l&&s>i+l||sr+l&&o>e+l&&o>a+l||oe||u+la&&(a+=Bl);var c=Math.atan2(s,o);return c<0&&(c+=Bl),c>=n&&c<=a||c+Bl>=n&&c+Bl<=a}function Qa(r,t,e,n,a,i){if(i>t&&i>n||ia?o:0}var Ai=ga.CMD,yA=Math.PI*2,o3=1e-4;function s3(r,t){return Math.abs(r-t)t&&l>n&&l>i&&l>o||l1&&l3(),h=Me(t,n,i,o,nn[0]),c>1&&(v=Me(t,n,i,o,nn[1]))),c===2?pt&&o>n&&o>i||o=0&&l<=1){for(var u=0,f=Ve(t,n,i,l),c=0;ce||o<-e)return 0;var s=Math.sqrt(e*e-o*o);dr[0]=-s,dr[1]=s;var l=Math.abs(n-a);if(l<1e-4)return 0;if(l>=yA-1e-4){n=0,a=yA;var u=i?1:-1;return A>=dr[0]+r&&A<=dr[1]+r?u:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=yA,a+=yA);for(var c=0,h=0;h<2;h++){var v=dr[h];if(v+r>A){var d=Math.atan2(o,v),u=i?1:-1;d<0&&(d=yA+d),(d>=n&&d<=a||d+yA>=n&&d+yA<=a)&&(d>Math.PI/2&&d1&&(e||(o+=Qa(s,l,u,f,n,a))),p&&(s=i[v],l=i[v+1],u=s,f=l),d){case Ai.M:u=i[v++],f=i[v++],s=u,l=f;break;case Ai.L:if(e){if(Bi(s,l,i[v],i[v+1],t,n,a))return!0}else o+=Qa(s,l,i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.C:if(e){if(i3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=u3(s,l,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.Q:if(e){if(fM(s,l,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else o+=f3(s,l,i[v++],i[v++],i[v],i[v+1],n,a)||0;s=i[v++],l=i[v++];break;case Ai.A:var g=i[v++],y=i[v++],m=i[v++],w=i[v++],_=i[v++],B=i[v++];v+=1;var C=!!(1-i[v++]);c=Math.cos(_)*m+g,h=Math.sin(_)*w+y,p?(u=c,f=h):o+=Qa(s,l,c,h,n,a);var S=(n-g)*w/m+g;if(e){if(A3(g,y,w,_,_+B,C,t,S,a))return!0}else o+=c3(g,y,w,_,_+B,C,S,a);s=Math.cos(_+B)*m+g,l=Math.sin(_+B)*w+y;break;case Ai.R:u=s=i[v++],f=l=i[v++];var x=i[v++],b=i[v++];if(c=u+x,h=f+b,e){if(Bi(u,f,c,f,t,n,a)||Bi(c,f,c,h,t,n,a)||Bi(c,h,u,h,t,n,a)||Bi(u,h,u,f,t,n,a))return!0}else o+=Qa(c,f,c,h,n,a),o+=Qa(u,h,u,f,n,a);break;case Ai.Z:if(e){if(Bi(s,l,u,f,t,n,a))return!0}else o+=Qa(s,l,u,f,n,a);s=u,l=f;break}}return!e&&!s3(l,f)&&(o+=Qa(s,l,u,f,n,a)||0),o!==0}function h3(r,t,e){return cM(r,0,!1,t,e)}function v3(r,t,e,n){return cM(r,t,!0,e,n)}var bv=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),d3={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gd.style)},Sg=da.concat(["invisible","culling","z","z2","zlevel","parent"]),Mt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.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(s){e.buildPath(s,e.shape)}),a.silent=!0;var i=a.style;for(var A in n)i[A]!==n[A]&&(i[A]=n[A]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var o=0;o.5?y0:n>.2?jG:m0}else if(e)return m0}return y0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(nt(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),A=_v(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var A=this.path;(i||this.__dirty&As)&&(A.beginPath(),this.buildPath(A,this.shape,!1),this.pathUpdated()),e=A.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){o.copy(e);var s=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;l=Math.max(l,u??4)}s>1e-10&&(o.width+=l/s,o.height+=l/s,o.x-=l/s/2,o.y-=l/s/2)}return o}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),A=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var o=this.path;if(this.hasStroke()){var s=A.lineWidth,l=A.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),v3(o,s/l,e,n)))return!0}if(this.hasFill())return h3(o,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=As,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:V(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&As)},t.prototype.createStyle=function(e){return Pd(bv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=V({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,A,o){r.prototype._applyStateObj.call(this,e,n,a,i,A,o);var s=!(n&&i),l;if(n&&n.shape?A?i?l=n.shape:(l=V({},a.shape),V(l,n.shape)):(l=V({},i?this.shape:a.shape),V(l,n.shape)):s&&(l=a.shape),l)if(A){this.shape=V({},this.shape);for(var u={},f=Ht(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Pd(p3,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var a=Ef(n,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var i=e.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 e=t.prototype;e.dirtyRectTolerance=10}(),t}(gn);Us.prototype.type="tspan";var g3=gt({x:0,y:0},eo),y3={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gd.style)};function m3(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Ke=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Pd(g3,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=m3(n.image)?n.image:this.__image;if(!i)return 0;var A=e==="width"?"height":"width",o=n[A];return o==null?i[e]:i[e]/i[A]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return y3},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Dt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(gn);Ke.prototype.type="image";function w3(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,A=t.r,o,s,l,u;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof A=="number"?o=s=l=u=A:A instanceof Array?A.length===1?o=s=l=u=A[0]:A.length===2?(o=l=A[0],s=u=A[1]):A.length===3?(o=A[0],s=u=A[1],l=A[2]):(o=A[0],s=A[1],l=A[2],u=A[3]):o=s=l=u=0;var f;o+s>a&&(f=o+s,o*=a/f,s*=a/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+l>i&&(f=s+l,s*=i/f,l*=i/f),o+u>i&&(f=o+u,o*=i/f,u*=i/f),r.moveTo(e+o,n),r.lineTo(e+a-s,n),s!==0&&r.arc(e+a-s,n+s,s,-Math.PI/2,0),r.lineTo(e+a,n+i-l),l!==0&&r.arc(e+a-l,n+i-l,l,0,Math.PI/2),r.lineTo(e+u,n+i),u!==0&&r.arc(e+u,n+i-u,u,Math.PI/2,Math.PI),r.lineTo(e,n+o),o!==0&&r.arc(e+o,n+o,o,Math.PI,Math.PI*1.5)}var ds=Math.round;function hM(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,A=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=A;var o=e&&e.lineWidth;return o&&(ds(n*2)===ds(a*2)&&(r.x1=r.x2=KA(n,o,!0)),ds(i*2)===ds(A*2)&&(r.y1=r.y2=KA(i,o,!0))),r}}function vM(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,A=t.height;r.x=n,r.y=a,r.width=i,r.height=A;var o=e&&e.lineWidth;return o&&(r.x=KA(n,o,!0),r.y=KA(a,o,!0),r.width=Math.max(KA(n+i,o,!1)-r.x,i===0?0:1),r.height=Math.max(KA(a+A,o,!1)-r.y,A===0?0:1)),r}}function KA(r,t,e){if(!t)return r;var n=ds(r*2);return(n+ds(t))%2===0?n/2:(n+(e?1:-1))/2}var B3=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),_3={},Nt=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new B3},t.prototype.buildPath=function(e,n){var a,i,A,o;if(this.subPixelOptimize){var s=vM(_3,n,this.style);a=s.x,i=s.y,A=s.width,o=s.height,s.r=n.r,n=s}else a=n.x,i=n.y,A=n.width,o=n.height;n.r?w3(e,n):e.rect(a,i,A,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mt);Nt.prototype.type="rect";var PS={fill:"#000"},RS=2,C3={style:gt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Gd.style)},Gt=function(r){H(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=PS,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,F=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),E=A.calculatedLineHeight,D=0;D=0&&(D=B[E],D.align==="right");)this._placeToken(D,e,S,g,F,"right",m),x-=D.width,F-=D.width,E--;for(I+=(i-(I-p)-(y-F)-x)/2;b<=E;)D=B[b],this._placeToken(D,e,S,g,I+D.width/2,"center",m),I+=D.width,b++;g+=S}},t.prototype._placeToken=function(e,n,a,i,A,o,s){var l=n.rich[e.styleName]||{};l.text=e.text;var u=e.verticalAlign,f=i+a/2;u==="top"?f=i+e.height/2:u==="bottom"&&(f=i+a-e.height/2);var c=!e.isLineHolder&&xg(l);c&&this._renderBackground(l,n,o==="right"?A-e.width:o==="center"?A-e.width/2:A,f-e.height/2,e.width,e.height);var h=!!l.backgroundColor,v=e.textPadding;v&&(A=GS(A,o,v),f-=e.height/2-v[0]-e.innerHeight/2);var d=this._getOrCreateChild(Us),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,w=VS("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,g.fill)),_=NS("stroke"in l?l.stroke:"stroke"in n?n.stroke:!h&&!s&&(!g.autoStroke||y)?(m=RS,g.stroke):null),B=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=A,p.y=f,B&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Ki,p.opacity=ua(l.opacity,n.opacity,1),OS(p,l),_&&(p.lineWidth=ua(l.lineWidth,n.lineWidth,m),p.lineDash=St(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=_),w&&(p.fill=w);var C=e.contentWidth,S=e.contentHeight;d.setBoundingRect(new Dt(Jl(p.x,C,p.textAlign),os(p.y,S,p.textBaseline),C,S))},t.prototype._renderBackground=function(e,n,a,i,A,o){var s=e.backgroundColor,l=e.borderWidth,u=e.borderColor,f=s&&s.image,c=s&&!f,h=e.borderRadius,v=this,d,p;if(c||e.lineHeight||l&&u){d=this._getOrCreateChild(Nt),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=i,g.width=A,g.height=o,g.r=h,d.dirtyShape()}if(c){var y=d.style;y.fill=s||null,y.fillOpacity=St(e.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Ke),p.onload=function(){v.dirtyStyle()};var m=p.style;m.image=s.image,m.x=a,m.y=i,m.width=A,m.height=o}if(l&&u){var y=d.style;y.lineWidth=l,y.stroke=u,y.strokeOpacity=St(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(d||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=ua(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return pM(e)&&(n=[e.fontStyle,e.fontWeight,dM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&En(n)||e.textFont||e.font},t}(gn),S3={left:!0,right:1,center:1},x3={top:1,bottom:1,middle:1},HS=["fontStyle","fontWeight","fontSize","fontFamily"];function dM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?PB+"px":r+"px"}function OS(r,t){for(var e=0;e=0,i=!1;if(r instanceof Mt){var A=gM(r),o=a&&A.selectFill||A.normalFill,s=a&&A.selectStroke||A.normalStroke;if(Uo(o)||Uo(s)){n=n||{};var l=n.style||{};l.fill==="inherit"?(i=!0,n=V({},n),l=V({},l),l.fill=o):!Uo(l.fill)&&Uo(o)?(i=!0,n=V({},n),l=V({},l),l.fill=u0(o)):!Uo(l.stroke)&&Uo(s)&&(i||(n=V({},n),l=V({},l)),l.stroke=u0(s)),n.style=l}}if(n&&n.z2==null){i||(n=V({},n));var u=r.z2EmphasisLift;n.z2=r.z2+(u??Js)}return n}function Q3(r,t,e){if(e&&e.z2==null){e=V({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??T3)}return e}function L3(r,t,e){var n=Qt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:E3(r,["opacity"],t,{opacity:1});e=e||{};var A=e.style||{};return A.opacity==null&&(e=V({},e),A=V({opacity:n?a:i.opacity*.1},A),e.style=A),e}function bg(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return D3(this,r,t,e);if(r==="blur")return L3(this,r,e);if(r==="select")return Q3(this,r,e)}return e}function po(r){r.stateProxy=bg;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=bg),e&&(e.stateProxy=bg)}function YS(r,t){!SM(r,t)&&!r.__highByOuter&&ti(r,yM)}function ZS(r,t){!SM(r,t)&&!r.__highByOuter&&ti(r,mM)}function Wa(r,t){r.__highByOuter|=1<<(t||0),ti(r,yM)}function Xa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&ti(r,mM)}function BM(r){ti(r,n_)}function a_(r){ti(r,wM)}function _M(r){ti(r,I3)}function CM(r){ti(r,F3)}function SM(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function xM(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var A=e_(i),o=a==="series",s=o?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!o&&n.push(s),A.isBlured&&(s.group.traverse(function(l){wM(l)}),o&&e.push(i)),A.isBlured=!1}),T(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function b0(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(l,u){for(var f=0;f0){var o={dataIndex:A,seriesIndex:e.seriesIndex};i!=null&&(o.dataType=i),t.push(o)}})}),t}function no(r,t,e){zA(r,!0),ti(r,po),I0(r,t,e)}function O3(r){zA(r,!1)}function ye(r,t,e,n){n?O3(r):no(r,t,e)}function I0(r,t,e){var n=Ct(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var JS=["emphasis","blur","select"],k3={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $e(r,t,e,n){e=e||"itemStyle";for(var a=0;a1&&(A*=Tg(v),o*=Tg(v));var d=(a===i?-1:1)*Tg((A*A*(o*o)-A*A*(h*h)-o*o*(c*c))/(A*A*(h*h)+o*o*(c*c)))||0,p=d*A*h/o,g=d*-o*c/A,y=(r+e)/2+mc(f)*p-yc(f)*g,m=(t+n)/2+yc(f)*p+mc(f)*g,w=ex([1,0],[(c-p)/A,(h-g)/o]),_=[(c-p)/A,(h-g)/o],B=[(-1*c-p)/A,(-1*h-g)/o],C=ex(_,B);if(E0(_,B)<=-1&&(C=_l),E0(_,B)>=1&&(C=0),C<0){var S=Math.round(C/_l*1e6)/1e6;C=_l*2+S%2*_l}u.addData(l,y,m,A,o,w,C,f,i)}var W3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,X3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Y3(r){var t=new ga;if(!r)return t;var e=0,n=0,a=e,i=n,A,o=ga.CMD,s=r.match(W3);if(!s)return t;for(var l=0;lD*D+Q*Q&&(S=b,x=I),{cx:S,cy:x,x0:-u,y0:-f,x1:S*(a/_-1),y1:x*(a/_-1)}}function e5(r){var t;if(K(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function r5(r,t){var e,n=ql(t.r,0),a=ql(t.r0||0,0),i=n>0,A=a>0;if(!(!i&&!A)){if(i||(n=a,a=0),a>n){var o=n;n=a,a=o}var s=t.startAngle,l=t.endAngle;if(!(isNaN(s)||isNaN(l))){var u=t.cx,f=t.cy,c=!!t.clockwise,h=nx(l-s),v=h>Ig&&h%Ig;if(v>Sn&&(h=v),!(n>Sn))r.moveTo(u,f);else if(h>Ig-Sn)r.moveTo(u+n*Ro(s),f+n*mA(s)),r.arc(u,f,n,s,l,!c),a>Sn&&(r.moveTo(u+a*Ro(l),f+a*mA(l)),r.arc(u,f,a,l,s,c));else{var d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0,C=void 0,S=void 0,x=void 0,b=void 0,I=void 0,F=void 0,E=void 0,D=void 0,Q=n*Ro(s),M=n*mA(s),R=a*Ro(l),P=a*mA(l),O=h>Sn;if(O){var G=t.cornerRadius;G&&(e=e5(G),d=e[0],p=e[1],g=e[2],y=e[3]);var X=nx(n-a)/2;if(m=Wn(X,g),w=Wn(X,y),_=Wn(X,d),B=Wn(X,p),x=C=ql(m,w),b=S=ql(_,B),(C>Sn||S>Sn)&&(I=n*Ro(l),F=n*mA(l),E=a*Ro(s),D=a*mA(s),hSn){var $=Wn(g,x),q=Wn(y,x),j=wc(E,D,Q,M,n,$,c),ct=wc(I,F,R,P,n,q,c);r.moveTo(u+j.cx+j.x0,f+j.cy+j.y0),x0&&r.arc(u+j.cx,f+j.cy,$,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,n,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),!c),q>0&&r.arc(u+ct.cx,f+ct.cy,q,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.moveTo(u+Q,f+M),r.arc(u,f,n,s,l,!c);if(!(a>Sn)||!O)r.lineTo(u+R,f+P);else if(b>Sn){var $=Wn(d,b),q=Wn(p,b),j=wc(R,P,I,F,a,-q,c),ct=wc(Q,M,E,D,a,-$,c);r.lineTo(u+j.cx+j.x0,f+j.cy+j.y0),b0&&r.arc(u+j.cx,f+j.cy,q,je(j.y0,j.x0),je(j.y1,j.x1),!c),r.arc(u,f,a,je(j.cy+j.y1,j.cx+j.x1),je(ct.cy+ct.y1,ct.cx+ct.x1),c),$>0&&r.arc(u+ct.cx,f+ct.cy,$,je(ct.y1,ct.x1),je(ct.y0,ct.x0),!c))}else r.lineTo(u+R,f+P),r.arc(u,f,a,l,s,c)}r.closePath()}}}var n5=function(){function r(){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 r}(),Cr=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new n5},t.prototype.buildPath=function(e,n){r5(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mt);Cr.prototype.type="sector";var a5=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Lf=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new a5},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,A,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,A,!0)},t}(Mt);Lf.prototype.type="ring";function i5(r,t,e,n){var a=[],i=[],A=[],o=[],s,l,u,f;if(n){u=[1/0,1/0],f=[-1/0,-1/0];for(var c=0,h=r.length;c=2){if(n){var i=i5(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var A=a.length,o=0;o<(e?A:A-1);o++){var s=i[o*2],l=i[o*2+1],u=a[(o+1)%A];r.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var o=1,f=a.length;oBA[1]){if(o=!1,i)return o;var u=Math.abs(BA[0]-wA[1]),f=Math.abs(wA[0]-BA[1]);Math.min(u,f)>a.len()&&(u0){var f=u.duration,c=u.delay,h=u.easing,v={duration:f,delay:c||0,easing:h,done:i,force:!!i||!!A,setToFinal:!l,scope:r,during:A};o?t.animateFrom(e,v):t.animateTo(e,v)}else t.stopAnimation(),!o&&t.attr(e),A&&A(1),i&&i()}function zt(r,t,e,n,a,i){s_("update",r,t,e,n,a,i)}function ue(r,t,e,n,a,i){s_("enter",r,t,e,n,a,i)}function xs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Ax(r){return!r.isGroup}function m5(r){return r.shape!=null}function Pf(r,t,e){if(!r||!t)return;function n(A){var o={};return A.traverse(function(s){Ax(s)&&s.anid&&(o[s.anid]=s)}),o}function a(A){var o={x:A.x,y:A.y,rotation:A.rotation};return m5(A)&&(o.shape=V({},A.shape)),o}var i=n(r);t.traverse(function(A){if(Ax(A)&&A.anid){var o=i[A.anid];if(o){var s=a(A);A.attr(a(o)),zt(A,s,e,Ct(A).dataIndex)}}})}function OM(r,t){return Y(r,function(e){var n=e[0];n=Fv(n,t.x),n=Ev(n,t.x+t.width);var a=e[1];return a=Fv(a,t.y),a=Ev(a,t.y+t.height),[n,a]})}function w5(r,t){var e=Fv(r.x,t.x),n=Ev(r.x+r.width,t.x+t.width),a=Fv(r.y,t.y),i=Ev(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function Rf(r,t,e){var n=V({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),gt(a,e),new Ke(n)):Zd(r.replace("path://",""),n,e,"center")}function jl(r,t,e,n,a){for(var i=0,A=a[a.length-1];i1)return!1;var p=Fg(h,v,u,f)/c;return!(p<0||p>1)}function Fg(r,t,e,n){return r*n-e*t}function B5(r){return r<=1e-6&&r>=-1e-6}function js(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=nt(t)?{formatter:t}:t,i=e.mainType,A=e.componentIndex,o={componentType:i,name:n,$vars:["name"]};o[i+"Index"]=A;var s=r.formatterParamsExtra;s&&T(Ht(s),function(u){st(o,u)||(o[u]=s[u],o.$vars.push(u))});var l=Ct(r.el);l.componentMainType=i,l.componentIndex=A,l.tooltipConfig={name:n,option:gt({content:n,encodeHTMLContent:!0,formatterParams:o},a)}}function ox(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function rA(r,t){if(r)if(K(r))for(var e=0;e=0&&o.push(s)}),o}}function nA(r,t){return Et(Et({},r,!0),t,!0)}const L5={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},M5={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:"旭日图",custom:"自定义图表",chart:"图表"}},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 Qv="ZH",f_="EN",bs=f_,Xh={},c_={},WM=Ut.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bs).toUpperCase();return r.indexOf(Qv)>-1?Qv:bs}():bs;function XM(r,t){r=r.toUpperCase(),c_[r]=new Yt(t),Xh[r]=t}function U5(r){if(nt(r)){var t=Xh[r.toUpperCase()]||{};return r===Qv||r===f_?mt(t):Et(mt(t),mt(Xh[bs]),!1)}else return Et(mt(r),mt(Xh[bs]),!1)}function L0(r){return c_[r]}function P5(){return c_[bs]}XM(f_,L5);XM(Qv,M5);var h_=1e3,v_=h_*60,Eu=v_*60,un=Eu*24,cx=un*365,tu={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}"},Cc="{yyyy}-{MM}-{dd}",hx={year:"{yyyy}",month:"{yyyy}-{MM}",day:Cc,hour:Cc+" "+tu.hour,minute:Cc+" "+tu.minute,second:Cc+" "+tu.second,millisecond:tu.none},Qg=["year","month","day","hour","minute","second","millisecond"],YM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oi(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ts(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function R5(r){return r===Ts(r)}function H5(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qd(r,t,e,n){var a=pa(r),i=a[d_(e)](),A=a[Is(e)]()+1,o=Math.floor((A-1)/3)+1,s=a[jd(e)](),l=a["get"+(e?"UTC":"")+"Day"](),u=a[af(e)](),f=(u-1)%12+1,c=a[tp(e)](),h=a[ep(e)](),v=a[rp(e)](),d=u>=12?"pm":"am",p=d.toUpperCase(),g=n instanceof Yt?n:L0(n||WM)||P5(),y=g.getModel("time"),m=y.get("month"),w=y.get("monthAbbr"),_=y.get("dayOfWeek"),B=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,oi(i%100+"",2)).replace(/{Q}/g,o+"").replace(/{MMMM}/g,m[A-1]).replace(/{MMM}/g,w[A-1]).replace(/{MM}/g,oi(A,2)).replace(/{M}/g,A+"").replace(/{dd}/g,oi(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,B[l]).replace(/{e}/g,l+"").replace(/{HH}/g,oi(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,oi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,oi(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,oi(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,oi(v,3)).replace(/{S}/g,v+"")}function O5(r,t,e,n,a){var i=null;if(nt(e))i=e;else if(vt(e))i=e(r.value,t,{level:r.level});else{var A=V({},tu);if(r.level>0)for(var o=0;o=0;--o)if(s[l]){i=s[l];break}i=i||A.none}if(K(i)){var f=r.level==null?0:r.level>=0?r.level:i.length+r.level;f=Math.min(f,i.length-1),i=i[f]}}return qd(new Date(r.value),i,a,n)}function ZM(r,t){var e=pa(r),n=e[Is(t)]()+1,a=e[jd(t)](),i=e[af(t)](),A=e[tp(t)](),o=e[ep(t)](),s=e[rp(t)](),l=s===0,u=l&&o===0,f=u&&A===0,c=f&&i===0,h=c&&a===1,v=h&&n===1;return v?"year":h?"month":c?"day":f?"hour":u?"minute":l?"second":"millisecond"}function vx(r,t,e){var n=Kt(r)?pa(r):r;switch(t=t||ZM(r,e),t){case"year":return n[d_(e)]();case"half-year":return n[Is(e)]()>=6?1:0;case"quarter":return Math.floor((n[Is(e)]()+1)/4);case"month":return n[Is(e)]();case"day":return n[jd(e)]();case"half-day":return n[af(e)]()/24;case"hour":return n[af(e)]();case"minute":return n[tp(e)]();case"second":return n[ep(e)]();case"millisecond":return n[rp(e)]()}}function d_(r){return r?"getUTCFullYear":"getFullYear"}function Is(r){return r?"getUTCMonth":"getMonth"}function jd(r){return r?"getUTCDate":"getDate"}function af(r){return r?"getUTCHours":"getHours"}function tp(r){return r?"getUTCMinutes":"getMinutes"}function ep(r){return r?"getUTCSeconds":"getSeconds"}function rp(r){return r?"getUTCMilliseconds":"getMilliseconds"}function k5(r){return r?"setUTCFullYear":"setFullYear"}function $M(r){return r?"setUTCMonth":"setMonth"}function JM(r){return r?"setUTCDate":"setDate"}function qM(r){return r?"setUTCHours":"setHours"}function jM(r){return r?"setUTCMinutes":"setMinutes"}function tU(r){return r?"setUTCSeconds":"setSeconds"}function eU(r){return r?"setUTCMilliseconds":"setMilliseconds"}function rU(r){if(!JL(r))return nt(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function nU(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var rl=VB;function M0(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(u){return u&&En(u)?u:"-"}function i(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var A=t==="time",o=r instanceof Date;if(A||o){var s=A?pa(r):r;if(isNaN(+s)){if(o)return"-"}else return qd(s,n,e)}if(t==="ordinal")return qm(r)?a(r):Kt(r)&&i(r)?r+"":"-";var l=za(r);return i(l)?rU(l):qm(r)?a(r):typeof r=="boolean"?r+"":"-"}var dx=["a","b","c","d","e","f","g"],Lg=function(r,t){return"{"+r+(t??"")+"}"};function aU(r,t,e){K(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var A=e.markerId||"markerX";return{renderMode:i,content:"{"+A+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function go(r,t){return t=t||"transparent",nt(r)?r:yt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Lv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Yh=T,iU=["left","right","top","bottom","width","height"],WA=[["width","left","right"],["height","top","bottom"]];function p_(r,t,e,n,a){var i=0,A=0;n==null&&(n=1/0),a==null&&(a=1/0);var o=0;t.eachChild(function(s,l){var u=s.getBoundingRect(),f=t.childAt(l+1),c=f&&f.getBoundingRect(),h,v;if(r==="horizontal"){var d=u.width+(c?-c.x+u.x:0);h=i+d,h>n||s.newline?(i=0,h=d,A+=o+e,o=u.height):o=Math.max(o,u.height)}else{var p=u.height+(c?-c.y+u.y:0);v=A+p,v>a||s.newline?(i+=o+e,A=0,v=p,o=u.width):o=Math.max(o,u.width)}s.newline||(s.x=i,s.y=A,s.markRedraw(),r==="horizontal"?i=h+e:A=v+e)})}var io=p_;xt(p_,"vertical");xt(p_,"horizontal");function G5(r,t,e){var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(o)||isNaN(parseFloat(r.right)))&&(o=n),(isNaN(A)||isNaN(parseFloat(r.top)))&&(A=0),(isNaN(s)||isNaN(parseFloat(r.bottom)))&&(s=a),e=rl(e||0),{width:Math.max(o-i-e[1]-e[3],0),height:Math.max(s-A-e[0]-e[2],0)}}function Qe(r,t,e){e=rl(e||0);var n=t.width,a=t.height,i=et(r.left,n),A=et(r.top,a),o=et(r.right,n),s=et(r.bottom,a),l=et(r.width,n),u=et(r.height,a),f=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(l)&&(l=n-o-c-i),isNaN(u)&&(u=a-s-f-A),h!=null&&(isNaN(l)&&isNaN(u)&&(h>n/a?l=n*.8:u=a*.8),isNaN(l)&&(l=h*u),isNaN(u)&&(u=l/h)),isNaN(i)&&(i=n-o-l-c),isNaN(A)&&(A=a-s-u-f),r.left||r.right){case"center":i=n/2-l/2-e[3];break;case"right":i=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":A=a/2-u/2-e[0];break;case"bottom":A=a-u-f;break}i=i||0,A=A||0,isNaN(l)&&(l=n-c-i-(o||0)),isNaN(u)&&(u=a-f-A-(s||0));var v=new Dt(i+e[3],A+e[0],l,u);return v.margin=e,v}function np(r,t,e,n,a,i){var A=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!A&&!o)return!1;var l;if(s==="raw")l=r.type==="group"?new Dt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var f=Qe(gt({width:l.width,height:l.height},t),e,n),c=A?f.x-l.x:0,h=o?f.y-l.y:0;return s==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function K5(r,t){return r[WA[t][0]]!=null||r[WA[t][1]]!=null&&r[WA[t][2]]!=null}function Af(r){var t=r.layoutMode||r.constructor.layoutMode;return yt(t)?t:t?{type:t}:null}function Yi(r,t,e){var n=e&&e.ignoreSize;!K(n)&&(n=[n,n]);var a=A(WA[0],0),i=A(WA[1],1);l(WA[0],r,a),l(WA[1],r,i);function A(u,f){var c={},h=0,v={},d=0,p=2;if(Yh(u,function(m){v[m]=r[m]}),Yh(u,function(m){o(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g=0;s--)o=Et(o,a[s],!0);n.defaultOption=o}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Df(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Yt);oM(Rt,Yt);Nd(Rt);D5(Rt);Q5(Rt,W5);function W5(r){var t=[];return T(Rt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ia(e).main}),r!=="dataset"&&Qt(t,"dataset")<=0&&t.unshift("dataset"),t}var oU="";typeof navigator<"u"&&(oU=navigator.platform||"");var Ho="rgba(0, 0, 0, 0.2)";const X5={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ho,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ho,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ho,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ho,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ho,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ho,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:oU.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 sU=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mn="original",lr="arrayRows",wn="objectRows",ya="keyedColumns",Hi="typedArray",lU="unknown",fa="column",al="row",ze={Must:1,Might:2,Not:3},uU=Vt();function Y5(r){uU(r).datasetMap=ft()}function fU(r,t,e){var n={},a=y_(t);if(!a||!r)return n;var i=[],A=[],o=t.ecModel,s=uU(o).datasetMap,l=a.uid+"_"+e.seriesLayoutBy,u,f;r=r.slice(),T(r,function(d,p){var g=yt(d)?d:r[p]={name:d};g.type==="ordinal"&&u==null&&(u=p,f=v(g)),n[g.name]=[]});var c=s.get(l)||s.set(l,{categoryWayDim:f,valueWayDim:0});T(r,function(d,p){var g=d.name,y=v(d);if(u==null){var m=c.valueWayDim;h(n[g],m,y),h(A,m,y),c.valueWayDim+=y}else if(u===p)h(n[g],0,y),h(i,0,y);else{var m=c.categoryWayDim;h(n[g],m,y),h(A,m,y),c.categoryWayDim+=y}});function h(d,p,g){for(var y=0;yt)return r[n];return r[e-1]}function vU(r,t,e,n,a,i,A){i=i||r;var o=t(i),s=o.paletteIdx||0,l=o.paletteNameMap=o.paletteNameMap||{};if(l.hasOwnProperty(a))return l[a];var u=A==null||!n?e:j5(n,A);if(u=u||e,!(!u||!u.length)){var f=u[s];return a&&(l[a]=f),o.paletteIdx=(s+1)%u.length,f}}function tz(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Sc,Cl,gx,yx="\0_ec_inner",ez=1,w_=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,A,o){i=i||{},this.option=null,this._theme=new Yt(i),this._locale=new Yt(A),this._optionManager=o},t.prototype.setOption=function(e,n,a){var i=_x(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,_x(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var A=i.mountOption(e==="recreate");!this.option||e==="recreate"?gx(this,A):(this.restoreData(),this._mergeOption(A,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var o=i.getTimelineOption(this);o&&(a=!0,this._mergeOption(o,n))}if(!e||e==="recreate"||e==="media"){var s=i.getMediaOption(this);s.length&&T(s,function(l){a=!0,this._mergeOption(l,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,A=this._componentsCount,o=[],s=ft(),l=n&&n.replaceMergeMainTypeMap;Y5(this),T(e,function(f,c){f!=null&&(Rt.hasClass(c)?c&&(o.push(c),s.set(c,!0)):a[c]=a[c]==null?mt(f):Et(a[c],f,!0))}),l&&l.each(function(f,c){Rt.hasClass(c)&&!s.get(c)&&(o.push(c),s.set(c,!0))}),Rt.topologicalTravel(o,Rt.getAllClassMainTypes(),u,this);function u(f){var c=J5(this,f,qt(e[f])),h=i.get(f),v=h?l&&l.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=rM(h,c,v);bK(d,f,Rt),a[f]=null,i.set(f,null),A.set(f,0);var p=[],g=[],y=0,m;T(d,function(w,_){var B=w.existing,C=w.newOption;if(!C)B&&(B.mergeOption({},this),B.optionUpdated({},!1));else{var S=f==="series",x=Rt.getClass(f,w.keyInfo.subType,!S);if(!x)return;if(f==="tooltip"){if(m)return;m=!0}if(B&&B.constructor===x)B.name=w.keyInfo.name,B.mergeOption(C,this),B.optionUpdated(C,!1);else{var b=V({componentIndex:_},w.keyInfo);B=new x(C,this,this,b),V(B,b),w.brandNew&&(B.__requireNewView=!0),B.init(C,this,this),B.optionUpdated(null,!0)}}B?(p.push(B.option),g.push(B),y++):(p.push(void 0),g.push(void 0))},this),a[f]=p,i.set(f,g),A.set(f,y),f==="series"&&Sc(this)}this._seriesIndices||Sc(this)},t.prototype.getOption=function(){var e=mt(this.option);return T(e,function(n,a){if(Rt.hasClass(a)){for(var i=qt(n),A=i.length,o=!1,s=A-1;s>=0;s--)i[s]&&!tf(i[s])?o=!0:(i[s]=null,!o&&A--);i.length=A,e[a]=i}}),delete e[yx],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var A=0;A=t:e==="max"?r<=t:r===t}function uz(r,t){return r.join(",")===t.join(",")}var _n=T,of=yt,Cx=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ug(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Cx.length;e=0;p--){var g=r[p];if(o||(v=g.data.rawIndexOf(g.stackedByDimension,h)),v>=0){var y=g.data.getByRawIndex(g.stackResultDimension,v);if(s==="all"||s==="positive"&&y>0||s==="negative"&&y<0||s==="samesign"&&c>=0&&y>0||s==="samesign"&&c<=0&&y<0){c=dK(c,y),d=y;break}}}return n[0]=c,n[1]=d,n})})}var ap=function(){function r(t){this.data=t.data||(t.sourceFormat===ya?{}:[]),this.sourceFormat=t.sourceFormat||lU,this.seriesLayoutBy=t.seriesLayoutBy||fa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nd&&(d=m)}h[0]=v,h[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};Ex=(t={},t[lr+"_"+fa]={pure:!0,appendData:i},t[lr+"_"+al]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[wn]={pure:!0,appendData:i},t[ya]={pure:!0,appendData:function(A){var o=this._data;T(A,function(s,l){for(var u=o[l]||(o[l]=[]),f=0;f<(s||[]).length;f++)u.push(s[f])})}},t[mn]={appendData:i},t[Hi]={persistent:!1,pure:!0,appendData:function(A){this._data=A},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(A){for(var o=0;o=0&&(d=A.interpolatedValue[p])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return Rs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Mx(r){var t,e;return yt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Du(r){return new Tz(r)}var Tz=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var A=u(this._modBy),o=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;(A!==s||o!==l)&&(i="reset");function u(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=s,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?o:A}};return i;function A(){return t=r?null:st},gte:function(r,t){return r>=t}},Fz=function(){function r(t,e){if(!Kt(e)){var n="";Xt(n)}this._opFn=xU[t],this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){return Kt(t)?this._opFn(t,this._rvalFloat):this._opFn(za(t),this._rvalFloat)},r}(),bU=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=Kt(t)?t:za(t),a=Kt(e)?e:za(e),i=isNaN(n),A=isNaN(a);if(i&&(n=this._incomparable),A&&(a=this._incomparable),i&&A){var o=nt(t),s=nt(e);o&&(n=s?t:0),s&&(a=o?e:0)}return na?-this._resultLT:0},r}(),Ez=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=za(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=za(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function Dz(r,t){return r==="eq"||r==="ne"?new Ez(r==="eq",t):st(xU,r)?new Fz(r,t):null}var Qz=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Oi(t,e)},r}();function Lz(r,t){var e=new Qz,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,A="";r.seriesLayoutBy!==fa&&Xt(A);var o=[],s={},l=r.dimensionsDefine;if(l)T(l,function(d,p){var g=d.name,y={index:p,name:g,displayName:d.displayName};if(o.push(y),g!=null){var m="";st(s,g)&&Xt(m),s[g]=y}});else for(var u=0;u65535?Nz:Vz}function Oo(){return[1/0,-1/0]}function Gz(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Rx(r,t,e,n,a){var i=FU[e||"float"];if(a){var A=r[t],o=A&&A.length;if(o!==n){for(var s=new i(n),l=0;lp[1]&&(p[1]=d)}return this._rawCount=this._count=s,{start:o,end:s}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,A=this._dimensions,o=A.length,s=this._rawExtent,l=Y(A,function(y){return y.property}),u=0;ug[1]&&(g[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=A-1;else return A}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],A=[];if(!i)return A;n==null&&(n=1/0);for(var o=1/0,s=-1,l=0,u=0,f=this.count();u=0&&s<0)&&(o=v,s=h,l=0),h===s&&(A[l++]=u))}return A.length=l,A},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=f&&y<=c||isNaN(y))&&(s[l++]=d),d++}v=!0}else if(i===2){for(var p=h[a[0]],m=h[a[1]],w=t[a[1]][0],_=t[a[1]][1],g=0;g=f&&y<=c||isNaN(y))&&(B>=w&&B<=_||isNaN(B))&&(s[l++]=d),d++}v=!0}}if(!v)if(i===1)for(var g=0;g=f&&y<=c||isNaN(y))&&(s[l++]=C)}else for(var g=0;gt[b][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(g))}return lg[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],A=this.count(),o=0,s=Math.floor(1/e),l=this.getRawIndex(0),u,f,c,h=new(xl(this._rawCount))(Math.min((Math.ceil(A/s)+2)*2,A));h[o++]=l;for(var v=1;vu&&(u=f,c=w)}I>0&&Iu-v&&(s=u-v,o.length=s);for(var d=0;df[1]&&(f[1]=g),c[h++]=y}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,A=this.count();is&&(s=f)}return A=[o,s],this._extent[t]=A,A},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return Oi(e[i],this._dimensions[i])}Hg={arrayRows:t,objectRows:function(e,n,a,i){return Oi(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var A=e&&(e.value==null?e:e.value);return Oi(A instanceof Array?A[i]:A,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),EU=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,a,i;if(xc(t)){var A=t,o=void 0,s=void 0,l=void 0;if(n){var u=e[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,i=[u._getVersionSign()]}else o=A.get("data",!0),s=Mr(o)?Hi:mn,i=[];var f=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},h=St(f.seriesLayoutBy,c.seriesLayoutBy)||null,v=St(f.sourceHeader,c.sourceHeader),d=St(f.dimensions,c.dimensions),p=h!==c.seriesLayoutBy||!!v!=!!c.sourceHeader||d;a=p?[R0(o,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},s)]:[]}else{var g=t;if(n){var y=this._applyTransform(e);a=y.sourceList,i=y.upstreamSignList}else{var m=g.get("source",!0);a=[R0(m,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Ox(i)}var A,o=[],s=[];return T(t,function(l){l.prepareSource();var u=l.getSource(a||0),f="";a!=null&&!u&&Ox(f),o.push(u),s.push(l._getVersionSign())}),n?A=Oz(n,o,{datasetIndex:e.componentIndex}):a!=null&&(A=[wz(o[0])]),{sourceList:A,upstreamSignList:s}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return T(r.blocks,function(a){var i=MU(a);i>=t&&(t=i+ +(n&&(!i||O0(a)&&!a.noHeader)))}),t}return 0}function Wz(r,t,e,n){var a=t.noHeader,i=Yz(MU(t)),A=[],o=t.blocks||[];Br(!o||K(o)),o=o||[];var s=r.orderMode;if(t.sortBlocks&&s){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(st(l,s)){var u=new bU(l[s],null);o.sort(function(v,d){return u.evaluate(v.sortParam,d.sortParam)})}else s==="seriesDesc"&&o.reverse()}T(o,function(v,d){var p=t.valueFormatter,g=LU(v)(p?V(V({},r),{valueFormatter:p}):r,v,d>0?i.html:0,n);g!=null&&A.push(g)});var f=r.renderMode==="richText"?A.join(i.richText):k0(A.join(""),a?e:i.html);if(a)return f;var c=M0(t.header,"ordinal",r.useUTC),h=QU(n,r.renderMode).nameStyle;return r.renderMode==="richText"?UU(r,c,h)+i.richText+f:k0('
'+Er(c)+"
"+f,e)}function Xz(r,t,e,n){var a=r.renderMode,i=t.noName,A=t.noValue,o=!t.markerType,s=t.name,l=r.useUTC,u=t.valueFormatter||r.valueFormatter||function(w){return w=K(w)?w:[w],Y(w,function(_,B){return M0(_,K(h)?h[B]:h,l)})};if(!(i&&A)){var f=o?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":M0(s,"ordinal",l),h=t.valueType,v=A?[]:u(t.value,t.dataIndex),d=!o||!i,p=!o&&i,g=QU(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(o?"":f)+(i?"":UU(r,c,y))+(A?"":Jz(r,v,d,p,m)):k0((o?"":f)+(i?"":Zz(c,!o,y))+(A?"":$z(v,d,p,m)),e)}}function kx(r,t,e,n,a,i){if(r){var A=LU(r),o={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return A(o,r,0,i)}}function Yz(r){return{html:Kz[r],richText:zz[r]}}function k0(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function Zz(r,t,e){var n=t?"margin-left:2px":"";return''+Er(r)+""}function $z(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=K(r)?r:[r],''+Y(r,function(A){return Er(A)}).join("  ")+""}function UU(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Jz(r,t,e,n,a){var i=[a],A=n?10:20;return e&&i.push({padding:[0,0,0,A],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,i)}function PU(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return go(n)}function RU(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Og=function(){function r(){this.richTextStyles={},this._nextStyleNameId=qL()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=V5({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};K(e)?T(e,function(i){return V(n,i)}):V(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function HU(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),A=i.length,o=t.getRawValue(e),s=K(o),l=PU(t,e),u,f,c,h;if(A>1||s&&!A){var v=qz(o,t,e,i,l);u=v.inlineValues,f=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(A){var d=a.getDimensionInfo(i[0]);h=u=Rs(a,e,i[0]),f=d.type}else h=u=s?o[0]:o;var p=$B(t),g=p&&t.name||"",y=a.getName(e),m=n?g:y;return Oe("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[Oe("nameValue",{markerType:"item",markerColor:l,name:m,noName:!En(m),value:u,valueType:f,dataIndex:e})].concat(c||[])})}function qz(r,t,e,n,a){var i=t.getData(),A=ha(r,function(f,c,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),o=[],s=[],l=[];n.length?T(n,function(f){u(Rs(i,e,f),f)}):T(r,u);function u(f,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(A?l.push(Oe("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(o.push(f),s.push(h.type)))}return{inlineValues:o,inlineValueTypes:s,blocks:l}}var si=Vt();function bc(r,t){return r.getName(t)||r.getId(t)}var Zh="__universalTransitionEnabled",se=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Du({count:tW,reset:eW}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=si(this).sourceManager=new EU(this);i.prepareSource();var A=this.getInitialData(e,a);Vx(A,this),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Nx(this),this._initSelectedMapFromData(A)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Af(this),i=a?nl(e):{},A=this.subType;Rt.hasClass(A)&&(A+="Series"),Et(e,n.getTheme().get(this.subType)),Et(e,this.getDefaultOption()),co(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Yi(e,i,a)},t.prototype.mergeOption=function(e,n){e=Et(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Af(this);a&&Yi(this.option,e,a);var i=si(this).sourceManager;i.dirty(),i.prepareSource();var A=this.getInitialData(e,n);Vx(A,this),this.dataTask.dirty(),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Nx(this),this._initSelectedMapFromData(A)},t.prototype.fillDataTextStyle=function(e){if(e&&!Mr(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,A=m_.prototype.getColorFromPalette.call(this,e,n,a);return A||(A=i.getColorFromPalette(e,n,a)),A},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,A=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o=0&&a.push(A)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[bc(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Zh])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,A=this.option,o=A.selectedMode,s=n.length;if(!(!o||!s)){if(o==="series")A.selectedMap="all";else if(o==="multiple"){yt(A.selectedMap)||(A.selectedMap={});for(var l=A.selectedMap,u=0;u0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Rt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Rt);Ie(se,ip);Ie(se,m_);oM(se,Rt);function Nx(r){var t=r.name;$B(r)||(r.name=jz(r)||t)}function jz(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return T(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function tW(r){return r.model.getRawData().count()}function eW(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),rW}function rW(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Vx(r,t){T(gv(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,xt(nW,t))})}function nW(r,t){var e=N0(r);return e&&e.setOutputEnd((t||this).count()),t}function N0(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var de=function(){function r(){this.group=new _t,this.uid=el("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();qB(de);Nd(de);function il(){var r=Vt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,A=e.large=!!(n&&n.large),o=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==A||i!==o)&&"reset"}}var OU=Vt(),aW=il(),jt=function(){function r(){this.group=new _t,this.uid=el("viewChart"),this.renderTask=Du({plan:iW,reset:AW}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Kx(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Kx(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){rA(this.group,t)},r.markUpdateMethod=function(t,e){OU(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Gx(r,t,e){r&&rf(r)&&(t==="emphasis"?Wa:Xa)(r,e)}function Kx(r,t,e){var n=ho(r,t),a=t&&t.highlightKey!=null?V3(t.highlightKey):null;n!=null?T(qt(n),function(i){Gx(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Gx(i,e,a)})}qB(jt);Nd(jt);function iW(r){return aW(r.model)}function AW(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,A=r.view,o=a&&OU(a).updateMethod,s=i?"incrementalPrepareRender":o&&A[o]?o:"render";return s!=="render"&&A[s](t,e,n,a),oW[s]}var oW={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Mv="\0__throttleOriginMethod",zx="\0__throttleRate",Wx="\0__throttleType";function x_(r,t,e){var n,a=0,i=0,A=null,o,s,l,u;t=t||0;function f(){i=new Date().getTime(),A=null,r.apply(s,l||[])}var c=function(){for(var h=[],v=0;v=0?f():A=setTimeout(f,-o),a=n};return c.clear=function(){A&&(clearTimeout(A),A=null)},c.debounceNextCall=function(h){u=h},c}function Al(r,t,e,n){var a=r[t];if(a){var i=a[Mv]||a,A=a[Wx],o=a[zx];if(o!==e||A!==n){if(e==null||!n)return r[t]=i;a=r[t]=x_(i,e,n==="debounce"),a[Mv]=i,a[Wx]=n,a[zx]=e}return a}}function sf(r,t){var e=r[t];e&&e[Mv]&&(e.clear&&e.clear(),r[t]=e[Mv])}var Xx=Vt(),Yx={itemStyle:vo(zM,!0),lineStyle:vo(KM,!0)},sW={lineStyle:"stroke",itemStyle:"fill"};function kU(r,t){var e=r.visualStyleMapper||Yx[t];return e||(console.warn("Unknown style type '"+t+"'."),Yx.itemStyle)}function NU(r,t){var e=r.visualDrawType||sW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var lW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=kU(r,n),A=i(a),o=a.getShallow("decal");o&&(e.setVisual("decal",o),o.dirty=!0);var s=NU(r,n),l=A[s],u=vt(l)?l:null,f=A.fill==="auto"||A.stroke==="auto";if(!A[s]||u||f){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());A[s]||(A[s]=c,e.setVisual("colorFromPalette",!0)),A.fill=A.fill==="auto"||vt(A.fill)?c:A.fill,A.stroke=A.stroke==="auto"||vt(A.stroke)?c:A.stroke}if(e.setVisual("style",A),e.setVisual("drawType",s),!t.isSeriesFiltered(r)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=V({},A);p[s]=u(d),h.setItemVisual(v,"style",p)}}}},bl=new Yt,uW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=kU(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(A,o){var s=A.getRawDataItem(o);if(s&&s[n]){bl.option=s[n];var l=a(bl),u=A.ensureUniqueItemVisual(o,"style");V(u,l),bl.option.decal&&(A.setItemVisual(o,"decal",bl.option.decal),bl.option.decal.dirty=!0),i in l&&A.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},fW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Xx(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),A=Xx(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=NU(e,o);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],f=i.getItemVisual(u,"colorFromPalette");if(f){var c=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();c[s]=e.getColorFromPalette(h,A,v)}})}})}},Tc=Math.PI;function cW(r,t){t=t||{},gt(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 e=new _t,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Gt({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 Nt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var A;return t.showSpinner&&(A=new Yd({shape:{startAngle:-Tc/2,endAngle:-Tc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),A.animateShape(!0).when(1e3,{endAngle:Tc*3/2}).start("circularInOut"),A.animateShape(!0).when(1e3,{startAngle:Tc*3/2}).delay(300).start("circularInOut"),e.add(A)),e.resize=function(){var o=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-s*2-(t.showSpinner&&o?10:0)-o)/2-(t.showSpinner&&o?0:5+o/2)+(t.showSpinner?0:o/2)+(o?0:s),u=r.getHeight()/2;t.showSpinner&&A.setShape({cx:l,cy:u}),i.setShape({x:l-s,y:u-s,width:s*2,height:s*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var VU=function(){function r(t,e,n,a){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,A=i?n.step:null,o=a&&a.modDataCount,s=o!=null?Math.ceil(o/A):null;return{step:A,modBy:s,modDataCount:o}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),A=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:A,modDataCount:s,large:o}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(a){var i=a.getProgressive(),A=a.uid;n.set(A,{id:A,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;T(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),A="";Br(!(a.reset&&a.overallReset),A),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,A=i.context;A.model=e,A.ecModel=n,A.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,A=this;T(t,function(s,l){if(!(a.visualType&&a.visualType!==s.visualType)){var u=A._stageTaskMap.get(s.uid),f=u.seriesTaskMap,c=u.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(p){o(a,p)&&(p.dirty(),h=!0)}),h&&c.dirty(),A.updatePayload(c,n);var d=A.getPerformArgs(c,a.block);v.each(function(p){p.perform(d)}),c.perform(d)&&(i=!0)}else f&&f.each(function(p,g){o(a,p)&&p.dirty();var y=A.getPerformArgs(p,a.block);y.skip=!s.performRawSeries&&e.isSeriesFiltered(p.context.model),A.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function o(s,l){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,A=e.seriesTaskMap,o=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,a).each(u);function u(f){var c=f.uid,h=o.set(c,A&&A.get(c)||Du({plan:gW,reset:yW,count:wW}));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)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,A=e.overallTask=e.overallTask||Du({reset:hW});A.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var o=A.agentStubMap,s=A.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,f=!0,c=!1,h="";Br(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(f=!1,T(n.getSeries(),v));function v(d){var p=d.uid,g=s.set(p,o&&o.get(p)||(c=!0,Du({reset:vW,onDirty:pW})));g.context={model:d,overallProgress:f},g.agent=A,g.__block=f,i._pipe(d,g)}c&&A.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:BW(t)}),t.uid=el("stageHandler"),e&&(t.visualType=e),t},r}();function hW(r){r.overallReset(r.ecModel,r.api,r.payload)}function vW(r){return r.overallProgress&&dW}function dW(){this.agent.dirty(),this.getDownstream().dirty()}function pW(){this.agent&&this.agent.dirty()}function gW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function yW(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,n){return GU(n)}):mW}var mW=GU(0);function GU(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&h===l.length-c.length){var v=l.slice(0,h);v!=="data"&&(e.mainType=v,e[c.toLowerCase()]=s,u=!0)}}o.hasOwnProperty(l)&&(n[l]=s,u=!0),u||(a[l]=s)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,A=n.model,o=n.view;if(!A||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,A,"mainType")&&u(s,A,"subType")&&u(s,A,"index","componentIndex")&&u(s,A,"name")&&u(s,A,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,a,i));function u(f,c,h,v){return f[h]==null||c[v||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),V0=["symbol","symbolSize","symbolRotate","symbolOffset"],qx=V0.concat(["symbolKeepAspect"]),SW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,A=0;A=0&&YA(s)?s:.5;var l=r.createRadialGradient(A,o,0,A,o,s);return l}function G0(r,t,e){for(var n=t.type==="radial"?OW(r,t,e):HW(r,t,e),a=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Kt(r)?[r]:K(r)?r:null}function T_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&NW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=Y(e,function(i){return i/a}),n/=a)}return[e,n]}var VW=new ga(!0);function Rv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function jx(r){return typeof r=="string"&&r!=="none"}function Hv(r){var t=r.fill;return t!=null&&t!=="none"}function tb(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function eb(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function K0(r,t,e){var n=jB(t.image,t.__image,e);if(Vd(n)){var a=r.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)*Ph),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function GW(r,t,e,n){var a,i=Rv(e),A=Hv(e),o=e.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||VW,f=t.__dirty;if(!n){var c=e.fill,h=e.stroke,v=A&&!!c.colorStops,d=i&&!!h.colorStops,p=A&&!!c.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0;(v||d)&&(B=t.getBoundingRect()),v&&(y=f?G0(r,c,B):t.__canvasFillGradient,t.__canvasFillGradient=y),d&&(m=f?G0(r,h,B):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=f||!t.__canvasFillPattern?K0(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(_=f||!t.__canvasStrokePattern?K0(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?r.fillStyle=y:p&&(w?r.fillStyle=w:A=!1),d?r.strokeStyle=m:g&&(_?r.strokeStyle=_:i=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var S,x;r.setLineDash&&e.lineDash&&(a=T_(t),S=a[0],x=a[1]);var b=!0;(l||f&As)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),b=!1),u.reset(),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),b&&u.rebuildPath(r,s?o:1),S&&(r.setLineDash(S),r.lineDashOffset=x),n||(e.strokeFirst?(i&&eb(r,e),A&&tb(r,e)):(A&&tb(r,e),i&&eb(r,e))),S&&r.setLineDash([])}function KW(r,t,e){var n=t.__image=jB(e.image,t.__image,t,t.onload);if(!(!n||!Vd(n))){var a=e.x||0,i=e.y||0,A=t.getWidth(),o=t.getHeight(),s=n.width/n.height;if(A==null&&o!=null?A=o*s:o==null&&A!=null?o=A/s:A==null&&o==null&&(A=n.width,o=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,u=e.sy||0;r.drawImage(n,l,u,e.sWidth,e.sHeight,a,i,A,o)}else if(e.sx&&e.sy){var l=e.sx,u=e.sy,f=A-l,c=o-u;r.drawImage(n,l,u,f,c,a,i,A,o)}else r.drawImage(n,a,i,A,o)}}function zW(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Ki,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,A=void 0;r.setLineDash&&e.lineDash&&(n=T_(t),i=n[0],A=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=A),e.strokeFirst?(Rv(e)&&r.strokeText(a,e.x,e.y),Hv(e)&&r.fillText(a,e.x,e.y)):(Hv(e)&&r.fillText(a,e.x,e.y),Rv(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var rb=["shadowBlur","shadowOffsetX","shadowOffsetY"],nb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ZU(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Lr(r,a),i=!0;var A=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(A)?eo.opacity:A}(n||t.blend!==e.blend)&&(i||(Lr(r,a),i=!0),r.globalCompositeOperation=t.blend||eo.blend);for(var o=0;o0&&e.unfinished);e.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(e,n,a){if(!this[tr]){if(this._disposed){this.id;return}var i,A,o;if(yt(n)&&(a=n.lazyUpdate,i=n.silent,A=n.replaceMerge,o=n.transition,n=n.notMerge),this[tr]=!0,!this._model||n){var s=new Az(this._api),l=this._theme,u=this._model=new w_;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:A},W0);var f={seriesTransition:o,optionChanged:!0};if(a)this[Tr]={silent:i,updateParams:f},this[tr]=!1,this.getZr().wakeUp();else{try{No(this),li.update.call(this,null,f)}catch(c){throw this[Tr]=null,this[tr]=!1,c}this._ssr||this._zr.flush(),this[Tr]=null,this[tr]=!1,Tl.call(this,i),Il.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||Ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ut.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return T(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],A=this;T(n,function(s){a.eachComponent({mainType:s},function(l){var u=A._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var o=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(i,function(s){s.group.ignore=!1}),o},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,A=Math.max,o=1/0;if(yb[a]){var s=o,l=o,u=-o,f=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();T(Lu,function(m,w){if(m.group===a){var _=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(mt(e)),B=m.getDom().getBoundingClientRect();s=i(B.left,s),l=i(B.top,l),u=A(B.right,u),f=A(B.bottom,f),c.push({dom:_,left:B.left,top:B.top})}}),s*=h,l*=h,u*=h,f*=h;var v=u-s,d=f-l,p=zi.createCanvas(),g=_S(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return T(c,function(m){var w=m.left-s,_=m.top-l;y+=''+m.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Nt({shape:{x:0,y:0,width:v,height:d},style:{fill:e.connectedBackgroundColor}})),T(c,function(m){var w=new Ge({style:{x:m.left*h-s,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Kg(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Kg(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,A=bu(a,e);return T(A,function(o,s){s.indexOf("Models")>=0&&T(o,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(s==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=bu(a,e,{defaultMainType:"series"}),A=i.seriesModel,o=A.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return s!=null?b_(o,s,n):Of(o,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(p8,function(n){var a=function(i){var A=e.getModel(),o=i.target,s,l=n==="globalout";if(l?s={}:o&&XA(o,function(v){var d=Ct(v);if(d&&d.dataIndex!=null){var p=d.dataModel||A.getSeriesByIndex(d.seriesIndex);return s=p&&p.getDataParams(d.dataIndex,d.dataType,o)||{},!0}else if(d.eventData)return s=V({},d.eventData),!0},!0),s){var u=s.componentType,f=s.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",f=s.seriesIndex);var c=u&&f!=null&&A.getComponent(u,f),h=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];s.event=i,s.type=n,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:s,model:c,view:h},e.trigger(n,s)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),T(Qu,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),T(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),bW(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 e=this.getDom();e&&aM(this.getDom(),E_,"");var n=this,a=n._api,i=n._model;T(n._componentsViews,function(A){A.dispose(i,a)}),T(n._chartsViews,function(A){A.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 Lu[n.id]},t.prototype.resize=function(e){if(!this[tr]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Tr]&&(i==null&&(i=this[Tr].silent),a=!0,this[Tr]=null),this[tr]=!0;try{a&&No(this),li.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(A){throw this[tr]=!1,A}this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!X0[e]){var a=X0[e](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(e){var n=V({},e);return n.type=Qu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!Ov[e.type]&&this._model){if(this[tr]){this._pendingActions.push(e);return}var a=n.silent;Wg.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Ut.browser.weChat&&this._throttledZrFlush(),Tl.call(this,a),Il.call(this,a)}},t.prototype.updateLabelLayout=function(){Tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){No=function(f){var c=f._scheduler;c.restorePipelines(f._model),c.prepareStageTasks(),Gg(f,!0),Gg(f,!1),c.plan()},Gg=function(f,c){for(var h=f._model,v=f._scheduler,d=c?f._componentsViews:f._chartsViews,p=c?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,m=0;mc.get("hoverLayerThreshold")&&!Ut.node&&!Ut.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function A(f,c){var h=f.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function o(f,c){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;c.eachRendered(function(d){return s(d,h,v,-1/0),!0})}}function s(f,c,h,v){var d=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),m=0;m0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xs(g))return;if(g instanceof Mt&&G3(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&a(g)}})}pb=function(f){return new(function(c){H(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return f._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Wa(v,d),Zr(f)},h.prototype.leaveEmphasis=function(v,d){Xa(v,d),Zr(f)},h.prototype.enterBlur=function(v){BM(v),Zr(f)},h.prototype.leaveBlur=function(v){a_(v),Zr(f)},h.prototype.enterSelect=function(v){_M(v),Zr(f)},h.prototype.leaveSelect=function(v){CM(v),Zr(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}(dU))(f)},u2=function(f){function c(h,v){for(var d=0;d=0)){mb.push(e);var i=VU.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function p2(r,t){X0[r]=t}function C8(r,t,e){var n=e8("registerMap");n&&n(r,t,e)}var S8=Hz;bo(I_,lW);bo(op,uW);bo(op,fW);bo(I_,SW);bo(op,xW);bo(a2,jW);v2(gU);d2(a8,yz);p2("default",cW);ma({type:ro,event:ro,update:ro},Be);ma({type:Kh,event:Kh,update:Kh},Be);ma({type:Tu,event:Tu,update:Tu},Be);ma({type:zh,event:zh,update:zh},Be);ma({type:Iu,event:Iu,update:Iu},Be);h2("light",_W);h2("dark",WU);var wb=[],x8={registerPreprocessor:v2,registerProcessor:d2,registerPostInit:m8,registerPostUpdate:w8,registerUpdateLifecycle:D_,registerAction:ma,registerCoordinateSystem:B8,registerLayout:_8,registerVisual:bo,registerTransform:S8,registerLoading:p2,registerMap:C8,registerImpl:t8,PRIORITY:h8,ComponentModel:Rt,ComponentView:de,SeriesModel:se,ChartView:jt,registerComponentModel:function(r){Rt.registerClass(r)},registerComponentView:function(r){de.registerClass(r)},registerSeriesModel:function(r){se.registerClass(r)},registerChartView:function(r){jt.registerClass(r)},registerSubTypeDefaulter:function(r,t){Rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){lK(r,t)}};function Lt(r){if(K(r)){T(r,function(t){Lt(t)});return}Qt(wb,r)>=0||(wb.push(r),vt(r)&&(r={install:r}),r.install(x8))}function Fl(r){return r==null?0:r.length||1}function Bb(r){return r}var Ya=function(){function r(t,e,n,a,i,A){this._old=t,this._new=e,this._oldKeyGetter=n||Bb,this._newKeyGetter=a||Bb,this.context=i,this._diffModeMultiple=A==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var A=0;A1){var u=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(u,A)}else l===1?(n[o]=null,this._update&&this._update(s,A)):this._remove&&this._remove(A)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],A=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,A,"_newKeyGetter");for(var o=0;o1&&c===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[s]=null;else if(f===1&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[s]=null;else if(f===1&&c===1)this._update&&this._update(u,l),a[s]=null;else if(f>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[s]=null;else if(f>1)for(var h=0;h1)for(var o=0;o30}var El=yt,ui=Y,D8=typeof Int32Array>"u"?Array:Int32Array,Q8="e\0\0",_b=-1,L8=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],M8=["_approximateExtent"],Cb,Lc,Dl,Ql,Zg,Mc,$g,mr=function(){function r(t,e){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;y2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},A=[],o={},s=!1,l={},u=0;u=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,A=this._idList,o=a.getSource().sourceFormat,s=o===mn;if(s&&!a.pure)for(var l=[],u=t;u0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),K(i)?i=i.slice():El(i)&&(i=V({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,El(e)?V(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){El(t)?V(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?V(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;x0(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ui(this.dimensions,this._getDimInfo,this),this.hostModel)),Zg(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(NB(arguments)))})},r.internalField=function(){Cb=function(t){var e=t._invertedIndicesMap;T(e,function(n,a){var i=t._dimInfos[a],A=i.ordinalMeta,o=t._store;if(A){n=e[a]=new D8(A.categories.length);for(var s=0;s1&&(s+="__ec__"+u),a[e]=s}}}(),r}();function kf(r,t){B_(r)||(r=__(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ft(),i=[],A=P8(r,e,n,t.dimensionsCount),o=t.canOmitUnusedDimensions&&B2(A),s=n===r.dimensionsDefine,l=s?w2(r):m2(n),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(r,A));for(var f=ft(u),c=new IU(A),h=0;h0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function P8(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return T(t,function(i){var A;yt(i)&&(A=i.dimsDef)&&(a=Math.max(a,A.length))}),a}function R8(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var H8=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function O8(r){var t=r.get("coordinateSystem"),e=new H8(t),n=k8[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var k8={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",be).models[0],i=r.getReferringComponents("yAxis",be).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Vo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Vo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",be).models[0];t.coordSysDims=["single"],e.set("single",a),Vo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",be).models[0],i=a.findAxisModel("radiusAxis"),A=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",A),Vo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Vo(A)&&(n.set("angle",A),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),A=t.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(o,s){var l=a.getComponent("parallelAxis",o),u=A[s];e.set(u,l),Vo(l)&&(n.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=s))})}};function Vo(r){return r.get("type")==="category"}function N8(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,A,o;V8(t)?i=t:(A=t.schema,i=A.dimensions,o=t.store);var s=!!(r&&r.get("stack")),l,u,f,c;if(T(i,function(y,m){nt(y)&&(i[m]=y={name:y}),s&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){f="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;T(i,function(y){y.coordDim===h&&d++});var p={name:f,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};A?(o&&(p.storeDimIndex=o.ensureCalculationDimension(c,v),g.storeDimIndex=o.ensureCalculationDimension(f,v)),A.appendCalculationDimension(p),A.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:f}}function V8(r){return!y2(r.schema)}function Zi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function _2(r,t){return Zi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function G8(r,t){var e=r.get("coordinateSystem"),n=Hf.get(e),a;return t&&t.coordSysDims&&(a=Y(t.coordSysDims,function(i){var A={name:i},o=t.axisMap.get(i);if(o){var s=o.get("type");A.type=Nv(s)}return A})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function K8(r,t,e){var n,a;return e&&T(r,function(i,A){var o=i.coordDim,s=e.categoryAxisMap.get(o);s&&(n==null&&(n=A),i.ordinalMeta=s.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ri(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=__(r)):(a=n.getSource(),i=a.sourceFormat===mn);var A=O8(t),o=G8(t,A),s=e.useEncodeDefaulter,l=vt(s)?s:s?xt(fU,o,t):null,u={coordDimensions:o,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},f=kf(a,u),c=K8(f.dimensions,e.createInvertedIndices,A),h=i?null:n.getSharedDataStore(f),v=N8(t,{schema:f,store:h}),d=new mr(f,t);d.setCalculationInfo(v);var p=c!=null&&z8(a)?function(g,y,m,w){return w===c?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function z8(r){if(r.sourceFormat===mn){var t=W8(r.data||[]);return!K($s(t))}}function W8(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Nd(wa);var X8=0,Y0=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++X8}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&Y(n,Y8);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function Y8(r){return yt(r)&&r.value!=null?r.value:r+""}function Z0(r){return r.type==="interval"||r.type==="log"}function Z8(r,t,e,n){var a={},i=r[1]-r[0],A=a.interval=$L(i/t);e!=null&&An&&(A=a.interval=n);var o=a.intervalPrecision=C2(A),s=a.niceTickExtent=[me(Math.ceil(r[0]/A)*A,o),me(Math.floor(r[1]/A)*A,o)];return $8(s,r),a}function Jg(r){var t=Math.pow(10,ZB(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,me(e*t)}function C2(r){return aa(r)+2}function Sb(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function $8(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Sb(r,0,t),Sb(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function sp(r,t){return r>=t[0]&&r<=t[1]}function lp(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function up(r,t){return r*(t[1]-t[0])+t[0]}var fp=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Y0({})),K(a)&&(a=new Y0({categories:Y(a,function(i){return yt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),sp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),lp(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(up(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],A=0,o=this._ordinalMeta.categories.length,s=Math.min(o,n.length);A=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wa);wa.registerClass(fp);var xA=me,Za=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return sp(e,this._extent)},t.prototype.normalize=function(e){return lp(e,this._extent)},t.prototype.scale=function(e){return up(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=C2(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,A=this._intervalPrecision,o=[];if(!n)return o;var s=1e4;a[0]s)return[];var u=o.length?o[o.length-1].value:i[1];return a[1]>u&&(e?o.push({value:xA(u+n,A)}):o.push({value:a[1]})),o},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),A=1;Ai[0]&&h0&&(i=i===null?o:Math.min(i,o))}e[n]=i}}return e}function b2(r){var t=j8(r),e=[];return T(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),A=i.getExtent(),o;if(i.type==="category")o=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,l=t[s],u=Math.abs(A[1]-A[0]),f=i.scale.getExtent(),c=Math.abs(f[1]-f[0]);o=l?u/c*l:u}else{var h=n.getData();o=Math.abs(A[1]-A[0])/h.count()}var v=et(n.get("barWidth"),o),d=et(n.get("barMaxWidth"),o),p=et(n.get("barMinWidth")||(D2(n)?.5:1),o),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:o,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:M_(i),stackId:L_(n)})}),T2(e)}function T2(r){var t={};T(r,function(n,a){var i=n.axisKey,A=n.bandWidth,o=t[i]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=o.stacks;t[i]=o;var l=n.stackId;s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!s[l].width&&(s[l].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var f=n.barMaxWidth;f&&(s[l].maxWidth=f);var c=n.barMinWidth;c&&(s[l].minWidth=c);var h=n.barGap;h!=null&&(o.gap=h);var v=n.barCategoryGap;v!=null&&(o.categoryGap=v)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=n.categoryGap;if(o==null){var s=Ht(i).length;o=Math.max(35-s*4,15)+"%"}var l=et(o,A),u=et(n.gap,1),f=n.remainedWidth,c=n.autoWidthCount,h=(f-l)/(c+(c-1)*u);h=Math.max(h,0),T(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,f-=w+u*w,c--}else{var w=h;y&&yw&&(w=m),w!==h&&(g.width=w,f-=w+u*w,c--)}}),h=(f-l)/(c+(c-1)*u),h=Math.max(h,0);var v=0,d;T(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;T(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:A,offset:p,width:g.width},p+=g.width*(1+u)})}),e}function tX(r,t,e){if(r&&t){var n=r[M_(t)];return n!=null&&e!=null?n[L_(e)]:n}}function I2(r,t){var e=x2(r,t),n=b2(e);T(e,function(a){var i=a.getData(),A=a.coordinateSystem,o=A.getBaseAxis(),s=L_(a),l=n[M_(o)][s],u=l.offset,f=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:f})})}function F2(r){return{seriesType:r,plan:il(),reset:function(t){if(E2(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),A=e.getDimensionIndex(e.mapDimension(i.dim)),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),f=Zi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=eX(a,i),v=D2(t),d=t.get("barMinHeight")||0,p=u&&e.getDimensionIndex(u),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(m,w){for(var _=m.count,B=v&&Aa(_*3),C=v&&s&&Aa(_*3),S=v&&Aa(_),x=n.master.getRect(),b=c?x.width:x.height,I,F=w.getStore(),E=0;(I=m.next())!=null;){var D=F.get(f?p:A,I),Q=F.get(o,I),M=h,R=void 0;f&&(R=+D-F.get(A,I));var P=void 0,O=void 0,G=void 0,X=void 0;if(c){var J=n.dataToPoint([D,Q]);if(f){var At=n.dataToPoint([R,Q]);M=At[0]}P=M,O=J[1]+y,G=J[0]-M,X=g,Math.abs(G)0?e:1:e))}var rX=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var o=Uc.length,s=Math.min(rX(Uc,this._approxInterval,0,o),o-1);this._interval=Uc[s][1],this._minLevelUnit=Uc[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Kt(e)?e:+pa(e)},t.prototype.contain=function(e){return sp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return lp(this.parse(e),this._extent)},t.prototype.scale=function(e){return up(e,this._extent)},t.type="time",t}(Za),Uc=[["second",h_],["minute",v_],["hour",Eu],["quarter-day",Eu*6],["half-day",Eu*12],["day",un*1.2],["half-week",un*3.5],["week",un*7],["month",un*31],["quarter",un*95],["half-year",cx/2],["year",cx]];function nX(r,t,e,n){var a=pa(t),i=pa(e),A=function(v){return vx(a,v,n)===vx(i,v,n)},o=function(){return A("year")},s=function(){return o()&&A("month")},l=function(){return s()&&A("day")},u=function(){return l()&&A("hour")},f=function(){return u()&&A("minute")},c=function(){return f()&&A("second")},h=function(){return c()&&A("millisecond")};switch(r){case"year":return o();case"month":return s();case"day":return l();case"hour":return u();case"minute":return f();case"second":return c();case"millisecond":return h()}}function aX(r,t){return r/=un,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function iX(r){var t=30*un;return r/=t,r>6?6:r>3?3:r>2?2:1}function AX(r){return r/=Eu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function xb(r,t){return r/=t?v_:h_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function oX(r){return $L(r)}function sX(r,t,e){var n=new Date(r);switch(Ts(t)){case"year":case"month":n[$M(e)](0);case"day":n[JM(e)](1);case"hour":n[qM(e)](0);case"minute":n[jM(e)](0);case"second":n[tU(e)](0),n[eU(e)](0)}return n.getTime()}function lX(r,t,e,n){var a=1e4,i=YM,A=0;function o(b,I,F,E,D,Q,M){for(var R=new Date(I),P=I,O=R[E]();P1&&Q===0&&F.unshift({value:F[0].value-P})}}for(var Q=0;Q=n[0]&&y<=n[1]&&f++)}var m=(n[1]-n[0])/t;if(f>m*1.5&&c>m/1.5||(l.push(p),f>m||r===i[h]))break}u=[]}}}for(var w=Jt(Y(l,function(b){return Jt(b,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(b){return b.length>0}),_=[],B=w.length-1,h=0;h0;)i*=10;var o=[me(cX(n[0]/i)*i),me(fX(n[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Mu.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Cn(e)/Cn(this.base),sp(e,this._extent)},t.prototype.normalize=function(e){return e=Cn(e)/Cn(this.base),lp(e,this._extent)},t.prototype.scale=function(e){return e=up(e,this._extent),Pc(this.base,e)},t.type="log",t}(wa),Q2=P_.prototype;Q2.getMinorTicks=Mu.getMinorTicks;Q2.getLabel=Mu.getLabel;function Rc(r,t){return uX(r,aa(t))}wa.registerClass(P_);var hX=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(o=c,l=!0),h!=null&&(s=h,u=!0),{min:o,max:s,minFixed:l,maxFixed:u,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[dX[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=vX[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),vX={min:"_determinedMin",max:"_determinedMax"},dX={min:"_dataMin",max:"_dataMax"};function L2(r,t,e){var n=r.rawExtentInfo;return n||(n=new hX(r,t,e),r.rawExtentInfo=n,n)}function Hc(r,t){return t==null?null:Zu(t)?NaN:r.parse(t)}function M2(r,t){var e=r.type,n=L2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,A=t.ecModel;if(A&&e==="time"){var o=x2("bar",A),s=!1;if(T(o,function(f){s=s||f.getBaseAxis()===t.axis}),s){var l=b2(o),u=pX(a,i,t,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function pX(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],A=tX(n,e.axis);if(A===void 0)return{min:r,max:t};var o=1/0;T(A,function(h){o=Math.min(h.offset,o)});var s=-1/0;T(A,function(h){s=Math.max(h.offset+h.width,s)}),o=Math.abs(o),s=Math.abs(s);var l=o+s,u=t-r,f=1-(o+s)/i,c=u/f-u;return t+=c*(s/l),r-=c*(o/l),{min:r,max:t}}function Os(r,t){var e=t,n=M2(r,e),a=n.extent,i=e.get("splitNumber");r instanceof P_&&(r.base=e.get("logBase"));var A=r.type,o=e.get("interval"),s=A==="interval"||A==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),o!=null&&r.setInterval&&r.setInterval(o)}function cp(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new fp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new U_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(wa.getClass(t)||Za)}}function gX(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function sl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),A=n.replace("{value}",i??"");return A}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(R_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function R_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function yX(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof fp?a=e.count():(n=e.getTicks(),a=n.length);var A=r.getLabelModel(),o=sl(r),s,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;ur[1]&&(r[1]=a[1])})}var Nf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),BX=1e-8;function Tb(r,t){return Math.abs(r-t)a&&(n=A,a=s)}if(n)return CX(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],A=this.geometries;return T(A,function(o){o.type==="polygon"?Ib(o.exterior,a,i,e):T(o.points,function(s){Ib(s,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,A=a.length;i>1^-(o&1),s=s>>1^-(s&1),o+=a,s+=i,a=o,i=s,n.push([o/e,s/e])}return n}function bX(r,t){return r=xX(r),Y(Jt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var A=a.coordinates;i.push(new Fb(A[0],A.slice(1)));break;case"MultiPolygon":T(a.coordinates,function(s){s[0]&&i.push(new Fb(s[0],s.slice(1)))});break;case"LineString":i.push(new Eb([a.coordinates]));break;case"MultiLineString":i.push(new Eb(a.coordinates))}var o=new R2(n[t||"name"],i,n.cp);return o.properties=n,o})}var ff=Vt();function O2(r,t){var e=Y(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function TX(r){var t=r.getLabelModel().get("customValues");if(t){var e=sl(r);return{labels:O2(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?FX(r):DX(r)}function IX(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:O2(r,e)}:r.type==="category"?EX(r,t):{ticks:Y(r.scale.getTicks(),function(n){return n.value})}}function FX(r){var t=r.getLabelModel(),e=k2(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function k2(r,t){var e=N2(r,"labels"),n=H_(t),a=V2(e,n);if(a)return a;var i,A;return vt(n)?i=z2(r,n):(A=n==="auto"?QX(r):n,i=K2(r,A)),G2(e,n,{labels:i,labelCategoryInterval:A})}function EX(r,t){var e=N2(r,"ticks"),n=H_(t),a=V2(e,n);if(a)return a;var i,A;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=z2(r,n,!0);else if(n==="auto"){var o=k2(r,r.getLabelModel());A=o.labelCategoryInterval,i=Y(o.labels,function(s){return s.tickValue})}else A=n,i=K2(r,A,!0);return G2(e,n,{ticks:i,tickCategoryInterval:A})}function DX(r){var t=r.scale.getTicks(),e=sl(r);return{labels:Y(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function N2(r,t){return ff(r)[t]||(ff(r)[t]=[])}function V2(r,t){for(var e=0;e40&&(o=Math.max(1,Math.floor(A/40)));for(var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l*Math.cos(n)),f=Math.abs(l*Math.sin(n)),c=0,h=0;s<=i[1];s+=o){var v=0,d=0,p=Ef(e({value:s}),t.font,"center","top");v=p.width*1.3,d=p.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/u,y=h/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var m=Math.max(0,Math.floor(Math.min(g,y))),w=ff(r.model),_=r.getExtent(),B=w.lastAutoInterval,C=w.lastTickCount;return B!=null&&C!=null&&Math.abs(B-m)<=1&&Math.abs(C-A)<=1&&B>m&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?m=B:(w.lastTickCount=A,w.lastAutoInterval=m,w.axisExtent0=_[0],w.axisExtent1=_[1]),m}function MX(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function K2(r,t,e){var n=sl(r),a=r.scale,i=a.getExtent(),A=r.getLabelModel(),o=[],s=Math.max((t||0)+1,1),l=i[0],u=a.count();l!==0&&s>1&&u/s>2&&(l=Math.round(Math.ceil(l/s)*s));var f=U2(r),c=A.get("showMinLabel")||f,h=A.get("showMaxLabel")||f;c&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=s)d(v);h&&v-s!==i[1]&&d(i[1]);function d(p){var g={value:p};o.push(e?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p})}return o}function z2(r,t,e){var n=r.scale,a=sl(r),i=[];return T(n.getTicks(),function(A){var o=n.getLabel(A),s=A.value;t(A.value,o)&&i.push(e?s:{formattedLabel:a(A),rawLabel:o,tickValue:s})}),i}var Db=[0,1],On=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return YL(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qb(n,a.count())),$t(t,Db,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qb(n,a.count()));var i=$t(t,n,Db,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=IX(this,e),a=n.ticks,i=Y(a,function(o){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(o):o),tickValue:o}},this),A=e.get("alignWithLabel");return UX(this,i,A,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=Y(n,function(i){return Y(i,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return a},r.prototype.getViewLabels=function(){return TX(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return LX(this)},r}();function Qb(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function UX(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),A,o;if(a===1)t[0].coord=i[0],A=t[1]={coord:i[1]};else{var s=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/s;T(t,function(h){h.coord-=l/2});var u=r.scale.getExtent();o=1+u[1]-t[a-1].tickValue,A={coord:t[a-1].coord+l*o},t.push(A)}var f=i[0]>i[1];c(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],A.coord)&&(n?A.coord=i[1]:t.pop()),n&&c(A.coord,i[1])&&t.push({coord:i[1]});function c(h,v){return h=me(h),v=me(v),f?h>v:ha&&(a+=Ll);var h=Math.atan2(o,A);if(h<0&&(h+=Ll),h>=n&&h<=a||h+Ll>=n&&h+Ll<=a)return s[0]=u,s[1]=f,l-e;var v=e*Math.cos(n)+r,d=e*Math.sin(n)+t,p=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(v-A)*(v-A)+(d-o)*(d-o),m=(p-A)*(p-A)+(g-o)*(g-o);return y0){t=t/180*Math.PI,Dn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Dn,Ae),It.sub(ra,we,Ae);var e=oa.len(),n=ra.len();if(!(e<.001||n<.001)){oa.scale(1/e),ra.scale(1/n);var a=oa.dot(ra),i=Math.cos(t);if(i1&&It.copy(pr,we),pr.toArray(r[1])}}}}function NX(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Dn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Ae,Dn),It.sub(ra,we,Ae);var n=oa.len(),a=ra.len();if(!(n<.001||a<.001)){oa.scale(1/n),ra.scale(1/a);var i=oa.dot(t),A=Math.cos(e);if(i=s)It.copy(pr,we);else{pr.scaleAndAdd(ra,o/Math.tan(Math.PI/2-u));var f=we.x!==Ae.x?(pr.x-Ae.x)/(we.x-Ae.x):(pr.y-Ae.y)/(we.y-Ae.y);if(isNaN(f))return;f<0?It.copy(pr,Ae):f>1&&It.copy(pr,we)}pr.toArray(r[1])}}}}function ty(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var A=n.get("smooth");A&&A===!0&&(A=.3),i.shape=i.shape||{},A>0&&(i.shape.smooth=A);var o=n.getModel("lineStyle").getLineStyle();a?r.useStyle(o):i.style=o}function VX(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=xi(n[0],n[1]),i=xi(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var A=Math.min(a,i)*e,o=Hh([],n[1],n[0],A/a),s=Hh([],n[1],n[2],A/i),l=Hh([],o,s,.5);r.bezierCurveTo(o[0],o[1],o[0],o[1],l[0],l[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var u=1;u0&&i&&_(-u/A,0,A);var d=r[0],p=r[A-1],g,y;m(),g<0&&B(-g,.8),y<0&&B(y,.8),m(),w(g,y,1),w(y,g,-1),m(),g<0&&C(-g),y<0&&C(y);function m(){g=d.rect[t]-n,y=a-p.rect[t]-p.rect[e]}function w(S,x,b){if(S<0){var I=Math.min(x,-S);if(I>0){_(I*b,0,A);var F=I+S;F<0&&B(-F*b,1)}else B(-S*b,1)}}function _(S,x,b){S!==0&&(l=!0);for(var I=x;I0)for(var F=0;F0;F--){var M=b[F-1]*Q;_(-M,F,A)}}}function C(S){var x=S<0?-1:1;S=Math.abs(S);for(var b=Math.ceil(S/(A-1)),I=0;I0?_(b,0,I+1):_(-b,A-I-1,A),S-=b,S<=0)return}return l}function GX(r,t,e,n){return Z2(r,"x","width",t,e,n)}function $2(r,t,e,n){return Z2(r,"y","height",t,e,n)}function J2(r){var t=[];r.sort(function(d,p){return p.priority-d.priority});var e=new Dt(0,0,0,0);function n(d){if(!d.ignore){var p=d.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),Qt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),zt(n,l,e,s)}else if(n.attr(l),!tl(n).valueAnimation){var f=St(n.style.opacity,1);n.style.opacity=0,ue(n,{style:{opacity:f}},e,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};Oc(h,l,kc),Oc(h,n.states.select,kc)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Oc(v,l,kc),Oc(v,n.states.emphasis,kc)}GM(n,s,u,e,e)}if(a&&!a.ignore&&!a.invisible){var i=WX(a),A=i.oldLayout,d={points:a.shape.points};A?(a.attr({shape:A}),zt(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ue(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),ry=Vt();function YX(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=ry(e).labelManager;a||(a=ry(e).labelManager=new XX),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=ry(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ny=Math.sin,ay=Math.cos,q2=Math.PI,TA=Math.PI*2,ZX=180/q2,j2=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){this._add("C",t,e,n,a,i,A)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,A){this.ellipse(t,e,n,n,0,a,i,A)},r.prototype.ellipse=function(t,e,n,a,i,A,o,s){var l=o-A,u=!s,f=Math.abs(l),c=Ei(f-TA)||(u?l>=TA:-l>=TA),h=l>0?l%TA:l%TA+TA,v=!1;c?v=!0:Ei(f)?v=!1:v=h>=q2==!!u;var d=t+n*ay(A),p=e+a*ny(A);this._start&&this._add("M",d,p);var g=Math.round(i*ZX);if(c){var y=1/this._p,m=(u?1:-1)*(TA-y);this._add("A",n,a,g,1,+u,t+n*ay(A+m),e+a*ny(A+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=t+n*ay(o),_=e+a*ny(o);this._add("A",n,a,g,+v,+u,w,_)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,A,o,s,l){for(var u=[],f=this._p,c=1;c"}function a6(r){return""}function V_(r,t){t=t||{};var e=t.newline?` +`];function ke(r,t){return t.type=r,t}function O0(r){return r.type==="section"}function LU(r){return O0(r)?Wz:Xz}function MU(r){if(O0(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return T(r.blocks,function(a){var i=MU(a);i>=t&&(t=i+ +(n&&(!i||O0(a)&&!a.noHeader)))}),t}return 0}function Wz(r,t,e,n){var a=t.noHeader,i=Yz(MU(t)),A=[],o=t.blocks||[];Br(!o||K(o)),o=o||[];var s=r.orderMode;if(t.sortBlocks&&s){o=o.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(st(l,s)){var u=new bU(l[s],null);o.sort(function(v,d){return u.evaluate(v.sortParam,d.sortParam)})}else s==="seriesDesc"&&o.reverse()}T(o,function(v,d){var p=t.valueFormatter,g=LU(v)(p?V(V({},r),{valueFormatter:p}):r,v,d>0?i.html:0,n);g!=null&&A.push(g)});var f=r.renderMode==="richText"?A.join(i.richText):k0(A.join(""),a?e:i.html);if(a)return f;var c=M0(t.header,"ordinal",r.useUTC),h=QU(n,r.renderMode).nameStyle;return r.renderMode==="richText"?UU(r,c,h)+i.richText+f:k0('
'+Er(c)+"
"+f,e)}function Xz(r,t,e,n){var a=r.renderMode,i=t.noName,A=t.noValue,o=!t.markerType,s=t.name,l=r.useUTC,u=t.valueFormatter||r.valueFormatter||function(w){return w=K(w)?w:[w],Y(w,function(_,B){return M0(_,K(h)?h[B]:h,l)})};if(!(i&&A)){var f=o?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=i?"":M0(s,"ordinal",l),h=t.valueType,v=A?[]:u(t.value,t.dataIndex),d=!o||!i,p=!o&&i,g=QU(n,a),y=g.nameStyle,m=g.valueStyle;return a==="richText"?(o?"":f)+(i?"":UU(r,c,y))+(A?"":Jz(r,v,d,p,m)):k0((o?"":f)+(i?"":Zz(c,!o,y))+(A?"":$z(v,d,p,m)),e)}}function kx(r,t,e,n,a,i){if(r){var A=LU(r),o={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return A(o,r,0,i)}}function Yz(r){return{html:Kz[r],richText:zz[r]}}function k0(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function Zz(r,t,e){var n=t?"margin-left:2px":"";return''+Er(r)+""}function $z(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=K(r)?r:[r],''+Y(r,function(A){return Er(A)}).join("  ")+""}function UU(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Jz(r,t,e,n,a){var i=[a],A=n?10:20;return e&&i.push({padding:[0,0,0,A],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,i)}function PU(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return go(n)}function RU(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Og=function(){function r(){this.richTextStyles={},this._nextStyleNameId=qL()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=V5({color:e,type:t,renderMode:n,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};K(e)?T(e,function(i){return V(n,i)}):V(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function HU(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),A=i.length,o=t.getRawValue(e),s=K(o),l=PU(t,e),u,f,c,h;if(A>1||s&&!A){var v=qz(o,t,e,i,l);u=v.inlineValues,f=v.inlineValueTypes,c=v.blocks,h=v.inlineValues[0]}else if(A){var d=a.getDimensionInfo(i[0]);h=u=Rs(a,e,i[0]),f=d.type}else h=u=s?o[0]:o;var p=$B(t),g=p&&t.name||"",y=a.getName(e),m=n?g:y;return ke("section",{header:g,noHeader:n||!p,sortParam:h,blocks:[ke("nameValue",{markerType:"item",markerColor:l,name:m,noName:!En(m),value:u,valueType:f,dataIndex:e})].concat(c||[])})}function qz(r,t,e,n,a){var i=t.getData(),A=ha(r,function(f,c,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),o=[],s=[],l=[];n.length?T(n,function(f){u(Rs(i,e,f),f)}):T(r,u);function u(f,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(A?l.push(ke("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(o.push(f),s.push(h.type)))}return{inlineValues:o,inlineValueTypes:s,blocks:l}}var si=Vt();function bc(r,t){return r.getName(t)||r.getId(t)}var Zh="__universalTransitionEnabled",se=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Du({count:tW,reset:eW}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=si(this).sourceManager=new EU(this);i.prepareSource();var A=this.getInitialData(e,a);Vx(A,this),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Nx(this),this._initSelectedMapFromData(A)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=Af(this),i=a?nl(e):{},A=this.subType;Rt.hasClass(A)&&(A+="Series"),Et(e,n.getTheme().get(this.subType)),Et(e,this.getDefaultOption()),co(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Yi(e,i,a)},t.prototype.mergeOption=function(e,n){e=Et(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Af(this);a&&Yi(this.option,e,a);var i=si(this).sourceManager;i.dirty(),i.prepareSource();var A=this.getInitialData(e,n);Vx(A,this),this.dataTask.dirty(),this.dataTask.context.data=A,si(this).dataBeforeProcessed=A,Nx(this),this._initSelectedMapFromData(A)},t.prototype.fillDataTextStyle=function(e){if(e&&!Mr(e))for(var n=["show"],a=0;athis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,A=m_.prototype.getColorFromPalette.call(this,e,n,a);return A||(A=i.getColorFromPalette(e,n,a)),A},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,A=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o=0&&a.push(A)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[bc(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Zh])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,A=this.option,o=A.selectedMode,s=n.length;if(!(!o||!s)){if(o==="series")A.selectedMap="all";else if(o==="multiple"){yt(A.selectedMap)||(A.selectedMap={});for(var l=A.selectedMap,u=0;u0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Rt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Rt);Ie(se,ip);Ie(se,m_);oM(se,Rt);function Nx(r){var t=r.name;$B(r)||(r.name=jz(r)||t)}function jz(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return T(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function tW(r){return r.model.getRawData().count()}function eW(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),rW}function rW(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Vx(r,t){T(gv(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,xt(nW,t))})}function nW(r,t){var e=N0(r);return e&&e.setOutputEnd((t||this).count()),t}function N0(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var de=function(){function r(){this.group=new _t,this.uid=el("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();qB(de);Nd(de);function il(){var r=Vt();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,A=e.large=!!(n&&n.large),o=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==A||i!==o)&&"reset"}}var OU=Vt(),aW=il(),jt=function(){function r(){this.group=new _t,this.uid=el("viewChart"),this.renderTask=Du({plan:iW,reset:AW}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Kx(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&Kx(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateLayout=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){rA(this.group,t)},r.markUpdateMethod=function(t,e){OU(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Gx(r,t,e){r&&rf(r)&&(t==="emphasis"?Wa:Xa)(r,e)}function Kx(r,t,e){var n=ho(r,t),a=t&&t.highlightKey!=null?V3(t.highlightKey):null;n!=null?T(qt(n),function(i){Gx(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){Gx(i,e,a)})}qB(jt);Nd(jt);function iW(r){return aW(r.model)}function AW(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,A=r.view,o=a&&OU(a).updateMethod,s=i?"incrementalPrepareRender":o&&A[o]?o:"render";return s!=="render"&&A[s](t,e,n,a),oW[s]}var oW={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Mv="\0__throttleOriginMethod",zx="\0__throttleRate",Wx="\0__throttleType";function x_(r,t,e){var n,a=0,i=0,A=null,o,s,l,u;t=t||0;function f(){i=new Date().getTime(),A=null,r.apply(s,l||[])}var c=function(){for(var h=[],v=0;v=0?f():A=setTimeout(f,-o),a=n};return c.clear=function(){A&&(clearTimeout(A),A=null)},c.debounceNextCall=function(h){u=h},c}function Al(r,t,e,n){var a=r[t];if(a){var i=a[Mv]||a,A=a[Wx],o=a[zx];if(o!==e||A!==n){if(e==null||!n)return r[t]=i;a=r[t]=x_(i,e,n==="debounce"),a[Mv]=i,a[Wx]=n,a[zx]=e}return a}}function sf(r,t){var e=r[t];e&&e[Mv]&&(e.clear&&e.clear(),r[t]=e[Mv])}var Xx=Vt(),Yx={itemStyle:vo(zM,!0),lineStyle:vo(KM,!0)},sW={lineStyle:"stroke",itemStyle:"fill"};function kU(r,t){var e=r.visualStyleMapper||Yx[t];return e||(console.warn("Unknown style type '"+t+"'."),Yx.itemStyle)}function NU(r,t){var e=r.visualDrawType||sW[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var lW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=kU(r,n),A=i(a),o=a.getShallow("decal");o&&(e.setVisual("decal",o),o.dirty=!0);var s=NU(r,n),l=A[s],u=vt(l)?l:null,f=A.fill==="auto"||A.stroke==="auto";if(!A[s]||u||f){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());A[s]||(A[s]=c,e.setVisual("colorFromPalette",!0)),A.fill=A.fill==="auto"||vt(A.fill)?c:A.fill,A.stroke=A.stroke==="auto"||vt(A.stroke)?c:A.stroke}if(e.setVisual("style",A),e.setVisual("drawType",s),!t.isSeriesFiltered(r)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=r.getDataParams(v),p=V({},A);p[s]=u(d),h.setItemVisual(v,"style",p)}}}},bl=new Yt,uW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=kU(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(A,o){var s=A.getRawDataItem(o);if(s&&s[n]){bl.option=s[n];var l=a(bl),u=A.ensureUniqueItemVisual(o,"style");V(u,l),bl.option.decal&&(A.setItemVisual(o,"decal",bl.option.decal),bl.option.decal.dirty=!0),i in l&&A.setItemVisual(o,"colorFromPalette",!1)}}:null}}}},fW={performRawSeries:!0,overallReset:function(r){var t=ft();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),Xx(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),a={},i=e.getData(),A=Xx(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=NU(e,o);i.each(function(l){var u=i.getRawIndex(l);a[u]=l}),n.each(function(l){var u=a[l],f=i.getItemVisual(u,"colorFromPalette");if(f){var c=i.ensureUniqueItemVisual(u,"style"),h=n.getName(l)||l+"",v=n.count();c[s]=e.getColorFromPalette(h,A,v)}})}})}},Tc=Math.PI;function cW(r,t){t=t||{},gt(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 e=new _t,n=new Nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Gt({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 Nt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var A;return t.showSpinner&&(A=new Yd({shape:{startAngle:-Tc/2,endAngle:-Tc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),A.animateShape(!0).when(1e3,{endAngle:Tc*3/2}).start("circularInOut"),A.animateShape(!0).when(1e3,{startAngle:Tc*3/2}).delay(300).start("circularInOut"),e.add(A)),e.resize=function(){var o=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-s*2-(t.showSpinner&&o?10:0)-o)/2-(t.showSpinner&&o?0:5+o/2)+(t.showSpinner?0:o/2)+(o?0:s),u=r.getHeight()/2;t.showSpinner&&A.setShape({cx:l,cy:u}),i.setShape({x:l-s,y:u-s,width:s*2,height:s*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var VU=function(){function r(t,e,n,a){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,A=i?n.step:null,o=a&&a.modDataCount,s=o!=null?Math.ceil(o/A):null;return{step:A,modBy:s,modDataCount:o}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),A=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:A,modDataCount:s,large:o}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(a){var i=a.getProgressive(),A=a.uid;n.set(A,{id:A,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;T(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),A="";Br(!(a.reset&&a.overallReset),A),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,A=i.context;A.model=e,A.ecModel=n,A.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,A=this;T(t,function(s,l){if(!(a.visualType&&a.visualType!==s.visualType)){var u=A._stageTaskMap.get(s.uid),f=u.seriesTaskMap,c=u.overallTask;if(c){var h,v=c.agentStubMap;v.each(function(p){o(a,p)&&(p.dirty(),h=!0)}),h&&c.dirty(),A.updatePayload(c,n);var d=A.getPerformArgs(c,a.block);v.each(function(p){p.perform(d)}),c.perform(d)&&(i=!0)}else f&&f.each(function(p,g){o(a,p)&&p.dirty();var y=A.getPerformArgs(p,a.block);y.skip=!s.performRawSeries&&e.isSeriesFiltered(p.context.model),A.updatePayload(p,n),p.perform(y)&&(i=!0)})}});function o(s,l){return s.setDirty&&(!s.dirtyMap||s.dirtyMap.get(l.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,a){var i=this,A=e.seriesTaskMap,o=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,a).each(u);function u(f){var c=f.uid,h=o.set(c,A&&A.get(c)||Du({plan:gW,reset:yW,count:wW}));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)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,A=e.overallTask=e.overallTask||Du({reset:hW});A.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var o=A.agentStubMap,s=A.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,f=!0,c=!1,h="";Br(!t.createOnAllSeries,h),l?n.eachRawSeriesByType(l,v):u?u(n,a).each(v):(f=!1,T(n.getSeries(),v));function v(d){var p=d.uid,g=s.set(p,o&&o.get(p)||(c=!0,Du({reset:vW,onDirty:pW})));g.context={model:d,overallProgress:f},g.agent=A,g.__block=f,i._pipe(d,g)}c&&A.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return vt(t)&&(t={overallReset:t,seriesType:BW(t)}),t.uid=el("stageHandler"),e&&(t.visualType=e),t},r}();function hW(r){r.overallReset(r.ecModel,r.api,r.payload)}function vW(r){return r.overallProgress&&dW}function dW(){this.agent.dirty(),this.getDownstream().dirty()}function pW(){this.agent&&this.agent.dirty()}function gW(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function yW(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=qt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,n){return GU(n)}):mW}var mW=GU(0);function GU(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i0&&h===l.length-c.length){var v=l.slice(0,h);v!=="data"&&(e.mainType=v,e[c.toLowerCase()]=s,u=!0)}}o.hasOwnProperty(l)&&(n[l]=s,u=!0),u||(a[l]=s)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,A=n.model,o=n.view;if(!A||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,A,"mainType")&&u(s,A,"subType")&&u(s,A,"index","componentIndex")&&u(s,A,"name")&&u(s,A,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,a,i));function u(f,c,h,v){return f[h]==null||c[v||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),V0=["symbol","symbolSize","symbolRotate","symbolOffset"],qx=V0.concat(["symbolKeepAspect"]),SW={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,A=0;A=0&&YA(s)?s:.5;var l=r.createRadialGradient(A,o,0,A,o,s);return l}function G0(r,t,e){for(var n=t.type==="radial"?OW(r,t,e):HW(r,t,e),a=t.colorStops,i=0;i0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Kt(r)?[r]:K(r)?r:null}function T_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&NW(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=Y(e,function(i){return i/a}),n/=a)}return[e,n]}var VW=new ga(!0);function Rv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function jx(r){return typeof r=="string"&&r!=="none"}function Hv(r){var t=r.fill;return t!=null&&t!=="none"}function tb(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function eb(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function K0(r,t,e){var n=jB(t.image,t.__image,e);if(Vd(n)){var a=r.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)*Ph),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function GW(r,t,e,n){var a,i=Rv(e),A=Hv(e),o=e.strokePercent,s=o<1,l=!t.path;(!t.silent||s)&&l&&t.createPathProxy();var u=t.path||VW,f=t.__dirty;if(!n){var c=e.fill,h=e.stroke,v=A&&!!c.colorStops,d=i&&!!h.colorStops,p=A&&!!c.image,g=i&&!!h.image,y=void 0,m=void 0,w=void 0,_=void 0,B=void 0;(v||d)&&(B=t.getBoundingRect()),v&&(y=f?G0(r,c,B):t.__canvasFillGradient,t.__canvasFillGradient=y),d&&(m=f?G0(r,h,B):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=f||!t.__canvasFillPattern?K0(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(_=f||!t.__canvasStrokePattern?K0(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?r.fillStyle=y:p&&(w?r.fillStyle=w:A=!1),d?r.strokeStyle=m:g&&(_?r.strokeStyle=_:i=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var S,x;r.setLineDash&&e.lineDash&&(a=T_(t),S=a[0],x=a[1]);var b=!0;(l||f&As)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),b=!1),u.reset(),t.buildPath(u,t.shape,n),u.toStatic(),t.pathUpdated()),b&&u.rebuildPath(r,s?o:1),S&&(r.setLineDash(S),r.lineDashOffset=x),n||(e.strokeFirst?(i&&eb(r,e),A&&tb(r,e)):(A&&tb(r,e),i&&eb(r,e))),S&&r.setLineDash([])}function KW(r,t,e){var n=t.__image=jB(e.image,t.__image,t,t.onload);if(!(!n||!Vd(n))){var a=e.x||0,i=e.y||0,A=t.getWidth(),o=t.getHeight(),s=n.width/n.height;if(A==null&&o!=null?A=o*s:o==null&&A!=null?o=A/s:A==null&&o==null&&(A=n.width,o=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,u=e.sy||0;r.drawImage(n,l,u,e.sWidth,e.sHeight,a,i,A,o)}else if(e.sx&&e.sy){var l=e.sx,u=e.sy,f=A-l,c=o-u;r.drawImage(n,l,u,f,c,a,i,A,o)}else r.drawImage(n,a,i,A,o)}}function zW(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Ki,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,A=void 0;r.setLineDash&&e.lineDash&&(n=T_(t),i=n[0],A=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=A),e.strokeFirst?(Rv(e)&&r.strokeText(a,e.x,e.y),Hv(e)&&r.fillText(a,e.x,e.y)):(Hv(e)&&r.fillText(a,e.x,e.y),Rv(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var rb=["shadowBlur","shadowOffsetX","shadowOffsetY"],nb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ZU(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Lr(r,a),i=!0;var A=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(A)?eo.opacity:A}(n||t.blend!==e.blend)&&(i||(Lr(r,a),i=!0),r.globalCompositeOperation=t.blend||eo.blend);for(var o=0;o0&&e.unfinished);e.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(e,n,a){if(!this[tr]){if(this._disposed){this.id;return}var i,A,o;if(yt(n)&&(a=n.lazyUpdate,i=n.silent,A=n.replaceMerge,o=n.transition,n=n.notMerge),this[tr]=!0,!this._model||n){var s=new Az(this._api),l=this._theme,u=this._model=new w_;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:A},W0);var f={seriesTransition:o,optionChanged:!0};if(a)this[Tr]={silent:i,updateParams:f},this[tr]=!1,this.getZr().wakeUp();else{try{No(this),li.update.call(this,null,f)}catch(c){throw this[Tr]=null,this[tr]=!1,c}this._ssr||this._zr.flush(),this[Tr]=null,this[tr]=!1,Tl.call(this,i),Il.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||Ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ut.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return T(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],A=this;T(n,function(s){a.eachComponent({mainType:s},function(l){var u=A._componentsMap[l.__viewId];u.group.ignore||(i.push(u),u.group.ignore=!0)})});var o=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(i,function(s){s.group.ignore=!1}),o},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,A=Math.max,o=1/0;if(yb[a]){var s=o,l=o,u=-o,f=-o,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();T(Lu,function(m,w){if(m.group===a){var _=n?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(mt(e)),B=m.getDom().getBoundingClientRect();s=i(B.left,s),l=i(B.top,l),u=A(B.right,u),f=A(B.bottom,f),c.push({dom:_,left:B.left,top:B.top})}}),s*=h,l*=h,u*=h,f*=h;var v=u-s,d=f-l,p=zi.createCanvas(),g=_S(p,{renderer:n?"svg":"canvas"});if(g.resize({width:v,height:d}),n){var y="";return T(c,function(m){var w=m.left-s,_=m.top-l;y+=''+m.dom+""}),g.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Nt({shape:{x:0,y:0,width:v,height:d},style:{fill:e.connectedBackgroundColor}})),T(c,function(m){var w=new Ke({style:{x:m.left*h-s,y:m.top*h-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Kg(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Kg(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,A=bu(a,e);return T(A,function(o,s){s.indexOf("Models")>=0&&T(o,function(l){var u=l.coordinateSystem;if(u&&u.containPoint)i=i||!!u.containPoint(n);else if(s==="seriesModels"){var f=this._chartsMap[l.__viewId];f&&f.containPoint&&(i=i||f.containPoint(n,l))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=bu(a,e,{defaultMainType:"series"}),A=i.seriesModel,o=A.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return s!=null?b_(o,s,n):Of(o,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(p8,function(n){var a=function(i){var A=e.getModel(),o=i.target,s,l=n==="globalout";if(l?s={}:o&&XA(o,function(v){var d=Ct(v);if(d&&d.dataIndex!=null){var p=d.dataModel||A.getSeriesByIndex(d.seriesIndex);return s=p&&p.getDataParams(d.dataIndex,d.dataType,o)||{},!0}else if(d.eventData)return s=V({},d.eventData),!0},!0),s){var u=s.componentType,f=s.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",f=s.seriesIndex);var c=u&&f!=null&&A.getComponent(u,f),h=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];s.event=i,s.type=n,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:s,model:c,view:h},e.trigger(n,s)}};a.zrEventfulCallAtLast=!0,e._zr.on(n,a,e)}),T(Qu,function(n,a){e._messageCenter.on(a,function(i){this.trigger(a,i)},e)}),T(["selectchanged"],function(n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),bW(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 e=this.getDom();e&&aM(this.getDom(),E_,"");var n=this,a=n._api,i=n._model;T(n._componentsViews,function(A){A.dispose(i,a)}),T(n._chartsViews,function(A){A.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 Lu[n.id]},t.prototype.resize=function(e){if(!this[tr]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[Tr]&&(i==null&&(i=this[Tr].silent),a=!0,this[Tr]=null),this[tr]=!0;try{a&&No(this),li.update.call(this,{type:"resize",animation:V({duration:0},e&&e.animation)})}catch(A){throw this[tr]=!1,A}this[tr]=!1,Tl.call(this,i),Il.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(yt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!X0[e]){var a=X0[e](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(e){var n=V({},e);return n.type=Qu[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(yt(n)||(n={silent:!!n}),!!Ov[e.type]&&this._model){if(this[tr]){this._pendingActions.push(e);return}var a=n.silent;Wg.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&Ut.browser.weChat&&this._throttledZrFlush(),Tl.call(this,a),Il.call(this,a)}},t.prototype.updateLabelLayout=function(){Tn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){No=function(f){var c=f._scheduler;c.restorePipelines(f._model),c.prepareStageTasks(),Gg(f,!0),Gg(f,!1),c.plan()},Gg=function(f,c){for(var h=f._model,v=f._scheduler,d=c?f._componentsViews:f._chartsViews,p=c?f._componentsMap:f._chartsMap,g=f._zr,y=f._api,m=0;mc.get("hoverLayerThreshold")&&!Ut.node&&!Ut.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=f._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function A(f,c){var h=f.get("blendMode")||null;c.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function o(f,c){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;c.eachRendered(function(d){return s(d,h,v,-1/0),!0})}}function s(f,c,h,v){var d=f.getTextContent(),p=f.getTextGuideLine(),g=f.isGroup;if(g)for(var y=f.childrenRef(),m=0;m0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(xs(g))return;if(g instanceof Mt&&G3(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(v){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&a(g)}})}pb=function(f){return new(function(c){H(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return f._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){Wa(v,d),Zr(f)},h.prototype.leaveEmphasis=function(v,d){Xa(v,d),Zr(f)},h.prototype.enterBlur=function(v){BM(v),Zr(f)},h.prototype.leaveBlur=function(v){a_(v),Zr(f)},h.prototype.enterSelect=function(v){_M(v),Zr(f)},h.prototype.leaveSelect=function(v){CM(v),Zr(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}(dU))(f)},u2=function(f){function c(h,v){for(var d=0;d=0)){mb.push(e);var i=VU.wrapStageHandler(e,a);i.__prio=t,i.__raw=e,r.push(i)}}function p2(r,t){X0[r]=t}function C8(r,t,e){var n=e8("registerMap");n&&n(r,t,e)}var S8=Hz;bo(I_,lW);bo(op,uW);bo(op,fW);bo(I_,SW);bo(op,xW);bo(a2,jW);v2(gU);d2(a8,yz);p2("default",cW);ma({type:ro,event:ro,update:ro},Be);ma({type:Kh,event:Kh,update:Kh},Be);ma({type:Tu,event:Tu,update:Tu},Be);ma({type:zh,event:zh,update:zh},Be);ma({type:Iu,event:Iu,update:Iu},Be);h2("light",_W);h2("dark",WU);var wb=[],x8={registerPreprocessor:v2,registerProcessor:d2,registerPostInit:m8,registerPostUpdate:w8,registerUpdateLifecycle:D_,registerAction:ma,registerCoordinateSystem:B8,registerLayout:_8,registerVisual:bo,registerTransform:S8,registerLoading:p2,registerMap:C8,registerImpl:t8,PRIORITY:h8,ComponentModel:Rt,ComponentView:de,SeriesModel:se,ChartView:jt,registerComponentModel:function(r){Rt.registerClass(r)},registerComponentView:function(r){de.registerClass(r)},registerSeriesModel:function(r){se.registerClass(r)},registerChartView:function(r){jt.registerClass(r)},registerSubTypeDefaulter:function(r,t){Rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){lK(r,t)}};function Lt(r){if(K(r)){T(r,function(t){Lt(t)});return}Qt(wb,r)>=0||(wb.push(r),vt(r)&&(r={install:r}),r.install(x8))}function Fl(r){return r==null?0:r.length||1}function Bb(r){return r}var Ya=function(){function r(t,e,n,a,i,A){this._old=t,this._new=e,this._oldKeyGetter=n||Bb,this._newKeyGetter=a||Bb,this.context=i,this._diffModeMultiple=A==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var A=0;A1){var u=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(u,A)}else l===1?(n[o]=null,this._update&&this._update(s,A)):this._remove&&this._remove(A)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],A=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,A,"_newKeyGetter");for(var o=0;o1&&c===1)this._updateManyToOne&&this._updateManyToOne(u,l),a[s]=null;else if(f===1&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),a[s]=null;else if(f===1&&c===1)this._update&&this._update(u,l),a[s]=null;else if(f>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),a[s]=null;else if(f>1)for(var h=0;h1)for(var o=0;o30}var El=yt,ui=Y,D8=typeof Int32Array>"u"?Array:Int32Array,Q8="e\0\0",_b=-1,L8=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],M8=["_approximateExtent"],Cb,Lc,Dl,Ql,Zg,Mc,$g,mr=function(){function r(t,e){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;y2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},A=[],o={},s=!1,l={},u=0;u=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,A=this._idList,o=a.getSource().sourceFormat,s=o===mn;if(s&&!a.pure)for(var l=[],u=t;u0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),K(i)?i=i.slice():El(i)&&(i=V({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,El(e)?V(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){El(t)?V(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?V(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;x0(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(n,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ui(this.dimensions,this._getDimInfo,this),this.hostModel)),Zg(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];vt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(NB(arguments)))})},r.internalField=function(){Cb=function(t){var e=t._invertedIndicesMap;T(e,function(n,a){var i=t._dimInfos[a],A=i.ordinalMeta,o=t._store;if(A){n=e[a]=new D8(A.categories.length);for(var s=0;s1&&(s+="__ec__"+u),a[e]=s}}}(),r}();function kf(r,t){B_(r)||(r=__(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ft(),i=[],A=P8(r,e,n,t.dimensionsCount),o=t.canOmitUnusedDimensions&&B2(A),s=n===r.dimensionsDefine,l=s?w2(r):m2(n),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(r,A));for(var f=ft(u),c=new IU(A),h=0;h0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function P8(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return T(t,function(i){var A;yt(i)&&(A=i.dimsDef)&&(a=Math.max(a,A.length))}),a}function R8(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var H8=function(){function r(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return r}();function O8(r){var t=r.get("coordinateSystem"),e=new H8(t),n=k8[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var k8={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",be).models[0],i=r.getReferringComponents("yAxis",be).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Vo(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Vo(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",be).models[0];t.coordSysDims=["single"],e.set("single",a),Vo(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",be).models[0],i=a.findAxisModel("radiusAxis"),A=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",A),Vo(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Vo(A)&&(n.set("angle",A),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),A=t.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(o,s){var l=a.getComponent("parallelAxis",o),u=A[s];e.set(u,l),Vo(l)&&(n.set(u,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=s))})}};function Vo(r){return r.get("type")==="category"}function N8(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,A,o;V8(t)?i=t:(A=t.schema,i=A.dimensions,o=t.store);var s=!!(r&&r.get("stack")),l,u,f,c;if(T(i,function(y,m){nt(y)&&(i[m]=y={name:y}),s&&!y.isExtraCoord&&(!n&&!l&&y.ordinalMeta&&(l=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(u=y))}),u&&!n&&!l&&(n=!0),u){f="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,v=u.type,d=0;T(i,function(y){y.coordDim===h&&d++});var p={name:f,coordDim:h,coordDimIndex:d,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:c,coordDim:c,coordDimIndex:d+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};A?(o&&(p.storeDimIndex=o.ensureCalculationDimension(c,v),g.storeDimIndex=o.ensureCalculationDimension(f,v)),A.appendCalculationDimension(p),A.appendCalculationDimension(g)):(i.push(p),i.push(g))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:f}}function V8(r){return!y2(r.schema)}function Zi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function _2(r,t){return Zi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function G8(r,t){var e=r.get("coordinateSystem"),n=Hf.get(e),a;return t&&t.coordSysDims&&(a=Y(t.coordSysDims,function(i){var A={name:i},o=t.axisMap.get(i);if(o){var s=o.get("type");A.type=Nv(s)}return A})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function K8(r,t,e){var n,a;return e&&T(r,function(i,A){var o=i.coordDim,s=e.categoryAxisMap.get(o);s&&(n==null&&(n=A),i.ordinalMeta=s.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function ri(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=__(r)):(a=n.getSource(),i=a.sourceFormat===mn);var A=O8(t),o=G8(t,A),s=e.useEncodeDefaulter,l=vt(s)?s:s?xt(fU,o,t):null,u={coordDimensions:o,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!i},f=kf(a,u),c=K8(f.dimensions,e.createInvertedIndices,A),h=i?null:n.getSharedDataStore(f),v=N8(t,{schema:f,store:h}),d=new mr(f,t);d.setCalculationInfo(v);var p=c!=null&&z8(a)?function(g,y,m,w){return w===c?m:this.defaultDimValueGetter(g,y,m,w)}:null;return d.hasItemOption=!1,d.initData(i?a:h,null,p),d}function z8(r){if(r.sourceFormat===mn){var t=W8(r.data||[]);return!K($s(t))}}function W8(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Nd(wa);var X8=0,Y0=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++X8}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&Y(n,Y8);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!nt(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},r}();function Y8(r){return yt(r)&&r.value!=null?r.value:r+""}function Z0(r){return r.type==="interval"||r.type==="log"}function Z8(r,t,e,n){var a={},i=r[1]-r[0],A=a.interval=$L(i/t);e!=null&&An&&(A=a.interval=n);var o=a.intervalPrecision=C2(A),s=a.niceTickExtent=[me(Math.ceil(r[0]/A)*A,o),me(Math.floor(r[1]/A)*A,o)];return $8(s,r),a}function Jg(r){var t=Math.pow(10,ZB(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,me(e*t)}function C2(r){return aa(r)+2}function Sb(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function $8(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Sb(r,0,t),Sb(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function sp(r,t){return r>=t[0]&&r<=t[1]}function lp(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function up(r,t){return r*(t[1]-t[0])+t[0]}var fp=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Y0({})),K(a)&&(a=new Y0({categories:Y(a,function(i){return yt(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:nt(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),sp(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),lp(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(up(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,a=n[0];a<=n[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],A=0,o=this._ordinalMeta.categories.length,s=Math.min(o,n.length);A=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(wa);wa.registerClass(fp);var xA=me,Za=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return sp(e,this._extent)},t.prototype.normalize=function(e){return lp(e,this._extent)},t.prototype.scale=function(e){return up(e,this._extent)},t.prototype.setExtent=function(e,n){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=C2(e)},t.prototype.getTicks=function(e){var n=this._interval,a=this._extent,i=this._niceExtent,A=this._intervalPrecision,o=[];if(!n)return o;var s=1e4;a[0]s)return[];var u=o.length?o[o.length-1].value:i[1];return a[1]>u&&(e?o.push({value:xA(u+n,A)}):o.push({value:a[1]})),o},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),A=1;Ai[0]&&h0&&(i=i===null?o:Math.min(i,o))}e[n]=i}}return e}function b2(r){var t=j8(r),e=[];return T(r,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),A=i.getExtent(),o;if(i.type==="category")o=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var s=i.dim+"_"+i.index,l=t[s],u=Math.abs(A[1]-A[0]),f=i.scale.getExtent(),c=Math.abs(f[1]-f[0]);o=l?u/c*l:u}else{var h=n.getData();o=Math.abs(A[1]-A[0])/h.count()}var v=et(n.get("barWidth"),o),d=et(n.get("barMaxWidth"),o),p=et(n.get("barMinWidth")||(D2(n)?.5:1),o),g=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:o,barWidth:v,barMaxWidth:d,barMinWidth:p,barGap:g,barCategoryGap:y,axisKey:M_(i),stackId:L_(n)})}),T2(e)}function T2(r){var t={};T(r,function(n,a){var i=n.axisKey,A=n.bandWidth,o=t[i]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=o.stacks;t[i]=o;var l=n.stackId;s[l]||o.autoWidthCount++,s[l]=s[l]||{width:0,maxWidth:0};var u=n.barWidth;u&&!s[l].width&&(s[l].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var f=n.barMaxWidth;f&&(s[l].maxWidth=f);var c=n.barMinWidth;c&&(s[l].minWidth=c);var h=n.barGap;h!=null&&(o.gap=h);var v=n.barCategoryGap;v!=null&&(o.categoryGap=v)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=n.categoryGap;if(o==null){var s=Ht(i).length;o=Math.max(35-s*4,15)+"%"}var l=et(o,A),u=et(n.gap,1),f=n.remainedWidth,c=n.autoWidthCount,h=(f-l)/(c+(c-1)*u);h=Math.max(h,0),T(i,function(g){var y=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;y&&(w=Math.min(w,y)),m&&(w=Math.max(w,m)),g.width=w,f-=w+u*w,c--}else{var w=h;y&&yw&&(w=m),w!==h&&(g.width=w,f-=w+u*w,c--)}}),h=(f-l)/(c+(c-1)*u),h=Math.max(h,0);var v=0,d;T(i,function(g,y){g.width||(g.width=h),d=g,v+=g.width*(1+u)}),d&&(v-=d.width*u);var p=-v/2;T(i,function(g,y){e[a][y]=e[a][y]||{bandWidth:A,offset:p,width:g.width},p+=g.width*(1+u)})}),e}function tX(r,t,e){if(r&&t){var n=r[M_(t)];return n!=null&&e!=null?n[L_(e)]:n}}function I2(r,t){var e=x2(r,t),n=b2(e);T(e,function(a){var i=a.getData(),A=a.coordinateSystem,o=A.getBaseAxis(),s=L_(a),l=n[M_(o)][s],u=l.offset,f=l.width;i.setLayout({bandWidth:l.bandWidth,offset:u,size:f})})}function F2(r){return{seriesType:r,plan:il(),reset:function(t){if(E2(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),A=e.getDimensionIndex(e.mapDimension(i.dim)),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),f=Zi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=eX(a,i),v=D2(t),d=t.get("barMinHeight")||0,p=u&&e.getDimensionIndex(u),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(m,w){for(var _=m.count,B=v&&Aa(_*3),C=v&&s&&Aa(_*3),S=v&&Aa(_),x=n.master.getRect(),b=c?x.width:x.height,I,F=w.getStore(),E=0;(I=m.next())!=null;){var D=F.get(f?p:A,I),Q=F.get(o,I),M=h,R=void 0;f&&(R=+D-F.get(A,I));var P=void 0,O=void 0,G=void 0,X=void 0;if(c){var J=n.dataToPoint([D,Q]);if(f){var At=n.dataToPoint([R,Q]);M=At[0]}P=M,O=J[1]+y,G=J[0]-M,X=g,Math.abs(G)0?e:1:e))}var rX=function(r,t,e,n){for(;e>>1;r[a][1]a&&(this._approxInterval=a);var o=Uc.length,s=Math.min(rX(Uc,this._approxInterval,0,o),o-1);this._interval=Uc[s][1],this._minLevelUnit=Uc[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Kt(e)?e:+pa(e)},t.prototype.contain=function(e){return sp(this.parse(e),this._extent)},t.prototype.normalize=function(e){return lp(this.parse(e),this._extent)},t.prototype.scale=function(e){return up(e,this._extent)},t.type="time",t}(Za),Uc=[["second",h_],["minute",v_],["hour",Eu],["quarter-day",Eu*6],["half-day",Eu*12],["day",un*1.2],["half-week",un*3.5],["week",un*7],["month",un*31],["quarter",un*95],["half-year",cx/2],["year",cx]];function nX(r,t,e,n){var a=pa(t),i=pa(e),A=function(v){return vx(a,v,n)===vx(i,v,n)},o=function(){return A("year")},s=function(){return o()&&A("month")},l=function(){return s()&&A("day")},u=function(){return l()&&A("hour")},f=function(){return u()&&A("minute")},c=function(){return f()&&A("second")},h=function(){return c()&&A("millisecond")};switch(r){case"year":return o();case"month":return s();case"day":return l();case"hour":return u();case"minute":return f();case"second":return c();case"millisecond":return h()}}function aX(r,t){return r/=un,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function iX(r){var t=30*un;return r/=t,r>6?6:r>3?3:r>2?2:1}function AX(r){return r/=Eu,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function xb(r,t){return r/=t?v_:h_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function oX(r){return $L(r)}function sX(r,t,e){var n=new Date(r);switch(Ts(t)){case"year":case"month":n[$M(e)](0);case"day":n[JM(e)](1);case"hour":n[qM(e)](0);case"minute":n[jM(e)](0);case"second":n[tU(e)](0),n[eU(e)](0)}return n.getTime()}function lX(r,t,e,n){var a=1e4,i=YM,A=0;function o(b,I,F,E,D,Q,M){for(var R=new Date(I),P=I,O=R[E]();P1&&Q===0&&F.unshift({value:F[0].value-P})}}for(var Q=0;Q=n[0]&&y<=n[1]&&f++)}var m=(n[1]-n[0])/t;if(f>m*1.5&&c>m/1.5||(l.push(p),f>m||r===i[h]))break}u=[]}}}for(var w=Jt(Y(l,function(b){return Jt(b,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(b){return b.length>0}),_=[],B=w.length-1,h=0;h0;)i*=10;var o=[me(cX(n[0]/i)*i),me(fX(n[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Mu.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Cn(e)/Cn(this.base),sp(e,this._extent)},t.prototype.normalize=function(e){return e=Cn(e)/Cn(this.base),lp(e,this._extent)},t.prototype.scale=function(e){return e=up(e,this._extent),Pc(this.base,e)},t.type="log",t}(wa),Q2=P_.prototype;Q2.getMinorTicks=Mu.getMinorTicks;Q2.getLabel=Mu.getLabel;function Rc(r,t){return uX(r,aa(t))}wa.registerClass(P_);var hX=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(o=0),o<0&&s<0&&!u&&(s=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(o=c,l=!0),h!=null&&(s=h,u=!0),{min:o,max:s,minFixed:l,maxFixed:u,isBlank:f}},r.prototype.modifyDataMinMax=function(t,e){this[dX[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=vX[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),vX={min:"_determinedMin",max:"_determinedMax"},dX={min:"_dataMin",max:"_dataMax"};function L2(r,t,e){var n=r.rawExtentInfo;return n||(n=new hX(r,t,e),r.rawExtentInfo=n,n)}function Hc(r,t){return t==null?null:Zu(t)?NaN:r.parse(t)}function M2(r,t){var e=r.type,n=L2(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var a=n.min,i=n.max,A=t.ecModel;if(A&&e==="time"){var o=x2("bar",A),s=!1;if(T(o,function(f){s=s||f.getBaseAxis()===t.axis}),s){var l=b2(o),u=pX(a,i,t,l);a=u.min,i=u.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function pX(r,t,e,n){var a=e.axis.getExtent(),i=a[1]-a[0],A=tX(n,e.axis);if(A===void 0)return{min:r,max:t};var o=1/0;T(A,function(h){o=Math.min(h.offset,o)});var s=-1/0;T(A,function(h){s=Math.max(h.offset+h.width,s)}),o=Math.abs(o),s=Math.abs(s);var l=o+s,u=t-r,f=1-(o+s)/i,c=u/f-u;return t+=c*(s/l),r-=c*(o/l),{min:r,max:t}}function Os(r,t){var e=t,n=M2(r,e),a=n.extent,i=e.get("splitNumber");r instanceof P_&&(r.base=e.get("logBase"));var A=r.type,o=e.get("interval"),s=A==="interval"||A==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),o!=null&&r.setInterval&&r.setInterval(o)}function cp(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new fp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new U_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(wa.getClass(t)||Za)}}function gX(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function sl(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(a,i){return r.scale.getFormattedLabel(a,i,n)}}(t):nt(t)?function(n){return function(a){var i=r.scale.getLabel(a),A=n.replace("{value}",i??"");return A}}(t):vt(t)?function(n){return function(a,i){return e!=null&&(i=a.value-e),n(R_(r,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function R_(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function yX(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,a,i=e.getExtent();e instanceof fp?a=e.count():(n=e.getTicks(),a=n.length);var A=r.getLabelModel(),o=sl(r),s,l=1;a>40&&(l=Math.ceil(a/40));for(var u=0;ur[1]&&(r[1]=a[1])})}var Nf=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),BX=1e-8;function Tb(r,t){return Math.abs(r-t)a&&(n=A,a=s)}if(n)return CX(n.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],A=this.geometries;return T(A,function(o){o.type==="polygon"?Ib(o.exterior,a,i,e):T(o.points,function(s){Ib(s,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,A=a.length;i>1^-(o&1),s=s>>1^-(s&1),o+=a,s+=i,a=o,i=s,n.push([o/e,s/e])}return n}function bX(r,t){return r=xX(r),Y(Jt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var A=a.coordinates;i.push(new Fb(A[0],A.slice(1)));break;case"MultiPolygon":T(a.coordinates,function(s){s[0]&&i.push(new Fb(s[0],s.slice(1)))});break;case"LineString":i.push(new Eb([a.coordinates]));break;case"MultiLineString":i.push(new Eb(a.coordinates))}var o=new R2(n[t||"name"],i,n.cp);return o.properties=n,o})}var ff=Vt();function O2(r,t){var e=Y(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function TX(r){var t=r.getLabelModel().get("customValues");if(t){var e=sl(r);return{labels:O2(r,t).map(function(n){var a={value:n};return{formattedLabel:e(a),rawLabel:r.scale.getLabel(a),tickValue:n}})}}return r.type==="category"?FX(r):DX(r)}function IX(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:O2(r,e)}:r.type==="category"?EX(r,t):{ticks:Y(r.scale.getTicks(),function(n){return n.value})}}function FX(r){var t=r.getLabelModel(),e=k2(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function k2(r,t){var e=N2(r,"labels"),n=H_(t),a=V2(e,n);if(a)return a;var i,A;return vt(n)?i=z2(r,n):(A=n==="auto"?QX(r):n,i=K2(r,A)),G2(e,n,{labels:i,labelCategoryInterval:A})}function EX(r,t){var e=N2(r,"ticks"),n=H_(t),a=V2(e,n);if(a)return a;var i,A;if((!t.get("show")||r.scale.isBlank())&&(i=[]),vt(n))i=z2(r,n,!0);else if(n==="auto"){var o=k2(r,r.getLabelModel());A=o.labelCategoryInterval,i=Y(o.labels,function(s){return s.tickValue})}else A=n,i=K2(r,A,!0);return G2(e,n,{ticks:i,tickCategoryInterval:A})}function DX(r){var t=r.scale.getTicks(),e=sl(r);return{labels:Y(t,function(n,a){return{level:n.level,formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function N2(r,t){return ff(r)[t]||(ff(r)[t]=[])}function V2(r,t){for(var e=0;e40&&(o=Math.max(1,Math.floor(A/40)));for(var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l*Math.cos(n)),f=Math.abs(l*Math.sin(n)),c=0,h=0;s<=i[1];s+=o){var v=0,d=0,p=Ef(e({value:s}),t.font,"center","top");v=p.width*1.3,d=p.height*1.3,c=Math.max(c,v,7),h=Math.max(h,d,7)}var g=c/u,y=h/f;isNaN(g)&&(g=1/0),isNaN(y)&&(y=1/0);var m=Math.max(0,Math.floor(Math.min(g,y))),w=ff(r.model),_=r.getExtent(),B=w.lastAutoInterval,C=w.lastTickCount;return B!=null&&C!=null&&Math.abs(B-m)<=1&&Math.abs(C-A)<=1&&B>m&&w.axisExtent0===_[0]&&w.axisExtent1===_[1]?m=B:(w.lastTickCount=A,w.lastAutoInterval=m,w.axisExtent0=_[0],w.axisExtent1=_[1]),m}function MX(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function K2(r,t,e){var n=sl(r),a=r.scale,i=a.getExtent(),A=r.getLabelModel(),o=[],s=Math.max((t||0)+1,1),l=i[0],u=a.count();l!==0&&s>1&&u/s>2&&(l=Math.round(Math.ceil(l/s)*s));var f=U2(r),c=A.get("showMinLabel")||f,h=A.get("showMaxLabel")||f;c&&l!==i[0]&&d(i[0]);for(var v=l;v<=i[1];v+=s)d(v);h&&v-s!==i[1]&&d(i[1]);function d(p){var g={value:p};o.push(e?p:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:p})}return o}function z2(r,t,e){var n=r.scale,a=sl(r),i=[];return T(n.getTicks(),function(A){var o=n.getLabel(A),s=A.value;t(A.value,o)&&i.push(e?s:{formattedLabel:a(A),rawLabel:o,tickValue:s})}),i}var Db=[0,1],On=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return YL(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qb(n,a.count())),$t(t,Db,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Qb(n,a.count()));var i=$t(t,n,Db,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=IX(this,e),a=n.ticks,i=Y(a,function(o){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(o):o),tickValue:o}},this),A=e.get("alignWithLabel");return UX(this,i,A,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=Y(n,function(i){return Y(i,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return a},r.prototype.getViewLabels=function(){return TX(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},r.prototype.calculateCategoryInterval=function(){return LX(this)},r}();function Qb(r,t){var e=r[1]-r[0],n=t,a=e/n/2;r[0]+=a,r[1]-=a}function UX(r,t,e,n){var a=t.length;if(!r.onBand||e||!a)return;var i=r.getExtent(),A,o;if(a===1)t[0].coord=i[0],A=t[1]={coord:i[1]};else{var s=t[a-1].tickValue-t[0].tickValue,l=(t[a-1].coord-t[0].coord)/s;T(t,function(h){h.coord-=l/2});var u=r.scale.getExtent();o=1+u[1]-t[a-1].tickValue,A={coord:t[a-1].coord+l*o},t.push(A)}var f=i[0]>i[1];c(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&c(i[0],t[0].coord)&&t.unshift({coord:i[0]}),c(i[1],A.coord)&&(n?A.coord=i[1]:t.pop()),n&&c(A.coord,i[1])&&t.push({coord:i[1]});function c(h,v){return h=me(h),v=me(v),f?h>v:ha&&(a+=Ll);var h=Math.atan2(o,A);if(h<0&&(h+=Ll),h>=n&&h<=a||h+Ll>=n&&h+Ll<=a)return s[0]=u,s[1]=f,l-e;var v=e*Math.cos(n)+r,d=e*Math.sin(n)+t,p=e*Math.cos(a)+r,g=e*Math.sin(a)+t,y=(v-A)*(v-A)+(d-o)*(d-o),m=(p-A)*(p-A)+(g-o)*(g-o);return y0){t=t/180*Math.PI,Dn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Dn,Ae),It.sub(ra,we,Ae);var e=oa.len(),n=ra.len();if(!(e<.001||n<.001)){oa.scale(1/e),ra.scale(1/n);var a=oa.dot(ra),i=Math.cos(t);if(i1&&It.copy(pr,we),pr.toArray(r[1])}}}}function NX(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Dn.fromArray(r[0]),Ae.fromArray(r[1]),we.fromArray(r[2]),It.sub(oa,Ae,Dn),It.sub(ra,we,Ae);var n=oa.len(),a=ra.len();if(!(n<.001||a<.001)){oa.scale(1/n),ra.scale(1/a);var i=oa.dot(t),A=Math.cos(e);if(i=s)It.copy(pr,we);else{pr.scaleAndAdd(ra,o/Math.tan(Math.PI/2-u));var f=we.x!==Ae.x?(pr.x-Ae.x)/(we.x-Ae.x):(pr.y-Ae.y)/(we.y-Ae.y);if(isNaN(f))return;f<0?It.copy(pr,Ae):f>1&&It.copy(pr,we)}pr.toArray(r[1])}}}}function ty(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var A=n.get("smooth");A&&A===!0&&(A=.3),i.shape=i.shape||{},A>0&&(i.shape.smooth=A);var o=n.getModel("lineStyle").getLineStyle();a?r.useStyle(o):i.style=o}function VX(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var a=xi(n[0],n[1]),i=xi(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var A=Math.min(a,i)*e,o=Hh([],n[1],n[0],A/a),s=Hh([],n[1],n[2],A/i),l=Hh([],o,s,.5);r.bezierCurveTo(o[0],o[1],o[0],o[1],l[0],l[1]),r.bezierCurveTo(s[0],s[1],s[0],s[1],n[2][0],n[2][1])}else for(var u=1;u0&&i&&_(-u/A,0,A);var d=r[0],p=r[A-1],g,y;m(),g<0&&B(-g,.8),y<0&&B(y,.8),m(),w(g,y,1),w(y,g,-1),m(),g<0&&C(-g),y<0&&C(y);function m(){g=d.rect[t]-n,y=a-p.rect[t]-p.rect[e]}function w(S,x,b){if(S<0){var I=Math.min(x,-S);if(I>0){_(I*b,0,A);var F=I+S;F<0&&B(-F*b,1)}else B(-S*b,1)}}function _(S,x,b){S!==0&&(l=!0);for(var I=x;I0)for(var F=0;F0;F--){var M=b[F-1]*Q;_(-M,F,A)}}}function C(S){var x=S<0?-1:1;S=Math.abs(S);for(var b=Math.ceil(S/(A-1)),I=0;I0?_(b,0,I+1):_(-b,A-I-1,A),S-=b,S<=0)return}return l}function GX(r,t,e,n){return Z2(r,"x","width",t,e,n)}function $2(r,t,e,n){return Z2(r,"y","height",t,e,n)}function J2(r){var t=[];r.sort(function(d,p){return p.priority-d.priority});var e=new Dt(0,0,0,0);function n(d){if(!d.ignore){var p=d.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}d.ignore=!0}for(var a=0;a=0&&n.attr(i.oldLayoutSelect),Qt(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),zt(n,l,e,s)}else if(n.attr(l),!tl(n).valueAnimation){var f=St(n.style.opacity,1);n.style.opacity=0,ue(n,{style:{opacity:f}},e,s)}if(i.oldLayout=l,n.states.select){var h=i.oldLayoutSelect={};Oc(h,l,kc),Oc(h,n.states.select,kc)}if(n.states.emphasis){var v=i.oldLayoutEmphasis={};Oc(v,l,kc),Oc(v,n.states.emphasis,kc)}GM(n,s,u,e,e)}if(a&&!a.ignore&&!a.invisible){var i=WX(a),A=i.oldLayout,d={points:a.shape.points};A?(a.attr({shape:A}),zt(a,{shape:d},e)):(a.setShape(d),a.style.strokePercent=0,ue(a,{style:{strokePercent:1}},e)),i.oldLayout=d}},r}(),ry=Vt();function YX(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=ry(e).labelManager;a||(a=ry(e).labelManager=new XX),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=ry(e).labelManager;n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var ny=Math.sin,ay=Math.cos,q2=Math.PI,TA=Math.PI*2,ZX=180/q2,j2=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,A){this._add("C",t,e,n,a,i,A)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,A){this.ellipse(t,e,n,n,0,a,i,A)},r.prototype.ellipse=function(t,e,n,a,i,A,o,s){var l=o-A,u=!s,f=Math.abs(l),c=Ei(f-TA)||(u?l>=TA:-l>=TA),h=l>0?l%TA:l%TA+TA,v=!1;c?v=!0:Ei(f)?v=!1:v=h>=q2==!!u;var d=t+n*ay(A),p=e+a*ny(A);this._start&&this._add("M",d,p);var g=Math.round(i*ZX);if(c){var y=1/this._p,m=(u?1:-1)*(TA-y);this._add("A",n,a,g,1,+u,t+n*ay(A+m),e+a*ny(A+m)),y>.01&&this._add("A",n,a,g,0,+u,d,p)}else{var w=t+n*ay(o),_=e+a*ny(o);this._add("A",n,a,g,+v,+u,w,_)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,a,i,A,o,s,l){for(var u=[],f=this._p,c=1;c"}function a6(r){return""}function V_(r,t){t=t||{};var e=t.newline?` `:"";function n(a){var i=a.children,A=a.tag,o=a.attrs,s=a.text;return n6(A,o)+(A!=="style"?Er(s):s||"")+(i?""+e+Y(i,function(l){return n(l)}).join(e)+e:"")+a6(A)}return n(r)}function i6(r,t,e){e=e||{};var n=e.newline?` -`:"",a=" {"+n,i=n+"}",A=Y(Ht(r),function(s){return s+a+Y(Ht(r[s]),function(l){return l+":"+r[s][l]+";"}).join(n)+i}).join(n),o=Y(Ht(t),function(s){return"@keyframes "+s+a+Y(Ht(t[s]),function(l){return l+a+Y(Ht(t[s][l]),function(u){var f=t[s][l][u];return u==="d"&&(f='path("'+f+'")'),u+":"+f+";"}).join(n)+i}).join(n)+i}).join(n);return!A&&!o?"":[""].join(n)}function q0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Pb(r,t,e,n){return Pe("svg","root",{width:r,height:t,xmlns:tP,"xmlns:xlink":eP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var A6=0;function nP(){return A6++}var Rb={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"},QA="transform-origin";function o6(r,t,e){var n=V({},r.shape);V(n,t),r.buildPath(e,n);var a=new j2;return a.reset(OL(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function s6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[QA]=e+"px "+n+"px")}var l6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function aP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function u6(r,t,e){var n=r.shape.paths,a={},i,A;if(T(n,function(s){var l=q0(e.zrId);l.animation=!0,hp(s,{},l,!0);var u=l.cssAnims,f=l.cssNodes,c=Ht(u),h=c.length;if(h){A=c[h-1];var v=u[A];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in f){var y=f[g].animation;y.indexOf(A)>=0&&(i=y)}}}),!!i){t.d=!1;var o=aP(a,e);return i.replace(A,o)}}function Hb(r){return nt(r)?Rb[r]?"cubic-bezier("+Rb[r]+")":WB(r)?r:"":""}function hp(r,t,e,n){var a=r.animators,i=a.length,A=[];if(r instanceof o_){var o=u6(r,t,e);if(o)A.push(o);else if(!i)return}else if(!i)return;for(var s={},l=0;l0}).length){var N=aP(C,e);return N+" "+y[0]+" both"}}for(var p in s){var o=d(s[p]);o&&A.push(o)}if(A.length){var g=e.zrId+"-cls-"+nP();e.cssNodes["."+g]={animation:A.join(",")},t.class=g}}function f6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};Ob(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var A=r.style&&r.style.fill,o=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&o||A;s&&(i=u0(s))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),Ob(n,t,e)}}function Ob(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+nP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var cf=Math.round;function iP(r){return r&&nt(r.src)}function AP(r){return r&&vt(r.toDataURL)}function G_(r,t,e,n){t6(function(a,i){var A=a==="fill"||a==="stroke";A&&HL(i)?sP(t,r,a,n):A&&XB(i)?lP(e,r,a,n):A&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),y6(e,r,n)}function K_(r,t){var e=uK(t);e&&(e.each(function(n,a){n!=null&&(r[(Ub+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[Ub+"silent"]="true"))}function kb(r){return Ei(r[0]-1)&&Ei(r[1])&&Ei(r[2])&&Ei(r[3]-1)}function c6(r){return Ei(r[4])&&Ei(r[5])}function z_(r,t,e){if(t&&!(c6(t)&&kb(t))){var n=1e4;r.transform=kb(t)?"translate("+cf(t[4]*n)/n+" "+cf(t[5]*n)/n+")":LG(t)}}function Nb(r,t,e){for(var n=r.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Br(c,p),Br(h,p)}else if(c==null||h==null){var g=function(b,I){if(b){var F=b.elm,E=c||I.width,D=h||I.height;b.tag==="pattern"&&(l?(D=1,E/=i.width):u&&(E=1,D/=i.height)),b.attrs.width=E,b.attrs.height=D,F&&(F.setAttribute("width",E),F.setAttribute("height",D))}},y=jB(v,null,r,function(b){s||g(B,b),g(f,b)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}f=Pe("image","img",{href:v,width:c,height:h}),A.width=c,A.height=h}else a.svgElement&&(f=mt(a.svgElement),A.width=a.svgWidth,A.height=a.svgHeight);if(f){var m,w;s?m=w=1:l?(w=1,m=A.width/i.width):u?(m=1,w=A.height/i.height):A.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(A.width=m),w!=null&&!isNaN(w)&&(A.height=w);var _=kL(a);_&&(A.patternTransform=_);var B=Pe("pattern","",A,[f]),C=V_(B),S=n.patternCache,x=S[C];x||(x=n.zrId+"-p"+n.patternIdx++,S[C]=x,A.id=x,B=n.defs[x]=Pe("pattern",x,A,[f])),t[e]=Hd(x)}}function m6(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var A={id:i};n[r.id]=i,a[i]=Pe("clipPath",i,A,[oP(r,e)])}t["clip-path"]=Hd(i)}function Kb(r){return document.createTextNode(r)}function OA(r,t,e){r.insertBefore(t,e)}function zb(r,t){r.removeChild(t)}function Wb(r,t){r.appendChild(t)}function uP(r){return r.parentNode}function fP(r){return r.nextSibling}function iy(r,t){r.textContent=t}var Xb=58,w6=120,B6=Pe("","");function j0(r){return r===void 0}function jn(r){return r!==void 0}function _6(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function ru(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function hf(r){var t,e=r.children,n=r.tag;if(jn(n)){var a=r.elm=rP(n);if(W_(B6,r),K(e))for(t=0;ti?(v=e[s+1]==null?null:e[s+1].elm,cP(r,v,e,a,s)):zv(r,t,n,i))}function ss(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(W_(r,t),j0(t.text)?jn(n)&&jn(a)?n!==a&&C6(e,n,a):jn(a)?(jn(r.text)&&iy(e,""),cP(e,null,a,0,a.length-1)):jn(n)?zv(e,n,0,n.length-1):jn(r.text)&&iy(e,""):r.text!==t.text&&(jn(n)&&zv(e,n,0,n.length-1),iy(e,t.text)))}function S6(r,t){if(ru(r,t))ss(r,t);else{var e=r.elm,n=uP(e);hf(t),n!==null&&(OA(n,t.elm,fP(e)),zv(n,[r],0,0))}return t}var x6=0,b6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Yb(),this.configLayer=Yb(),this.storage=e,this._opts=n=V({},n),this.root=t,this._id="zr"+x6++,this._oldVNode=Pb(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=rP("svg");W_(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",S6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Gb(t,q0(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=q0(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var A=[],o=this._bgVNode=T6(n,a,this._backgroundColor,i);o&&A.push(o);var s=t.compress?null:this._mainVNode=Pe("g","main",{},[]);this._paintList(e,i,s?s.children:A),s&&A.push(s);var l=Y(Ht(i.defs),function(c){return i.defs[c]});if(l.length&&A.push(Pe("defs","defs",{},l)),t.animation){var u=i6(i.cssNodes,i.cssAnims,{newline:!0});if(u){var f=Pe("style","stl",{},[],u);A.push(f)}}return Pb(n,a,A,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},V_(this.renderToVNode({animation:St(t.cssAnimation,!0),emphasis:St(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:St(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],A=0,o,s,l=0,u=0;u=0&&!(c&&s&&c[d]===s[d]);d--);for(var p=v-1;p>d;p--)A--,o=i[A-1];for(var g=d+1;g=o)}}for(var f=this.__startIndex;f15)break}}D.prevElClipPaths&&g.restore()};if(y)if(y.length===0)S=p.__endIndex;else for(var b=h.dpr,I=0;I0&&t>a[0]){for(s=0;st);s++);o=n[a[s]]}if(a.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?A.insertBefore(e.dom,l.nextSibling):A.appendChild(e.dom)}else A.firstChild?A.insertBefore(e.dom,A.firstChild):A.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a0?Nc:0),this._needsManuallyCompositing),u.__builtin__||OB("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),i=u),a.__dirty&Gr&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(f,c){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Et(n[t],e,!0):n[t]=e;for(var a=0;a-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.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}(se);function ks(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rs(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],A=0;A=0&&n.push(t[i])}return n.join(" ")}var Vf=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;return A.updateData(e,n,a,i),A}return t.prototype._createSymbol=function(e,n,a,i,A){this.removeAll();var o=Te(e,-1,-1,2,2,null,A);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=U6,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Wa(this.childAt(0))},t.prototype.downplay=function(){Xa(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var A=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=A!==this._symbolType,u=i&&i.disableAnimation;if(l){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(A,e,n,s,f)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(h):zt(c,h,o,n),Rn(c)}if(this._updateCommon(e,n,s,a,i),l){var c=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ue(c,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,A){var o=this.childAt(0),s=e.hostModel,l,u,f,c,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,f=i.selectItemStyle,c=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=He(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=e.getItemVisual(n,"symbolRotate");o.attr("rotation",(w||0)*Math.PI/180||0);var _=xo(e.getItemVisual(n,"symbolOffset"),a);_&&(o.x=_[0],o.y=_[1]),g&&o.attr("cursor",g);var B=e.getItemVisual(n,"style"),C=B.fill;if(o instanceof Ge){var S=o.style;o.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},B))}else o.__isEmptyBrush?o.useStyle(V({},B)):o.useStyle(B),o.style.decal=null,o.setColor(C,A&&A.symbolInnerColor),o.style.strokeNoScale=!0;var x=e.getItemVisual(n,"liftZ"),b=this._z2;x!=null?b==null&&(this._z2=o.z2,o.z2+=x):b!=null&&(o.z2=b,this._z2=null);var I=A&&A.useNameLabel;Je(o,d,{labelFetcher:s,labelDataIndex:n,defaultText:F,inheritColor:C,defaultOpacity:B.opacity});function F(Q){return I?e.getName(Q):ks(e,Q)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=o.ensureState("emphasis");E.style=l,o.ensureState("select").style=f,o.ensureState("blur").style=u;var D=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),ye(this,c,h,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),A=Ct(this).dataIndex,o=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var s=i.getTextContent();s&&Xi(s,{style:{opacity:0}},n,{dataIndex:A,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Xi(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:A,cb:e,removeOpt:o})},t.getSymbolSize=function(e,n){return ol(e.getItemVisual(n,"symbolSize"))},t}(_t);function U6(r,t){this.parent.drift(r,t)}function oy(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Jb(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function qb(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:He(t),cursorStyle:t.get("cursor")}}var Gf=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Vf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Jb(e);var n=this.group,a=t.hostModel,i=this._data,A=this._SymbolCtor,o=e.disableAnimation,s=qb(t),l={disableAnimation:o},u=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var c=u(f);if(oy(t,c,f,e)){var h=new A(t,f,s,l);h.setPosition(c),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,c){var h=i.getItemGraphicEl(c),v=u(f);if(!oy(t,v,f,e)){n.remove(h);return}var d=t.getItemVisual(f,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new A(t,f,s,l),h.setPosition(v);else{h.updateData(t,f,s,l);var g={x:v[0],y:v[1]};o?h.attr(g):zt(h,g,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=u,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Jb(n);function a(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=n[0]:n[1]<0&&(e=n[1]),e}function dP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,A=[];return A[i]=e.get(r.baseDim,n),A[1-i]=a,t.dataToPoint(A)}function R6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function H6(r,t,e,n,a,i,A,o){for(var s=R6(r,t),l=[],u=[],f=[],c=[],h=[],v=[],d=[],p=vP(a,t,A),g=r.getLayout("points")||[],y=t.getLayout("points")||[],m=0;m=a||d<0)break;if(Ao(g,y)){if(s){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,c=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(A>0){for(var _=d+i,B=t[_*2],C=t[_*2+1];B===g&&C===y&&p=n||Ao(B,C))h=g,v=y;else{b=B-l,I=C-u;var D=g-l,Q=B-g,M=y-u,R=C-y,P=void 0,O=void 0;if(o==="x"){P=Math.abs(D),O=Math.abs(Q);var G=b>0?1:-1;h=g-G*P*A,v=y,F=g+G*O*A,E=y}else if(o==="y"){P=Math.abs(M),O=Math.abs(R);var X=I>0?1:-1;h=g,v=y-X*P*A,F=g,E=y+X*O*A}else P=Math.sqrt(D*D+M*M),O=Math.sqrt(Q*Q+R*R),x=O/(O+P),h=g-b*A*(1-x),v=y-I*A*(1-x),F=g+b*A*x,E=y+I*A*x,F=fi(F,ci(B,g)),E=fi(E,ci(C,y)),F=ci(F,fi(B,g)),E=ci(E,fi(C,y)),b=F-g,I=E-y,h=g-b*P/O,v=y-I*P/O,h=fi(h,ci(l,g)),v=fi(v,ci(u,y)),h=ci(h,fi(l,g)),v=ci(v,fi(u,y)),b=g-h,I=y-v,F=g+b*O/P,E=y+I*O/P}r.bezierCurveTo(f,c,h,v,g,y),f=F,c=E}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var pP=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),O6=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pP},t.prototype.buildPath=function(e,n){var a=n.points,i=0,A=a.length/2;if(n.connectNulls){for(;A>0&&Ao(a[A*2-2],a[A*2-1]);A--);for(;i=0){var w=l?(v-s)*m+s:(h-o)*m+o;return l?[e,w]:[w,e]}o=h,s=v;break;case A.C:h=i[f++],v=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++];var _=l?wv(o,h,d,g,e,u):wv(s,v,p,y,e,u);if(_>0)for(var B=0;B<_;B++){var C=u[B];if(C<=1&&C>=0){var w=l?Le(s,v,p,y,C):Le(o,h,d,g,C);return l?[e,w]:[w,e]}}o=g,s=y;break}}},t}(Mt),k6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(pP),gP=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new k6},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,A=0,o=a.length/2,s=n.smoothMonotone;if(n.connectNulls){for(;o>0&&Ao(a[o*2-2],a[o*2-1]);o--);for(;At){i?e.push(A(i,s,t)):a&&e.push(A(a,s,0),A(a,s,t));break}else a&&(e.push(A(a,s,0)),a=null),e.push(s),i=s}return e}function G6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,A=n.length-1;A>=0;A--){var o=r.getDimensionInfo(n[A].dimension);if(a=o&&o.coordDim,a==="x"||a==="y"){i=n[A];break}}if(i){var s=t.getAxis(a),l=Y(i.stops,function(m){return{coord:s.toGlobalCoord(s.dataToCoord(m.value)),color:m.color}}),u=l.length,f=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),f.reverse());var c=V6(l,a==="x"?e.getWidth():e.getHeight()),h=c.length;if(!h&&u)return l[0].coord<0?f[1]?f[1]:l[u-1].color:f[0]?f[0]:l[0].color;var v=10,d=c[0].coord-v,p=c[h-1].coord+v,g=p-d;if(g<.001)return"transparent";T(c,function(m){m.offset=(m.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:f[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:f[0]||"transparent"});var y=new Uf(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=p,y}}}function K6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&z6(i,t))){var A=t.mapDimension(i.dim),o={};return T(i.getViewLabels(),function(s){var l=i.scale.getRawOrdinalNumber(s.tickValue);o[l]=1}),function(s){return!o.hasOwnProperty(t.get(A,s))}}}}function z6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),A=0;An)return!1;return!0}function W6(r,t){return isNaN(r)||isNaN(t)}function X6(r){for(var t=r.length/2;t>0&&W6(r[t*2-2],r[t*2-1]);t--);return t-1}function nT(r,t){return[r[t*2],r[t*2+1]]}function Y6(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,A,o=0,s=-1,l=0;l=t||i>=t&&A<=t){s=l;break}o=l,i=A}return{range:[o,s],t:(t-i)/(A-i)}}function wP(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<_r.length;t++)if(r.get([_r[t],"endLabel","show"]))return!0;return!1}function sy(r,t,e,n){if(To(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),A=n.getData(),o={lastFrameIndex:0},s=wP(n)?function(h,v){r._endLabelOnDuring(h,v,A,o,i,a,t)}:null,l=t.getBaseAxis().isHorizontal(),u=yP(t,e,n,function(){var h=r._endLabel;h&&e&&o.originalX!=null&&h.attr({x:o.originalX,y:o.originalY})},s);if(!n.get("clip",!0)){var f=u.shape,c=Math.max(f.width,f.height);l?(f.y-=c,f.height+=c*2):(f.x-=c,f.width+=c*2)}return s&&s(1,u),u}else return mP(t,e,n)}function Z6(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",A=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||A}}}var $6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new Gf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=A.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),w=u.get("origin"),_=vP(A,s,w),B=m&&N6(A,s,_),C=e.get("showSymbol"),S=e.get("connectNulls"),x=C&&!c&&K6(e,s,A),b=this._data;b&&b.eachItemGraphicEl(function(Bt,N){Bt.__temp&&(o.remove(Bt),b.setItemGraphicEl(N,null))}),C||v.remove(),o.add(g);var I=c?!1:e.get("step"),F;A&&A.getArea&&e.get("clip",!0)&&(F=A.getArea(),F.width!=null?(F.x-=.1,F.y-=.1,F.width+=.2,F.height+=.2):F.r0&&(F.r0-=.5,F.r+=.5)),this._clipShapeForSymbol=F;var E=G6(s,A,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===A.type&&I===this._step))C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,A,F),I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d=this._newPolyline(f),m?p=this._newPolygon(f,B):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E)),g.setClipPath(sy(this,A,!0,e));else{m&&!p?p=this._newPolygon(f,B):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E));var D=g.getClipPath();if(D){var Q=sy(this,A,!1,e);ue(D,{shape:Q.shape},e)}else g.setClipPath(sy(this,A,!0,e));C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),(!jb(this._stackedOnPoints,B)||!jb(this._points,f))&&(y?this._doUpdateAnimation(s,B,A,a,I,w,S):(I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:B})))}var M=e.getModel("emphasis"),R=M.get("focus"),P=M.get("blurScope"),O=M.get("disabled");if(d.useStyle(gt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),$e(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}Ct(d).seriesIndex=e.seriesIndex,ye(d,R,P,O);var X=rT(e.get("smooth")),J=e.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:J,connectNulls:S}),p){var At=s.getCalculationInfo("stackedOnSeries"),lt=0;p.useStyle(gt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),At&&(lt=rT(At.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:lt,smoothMonotone:J,connectNulls:S}),$e(p,e,"areaStyle"),Ct(p).seriesIndex=e.seriesIndex,ye(p,R,P,O)}var wt=function(Bt){i._changePolyState(Bt)};s.eachItemGraphicEl(function(Bt){Bt&&(Bt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=s,this._coordSys=A,this._stackedOnPoints=B,this._points=f,this._step=I,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){Ct(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&o!=null&&o>=0){var s=A.getLayout("points"),l=A.getItemGraphicEl(o);if(!l){var u=s[o*2],f=s[o*2+1];if(isNaN(u)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,f))return;var c=e.get("zlevel")||0,h=e.get("z")||0;l=new Vf(A,o),l.x=u,l.y=f,l.setZ(c,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,A.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else jt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("normal"),o!=null&&o>=0){var s=A.getItemGraphicEl(o);s&&(s.__temp?(A.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else jt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Tv(this._polyline,e),n&&Tv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new O6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new gP({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,A,o=n.getBaseAxis(),s=o.inverse;n.type==="cartesian2d"?(i=o.isHorizontal(),A=!1):n.type==="polar"&&(i=o.dim==="angle",A=!0);var l=e.hostModel,u=l.get("animationDuration");vt(u)&&(u=u(null));var f=l.get("animationDelay")||0,c=vt(f)?f(null):f;e.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(A){var w=a,_=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-_[1]/180*Math.PI):(g=w.r0,y=w.r,m=_[0])}else{var B=a;i?(g=B.x,y=B.x+B.width,m=h.x):(g=B.y+B.height,y=B.y,m=h.y)}var C=y===g?0:(m-g)/(y-g);s&&(C=1-C);var S=vt(f)?f(v):u*C+c,x=d.getSymbolPath(),b=x.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:S}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:S}),x.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(wP(e)){var A=e.getData(),o=this._polyline,s=A.getLayout("points");if(!s){o.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Gt({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=X6(s);u>=0&&(Je(o,He(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?hP(A,h):ks(A,f)},enableTextSetter:!0},Z6(i,n)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,A,o,s){var l=this._endLabel,u=this._polyline;if(l){e<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var f=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=o.get("precision"),d=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?d:0)*(y?-1:1),B=(g?0:-d)*(y?-1:1),C=g?"x":"y",S=Y6(f,w,C),x=S.range,b=x[1]-x[0],I=void 0;if(b>=1){if(b>1&&!h){var F=nT(f,x[0]);l.attr({x:F[0]+_,y:F[1]+B}),A&&(I=c.getRawValue(x[0]))}else{var F=u.getPointOn(w,C);F&&l.attr({x:F[0]+_,y:F[1]+B});var E=c.getRawValue(x[0]),D=c.getRawValue(x[1]);A&&(I=iM(a,v,E,D,S.t))}i.lastFrameIndex=x[0]}else{var Q=e===1||i.lastFrameIndex>0?x[0]:0,F=nT(f,Q);A&&(I=c.getRawValue(Q)),l.attr({x:F[0]+_,y:F[1]+B})}if(A){var M=tl(l);typeof M.setLabelText=="function"&&M.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,A,o,s){var l=this._polyline,u=this._polygon,f=e.hostModel,c=H6(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(A&&(h=hi(c.current,a,A,s),v=hi(c.stackedOnCurrent,a,A,s),d=hi(c.next,a,A,s),p=hi(c.stackedOnNext,a,A,s)),eT(h,d)>3e3||u&&eT(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),l.stopAnimation(),zt(l,g,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),zt(u,{shape:{stackedOnPoints:p}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=c.status,w=0;wt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},q6=function(r){return Math.round(r.length/2)};function BP(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),A=t.coordinateSystem,o=a.count();if(o>10&&A.type==="cartesian2d"&&i){var s=A.getBaseAxis(),l=A.getOtherAxis(s),u=s.getExtent(),f=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(f||1),h=Math.round(o/c);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h));var v=void 0;nt(i)?v=J6[i]:vt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(l.dim),1/h,v,q6))}}}}}function j6(r){r.registerChartView($6),r.registerSeriesModel(M6),r.registerLayout(zf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BP("line"))}var vf=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var A=i.clampData(e),o=i.dataToPoint(A);if(a)T(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),p=A[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){o[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,_=0;_p){m=(B+y)/2;break}_===1&&(w=C-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),o[h]=c.toGlobalCoord(m)}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(se);se.registerClass(vf);var tY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ri(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 e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=nA(vf.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}(vf),eY=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Wv=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new eY},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.max(n.r0||0,0),o=Math.max(n.r,0),s=(o-A)*.5,l=A+s,u=n.startAngle,f=n.endAngle,c=n.clockwise,h=Math.PI*2,v=c?f-uMath.PI/2&&uo)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),A=Math.max(0,i[0]),o=Math.min(i[1],a.getOrdinalMeta().categories.length-1);A<=o;++A)if(e.ordinalNumbers[A]!==a.getRawOrdinalNumber(A))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var A=this._dataSort(e,a,n);this._isOrderDifferentInView(A,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:A}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,A=this._dataSort(e,i,function(o){return e.get(e.mapDimension(n.otherAxis.dim),o)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:A})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){nf(i,e,Ct(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}(jt),aT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,A=ly(t.x,r.x),o=uy(t.x+t.width,a),s=ly(t.y,r.y),l=uy(t.y+t.height,i),u=oa?o:A,t.y=f&&s>i?l:s,t.width=u?0:o-A,t.height=f?0:l-s,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),u||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=uy(t.r,r.r),i=ly(t.r0,r.r0);t.r=a,t.r0=i;var A=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return A}},iT={cartesian2d:function(r,t,e,n,a,i,A,o,s){var l=new Nt({shape:V({},n),z2:1});if(l.__dataIndex=e,l.name="item",i){var u=l.shape,f=a?"height":"width";u[f]=0}return l},polar:function(r,t,e,n,a,i,A,o,s){var l=!a&&s?Wv:Cr,u=new l({shape:n,z2:1});u.name="item";var f=_P(a);if(u.calculateTextPosition=rY(f,{isRoundCap:l===Wv}),i){var c=u.shape,h=a?"r":"endAngle",v={};c[h]=a?n.r0:n.startAngle,v[h]=n[h],(o?zt:ue)(u,{shape:v},i)}return u}};function AY(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function AT(r,t,e,n,a,i,A,o){var s,l;i?(l={x:n.x,width:n.width},s={y:n.y,height:n.height}):(l={y:n.y,height:n.height},s={x:n.x,width:n.width}),o||(A?zt:ue)(e,{shape:s},t,a,null);var u=t?r.baseAxis.model:null;(A?zt:ue)(e,{shape:l},u,a)}function oT(r,t){for(var e=0;e0?1:-1,A=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+A*a/2,width:n.width-i*a,height:n.height-A*a}},polar:function(r,t,e){var n=r.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 lY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function _P(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function lT(r,t,e,n,a,i,A,o){var s=t.getItemVisual(e,"style");if(o){if(!i.get("roundCap")){var u=r.shape,f=$A(n.getModel("itemStyle"),u,!0);V(u,f),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(s);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=o?A?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":A?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=He(n);Je(r,v,{labelFetcher:i,labelDataIndex:e,defaultText:ks(i.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(o&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,nY(r,p==="outside"?h:p,_P(A),n.get(["label","rotate"]))}VM(d,v,i.getRawValue(e),function(y){return hP(t,y)});var g=n.getModel(["emphasis"]);ye(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),$e(r,n),lY(a)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function uY(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.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 fY=function(){function r(){}return r}(),uT=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new fY},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,A=1-this.baseDimIdx,o=[],s=[],l=this.barWidth,u=0;u=0?e:null},30,!1);function cY(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,A=r.largeDataIndices,o=[],s=[],l=r.barWidth,u=0,f=i.length/3;u=o[0]&&t<=o[0]+s[0]&&e>=o[1]&&e<=o[1]+s[1])return A[u]}return-1}function CP(r,t,e){if(To(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function hY(r,t,e){var n=r.type==="polar"?Cr:Nt;return new n({shape:CP(t,e,r),silent:!0,z2:0})}function vY(r){r.registerChartView(iY),r.registerSeriesModel(tY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(I2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BP("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var hT=Math.PI*2,zc=Math.PI/180;function SP(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xP(r,t){var e=SP(r,t),n=r.get("center"),a=r.get("radius");K(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),A=et(e.height,t.getHeight()),o=Math.min(i,A),s=et(a[0],o/2),l=et(a[1],o/2),u,f,c=r.coordinateSystem;if(c){var h=c.dataToPoint(n);u=h[0]||0,f=h[1]||0}else K(n)||(n=[n,n]),u=et(n[0],i)+e.x,f=et(n[1],A)+e.y;return{cx:u,cy:f,r0:s,r:l}}function dY(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),A=SP(n,e),o=xP(n,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=-n.get("startAngle")*zc,h=n.get("endAngle"),v=n.get("padAngle")*zc;h=h==="auto"?c-hT:-h*zc;var d=n.get("minAngle")*zc,p=d+v,g=0;a.each(i,function(R){!isNaN(R)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),_=n.get("roseType"),B=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var S=w?1:-1,x=[c,h],b=S*v/2;t_(x,!w),c=x[0],h=x[1];var I=bP(n);I.startAngle=c,I.endAngle=h,I.clockwise=w;var F=Math.abs(h-c),E=F,D=0,Q=c;if(a.setLayout({viewRect:A,r:u}),a.each(i,function(R,P){var O;if(isNaN(R)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:l,r0:f,r:_?NaN:u});return}_!=="area"?O=y===0&&B?m:R*m:O=F/g,OO?(X=Q+S*O/2,J=X):(X=Q+b,J=G-b),a.setItemLayout(P,{angle:O,startAngle:X,endAngle:J,clockwise:w,cx:s,cy:l,r0:f,r:_?$t(R,C,[f,u]):u}),Q=G}),Ee?g:p,_=Math.abs(m.label.y-e);if(_>=w.maxY){var B=m.label.x-t-m.len2*a,C=n+m.len,S=Math.abs(B)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var d=n.getBoundingRect();i.width=d.width;var p=(n.style.margin||0)+2.1;i.height=d.height+p,i.y-=(i.height-f)/2}}}function fy(r){return r.position==="center"}function yY(r){var t=r.getData(),e=[],n,a,i=!1,A=(r.get("minShowLabelAngle")||0)*pY,o=t.getLayout("viewRect"),s=t.getLayout("r"),l=o.width,u=o.x,f=o.y,c=o.height;function h(B){B.ignore=!0}function v(B){if(!B.ignore)return!0;for(var C in B.states)if(B.states[C].ignore===!1)return!0;return!1}t.each(function(B){var C=t.getItemGraphicEl(B),S=C.shape,x=C.getTextContent(),b=C.getTextGuideLine(),I=t.getItemModel(B),F=I.getModel("label"),E=F.get("position")||I.get(["emphasis","label","position"]),D=F.get("distanceToLabelLine"),Q=F.get("alignTo"),M=et(F.get("edgeDistance"),l),R=F.get("bleedMargin"),P=I.getModel("labelLine"),O=P.get("length");O=et(O,l);var G=P.get("length2");if(G=et(G,l),Math.abs(S.endAngle-S.startAngle)0?"right":"left":J>0?"left":"right"}var k=Math.PI,Z=0,W=F.get("rotate");if(Kt(W))Z=W*(k/180);else if(E==="center")Z=0;else if(W==="radial"||W===!0){var tt=J<0?-X+k:-X;Z=tt}else if(W==="tangential"&&E!=="outside"&&E!=="outer"){var ot=Math.atan2(J,At);ot<0&&(ot=k*2+ot);var ut=At>0;ut&&(ot=k+ot),Z=ot-k}if(i=!!Z,x.x=lt,x.y=wt,x.rotation=Z,x.setStyle({verticalAlign:"middle"}),z){x.setStyle({align:N});var Ft=x.states.select;Ft&&(Ft.x+=x.x,Ft.y+=x.y)}else{var at=x.getBoundingRect().clone();at.applyTransform(x.getComputedTransform());var rt=(x.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:x,labelLine:b,position:E,len:O,len2:G,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new It(J,At),linePoints:Bt,textAlign:N,labelDistance:D,labelAlignTo:Q,edgeDistance:M,bleedMargin:R,rect:at,unconstrainedWidth:at.width,labelStyleWidth:x.style.width})}C.setTextConfig({inside:z})}}),!i&&r.get("avoidLabelOverlap")&&gY(e,n,a,s,l,c,u,f);for(var d=0;d0){for(var u=A.getItemLayout(0),f=1;isNaN(u&&u.startAngle)&&f=i.r0}},t.type="pie",t}(jt);function ll(r,t,e){t=K(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=kf(n,t).dimensions,i=new mr(a,r);return i.initData(n,e),i}var Xf=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),BY=Vt(),_Y=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ll(this,{coordDimensions:["value"],encodeDefaulter:xt(g_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=BY(n),i=a.seats;if(!i){var A=[];n.each(n.mapDimension("value"),function(s){A.push(s)}),i=a.seats=vK(A,n.hostModel.get("percentPrecision"))}var o=r.prototype.getDataParams.call(this,e);return o.percent=i[e]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.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,endAngle:"auto",padAngle:0,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}(se);function CY(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),A=n.get(i,a);return!(Kt(A)&&!isNaN(A)&&A<0)})}}}function SY(r){r.registerChartView(wY),r.registerSeriesModel(_Y),YU("pie",r.registerAction),r.registerLayout(xt(dY,"pie")),r.registerProcessor(Wf("pie")),r.registerProcessor(CY("pie"))}var xY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},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}(se),IP=4,bY=function(){function r(){}return r}(),TY=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new bY},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,A=this.symbolProxy,o=A.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;l--){var u=l*2,f=i[u]-o/2,c=i[u+1]-s/2;if(e>=f&&n>=c&&e<=f+o&&n<=c+s)return l}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,A=i[0],o=i[1],s=1/0,l=1/0,u=-1/0,f=-1/0,c=0;c=0&&(l.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),FY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var A=zf("").reset(e,n,a);A.progress&&A.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,A=i.large;return(!a||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=A?new IY:new Gf,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(jt),EY=function(r){H(t,r);function t(){return r!==null&&r.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}(Rt),ew=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",be).models[0]},t.type="cartesian2dAxis",t}(Rt);Ie(ew,Nf);var FP={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)"]}}},DY=Et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FP),X_=Et({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}}},FP),QY=Et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},X_),LY=gt({logBase:10},X_);const EP={category:DY,value:X_,time:QY,log:LY};var MY={value:1,category:1,time:1,log:1};function Ns(r,t,e,n){T(MY,function(a,i){var A=Et(Et({},EP[i],!0),n,!0),o=function(s){H(l,s);function l(){var u=s!==null&&s.apply(this,arguments)||this;return u.type=t+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,f){var c=Af(this),h=c?nl(u):{},v=f.getTheme();Et(u,v.get(i+"Axis")),Et(u,this.getDefaultOption()),u.type=dT(u),c&&Yi(u,h,c)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Y0.createByAxisModel(this))},l.prototype.getCategories=function(u){var f=this.option;if(f.type==="category")return u?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=A,l}(e);r.registerComponentModel(o)}),r.registerSubTypeDefaulter(t+"Axis",dT)}function dT(r){return r.type||(r.data?"category":"value")}var UY=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Jt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),rw=["x","y"];function pT(r){return r.type==="interval"||r.type==="time"}var PY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=rw,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!pT(e)||!pT(n))){var a=e.getExtent(),i=n.getExtent(),A=this.dataToPoint([a[0],i[0]]),o=this.dataToPoint([a[1],i[1]]),s=a[1]-a[0],l=i[1]-i[0];if(!(!s||!l)){var u=(o[0]-A[0])/s,f=(o[1]-A[1])/l,c=A[0]-a[0]*u,h=A[1]-i[0]*f,v=this._transform=[u,0,0,f,c,h];this._invTransform=Zs([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),A=this.getArea(),o=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return A.intersect(o)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],A=e[1];if(this._transform&&i!=null&&isFinite(i)&&A!=null&&isFinite(A))return Ye(a,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.toGlobalCoord(o.dataToCoord(i,n)),a[1]=s.toGlobalCoord(s.dataToCoord(A,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,A=a.getExtent(),o=i.getExtent(),s=a.parse(e[0]),l=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(A[0],A[1]),s),Math.max(A[0],A[1])),n[1]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Ye(a,e,this._invTransform);var i=this.getAxis("x"),A=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=A.coordToData(A.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,A=Math.min(a[0],a[1])-e,o=Math.max(n[0],n[1])-i+e,s=Math.max(a[0],a[1])-A+e;return new Dt(i,A,o,s)},t}(UY),RY=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.index=0,o.type=i||"value",o.position=A||"bottom",o}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(On);function nw(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},A=a.getAxesOnZeroOf()[0],o=a.position,s=A?"onZero":o,l=a.dim,u=n.getRect(),f=[u.x,u.x+u.width,u.y,u.y+u.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(A){var d=A.toGlobalCoord(A.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:f[0],l==="x"?v[c[s]]:f[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=A?v[c[o]]-v[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ve(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function gT(r){return r.get("coordinateSystem")==="cartesian2d"}function yT(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,be).models[0];t[n]=i}),t}var cy=Math.log;function DP(r,t,e){var n=Za.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),A=a.length-1,o=n.getInterval.call(e),s=M2(r,t),l=s.extent,u=s.fixMin,f=s.fixMax;if(r.type==="log"){var c=cy(r.base);l=[cy(l[0])/c,cy(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:A,fixMin:u,fixMax:f});var h=n.getExtent.call(r);u&&(l[0]=h[0]),f&&(l[1]=h[1]);var v=n.getInterval.call(r),d=l[0],p=l[1];if(u&&f)v=(p-d)/A;else if(u)for(p=l[0]+v*A;pl[0]&&isFinite(d)&&isFinite(l[0]);)v=Jg(v),d=l[1]-v*A;else{var g=r.getTicks().length-1;g>A&&(v=Jg(v));var y=v*A;p=Math.ceil(l[1]/v)*v,d=me(p-y),d<0&&l[0]>=0?(d=0,p=me(y)):p>0&&l[1]<=0&&(p=0,d=-me(y))}var m=(a[0].value-i[0].value)/o,w=(a[A].value-i[A].value)/o;n.setExtent.call(r,d+v*m,p+v*w),n.setInterval.call(r,v),(m||w)&&n.setNiceExtent.call(r,d+v,p-v)}var HY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rw,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(A){var o,s=Ht(A),l=s.length;if(l){for(var u=[],f=l-1;f>=0;f--){var c=+s[f],h=A[c],v=h.model,d=h.scale;Z0(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Os(d,v),Z0(d)&&(o=h))}u.length&&(o||(o=u.pop(),Os(o.scale,o.model)),T(u,function(p){DP(p.scale,p.model,o.scale)}))}}a(n.x),a(n.y);var i={};T(n.x,function(A){mT(n,"y",A,i)}),T(n.y,function(A){mT(n,"x",A,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),A=Qe(a,{width:e.getWidth(),height:e.getHeight()});this._rect=A;var o=this._axesList;s(),i&&(T(o,function(l){if(!l.model.get(["axisLabel","inside"])){var u=yX(l);if(u){var f=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);A[f]-=u[f]+c,l.position==="top"?A.y+=u.height+c:l.position==="left"&&(A.x+=u.width+c)}}}),s()),T(this._coordsList,function(l){l.calcAffineTransform()});function s(){T(o,function(l){var u=l.isHorizontal(),f=u?[0,A.width]:[0,A.height],c=l.inverse?1:0;l.setExtent(f[c],f[1-c]),OY(l,u?A.x:A.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}yt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):ju(a-Di)?(A=n>0?"bottom":"top",i="center"):(A="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:A}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),BT={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),A=n.transform,o=[i[0],0],s=[i[1],0],l=o[0]>s[0];A&&(Ye(o,o,A),Ye(s,s,A));var u=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ue({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ps(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);nt(c)&&(c=[c,c]),(nt(h)||Kt(h))&&(h=[h,h]);var v=xo(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],p=h[1];T([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((o[0]-s[0])*(o[0]-s[0])+(o[1]-s[1])*(o[1]-s[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var m=Te(c[y],-d/2,-p/2,d,p,u.stroke,!0),w=g.r+g.offset,_=l?s:o;m.attr({rotation:g.rotate,x:_[0]+w*Math.cos(r.rotation),y:_[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,n){var a=VY(e,n,t,r),i=KY(e,n,t,r);if(NY(t,i,a),GY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var A=Y2(Y(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));J2(A)}},axisName:function(r,t,e,n){var a=Ve(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),A=r.nameDirection,o=t.getModel("nameTextStyle"),s=t.get("nameGap")||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,f=[i==="start"?l[0]-u*s:i==="end"?l[1]+u*s:(l[0]+l[1])/2,CT(i)?r.labelOffset+A*s:0],c,h=t.get("nameRotate");h!=null&&(h=h*Di/180);var v;CT(i)?c=wr.innerTextLayout(r.rotation,h??r.rotation,A):(c=kY(r.rotation,i,h||0,l),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=o.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=Ve(r.nameTruncateMaxWidth,p.maxWidth,v),m=new Gt({x:f[0],y:f[1],rotation:c.rotation,silent:wr.isLabelSilent(t),style:oe(o,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:o.get("align")||c.textAlign,verticalAlign:o.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(js({el:m,componentModel:t,itemName:a}),m.__fullText=a,m.anid="name",t.get("triggerEvent")){var w=wr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Ct(m).eventData=w}n.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function kY(r,t,e,n){var a=ZL(e-r),i,A,o=n[0]>n[1],s=t==="start"&&!o||t!=="start"&&o;return ju(a-Di/2)?(A=s?"bottom":"top",i="center"):ju(a-Di*1.5)?(A=s?"top":"bottom",i="center"):(A="middle",aDi/2?i=s?"left":"right":i=s?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:A}}function NY(r,t,e){if(!U2(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],A=t[1],o=t[t.length-1],s=t[t.length-2],l=e[0],u=e[1],f=e[e.length-1],c=e[e.length-2];n===!1?($r(i),$r(l)):_T(i,A)&&(n?($r(A),$r(u)):($r(i),$r(l))),a===!1?($r(o),$r(f)):_T(s,o)&&(a?($r(s),$r(c)):($r(o),$r(f)))}}function $r(r){r&&(r.ignore=!0)}function _T(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Rd([]);return Co(a,a,-r.rotation),e.applyTransform(Ha([],a,r.getLocalTransform())),n.applyTransform(Ha([],a,t.getLocalTransform())),e.intersect(n)}}function CT(r){return r==="middle"||r==="center"}function QP(r,t,e,n,a){for(var i=[],A=[],o=[],s=0;s=0||r===t}function $Y(r){var t=Y_(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),A=e.get("value");A!=null&&(A=n.parse(A));var o=aw(e);i==null&&(a.status=o?"show":"hide");var s=n.getExtent().slice();s[0]>s[1]&&s.reverse(),(A==null||A>s[1])&&(A=s[1]),A0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=s;v.color!=null&&(d=gt({color:v.color},s));var p=Et(mt(v),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:A,axisLabel:o,name:v.text,showName:l,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:c},!1);if(nt(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else vt(u)&&(p.name=u(p.name,p));var y=new Yt(p,null,this.ecModel);return Ie(y,Nf.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:Et({lineStyle:{color:"#bbb"}},Ml.axisLine),axisLabel:Wc(Ml.axisLabel,!1),axisTick:Wc(Ml.axisTick,!1),splitLine:Wc(Ml.splitLine,!0),splitArea:Wc(Ml.splitArea,!0),indicator:[]},t}(Rt),lZ=["axisLine","axisTickLabel","axisName"],uZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=Y(a,function(A){var o=A.model.get("showName")?A.name:"",s=new wr(A.model,{axisName:o,position:[n.cx,n.cy],rotation:A.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});T(i,function(A){T(lZ,A.add,A),this.group.add(A.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),A=e.getModel("splitLine"),o=e.getModel("splitArea"),s=A.getModel("lineStyle"),l=o.getModel("areaStyle"),u=A.get("show"),f=o.get("show"),c=s.get("color"),h=l.get("color"),v=K(c)?c:[c],d=K(h)?h:[h],p=[],g=[];function y(Q,M,R){var P=R%M.length;return Q[P]=Q[P]||[],P}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,_=n.cy,B=0;B3?1.4:A>1?1.2:1.1,u=i>0?l:1/l;dy(this,"zoom","zoomOnMouseWheel",e,{scale:u,originX:o,originY:s,isAvailableBehavior:null})}if(a){var f=Math.abs(i),c=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);dy(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!FT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;dy(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(yn);function dy(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Ka(n.event),HP(r,t,e,n,a))}function HP(r,t,e,n,a){a.isAvailableBehavior=it(Jh,null,e,n),r.trigger(t,a)}function Jh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function $_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function J_(r,t,e,n){var a=r.target,i=r.zoomLimit,A=r.zoom=r.zoom||1;if(A*=t,i){var o=i.min||0,s=i.max||1/0;A=Math.max(Math.min(s,A),o)}var l=A/r.zoom;r.zoom=A,a.x-=(e-a.x)*(l-1),a.y-=(n-a.y)*(l-1),a.scaleX*=l,a.scaleY*=l,a.dirty()}var gZ={axisPointer:1,tooltip:1,brush:1};function vp(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!gZ.hasOwnProperty(n.mainType)&&a&&a.model!==e}function OP(r){if(nt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var py,Xv={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"},ET=Ht(Xv),Yv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},DT=Ht(Yv),yZ=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=OP(t);this._defsUsePending=[];var a=new _t;this._root=a;var i=[],A=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Hr(n,a,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,a,i,null,!1,!1),l=l.nextSibling;BZ(this._defs,this._defsUsePending),this._defsUsePending=[];var u,f;if(A){var c=dp(A);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&o!=null&&s!=null&&(f=NP(u,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var h=a;a=new _t,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!e.ignoreRootClip&&o!=null&&s!=null&&a.setClipPath(new Nt({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:u,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(t,e,n,a,i,A){var o=t.nodeName.toLowerCase(),s,l=a;if(o==="defs"&&(i=!0),o==="text"&&(A=!0),o==="defs"||o==="switch")s=e;else{if(!i){var u=py[o];if(u&&st(py,o)){s=u.call(this,t,e);var f=t.getAttribute("name");if(f){var c={name:f,namedFrom:null,svgNodeTagLower:o,el:s};n.push(c),o==="g"&&(l=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:o,el:s});e.add(s)}}var h=QT[o];if(h&&st(QT,o)){var v=h.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=v)}}if(s&&s.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,s,n,l,i,A):p.nodeType===3&&A&&this._parseText(p,s),p=p.nextSibling},r.prototype._parseText=function(t,e){var n=new Us({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),mZ(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var A=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=A;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},r.internalField=function(){py={g:function(t,e){var n=new _t;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Nt;return Jr(e,n),Hr(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,e){var n=new ei;return Jr(e,n),Hr(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,e){var n=new Ue;return Jr(e,n),Hr(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,e){var n=new Xd;return Jr(e,n),Hr(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,e){var n=t.getAttribute("points"),a;n&&(a=UT(n));var i=new Sr({shape:{points:a||[]},silent:!0});return Jr(e,i),Hr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=UT(n));var i=new xr({shape:{points:a||[]},silent:!0});return Jr(e,i),Hr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Ge;return Jr(e,n),Hr(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,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(A);var o=new _t;return Jr(e,o),Hr(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){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",A=t.getAttribute("dy")||"0",o=new _t;return Jr(e,o),Hr(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(A),o},path:function(t,e){var n=t.getAttribute("d")||"",a=EM(n);return Jr(e,a),Hr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),QT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Uf(t,e,n,a);return LT(r,i),MT(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new MM(t,e,n);return LT(r,a),MT(r,a),a}};function LT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function MT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};kP(e,i,i);var A=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:A})}e=e.nextSibling}}function Jr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),gt(t.__inheritedStyle,r.__inheritedStyle))}function UT(r){for(var t=dp(r),e=[],n=0;n0;i-=2){var A=n[i],o=n[i-1],s=dp(A);switch(a=a||Wr(),o){case"translate":va(a,a,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":zB(a,a,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Co(a,a,-parseFloat(s[0])*gy,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(s[0])*gy);Ha(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(s[0])*gy);Ha(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(s[0]),a[1]=parseFloat(s[1]),a[2]=parseFloat(s[2]),a[3]=parseFloat(s[3]),a[4]=parseFloat(s[4]),a[5]=parseFloat(s[5]);break}}t.setLocalTransform(a)}}var RT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function kP(r,t,e){var n=r.getAttribute("style");if(n){RT.lastIndex=0;for(var a;(a=RT.exec(n))!=null;){var i=a[1],A=st(Xv,i)?Xv[i]:null;A&&(t[A]=a[2]);var o=st(Yv,i)?Yv[i]:null;o&&(e[o]=a[2])}}}function xZ(r,t,e){for(var n=0;n"].join(n)}function q0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Pb(r,t,e,n){return Re("svg","root",{width:r,height:t,xmlns:tP,"xmlns:xlink":eP,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var A6=0;function nP(){return A6++}var Rb={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"},QA="transform-origin";function o6(r,t,e){var n=V({},r.shape);V(n,t),r.buildPath(e,n);var a=new j2;return a.reset(OL(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function s6(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[QA]=e+"px "+n+"px")}var l6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function aP(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function u6(r,t,e){var n=r.shape.paths,a={},i,A;if(T(n,function(s){var l=q0(e.zrId);l.animation=!0,hp(s,{},l,!0);var u=l.cssAnims,f=l.cssNodes,c=Ht(u),h=c.length;if(h){A=c[h-1];var v=u[A];for(var d in v){var p=v[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var g in f){var y=f[g].animation;y.indexOf(A)>=0&&(i=y)}}}),!!i){t.d=!1;var o=aP(a,e);return i.replace(A,o)}}function Hb(r){return nt(r)?Rb[r]?"cubic-bezier("+Rb[r]+")":WB(r)?r:"":""}function hp(r,t,e,n){var a=r.animators,i=a.length,A=[];if(r instanceof o_){var o=u6(r,t,e);if(o)A.push(o);else if(!i)return}else if(!i)return;for(var s={},l=0;l0}).length){var N=aP(C,e);return N+" "+y[0]+" both"}}for(var p in s){var o=d(s[p]);o&&A.push(o)}if(A.length){var g=e.zrId+"-cls-"+nP();e.cssNodes["."+g]={animation:A.join(",")},t.class=g}}function f6(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};Ob(n,t,e)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var A=r.style&&r.style.fill,o=r.states.select&&r.states.select.style&&r.states.select.style.fill,s=r.currentStates.indexOf("select")>=0&&o||A;s&&(i=u0(s))}var l=a.lineWidth;if(l){var u=!a.strokeNoScale&&r.transform?r.transform[0]:1;l=l/u}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),l&&(n["stroke-width"]=l),Ob(n,t,e)}}function Ob(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+nP(),e.cssStyleCache[a]=i,e.cssNodes["."+i+":hover"]=r),t.class=t.class?t.class+" "+i:i}var cf=Math.round;function iP(r){return r&&nt(r.src)}function AP(r){return r&&vt(r.toDataURL)}function G_(r,t,e,n){t6(function(a,i){var A=a==="fill"||a==="stroke";A&&HL(i)?sP(t,r,a,n):A&&XB(i)?lP(e,r,a,n):A&&i==="none"?r[a]="transparent":r[a]=i},t,e,!1),y6(e,r,n)}function K_(r,t){var e=uK(t);e&&(e.each(function(n,a){n!=null&&(r[(Ub+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[Ub+"silent"]="true"))}function kb(r){return Ei(r[0]-1)&&Ei(r[1])&&Ei(r[2])&&Ei(r[3]-1)}function c6(r){return Ei(r[4])&&Ei(r[5])}function z_(r,t,e){if(t&&!(c6(t)&&kb(t))){var n=1e4;r.transform=kb(t)?"translate("+cf(t[4]*n)/n+" "+cf(t[5]*n)/n+")":LG(t)}}function Nb(r,t,e){for(var n=r.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Br(c,p),Br(h,p)}else if(c==null||h==null){var g=function(b,I){if(b){var F=b.elm,E=c||I.width,D=h||I.height;b.tag==="pattern"&&(l?(D=1,E/=i.width):u&&(E=1,D/=i.height)),b.attrs.width=E,b.attrs.height=D,F&&(F.setAttribute("width",E),F.setAttribute("height",D))}},y=jB(v,null,r,function(b){s||g(B,b),g(f,b)});y&&y.width&&y.height&&(c=c||y.width,h=h||y.height)}f=Re("image","img",{href:v,width:c,height:h}),A.width=c,A.height=h}else a.svgElement&&(f=mt(a.svgElement),A.width=a.svgWidth,A.height=a.svgHeight);if(f){var m,w;s?m=w=1:l?(w=1,m=A.width/i.width):u?(m=1,w=A.height/i.height):A.patternUnits="userSpaceOnUse",m!=null&&!isNaN(m)&&(A.width=m),w!=null&&!isNaN(w)&&(A.height=w);var _=kL(a);_&&(A.patternTransform=_);var B=Re("pattern","",A,[f]),C=V_(B),S=n.patternCache,x=S[C];x||(x=n.zrId+"-p"+n.patternIdx++,S[C]=x,A.id=x,B=n.defs[x]=Re("pattern",x,A,[f])),t[e]=Hd(x)}}function m6(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var A={id:i};n[r.id]=i,a[i]=Re("clipPath",i,A,[oP(r,e)])}t["clip-path"]=Hd(i)}function Kb(r){return document.createTextNode(r)}function OA(r,t,e){r.insertBefore(t,e)}function zb(r,t){r.removeChild(t)}function Wb(r,t){r.appendChild(t)}function uP(r){return r.parentNode}function fP(r){return r.nextSibling}function iy(r,t){r.textContent=t}var Xb=58,w6=120,B6=Re("","");function j0(r){return r===void 0}function jn(r){return r!==void 0}function _6(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function ru(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function hf(r){var t,e=r.children,n=r.tag;if(jn(n)){var a=r.elm=rP(n);if(W_(B6,r),K(e))for(t=0;ti?(v=e[s+1]==null?null:e[s+1].elm,cP(r,v,e,a,s)):zv(r,t,n,i))}function ss(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&(W_(r,t),j0(t.text)?jn(n)&&jn(a)?n!==a&&C6(e,n,a):jn(a)?(jn(r.text)&&iy(e,""),cP(e,null,a,0,a.length-1)):jn(n)?zv(e,n,0,n.length-1):jn(r.text)&&iy(e,""):r.text!==t.text&&(jn(n)&&zv(e,n,0,n.length-1),iy(e,t.text)))}function S6(r,t){if(ru(r,t))ss(r,t);else{var e=r.elm,n=uP(e);hf(t),n!==null&&(OA(n,t.elm,fP(e)),zv(n,[r],0,0))}return t}var x6=0,b6=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=Yb(),this.configLayer=Yb(),this.storage=e,this._opts=n=V({},n),this.root=t,this._id="zr"+x6++,this._oldVNode=Pb(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=rP("svg");W_(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",S6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Gb(t,q0(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=q0(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var A=[],o=this._bgVNode=T6(n,a,this._backgroundColor,i);o&&A.push(o);var s=t.compress?null:this._mainVNode=Re("g","main",{},[]);this._paintList(e,i,s?s.children:A),s&&A.push(s);var l=Y(Ht(i.defs),function(c){return i.defs[c]});if(l.length&&A.push(Re("defs","defs",{},l)),t.animation){var u=i6(i.cssNodes,i.cssAnims,{newline:!0});if(u){var f=Re("style","stl",{},[],u);A.push(f)}}return Pb(n,a,A,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},V_(this.renderToVNode({animation:St(t.cssAnimation,!0),emphasis:St(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:St(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],A=0,o,s,l=0,u=0;u=0&&!(c&&s&&c[d]===s[d]);d--);for(var p=v-1;p>d;p--)A--,o=i[A-1];for(var g=d+1;g=o)}}for(var f=this.__startIndex;f15)break}}D.prevElClipPaths&&g.restore()};if(y)if(y.length===0)S=p.__endIndex;else for(var b=h.dpr,I=0;I0&&t>a[0]){for(s=0;st);s++);o=n[a[s]]}if(a.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var l=o.dom;l.nextSibling?A.insertBefore(e.dom,l.nextSibling):A.appendChild(e.dom)}else A.firstChild?A.insertBefore(e.dom,A.firstChild):A.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,a=0;a0?Nc:0),this._needsManuallyCompositing),u.__builtin__||OB("ZLevel "+l+" has been used by unkown layer "+u.id),u!==i&&(u.__used=!0,u.__startIndex!==s&&(u.__dirty=!0),u.__startIndex=s,u.incremental?u.__drawIndex=-1:u.__drawIndex=s,e(s),i=u),a.__dirty&Gr&&!a.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=s))}e(s),this.eachBuiltinLayer(function(f,c){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Et(n[t],e,!0):n[t]=e;for(var a=0;a-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.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}(se);function ks(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Rs(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],A=0;A=0&&n.push(t[i])}return n.join(" ")}var Vf=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;return A.updateData(e,n,a,i),A}return t.prototype._createSymbol=function(e,n,a,i,A){this.removeAll();var o=Te(e,-1,-1,2,2,null,A);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=U6,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Wa(this.childAt(0))},t.prototype.downplay=function(){Xa(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var A=e.getItemVisual(n,"symbol")||"circle",o=e.hostModel,s=t.getSymbolSize(e,n),l=A!==this._symbolType,u=i&&i.disableAnimation;if(l){var f=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(A,e,n,s,f)}else{var c=this.childAt(0);c.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(h):zt(c,h,o,n),Rn(c)}if(this._updateCommon(e,n,s,a,i),l){var c=this.childAt(0);if(!u){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ue(c,h,o,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,A){var o=this.childAt(0),s=e.hostModel,l,u,f,c,h,v,d,p,g;if(i&&(l=i.emphasisItemStyle,u=i.blurItemStyle,f=i.selectItemStyle,c=i.focus,h=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,v=i.emphasisDisabled),!i||e.hasItemOption){var y=i&&i.itemModel?i.itemModel:e.getItemModel(n),m=y.getModel("emphasis");l=m.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),c=m.get("focus"),h=m.get("blurScope"),v=m.get("disabled"),d=Oe(y),p=m.getShallow("scale"),g=y.getShallow("cursor")}var w=e.getItemVisual(n,"symbolRotate");o.attr("rotation",(w||0)*Math.PI/180||0);var _=xo(e.getItemVisual(n,"symbolOffset"),a);_&&(o.x=_[0],o.y=_[1]),g&&o.attr("cursor",g);var B=e.getItemVisual(n,"style"),C=B.fill;if(o instanceof Ke){var S=o.style;o.useStyle(V({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},B))}else o.__isEmptyBrush?o.useStyle(V({},B)):o.useStyle(B),o.style.decal=null,o.setColor(C,A&&A.symbolInnerColor),o.style.strokeNoScale=!0;var x=e.getItemVisual(n,"liftZ"),b=this._z2;x!=null?b==null&&(this._z2=o.z2,o.z2+=x):b!=null&&(o.z2=b,this._z2=null);var I=A&&A.useNameLabel;Je(o,d,{labelFetcher:s,labelDataIndex:n,defaultText:F,inheritColor:C,defaultOpacity:B.opacity});function F(Q){return I?e.getName(Q):ks(e,Q)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=o.ensureState("emphasis");E.style=l,o.ensureState("select").style=f,o.ensureState("blur").style=u;var D=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),ye(this,c,h,v)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),A=Ct(this).dataIndex,o=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var s=i.getTextContent();s&&Xi(s,{style:{opacity:0}},n,{dataIndex:A,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Xi(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:A,cb:e,removeOpt:o})},t.getSymbolSize=function(e,n){return ol(e.getItemVisual(n,"symbolSize"))},t}(_t);function U6(r,t){this.parent.drift(r,t)}function oy(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Jb(r){return r!=null&&!yt(r)&&(r={isIgnore:r}),r||{}}function qb(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Oe(t),cursorStyle:t.get("cursor")}}var Gf=function(){function r(t){this.group=new _t,this._SymbolCtor=t||Vf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Jb(e);var n=this.group,a=t.hostModel,i=this._data,A=this._SymbolCtor,o=e.disableAnimation,s=qb(t),l={disableAnimation:o},u=e.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var c=u(f);if(oy(t,c,f,e)){var h=new A(t,f,s,l);h.setPosition(c),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,c){var h=i.getItemGraphicEl(c),v=u(f);if(!oy(t,v,f,e)){n.remove(h);return}var d=t.getItemVisual(f,"symbol")||"circle",p=h&&h.getSymbolType&&h.getSymbolType();if(!h||p&&p!==d)n.remove(h),h=new A(t,f,s,l),h.setPosition(v);else{h.updateData(t,f,s,l);var g={x:v[0],y:v[1]};o?h.attr(g):zt(h,g,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var c=i.getItemGraphicEl(f);c&&c.fadeOut(function(){n.remove(c)},a)}).execute(),this._getSymbolPoint=u,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=qb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Jb(n);function a(s){s.isGroup||(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=n[0]:n[1]<0&&(e=n[1]),e}function dP(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,A=[];return A[i]=e.get(r.baseDim,n),A[1-i]=a,t.dataToPoint(A)}function R6(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function H6(r,t,e,n,a,i,A,o){for(var s=R6(r,t),l=[],u=[],f=[],c=[],h=[],v=[],d=[],p=vP(a,t,A),g=r.getLayout("points")||[],y=t.getLayout("points")||[],m=0;m=a||d<0)break;if(Ao(g,y)){if(s){d+=i;continue}break}if(d===e)r[i>0?"moveTo":"lineTo"](g,y),f=g,c=y;else{var m=g-l,w=y-u;if(m*m+w*w<.5){d+=i;continue}if(A>0){for(var _=d+i,B=t[_*2],C=t[_*2+1];B===g&&C===y&&p=n||Ao(B,C))h=g,v=y;else{b=B-l,I=C-u;var D=g-l,Q=B-g,M=y-u,R=C-y,P=void 0,O=void 0;if(o==="x"){P=Math.abs(D),O=Math.abs(Q);var G=b>0?1:-1;h=g-G*P*A,v=y,F=g+G*O*A,E=y}else if(o==="y"){P=Math.abs(M),O=Math.abs(R);var X=I>0?1:-1;h=g,v=y-X*P*A,F=g,E=y+X*O*A}else P=Math.sqrt(D*D+M*M),O=Math.sqrt(Q*Q+R*R),x=O/(O+P),h=g-b*A*(1-x),v=y-I*A*(1-x),F=g+b*A*x,E=y+I*A*x,F=fi(F,ci(B,g)),E=fi(E,ci(C,y)),F=ci(F,fi(B,g)),E=ci(E,fi(C,y)),b=F-g,I=E-y,h=g-b*P/O,v=y-I*P/O,h=fi(h,ci(l,g)),v=fi(v,ci(u,y)),h=ci(h,fi(l,g)),v=ci(v,fi(u,y)),b=g-h,I=y-v,F=g+b*O/P,E=y+I*O/P}r.bezierCurveTo(f,c,h,v,g,y),f=F,c=E}else r.lineTo(g,y)}l=g,u=y,d+=i}return p}var pP=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),O6=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pP},t.prototype.buildPath=function(e,n){var a=n.points,i=0,A=a.length/2;if(n.connectNulls){for(;A>0&&Ao(a[A*2-2],a[A*2-1]);A--);for(;i=0){var w=l?(v-s)*m+s:(h-o)*m+o;return l?[e,w]:[w,e]}o=h,s=v;break;case A.C:h=i[f++],v=i[f++],d=i[f++],p=i[f++],g=i[f++],y=i[f++];var _=l?wv(o,h,d,g,e,u):wv(s,v,p,y,e,u);if(_>0)for(var B=0;B<_;B++){var C=u[B];if(C<=1&&C>=0){var w=l?Me(s,v,p,y,C):Me(o,h,d,g,C);return l?[e,w]:[w,e]}}o=g,s=y;break}}},t}(Mt),k6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(pP),gP=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new k6},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,A=0,o=a.length/2,s=n.smoothMonotone;if(n.connectNulls){for(;o>0&&Ao(a[o*2-2],a[o*2-1]);o--);for(;At){i?e.push(A(i,s,t)):a&&e.push(A(a,s,0),A(a,s,t));break}else a&&(e.push(A(a,s,0)),a=null),e.push(s),i=s}return e}function G6(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,A=n.length-1;A>=0;A--){var o=r.getDimensionInfo(n[A].dimension);if(a=o&&o.coordDim,a==="x"||a==="y"){i=n[A];break}}if(i){var s=t.getAxis(a),l=Y(i.stops,function(m){return{coord:s.toGlobalCoord(s.dataToCoord(m.value)),color:m.color}}),u=l.length,f=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),f.reverse());var c=V6(l,a==="x"?e.getWidth():e.getHeight()),h=c.length;if(!h&&u)return l[0].coord<0?f[1]?f[1]:l[u-1].color:f[0]?f[0]:l[0].color;var v=10,d=c[0].coord-v,p=c[h-1].coord+v,g=p-d;if(g<.001)return"transparent";T(c,function(m){m.offset=(m.coord-d)/g}),c.push({offset:h?c[h-1].offset:.5,color:f[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:f[0]||"transparent"});var y=new Uf(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=p,y}}}function K6(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&z6(i,t))){var A=t.mapDimension(i.dim),o={};return T(i.getViewLabels(),function(s){var l=i.scale.getRawOrdinalNumber(s.tickValue);o[l]=1}),function(s){return!o.hasOwnProperty(t.get(A,s))}}}}function z6(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),A=0;An)return!1;return!0}function W6(r,t){return isNaN(r)||isNaN(t)}function X6(r){for(var t=r.length/2;t>0&&W6(r[t*2-2],r[t*2-1]);t--);return t-1}function nT(r,t){return[r[t*2],r[t*2+1]]}function Y6(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,A,o=0,s=-1,l=0;l=t||i>=t&&A<=t){s=l;break}o=l,i=A}return{range:[o,s],t:(t-i)/(A-i)}}function wP(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<_r.length;t++)if(r.get([_r[t],"endLabel","show"]))return!0;return!1}function sy(r,t,e,n){if(To(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),A=n.getData(),o={lastFrameIndex:0},s=wP(n)?function(h,v){r._endLabelOnDuring(h,v,A,o,i,a,t)}:null,l=t.getBaseAxis().isHorizontal(),u=yP(t,e,n,function(){var h=r._endLabel;h&&e&&o.originalX!=null&&h.attr({x:o.originalX,y:o.originalY})},s);if(!n.get("clip",!0)){var f=u.shape,c=Math.max(f.width,f.height);l?(f.y-=c,f.height+=c*2):(f.x-=c,f.width+=c*2)}return s&&s(1,u),u}else return mP(t,e,n)}function Z6(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",A=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||A}}}var $6=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new _t,n=new Gf;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=A.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),w=u.get("origin"),_=vP(A,s,w),B=m&&N6(A,s,_),C=e.get("showSymbol"),S=e.get("connectNulls"),x=C&&!c&&K6(e,s,A),b=this._data;b&&b.eachItemGraphicEl(function(Bt,N){Bt.__temp&&(o.remove(Bt),b.setItemGraphicEl(N,null))}),C||v.remove(),o.add(g);var I=c?!1:e.get("step"),F;A&&A.getArea&&e.get("clip",!0)&&(F=A.getArea(),F.width!=null?(F.x-=.1,F.y-=.1,F.width+=.2,F.height+=.2):F.r0&&(F.r0-=.5,F.r+=.5)),this._clipShapeForSymbol=F;var E=G6(s,A,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===A.type&&I===this._step))C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,A,F),I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d=this._newPolyline(f),m?p=this._newPolygon(f,B):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E)),g.setClipPath(sy(this,A,!0,e));else{m&&!p?p=this._newPolygon(f,B):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,A,go(E));var D=g.getClipPath();if(D){var Q=sy(this,A,!1,e);ue(D,{shape:Q.shape},e)}else g.setClipPath(sy(this,A,!0,e));C&&v.updateData(s,{isIgnore:x,clipShape:F,disableAnimation:!0,getSymbolPoint:function(Bt){return[f[Bt*2],f[Bt*2+1]]}}),(!jb(this._stackedOnPoints,B)||!jb(this._points,f))&&(y?this._doUpdateAnimation(s,B,A,a,I,w,S):(I&&(f=hi(f,A,I,S),B&&(B=hi(B,A,I,S))),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:B})))}var M=e.getModel("emphasis"),R=M.get("focus"),P=M.get("blurScope"),O=M.get("disabled");if(d.useStyle(gt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),$e(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}Ct(d).seriesIndex=e.seriesIndex,ye(d,R,P,O);var X=rT(e.get("smooth")),J=e.get("smoothMonotone");if(d.setShape({smooth:X,smoothMonotone:J,connectNulls:S}),p){var At=s.getCalculationInfo("stackedOnSeries"),lt=0;p.useStyle(gt(u.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),At&&(lt=rT(At.get("smooth"))),p.setShape({smooth:X,stackedOnSmooth:lt,smoothMonotone:J,connectNulls:S}),$e(p,e,"areaStyle"),Ct(p).seriesIndex=e.seriesIndex,ye(p,R,P,O)}var wt=function(Bt){i._changePolyState(Bt)};s.eachItemGraphicEl(function(Bt){Bt&&(Bt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=s,this._coordSys=A,this._stackedOnPoints=B,this._points=f,this._step=I,this._valueOrigin=w,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){Ct(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&o!=null&&o>=0){var s=A.getLayout("points"),l=A.getItemGraphicEl(o);if(!l){var u=s[o*2],f=s[o*2+1];if(isNaN(u)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,f))return;var c=e.get("zlevel")||0,h=e.get("z")||0;l=new Vf(A,o),l.x=u,l.y=f,l.setZ(c,h);var v=l.getSymbolPath().getTextContent();v&&(v.zlevel=c,v.z=h,v.z2=this._polyline.z2+1),l.__temp=!0,A.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else jt.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var A=e.getData(),o=ho(A,i);if(this._changePolyState("normal"),o!=null&&o>=0){var s=A.getItemGraphicEl(o);s&&(s.__temp?(A.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else jt.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Tv(this._polyline,e),n&&Tv(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new O6({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new gP({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,A,o=n.getBaseAxis(),s=o.inverse;n.type==="cartesian2d"?(i=o.isHorizontal(),A=!1):n.type==="polar"&&(i=o.dim==="angle",A=!0);var l=e.hostModel,u=l.get("animationDuration");vt(u)&&(u=u(null));var f=l.get("animationDelay")||0,c=vt(f)?f(null):f;e.eachItemGraphicEl(function(h,v){var d=h;if(d){var p=[h.x,h.y],g=void 0,y=void 0,m=void 0;if(a)if(A){var w=a,_=n.pointToCoord(p);i?(g=w.startAngle,y=w.endAngle,m=-_[1]/180*Math.PI):(g=w.r0,y=w.r,m=_[0])}else{var B=a;i?(g=B.x,y=B.x+B.width,m=h.x):(g=B.y+B.height,y=B.y,m=h.y)}var C=y===g?0:(m-g)/(y-g);s&&(C=1-C);var S=vt(f)?f(v):u*C+c,x=d.getSymbolPath(),b=x.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:S}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:S}),x.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(wP(e)){var A=e.getData(),o=this._polyline,s=A.getLayout("points");if(!s){o.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Gt({z2:200}),l.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=X6(s);u>=0&&(Je(o,Oe(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:u,defaultText:function(f,c,h){return h!=null?hP(A,h):ks(A,f)},enableTextSetter:!0},Z6(i,n)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,A,o,s){var l=this._endLabel,u=this._polyline;if(l){e<1&&i.originalX==null&&(i.originalX=l.x,i.originalY=l.y);var f=a.getLayout("points"),c=a.hostModel,h=c.get("connectNulls"),v=o.get("precision"),d=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,m=n.shape,w=y?g?m.x:m.y+m.height:g?m.x+m.width:m.y,_=(g?d:0)*(y?-1:1),B=(g?0:-d)*(y?-1:1),C=g?"x":"y",S=Y6(f,w,C),x=S.range,b=x[1]-x[0],I=void 0;if(b>=1){if(b>1&&!h){var F=nT(f,x[0]);l.attr({x:F[0]+_,y:F[1]+B}),A&&(I=c.getRawValue(x[0]))}else{var F=u.getPointOn(w,C);F&&l.attr({x:F[0]+_,y:F[1]+B});var E=c.getRawValue(x[0]),D=c.getRawValue(x[1]);A&&(I=iM(a,v,E,D,S.t))}i.lastFrameIndex=x[0]}else{var Q=e===1||i.lastFrameIndex>0?x[0]:0,F=nT(f,Q);A&&(I=c.getRawValue(Q)),l.attr({x:F[0]+_,y:F[1]+B})}if(A){var M=tl(l);typeof M.setLabelText=="function"&&M.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,A,o,s){var l=this._polyline,u=this._polygon,f=e.hostModel,c=H6(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=c.current,v=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(A&&(h=hi(c.current,a,A,s),v=hi(c.stackedOnCurrent,a,A,s),d=hi(c.next,a,A,s),p=hi(c.stackedOnNext,a,A,s)),eT(h,d)>3e3||u&&eT(v,p)>3e3){l.stopAnimation(),l.setShape({points:d}),u&&(u.stopAnimation(),u.setShape({points:d,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),l.stopAnimation(),zt(l,g,f),u&&(u.setShape({points:h,stackedOnPoints:v}),u.stopAnimation(),zt(u,{shape:{stackedOnPoints:p}},f),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=c.status,w=0;wt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=i,e=a)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},q6=function(r){return Math.round(r.length/2)};function BP(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),A=t.coordinateSystem,o=a.count();if(o>10&&A.type==="cartesian2d"&&i){var s=A.getBaseAxis(),l=A.getOtherAxis(s),u=s.getExtent(),f=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(f||1),h=Math.round(o/c);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(l.dim),1/h));var v=void 0;nt(i)?v=J6[i]:vt(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(l.dim),1/h,v,q6))}}}}}function j6(r){r.registerChartView($6),r.registerSeriesModel(M6),r.registerLayout(zf("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BP("line"))}var vf=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var A=i.clampData(e),o=i.dataToPoint(A);if(a)T(i.getAxes(),function(c,h){if(c.type==="category"&&n!=null){var v=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),p=A[h],g=n[h]==="x1"||n[h]==="y1";if(g&&!d&&(p+=1),v.length<2)return;if(v.length===2){o[h]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,w=1,_=0;_p){m=(B+y)/2;break}_===1&&(w=C-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[0].coord),o[h]=c.toGlobalCoord(m)}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(se);se.registerClass(vf);var tY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ri(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 e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=nA(vf.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}(vf),eY=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Wv=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new eY},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,A=Math.max(n.r0||0,0),o=Math.max(n.r,0),s=(o-A)*.5,l=A+s,u=n.startAngle,f=n.endAngle,c=n.clockwise,h=Math.PI*2,v=c?f-uMath.PI/2&&uo)return!0;o=f}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),A=Math.max(0,i[0]),o=Math.min(i[1],a.getOrdinalMeta().categories.length-1);A<=o;++A)if(e.ordinalNumbers[A]!==a.getRawOrdinalNumber(A))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var A=this._dataSort(e,a,n);this._isOrderDifferentInView(A,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:A}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,A=this._dataSort(e,i,function(o){return e.get(e.mapDimension(n.otherAxis.dim),o)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:A})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){nf(i,e,Ct(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}(jt),aT={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,i=r.y+r.height,A=ly(t.x,r.x),o=uy(t.x+t.width,a),s=ly(t.y,r.y),l=uy(t.y+t.height,i),u=oa?o:A,t.y=f&&s>i?l:s,t.width=u?0:o-A,t.height=f?0:l-s,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),u||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var a=uy(t.r,r.r),i=ly(t.r0,r.r0);t.r=a,t.r0=i;var A=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return A}},iT={cartesian2d:function(r,t,e,n,a,i,A,o,s){var l=new Nt({shape:V({},n),z2:1});if(l.__dataIndex=e,l.name="item",i){var u=l.shape,f=a?"height":"width";u[f]=0}return l},polar:function(r,t,e,n,a,i,A,o,s){var l=!a&&s?Wv:Cr,u=new l({shape:n,z2:1});u.name="item";var f=_P(a);if(u.calculateTextPosition=rY(f,{isRoundCap:l===Wv}),i){var c=u.shape,h=a?"r":"endAngle",v={};c[h]=a?n.r0:n.startAngle,v[h]=n[h],(o?zt:ue)(u,{shape:v},i)}return u}};function AY(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function AT(r,t,e,n,a,i,A,o){var s,l;i?(l={x:n.x,width:n.width},s={y:n.y,height:n.height}):(l={y:n.y,height:n.height},s={x:n.x,width:n.width}),o||(A?zt:ue)(e,{shape:s},t,a,null);var u=t?r.baseAxis.model:null;(A?zt:ue)(e,{shape:l},u,a)}function oT(r,t){for(var e=0;e0?1:-1,A=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+A*a/2,width:n.width-i*a,height:n.height-A*a}},polar:function(r,t,e){var n=r.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 lY(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function _P(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function lT(r,t,e,n,a,i,A,o){var s=t.getItemVisual(e,"style");if(o){if(!i.get("roundCap")){var u=r.shape,f=$A(n.getModel("itemStyle"),u,!0);V(u,f),r.setShape(u)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(s);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var h=o?A?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":A?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Oe(n);Je(r,v,{labelFetcher:i,labelDataIndex:e,defaultText:ks(i.getData(),e),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(o&&d){var p=n.get(["label","position"]);r.textConfig.inside=p==="middle"?!0:null,nY(r,p==="outside"?h:p,_P(A),n.get(["label","rotate"]))}VM(d,v,i.getRawValue(e),function(y){return hP(t,y)});var g=n.getModel(["emphasis"]);ye(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),$e(r,n),lY(a)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function uY(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.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 fY=function(){function r(){}return r}(),uT=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new fY},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,A=1-this.baseDimIdx,o=[],s=[],l=this.barWidth,u=0;u=0?e:null},30,!1);function cY(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,A=r.largeDataIndices,o=[],s=[],l=r.barWidth,u=0,f=i.length/3;u=o[0]&&t<=o[0]+s[0]&&e>=o[1]&&e<=o[1]+s[1])return A[u]}return-1}function CP(r,t,e){if(To(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function hY(r,t,e){var n=r.type==="polar"?Cr:Nt;return new n({shape:CP(t,e,r),silent:!0,z2:0})}function vY(r){r.registerChartView(iY),r.registerSeriesModel(tY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(I2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,BP("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var hT=Math.PI*2,zc=Math.PI/180;function SP(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xP(r,t){var e=SP(r,t),n=r.get("center"),a=r.get("radius");K(a)||(a=[0,a]);var i=et(e.width,t.getWidth()),A=et(e.height,t.getHeight()),o=Math.min(i,A),s=et(a[0],o/2),l=et(a[1],o/2),u,f,c=r.coordinateSystem;if(c){var h=c.dataToPoint(n);u=h[0]||0,f=h[1]||0}else K(n)||(n=[n,n]),u=et(n[0],i)+e.x,f=et(n[1],A)+e.y;return{cx:u,cy:f,r0:s,r:l}}function dY(r,t,e){t.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),A=SP(n,e),o=xP(n,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=-n.get("startAngle")*zc,h=n.get("endAngle"),v=n.get("padAngle")*zc;h=h==="auto"?c-hT:-h*zc;var d=n.get("minAngle")*zc,p=d+v,g=0;a.each(i,function(R){!isNaN(R)&&g++});var y=a.getSum(i),m=Math.PI/(y||g)*2,w=n.get("clockwise"),_=n.get("roseType"),B=n.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var S=w?1:-1,x=[c,h],b=S*v/2;t_(x,!w),c=x[0],h=x[1];var I=bP(n);I.startAngle=c,I.endAngle=h,I.clockwise=w;var F=Math.abs(h-c),E=F,D=0,Q=c;if(a.setLayout({viewRect:A,r:u}),a.each(i,function(R,P){var O;if(isNaN(R)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:s,cy:l,r0:f,r:_?NaN:u});return}_!=="area"?O=y===0&&B?m:R*m:O=F/g,OO?(X=Q+S*O/2,J=X):(X=Q+b,J=G-b),a.setItemLayout(P,{angle:O,startAngle:X,endAngle:J,clockwise:w,cx:s,cy:l,r0:f,r:_?$t(R,C,[f,u]):u}),Q=G}),Ee?g:p,_=Math.abs(m.label.y-e);if(_>=w.maxY){var B=m.label.x-t-m.len2*a,C=n+m.len,S=Math.abs(B)r.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var d=n.getBoundingRect();i.width=d.width;var p=(n.style.margin||0)+2.1;i.height=d.height+p,i.y-=(i.height-f)/2}}}function fy(r){return r.position==="center"}function yY(r){var t=r.getData(),e=[],n,a,i=!1,A=(r.get("minShowLabelAngle")||0)*pY,o=t.getLayout("viewRect"),s=t.getLayout("r"),l=o.width,u=o.x,f=o.y,c=o.height;function h(B){B.ignore=!0}function v(B){if(!B.ignore)return!0;for(var C in B.states)if(B.states[C].ignore===!1)return!0;return!1}t.each(function(B){var C=t.getItemGraphicEl(B),S=C.shape,x=C.getTextContent(),b=C.getTextGuideLine(),I=t.getItemModel(B),F=I.getModel("label"),E=F.get("position")||I.get(["emphasis","label","position"]),D=F.get("distanceToLabelLine"),Q=F.get("alignTo"),M=et(F.get("edgeDistance"),l),R=F.get("bleedMargin"),P=I.getModel("labelLine"),O=P.get("length");O=et(O,l);var G=P.get("length2");if(G=et(G,l),Math.abs(S.endAngle-S.startAngle)0?"right":"left":J>0?"left":"right"}var k=Math.PI,Z=0,W=F.get("rotate");if(Kt(W))Z=W*(k/180);else if(E==="center")Z=0;else if(W==="radial"||W===!0){var tt=J<0?-X+k:-X;Z=tt}else if(W==="tangential"&&E!=="outside"&&E!=="outer"){var ot=Math.atan2(J,At);ot<0&&(ot=k*2+ot);var ut=At>0;ut&&(ot=k+ot),Z=ot-k}if(i=!!Z,x.x=lt,x.y=wt,x.rotation=Z,x.setStyle({verticalAlign:"middle"}),z){x.setStyle({align:N});var Ft=x.states.select;Ft&&(Ft.x+=x.x,Ft.y+=x.y)}else{var at=x.getBoundingRect().clone();at.applyTransform(x.getComputedTransform());var rt=(x.style.margin||0)+2.1;at.y-=rt/2,at.height+=rt,e.push({label:x,labelLine:b,position:E,len:O,len2:G,minTurnAngle:P.get("minTurnAngle"),maxSurfaceAngle:P.get("maxSurfaceAngle"),surfaceNormal:new It(J,At),linePoints:Bt,textAlign:N,labelDistance:D,labelAlignTo:Q,edgeDistance:M,bleedMargin:R,rect:at,unconstrainedWidth:at.width,labelStyleWidth:x.style.width})}C.setTextConfig({inside:z})}}),!i&&r.get("avoidLabelOverlap")&&gY(e,n,a,s,l,c,u,f);for(var d=0;d0){for(var u=A.getItemLayout(0),f=1;isNaN(u&&u.startAngle)&&f=i.r0}},t.type="pie",t}(jt);function ll(r,t,e){t=K(t)&&{coordDimensions:t}||V({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=kf(n,t).dimensions,i=new mr(a,r);return i.initData(n,e),i}var Xf=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),BY=Vt(),_Y=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ll(this,{coordDimensions:["value"],encodeDefaulter:xt(g_,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=BY(n),i=a.seats;if(!i){var A=[];n.each(n.mapDimension("value"),function(s){A.push(s)}),i=a.seats=vK(A,n.hostModel.get("percentPrecision"))}var o=r.prototype.getDataParams.call(this,e);return o.percent=i[e]||0,o.$vars.push("percent"),o},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.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,endAngle:"auto",padAngle:0,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}(se);function CY(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),A=n.get(i,a);return!(Kt(A)&&!isNaN(A)&&A<0)})}}}function SY(r){r.registerChartView(wY),r.registerSeriesModel(_Y),YU("pie",r.registerAction),r.registerLayout(xt(dY,"pie")),r.registerProcessor(Wf("pie")),r.registerProcessor(CY("pie"))}var xY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},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}(se),IP=4,bY=function(){function r(){}return r}(),TY=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new bY},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,A=this.symbolProxy,o=A.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;l--){var u=l*2,f=i[u]-o/2,c=i[u+1]-s/2;if(e>=f&&n>=c&&e<=f+o&&n<=c+s)return l}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.points,i=n.size,A=i[0],o=i[1],s=1/0,l=1/0,u=-1/0,f=-1/0,c=0;c=0&&(l.dataIndex=f+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),FY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateSymbolDraw(i,e);A.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var A=zf("").reset(e,n,a);A.progress&&A.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var n=e.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,A=i.large;return(!a||A!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=A?new IY:new Gf,this._isLargeDraw=A,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(jt),EY=function(r){H(t,r);function t(){return r!==null&&r.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}(Rt),ew=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",be).models[0]},t.type="cartesian2dAxis",t}(Rt);Ie(ew,Nf);var FP={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)"]}}},DY=Et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FP),X_=Et({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}}},FP),QY=Et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},X_),LY=gt({logBase:10},X_);const EP={category:DY,value:X_,time:QY,log:LY};var MY={value:1,category:1,time:1,log:1};function Ns(r,t,e,n){T(MY,function(a,i){var A=Et(Et({},EP[i],!0),n,!0),o=function(s){H(l,s);function l(){var u=s!==null&&s.apply(this,arguments)||this;return u.type=t+"Axis."+i,u}return l.prototype.mergeDefaultAndTheme=function(u,f){var c=Af(this),h=c?nl(u):{},v=f.getTheme();Et(u,v.get(i+"Axis")),Et(u,this.getDefaultOption()),u.type=dT(u),c&&Yi(u,h,c)},l.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Y0.createByAxisModel(this))},l.prototype.getCategories=function(u){var f=this.option;if(f.type==="category")return u?f.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+i,l.defaultOption=A,l}(e);r.registerComponentModel(o)}),r.registerSubTypeDefaulter(t+"Axis",dT)}function dT(r){return r.type||(r.data?"category":"value")}var UY=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Jt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),rw=["x","y"];function pT(r){return r.type==="interval"||r.type==="time"}var PY=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=rw,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!pT(e)||!pT(n))){var a=e.getExtent(),i=n.getExtent(),A=this.dataToPoint([a[0],i[0]]),o=this.dataToPoint([a[1],i[1]]),s=a[1]-a[0],l=i[1]-i[0];if(!(!s||!l)){var u=(o[0]-A[0])/s,f=(o[1]-A[1])/l,c=A[0]-a[0]*u,h=A[1]-i[0]*f,v=this._transform=[u,0,0,f,c,h];this._invTransform=Zs([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var a=this.dataToPoint(e),i=this.dataToPoint(n),A=this.getArea(),o=new Dt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return A.intersect(o)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],A=e[1];if(this._transform&&i!=null&&isFinite(i)&&A!=null&&isFinite(A))return Ye(a,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.toGlobalCoord(o.dataToCoord(i,n)),a[1]=s.toGlobalCoord(s.dataToCoord(A,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,A=a.getExtent(),o=i.getExtent(),s=a.parse(e[0]),l=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(A[0],A[1]),s),Math.max(A[0],A[1])),n[1]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n},t.prototype.pointToData=function(e,n){var a=[];if(this._invTransform)return Ye(a,e,this._invTransform);var i=this.getAxis("x"),A=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=A.coordToData(A.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,A=Math.min(a[0],a[1])-e,o=Math.max(n[0],n[1])-i+e,s=Math.max(a[0],a[1])-A+e;return new Dt(i,A,o,s)},t}(UY),RY=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.index=0,o.type=i||"value",o.position=A||"bottom",o}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(On);function nw(r,t,e){e=e||{};var n=r.coordinateSystem,a=t.axis,i={},A=a.getAxesOnZeroOf()[0],o=a.position,s=A?"onZero":o,l=a.dim,u=n.getRect(),f=[u.x,u.x+u.width,u.y,u.y+u.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(A){var d=A.toGlobalCoord(A.dataToCoord(0));v[c.onZero]=Math.max(Math.min(d,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:f[0],l==="x"?v[c[s]]:f[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=A?v[c[o]]-v[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ge(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function gT(r){return r.get("coordinateSystem")==="cartesian2d"}function yT(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,be).models[0];t[n]=i}),t}var cy=Math.log;function DP(r,t,e){var n=Za.prototype,a=n.getTicks.call(e),i=n.getTicks.call(e,!0),A=a.length-1,o=n.getInterval.call(e),s=M2(r,t),l=s.extent,u=s.fixMin,f=s.fixMax;if(r.type==="log"){var c=cy(r.base);l=[cy(l[0])/c,cy(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:A,fixMin:u,fixMax:f});var h=n.getExtent.call(r);u&&(l[0]=h[0]),f&&(l[1]=h[1]);var v=n.getInterval.call(r),d=l[0],p=l[1];if(u&&f)v=(p-d)/A;else if(u)for(p=l[0]+v*A;pl[0]&&isFinite(d)&&isFinite(l[0]);)v=Jg(v),d=l[1]-v*A;else{var g=r.getTicks().length-1;g>A&&(v=Jg(v));var y=v*A;p=Math.ceil(l[1]/v)*v,d=me(p-y),d<0&&l[0]>=0?(d=0,p=me(y)):p>0&&l[1]<=0&&(p=0,d=-me(y))}var m=(a[0].value-i[0].value)/o,w=(a[A].value-i[A].value)/o;n.setExtent.call(r,d+v*m,p+v*w),n.setInterval.call(r,v),(m||w)&&n.setNiceExtent.call(r,d+v,p-v)}var HY=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rw,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function a(A){var o,s=Ht(A),l=s.length;if(l){for(var u=[],f=l-1;f>=0;f--){var c=+s[f],h=A[c],v=h.model,d=h.scale;Z0(d)&&v.get("alignTicks")&&v.get("interval")==null?u.push(h):(Os(d,v),Z0(d)&&(o=h))}u.length&&(o||(o=u.pop(),Os(o.scale,o.model)),T(u,function(p){DP(p.scale,p.model,o.scale)}))}}a(n.x),a(n.y);var i={};T(n.x,function(A){mT(n,"y",A,i)}),T(n.y,function(A){mT(n,"x",A,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),A=Qe(a,{width:e.getWidth(),height:e.getHeight()});this._rect=A;var o=this._axesList;s(),i&&(T(o,function(l){if(!l.model.get(["axisLabel","inside"])){var u=yX(l);if(u){var f=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);A[f]-=u[f]+c,l.position==="top"?A.y+=u.height+c:l.position==="left"&&(A.x+=u.width+c)}}}),s()),T(this._coordsList,function(l){l.calcAffineTransform()});function s(){T(o,function(l){var u=l.isHorizontal(),f=u?[0,A.width]:[0,A.height],c=l.inverse?1:0;l.setExtent(f[c],f[1-c]),OY(l,u?A.x:A.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}yt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):ju(a-Di)?(A=n>0?"bottom":"top",i="center"):(A="middle",a>0&&a0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:A}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),BT={axisLine:function(r,t,e,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),A=n.transform,o=[i[0],0],s=[i[1],0],l=o[0]>s[0];A&&(Ye(o,o,A),Ye(s,s,A));var u=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Pe({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ps(f.shape,f.style.lineWidth),f.anid="line",e.add(f);var c=t.get(["axisLine","symbol"]);if(c!=null){var h=t.get(["axisLine","symbolSize"]);nt(c)&&(c=[c,c]),(nt(h)||Kt(h))&&(h=[h,h]);var v=xo(t.get(["axisLine","symbolOffset"])||0,h),d=h[0],p=h[1];T([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((o[0]-s[0])*(o[0]-s[0])+(o[1]-s[1])*(o[1]-s[1]))}],function(g,y){if(c[y]!=="none"&&c[y]!=null){var m=Te(c[y],-d/2,-p/2,d,p,u.stroke,!0),w=g.r+g.offset,_=l?s:o;m.attr({rotation:g.rotate,x:_[0]+w*Math.cos(r.rotation),y:_[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,n){var a=VY(e,n,t,r),i=KY(e,n,t,r);if(NY(t,i,a),GY(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var A=Y2(Y(i,function(o){return{label:o,priority:o.z2,defaultAttr:{ignore:o.ignore}}}));J2(A)}},axisName:function(r,t,e,n){var a=Ge(r.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),A=r.nameDirection,o=t.getModel("nameTextStyle"),s=t.get("nameGap")||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,f=[i==="start"?l[0]-u*s:i==="end"?l[1]+u*s:(l[0]+l[1])/2,CT(i)?r.labelOffset+A*s:0],c,h=t.get("nameRotate");h!=null&&(h=h*Di/180);var v;CT(i)?c=wr.innerTextLayout(r.rotation,h??r.rotation,A):(c=kY(r.rotation,i,h||0,l),v=r.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(c.rotation)),!isFinite(v)&&(v=null)));var d=o.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,y=Ge(r.nameTruncateMaxWidth,p.maxWidth,v),m=new Gt({x:f[0],y:f[1],rotation:c.rotation,silent:wr.isLabelSilent(t),style:oe(o,{text:a,font:d,overflow:"truncate",width:y,ellipsis:g,fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:o.get("align")||c.textAlign,verticalAlign:o.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(js({el:m,componentModel:t,itemName:a}),m.__fullText=a,m.anid="name",t.get("triggerEvent")){var w=wr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Ct(m).eventData=w}n.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function kY(r,t,e,n){var a=ZL(e-r),i,A,o=n[0]>n[1],s=t==="start"&&!o||t!=="start"&&o;return ju(a-Di/2)?(A=s?"bottom":"top",i="center"):ju(a-Di*1.5)?(A=s?"top":"bottom",i="center"):(A="middle",aDi/2?i=s?"left":"right":i=s?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:A}}function NY(r,t,e){if(!U2(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],A=t[1],o=t[t.length-1],s=t[t.length-2],l=e[0],u=e[1],f=e[e.length-1],c=e[e.length-2];n===!1?($r(i),$r(l)):_T(i,A)&&(n?($r(A),$r(u)):($r(i),$r(l))),a===!1?($r(o),$r(f)):_T(s,o)&&(a?($r(s),$r(c)):($r(o),$r(f)))}}function $r(r){r&&(r.ignore=!0)}function _T(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var a=Rd([]);return Co(a,a,-r.rotation),e.applyTransform(Ha([],a,r.getLocalTransform())),n.applyTransform(Ha([],a,t.getLocalTransform())),e.intersect(n)}}function CT(r){return r==="middle"||r==="center"}function QP(r,t,e,n,a){for(var i=[],A=[],o=[],s=0;s=0||r===t}function $Y(r){var t=Y_(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),A=e.get("value");A!=null&&(A=n.parse(A));var o=aw(e);i==null&&(a.status=o?"show":"hide");var s=n.getExtent().slice();s[0]>s[1]&&s.reverse(),(A==null||A>s[1])&&(A=s[1]),A0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var d=s;v.color!=null&&(d=gt({color:v.color},s));var p=Et(mt(v),{boundaryGap:e,splitNumber:n,scale:a,axisLine:i,axisTick:A,axisLabel:o,name:v.text,showName:l,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:c},!1);if(nt(u)){var g=p.name;p.name=u.replace("{value}",g??"")}else vt(u)&&(p.name=u(p.name,p));var y=new Yt(p,null,this.ecModel);return Ie(y,Nf.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:Et({lineStyle:{color:"#bbb"}},Ml.axisLine),axisLabel:Wc(Ml.axisLabel,!1),axisTick:Wc(Ml.axisTick,!1),splitLine:Wc(Ml.splitLine,!0),splitArea:Wc(Ml.splitArea,!0),indicator:[]},t}(Rt),lZ=["axisLine","axisTickLabel","axisName"],uZ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes(),i=Y(a,function(A){var o=A.model.get("showName")?A.name:"",s=new wr(A.model,{axisName:o,position:[n.cx,n.cy],rotation:A.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});T(i,function(A){T(lZ,A.add,A),this.group.add(A.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),A=e.getModel("splitLine"),o=e.getModel("splitArea"),s=A.getModel("lineStyle"),l=o.getModel("areaStyle"),u=A.get("show"),f=o.get("show"),c=s.get("color"),h=l.get("color"),v=K(c)?c:[c],d=K(h)?h:[h],p=[],g=[];function y(Q,M,R){var P=R%M.length;return Q[P]=Q[P]||[],P}if(i==="circle")for(var m=a[0].getTicksCoords(),w=n.cx,_=n.cy,B=0;B3?1.4:A>1?1.2:1.1,u=i>0?l:1/l;dy(this,"zoom","zoomOnMouseWheel",e,{scale:u,originX:o,originY:s,isAvailableBehavior:null})}if(a){var f=Math.abs(i),c=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);dy(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!FT(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;dy(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(yn);function dy(r,t,e,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(Ka(n.event),HP(r,t,e,n,a))}function HP(r,t,e,n,a){a.isAvailableBehavior=it(Jh,null,e,n),r.trigger(t,a)}function Jh(r,t,e){var n=e[r];return!r||n&&(!nt(n)||t.event[n+"Key"])}function $_(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function J_(r,t,e,n){var a=r.target,i=r.zoomLimit,A=r.zoom=r.zoom||1;if(A*=t,i){var o=i.min||0,s=i.max||1/0;A=Math.max(Math.min(s,A),o)}var l=A/r.zoom;r.zoom=A,a.x-=(e-a.x)*(l-1),a.y-=(n-a.y)*(l-1),a.scaleX*=l,a.scaleY*=l,a.dirty()}var gZ={axisPointer:1,tooltip:1,brush:1};function vp(r,t,e){var n=t.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==e&&!gZ.hasOwnProperty(n.mainType)&&a&&a.model!==e}function OP(r){if(nt(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var py,Xv={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"},ET=Ht(Xv),Yv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},DT=Ht(Yv),yZ=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=OP(t);this._defsUsePending=[];var a=new _t;this._root=a;var i=[],A=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Hr(n,a,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,a,i,null,!1,!1),l=l.nextSibling;BZ(this._defs,this._defsUsePending),this._defsUsePending=[];var u,f;if(A){var c=dp(A);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&o!=null&&s!=null&&(f=NP(u,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var h=a;a=new _t,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!e.ignoreRootClip&&o!=null&&s!=null&&a.setClipPath(new Nt({shape:{x:0,y:0,width:o,height:s}})),{root:a,width:o,height:s,viewBoxRect:u,viewBoxTransform:f,named:i}},r.prototype._parseNode=function(t,e,n,a,i,A){var o=t.nodeName.toLowerCase(),s,l=a;if(o==="defs"&&(i=!0),o==="text"&&(A=!0),o==="defs"||o==="switch")s=e;else{if(!i){var u=py[o];if(u&&st(py,o)){s=u.call(this,t,e);var f=t.getAttribute("name");if(f){var c={name:f,namedFrom:null,svgNodeTagLower:o,el:s};n.push(c),o==="g"&&(l=c)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:o,el:s});e.add(s)}}var h=QT[o];if(h&&st(QT,o)){var v=h.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=v)}}if(s&&s.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,s,n,l,i,A):p.nodeType===3&&A&&this._parseText(p,s),p=p.nextSibling},r.prototype._parseText=function(t,e){var n=new Us({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),mZ(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var A=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=A;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},r.internalField=function(){py={g:function(t,e){var n=new _t;return Jr(e,n),Hr(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Nt;return Jr(e,n),Hr(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,e){var n=new ei;return Jr(e,n),Hr(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,e){var n=new Pe;return Jr(e,n),Hr(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,e){var n=new Xd;return Jr(e,n),Hr(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,e){var n=t.getAttribute("points"),a;n&&(a=UT(n));var i=new Sr({shape:{points:a||[]},silent:!0});return Jr(e,i),Hr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=UT(n));var i=new xr({shape:{points:a||[]},silent:!0});return Jr(e,i),Hr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Ke;return Jr(e,n),Hr(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,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",A=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(A);var o=new _t;return Jr(e,o),Hr(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){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",A=t.getAttribute("dy")||"0",o=new _t;return Jr(e,o),Hr(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(A),o},path:function(t,e){var n=t.getAttribute("d")||"",a=EM(n);return Jr(e,a),Hr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),QT={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Uf(t,e,n,a);return LT(r,i),MT(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new MM(t,e,n);return LT(r,a),MT(r,a),a}};function LT(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function MT(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};kP(e,i,i);var A=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:A})}e=e.nextSibling}}function Jr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),gt(t.__inheritedStyle,r.__inheritedStyle))}function UT(r){for(var t=dp(r),e=[],n=0;n0;i-=2){var A=n[i],o=n[i-1],s=dp(A);switch(a=a||Wr(),o){case"translate":va(a,a,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":zB(a,a,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":Co(a,a,-parseFloat(s[0])*gy,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":var l=Math.tan(parseFloat(s[0])*gy);Ha(a,[1,0,l,1,0,0],a);break;case"skewY":var u=Math.tan(parseFloat(s[0])*gy);Ha(a,[1,u,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(s[0]),a[1]=parseFloat(s[1]),a[2]=parseFloat(s[2]),a[3]=parseFloat(s[3]),a[4]=parseFloat(s[4]),a[5]=parseFloat(s[5]);break}}t.setLocalTransform(a)}}var RT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function kP(r,t,e){var n=r.getAttribute("style");if(n){RT.lastIndex=0;for(var a;(a=RT.exec(n))!=null;){var i=a[1],A=st(Xv,i)?Xv[i]:null;A&&(t[A]=a[2]);var o=st(Yv,i)?Yv[i]:null;o&&(e[o]=a[2])}}}function xZ(r,t,e){for(var n=0;n0,p={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:d,isGeo:A,transformInfoRaw:c};s.resourceType==="geoJSON"?this._buildGeoJSON(p):s.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),a=this._regionsGroup,i=t.transformInfoRaw,A=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(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=[],d=!l&&s&&s.project,p=0;p=0)&&(c=a);var h=A?{normal:{align:"center",verticalAlign:"middle"}}:null;Je(t,He(n),{labelFetcher:c,labelDataIndex:f,defaultText:e},h);var v=t.getTextContent();if(v&&(VP(v).ignore=v.ignore,t.textConfig&&A)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(A[0]-d.x)/d.width*100+"%",(A[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function VT(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):Ct(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function GT(r,t,e,n,a){r.data||js({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function KT(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),A=i.get("focus");return ye(t,A,i.get("blurScope"),i.get("disabled")),r.isGeo&&N3(t,a,e),A}function zT(r,t,e){var n=[],a;function i(){a=[]}function A(){a.length&&(n.push(a),a=[])}var o=t({polygonStart:i,polygonEnd:A,lineStart:i,lineEnd:A,point:function(s,l){isFinite(s)&&isFinite(l)&&a.push([s,l])},sphere:function(){}});return!e&&o.polygonStart(),T(r,function(s){o.lineStart();for(var l=0;l-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}(se);function zZ(r,t){var e={};return T(r,function(n){n.each(n.mapDimension("value"),function(a,i){var A="ec-"+n.getName(i);e[A]=e[A]||[],isNaN(a)||e[A].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),A=0,o=1/0,s=-1/0,l=e[i].length,u=0;u1?(w.width=m,w.height=m/p):(w.height=m,w.width=m*p),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var _=r.getBoxLayoutParams();_.aspect=p,w=Qe(_,{width:v,height:d})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function ZZ(r,t){T(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var $Z=function(){function r(){this.dimensions=KP}return r.prototype.create=function(t,e){var n=[];function a(A){return{nameProperty:A.get("nameProperty"),aspectScale:A.get("aspectScale"),projection:A.get("projection")}}t.eachComponent("geo",function(A,o){var s=A.get("map"),l=new ow(s+o,s,V({nameMap:A.get("nameMap")},a(A)));l.zoomLimit=A.get("scaleLimit"),n.push(l),A.coordinateSystem=l,l.model=A,l.resize=ZT,l.resize(A,e)}),t.eachSeries(function(A){var o=A.get("coordinateSystem");if(o==="geo"){var s=A.get("geoIndex")||0;A.coordinateSystem=n[s]}});var i={};return t.eachSeriesByType("map",function(A){if(!A.getHostGeoModel()){var o=A.getMapType();i[o]=i[o]||[],i[o].push(A)}}),T(i,function(A,o){var s=Y(A,function(u){return u.get("nameMap")}),l=new ow(o,o,V({nameMap:kB(s)},a(A[0])));l.zoomLimit=Ve.apply(null,Y(A,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=ZT,l.resize(A[0],e),T(A,function(u){u.coordinateSystem=l,ZZ(l,u)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),A=ft(),o=0;o=0;A--){var o=a[A];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},e.push(o)}}function r9(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){i9(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=A9(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function n9(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function JT(r){return arguments.length?r:l9}function nu(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function a9(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function i9(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function A9(r,t,e,n){if(t){for(var a=r,i=r,A=i.parentNode.children[0],o=t,s=a.hierNode.modifier,l=i.hierNode.modifier,u=A.hierNode.modifier,f=o.hierNode.modifier;o=yy(o),i=my(i),o&&i;){a=yy(a),A=my(A),a.hierNode.ancestor=r;var c=o.hierNode.prelim+f-i.hierNode.prelim-l+n(o,i);c>0&&(s9(o9(o,r,e),r,c),l+=c,s+=c),f+=o.hierNode.modifier,l+=i.hierNode.modifier,s+=a.hierNode.modifier,u+=A.hierNode.modifier}o&&!yy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=f-s),i&&!my(A)&&(A.hierNode.thread=i,A.hierNode.modifier+=l-u,e=r)}return e}function yy(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function my(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function o9(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function s9(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function l9(r,t){return r.parentNode===t.parentNode?1:2}var u9=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),f9=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new u9},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,A=n.parentPoint,o=a[0],s=a[i-1];if(i===1){e.moveTo(A[0],A[1]),e.lineTo(o[0],o[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,f=1-u,c=et(n.forkPosition,1),h=[];h[u]=A[u],h[f]=A[f]+(s[f]-A[f])*c,e.moveTo(A[0],A[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[u]=o[u],e.lineTo(h[0],h[1]),h[u]=s[u],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var v=1;vy.x,_||(w=w-Math.PI));var C=_?"left":"right",S=o.getModel("label"),x=S.get("rotate"),b=x*(Math.PI/180),I=p.getTextContent();I&&(p.setTextConfig({position:S.get("position")||C,rotation:x==null?-w:b,origin:"center"}),I.setStyle("verticalAlign","middle"))}var F=o.get(["emphasis","focus"]),E=F==="relative"?gv(A.getAncestorsIndices(),A.getDescendantIndices()):F==="ancestor"?A.getAncestorsIndices():F==="descendant"?A.getDescendantIndices():null;E&&(Ct(e).focus=E),h9(a,A,u,e,v,h,d,n),e.__edge&&(e.onHoverStateChange=function(D){if(D!=="blur"){var Q=A.parentNode&&r.getItemGraphicEl(A.parentNode.dataIndex);Q&&Q.hoverState===Qf||Tv(e.__edge,D)}})}function h9(r,t,e,n,a,i,A,o){var s=t.getModel(),l=r.get("edgeShape"),u=r.get("layout"),f=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=s.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new Mf({shape:sw(u,f,c,a,a)})),zt(d,{shape:sw(u,f,c,i,A)},r));else if(l==="polyline"&&u==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],y=0;ye&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function $P(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function rC(r,t){var e=$P(r);return Qt(e,t)>=0}function pp(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var _9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Yt(a,this,this.ecModel),A=eC.createTree(n,this,o);function o(f){f.wrapMethod("getItemModel",function(c,h){var v=A.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=i),c})}var s=0;A.eachNode("preorder",function(f){f.depth>s&&(s=f.depth)});var l=e.expandAndCollapse,u=l&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return A.root.eachNode("preorder",function(f){var c=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=c&&c.collapsed!=null?!c.collapsed:f.depth<=u}),A.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,A=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),l=o.name;o&&o!==A;)l=o.parentNode.name+"."+l,o=o.parentNode;return Oe("nameValue",{name:l,value:s,noValue:isNaN(s)||s==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pp(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}(se);function C9(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var A=i.children;if(A.length)for(var o=0;o=0;i--)e.push(a[i])}}function S9(r,t){r.eachSeriesByType("tree",function(e){x9(e,t)})}function x9(r,t){var e=a9(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,A=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,A=JT(function(m,w){return(m.parentNode===w.parentNode?1:2)/m.depth})):(a=e.width,i=e.height,A=JT());var o=r.getData().tree.root,s=o.children[0];if(s){e9(o),C9(s,r9,A),o.hierNode.modifier=-s.hierNode.prelim,Pl(s,n9);var l=s,u=s,f=s;Pl(s,function(m){var w=m.getLayout().x;wu.getLayout().x&&(u=m),m.depth>f.depth&&(f=m)});var c=l===u?1:A(l,u)/2,h=c-l.getLayout().x,v=0,d=0,p=0,g=0;if(n==="radial")v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=(m.depth-1)*d;var w=nu(p,g);m.setLayout({x:w.x,y:w.y,rawX:p,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=i/(u.getLayout().x+c+h),v=a/(f.depth-1||1),Pl(s,function(m){g=(m.getLayout().x+h)*d,p=y==="LR"?(m.depth-1)*v:a-(m.depth-1)*v,m.setLayout({x:p,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=y==="TB"?(m.depth-1)*d:i-(m.depth-1)*d,m.setLayout({x:p,y:g},!0)}))}}}function b9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),A=i.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(a.dataIndex,"style");V(o,A)})})}function T9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,A=i.getNodeByDataIndex(a);A.isExpand=!A.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,A=j_(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}function I9(r){r.registerChartView(c9),r.registerSeriesModel(_9),r.registerLayout(S9),r.registerVisual(b9),T9(r)}var rI=["treemapZoomToNode","treemapRender","treemapMove"];function F9(r){for(var t=0;t1;)i=i.parentNode;var A=P0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",A)})}var E9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};qP(a);var i=e.levels||[],A=this.designatedVisualItemStyle={},o=new Yt({itemStyle:A},this,n);i=e.levels=D9(i,n);var s=Y(i||[],function(f){return new Yt(f,o,n)},this),l=eC.createTree(a,this,u);function u(f){f.wrapMethod("getItemModel",function(c,h){var v=l.getNodeByDataIndex(h),d=v?s[v.depth]:null;return c.parentModel=d||o,c})}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.getRawValue(e),o=i.getName(e);return Oe("nameValue",{name:o,value:A})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pp(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JP(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,scaleLimit:null,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}(se);function qP(r){var t=0;T(r.children,function(n){qP(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}function D9(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;T(r,function(o){var s=new Yt(o),l=s.get("color"),u=s.get("decal");(s.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(s.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var A=r[0]||(r[0]={});return a||(A.color=e.slice()),!i&&n&&(A.decal=n.slice()),r}}var Q9=8,nI=8,wy=5,L9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),A=this.group;if(A.removeAll(),!(!i.get("show")||!n)){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,l),this._renderContent(t,f,o,s,l,u,a),np(A,f.pos,f.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=Ee(a.getModel().get("name"),""),A=n.getTextRect(i),o=Math.max(A.width+Q9*2,e.emptyItemWidth);e.totalWidth+=o+nI,e.renderList.push({node:a,text:i,width:o})}},r.prototype._renderContent=function(t,e,n,a,i,A,o){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),f=G5(e.pos,e.box),c=e.totalWidth,h=e.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;c>f.width&&(c-=y-l,y=l,m=null);var w=new Sr({shape:{points:M9(s,0,y,u,d===h.length-1,d===0)},style:gt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:oe(i,{text:m})}),textConfig:{position:"inside"},z2:Js*1e4,onclick:xt(o,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=oe(A,{text:m}),w.ensureState("emphasis").style=v,ye(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),U9(w,t,g),s+=y+nI}},r.prototype.remove=function(){this.group.removeAll()},r}();function M9(r,t,e,n,a,i){var A=[[a?r:r-wy,t],[r+e,t],[r+e,t+n],[a?r:r-wy,t+n]];return!i&&A.splice(2,0,[r+e+wy,t+n/2]),!a&&A.push([r,t+n/2]),A}function U9(r,t,e){Ct(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&pp(e,t)}}var P9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aiI||Math.abs(e.dy)>iI)){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+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale;if(this._state!=="animating"){var A=this.seriesModel.getData().tree.root;if(!A)return;var o=A.getLayout();if(!o)return;var s=new Dt(o.x,o.y,o.width,o.height),l=null,u=this._controllerHost;l=u.zoomLimit;var f=u.zoom=u.zoom||1;if(f*=i,l){var c=l.min||0,h=l.max||1/0;f=Math.max(Math.min(h,f),c)}var v=f/u.zoom;u.zoom=f;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=Wr();va(p,p,[-n,-a]),zB(p,p,[v,v]),va(p,p,[n,a]),s.applyTransform(p),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(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var A=n.findTarget(a.offsetX,a.offsetY);if(A){var o=A.node;if(o.getLayout().isLeafRoot)n._rootToNode(A);else if(i==="zoomToNode")n._zoomToNode(A);else if(i==="link"){var s=o.hostTree.data.getItemModel(o.dataIndex),l=s.get("link",!0),u=s.get("target",!0)||"blank";l&&Lv(l,u)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new L9(this.group))).render(e,n,a.node,function(A){i._state!=="animating"&&(rC(e.getViewRoot(),A)?i._rootToNode({node:A}):i._zoomToNode({node:A}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Rl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(A){var o=this._storage.background[A.getRawIndex()];if(o){var s=o.transformCoordToLocal(e,n),l=o.shape;if(l.x<=s[0]&&s[0]<=l.x+l.width&&l.y<=s[1]&&s[1]<=l.y+l.height)a={node:A,offsetX:s[0],offsetY:s[1]};else return!1}},this),a},t.type="treemap",t}(jt);function Rl(){return{nodeGroup:[],background:[],content:[]}}function V9(r,t,e,n,a,i,A,o,s,l){if(!A)return;var u=A.getLayout(),f=r.getData(),c=A.getModel();if(f.setItemGraphicEl(A.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=A.getRawIndex(),y=o&&o.getRawIndex(),m=A.viewChildren,w=u.upperHeight,_=m&&m.length,B=c.getModel("itemStyle"),C=c.getModel(["emphasis","itemStyle"]),S=c.getModel(["blur","itemStyle"]),x=c.getModel(["select","itemStyle"]),b=B.get("borderRadius")||0,I=lt("nodeGroup",lw);if(!I)return;if(s.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),Zv(I).nodeWidth=h,Zv(I).nodeHeight=v,u.isAboveViewRoot)return I;var F=lt("background",aI,l,O9);F&&O(I,F,_&&u.upperLabelHeight);var E=c.getModel("emphasis"),D=E.get("focus"),Q=E.get("blurScope"),M=E.get("disabled"),R=D==="ancestor"?A.getAncestorsIndices():D==="descendant"?A.getDescendantIndices():D;if(_)rf(I)&&zA(I,!1),F&&(zA(F,!M),f.setItemGraphicEl(A.dataIndex,F),I0(F,R,Q));else{var P=lt("content",aI,l,k9);P&&G(I,P),F.disableMorphing=!0,F&&rf(F)&&zA(F,!1),zA(I,!M),f.setItemGraphicEl(A.dataIndex,I),I0(I,R,Q)}return I;function O(N,z,$){var q=Ct(z);if(q.dataIndex=A.dataIndex,q.seriesIndex=r.seriesIndex,z.setShape({x:0,y:0,width:h,height:v,r:b}),p)X(z);else{z.invisible=!1;var j=A.getVisual("style"),ct=j.stroke,L=sI(B);L.fill=ct;var U=MA(C);U.fill=C.get("borderColor");var k=MA(S);k.fill=S.get("borderColor");var Z=MA(x);if(Z.fill=x.get("borderColor"),$){var W=h-2*d;J(z,ct,j.opacity,{x:d,y:0,width:W,height:w})}else z.removeTextContent();z.setStyle(L),z.ensureState("emphasis").style=U,z.ensureState("blur").style=k,z.ensureState("select").style=Z,po(z)}N.add(z)}function G(N,z){var $=Ct(z);$.dataIndex=A.dataIndex,$.seriesIndex=r.seriesIndex;var q=Math.max(h-2*d,0),j=Math.max(v-2*d,0);if(z.culling=!0,z.setShape({x:d,y:d,width:q,height:j,r:b}),p)X(z);else{z.invisible=!1;var ct=A.getVisual("style"),L=ct.fill,U=sI(B);U.fill=L,U.decal=ct.decal;var k=MA(C),Z=MA(S),W=MA(x);J(z,L,ct.opacity,null),z.setStyle(U),z.ensureState("emphasis").style=k,z.ensureState("blur").style=Z,z.ensureState("select").style=W,po(z)}N.add(z)}function X(N){!N.invisible&&i.push(N)}function J(N,z,$,q){var j=c.getModel(q?oI:AI),ct=Ee(c.get("name"),null),L=j.getShallow("show");Je(N,He(c,q?oI:AI),{defaultText:L?ct:null,inheritColor:z,defaultOpacity:$,labelFetcher:r,labelDataIndex:A.dataIndex});var U=N.getTextContent();if(U){var k=U.style,Z=VB(k.padding||0);q&&(N.setTextConfig({layoutRect:q}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var tt=Math.max((q?q.width:N.shape.width)-Z[1]-Z[3],0),ot=Math.max((q?q.height:N.shape.height)-Z[0]-Z[2],0);(k.width!==tt||k.height!==ot)&&U.setStyle({width:tt,height:ot})},k.truncateMinChar=2,k.lineOverflow="truncate",At(k,q,u);var W=U.getState("emphasis");At(W?W.style:null,q,u)}}function At(N,z,$){var q=N?N.text:null;if(!z&&$.isLeafRoot&&q!=null){var j=r.get("drillDownIcon",!0);N.text=j?j+" "+q:q}}function lt(N,z,$,q){var j=y!=null&&e[N][y],ct=a[N];return j?(e[N][y]=null,wt(ct,j)):p||(j=new z,j instanceof gn&&(j.z2=G9($,q)),Bt(ct,j)),t[N][g]=j}function wt(N,z){var $=N[g]={};z instanceof lw?($.oldX=z.x,$.oldY=z.y):$.oldShape=V({},z.shape)}function Bt(N,z){var $=N[g]={},q=A.parentNode,j=z instanceof _t;if(q&&(!n||n.direction==="drillDown")){var ct=0,L=0,U=a.background[q.getRawIndex()];!n&&U&&U.oldShape&&(ct=U.oldShape.width,L=U.oldShape.height),j?($.oldX=0,$.oldY=L):$.oldShape={x:ct,y:L,width:0,height:0}}$.fadein=!j}}function G9(r,t){return r*H9+t}var gf=T,K9=yt,$v=-1,Re=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=X9[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(By(a),z9(a)):e==="category"?a.categories?W9(a):By(a,!0):(Br(e!=="linear"||a.dataExtent),By(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ht(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?T(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=K(t)?[]:yt(t)?{}:(a=!0,null);return r.eachVisual(t,function(A,o){var s=e.call(n,A,o);a?i=s:i[o]=s}),i},r.retrieveVisuals=function(t){var e={},n;return t&&gf(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(K9(t)){var e=[];gf(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,A=0,o=e.length;A=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function By(r,t){var e=r.visual,n=[];yt(e)?gf(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),jP(r,n)}function Yc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:uw([0,1])}}function lI(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function Hl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function au(r){var t=this.option.visual;return t[this.option.loop&&r!==$v?r%t.length:r]}function UA(){return this.option.visual[0]}function uw(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:au,piecewise:function(t,e){var n=fw.call(this,e);return n==null&&(n=$t(t,r,this.option.visual,!0)),n},fixed:UA}}function fw(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Re.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function jP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var n=Xr(e);return n||[0,0,0,1]})),t}var X9={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Re.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??$v},fixed:Be};function Zc(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var g=j9(a,s,d,p,v,n);eR(d,g,e,n)}})}}}function $9(r,t,e){var n=V({},t),a=e.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var A=r.get(i);a[i]=null,A!=null&&(n[i]=A)}),n}function uI(r){var t=_y(r,"color");if(t){var e=_y(r,"colorAlpha"),n=_y(r,"colorSaturation");return n&&(t=Cu(t,null,null,n)),e&&(t=Bv(t,e)),t}}function J9(r,t){return t!=null?Cu(t,null,null,r):null}function _y(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function q9(r,t,e,n,a,i){if(!(!i||!i.length)){var A=Cy(t,"color")||a.color!=null&&a.color!=="none"&&(Cy(t,"colorAlpha")||Cy(t,"colorSaturation"));if(A){var o=t.get("visualMin"),s=t.get("visualMax"),l=e.dataExtent.slice();o!=null&&ol[1]&&(l[1]=s);var u=t.get("colorMappingBy"),f={type:A.name,dataExtent:l,visual:A.range};f.type==="color"&&(u==="index"||u==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var c=new Re(f);return tR(c).drColorMappingBy=u,c}}}function Cy(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function j9(r,t,e,n,a,i){var A=V({},t);if(a){var o=a.type,s=o==="color"&&tR(a).drColorMappingBy,l=s==="index"?n:s==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));A[o]=a.mapValueToVisual(l)}return A}var yf=Math.max,Jv=Math.min,fI=Ve,nC=T,rR=["itemStyle","borderWidth"],t7=["itemStyle","gapWidth"],e7=["upperLabel","show"],r7=["upperLabel","height"];const n7={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),A=r.option,o=Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=A.size||[],l=et(fI(o.width,s[0]),a),u=et(fI(o.height,s[1]),i),f=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],h=pf(n,c,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),p=$P(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?l7(r,h,d,l,u):v?[v.width,v.height]:[l,u],y=A.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:A.squareRatio,sort:y,leafDepth:A.leafDepth};d.hostTree.clearLayouts();var w={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(w),nR(d,m,!1,0),w=d.getLayout(),nC(p,function(B,C){var S=(p[C+1]||d).getValue();B.setLayout(V({dataExtent:[S,S],borderWidth:0,upperHeight:0},w))})}var _=r.getData().tree.root;_.setLayout(u7(o,v,h),!0),r.setLayoutInfo(o),aR(_,new Dt(-o.x,-o.y,a,i),p,d,0)}};function nR(r,t,e,n){var a,i;if(!r.isRemoved()){var A=r.getLayout();a=A.width,i=A.height;var o=r.getModel(),s=o.get(rR),l=o.get(t7)/2,u=iR(o),f=Math.max(s,u),c=s-l,h=f-l;r.setLayout({borderWidth:s,upperHeight:f,upperLabelHeight:u},!0),a=yf(a-2*c,0),i=yf(i-c-h,0);var v=a*i,d=a7(r,o,v,t,e,n);if(d.length){var p={x:c,y:h,width:a,height:i},g=Jv(a,i),y=1/0,m=[];m.area=0;for(var w=0,_=d.length;w<_;){var B=d[w];m.push(B),m.area+=B.getLayout().area;var C=s7(m,g,t.squareRatio);C<=y?(w++,y=C):(m.area-=m.pop().getLayout().area,cI(m,g,p,l,!1),g=Jv(p.width,p.height),m.length=m.area=0,y=1/0)}if(m.length&&cI(m,g,p,l,!0),!e){var S=o.get("childrenVisibleMin");S!=null&&v=0;s--){var l=a[n==="asc"?A-s-1:s].getValue();l/e*to[1]&&(o[1]=l)})),{sum:n,dataExtent:o}}function s7(r,t,e){for(var n=0,a=1/0,i=0,A=void 0,o=r.length;in&&(n=A));var s=r.area*r.area,l=t*t*e;return s?yf(l*n/s,s/(l*a)):1/0}function cI(r,t,e,n,a){var i=t===e.width?0:1,A=1-i,o=["x","y"],s=["width","height"],l=e[o[i]],u=t?r.area/t:0;(a||u>e[s[A]])&&(u=e[s[A]]);for(var f=0,c=r.length;fSS&&(l=SS),i=o}ln&&(n=t);var i=n%2?n+2:n+3;a=[];for(var A=0;A0&&(_[0]=-_[0],_[1]=-_[1]);var C=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var S=-Math.atan2(w[1],w[0]);f[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+u[0],i.y=-c[1]*y+u[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*C+u[0],i.y=u[1]+x,v=w[0]<0?"right":"left",i.originX=-g*C,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=B[0],i.y=B[1]+x,v="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*C+f[0],i.y=f[1]+x,v=w[0]>=0?"right":"left",i.originX=g*C,i.originY=-x;break}i.scaleX=i.scaleY=A,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},t}(_t),sC=function(){function r(t){this.group=new _t,this._LineCtor=t||oC}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var A=yI(t);t.diff(i).add(function(o){e._doAdd(t,o,A)}).update(function(o,s){e._doUpdate(i,t,s,o,A)}).remove(function(o){a.remove(i.getItemGraphicEl(o))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yI(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(o){!o.isGroup&&!I7(o)&&(o.incremental=!0,o.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function yI(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:He(t)}}function mI(r){return isNaN(r[0])||isNaN(r[1])}function Iy(r){return r&&!mI(r[0])&&!mI(r[1])}var Fy=[],Ey=[],Dy=[],zo=Ne,Qy=jA,wI=Math.abs;function BI(r,t,e){for(var n=r[0],a=r[1],i=r[2],A=1/0,o,s=e*e,l=.1,u=.1;u<=.9;u+=.1){Fy[0]=zo(n[0],a[0],i[0],u),Fy[1]=zo(n[1],a[1],i[1],u);var f=wI(Qy(Fy,t)-s);f=0?o=o+l:o=o-l:v>=0?o=o-l:o=o+l}return o}function Ly(r,t){var e=[],n=$u,a=[[],[],[]],i=[[],[]],A=[];t/=2,r.eachEdge(function(o,s){var l=o.getLayout(),u=o.getVisual("fromSymbol"),f=o.getVisual("toSymbol");l.__original||(l.__original=[Ra(l[0]),Ra(l[1])],l[2]&&l.__original.push(Ra(l[2])));var c=l.__original;if(l[2]!=null){if(vr(a[0],c[0]),vr(a[1],c[2]),vr(a[2],c[1]),u&&u!=="none"){var h=Au(o.node1),v=BI(a,c[0],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],v,e),a[0][1]=e[3],a[1][1]=e[4]}if(f&&f!=="none"){var h=Au(o.node2),v=BI(a,c[1],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],v,e),a[1][1]=e[1],a[2][1]=e[2]}vr(l[0],a[0]),vr(l[1],a[2]),vr(l[2],a[1])}else{if(vr(i[0],c[0]),vr(i[1],c[1]),GA(A,i[1],i[0]),Ys(A,A),u&&u!=="none"){var h=Au(o.node1);jm(i[0],i[0],A,h*t)}if(f&&f!=="none"){var h=Au(o.node2);jm(i[1],i[1],A,-h*t)}vr(l[0],i[0]),vr(l[1],i[1])}})}function _I(r){return r.type==="view"}var F7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var a=new Gf,i=new sC,A=this.group;this._controller=new Yf(n.getZr()),this._controllerHost={target:A},A.add(a.group),A.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,l=this.group;if(_I(A)){var u={x:A.x,y:A.y,scaleX:A.scaleX,scaleY:A.scaleY};this._firstRender?l.attr(u):zt(l,u,e)}Ly(e.getGraph(),iu(e));var f=e.getData();o.updateData(f);var c=e.getEdgeData();s.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=e.get("layout");f.graph.eachNode(function(m){var w=m.dataIndex,_=m.getGraphicEl(),B=m.getModel();if(_){_.off("drag").off("dragend");var C=B.get("draggable");C&&_.on("drag",function(x){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[_.x,_.y]);break;case"circular":f.setItemLayout(w,[_.x,_.y]),m.setLayout({fixed:!0},!0),AC(e,"symbolSize",m,[x.offsetX,x.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(w,[_.x,_.y]),iC(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),_.setDraggable(C,!!B.get("cursor"));var S=B.get(["emphasis","focus"]);S==="adjacency"&&(Ct(_).focus=m.getAdjacentDataIndices())}}),f.graph.eachEdge(function(m){var w=m.getGraphicEl(),_=m.getModel().get(["emphasis","focus"]);w&&_==="adjacency"&&(Ct(w).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(m){lR(m,p,g,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(A){a.updateLayout(a._model),(a._layouting=!A)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,A=this._controller,o=this._controllerHost,s=this.group;if(A.setPointerChecker(function(l,u,f){var c=s.getBoundingRect();return c.applyTransform(s.transform),c.contain(u,f)&&!vp(l,a,e)}),!_I(e.coordinateSystem)){A.disable();return}A.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(l){$_(o,l.dx,l.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){J_(o,l.scale,l.originX,l.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),i._updateNodeAndLinkScale(),Ly(e.getGraph(),iu(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=iu(e);n.eachItemGraphicEl(function(i,A){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){Ly(e.getGraph(),iu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(jt);function Wo(r){return"_EC_"+r}var E7=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[Wo(t)]){var a=new PA(t,e);return a.hostGraph=this,this.nodes.push(a),n[Wo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Wo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Kt(t)&&(t=this.nodes[t]),Kt(e)&&(e=this.nodes[e]),t instanceof PA||(t=a[Wo(t)]),e instanceof PA||(e=a[Wo(e)]),!(!t||!e)){var A=t.id+"-"+e.id,o=new fR(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),i[A]=o,o}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof PA&&(t=t.id),e instanceof PA&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof PA||(e=this._nodesMap[Wo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",A=0;A=0&&s.node2.dataIndex>=0});for(var i=0,A=a.length;i=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ie(PA,cR("hostGraph","data"));Ie(fR,cR("hostGraph","edgeData"));function hR(r,t,e,n,a){for(var i=new E7(n),A=0;A "+c)),l++)}var h=e.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ri(r,e);else{var d=Hf.get(h),p=d?d.dimensions||[]:[];Qt(p,"value")<0&&p.concat(["value"]);var g=kf(r,{coordDimensions:p,encodeDefine:e.getEncode()}).dimensions;v=new mr(g,e),v.initData(r)}var y=new mr(["value"],e);return y.initData(s,o),a&&a(v,y),YP({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var D7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Xf(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),co(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],A=this;if(i&&a){g7(this);var o=hR(i,a,this,!0,s);return T(o.edges,function(l){y7(l.node1,l.node2,this,l.dataIndex)},this),o.data}function s(l,u){l.wrapMethod("getItemModel",function(v){var d=A._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var f=Yt.prototype.getModel;function c(v,d){var p=f.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}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(e,n,a){if(a==="edge"){var i=this.getData(),A=this.getDataParams(e,a),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return s!=null&&u.push(s),l!=null&&u.push(l),Oe("nameValue",{name:u.join(" > "),value:A.value,noValue:A.value==null})}var f=HU({series:this,dataIndex:e,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new mr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.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}(se),Q7={type:"graphRoam",event:"graphRoam",update:"none"};function L7(r){r.registerChartView(F7),r.registerSeriesModel(D7),r.registerProcessor(c7),r.registerVisual(h7),r.registerVisual(v7),r.registerLayout(m7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,B7),r.registerLayout(C7),r.registerCoordinateSystem("graphView",{dimensions:Zf.dimensions,create:x7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Be),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Be),r.registerAction(Q7,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,A=j_(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}var M7=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),U7=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new M7},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,A=n.r,o=n.width,s=n.angle,l=n.x-a(s)*o*(o>=A/3?1:2),u=n.y-i(s)*o*(o>=A/3?1:2);s=n.angle-Math.PI/2,e.moveTo(l,u),e.lineTo(n.x+a(s)*o,n.y+i(s)*o),e.lineTo(n.x+a(n.angle)*A,n.y+i(n.angle)*A),e.lineTo(n.x-a(s)*o,n.y-i(s)*o),e.lineTo(l,u)},t}(Mt);function P7(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),A=et(e[0],t.getWidth()),o=et(e[1],t.getHeight()),s=et(r.get("radius"),i/2);return{cx:A,cy:o,r:s}}function Jc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var R7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),A=P7(e,a);this._renderMain(e,n,a,i,A),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,A){var o=this.group,s=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),c=f.get("roundCap"),h=c?Wv:Cr,v=f.get("show"),d=f.getModel("lineStyle"),p=d.get("width"),g=[l,u];t_(g,!s),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],_=0;v&&_=x&&(b===0?0:i[b-1][0])Math.PI/2&&(lt+=Math.PI)):At==="tangential"?lt=-S-Math.PI/2:Kt(At)&&(lt=At*Math.PI/180),lt===0?f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:Q<-.8?"top":Q>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:X,originY:J,rotation:lt}))}if(y.get("show")&&M!==w){var R=y.get("distance");R=R?R+u:u;for(var wt=0;wt<=_;wt++){D=Math.cos(S),Q=Math.sin(S);var Bt=new Ue({shape:{x1:D*(v-R)+c,y1:Q*(v-R)+h,x2:D*(v-C-R)+c,y2:Q*(v-C-R)+h},silent:!0,style:F});F.stroke==="auto"&&Bt.setStyle({stroke:i((M+wt/_)/w)}),f.add(Bt),S+=b}S-=b}else S+=x}},t.prototype._renderPointer=function(e,n,a,i,A,o,s,l,u){var f=this.group,c=this._data,h=this._progressEls,v=[],d=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),y=e.getData(),m=y.mapDimension("value"),w=+e.get("min"),_=+e.get("max"),B=[w,_],C=[o,s];function S(b,I){var F=y.getItemModel(b),E=F.getModel("pointer"),D=et(E.get("width"),A.r),Q=et(E.get("length"),A.r),M=e.get(["pointer","icon"]),R=E.get("offsetCenter"),P=et(R[0],A.r),O=et(R[1],A.r),G=E.get("keepAspect"),X;return M?X=Te(M,P-D/2,O-Q,D,Q,null,G):X=new U7({shape:{angle:-Math.PI/2,width:D,r:Q,x:P,y:O}}),X.rotation=-(I+Math.PI/2),X.x=A.cx,X.y=A.cy,X}function x(b,I){var F=p.get("roundCap"),E=F?Wv:Cr,D=p.get("overlap"),Q=D?p.get("width"):u/y.count(),M=D?A.r-Q:A.r-(b+1)*Q,R=D?A.r:A.r-b*Q,P=new E({shape:{startAngle:o,endAngle:I,cx:A.cx,cy:A.cy,clockwise:l,r0:M,r:R}});return D&&(P.z2=_-y.get(m,b)%_),P}(g||d)&&(y.diff(c).add(function(b){var I=y.get(m,b);if(d){var F=S(b,o);ue(F,{rotation:-((isNaN(+I)?C[0]:$t(I,B,C,!0))+Math.PI/2)},e),f.add(F),y.setItemGraphicEl(b,F)}if(g){var E=x(b,o),D=p.get("clip");ue(E,{shape:{endAngle:$t(I,B,C,D)}},e),f.add(E),x0(e.seriesIndex,y.dataType,b,E),v[b]=E}}).update(function(b,I){var F=y.get(m,b);if(d){var E=c.getItemGraphicEl(I),D=E?E.rotation:o,Q=S(b,D);Q.rotation=D,zt(Q,{rotation:-((isNaN(+F)?C[0]:$t(F,B,C,!0))+Math.PI/2)},e),f.add(Q),y.setItemGraphicEl(b,Q)}if(g){var M=h[I],R=M?M.shape.endAngle:o,P=x(b,R),O=p.get("clip");zt(P,{shape:{endAngle:$t(F,B,C,O)}},e),f.add(P),x0(e.seriesIndex,y.dataType,b,P),v[b]=P}}).execute(),y.each(function(b){var I=y.getItemModel(b),F=I.getModel("emphasis"),E=F.get("focus"),D=F.get("blurScope"),Q=F.get("disabled");if(d){var M=y.getItemGraphicEl(b),R=y.getItemVisual(b,"style"),P=R.fill;if(M instanceof Ge){var O=M.style;M.useStyle(V({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},R))}else M.useStyle(R),M.type!=="pointer"&&M.setColor(P);M.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",i($t(y.get(m,b),B,[0,1],!0))),M.z2EmphasisLift=0,$e(M,I),ye(M,E,D,Q)}if(g){var G=v[b];G.useStyle(y.getItemVisual(b,"style")),G.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,$e(G,I),ye(G,E,D,Q)}}),this._progressEls=v)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var A=a.get("size"),o=a.get("icon"),s=a.get("offsetCenter"),l=a.get("keepAspect"),u=Te(o,n.cx-A/2+et(s[0],n.r),n.cy-A/2+et(s[1],n.r),A,A,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,A){var o=this,s=e.getData(),l=s.mapDimension("value"),u=+e.get("min"),f=+e.get("max"),c=new _t,h=[],v=[],d=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add(function(g){h[g]=new Gt({silent:!0}),v[g]=new Gt({silent:!0})}).update(function(g,y){h[g]=o._titleEls[y],v[g]=o._detailEls[y]}).execute(),s.each(function(g){var y=s.getItemModel(g),m=s.get(l,g),w=new _t,_=i($t(m,[u,f],[0,1],!0)),B=y.getModel("title");if(B.get("show")){var C=B.get("offsetCenter"),S=A.cx+et(C[0],A.r),x=A.cy+et(C[1],A.r),b=h[g];b.attr({z2:p?0:2,style:oe(B,{x:S,y:x,text:s.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:_})}),w.add(b)}var I=y.getModel("detail");if(I.get("show")){var F=I.get("offsetCenter"),E=A.cx+et(F[0],A.r),D=A.cy+et(F[1],A.r),Q=et(I.get("width"),A.r),M=et(I.get("height"),A.r),R=e.get(["progress","show"])?s.getItemVisual(g,"style").fill:_,b=v[g],P=I.get("formatter");b.attr({z2:p?0:2,style:oe(I,{x:E,y:D,text:Jc(m,P),width:isNaN(Q)?null:Q,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:R})}),VM(b,{normal:I},m,function(G){return Jc(G,P)}),d&&GM(b,g,s,e,{getFormattedLabel:function(G,X,J,At,lt,wt){return Jc(wt?wt.interpolatedValue:m,P)}}),w.add(b)}c.add(w)}),this.group.add(c),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(jt),H7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return ll(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}(se);function O7(r){r.registerChartView(R7),r.registerSeriesModel(H7)}var k7=["itemStyle","opacity"],N7=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=a,A=new xr,o=new Gt;return i.setTextContent(o),a.setTextGuideLine(A),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,A=e.hostModel,o=e.getItemModel(n),s=e.getItemLayout(n),l=o.getModel("emphasis"),u=o.get(k7);u=u??1,a||Rn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:s.points}),i.style.opacity=0,ue(i,{style:{opacity:u}},A,n)):zt(i,{style:{opacity:u},shape:{points:s.points}},A,n),$e(i,o),this._updateLabel(e,n),ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),A=a.getTextContent(),o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=l.label,f=e.getItemVisual(n,"style"),c=f.fill;Je(A,He(s),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:e.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:c,outsideFill:c});var h=u.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new It(h[0][0],h[0][1]):null},zt(A,{style:{x:u.x,y:u.y}},o,n),A.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),O_(a,k_(s),{stroke:c})},t}(Sr),V7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._data,o=this.group;i.diff(A).add(function(s){var l=new N7(i,s);i.setItemGraphicEl(s,l),o.add(l)}).update(function(s,l){var u=A.getItemGraphicEl(l);u.updateData(i,s),o.add(u),i.setItemGraphicEl(s,u)}).remove(function(s){var l=A.getItemGraphicEl(s);nf(l,e,s)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(jt),G7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return ll(this,{coordDimensions:["value"],encodeDefaulter:xt(g_,this)})},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),A=n.getSum(i);return a.percent=A?+(n.get(i,e)/A*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}(se);function K7(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function z7(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(s){return s}),a=[],i=t==="ascending",A=0,o=r.count();Ao$)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Uy(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Uy(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var u$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Et(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=Jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);T(a,function(i){e.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}(Rt),f$=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o.axisIndex=A,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(On);function Fo(r,t,e,n,a,i){r=r||0;var A=e[1]-e[0];if(a!=null&&(a=Xo(a,[0,A])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var o=Math.abs(t[1]-t[0]);o=Xo(o,[0,A]),a=i=Xo(o,[a,i]),n=0}t[0]=Xo(t[0],e),t[1]=Xo(t[1],e);var s=Py(t,n);t[n]+=r;var l=a||0,u=e.slice();s.sign<0?u[0]+=l:u[1]-=l,t[n]=Xo(t[n],u);var f;return f=Py(t,n),a!=null&&(f.sign!==s.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function Py(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Xo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Ry=T,dR=Math.min,pR=Math.max,xI=Math.floor,c$=Math.ceil,bI=me,h$=Math.PI,v$=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;Ry(a,function(A,o){var s=i[o],l=e.getComponent("parallelAxis",s),u=this._axesMap.set(A,new f$(A,cp(l),[0,0],l.get("type"),s)),f=u.type==="category";u.onBand=f&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,A=t[1-i],o=t[i];return A>=n&&A<=n+e.axisLength&&o>=a&&o<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var a=n.getData();Ry(this.dimensions,function(i){var A=this._axesMap.get(i);A.scale.unionExtentFromData(a,a.mapDimension(i)),Os(A.scale,A.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Qe(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),A=i==="horizontal"?0:1,o=e[a[A]],s=[0,o],l=this.dimensions.length,u=qc(t.get("axisExpandWidth"),s),f=qc(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&l>3&&l>f&&f>1&&u>0&&o>0,h=t.get("axisExpandWindow"),v;if(h)v=qc(h[1]-h[0],s),h[1]=h[0]+v;else{v=qc(u*(f-1),s);var d=t.get("axisExpandCenter")||xI(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(o-v)/(l-f);p<3&&(p=0);var g=[xI(bI(h[0]/u,1))+1,c$(bI(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:A,layoutBase:e[n[A]],layoutLength:o,axisBase:e[n[1-A]],axisLength:e[a[1-A]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(A){var o=[0,a.axisLength],s=A.inverse?1:0;A.setExtent(o[s],o[1-s])}),Ry(n,function(A,o){var s=(a.axisExpandable?p$:d$)(o,a),l={horizontal:{x:s.position,y:a.axisLength},vertical:{x:0,y:s.position}},u={horizontal:h$/2,vertical:0},f=[l[i].x+t.x,l[i].y+t.y],c=u[i],h=Wr();Co(h,h,c),va(h,h,f),this._axesLayout[A]={position:f,rotation:c,transform:h,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,A=this.dimensions,o=[],s=[];T(A,function(p){o.push(t.mapDimension(p)),s.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;ui*(1-f[0])?(l="jump",s=o-i*(1-f[2])):(s=o-i*f[1])>=0&&(s=o-i*(1-f[1]))<=0&&(s=0),s*=e.axisExpandWidth/u,s?Fo(s,a,A,"all"):l="none";else{var h=a[1]-a[0],v=A[1]*o/h;a=[pR(0,v-h/2)],a[1]=dR(A[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function qc(r,t){return dR(pR(r,t[0]),t[1])}function d$(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function p$(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,A=t.winInnerIndices,o,s=i,l=!1,u;return r=0;a--)fn(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,A=n.length;iB$}function _R(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function CR(r,t,e,n){var a=new _t;return a.add(new Nt({name:"main",style:hC(e),silent:!0,draggable:!0,cursor:"move",drift:xt(FI,r,t,a,["n","s","w","e"]),ondragend:xt(mo,t,{isEnd:!0})})),T(n,function(i){a.add(new Nt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(FI,r,t,a,i),ondragend:xt(mo,t,{isEnd:!0})}))}),a}function SR(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Vs(a,_$),A=e[0][0],o=e[1][0],s=A-a/2,l=o-a/2,u=e[0][1],f=e[1][1],c=u-i+a/2,h=f-i+a/2,v=u-A,d=f-o,p=v+a,g=d+a;Ta(r,t,"main",A,o,v,d),n.transformable&&(Ta(r,t,"w",s,l,i,g),Ta(r,t,"e",c,l,i,g),Ta(r,t,"n",s,l,p,i),Ta(r,t,"s",s,h,p,i),Ta(r,t,"nw",s,l,i,i),Ta(r,t,"ne",c,l,i,i),Ta(r,t,"sw",s,h,i,i),Ta(r,t,"se",c,h,i,i))}function gw(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(hC(e)),a.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var A=t.childOfName(i.join("")),o=i.length===1?yw(r,i[0]):I$(r,i);A&&A.attr({silent:!n,invisible:!n,cursor:n?S$[o]+"-resize":null})})}function Ta(r,t,e,n,a,i,A){var o=t.childOfName(e);o&&o.setShape(E$(vC(r,t,[[n,a],[n+i,a+A]])))}function hC(r){return gt({strokeNoScale:!0},r.brushStyle)}function xR(r,t,e,n){var a=[wf(r,e),wf(t,n)],i=[Vs(r,e),Vs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function T$(r){return ao(r.group)}function yw(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=$d(e[t],T$(r));return n[a]}function I$(r,t){var e=[yw(r,t[0]),yw(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function FI(r,t,e,n,a,i){var A=e.__brushOption,o=r.toRectRange(A.range),s=bR(t,a,i);T(n,function(l){var u=C$[l];o[u[0]][u[1]]+=s[u[0]]}),A.range=r.fromRectRange(xR(o[0][0],o[1][0],o[0][1],o[1][1])),uC(t,e),mo(t,{isEnd:!1})}function F$(r,t,e,n){var a=t.__brushOption.range,i=bR(r,e,n);T(a,function(A){A[0]+=i[0],A[1]+=i[1]}),uC(r,t),mo(r,{isEnd:!1})}function bR(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function vC(r,t,e){var n=BR(r,t);return n&&n!==yo?n.clipPath(e,r._transform):mt(e)}function E$(r){var t=wf(r[0][0],r[1][0]),e=wf(r[0][1],r[1][1]),n=Vs(r[0][0],r[1][0]),a=Vs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function D$(r,t,e){if(!(!r._brushType||L$(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=cC(r,t,e);if(!r._dragging)for(var A=0;An.getWidth()||e<0||e>n.getHeight()}var yp={lineX:QI(0),lineY:QI(1),rect:{createCover:function(r,t){function e(n){return n}return CR({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=_R(r);return xR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){SR(r,t,e,n)},updateCommon:gw,contain:ww},polygon:{createCover:function(r,t){var e=new _t;return e.add(new xr({name:"main",style:hC(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Sr({name:"main",draggable:!0,drift:xt(F$,r,t),ondragend:xt(mo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:vC(r,t,e)})},updateCommon:gw,contain:ww}};function QI(r){return{createCover:function(t,e){return CR({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=_R(t),n=wf(e[0][r],e[1][r]),a=Vs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,A=BR(t,e);if(A!==yo&&A.getLinearBrushOtherExtent)i=A.getLinearBrushOtherExtent(r);else{var o=t._zr;i=[0,[o.getWidth(),o.getHeight()][1-r]]}var s=[n,i];r&&s.reverse(),SR(t,e,s,a)},updateCommon:gw,contain:ww}}function IR(r){return r=dC(r),function(t){return OM(t,r)}}function FR(r,t){return r=dC(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function ER(r,t,e){var n=dC(r);return function(a,i){return n.contain(i[0],i[1])&&!vp(a,t,e)}}function dC(r){return Dt.create(r)}var M$=["axisLine","axisTickLabel","axisName"],U$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new lC(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!P$(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var A=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var o=H$(e,n),s=o.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,f=e.axis.dim,c=s.getAxisLayout(f),h=V({strokeContainThreshold:u},c),v=new wr(e,h);T(M$,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,l,e,o,u,a),Pf(A,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,A,o){var s=a.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,Math.abs(l)*.1),f=Dt.create({x:s[0],y:-A/2,width:l,height:A});f.x-=u,f.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:IR(f),isTargetByCursor:ER(f,o,i),getLinearBrushOtherExtent:FR(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(R$(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,A=Y(n,function(o){return[i.coordToData(o.range[0],!0),i.coordToData(o.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:A})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(de);function P$(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function R$(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function H$(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var O$={type:"axisAreaSelect",event:"axisAreaSelected"};function k$(r){r.registerAction(O$,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var N$={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DR(r){r.registerComponentView(s$),r.registerComponentModel(u$),r.registerCoordinateSystem("parallel",y$),r.registerPreprocessor(a$),r.registerComponentModel(dw),r.registerComponentView(U$),Ns(r,"parallel",dw,N$),k$(r)}function V$(r){Lt(DR),r.registerChartView($7),r.registerSeriesModel(j7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,n$)}var G$=function(){function r(){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 r}(),K$=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new G$},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){Wa(this)},t.prototype.downplay=function(){Xa(this)},t}(Mt),z$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,a){var i=this,A=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,A.eachEdge(function(v){var d=new K$,p=Ct(d);p.dataIndex=v.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),_=v.node1.getModel(),B=_.get("localX"),C=_.get("localY"),S=v.node2.getLayout(),x=v.node2.getModel(),b=x.get("localX"),I=x.get("localY"),F=v.getLayout(),E,D,Q,M,R,P,O,G;d.shape.extent=Math.max(1,F.dy),d.shape.orient=h,h==="vertical"?(E=(B!=null?B*l:w.x)+F.sy,D=(C!=null?C*u:w.y)+w.dy,Q=(b!=null?b*l:S.x)+F.ty,M=I!=null?I*u:S.y,R=E,P=D*(1-m)+M*m,O=Q,G=D*m+M*(1-m)):(E=(B!=null?B*l:w.x)+w.dx,D=(C!=null?C*u:w.y)+F.sy,Q=b!=null?b*l:S.x,M=(I!=null?I*u:S.y)+F.ty,R=E*(1-m)+Q*m,P=D,O=E*m+Q*(1-m),G=M),d.setShape({x1:E,y1:D,x2:Q,y2:M,cpx1:R,cpy1:P,cpx2:O,cpy2:G}),d.useStyle(y.getItemStyle()),LI(d.style,h,v);var X=""+g.get("value"),J=He(g,"edgeLabel");Je(d,J,{labelFetcher:{getFormattedLabel:function(wt,Bt,N,z,$,q){return e.getFormattedLabel(wt,Bt,"edge",z,ua($,J.normal&&J.normal.get("formatter"),X),q)}},labelDataIndex:v.dataIndex,defaultText:X}),d.setTextConfig({position:"inside"});var At=g.getModel("emphasis");$e(d,g,"lineStyle",function(wt){var Bt=wt.getItemStyle();return LI(Bt,h,v),Bt}),o.add(d),c.setItemGraphicEl(v.dataIndex,d);var lt=At.get("focus");ye(d,lt==="adjacency"?v.getAdjacentDataIndices():lt==="trajectory"?v.getTrajectoryDataIndices():lt,At.get("blurScope"),At.get("disabled"))}),A.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,_=new Nt({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});Je(_,He(p),{labelFetcher:{getFormattedLabel:function(C,S){return e.getFormattedLabel(C,S,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),$e(_,p),o.add(_),f.setItemGraphicEl(v.dataIndex,_),Ct(_).dataType="node";var B=m.get("focus");ye(_,B==="adjacency"?v.getAdjacentDataIndices():B==="trajectory"?v.getTrajectoryDataIndices():B,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(v,d){var p=f.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(W$(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(jt);function LI(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new Uf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function W$(r,t,e){var n=new Nt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ue(n,{shape:{width:r.width+20}},t,e),n}var X$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var a=e.edges||e.links,i=e.data||e.nodes,A=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s=0&&(o[A[s].depth]=new Yt(A[s],this,n));if(i&&a){var l=hR(i,a,this,!0,u);return l.data}function u(f,c){f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];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(e,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var A=this.getDataParams(e,a),o=A.data,s=A.value,l=o.source+" -- "+o.target;return Oe("nameValue",{name:l,value:s,noValue:i(s)})}else{var u=this.getGraph().getNodeByIndex(e),f=u.getLayout().value,c=this.getDataParams(e,a).data.name;return Oe("nameValue",{name:c!=null?c+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),A=i.getLayout().value;a.value=A}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}(se);function Y$(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=Z$(e,t);e.layoutInfo=i;var A=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;J$(l);var f=Jt(l,function(d){return d.getLayout().value===0}),c=f.length!==0?0:e.get("layoutIterations"),h=e.get("orient"),v=e.get("nodeAlign");$$(l,u,n,a,A,o,c,h,v)})}function Z$(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $$(r,t,e,n,a,i,A,o,s){q$(r,t,e,a,i,o,s),rJ(r,t,i,a,n,A,o),fJ(r,o)}function J$(r){T(r,function(t){var e=ki(t.outEdges,qv),n=ki(t.inEdges,qv),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function q$(r,t,e,n,a,i,A){for(var o=[],s=[],l=[],u=[],f=0,c=0;c=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:f},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var y=0;yf-1?h:f-1;A&&A!=="left"&&j$(r,A,i,C);var S=i==="vertical"?(a-e)/C:(n-e)/C;eJ(r,S,i)}function QR(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function j$(r,t,e,n){if(t==="right"){for(var a=[],i=r,A=0;i.length;){for(var o=0;o0;i--)s*=.99,iJ(o,s,A),Hy(o,a,e,n,A),uJ(o,s,A),Hy(o,a,e,n,A)}function nJ(r,t){var e=[],n=t==="vertical"?"y":"x",a=B0(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,A){return i-A}),T(a.keys,function(i){e.push(a.buckets.get(i))}),e}function aJ(r,t,e,n,a,i){var A=1/0;T(r,function(o){var s=o.length,l=0;T(o,function(f){l+=f.getLayout().value});var u=i==="vertical"?(n-(s-1)*a)/l:(e-(s-1)*a)/l;u0&&(o=s.getLayout()[i]+l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]+s.getLayout()[c]+t;var v=a==="vertical"?n:e;if(l=u-t-v,l>0){o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(var h=f-2;h>=0;--h)s=A[h],l=s.getLayout()[i]+s.getLayout()[c]+t-u,l>0&&(o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]}})}function iJ(r,t,e){T(r.slice().reverse(),function(n){T(n,function(a){if(a.outEdges.length){var i=ki(a.outEdges,AJ,e)/ki(a.outEdges,qv);if(isNaN(i)){var A=a.outEdges.length;i=A?ki(a.outEdges,oJ,e)/A:0}if(e==="vertical"){var o=a.getLayout().x+(i-$i(a,e))*t;a.setLayout({x:o},!0)}else{var s=a.getLayout().y+(i-$i(a,e))*t;a.setLayout({y:s},!0)}}})})}function AJ(r,t){return $i(r.node2,t)*r.getValue()}function oJ(r,t){return $i(r.node2,t)}function sJ(r,t){return $i(r.node1,t)*r.getValue()}function lJ(r,t){return $i(r.node1,t)}function $i(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function qv(r){return r.getValue()}function ki(r,t,e){for(var n=0,a=r.length,i=-1;++iA&&(A=s)}),T(n,function(o){var s=new Re({type:"color",mappingMethod:"linear",dataExtent:[i,A],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}a.length&&T(a,function(o){var s=o.getModel().get("lineStyle");o.setVisual("style",s)})})}function hJ(r){r.registerChartView(z$),r.registerSeriesModel(X$),r.registerLayout(Y$),r.registerVisual(cJ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var LR=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),A=a.get("type"),o=i.get("type"),s;A==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),s=!0):o==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u=t.layout==="horizontal"?0:1,f=this._baseAxisDim=l[u],c=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=t.data;if(p&&s){var g=[];T(p,function(w,_){var B;K(w)?(B=w.slice(),w.unshift(_)):K(w.value)?(B=V({},w),B.value=B.value.slice(),w.value.unshift(_)):B=w,g.push(B)}),t.data=g}var y=this.defaultValueDimensions,m=[{name:f,type:Nv(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Nv(d),dimsDef:y.slice()}];return ll(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:xt(fU,m,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),MR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}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}(se);Ie(MR,LR,!0);var vJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this.group,o=this._data;this._data||A.removeAll();var s=e.get("layout")==="horizontal"?1:0;i.diff(o).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),f=MI(u,i,l,s,!0);i.setItemGraphicEl(l,f),A.add(f)}}).update(function(l,u){var f=o.getItemGraphicEl(u);if(!i.hasValue(l)){A.remove(f);return}var c=i.getItemLayout(l);f?(Rn(f),UR(c,f,i,l)):f=MI(c,i,l,s),A.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&A.remove(u)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(jt),dJ=function(){function r(){}return r}(),pJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new dJ},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();id){var w=[g,m];n.push(w)}}}return{boxData:e,outliers:n}}var CJ={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==lr){var n="";Xt(n)}var a=_J(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function SJ(r){r.registerSeriesModel(MR),r.registerChartView(vJ),r.registerLayout(yJ),r.registerTransform(CJ)}var xJ=["color","borderColor"],bJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,A=n.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u);if(o&&UI(l,f))return;var c=Oy(f,u,!0);ue(c,{shape:{points:f.ends}},e,u),ky(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}}).update(function(u,f){var c=a.getItemGraphicEl(f);if(!n.hasValue(u)){i.remove(c);return}var h=n.getItemLayout(u);if(o&&UI(l,h)){i.remove(c);return}c?(zt(c,{shape:{points:h.ends}},e,u),Rn(c)):c=Oy(h),ky(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}).remove(function(u){var f=a.getItemGraphicEl(u);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),PI(e,this.group);var n=e.get("clip",!0)?Kf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),A;(A=e.next())!=null;){var o=a.getItemLayout(A),s=Oy(o);ky(s,a,A,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,n){PI(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(jt),TJ=function(){function r(){}return r}(),IJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new TJ},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Mt);function Oy(r,t,e){var n=r.ends;return new IJ({shape:{points:e?FJ(n,r):n},z2:100})}function UI(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(xJ);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var PR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);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}(se);Ie(PR,LR,!0);function DJ(r){!r||!K(r.series)||T(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var QJ=["itemStyle","borderColor"],LJ=["itemStyle","borderColor0"],MJ=["itemStyle","borderColorDoji"],UJ=["itemStyle","color"],PJ=["itemStyle","color0"],RJ={seriesType:"candlestick",plan:il(),performRawSeries:!0,reset:function(r,t){function e(i,A){return A.get(i>0?UJ:PJ)}function n(i,A){return A.get(i===0?MJ:i>0?QJ:LJ)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,A){for(var o;(o=i.next())!=null;){var s=A.getItemModel(o),l=A.getItemLayout(o).sign,u=s.getItemStyle();u.fill=e(l,s),u.stroke=n(l,s)||u.fill;var f=A.ensureUniqueItemVisual(o,"style");V(f,u)}}}}}},HJ={seriesType:"candlestick",plan:il(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=OJ(r,e),a=0,i=1,A=["x","y"],o=e.getDimensionIndex(e.mapDimension(A[a])),s=Y(e.mapDimensionsAll(A[i]),e.getDimensionIndex,e),l=s[0],u=s[1],f=s[2],c=s[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),o<0||s.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,p){for(var g,y=p.getStore();(g=d.next())!=null;){var m=y.get(o,g),w=y.get(l,g),_=y.get(u,g),B=y.get(f,g),C=y.get(c,g),S=Math.min(w,_),x=Math.max(w,_),b=R(S,m),I=R(x,m),F=R(B,m),E=R(C,m),D=[];P(D,I,0),P(D,b,1),D.push(G(E),G(I),G(F),G(b));var Q=p.getItemModel(g),M=!!Q.get(["itemStyle","borderColorDoji"]);p.setItemLayout(g,{sign:RI(y,g,w,_,u,M),initBaseline:w>_?I[i]:b[i],ends:D,brushRect:O(B,C,m)})}function R(X,J){var At=[];return At[a]=J,At[i]=X,isNaN(J)||isNaN(X)?[NaN,NaN]:t.dataToPoint(At)}function P(X,J,At){var lt=J.slice(),wt=J.slice();lt[a]=Wh(lt[a]+n/2,1,!1),wt[a]=Wh(wt[a]-n/2,1,!0),At?X.push(lt,wt):X.push(wt,lt)}function O(X,J,At){var lt=R(X,At),wt=R(J,At);return lt[a]-=n/2,wt[a]-=n/2,{x:lt[0],y:lt[1],width:n,height:wt[1]-lt[1]}}function G(X){return X[a]=Wh(X[a],1),X}}function v(d,p){for(var g=Aa(d.count*4),y=0,m,w=[],_=[],B,C=p.getStore(),S=!!r.get(["itemStyle","borderColorDoji"]);(B=d.next())!=null;){var x=C.get(o,B),b=C.get(l,B),I=C.get(u,B),F=C.get(f,B),E=C.get(c,B);if(isNaN(x)||isNaN(F)||isNaN(E)){g[y++]=NaN,y+=3;continue}g[y++]=RI(C,B,b,I,u,S),w[a]=x,w[i]=F,m=t.dataToPoint(w,null,_),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=E,m=t.dataToPoint(w,null,_),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function RI(r,t,e,n,a,i){var A;return e>n?A=-1:e0?r.get(a,t-1)<=n?1:-1:1,A}function OJ(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(St(r.get("barMaxWidth"),a),a),A=et(St(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?et(o,a):Math.max(Math.min(a/2,i),A)}function kJ(r){r.registerChartView(bJ),r.registerSeriesModel(PR),r.registerPreprocessor(DJ),r.registerVisual(RJ),r.registerLayout(HJ)}function HI(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var NJ=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=new Vf(e,n),A=new _t;return a.add(i),a.add(A),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,A=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/u*1e3),o!==this._period||s!==this._loop||l!==this._roundTrip){i.stopAnimation();var c=void 0;vt(f)?c=f(a):c=f,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,s,l)}this._period=o,this._loop=s,this._roundTrip=l}},t.prototype._animateSymbol=function(e,n,a,i,A){if(n>0){e.__t=0;var o=this,s=e.animate("",i).when(A?n*2:n,{__t:A?2:1}).delay(a).during(function(){o._updateSymbolPosition(e)});i||s.done(function(){o.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return xi(e.__p1,e.__cp1)+xi(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,A=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),l=Ne,u=A0;o[0]=l(n[0],i[0],a[0],A),o[1]=l(n[1],i[1],a[1],A);var f=e.__t<1?u(n[0],i[0],a[0],A):u(a[0],i[0],n[0],1-A),c=e.__t<1?u(n[1],i[1],a[1],A):u(a[1],i[1],n[1],1-A);e.rotation=-Math.atan2(c,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[s]<=n);s--);s=Math.min(s,A-2)}else{for(s=o;sn);s++);s=Math.min(s-1,A-2)}var u=(n-i[s])/(i[s+1]-i[s]),f=a[s],c=a[s+1];e.x=f[0]*(1-u)+u*c[0],e.y=f[1]*(1-u)+u*c[1];var h=e.__t<1?c[0]-f[0]:f[0]-c[0],v=e.__t<1?c[1]-f[1]:f[1]-c[1];e.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=n,e.ignore=!1}},t}(RR),WJ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),XJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||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 WJ},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,A;if(n.polyline)for(A=this._off;A0){e.moveTo(a[A++],a[A++]);for(var s=1;s0){var h=(l+f)/2-(u-c)*i,v=(u+c)/2-(f-l)*i;e.quadraticCurveTo(h,v,f,c)}else e.lineTo(f,c)}this.incremental&&(this._off=A,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,A=a.curveness,o=this.style.lineWidth;if(a.polyline)for(var s=0,l=0;l0)for(var f=i[l++],c=i[l++],h=1;h0){var p=(f+v)/2-(c-d)*A,g=(c+d)/2-(v-f)*A;if(fM(f,c,p,g,v,d,o,e,n))return s}else if(Bi(f,c,v,d,o,e,n))return s;s++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,A=1/0,o=-1/0,s=-1/0,l=0;l0&&(A.dataIndex=s+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),OR={seriesType:"lines",plan:il(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var A=[];if(n){var o=void 0,s=a.end-a.start;if(e){for(var l=0,u=a.start;u0&&(u||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),A.updateData(i);var f=e.get("clip",!0)&&Kf(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateLineDraw(i,e);A.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),A=e.pipelineContext;if(!this._finished||A.large||A.progressiveRender)return{update:!0};var o=OR.reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),A=!!n.get("polyline"),o=n.pipelineContext,s=o.large;return(!a||i!==this._hasEffet||A!==this._isPolyline||s!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=s?new YJ:new sC(A?i?zJ:HR:i?RR:oC),this._hasEffet=i,this._isPolyline=A,this._isLargeDraw=s),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(jt),$J=typeof Uint32Array>"u"?Array:Uint32Array,JJ=typeof Float64Array>"u"?Array:Float64Array;function OI(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),kB([a,e[0],e[1]])}))}var qJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],OI(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(OI(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=gv(this._flatCoords,n.flatCoords),this._flatCoordsOffset=gv(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],A=0;A ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.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}(se);function jc(r){return r instanceof Array||(r=[r,r]),r}var jJ={seriesType:"lines",reset:function(r){var t=jc(r.get("symbol")),e=jc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,A){var o=i.getItemModel(A),s=jc(o.getShallow("symbol",!0)),l=jc(o.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(A,"fromSymbol",s[0]),s[1]&&i.setItemVisual(A,"toSymbol",s[1]),l[0]&&i.setItemVisual(A,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(A,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};function tq(r){r.registerChartView(ZJ),r.registerSeriesModel(qJ),r.registerLayout(OR),r.registerVisual(jJ)}var eq=256,rq=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=zi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,A){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,c=f.getContext("2d"),h=t.length;f.width=e,f.height=n;for(var v=0;v0){var F=A(m)?s:l;m>0&&(m=m*b+S),_[B++]=F[I],_[B++]=F[I+1],_[B++]=F[I+2],_[B++]=F[I+3]*m*256}else B+=4}return c.putImageData(w,0,0),f},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=zi.createCanvas()),e=this.pointSize+this.blurSize,n=e*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(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],A=0,o=0;o<256;o++)t[e](o/255,!0,i),a[A++]=i[0],a[A++]=i[1],a[A++]=i[2],a[A++]=i[3];return a},r}();function nq(r,t,e){var n=r[1]-r[0];t=Y(t,function(A){return{interval:[(A.interval[0]-r[0])/n,(A.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(A){var o;for(o=i;o=0;o--){var s=t[o].interval;if(s[0]<=A&&A<=s[1]){i=o;break}}return o>=0&&o=t[0]&&n<=t[1]}}function kI(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var iq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i;n.eachComponent("visualMap",function(o){o.eachTargetSeries(function(s){s===e&&(i=o)})}),this._progressiveEls=null,this.group.removeAll();var A=e.coordinateSystem;A.type==="cartesian2d"||A.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):kI(A)&&this._renderOnGeo(A,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var A=n.coordinateSystem;A&&(kI(A)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,A){var o=e.coordinateSystem,s=To(o,"cartesian2d"),l,u,f,c;if(s){var h=o.getAxis("x"),v=o.getAxis("y");l=h.getBandWidth()+.5,u=v.getBandWidth()+.5,f=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),w=e.get(["itemStyle","borderRadius"]),_=He(e),B=e.getModel("emphasis"),C=B.get("focus"),S=B.get("blurScope"),x=B.get("disabled"),b=s?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],I=a;If[1]||Qc[1])continue;var M=o.dataToPoint([D,Q]);F=new Nt({shape:{x:M[0]-l/2,y:M[1]-u/2,width:l,height:u},style:E})}else{if(isNaN(p.get(b[1],I)))continue;F=new Nt({z2:1,shape:o.dataToRect([p.get(b[0],I)]).contentShape,style:E})}if(p.hasItemOption){var R=p.getItemModel(I),P=R.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),m=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),C=P.get("focus"),S=P.get("blurScope"),x=P.get("disabled"),_=He(R)}F.shape.r=w;var O=e.getRawValue(I),G="-";O&&O[2]!=null&&(G=O[2]+""),Je(F,_,{labelFetcher:e,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:G}),F.ensureState("emphasis").style=g,F.ensureState("blur").style=y,F.ensureState("select").style=m,ye(F,C,S,x),F.incremental=A,A&&(F.states.emphasis.hoverLayer=!0),d.add(F),p.setItemGraphicEl(I,F),this._progressiveEls&&this._progressiveEls.push(F)}},t.prototype._renderOnGeo=function(e,n,a,i){var A=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,s=n.getData(),l=this._hmLayer||this._hmLayer||new rq;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var c=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-c,g=d-h,y=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],m=s.mapArray(y,function(C,S,x){var b=e.dataToPoint([C,S]);return b[0]-=c,b[1]-=h,b.push(x),b}),w=a.getExtent(),_=a.type==="visualMap.continuous"?aq(w,a.option.range):nq(w,a.getPieceList(),a.option.selected);l.update(m,p,g,A.color.getNormalizer(),{inRange:A.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var B=new Ge({style:{width:p,height:g,x:c,y:h,image:l.canvas},silent:!0});this.group.add(B)},t.type="heatmap",t}(jt),Aq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Hf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.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}(se);function oq(r){r.registerChartView(iq),r.registerSeriesModel(Aq)}var sq=["itemStyle","borderWidth"],NI=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gy=new ei,lq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,A=e.getData(),o=this._data,s=e.coordinateSystem,l=s.getBaseAxis(),u=l.isHorizontal(),f=s.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:u,valueDim:NI[+u],categoryDim:NI[1-+u]};A.diff(o).add(function(v){if(A.hasValue(v)){var d=GI(A,v),p=VI(A,v,d,c),g=KI(A,c,p);A.setItemGraphicEl(v,g),i.add(g),WI(g,c,p)}}).update(function(v,d){var p=o.getItemGraphicEl(d);if(!A.hasValue(v)){i.remove(p);return}var g=GI(A,v),y=VI(A,v,g,c),m=zR(A,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),A.setItemGraphicEl(v,null),p=null),p?pq(p,c,y):p=KI(A,c,y,!0),A.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),WI(p,c,y)}).remove(function(v){var d=o.getItemGraphicEl(v);d&&zI(o,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=e.get("clip",!0)?Kf(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=A,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(A){zI(i,Ct(A).dataIndex,e,A)}):a.removeAll()},t.type="pictorialBar",t}(jt);function VI(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),A=e.get("symbolClip"),o=e.get("symbolPosition")||"start",s=e.get("symbolRotate"),l=(s||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:A,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};uq(e,i,a,n,c),fq(r,t,a,i,A,c.boundingLength,c.pxSign,u,n,c),cq(e,c.symbolScale,l,n,c);var h=c.symbolSize,v=xo(e.get("symbolOffset"),h);return hq(e,h,a,i,A,v,o,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function uq(r,t,e,n,a){var i=n.valueDim,A=r.get("symbolBoundingData"),o=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),s=o.toGlobalCoord(o.dataToCoord(0)),l=1-+(e[i.wh]<=0),u;if(K(A)){var f=[Ky(o,A[0])-s,Ky(o,A[1])-s];f[1]0?1:-1}function Ky(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function fq(r,t,e,n,a,i,A,o,s,l){var u=s.valueDim,f=s.categoryDim,c=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),v;K(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=et(v[f.index],c),v[u.index]=et(v[u.index],n?c:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/o,v[1]/o];d[u.index]*=(s.isHorizontal?-1:1)*A}function cq(r,t,e,n,a){var i=r.get(sq)||0;i&&(Gy.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Gy.updateTransform(),i/=Gy.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function hq(r,t,e,n,a,i,A,o,s,l,u,f){var c=u.categoryDim,h=u.valueDim,v=f.pxSign,d=Math.max(t[h.index]+o,0),p=d;if(n){var g=Math.abs(s),y=Ve(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=et(y,t[h.index]),_=Math.max(d+w*2,0),B=m?0:w*2,C=JL(n),S=C?n:XI((g+B)/_),x=g-S*d;w=x/2/(m?S:Math.max(S-1,1)),_=d+w*2,B=m?0:w*2,!C&&n!=="fixed"&&(S=l?XI((Math.abs(l)+B)/_):0),p=S*_-B,f.repeatTimes=S,f.symbolMargin=w}var b=v*(p/2),I=f.pathPosition=[];I[c.index]=e[c.wh]/2,I[h.index]=A==="start"?b:A==="end"?s-b:s/2,i&&(I[0]+=i[0],I[1]+=i[1]);var F=f.bundlePosition=[];F[c.index]=e[c.xy],F[h.index]=e[h.xy];var E=f.barRectShape=V({},e);E[h.wh]=v*Math.max(Math.abs(e[h.wh]),Math.abs(I[h.index]+b)),E[c.wh]=e[c.wh];var D=f.clipShape={};D[c.xy]=-e[c.xy],D[c.wh]=u.ecSize[c.wh],D[h.xy]=0,D[h.wh]=e[h.wh]}function kR(r){var t=r.symbolPatternSize,e=Te(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function NR(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,A=e.valueLineWidth,o=e.pathPosition,s=t.valueDim,l=e.repeatTimes||0,u=0,f=i[t.valueDim.index]+A+e.symbolMargin*2;for(pC(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u0:g<0)&&(y=l-1-d),p[s.index]=f*(y-l/2+.5)+o[s.index],{x:p[0],y:p[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function VR(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Fs(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=kR(e),a.add(i),Fs(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function GR(r,t,e){var n=V({},t.barRectShape),a=r.__pictorialBarRect;a?Fs(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Nt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function KR(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=V({},e.clipShape),A=t.valueDim,o=e.animationModel,s=e.dataIndex;if(a)zt(a,{shape:i},o,s);else{i[A.wh]=0,a=new Nt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[A.wh]=e.clipShape[A.wh],So[n?"updateProps":"initProps"](a,{shape:l},o,s)}}}function GI(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=vq,e.isAnimationEnabled=dq,e}function vq(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function dq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function KI(r,t,e,n){var a=new _t,i=new _t;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?NR(a,t,e):VR(a,t,e),GR(a,e,n),KR(a,t,e,n),a.__pictorialShapeStr=zR(r,e),a.__pictorialSymbolMeta=e,a}function pq(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;zt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?NR(r,t,e,!0):VR(r,t,e,!0),GR(r,e,!0),KR(r,t,e,!0)}function zI(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];pC(n,function(A){i.push(A)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),T(i,function(A){Xi(A,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function zR(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function pC(r,t,e){T(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Fs(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&So[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function WI(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),A=i.getModel("itemStyle").getItemStyle(),o=a.getModel(["blur","itemStyle"]).getItemStyle(),s=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),f=i.get("blurScope"),c=i.get("scale");pC(r,function(d){if(d instanceof Ge){var p=d.style;d.useStyle(V({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},e.style))}else d.useStyle(e.style);var g=d.ensureState("emphasis");g.style=A,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=o,d.ensureState("select").style=s,l&&(d.cursor=l),d.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,Je(v,He(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:ks(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ye(r,u,f,i.get("disabled"))}function XI(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var gq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=nA(vf.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(vf);function yq(r){r.registerChartView(lq),r.registerSeriesModel(gq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(I2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F2("pictorialBar"))}var mq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this,o=this.group,s=e.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;o.x=0,o.y=u.y+f[0];function c(p){return p.name}var h=new Ya(this._layersSeries||[],s,c,c),v=[];h.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(p,g,y){var m=A._layers;if(p==="remove"){o.remove(m[g]);return}for(var w=[],_=[],B,C=s[g].indices,S=0;Si&&(i=o),n.push(o)}for(var l=0;li&&(i=f)}return{y0:a,max:i}}function Sq(r){r.registerChartView(mq),r.registerSeriesModel(Bq),r.registerLayout(_q),r.registerProcessor(Wf("themeRiver"))}var xq=2,bq=4,ZI=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;A.z2=xq,A.textConfig={inside:!0},Ct(A).seriesIndex=n.seriesIndex;var o=new Gt({z2:bq,silent:e.getModel().get(["label","silent"])});return A.setTextContent(o),A.updateData(!0,e,n,a,i),A}return t.prototype.updateData=function(e,n,a,i,A){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var o=this;Ct(o).dataIndex=n.dataIndex;var s=n.getModel(),l=s.getModel("emphasis"),u=n.getLayout(),f=V({},u);f.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=Hs(h,A));var v=$A(s.getModel("itemStyle"),f,!0);V(f,v),T(_r,function(y){var m=o.ensureState(y),w=s.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var _=$A(w,f);_&&(m.shape=_)}),e?(o.setShape(f),o.shape.r=u.r0,ue(o,{shape:{r:u.r}},a,n.dataIndex)):(zt(o,{shape:f},a),Rn(o)),o.useStyle(c),this._updateLabel(a);var d=s.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;ye(this,g,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),A=this.node.getLayout(),o=A.endAngle-A.startAngle,s=(A.startAngle+A.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=this,c=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(o)D&&!ju(M-D)&&M0?(A.virtualPiece?A.virtualPiece.updateData(!1,y,e,n,a):(A.virtualPiece=new ZI(y,e,n,a),u.add(A.virtualPiece)),m.piece.off("click"),A.virtualPiece.on("click",function(w){A._rootToNode(m.parentNode)})):A.virtualPiece&&(u.remove(A.virtualPiece),A.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(A){if(!a&&A.piece&&A.piece===n.target){var o=A.getModel().get("nodeClick");if(o==="rootToNode")e._rootToNode(A);else if(o==="link"){var s=A.getModel(),l=s.get("link");if(l){var u=s.get("target",!0)||"_blank";Lv(l,u)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Bw,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var A=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(A*A+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(jt),Eq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};WR(a);var i=this._levelModels=Y(e.levels||[],function(s){return new Yt(s,this,n)},this),A=eC.createTree(a,this,o);function o(s){s.wrapMethod("getItemModel",function(l,u){var f=A.getNodeByDataIndex(u),c=i[f.depth];return c&&(l.parentModel=c),l})}return A.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=pp(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JP(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}(se);function WR(r){var t=0;T(r.children,function(n){WR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}var JI=Math.PI/180;function Dq(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");K(i)||(i=[0,i]),K(a)||(a=[a,a]);var A=e.getWidth(),o=e.getHeight(),s=Math.min(A,o),l=et(a[0],A),u=et(a[1],o),f=et(i[0],s/2),c=et(i[1],s/2),h=-n.get("startAngle")*JI,v=n.get("minAngle")*JI,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&XR(p,y);var m=0;T(p.children,function(M){!isNaN(M.getValue())&&m++});var w=p.getValue(),_=Math.PI/(w||m)*2,B=p.depth>0,C=p.height-(B?-1:1),S=(c-f)/(C||1),x=n.get("clockwise"),b=n.get("stillShowZeroSum"),I=x?1:-1,F=function(M,R){if(M){var P=R;if(M!==d){var O=M.getValue(),G=w===0&&b?_:O*_;G1;)A=A.parentNode;var o=a.getColorFromPalette(A.name||A.dataIndex+"",t);return n.depth>1&&nt(o)&&(o=l0(o,(n.depth-1)/(i-1)*.5)),o}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(A){var o=A.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e(A,n,i.root.height));var l=a.ensureUniqueItemVisual(A.dataIndex,"style");V(l,s)})})}function Mq(r){r.registerChartView(Fq),r.registerSeriesModel(Eq),r.registerLayout(xt(Dq,"sunburst")),r.registerProcessor(xt(Wf,"sunburst")),r.registerVisual(Lq),Iq(r)}var qI={color:"fill",borderColor:"stroke"},Uq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ka=Vt(),Pq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return ri(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=ka(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}(se);function Rq(r,t){return t=t||[0,0],Y(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],A=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-A)-a.dataToCoord(i+A))},this)}function Hq(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Rq,r)}}}function Oq(r,t){return t=t||[0,0],Y([0,1],function(e){var n=t[e],a=r[e]/2,i=[],A=[];return i[e]=n-a,A[e]=n+a,i[1-e]=A[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(A)[e])},this)}function kq(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:it(Oq,r)}}}function Nq(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Vq(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Nq,r)}}}function Gq(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),A=t[n],o=r[n]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(A-o)-i.dataToCoord(A+o));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function Kq(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),A=e.dataToAngle(a[1]),o=r.coordToPoint([i,A]);return o.push(i,A*Math.PI/180),o},size:it(Gq,r)}}}function zq(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function YR(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function ZR(r,t,e){var n=r,a,i,A;if(t==="text")A=n;else{A={},st(n,"text")&&(A.text=n.text),st(n,"rich")&&(A.rich=n.rich),st(n,"textFill")&&(A.fill=n.textFill),st(n,"textStroke")&&(A.stroke=n.textStroke),st(n,"fontFamily")&&(A.fontFamily=n.fontFamily),st(n,"fontSize")&&(A.fontSize=n.fontSize),st(n,"fontStyle")&&(A.fontStyle=n.fontStyle),st(n,"fontWeight")&&(A.fontWeight=n.fontWeight),i={type:"text",style:A,silent:!0},a={};var o=st(n,"textPosition");e?a.position=o?n.textPosition:"inside":o&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return jI(A,r),T(A.rich,function(s){jI(s,s)}),{textConfig:a,textContent:i}}function jI(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function tF(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";eF(n,t);var A=n.textFill==null;return a?A&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(A&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,T(t.rich,function(o){eF(o,o)}),n}function eF(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var $R={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},rF=Ht($R);ha(da,function(r,t){return r[t]=1,r},{});da.join(", ");var jv=["","style","shape","extra"],Gs=Vt();function gC(r,t,e,n,a){var i=r+"Animation",A=qs(r,n,a)||{},o=Gs(t).userDuring;return A.duration>0&&(A.during=o?it($q,{el:t,userDuring:o}):null,A.setToFinal=!0,A.scope=r),V(A,e[i]),A}function qh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,A=n.clearStyle,o=e.isAnimationEnabled(),s=Gs(r),l=t.style;s.userDuring=t.during;var u={},f={};if(qq(r,t,f),aF("shape",t,f),aF("extra",t,f),!i&&o&&(Jq(r,t,u),nF("shape",r,t,u),nF("extra",r,t,u),jq(r,t,l,u)),f.style=l,Wq(r,f,A),Yq(r,t),o)if(i){var c={};T(jv,function(v){var d=v?t[v]:t;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),V(v?c[v]:c,d.enterFrom))});var h=gC("enter",r,t,e,a);h.duration>0&&r.animateFrom(c,h)}else Xq(r,t,a||0,e,u);JR(r,t),l?r.dirty():r.markRedraw()}function JR(r,t){for(var e=Gs(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function Yq(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof gn&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Mt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Zn={},Zq={setTransform:function(r,t){return Zn.el[r]=t,this},getTransform:function(r){return Zn.el[r]},setShape:function(r,t){var e=Zn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Zn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Zn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Zn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Zn.el.extra||(Zn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Zn.el.extra;if(t)return t[r]}};function $q(){var r=this,t=r.el;if(t){var e=Gs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Zn.el=t,n(Zq)}}function nF(r,t,e,n){var a=e[r];if(a){var i=t[r],A;if(i){var o=e.transition,s=a.transition;if(s)if(!A&&(A=n[r]={}),oo(s))V(A,i);else for(var l=qt(s),u=0;u=0){!A&&(A=n[r]={});for(var h=Ht(i),u=0;u=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var v=Ht(e),l=0;l=0?t.getStore().get(R,Q):void 0}var P=t.get(M.name,Q),O=M&&M.ordinalMeta;return O?O.categories[P]:P}function B(D,Q){Q==null&&(Q=l);var M=t.getItemVisual(Q,"style"),R=M&&M.fill,P=M&&M.opacity,O=y(Q,Qi).getItemStyle();R!=null&&(O.fill=R),P!=null&&(O.opacity=P);var G={inheritColor:nt(R)?R:"#000"},X=m(Q,Qi),J=oe(X,null,G,!1,!0);J.text=X.getShallow("show")?St(r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var At=Dv(X,G,!1);return x(D,O),O=tF(O,J,At),D&&S(O,D),O.legacy=!0,O}function C(D,Q){Q==null&&(Q=l);var M=y(Q,Na).getItemStyle(),R=m(Q,Na),P=oe(R,null,null,!0,!0);P.text=R.getShallow("show")?ua(r.getFormattedLabel(Q,Na),r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var O=Dv(R,null,!0);return x(D,M),M=tF(M,P,O),D&&S(M,D),M.legacy=!0,M}function S(D,Q){for(var M in Q)st(Q,M)&&(D[M]=Q[M])}function x(D,Q){D&&(D.textFill&&(Q.textFill=D.textFill),D.textPosition&&(Q.textPosition=D.textPosition))}function b(D,Q){if(Q==null&&(Q=l),st(qI,D)){var M=t.getItemVisual(Q,"style");return M?M[qI[D]]:null}if(st(Uq,D))return t.getItemVisual(Q,D)}function I(D){if(i.type==="cartesian2d"){var Q=i.getBaseAxis();return q8(gt({axis:Q},D))}}function F(){return e.getCurrentSeriesIndices()}function E(D){return u_(D,e)}}function lj(r){var t={};return T(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Yy(r,t,e,n,a,i,A){if(!n){i.remove(t);return}var o=_C(r,t,e,n,a,i);return o&&A.setItemGraphicEl(e,o),o&&ye(o,n.focus,n.blurScope,n.emphasisDisabled),o}function _C(r,t,e,n,a,i){var A=-1,o=t;t&&eH(t,n,a)&&(A=Qt(i.childrenRef(),t),t=null);var s=!t,l=t;l?l.clearStates():(l=wC(n),o&&ij(o,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),qr.normal.cfg=qr.normal.conOpt=qr.emphasis.cfg=qr.emphasis.conOpt=qr.blur.cfg=qr.blur.conOpt=qr.select.cfg=qr.select.conOpt=null,qr.isLegacy=!1,fj(l,e,n,a,s,qr),uj(l,e,n,a,s),BC(r,l,e,n,qr,a,s),st(n,"info")&&(ka(l).info=n.info);for(var u=0;u=0?i.replaceAt(l,A):i.add(l),l}function eH(r,t,e){var n=ka(r),a=t.type,i=t.shape,A=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&pj(i)&&rH(i)!==n.customPathData||a==="image"&&st(A,"image")&&A.image!==n.customImagePath}function uj(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var A=r.getClipPath();A&&eH(A,i,n)&&(A=null),A||(A=wC(i),r.setClipPath(A)),BC(null,A,t,i,null,n,a)}}function fj(r,t,e,n,a,i){if(!r.isGroup){AF(e,null,i),AF(e,Na,i);var A=i.normal.conOpt,o=i.emphasis.conOpt,s=i.blur.conOpt,l=i.select.conOpt;if(A!=null||o!=null||l!=null||s!=null){var u=r.getTextContent();if(A===!1)u&&r.removeTextContent();else{A=i.normal.conOpt=A||{type:"text"},u?u.clearStates():(u=wC(A),r.setTextContent(u)),BC(null,u,t,A,null,n,a);for(var f=A&&A.style,c=0;c=u;h--){var v=t.childAt(h);hj(t,v,a)}}}function hj(r,t,e){t&&mp(t,ka(r).option,e)}function vj(r){new Ya(r.oldChildren,r.newChildren,oF,oF,r).add(sF).update(sF).remove(dj).execute()}function oF(r,t){var e=r&&r.name;return e??nj+t}function sF(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;_C(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function dj(r){var t=this.context,e=t.oldChildren[r];e&&mp(e,ka(e).option,t.seriesModel)}function rH(r){return r&&(r.pathData||r.d)}function pj(r){return r&&(st(r,"pathData")||st(r,"d"))}function gj(r){r.registerChartView(Aj),r.registerSeriesModel(Pq)}var kA=Vt(),lF=mt,Zy=it,SC=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),A=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===A)){this._lastValue=i,this._lastStatus=A;var o=this._group,s=this._handle;if(!A||A==="hide"){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var f=this._moveAnimation=this.determineAnimation(t,e);if(!o)o=this._group=new _t,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);else{var c=xt(uF,e,f);this.updatePointerEl(o,l,c),this.updateLabelEl(o,l,c,e)}cF(o,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",A=e.get("snap");if(!A&&!i)return!1;if(n==="auto"||n==null){var o=this.animationThreshold;if(i&&a.getBandWidth()>o)return!0;if(A){var s=Y_(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var A=kA(t).pointerEl=new So[i.type](lF(e.pointer));t.add(A)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=kA(t).labelEl=new Gt(lF(e.label));t.add(i),fF(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=kA(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=kA(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),fF(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),A=e.get("status");if(!i.get("show")||!A||A==="hide"){a&&n.remove(a),this._handle=null;return}var o;this._handle||(o=!0,a=this._handle=Rf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ka(l.event)},onmousedown:Zy(this._onHandleDragMove,this,0,0),drift:Zy(this._onHandleDragMove,this),ondragend:Zy(this._onHandleDragEnd,this)}),n.add(a)),cF(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");K(s)||(s=[s,s]),a.scaleX=s[0]/2,a.scaleY=s[1]/2,Al(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},r.prototype._moveHandleToValue=function(t,e){uF(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform($y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($y(a)),kA(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),sf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function uF(r,t,e,n){nH(kA(e).lastProp,n)||(kA(e).lastProp=n,t?zt(e,n,r):(e.stopAnimation(),e.attr(n)))}function nH(r,t){if(yt(r)&&yt(t)){var e=!0;return T(t,function(n,a){e=e&&nH(r[a],n)}),!!e}else return r===t}function fF(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $y(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function cF(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function xC(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function aH(r,t,e,n,a){var i=e.get("value"),A=iH(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),o=e.getModel("label"),s=rl(o.get("padding")||0),l=o.getFont(),u=Ef(A,l),f=a.position,c=u.width+s[1]+s[3],h=u.height+s[0]+s[2],v=a.align;v==="right"&&(f[0]-=c),v==="center"&&(f[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(f[1]-=h),d==="middle"&&(f[1]-=h/2),yj(f,c,h,n);var p=o.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:oe(o,{text:A,font:l,fill:o.getTextColor(),padding:s,backgroundColor:p}),z2:10}}function yj(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function iH(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),A=a.formatter;if(A){var o={value:R_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(s){var l=e.getSeriesByIndex(s.seriesIndex),u=s.dataIndexInside,f=l&&l.getDataParams(u);f&&o.seriesData.push(f)}),nt(A)?i=A.replace("{value}",i):vt(A)&&(i=A(o))}return i}function bC(r,t,e){var n=Wr();return Co(n,n,e.rotation),va(n,n,e.position),Mn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function AH(r,t,e,n,a,i){var A=wr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),aH(t,n,a,i,{position:bC(n.axis,r,e),align:A.textAlign,verticalAlign:A.textVerticalAlign})}function TC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function oH(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function hF(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var mj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.grid,l=i.get("type"),u=vF(s,o).getOtherAxis(o).getGlobalExtent(),f=o.toGlobalCoord(o.dataToCoord(n,!0));if(l&&l!=="none"){var c=xC(i),h=wj[l](o,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=nw(s.model,a);AH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=nw(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=bC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.grid,s=A.getGlobalExtent(!0),l=vF(o,A).getOtherAxis(A).getGlobalExtent(),u=A.dim==="x"?0:1,f=[e.x,e.y];f[u]+=n[u],f[u]=Math.min(s[1],f[u]),f[u]=Math.max(s[0],f[u]);var c=(l[1]+l[0])/2,h=[c,c];h[u]=f[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:v[u]}},t}(SC);function vF(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var wj={line:function(r,t,e){var n=TC([t,e[0]],[t,e[1]],dF(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:oH([t-n/2,e[0]],[n,a],dF(r))}}};function dF(r){return r.dim==="x"?0:1}var Bj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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}(Rt),Ma=Vt(),_j=T;function sH(r,t,e){if(!Ut.node){var n=t.getZr();Ma(n).records||(Ma(n).records={}),Cj(n,t);var a=Ma(n).records[r]||(Ma(n).records[r]={});a.handler=e}}function Cj(r,t){if(Ma(r).initialized)return;Ma(r).initialized=!0,e("click",xt(pF,"click")),e("mousemove",xt(pF,"mousemove")),e("globalout",xj);function e(n,a){r.on(n,function(i){var A=bj(t);_j(Ma(r).records,function(o){o&&a(o,i,A.dispatchAction)}),Sj(A.pendings,t)})}}function Sj(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function xj(r,t,e){r.handler("leave",null,e)}function pF(r,t,e,n){t.handler(r,e,n)}function bj(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Sw(r,t){if(!Ut.node){var e=t.getZr(),n=(Ma(e).records||{})[r];n&&(Ma(e).records[r]=null)}}var Tj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),A=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sH("axisPointer",a,function(o,s,l){A!=="none"&&(o==="leave"||A.indexOf(o)>=0)&&l({type:"updateAxisPointer",currTrigger:o,x:s&&s.offsetX,y:s&&s.offsetY})})},t.prototype.remove=function(e,n){Sw("axisPointer",n)},t.prototype.dispose=function(e,n){Sw("axisPointer",n)},t.type="axisPointer",t}(de);function lH(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),A=ho(i,r);if(A==null||A<0||K(A))return{point:[]};var o=i.getItemGraphicEl(A),s=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(A)||[];else if(s&&s.dataToPoint)if(r.isStacked){var l=s.getBaseAxis(),u=s.getOtherAxis(l),f=u.dim,c=l.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(c),d=[];d[h]=i.get(v,A),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),A),e=s.dataToPoint(d)||[]}else e=s.dataToPoint(i.getValues(Y(s.dimensions,function(g){return i.mapDimension(g)}),A))||[];else if(o){var p=o.getBoundingRect().clone();p.applyTransform(o.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:o}}var gF=Vt();function Ij(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,A=r.dispatchAction||it(e.dispatchAction,e),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){jh(a)&&(a=lH({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=jh(a),l=i.axesInfo,u=o.axesInfo,f=n==="leave"||jh(a),c={},h={},v={list:[],map:{}},d={showPointer:xt(Ej,h),showTooltip:xt(Dj,v)};T(o.coordSysMap,function(g,y){var m=s||g.containPoint(a);T(o.coordSysAxesInfo[y],function(w,_){var B=w.axis,C=Uj(l,w);if(!f&&m&&(!l||C)){var S=C&&C.value;S==null&&!s&&(S=B.pointToData(a)),S!=null&&yF(w,S,d,!1,c)}})});var p={};return T(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&T(m.axesInfo,function(w,_){var B=h[_];if(w!==g&&B){var C=B.value;m.mapper&&(C=g.axis.scale.parse(m.mapper(C,mF(w),mF(g)))),p[g.key]=C}})}),T(p,function(g,y){yF(u[y],g,d,!0,c)}),Qj(h,u,c),Lj(v,a,r,A),Mj(u,A,e),c}}function yF(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var A=Fj(t,r),o=A.payloadBatch,s=A.snapToValue;o[0]&&a.seriesIndex==null&&V(a,o[0]),!n&&r.snap&&i.containData(s)&&s!=null&&(t=s),e.showPointer(r,t,o),e.showTooltip(r,A,s)}}function Fj(r,t){var e=t.axis,n=e.dim,a=r,i=[],A=Number.MAX_VALUE,o=-1;return T(t.seriesModels,function(s,l){var u=s.getData().mapDimensionsAll(n),f,c;if(s.getAxisTooltipData){var h=s.getAxisTooltipData(u,r,e);c=h.dataIndices,f=h.nestestValue}else{if(c=s.getData().indicesOfNearest(u[0],r,e.type==="category"?.5:null),!c.length)return;f=s.getData().get(u[0],c[0])}if(!(f==null||!isFinite(f))){var v=r-f,d=Math.abs(v);d<=A&&((d=0&&o<0)&&(A=d,o=v,a=f,i.length=0),T(c,function(p){i.push({seriesIndex:s.seriesIndex,dataIndexInside:p,dataIndex:s.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function Ej(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Dj(r,t,e,n){var a=e.payloadBatch,i=t.axis,A=i.model,o=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var s=t.coordSys.model,l=df(s),u=r.map[l];u||(u=r.map[l]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:A.componentIndex,axisType:A.type,axisId:A.id,value:n,valueLabelOpt:{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Qj(r,t,e){var n=e.axesInfo=[];T(t,function(a,i){var A=a.axisPointerModel.option,o=r[i];o?(!a.useHandle&&(A.status="show"),A.value=o.value,A.seriesDataIndices=(o.payloadBatch||[]).slice()):!a.useHandle&&(A.status="hide"),A.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:A.value})})}function Lj(r,t,e,n){if(jh(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Mj(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=gF(n)[a]||{},A=gF(n)[a]={};T(r,function(l,u){var f=l.axisPointerModel.option;f.status==="show"&&l.triggerEmphasis&&T(f.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;A[h]=c})});var o=[],s=[];T(i,function(l,u){!A[u]&&s.push(l)}),T(A,function(l,u){!i[u]&&o.push(l)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),o.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}function Uj(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function mF(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function jh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function $f(r){Io.registerAxisPointerClass("CartesianAxisPointer",mj),r.registerComponentModel(Bj),r.registerComponentView(Tj),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!K(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=zY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ij)}function Pj(r){Lt(RP),Lt($f)}var Rj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis;o.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=o.polar,l=s.getOtherAxis(o),u=l.getExtent(),f=o.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=xC(i),v=Oj[c](o,s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=i.get(["label","margin"]),p=Hj(n,a,i,s,d);aH(e,a,i,A,p)},t}(SC);function Hj(r,t,e,n,a){var i=t.axis,A=i.dataToCoord(r),o=n.getAngleAxis().getExtent()[0];o=o/180*Math.PI;var s=n.getRadiusAxis().getExtent(),l,u,f;if(i.dim==="radius"){var c=Wr();Co(c,c,o),va(c,c,[n.cx,n.cy]),l=Mn([A,-a],c);var h=t.getModel("axisLabel").get("rotate")||0,v=wr.innerTextLayout(o,h*Math.PI/180,-1);u=v.textAlign,f=v.textVerticalAlign}else{var d=s[1];l=n.coordToPoint([d+a,A]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",f=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:f}}var Oj={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:TC(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:hF(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:hF(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},kj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,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}(Rt),IC=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",be).models[0]},t.type="polarAxis",t}(Rt);Ie(IC,Nf);var Nj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(IC),Vj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(IC),FC=function(r){H(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(On);FC.prototype.dataToRadius=On.prototype.dataToCoord;FC.prototype.radiusToData=On.prototype.coordToData;var Gj=Vt(),EC=function(r){H(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),A=a.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),l=Math.abs(s),u=Ef(o==null?"":o+"",n.getFont(),"center","top"),f=Math.max(u.height,7),c=f/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=Gj(e.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-A)<=1&&d>h?h=d:(v.lastTickCount=A,v.lastAutoInterval=h),h},t}(On);EC.prototype.dataToAngle=On.prototype.dataToCoord;EC.prototype.angleToData=On.prototype.coordToData;var uH=["radius","angle"],Kj=function(){function r(t){this.dimensions=uH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new FC,this._angleAxis=new EC,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),A=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);a.inverse?A=o-360:o=A+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=lo;)l+=u*360;return[s,l]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.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(A,o){var s=A-this.cx,l=o-this.cy,u=s*s+l*l-1e-4,f=this.r,c=this.r0;return u<=f*f&&u>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var a=wF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=wF(e);return a===this?this.pointToData(n):null},r}();function wF(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function zj(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var A=r.getRadiusAxis(),o=Math.min(a,i)/2,s=t.get("radius");s==null?s=[0,"100%"]:K(s)||(s=[0,s]);var l=[et(s[0],o),et(s[1],o)];A.inverse?A.setExtent(l[1],l[0]):A.setExtent(l[0],l[1])}function Wj(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(o){if(o.coordinateSystem===e){var s=o.getData();T(Vv(s,"radius"),function(l){a.scale.unionExtentFromData(s,l)}),T(Vv(s,"angle"),function(l){n.scale.unionExtentFromData(s,l)})}}),Os(n.scale,n.model),Os(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),A=360/n.scale.count();n.inverse?i[1]+=A:i[1]-=A,n.setExtent(i[0],i[1])}}function Xj(r){return r.mainType==="angleAxis"}function BF(r,t){var e;if(r.type=t.get("type"),r.scale=cp(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Xj(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var Yj={dimensions:uH,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new Kj(a+"");i.update=Wj;var A=i.getRadiusAxis(),o=i.getAngleAxis(),s=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");BF(A,s),BF(o,l),zj(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",be).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},Zj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function th(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function eh(r){var t=r.getRadiusAxis();return t.inverse?0:1}function _F(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var $j=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,A=i.getRadiusAxis().getExtent(),o=a.getTicksCoords(),s=a.getMinorTicksCoords(),l=Y(a.getViewLabels(),function(u){u=mt(u);var f=a.scale,c=f.type==="ordinal"?f.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(c),u});_F(l),_F(o),T(Zj,function(u){e.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&Jj[u](this.group,e,i,o,s,A,l)},this)}},t.type="angleAxis",t}(Io),Jj={axisLine:function(r,t,e,n,a,i){var A=t.getModel(["axisLine","lineStyle"]),o=e.getAngleAxis(),s=Math.PI/180,l=o.getExtent(),u=eh(e),f=u?0:1,c,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[f]===0?c=new So[h]({shape:{cx:e.cx,cy:e.cy,r:i[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:o.inverse},style:A.getLineStyle(),z2:1,silent:!0}):c=new Lf({shape:{cx:e.cx,cy:e.cy,r:i[u],r0:i[f]},style:A.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,n,a,i){var A=t.getModel("axisTick"),o=(A.get("inside")?-1:1)*A.get("length"),s=i[eh(e)],l=Y(n,function(u){return new Ue({shape:th(e,[s,s+o],u.coord)})});r.add(ln(l,{style:gt(A.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var A=t.getModel("axisTick"),o=t.getModel("minorTick"),s=(A.get("inside")?-1:1)*o.get("length"),l=i[eh(e)],u=[],f=0;fg?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(o&&o[v]){var _=o[v];yt(_)&&_.textStyle&&(h=new Yt(_.textStyle,s,s.ecModel))}var B=new Gt({silent:wr.isLabelSilent(t),style:oe(h,{x:p[0],y:p[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:m,verticalAlign:w})});if(r.add(B),u){var C=wr.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,Ct(B).eventData=C}},this)},splitLine:function(r,t,e,n,a,i){var A=t.getModel("splitLine"),o=A.getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=0;f=0?"p":"n",Q=x;_&&(n[u][E]||(n[u][E]={p:x,n:x}),Q=n[u][E][D]);var M=void 0,R=void 0,P=void 0,O=void 0;if(v.dim==="radius"){var G=v.dataToCoord(F)-x,X=s.dataToCoord(E);Math.abs(G)=O})}}})}function att(r){var t={};T(r,function(n,a){var i=n.getData(),A=n.coordinateSystem,o=A.getBaseAxis(),s=cH(A,o),l=o.getExtent(),u=o.type==="category"?o.getBandWidth():Math.abs(l[1]-l[0])/i.count(),f=t[s]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=f.stacks;t[s]=f;var h=fH(n);c[h]||f.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=et(n.get("barWidth"),u),d=et(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(f.remainedWidth,v),c[h].width=v,f.remainedWidth-=v),d&&(c[h].maxWidth=d),p!=null&&(f.gap=p),g!=null&&(f.categoryGap=g)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=et(n.categoryGap,A),s=et(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,f=(l-o)/(u+(u-1)*s);f=Math.max(f,0),T(i,function(d,p){var g=d.maxWidth;g&&g=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=CF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=CF(e);return a===this?this.pointToData(n):null},r}();function CF(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function dtt(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new vtt(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",be).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var ptt={create:dtt,dimensions:hH},SF=["x","y"],gtt=["width","height"],ytt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.coordinateSystem,l=Jy(s,1-rd(o)),u=s.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var c=xC(i),h=mtt[f](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=xw(a);AH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=xw(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=bC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.coordinateSystem,s=rd(A),l=Jy(o,s),u=[e.x,e.y];u[s]+=n[s],u[s]=Math.min(l[1],u[s]),u[s]=Math.max(l[0],u[s]);var f=Jy(o,1-s),c=(f[1]+f[0])/2,h=[c,c];return h[s]=u[s],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(SC),mtt={line:function(r,t,e){var n=TC([t,e[0]],[t,e[1]],rd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:oH([t-n/2,e[0]],[n,a],rd(r))}}};function rd(r){return r.isHorizontal()?0:1}function Jy(r,t){var e=r.getRect();return[e[SF[t]],e[SF[t]]+e[gtt[t]]]}var wtt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(de);function Btt(r){Lt($f),Io.registerAxisPointerClass("SingleAxisPointer",ytt),r.registerComponentView(wtt),r.registerComponentView(ftt),r.registerComponentModel(tv),Ns(r,"single",tv,tv.defaultOption),r.registerCoordinateSystem("single",ptt)}var _tt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=nl(e);r.prototype.init.apply(this,arguments),xF(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),xF(this.option,e)},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}(Rt);function xF(r,t){var e=r.cellSize,n;K(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=Y([0,1],function(i){return K5(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Yi(r,t,{type:"box",ignoreSize:a})}var Ctt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll();var A=e.coordinateSystem,o=A.getRangeInfo(),s=A.getOrient(),l=n.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,l,s,i),this._renderWeekText(e,l,o,s,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,A=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,f=new Nt({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:A});a.add(f)}},t.prototype._renderLines=function(e,n,a,i){var A=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),l=e.get(["splitLine","show"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,c=0;f.time<=n.end.time;c++){v(f.formatedDate),c===0&&(f=o.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=o.getDateInfo(h)}v(o.getNextNDay(n.end.time,1).formatedDate);function v(d){A._firstDayOfMonth.push(o.getDateInfo(d)),A._firstDayPoints.push(o.dataToRect([d],!1).tl);var p=A._getLinePointsOfOneWeek(e,d,a);A._tlpoints.push(p[0]),A._blpoints.push(p[p.length-1]),l&&A._drawSplitline(p,s,i)}l&&this._drawSplitline(A._getEdgesPoints(A._tlpoints,u,a),s,i),l&&this._drawSplitline(A._getEdgesPoints(A._blpoints,u,a),s,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],A=a==="horizontal"?0:1;return i[0][A]=i[0][A]-n/2,i[1][A]=i[1][A]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new xr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,A=i.getDateInfo(n),o=[],s=0;s<7;s++){var l=i.getNextNDay(A.time,s),u=i.dataToRect([l.time],!1);o[2*l.day]=u.tl,o[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?N5(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,A){var o=n[0],s=n[1],l=["center","bottom"];i==="bottom"?(s+=A,l=["center","top"]):i==="left"?o-=A:i==="right"?(o+=A,l=["center","top"]):s-=A;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:o,y:s,style:{align:l[0],verticalAlign:l[1]}}},t.prototype._renderYearText=function(e,n,a,i){var A=e.getModel("yearLabel");if(A.get("show")){var o=A.get("margin"),s=A.get("position");s||(s=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,f=(l[0][1]+l[1][1])/2,c=a==="horizontal"?0:1,h={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],f],right:[l[c][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=A.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new Gt({z2:30,style:oe(A,{text:g})});y.attr(this._yearTextPositionControl(y,h[s],a,s,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,n,a,i,A){var o="left",s="top",l=e[0],u=e[1];return a==="horizontal"?(u=u+A,n&&(o="center"),i==="start"&&(s="bottom")):(l=l+A,n&&(s="middle"),i==="start"&&(o="right")),{x:l,y:u,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,n,a,i){var A=e.getModel("monthLabel");if(A.get("show")){var o=A.get("nameMap"),s=A.get("margin"),l=A.get("position"),u=A.get("align"),f=[this._tlpoints,this._blpoints];(!o||nt(o))&&(o&&(n=L0(o)||n),o=n.get(["time","monthAbbr"])||[]);var c=l==="start"?0:1,h=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var v=u==="center",d=0;d=a.start.time&&n.timeo.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/qy)-Math.floor(e[0].time/qy)+1,i=new Date(e[0].time),A=i.getDate(),o=e[1].date.getDate();i.setDate(A+a-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-e[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-e[1].time)*l>0;)a-=l,i.setDate(s-l);var u=Math.floor((a+e[0].day+6)/7),f=n?-u+1:u-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:u,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&ea.lweek)return null;var i=(t-1)*7-a.fweek+e,A=new Date(a.start.time);return A.setDate(+a.start.d+i),this.getDateInfo(A)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function bF(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function xtt(r){r.registerComponentModel(_tt),r.registerComponentView(Ctt),r.registerCoordinateSystem("calendar",Stt)}function btt(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function TF(r,t){var e;return T(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function Ttt(r,t,e){var n=V({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Et(a,n,!0),Yi(a,n,{ignoreSize:!0}),AU(e,a),rh(e,a),rh(e,a,"shape"),rh(e,a,"style"),rh(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var vH=["transition","enterFrom","leaveTo"],Itt=vH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rh(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?vH:Itt,a=0;a=0;u--){var f=a[u],c=Ee(f.id,null),h=c!=null?A.get(c):null;if(h){var v=h.parent,g=an(v),y=v===i?{width:o,height:s}:{width:g.width,height:g.height},m={},w=np(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},m);if(!an(h).isNew&&w){for(var _=f.transition,B={},C=0;C=0)?B[S]=x:h[S]=x}zt(h,B,e,0)}else h.attr(m)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){ev(a,an(a).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(de);function bw(r){var t=st(IF,r)?IF[r]:l_(r),e=new t({});return an(e).type=r,e}function FF(r,t,e,n){var a=bw(e);return t.add(a),n.set(r,a),an(a).id=r,an(a).isNew=!0,a}function ev(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){ev(i,t,e,n)}),mp(r,t,n),e.removeKey(an(r).id))}function EF(r,t,e,n){r.isGroup||T([["cursor",gn.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=St(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),T(Ht(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Qtt(r){return r=V({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(iU),function(t){delete r[t]}),r}function Ltt(r,t,e){var n=Ct(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ct(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function Mtt(r){r.registerComponentModel(Ett),r.registerComponentView(Dtt),r.registerPreprocessor(function(t){var e=t.graphic;K(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var DF=["x","y","radius","angle","single"],Utt=["cartesian2d","polar","singleAxis"];function Ptt(r){var t=r.get("coordinateSystem");return Qt(Utt,t)>=0}function Li(r){return r+"Axis"}function Rtt(r,t){var e=ft(),n=[],a=ft();r.eachComponent({mainType:"dataZoom",query:t},function(u){a.get(u.uid)||o(u)});var i;do i=!1,r.eachComponent("dataZoom",A);while(i);function A(u){!a.get(u.uid)&&s(u)&&(o(u),i=!0)}function o(u){a.set(u.uid,!0),n.push(u),l(u)}function s(u){var f=!1;return u.eachTargetAxis(function(c,h){var v=e.get(c);v&&v[h]&&(f=!0)}),f}function l(u){u.eachTargetAxis(function(f,c){(e.get(f)||e.set(f,[]))[c]=!0})}return n}function dH(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Li(n),a);if(i){var A=i.getCoordSysModel();if(A){var o=A.uid,s=e.infoMap.get(o);s||(s={model:A,axisModels:[]},e.infoList.push(s),e.infoMap.set(o,s)),s.axisModels.push(i)}}}),e}var jy=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Bf=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=QF(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=QF(e);Et(this.option,e,!0),Et(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i,A){this._rangePropMode[A]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return T(DF,function(a){var i=this.getReferringComponents(Li(a),EK);if(i.specified){n=!0;var A=new jy;T(i.models,function(o){A.add(o.componentIndex)}),e.set(a,A)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var A=n==="vertical"?"y":"x",o=a.findComponents({mainType:A+"Axis"});s(o,A)}if(i){var o=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});s(o,"single")}function s(l,u){var f=l[0];if(f){var c=new jy;if(c.add(f.componentIndex),e.set(u,c),i=!1,u==="x"||u==="y"){var h=f.getReferringComponents("grid",be).models[0];h&&T(l,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",be).models[0]&&c.add(v.componentIndex)})}}}i&&T(DF,function(l){if(i){var u=a.findComponents({mainType:Li(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var f=new jy;f.add(u[0].componentIndex),e.set(l,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.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(e){var n=this._rangePropMode,a=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(i,A){var o=e[i[0]]!=null,s=e[i[1]]!=null;o&&!s?n[A]="percent":!o&&s?n[A]="value":a?n[A]=a[A]:o&&(n[A]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Li(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){T(a.indexList,function(A){e.call(n,i,A)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Li(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;T(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;iA[1];if(m&&!w&&!_)return!0;m&&(p=!0),w&&(v=!0),_&&(d=!0)}return p&&v&&d})}else ls(u,function(h){if(i==="empty")s.setData(l=l.map(h,function(d){return o(d)?d:NaN}));else{var v={};v[h]=A,l.selectRange(v)}});ls(u,function(h){l.setApproximateExtent(A,h)})}});function o(s){return s>=A[0]&&s<=A[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ls(["min","max"],function(a){var i=e.get(a+"Span"),A=e.get(a+"ValueSpan");A!=null&&(A=this.getAxisModel().axis.scale.parse(A)),A!=null?i=$t(n[0]+A,n,[0,100],!0):i!=null&&(A=$t(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=A},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=YL(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Ntt(r,t,e){var n=[1/0,-1/0];ls(e,function(A){wX(n,A.getData(),t)});var a=r.getAxisModel(),i=L2(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Vtt={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(A,o){var s=r.getComponent(Li(A),o);a(A,o,s,i)})})}t(function(a,i,A,o){A.__dzAxisProxy=null});var e=[];t(function(a,i,A,o){A.__dzAxisProxy||(A.__dzAxisProxy=new ktt(a,i,o,r),e.push(A.__dzAxisProxy))});var n=ft();return T(e,function(a){T(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Gtt(r){r.registerAction("dataZoom",function(t,e){var n=Rtt(e,t);T(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var MF=!1;function QC(r){MF||(MF=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Vtt),Gtt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ktt(r){r.registerComponentModel(Htt),r.registerComponentView(Ott),QC(r)}var on=function(){function r(){}return r}(),pH={};function us(r,t){pH[r]=t}function gH(r){return pH[r]}var ztt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;T(this.option.feature,function(n,a){var i=gH(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Et(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}(Rt);function Wtt(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},A=Qe(n,i,a);io(t.get("orient"),r,t.get("itemGap"),A.width,A.height),np(r,n,i,a)}function yH(r,t){var e=rl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Nt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Xtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var A=this.group;if(A.removeAll(),!e.get("show"))return;var o=+e.get("itemSize"),s=e.get("orient")==="vertical",l=e.get("feature")||{},u=this._features||(this._features={}),f=[];T(l,function(v,d){f.push(d)}),new Ya(this._featureNames||[],f).add(c).update(c).remove(xt(c,null)).execute(),this._featureNames=f;function c(v,d){var p=f[v],g=f[d],y=l[p],m=new Yt(y,e,e.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!g){if(Ytt(p))w={onclick:m.option.onclick,featureName:p};else{var _=gH(p);if(!_)return;w=new _}u[p]=w}else if(w=u[g],!w)return;w.uid=el("toolbox-feature"),w.model=m,w.ecModel=n,w.api=a;var B=w instanceof on;if(!p&&g){B&&w.dispose&&w.dispose(n,a);return}if(!m.get("show")||B&&w.unusable){B&&w.remove&&w.remove(n,a);return}h(m,w,p),m.setIconStatus=function(C,S){var x=this.option,b=this.iconPaths;x.iconStatus=x.iconStatus||{},x.iconStatus[C]=S,b[C]&&(S==="emphasis"?Wa:Xa)(b[C])},w instanceof on&&w.render&&w.render(m,n,a,i)}function h(v,d,p){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),m=d instanceof on&&d.getIcons?d.getIcons():v.get("icon"),w=v.get("title")||{},_,B;nt(m)?(_={},_[p]=m):_=m,nt(w)?(B={},B[p]=w):B=w;var C=v.iconPaths={};T(_,function(S,x){var b=Rf(S,{},{x:-o/2,y:-o/2,width:o,height:o});b.setStyle(g.getItemStyle());var I=b.ensureState("emphasis");I.style=y.getItemStyle();var F=new Gt({style:{text:B[x],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:u_({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});b.setTextContent(F),js({el:b,componentModel:e,itemName:x,formatterParamsExtra:{title:B[x]}}),b.__title=B[x],b.on("mouseover",function(){var E=y.getItemStyle(),D=s?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:y.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),b.setTextConfig({position:y.get("textPosition")||D}),F.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",x])!=="emphasis"&&a.leaveEmphasis(this),F.hide()}),(v.get(["iconStatus",x])==="emphasis"?Wa:Xa)(b),A.add(b),b.on("click",it(d.onclick,d,n,a,x)),C[x]=b})}Wtt(A,e,a),A.add(yH(A.getBoundingRect(),e)),s||A.eachChild(function(v){var d=v.__title,p=v.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),y=v.getTextContent(),m=y&&y.ensureState("emphasis");if(m&&!vt(m)&&d){var w=m.style||(m.style={}),_=Ef(d,Gt.makeFont(w)),B=v.x+A.x,C=v.y+A.y+o,S=!1;C+_.height>a.getHeight()&&(g.position="top",S=!0);var x=S?-5-_.height:o+10;B+_.width/2>a.getWidth()?(g.position=["100%",x],w.align="right"):B-_.width/2<0&&(g.position=[0,x],w.align="left")}})},t.prototype.updateView=function(e,n,a,i){T(this._features,function(A){A instanceof on&&A.updateView&&A.updateView(A.model,n,a,i)})},t.prototype.remove=function(e,n){T(this._features,function(a){a instanceof on&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){T(this._features,function(a){a instanceof on&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(de);function Ytt(r){return r.indexOf("my")===0}var Ztt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",A=n.getZr().painter.getType()==="svg",o=A?"svg":a.get("type",!0)||"png",s=n.getConnectedDataURL({type:o,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=Ut.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=s;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||A){var c=s.split(","),h=c[0].indexOf("base64")>-1,v=A?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,_=w.document;_.open("image/svg+xml","replace"),_.write(v),_.close(),w.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var B=a.get("lang"),C='',S=window.open();S.document.write(C),S.document.title=i}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(on),UF="__ec_magicType_stack__",$tt=[["line","bar"],["stack"]],Jtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return T(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,A=i.get(["seriesIndex",a]);if(PF[a]){var o={series:[]},s=function(f){var c=f.subType,h=f.id,v=PF[a](c,h,f,i);v&&(gt(v,f.option),o.series.push(v));var d=f.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=f.getReferringComponents(y,be).models[0],w=m.componentIndex;o[y]=o[y]||[];for(var _=0;_<=w;_++)o[y][w]=o[y][w]||{};o[y][w].boundaryGap=a==="bar"}}};T($tt,function(f){Qt(f,a)>=0&&T(f,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:A==null?null:{seriesIndex:A}},s);var l,u=a;a==="stack"&&(l=Et({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:o,newTitle:l,featureName:"magicType"})}},t}(on),PF={line:function(r,t,e,n){if(r==="bar")return Et({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Et({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===UF;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Et({id:t,stack:a?"":UF},n.get(["option","stack"])||{},!0)}};ma({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var wp=new Array(60).join("-"),Ks=" ";function qtt(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var A=i.getBaseAxis();if(A.type==="category"){var o=A.dim+"_"+A.index;t[o]||(t[o]={categoryAxis:A,valueAxis:i.getOtherAxis(A),series:[]},n.push({axisDim:A.dim,axisIndex:A.index})),t[o].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function jtt(r){var t=[];return T(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,A=i.dim,o=[" "].concat(Y(e.series,function(h){return h.name})),s=[a.model.getCategories()];T(e.series,function(h){var v=h.getRawData();s.push(h.getRawData().mapArray(v.mapDimension(A),function(d){return d}))});for(var l=[o.join(Ks)],u=0;u0,p={api:n,geo:s,mapOrGeoModel:t,data:o,isVisualEncodedByVisualMap:d,isGeo:A,transformInfoRaw:c};s.resourceType==="geoJSON"?this._buildGeoJSON(p):s.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),a=this._regionsGroup,i=t.transformInfoRaw,A=t.mapOrGeoModel,o=t.data,s=t.geo.projection,l=s&&s.stream;function u(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=[],d=!l&&s&&s.project,p=0;p=0)&&(c=a);var h=A?{normal:{align:"center",verticalAlign:"middle"}}:null;Je(t,Oe(n),{labelFetcher:c,labelDataIndex:f,defaultText:e},h);var v=t.getTextContent();if(v&&(VP(v).ignore=v.ignore,t.textConfig&&A)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(A[0]-d.x)/d.width*100+"%",(A[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function VT(r,t,e,n,a,i){r.data?r.data.setItemGraphicEl(i,t):Ct(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:n&&n.option||{}}}function GT(r,t,e,n,a){r.data||js({el:t,componentModel:a,itemName:e,itemTooltipOption:n.get("tooltip")})}function KT(r,t,e,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),A=i.get("focus");return ye(t,A,i.get("blurScope"),i.get("disabled")),r.isGeo&&N3(t,a,e),A}function zT(r,t,e){var n=[],a;function i(){a=[]}function A(){a.length&&(n.push(a),a=[])}var o=t({polygonStart:i,polygonEnd:A,lineStart:i,lineEnd:A,point:function(s,l){isFinite(s)&&isFinite(l)&&a.push([s,l])},sphere:function(){}});return!e&&o.polygonStart(),T(r,function(s){o.lineStart();for(var l=0;l-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}(se);function zZ(r,t){var e={};return T(r,function(n){n.each(n.mapDimension("value"),function(a,i){var A="ec-"+n.getName(i);e[A]=e[A]||[],isNaN(a)||e[A].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),A=0,o=1/0,s=-1/0,l=e[i].length,u=0;u1?(w.width=m,w.height=m/p):(w.height=m,w.width=m*p),w.y=y[1]-w.height/2,w.x=y[0]-w.width/2;else{var _=r.getBoxLayoutParams();_.aspect=p,w=Qe(_,{width:v,height:d})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function ZZ(r,t){T(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var $Z=function(){function r(){this.dimensions=KP}return r.prototype.create=function(t,e){var n=[];function a(A){return{nameProperty:A.get("nameProperty"),aspectScale:A.get("aspectScale"),projection:A.get("projection")}}t.eachComponent("geo",function(A,o){var s=A.get("map"),l=new ow(s+o,s,V({nameMap:A.get("nameMap")},a(A)));l.zoomLimit=A.get("scaleLimit"),n.push(l),A.coordinateSystem=l,l.model=A,l.resize=ZT,l.resize(A,e)}),t.eachSeries(function(A){var o=A.get("coordinateSystem");if(o==="geo"){var s=A.get("geoIndex")||0;A.coordinateSystem=n[s]}});var i={};return t.eachSeriesByType("map",function(A){if(!A.getHostGeoModel()){var o=A.getMapType();i[o]=i[o]||[],i[o].push(A)}}),T(i,function(A,o){var s=Y(A,function(u){return u.get("nameMap")}),l=new ow(o,o,V({nameMap:kB(s)},a(A[0])));l.zoomLimit=Ge.apply(null,Y(A,function(u){return u.get("scaleLimit")})),n.push(l),l.resize=ZT,l.resize(A[0],e),T(A,function(u){u.coordinateSystem=l,ZZ(l,u)})}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),A=ft(),o=0;o=0;A--){var o=a[A];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:A,thread:null},e.push(o)}}function r9(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){i9(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=A9(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function n9(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function JT(r){return arguments.length?r:l9}function nu(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function a9(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function i9(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function A9(r,t,e,n){if(t){for(var a=r,i=r,A=i.parentNode.children[0],o=t,s=a.hierNode.modifier,l=i.hierNode.modifier,u=A.hierNode.modifier,f=o.hierNode.modifier;o=yy(o),i=my(i),o&&i;){a=yy(a),A=my(A),a.hierNode.ancestor=r;var c=o.hierNode.prelim+f-i.hierNode.prelim-l+n(o,i);c>0&&(s9(o9(o,r,e),r,c),l+=c,s+=c),f+=o.hierNode.modifier,l+=i.hierNode.modifier,s+=a.hierNode.modifier,u+=A.hierNode.modifier}o&&!yy(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=f-s),i&&!my(A)&&(A.hierNode.thread=i,A.hierNode.modifier+=l-u,e=r)}return e}function yy(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function my(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function o9(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function s9(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function l9(r,t){return r.parentNode===t.parentNode?1:2}var u9=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),f9=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new u9},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,A=n.parentPoint,o=a[0],s=a[i-1];if(i===1){e.moveTo(A[0],A[1]),e.lineTo(o[0],o[1]);return}var l=n.orient,u=l==="TB"||l==="BT"?0:1,f=1-u,c=et(n.forkPosition,1),h=[];h[u]=A[u],h[f]=A[f]+(s[f]-A[f])*c,e.moveTo(A[0],A[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[u]=o[u],e.lineTo(h[0],h[1]),h[u]=s[u],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var v=1;vy.x,_||(w=w-Math.PI));var C=_?"left":"right",S=o.getModel("label"),x=S.get("rotate"),b=x*(Math.PI/180),I=p.getTextContent();I&&(p.setTextConfig({position:S.get("position")||C,rotation:x==null?-w:b,origin:"center"}),I.setStyle("verticalAlign","middle"))}var F=o.get(["emphasis","focus"]),E=F==="relative"?gv(A.getAncestorsIndices(),A.getDescendantIndices()):F==="ancestor"?A.getAncestorsIndices():F==="descendant"?A.getDescendantIndices():null;E&&(Ct(e).focus=E),h9(a,A,u,e,v,h,d,n),e.__edge&&(e.onHoverStateChange=function(D){if(D!=="blur"){var Q=A.parentNode&&r.getItemGraphicEl(A.parentNode.dataIndex);Q&&Q.hoverState===Qf||Tv(e.__edge,D)}})}function h9(r,t,e,n,a,i,A,o){var s=t.getModel(),l=r.get("edgeShape"),u=r.get("layout"),f=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=s.getModel("lineStyle").getLineStyle(),d=n.__edge;if(l==="curve")t.parentNode&&t.parentNode!==e&&(d||(d=n.__edge=new Mf({shape:sw(u,f,c,a,a)})),zt(d,{shape:sw(u,f,c,i,A)},r));else if(l==="polyline"&&u==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,g=[],y=0;ye&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=e.getData().tree.root,a=r.targetNode;if(nt(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function $P(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function rC(r,t){var e=$P(r);return Qt(e,t)>=0}function pp(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var _9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new Yt(a,this,this.ecModel),A=eC.createTree(n,this,o);function o(f){f.wrapMethod("getItemModel",function(c,h){var v=A.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(c.parentModel=i),c})}var s=0;A.eachNode("preorder",function(f){f.depth>s&&(s=f.depth)});var l=e.expandAndCollapse,u=l&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return A.root.eachNode("preorder",function(f){var c=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=c&&c.collapsed!=null?!c.collapsed:f.depth<=u}),A.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,A=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),l=o.name;o&&o!==A;)l=o.parentNode.name+"."+l,o=o.parentNode;return ke("nameValue",{name:l,value:s,noValue:isNaN(s)||s==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pp(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}(se);function C9(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var A=i.children;if(A.length)for(var o=0;o=0;i--)e.push(a[i])}}function S9(r,t){r.eachSeriesByType("tree",function(e){x9(e,t)})}function x9(r,t){var e=a9(r,t);r.layoutInfo=e;var n=r.get("layout"),a=0,i=0,A=null;n==="radial"?(a=2*Math.PI,i=Math.min(e.height,e.width)/2,A=JT(function(m,w){return(m.parentNode===w.parentNode?1:2)/m.depth})):(a=e.width,i=e.height,A=JT());var o=r.getData().tree.root,s=o.children[0];if(s){e9(o),C9(s,r9,A),o.hierNode.modifier=-s.hierNode.prelim,Pl(s,n9);var l=s,u=s,f=s;Pl(s,function(m){var w=m.getLayout().x;wu.getLayout().x&&(u=m),m.depth>f.depth&&(f=m)});var c=l===u?1:A(l,u)/2,h=c-l.getLayout().x,v=0,d=0,p=0,g=0;if(n==="radial")v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=(m.depth-1)*d;var w=nu(p,g);m.setLayout({x:w.x,y:w.y,rawX:p,rawY:g},!0)});else{var y=r.getOrient();y==="RL"||y==="LR"?(d=i/(u.getLayout().x+c+h),v=a/(f.depth-1||1),Pl(s,function(m){g=(m.getLayout().x+h)*d,p=y==="LR"?(m.depth-1)*v:a-(m.depth-1)*v,m.setLayout({x:p,y:g},!0)})):(y==="TB"||y==="BT")&&(v=a/(u.getLayout().x+c+h),d=i/(f.depth-1||1),Pl(s,function(m){p=(m.getLayout().x+h)*v,g=y==="TB"?(m.depth-1)*d:i-(m.depth-1)*d,m.setLayout({x:p,y:g},!0)}))}}}function b9(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),A=i.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(a.dataIndex,"style");V(o,A)})})}function T9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,A=i.getNodeByDataIndex(a);A.isExpand=!A.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,A=j_(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}function I9(r){r.registerChartView(c9),r.registerSeriesModel(_9),r.registerLayout(S9),r.registerVisual(b9),T9(r)}var rI=["treemapZoomToNode","treemapRender","treemapMove"];function F9(r){for(var t=0;t1;)i=i.parentNode;var A=P0(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",A)})}var E9=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};qP(a);var i=e.levels||[],A=this.designatedVisualItemStyle={},o=new Yt({itemStyle:A},this,n);i=e.levels=D9(i,n);var s=Y(i||[],function(f){return new Yt(f,o,n)},this),l=eC.createTree(a,this,u);function u(f){f.wrapMethod("getItemModel",function(c,h){var v=l.getNodeByDataIndex(h),d=v?s[v.depth]:null;return c.parentModel=d||o,c})}return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),A=this.getRawValue(e),o=i.getName(e);return ke("nameValue",{name:o,value:A})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=pp(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ft(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JP(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,scaleLimit:null,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}(se);function qP(r){var t=0;T(r.children,function(n){qP(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}function D9(r,t){var e=qt(t.get("color")),n=qt(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;T(r,function(o){var s=new Yt(o),l=s.get("color"),u=s.get("decal");(s.get(["itemStyle","color"])||l&&l!=="none")&&(a=!0),(s.get(["itemStyle","decal"])||u&&u!=="none")&&(i=!0)});var A=r[0]||(r[0]={});return a||(A.color=e.slice()),!i&&n&&(A.decal=n.slice()),r}}var Q9=8,nI=8,wy=5,L9=function(){function r(t){this.group=new _t,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),A=this.group;if(A.removeAll(),!(!i.get("show")||!n)){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,l),this._renderContent(t,f,o,s,l,u,a),np(A,f.pos,f.box)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=Ee(a.getModel().get("name"),""),A=n.getTextRect(i),o=Math.max(A.width+Q9*2,e.emptyItemWidth);e.totalWidth+=o+nI,e.renderList.push({node:a,text:i,width:o})}},r.prototype._renderContent=function(t,e,n,a,i,A,o){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),f=G5(e.pos,e.box),c=e.totalWidth,h=e.renderList,v=a.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var p=h[d],g=p.node,y=p.width,m=p.text;c>f.width&&(c-=y-l,y=l,m=null);var w=new Sr({shape:{points:M9(s,0,y,u,d===h.length-1,d===0)},style:gt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gt({style:oe(i,{text:m})}),textConfig:{position:"inside"},z2:Js*1e4,onclick:xt(o,g)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=oe(A,{text:m}),w.ensureState("emphasis").style=v,ye(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),U9(w,t,g),s+=y+nI}},r.prototype.remove=function(){this.group.removeAll()},r}();function M9(r,t,e,n,a,i){var A=[[a?r:r-wy,t],[r+e,t],[r+e,t+n],[a?r:r-wy,t+n]];return!i&&A.splice(2,0,[r+e+wy,t+n/2]),!a&&A.push([r,t+n/2]),A}function U9(r,t,e){Ct(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&pp(e,t)}}var P9=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aiI||Math.abs(e.dy)>iI)){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+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale;if(this._state!=="animating"){var A=this.seriesModel.getData().tree.root;if(!A)return;var o=A.getLayout();if(!o)return;var s=new Dt(o.x,o.y,o.width,o.height),l=null,u=this._controllerHost;l=u.zoomLimit;var f=u.zoom=u.zoom||1;if(f*=i,l){var c=l.min||0,h=l.max||1/0;f=Math.max(Math.min(h,f),c)}var v=f/u.zoom;u.zoom=f;var d=this.seriesModel.layoutInfo;n-=d.x,a-=d.y;var p=Wr();va(p,p,[-n,-a]),zB(p,p,[v,v]),va(p,p,[n,a]),s.applyTransform(p),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(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var A=n.findTarget(a.offsetX,a.offsetY);if(A){var o=A.node;if(o.getLayout().isLeafRoot)n._rootToNode(A);else if(i==="zoomToNode")n._zoomToNode(A);else if(i==="link"){var s=o.hostTree.data.getItemModel(o.dataIndex),l=s.get("link",!0),u=s.get("target",!0)||"blank";l&&Lv(l,u)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new L9(this.group))).render(e,n,a.node,function(A){i._state!=="animating"&&(rC(e.getViewRoot(),A)?i._rootToNode({node:A}):i._zoomToNode({node:A}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Rl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(A){var o=this._storage.background[A.getRawIndex()];if(o){var s=o.transformCoordToLocal(e,n),l=o.shape;if(l.x<=s[0]&&s[0]<=l.x+l.width&&l.y<=s[1]&&s[1]<=l.y+l.height)a={node:A,offsetX:s[0],offsetY:s[1]};else return!1}},this),a},t.type="treemap",t}(jt);function Rl(){return{nodeGroup:[],background:[],content:[]}}function V9(r,t,e,n,a,i,A,o,s,l){if(!A)return;var u=A.getLayout(),f=r.getData(),c=A.getModel();if(f.setItemGraphicEl(A.dataIndex,null),!u||!u.isInView)return;var h=u.width,v=u.height,d=u.borderWidth,p=u.invisible,g=A.getRawIndex(),y=o&&o.getRawIndex(),m=A.viewChildren,w=u.upperHeight,_=m&&m.length,B=c.getModel("itemStyle"),C=c.getModel(["emphasis","itemStyle"]),S=c.getModel(["blur","itemStyle"]),x=c.getModel(["select","itemStyle"]),b=B.get("borderRadius")||0,I=lt("nodeGroup",lw);if(!I)return;if(s.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),Zv(I).nodeWidth=h,Zv(I).nodeHeight=v,u.isAboveViewRoot)return I;var F=lt("background",aI,l,O9);F&&O(I,F,_&&u.upperLabelHeight);var E=c.getModel("emphasis"),D=E.get("focus"),Q=E.get("blurScope"),M=E.get("disabled"),R=D==="ancestor"?A.getAncestorsIndices():D==="descendant"?A.getDescendantIndices():D;if(_)rf(I)&&zA(I,!1),F&&(zA(F,!M),f.setItemGraphicEl(A.dataIndex,F),I0(F,R,Q));else{var P=lt("content",aI,l,k9);P&&G(I,P),F.disableMorphing=!0,F&&rf(F)&&zA(F,!1),zA(I,!M),f.setItemGraphicEl(A.dataIndex,I),I0(I,R,Q)}return I;function O(N,z,$){var q=Ct(z);if(q.dataIndex=A.dataIndex,q.seriesIndex=r.seriesIndex,z.setShape({x:0,y:0,width:h,height:v,r:b}),p)X(z);else{z.invisible=!1;var j=A.getVisual("style"),ct=j.stroke,L=sI(B);L.fill=ct;var U=MA(C);U.fill=C.get("borderColor");var k=MA(S);k.fill=S.get("borderColor");var Z=MA(x);if(Z.fill=x.get("borderColor"),$){var W=h-2*d;J(z,ct,j.opacity,{x:d,y:0,width:W,height:w})}else z.removeTextContent();z.setStyle(L),z.ensureState("emphasis").style=U,z.ensureState("blur").style=k,z.ensureState("select").style=Z,po(z)}N.add(z)}function G(N,z){var $=Ct(z);$.dataIndex=A.dataIndex,$.seriesIndex=r.seriesIndex;var q=Math.max(h-2*d,0),j=Math.max(v-2*d,0);if(z.culling=!0,z.setShape({x:d,y:d,width:q,height:j,r:b}),p)X(z);else{z.invisible=!1;var ct=A.getVisual("style"),L=ct.fill,U=sI(B);U.fill=L,U.decal=ct.decal;var k=MA(C),Z=MA(S),W=MA(x);J(z,L,ct.opacity,null),z.setStyle(U),z.ensureState("emphasis").style=k,z.ensureState("blur").style=Z,z.ensureState("select").style=W,po(z)}N.add(z)}function X(N){!N.invisible&&i.push(N)}function J(N,z,$,q){var j=c.getModel(q?oI:AI),ct=Ee(c.get("name"),null),L=j.getShallow("show");Je(N,Oe(c,q?oI:AI),{defaultText:L?ct:null,inheritColor:z,defaultOpacity:$,labelFetcher:r,labelDataIndex:A.dataIndex});var U=N.getTextContent();if(U){var k=U.style,Z=VB(k.padding||0);q&&(N.setTextConfig({layoutRect:q}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var tt=Math.max((q?q.width:N.shape.width)-Z[1]-Z[3],0),ot=Math.max((q?q.height:N.shape.height)-Z[0]-Z[2],0);(k.width!==tt||k.height!==ot)&&U.setStyle({width:tt,height:ot})},k.truncateMinChar=2,k.lineOverflow="truncate",At(k,q,u);var W=U.getState("emphasis");At(W?W.style:null,q,u)}}function At(N,z,$){var q=N?N.text:null;if(!z&&$.isLeafRoot&&q!=null){var j=r.get("drillDownIcon",!0);N.text=j?j+" "+q:q}}function lt(N,z,$,q){var j=y!=null&&e[N][y],ct=a[N];return j?(e[N][y]=null,wt(ct,j)):p||(j=new z,j instanceof gn&&(j.z2=G9($,q)),Bt(ct,j)),t[N][g]=j}function wt(N,z){var $=N[g]={};z instanceof lw?($.oldX=z.x,$.oldY=z.y):$.oldShape=V({},z.shape)}function Bt(N,z){var $=N[g]={},q=A.parentNode,j=z instanceof _t;if(q&&(!n||n.direction==="drillDown")){var ct=0,L=0,U=a.background[q.getRawIndex()];!n&&U&&U.oldShape&&(ct=U.oldShape.width,L=U.oldShape.height),j?($.oldX=0,$.oldY=L):$.oldShape={x:ct,y:L,width:0,height:0}}$.fadein=!j}}function G9(r,t){return r*H9+t}var gf=T,K9=yt,$v=-1,He=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=mt(t);this.type=n,this.mappingMethod=e,this._normalizeData=X9[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(By(a),z9(a)):e==="category"?a.categories?W9(a):By(a,!0):(Br(e!=="linear"||a.dataExtent),By(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ht(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){yt(t)?T(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=K(t)?[]:yt(t)?{}:(a=!0,null);return r.eachVisual(t,function(A,o){var s=e.call(n,A,o);a?i=s:i[o]=s}),i},r.retrieveVisuals=function(t){var e={},n;return t&&gf(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(K9(t)){var e=[];gf(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,A=0,o=e.length;A=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function By(r,t){var e=r.visual,n=[];yt(e)?gf(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),jP(r,n)}function Yc(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:uw([0,1])}}function lI(r){var t=this.option.visual;return t[Math.round($t(r,[0,1],[0,t.length-1],!0))]||{}}function Hl(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function au(r){var t=this.option.visual;return t[this.option.loop&&r!==$v?r%t.length:r]}function UA(){return this.option.visual[0]}function uw(r){return{linear:function(t){return $t(t,r,this.option.visual,!0)},category:au,piecewise:function(t,e){var n=fw.call(this,e);return n==null&&(n=$t(t,r,this.option.visual,!0)),n},fixed:UA}}function fw(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=He.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function jP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var n=Xr(e);return n||[0,0,0,1]})),t}var X9={linear:function(r){return $t(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=He.findPieceIndex(r,t,!0);if(e!=null)return $t(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??$v},fixed:Be};function Zc(r,t,e){return r?t<=e:t=e.length||d===e[d.depth]){var g=j9(a,s,d,p,v,n);eR(d,g,e,n)}})}}}function $9(r,t,e){var n=V({},t),a=e.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var A=r.get(i);a[i]=null,A!=null&&(n[i]=A)}),n}function uI(r){var t=_y(r,"color");if(t){var e=_y(r,"colorAlpha"),n=_y(r,"colorSaturation");return n&&(t=Cu(t,null,null,n)),e&&(t=Bv(t,e)),t}}function J9(r,t){return t!=null?Cu(t,null,null,r):null}function _y(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function q9(r,t,e,n,a,i){if(!(!i||!i.length)){var A=Cy(t,"color")||a.color!=null&&a.color!=="none"&&(Cy(t,"colorAlpha")||Cy(t,"colorSaturation"));if(A){var o=t.get("visualMin"),s=t.get("visualMax"),l=e.dataExtent.slice();o!=null&&ol[1]&&(l[1]=s);var u=t.get("colorMappingBy"),f={type:A.name,dataExtent:l,visual:A.range};f.type==="color"&&(u==="index"||u==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var c=new He(f);return tR(c).drColorMappingBy=u,c}}}function Cy(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function j9(r,t,e,n,a,i){var A=V({},t);if(a){var o=a.type,s=o==="color"&&tR(a).drColorMappingBy,l=s==="index"?n:s==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));A[o]=a.mapValueToVisual(l)}return A}var yf=Math.max,Jv=Math.min,fI=Ge,nC=T,rR=["itemStyle","borderWidth"],t7=["itemStyle","gapWidth"],e7=["upperLabel","show"],r7=["upperLabel","height"];const n7={seriesType:"treemap",reset:function(r,t,e,n){var a=e.getWidth(),i=e.getHeight(),A=r.option,o=Qe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),s=A.size||[],l=et(fI(o.width,s[0]),a),u=et(fI(o.height,s[1]),i),f=n&&n.type,c=["treemapZoomToNode","treemapRootToNode"],h=pf(n,c,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),p=$P(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?l7(r,h,d,l,u):v?[v.width,v.height]:[l,u],y=A.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:A.squareRatio,sort:y,leafDepth:A.leafDepth};d.hostTree.clearLayouts();var w={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(w),nR(d,m,!1,0),w=d.getLayout(),nC(p,function(B,C){var S=(p[C+1]||d).getValue();B.setLayout(V({dataExtent:[S,S],borderWidth:0,upperHeight:0},w))})}var _=r.getData().tree.root;_.setLayout(u7(o,v,h),!0),r.setLayoutInfo(o),aR(_,new Dt(-o.x,-o.y,a,i),p,d,0)}};function nR(r,t,e,n){var a,i;if(!r.isRemoved()){var A=r.getLayout();a=A.width,i=A.height;var o=r.getModel(),s=o.get(rR),l=o.get(t7)/2,u=iR(o),f=Math.max(s,u),c=s-l,h=f-l;r.setLayout({borderWidth:s,upperHeight:f,upperLabelHeight:u},!0),a=yf(a-2*c,0),i=yf(i-c-h,0);var v=a*i,d=a7(r,o,v,t,e,n);if(d.length){var p={x:c,y:h,width:a,height:i},g=Jv(a,i),y=1/0,m=[];m.area=0;for(var w=0,_=d.length;w<_;){var B=d[w];m.push(B),m.area+=B.getLayout().area;var C=s7(m,g,t.squareRatio);C<=y?(w++,y=C):(m.area-=m.pop().getLayout().area,cI(m,g,p,l,!1),g=Jv(p.width,p.height),m.length=m.area=0,y=1/0)}if(m.length&&cI(m,g,p,l,!0),!e){var S=o.get("childrenVisibleMin");S!=null&&v=0;s--){var l=a[n==="asc"?A-s-1:s].getValue();l/e*to[1]&&(o[1]=l)})),{sum:n,dataExtent:o}}function s7(r,t,e){for(var n=0,a=1/0,i=0,A=void 0,o=r.length;in&&(n=A));var s=r.area*r.area,l=t*t*e;return s?yf(l*n/s,s/(l*a)):1/0}function cI(r,t,e,n,a){var i=t===e.width?0:1,A=1-i,o=["x","y"],s=["width","height"],l=e[o[i]],u=t?r.area/t:0;(a||u>e[s[A]])&&(u=e[s[A]]);for(var f=0,c=r.length;fSS&&(l=SS),i=o}ln&&(n=t);var i=n%2?n+2:n+3;a=[];for(var A=0;A0&&(_[0]=-_[0],_[1]=-_[1]);var C=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var S=-Math.atan2(w[1],w[0]);f[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*g+u[0],i.y=-c[1]*y+u[1],v=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*C+u[0],i.y=u[1]+x,v=w[0]<0?"right":"left",i.originX=-g*C,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=B[0],i.y=B[1]+x,v="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*C+f[0],i.y=f[1]+x,v=w[0]>=0?"right":"left",i.originX=g*C,i.originY=-x;break}i.scaleX=i.scaleY=A,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||v})}},t}(_t),sC=function(){function r(t){this.group=new _t,this._LineCtor=t||oC}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var A=yI(t);t.diff(i).add(function(o){e._doAdd(t,o,A)}).update(function(o,s){e._doUpdate(i,t,s,o,A)}).remove(function(o){a.remove(i.getItemGraphicEl(o))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yI(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(o){!o.isGroup&&!I7(o)&&(o.incremental=!0,o.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function yI(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Oe(t)}}function mI(r){return isNaN(r[0])||isNaN(r[1])}function Iy(r){return r&&!mI(r[0])&&!mI(r[1])}var Fy=[],Ey=[],Dy=[],zo=Ve,Qy=jA,wI=Math.abs;function BI(r,t,e){for(var n=r[0],a=r[1],i=r[2],A=1/0,o,s=e*e,l=.1,u=.1;u<=.9;u+=.1){Fy[0]=zo(n[0],a[0],i[0],u),Fy[1]=zo(n[1],a[1],i[1],u);var f=wI(Qy(Fy,t)-s);f=0?o=o+l:o=o-l:v>=0?o=o-l:o=o+l}return o}function Ly(r,t){var e=[],n=$u,a=[[],[],[]],i=[[],[]],A=[];t/=2,r.eachEdge(function(o,s){var l=o.getLayout(),u=o.getVisual("fromSymbol"),f=o.getVisual("toSymbol");l.__original||(l.__original=[Ra(l[0]),Ra(l[1])],l[2]&&l.__original.push(Ra(l[2])));var c=l.__original;if(l[2]!=null){if(vr(a[0],c[0]),vr(a[1],c[2]),vr(a[2],c[1]),u&&u!=="none"){var h=Au(o.node1),v=BI(a,c[0],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],v,e),a[0][1]=e[3],a[1][1]=e[4]}if(f&&f!=="none"){var h=Au(o.node2),v=BI(a,c[1],h*t);n(a[0][0],a[1][0],a[2][0],v,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],v,e),a[1][1]=e[1],a[2][1]=e[2]}vr(l[0],a[0]),vr(l[1],a[2]),vr(l[2],a[1])}else{if(vr(i[0],c[0]),vr(i[1],c[1]),GA(A,i[1],i[0]),Ys(A,A),u&&u!=="none"){var h=Au(o.node1);jm(i[0],i[0],A,h*t)}if(f&&f!=="none"){var h=Au(o.node2);jm(i[1],i[1],A,-h*t)}vr(l[0],i[0]),vr(l[1],i[1])}})}function _I(r){return r.type==="view"}var F7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){var a=new Gf,i=new sC,A=this.group;this._controller=new Yf(n.getZr()),this._controllerHost={target:A},A.add(a.group),A.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,A=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,l=this.group;if(_I(A)){var u={x:A.x,y:A.y,scaleX:A.scaleX,scaleY:A.scaleY};this._firstRender?l.attr(u):zt(l,u,e)}Ly(e.getGraph(),iu(e));var f=e.getData();o.updateData(f);var c=e.getEdgeData();s.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,n,a),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var d=e.get("layout");f.graph.eachNode(function(m){var w=m.dataIndex,_=m.getGraphicEl(),B=m.getModel();if(_){_.off("drag").off("dragend");var C=B.get("draggable");C&&_.on("drag",function(x){switch(d){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[_.x,_.y]);break;case"circular":f.setItemLayout(w,[_.x,_.y]),m.setLayout({fixed:!0},!0),AC(e,"symbolSize",m,[x.offsetX,x.offsetY]),i.updateLayout(e);break;case"none":default:f.setItemLayout(w,[_.x,_.y]),iC(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),_.setDraggable(C,!!B.get("cursor"));var S=B.get(["emphasis","focus"]);S==="adjacency"&&(Ct(_).focus=m.getAdjacentDataIndices())}}),f.graph.eachEdge(function(m){var w=m.getGraphicEl(),_=m.getModel().get(["emphasis","focus"]);w&&_==="adjacency"&&(Ct(w).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(m){lR(m,p,g,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,n){var a=this;(function i(){e.step(function(A){a.updateLayout(a._model),(a._layouting=!A)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(e,n,a){var i=this,A=this._controller,o=this._controllerHost,s=this.group;if(A.setPointerChecker(function(l,u,f){var c=s.getBoundingRect();return c.applyTransform(s.transform),c.contain(u,f)&&!vp(l,a,e)}),!_I(e.coordinateSystem)){A.disable();return}A.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),A.off("pan").off("zoom").on("pan",function(l){$_(o,l.dx,l.dy),a.dispatchAction({seriesId:e.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){J_(o,l.scale,l.originX,l.originY),a.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY}),i._updateNodeAndLinkScale(),Ly(e.getGraph(),iu(e)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=iu(e);n.eachItemGraphicEl(function(i,A){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){Ly(e.getGraph(),iu(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(jt);function Wo(r){return"_EC_"+r}var E7=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[Wo(t)]){var a=new PA(t,e);return a.hostGraph=this,this.nodes.push(a),n[Wo(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Wo(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Kt(t)&&(t=this.nodes[t]),Kt(e)&&(e=this.nodes[e]),t instanceof PA||(t=a[Wo(t)]),e instanceof PA||(e=a[Wo(e)]),!(!t||!e)){var A=t.id+"-"+e.id,o=new fR(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),i[A]=o,o}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof PA&&(t=t.id),e instanceof PA&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof PA||(e=this._nodesMap[Wo(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",A=0;A=0&&s.node2.dataIndex>=0});for(var i=0,A=a.length;i=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}Ie(PA,cR("hostGraph","data"));Ie(fR,cR("hostGraph","edgeData"));function hR(r,t,e,n,a){for(var i=new E7(n),A=0;A "+c)),l++)}var h=e.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=ri(r,e);else{var d=Hf.get(h),p=d?d.dimensions||[]:[];Qt(p,"value")<0&&p.concat(["value"]);var g=kf(r,{coordDimensions:p,encodeDefine:e.getEncode()}).dimensions;v=new mr(g,e),v.initData(r)}var y=new mr(["value"],e);return y.initData(s,o),a&&a(v,y),YP({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var D7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Xf(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),co(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],A=this;if(i&&a){g7(this);var o=hR(i,a,this,!0,s);return T(o.edges,function(l){y7(l.node1,l.node2,this,l.dataIndex)},this),o.data}function s(l,u){l.wrapMethod("getItemModel",function(v){var d=A._categoriesModels,p=v.getShallow("category"),g=d[p];return g&&(g.parentModel=v.parentModel,v.parentModel=g),v});var f=Yt.prototype.getModel;function c(v,d){var p=f.call(this,v,d);return p.resolveParentPath=h,p}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=c,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var d=v.slice();return v[0]==="label"?d[0]="edgeLabel":v[1]==="label"&&(d[1]="edgeLabel"),d}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(e,n,a){if(a==="edge"){var i=this.getData(),A=this.getDataParams(e,a),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),u=[];return s!=null&&u.push(s),l!=null&&u.push(l),ke("nameValue",{name:u.join(" > "),value:A.value,noValue:A.value==null})}var f=HU({series:this,dataIndex:e,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new mr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.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}(se),Q7={type:"graphRoam",event:"graphRoam",update:"none"};function L7(r){r.registerChartView(F7),r.registerSeriesModel(D7),r.registerProcessor(c7),r.registerVisual(h7),r.registerVisual(v7),r.registerLayout(m7),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,B7),r.registerLayout(C7),r.registerCoordinateSystem("graphView",{dimensions:Zf.dimensions,create:x7}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Be),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Be),r.registerAction(Q7,function(t,e,n){e.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,A=j_(i,t,void 0,n);a.setCenter&&a.setCenter(A.center),a.setZoom&&a.setZoom(A.zoom)})})}var M7=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),U7=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new M7},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,A=n.r,o=n.width,s=n.angle,l=n.x-a(s)*o*(o>=A/3?1:2),u=n.y-i(s)*o*(o>=A/3?1:2);s=n.angle-Math.PI/2,e.moveTo(l,u),e.lineTo(n.x+a(s)*o,n.y+i(s)*o),e.lineTo(n.x+a(n.angle)*A,n.y+i(n.angle)*A),e.lineTo(n.x-a(s)*o,n.y-i(s)*o),e.lineTo(l,u)},t}(Mt);function P7(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),A=et(e[0],t.getWidth()),o=et(e[1],t.getHeight()),s=et(r.get("radius"),i/2);return{cx:A,cy:o,r:s}}function Jc(r,t){var e=r==null?"":r+"";return t&&(nt(t)?e=t.replace("{value}",e):vt(t)&&(e=t(r))),e}var R7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),A=P7(e,a);this._renderMain(e,n,a,i,A),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,A){var o=this.group,s=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,f=e.getModel("axisLine"),c=f.get("roundCap"),h=c?Wv:Cr,v=f.get("show"),d=f.getModel("lineStyle"),p=d.get("width"),g=[l,u];t_(g,!s),l=g[0],u=g[1];for(var y=u-l,m=l,w=[],_=0;v&&_=x&&(b===0?0:i[b-1][0])Math.PI/2&&(lt+=Math.PI)):At==="tangential"?lt=-S-Math.PI/2:Kt(At)&&(lt=At*Math.PI/180),lt===0?f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:Q<-.8?"top":Q>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new Gt({style:oe(m,{text:O,x:X,y:J,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:X,originY:J,rotation:lt}))}if(y.get("show")&&M!==w){var R=y.get("distance");R=R?R+u:u;for(var wt=0;wt<=_;wt++){D=Math.cos(S),Q=Math.sin(S);var Bt=new Pe({shape:{x1:D*(v-R)+c,y1:Q*(v-R)+h,x2:D*(v-C-R)+c,y2:Q*(v-C-R)+h},silent:!0,style:F});F.stroke==="auto"&&Bt.setStyle({stroke:i((M+wt/_)/w)}),f.add(Bt),S+=b}S-=b}else S+=x}},t.prototype._renderPointer=function(e,n,a,i,A,o,s,l,u){var f=this.group,c=this._data,h=this._progressEls,v=[],d=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),y=e.getData(),m=y.mapDimension("value"),w=+e.get("min"),_=+e.get("max"),B=[w,_],C=[o,s];function S(b,I){var F=y.getItemModel(b),E=F.getModel("pointer"),D=et(E.get("width"),A.r),Q=et(E.get("length"),A.r),M=e.get(["pointer","icon"]),R=E.get("offsetCenter"),P=et(R[0],A.r),O=et(R[1],A.r),G=E.get("keepAspect"),X;return M?X=Te(M,P-D/2,O-Q,D,Q,null,G):X=new U7({shape:{angle:-Math.PI/2,width:D,r:Q,x:P,y:O}}),X.rotation=-(I+Math.PI/2),X.x=A.cx,X.y=A.cy,X}function x(b,I){var F=p.get("roundCap"),E=F?Wv:Cr,D=p.get("overlap"),Q=D?p.get("width"):u/y.count(),M=D?A.r-Q:A.r-(b+1)*Q,R=D?A.r:A.r-b*Q,P=new E({shape:{startAngle:o,endAngle:I,cx:A.cx,cy:A.cy,clockwise:l,r0:M,r:R}});return D&&(P.z2=_-y.get(m,b)%_),P}(g||d)&&(y.diff(c).add(function(b){var I=y.get(m,b);if(d){var F=S(b,o);ue(F,{rotation:-((isNaN(+I)?C[0]:$t(I,B,C,!0))+Math.PI/2)},e),f.add(F),y.setItemGraphicEl(b,F)}if(g){var E=x(b,o),D=p.get("clip");ue(E,{shape:{endAngle:$t(I,B,C,D)}},e),f.add(E),x0(e.seriesIndex,y.dataType,b,E),v[b]=E}}).update(function(b,I){var F=y.get(m,b);if(d){var E=c.getItemGraphicEl(I),D=E?E.rotation:o,Q=S(b,D);Q.rotation=D,zt(Q,{rotation:-((isNaN(+F)?C[0]:$t(F,B,C,!0))+Math.PI/2)},e),f.add(Q),y.setItemGraphicEl(b,Q)}if(g){var M=h[I],R=M?M.shape.endAngle:o,P=x(b,R),O=p.get("clip");zt(P,{shape:{endAngle:$t(F,B,C,O)}},e),f.add(P),x0(e.seriesIndex,y.dataType,b,P),v[b]=P}}).execute(),y.each(function(b){var I=y.getItemModel(b),F=I.getModel("emphasis"),E=F.get("focus"),D=F.get("blurScope"),Q=F.get("disabled");if(d){var M=y.getItemGraphicEl(b),R=y.getItemVisual(b,"style"),P=R.fill;if(M instanceof Ke){var O=M.style;M.useStyle(V({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},R))}else M.useStyle(R),M.type!=="pointer"&&M.setColor(P);M.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),M.style.fill==="auto"&&M.setStyle("fill",i($t(y.get(m,b),B,[0,1],!0))),M.z2EmphasisLift=0,$e(M,I),ye(M,E,D,Q)}if(g){var G=v[b];G.useStyle(y.getItemVisual(b,"style")),G.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,$e(G,I),ye(G,E,D,Q)}}),this._progressEls=v)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var A=a.get("size"),o=a.get("icon"),s=a.get("offsetCenter"),l=a.get("keepAspect"),u=Te(o,n.cx-A/2+et(s[0],n.r),n.cy-A/2+et(s[1],n.r),A,A,null,l);u.z2=a.get("showAbove")?1:0,u.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,A){var o=this,s=e.getData(),l=s.mapDimension("value"),u=+e.get("min"),f=+e.get("max"),c=new _t,h=[],v=[],d=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add(function(g){h[g]=new Gt({silent:!0}),v[g]=new Gt({silent:!0})}).update(function(g,y){h[g]=o._titleEls[y],v[g]=o._detailEls[y]}).execute(),s.each(function(g){var y=s.getItemModel(g),m=s.get(l,g),w=new _t,_=i($t(m,[u,f],[0,1],!0)),B=y.getModel("title");if(B.get("show")){var C=B.get("offsetCenter"),S=A.cx+et(C[0],A.r),x=A.cy+et(C[1],A.r),b=h[g];b.attr({z2:p?0:2,style:oe(B,{x:S,y:x,text:s.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:_})}),w.add(b)}var I=y.getModel("detail");if(I.get("show")){var F=I.get("offsetCenter"),E=A.cx+et(F[0],A.r),D=A.cy+et(F[1],A.r),Q=et(I.get("width"),A.r),M=et(I.get("height"),A.r),R=e.get(["progress","show"])?s.getItemVisual(g,"style").fill:_,b=v[g],P=I.get("formatter");b.attr({z2:p?0:2,style:oe(I,{x:E,y:D,text:Jc(m,P),width:isNaN(Q)?null:Q,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:R})}),VM(b,{normal:I},m,function(G){return Jc(G,P)}),d&&GM(b,g,s,e,{getFormattedLabel:function(G,X,J,At,lt,wt){return Jc(wt?wt.interpolatedValue:m,P)}}),w.add(b)}c.add(w)}),this.group.add(c),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(jt),H7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return ll(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}(se);function O7(r){r.registerChartView(R7),r.registerSeriesModel(H7)}var k7=["itemStyle","opacity"],N7=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=a,A=new xr,o=new Gt;return i.setTextContent(o),a.setTextGuideLine(A),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,A=e.hostModel,o=e.getItemModel(n),s=e.getItemLayout(n),l=o.getModel("emphasis"),u=o.get(k7);u=u??1,a||Rn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:s.points}),i.style.opacity=0,ue(i,{style:{opacity:u}},A,n)):zt(i,{style:{opacity:u},shape:{points:s.points}},A,n),$e(i,o),this._updateLabel(e,n),ye(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),A=a.getTextContent(),o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=l.label,f=e.getItemVisual(n,"style"),c=f.fill;Je(A,Oe(s),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:e.getName(n)},{normal:{align:u.textAlign,verticalAlign:u.verticalAlign}}),a.setTextConfig({local:!0,inside:!!u.inside,insideStroke:c,outsideFill:c});var h=u.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new It(h[0][0],h[0][1]):null},zt(A,{style:{x:u.x,y:u.y}},o,n),A.attr({rotation:u.rotation,originX:u.x,originY:u.y,z2:10}),O_(a,k_(s),{stroke:c})},t}(Sr),V7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this._data,o=this.group;i.diff(A).add(function(s){var l=new N7(i,s);i.setItemGraphicEl(s,l),o.add(l)}).update(function(s,l){var u=A.getItemGraphicEl(l);u.updateData(i,s),o.add(u),i.setItemGraphicEl(s,u)}).remove(function(s){var l=A.getItemGraphicEl(s);nf(l,e,s)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(jt),G7=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Xf(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return ll(this,{coordDimensions:["value"],encodeDefaulter:xt(g_,this)})},t.prototype._defaultLabelLine=function(e){co(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),A=n.getSum(i);return a.percent=A?+(n.get(i,e)/A*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}(se);function K7(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function z7(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(s){return s}),a=[],i=t==="ascending",A=0,o=r.count();Ao$)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Uy(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Uy(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var u$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Et(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=Jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);T(a,function(i){e.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}(Rt),f$=function(r){H(t,r);function t(e,n,a,i,A){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o.axisIndex=A,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(On);function Fo(r,t,e,n,a,i){r=r||0;var A=e[1]-e[0];if(a!=null&&(a=Xo(a,[0,A])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var o=Math.abs(t[1]-t[0]);o=Xo(o,[0,A]),a=i=Xo(o,[a,i]),n=0}t[0]=Xo(t[0],e),t[1]=Xo(t[1],e);var s=Py(t,n);t[n]+=r;var l=a||0,u=e.slice();s.sign<0?u[0]+=l:u[1]-=l,t[n]=Xo(t[n],u);var f;return f=Py(t,n),a!=null&&(f.sign!==s.sign||f.spani&&(t[1-n]=t[n]+f.sign*i),t}function Py(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Xo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Ry=T,dR=Math.min,pR=Math.max,xI=Math.floor,c$=Math.ceil,bI=me,h$=Math.PI,v$=function(){function r(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;Ry(a,function(A,o){var s=i[o],l=e.getComponent("parallelAxis",s),u=this._axesMap.set(A,new f$(A,cp(l),[0,0],l.get("type"),s)),f=u.type==="category";u.onBand=f&&l.get("boundaryGap"),u.inverse=l.get("inverse"),l.axis=u,u.model=l,u.coordinateSystem=l.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,A=t[1-i],o=t[i];return A>=n&&A<=n+e.axisLength&&o>=a&&o<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var a=n.getData();Ry(this.dimensions,function(i){var A=this._axesMap.get(i);A.scale.unionExtentFromData(a,a.mapDimension(i)),Os(A.scale,A.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=Qe(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),A=i==="horizontal"?0:1,o=e[a[A]],s=[0,o],l=this.dimensions.length,u=qc(t.get("axisExpandWidth"),s),f=qc(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&l>3&&l>f&&f>1&&u>0&&o>0,h=t.get("axisExpandWindow"),v;if(h)v=qc(h[1]-h[0],s),h[1]=h[0]+v;else{v=qc(u*(f-1),s);var d=t.get("axisExpandCenter")||xI(l/2);h=[u*d-v/2],h[1]=h[0]+v}var p=(o-v)/(l-f);p<3&&(p=0);var g=[xI(bI(h[0]/u,1))+1,c$(bI(h[1]/u,1))-1],y=p/u*h[0];return{layout:i,pixelDimIndex:A,layoutBase:e[n[A]],layoutLength:o,axisBase:e[n[1-A]],axisLength:e[a[1-A]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:p,axisExpandWindow:h,axisCount:l,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(A){var o=[0,a.axisLength],s=A.inverse?1:0;A.setExtent(o[s],o[1-s])}),Ry(n,function(A,o){var s=(a.axisExpandable?p$:d$)(o,a),l={horizontal:{x:s.position,y:a.axisLength},vertical:{x:0,y:s.position}},u={horizontal:h$/2,vertical:0},f=[l[i].x+t.x,l[i].y+t.y],c=u[i],h=Wr();Co(h,h,c),va(h,h,f),this._axesLayout[A]={position:f,rotation:c,transform:h,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,A=this.dimensions,o=[],s=[];T(A,function(p){o.push(t.mapDimension(p)),s.push(i.get(p).model)});for(var l=this.hasAxisBrushed(),u=n;ui*(1-f[0])?(l="jump",s=o-i*(1-f[2])):(s=o-i*f[1])>=0&&(s=o-i*(1-f[1]))<=0&&(s=0),s*=e.axisExpandWidth/u,s?Fo(s,a,A,"all"):l="none";else{var h=a[1]-a[0],v=A[1]*o/h;a=[pR(0,v-h/2)],a[1]=dR(A[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:l}},r}();function qc(r,t){return dR(pR(r,t[0]),t[1])}function d$(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function p$(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,A=t.winInnerIndices,o,s=i,l=!1,u;return r=0;a--)fn(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,A=n.length;iB$}function _R(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function CR(r,t,e,n){var a=new _t;return a.add(new Nt({name:"main",style:hC(e),silent:!0,draggable:!0,cursor:"move",drift:xt(FI,r,t,a,["n","s","w","e"]),ondragend:xt(mo,t,{isEnd:!0})})),T(n,function(i){a.add(new Nt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(FI,r,t,a,i),ondragend:xt(mo,t,{isEnd:!0})}))}),a}function SR(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=Vs(a,_$),A=e[0][0],o=e[1][0],s=A-a/2,l=o-a/2,u=e[0][1],f=e[1][1],c=u-i+a/2,h=f-i+a/2,v=u-A,d=f-o,p=v+a,g=d+a;Ta(r,t,"main",A,o,v,d),n.transformable&&(Ta(r,t,"w",s,l,i,g),Ta(r,t,"e",c,l,i,g),Ta(r,t,"n",s,l,p,i),Ta(r,t,"s",s,h,p,i),Ta(r,t,"nw",s,l,i,i),Ta(r,t,"ne",c,l,i,i),Ta(r,t,"sw",s,h,i,i),Ta(r,t,"se",c,h,i,i))}function gw(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(hC(e)),a.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var A=t.childOfName(i.join("")),o=i.length===1?yw(r,i[0]):I$(r,i);A&&A.attr({silent:!n,invisible:!n,cursor:n?S$[o]+"-resize":null})})}function Ta(r,t,e,n,a,i,A){var o=t.childOfName(e);o&&o.setShape(E$(vC(r,t,[[n,a],[n+i,a+A]])))}function hC(r){return gt({strokeNoScale:!0},r.brushStyle)}function xR(r,t,e,n){var a=[wf(r,e),wf(t,n)],i=[Vs(r,e),Vs(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function T$(r){return ao(r.group)}function yw(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=$d(e[t],T$(r));return n[a]}function I$(r,t){var e=[yw(r,t[0]),yw(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function FI(r,t,e,n,a,i){var A=e.__brushOption,o=r.toRectRange(A.range),s=bR(t,a,i);T(n,function(l){var u=C$[l];o[u[0]][u[1]]+=s[u[0]]}),A.range=r.fromRectRange(xR(o[0][0],o[1][0],o[0][1],o[1][1])),uC(t,e),mo(t,{isEnd:!1})}function F$(r,t,e,n){var a=t.__brushOption.range,i=bR(r,e,n);T(a,function(A){A[0]+=i[0],A[1]+=i[1]}),uC(r,t),mo(r,{isEnd:!1})}function bR(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function vC(r,t,e){var n=BR(r,t);return n&&n!==yo?n.clipPath(e,r._transform):mt(e)}function E$(r){var t=wf(r[0][0],r[1][0]),e=wf(r[0][1],r[1][1]),n=Vs(r[0][0],r[1][0]),a=Vs(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function D$(r,t,e){if(!(!r._brushType||L$(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=cC(r,t,e);if(!r._dragging)for(var A=0;An.getWidth()||e<0||e>n.getHeight()}var yp={lineX:QI(0),lineY:QI(1),rect:{createCover:function(r,t){function e(n){return n}return CR({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=_R(r);return xR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){SR(r,t,e,n)},updateCommon:gw,contain:ww},polygon:{createCover:function(r,t){var e=new _t;return e.add(new xr({name:"main",style:hC(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Sr({name:"main",draggable:!0,drift:xt(F$,r,t),ondragend:xt(mo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:vC(r,t,e)})},updateCommon:gw,contain:ww}};function QI(r){return{createCover:function(t,e){return CR({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=_R(t),n=wf(e[0][r],e[1][r]),a=Vs(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,A=BR(t,e);if(A!==yo&&A.getLinearBrushOtherExtent)i=A.getLinearBrushOtherExtent(r);else{var o=t._zr;i=[0,[o.getWidth(),o.getHeight()][1-r]]}var s=[n,i];r&&s.reverse(),SR(t,e,s,a)},updateCommon:gw,contain:ww}}function IR(r){return r=dC(r),function(t){return OM(t,r)}}function FR(r,t){return r=dC(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function ER(r,t,e){var n=dC(r);return function(a,i){return n.contain(i[0],i[1])&&!vp(a,t,e)}}function dC(r){return Dt.create(r)}var M$=["axisLine","axisTickLabel","axisName"],U$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new lC(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!P$(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var A=this._axisGroup;if(this._axisGroup=new _t,this.group.add(this._axisGroup),!!e.get("show")){var o=H$(e,n),s=o.coordinateSystem,l=e.getAreaSelectStyle(),u=l.width,f=e.axis.dim,c=s.getAxisLayout(f),h=V({strokeContainThreshold:u},c),v=new wr(e,h);T(M$,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,l,e,o,u,a),Pf(A,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,A,o){var s=a.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,Math.abs(l)*.1),f=Dt.create({x:s[0],y:-A/2,width:l,height:A});f.x-=u,f.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:IR(f),isTargetByCursor:ER(f,o,i),getLinearBrushOtherExtent:FR(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(R$(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,A=Y(n,function(o){return[i.coordToData(o.range[0],!0),i.coordToData(o.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:A})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(de);function P$(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function R$(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function H$(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var O$={type:"axisAreaSelect",event:"axisAreaSelected"};function k$(r){r.registerAction(O$,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var N$={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DR(r){r.registerComponentView(s$),r.registerComponentModel(u$),r.registerCoordinateSystem("parallel",y$),r.registerPreprocessor(a$),r.registerComponentModel(dw),r.registerComponentView(U$),Ns(r,"parallel",dw,N$),k$(r)}function V$(r){Lt(DR),r.registerChartView($7),r.registerSeriesModel(j7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,n$)}var G$=function(){function r(){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 r}(),K$=function(r){H(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new G$},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){Wa(this)},t.prototype.downplay=function(){Xa(this)},t}(Mt),z$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,n,a){var i=this,A=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,A.eachEdge(function(v){var d=new K$,p=Ct(d);p.dataIndex=v.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=v.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),w=v.node1.getLayout(),_=v.node1.getModel(),B=_.get("localX"),C=_.get("localY"),S=v.node2.getLayout(),x=v.node2.getModel(),b=x.get("localX"),I=x.get("localY"),F=v.getLayout(),E,D,Q,M,R,P,O,G;d.shape.extent=Math.max(1,F.dy),d.shape.orient=h,h==="vertical"?(E=(B!=null?B*l:w.x)+F.sy,D=(C!=null?C*u:w.y)+w.dy,Q=(b!=null?b*l:S.x)+F.ty,M=I!=null?I*u:S.y,R=E,P=D*(1-m)+M*m,O=Q,G=D*m+M*(1-m)):(E=(B!=null?B*l:w.x)+w.dx,D=(C!=null?C*u:w.y)+F.sy,Q=b!=null?b*l:S.x,M=(I!=null?I*u:S.y)+F.ty,R=E*(1-m)+Q*m,P=D,O=E*m+Q*(1-m),G=M),d.setShape({x1:E,y1:D,x2:Q,y2:M,cpx1:R,cpy1:P,cpx2:O,cpy2:G}),d.useStyle(y.getItemStyle()),LI(d.style,h,v);var X=""+g.get("value"),J=Oe(g,"edgeLabel");Je(d,J,{labelFetcher:{getFormattedLabel:function(wt,Bt,N,z,$,q){return e.getFormattedLabel(wt,Bt,"edge",z,ua($,J.normal&&J.normal.get("formatter"),X),q)}},labelDataIndex:v.dataIndex,defaultText:X}),d.setTextConfig({position:"inside"});var At=g.getModel("emphasis");$e(d,g,"lineStyle",function(wt){var Bt=wt.getItemStyle();return LI(Bt,h,v),Bt}),o.add(d),c.setItemGraphicEl(v.dataIndex,d);var lt=At.get("focus");ye(d,lt==="adjacency"?v.getAdjacentDataIndices():lt==="trajectory"?v.getTrajectoryDataIndices():lt,At.get("blurScope"),At.get("disabled"))}),A.eachNode(function(v){var d=v.getLayout(),p=v.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),w=p.get(["itemStyle","borderRadius"])||0,_=new Nt({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:w},style:p.getModel("itemStyle").getItemStyle(),z2:10});Je(_,Oe(p),{labelFetcher:{getFormattedLabel:function(C,S){return e.getFormattedLabel(C,S,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),_.disableLabelAnimation=!0,_.setStyle("fill",v.getVisual("color")),_.setStyle("decal",v.getVisual("style").decal),$e(_,p),o.add(_),f.setItemGraphicEl(v.dataIndex,_),Ct(_).dataType="node";var B=m.get("focus");ye(_,B==="adjacency"?v.getAdjacentDataIndices():B==="trajectory"?v.getTrajectoryDataIndices():B,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(v,d){var p=f.getItemModel(d);p.get("draggable")&&(v.drift=function(g,y){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(W$(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(jt);function LI(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");nt(n)&&nt(a)&&(r.fill=new Uf(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function W$(r,t,e){var n=new Nt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ue(n,{shape:{width:r.width+20}},t,e),n}var X$=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){var a=e.edges||e.links,i=e.data||e.nodes,A=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s=0&&(o[A[s].depth]=new Yt(A[s],this,n));if(i&&a){var l=hR(i,a,this,!0,u);return l.data}function u(f,c){f.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getData().getItemLayout(v);if(p){var g=p.depth,y=d.levelModels[g];y&&(h.parentModel=y)}return h}),c.wrapMethod("getItemModel",function(h,v){var d=h.parentModel,p=d.getGraph().getEdgeByIndex(v),g=p.node1.getLayout();if(g){var y=g.depth,m=d.levelModels[y];m&&(h.parentModel=m)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];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(e,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var A=this.getDataParams(e,a),o=A.data,s=A.value,l=o.source+" -- "+o.target;return ke("nameValue",{name:l,value:s,noValue:i(s)})}else{var u=this.getGraph().getNodeByIndex(e),f=u.getLayout().value,c=this.getDataParams(e,a).data.name;return ke("nameValue",{name:c!=null?c+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),A=i.getLayout().value;a.value=A}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}(se);function Y$(r,t){r.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=Z$(e,t);e.layoutInfo=i;var A=i.width,o=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;J$(l);var f=Jt(l,function(d){return d.getLayout().value===0}),c=f.length!==0?0:e.get("layoutIterations"),h=e.get("orient"),v=e.get("nodeAlign");$$(l,u,n,a,A,o,c,h,v)})}function Z$(r,t){return Qe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function $$(r,t,e,n,a,i,A,o,s){q$(r,t,e,a,i,o,s),rJ(r,t,i,a,n,A,o),fJ(r,o)}function J$(r){T(r,function(t){var e=ki(t.outEdges,qv),n=ki(t.inEdges,qv),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function q$(r,t,e,n,a,i,A){for(var o=[],s=[],l=[],u=[],f=0,c=0;c=0;g&&p.depth>h&&(h=p.depth),d.setLayout({depth:g?p.depth:f},!0),i==="vertical"?d.setLayout({dy:e},!0):d.setLayout({dx:e},!0);for(var y=0;yf-1?h:f-1;A&&A!=="left"&&j$(r,A,i,C);var S=i==="vertical"?(a-e)/C:(n-e)/C;eJ(r,S,i)}function QR(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function j$(r,t,e,n){if(t==="right"){for(var a=[],i=r,A=0;i.length;){for(var o=0;o0;i--)s*=.99,iJ(o,s,A),Hy(o,a,e,n,A),uJ(o,s,A),Hy(o,a,e,n,A)}function nJ(r,t){var e=[],n=t==="vertical"?"y":"x",a=B0(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,A){return i-A}),T(a.keys,function(i){e.push(a.buckets.get(i))}),e}function aJ(r,t,e,n,a,i){var A=1/0;T(r,function(o){var s=o.length,l=0;T(o,function(f){l+=f.getLayout().value});var u=i==="vertical"?(n-(s-1)*a)/l:(e-(s-1)*a)/l;u0&&(o=s.getLayout()[i]+l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]+s.getLayout()[c]+t;var v=a==="vertical"?n:e;if(l=u-t-v,l>0){o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(var h=f-2;h>=0;--h)s=A[h],l=s.getLayout()[i]+s.getLayout()[c]+t-u,l>0&&(o=s.getLayout()[i]-l,a==="vertical"?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[i]}})}function iJ(r,t,e){T(r.slice().reverse(),function(n){T(n,function(a){if(a.outEdges.length){var i=ki(a.outEdges,AJ,e)/ki(a.outEdges,qv);if(isNaN(i)){var A=a.outEdges.length;i=A?ki(a.outEdges,oJ,e)/A:0}if(e==="vertical"){var o=a.getLayout().x+(i-$i(a,e))*t;a.setLayout({x:o},!0)}else{var s=a.getLayout().y+(i-$i(a,e))*t;a.setLayout({y:s},!0)}}})})}function AJ(r,t){return $i(r.node2,t)*r.getValue()}function oJ(r,t){return $i(r.node2,t)}function sJ(r,t){return $i(r.node1,t)*r.getValue()}function lJ(r,t){return $i(r.node1,t)}function $i(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function qv(r){return r.getValue()}function ki(r,t,e){for(var n=0,a=r.length,i=-1;++iA&&(A=s)}),T(n,function(o){var s=new He({type:"color",mappingMethod:"linear",dataExtent:[i,A],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}a.length&&T(a,function(o){var s=o.getModel().get("lineStyle");o.setVisual("style",s)})})}function hJ(r){r.registerChartView(z$),r.registerSeriesModel(X$),r.registerLayout(Y$),r.registerVisual(cJ),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var LR=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),A=a.get("type"),o=i.get("type"),s;A==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),s=!0):o==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u=t.layout==="horizontal"?0:1,f=this._baseAxisDim=l[u],c=l[1-u],h=[a,i],v=h[u].get("type"),d=h[1-u].get("type"),p=t.data;if(p&&s){var g=[];T(p,function(w,_){var B;K(w)?(B=w.slice(),w.unshift(_)):K(w.value)?(B=V({},w),B.value=B.value.slice(),w.value.unshift(_)):B=w,g.push(B)}),t.data=g}var y=this.defaultValueDimensions,m=[{name:f,type:Nv(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Nv(d),dimsDef:y.slice()}];return ll(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:xt(fU,m,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),MR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}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}(se);Ie(MR,LR,!0);var vJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this.group,o=this._data;this._data||A.removeAll();var s=e.get("layout")==="horizontal"?1:0;i.diff(o).add(function(l){if(i.hasValue(l)){var u=i.getItemLayout(l),f=MI(u,i,l,s,!0);i.setItemGraphicEl(l,f),A.add(f)}}).update(function(l,u){var f=o.getItemGraphicEl(u);if(!i.hasValue(l)){A.remove(f);return}var c=i.getItemLayout(l);f?(Rn(f),UR(c,f,i,l)):f=MI(c,i,l,s),A.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&A.remove(u)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(jt),dJ=function(){function r(){}return r}(),pJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new dJ},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();id){var w=[g,m];n.push(w)}}}return{boxData:e,outliers:n}}var CJ={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==lr){var n="";Xt(n)}var a=_J(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function SJ(r){r.registerSeriesModel(MR),r.registerChartView(vJ),r.registerLayout(yJ),r.registerTransform(CJ)}var xJ=["color","borderColor"],bJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),a=this._data,i=this.group,A=n.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||i.removeAll(),n.diff(a).add(function(u){if(n.hasValue(u)){var f=n.getItemLayout(u);if(o&&UI(l,f))return;var c=Oy(f,u,!0);ue(c,{shape:{points:f.ends}},e,u),ky(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}}).update(function(u,f){var c=a.getItemGraphicEl(f);if(!n.hasValue(u)){i.remove(c);return}var h=n.getItemLayout(u);if(o&&UI(l,h)){i.remove(c);return}c?(zt(c,{shape:{points:h.ends}},e,u),Rn(c)):c=Oy(h),ky(c,n,u,A),i.add(c),n.setItemGraphicEl(u,c)}).remove(function(u){var f=a.getItemGraphicEl(u);f&&i.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),PI(e,this.group);var n=e.get("clip",!0)?Kf(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),A;(A=e.next())!=null;){var o=a.getItemLayout(A),s=Oy(o);ky(s,a,A,i),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,n){PI(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(jt),TJ=function(){function r(){}return r}(),IJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new TJ},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Mt);function Oy(r,t,e){var n=r.ends;return new IJ({shape:{points:e?FJ(n,r):n},z2:100})}function UI(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=e.get(["itemStyle","borderColorDoji"]));var i=e.getModel("itemStyle").getItemStyle(xJ);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var PR=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,a){var i=n.getItemLayout(e);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}(se);Ie(PR,LR,!0);function DJ(r){!r||!K(r.series)||T(r.series,function(t){yt(t)&&t.type==="k"&&(t.type="candlestick")})}var QJ=["itemStyle","borderColor"],LJ=["itemStyle","borderColor0"],MJ=["itemStyle","borderColorDoji"],UJ=["itemStyle","color"],PJ=["itemStyle","color0"],RJ={seriesType:"candlestick",plan:il(),performRawSeries:!0,reset:function(r,t){function e(i,A){return A.get(i>0?UJ:PJ)}function n(i,A){return A.get(i===0?MJ:i>0?QJ:LJ)}if(!t.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,A){for(var o;(o=i.next())!=null;){var s=A.getItemModel(o),l=A.getItemLayout(o).sign,u=s.getItemStyle();u.fill=e(l,s),u.stroke=n(l,s)||u.fill;var f=A.ensureUniqueItemVisual(o,"style");V(f,u)}}}}}},HJ={seriesType:"candlestick",plan:il(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=OJ(r,e),a=0,i=1,A=["x","y"],o=e.getDimensionIndex(e.mapDimension(A[a])),s=Y(e.mapDimensionsAll(A[i]),e.getDimensionIndex,e),l=s[0],u=s[1],f=s[2],c=s[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),o<0||s.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(d,p){for(var g,y=p.getStore();(g=d.next())!=null;){var m=y.get(o,g),w=y.get(l,g),_=y.get(u,g),B=y.get(f,g),C=y.get(c,g),S=Math.min(w,_),x=Math.max(w,_),b=R(S,m),I=R(x,m),F=R(B,m),E=R(C,m),D=[];P(D,I,0),P(D,b,1),D.push(G(E),G(I),G(F),G(b));var Q=p.getItemModel(g),M=!!Q.get(["itemStyle","borderColorDoji"]);p.setItemLayout(g,{sign:RI(y,g,w,_,u,M),initBaseline:w>_?I[i]:b[i],ends:D,brushRect:O(B,C,m)})}function R(X,J){var At=[];return At[a]=J,At[i]=X,isNaN(J)||isNaN(X)?[NaN,NaN]:t.dataToPoint(At)}function P(X,J,At){var lt=J.slice(),wt=J.slice();lt[a]=Wh(lt[a]+n/2,1,!1),wt[a]=Wh(wt[a]-n/2,1,!0),At?X.push(lt,wt):X.push(wt,lt)}function O(X,J,At){var lt=R(X,At),wt=R(J,At);return lt[a]-=n/2,wt[a]-=n/2,{x:lt[0],y:lt[1],width:n,height:wt[1]-lt[1]}}function G(X){return X[a]=Wh(X[a],1),X}}function v(d,p){for(var g=Aa(d.count*4),y=0,m,w=[],_=[],B,C=p.getStore(),S=!!r.get(["itemStyle","borderColorDoji"]);(B=d.next())!=null;){var x=C.get(o,B),b=C.get(l,B),I=C.get(u,B),F=C.get(f,B),E=C.get(c,B);if(isNaN(x)||isNaN(F)||isNaN(E)){g[y++]=NaN,y+=3;continue}g[y++]=RI(C,B,b,I,u,S),w[a]=x,w[i]=F,m=t.dataToPoint(w,null,_),g[y++]=m?m[0]:NaN,g[y++]=m?m[1]:NaN,w[i]=E,m=t.dataToPoint(w,null,_),g[y++]=m?m[1]:NaN}p.setLayout("largePoints",g)}}};function RI(r,t,e,n,a,i){var A;return e>n?A=-1:e0?r.get(a,t-1)<=n?1:-1:1,A}function OJ(r,t){var e=r.getBaseAxis(),n,a=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=et(St(r.get("barMaxWidth"),a),a),A=et(St(r.get("barMinWidth"),1),a),o=r.get("barWidth");return o!=null?et(o,a):Math.max(Math.min(a/2,i),A)}function kJ(r){r.registerChartView(bJ),r.registerSeriesModel(PR),r.registerPreprocessor(DJ),r.registerVisual(RJ),r.registerLayout(HJ)}function HI(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var NJ=function(r){H(t,r);function t(e,n){var a=r.call(this)||this,i=new Vf(e,n),A=new _t;return a.add(i),a.add(A),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,A=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/u*1e3),o!==this._period||s!==this._loop||l!==this._roundTrip){i.stopAnimation();var c=void 0;vt(f)?c=f(a):c=f,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,s,l)}this._period=o,this._loop=s,this._roundTrip=l}},t.prototype._animateSymbol=function(e,n,a,i,A){if(n>0){e.__t=0;var o=this,s=e.animate("",i).when(A?n*2:n,{__t:A?2:1}).delay(a).during(function(){o._updateSymbolPosition(e)});i||s.done(function(){o.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return xi(e.__p1,e.__cp1)+xi(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,A=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),l=Ve,u=A0;o[0]=l(n[0],i[0],a[0],A),o[1]=l(n[1],i[1],a[1],A);var f=e.__t<1?u(n[0],i[0],a[0],A):u(a[0],i[0],n[0],1-A),c=e.__t<1?u(n[1],i[1],a[1],A):u(a[1],i[1],n[1],1-A);e.rotation=-Math.atan2(c,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[s]<=n);s--);s=Math.min(s,A-2)}else{for(s=o;sn);s++);s=Math.min(s-1,A-2)}var u=(n-i[s])/(i[s+1]-i[s]),f=a[s],c=a[s+1];e.x=f[0]*(1-u)+u*c[0],e.y=f[1]*(1-u)+u*c[1];var h=e.__t<1?c[0]-f[0]:f[0]-c[0],v=e.__t<1?c[1]-f[1]:f[1]-c[1];e.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=n,e.ignore=!1}},t}(RR),WJ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),XJ=function(r){H(t,r);function t(e){var n=r.call(this,e)||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 WJ},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,A;if(n.polyline)for(A=this._off;A0){e.moveTo(a[A++],a[A++]);for(var s=1;s0){var h=(l+f)/2-(u-c)*i,v=(u+c)/2-(f-l)*i;e.quadraticCurveTo(h,v,f,c)}else e.lineTo(f,c)}this.incremental&&(this._off=A,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,A=a.curveness,o=this.style.lineWidth;if(a.polyline)for(var s=0,l=0;l0)for(var f=i[l++],c=i[l++],h=1;h0){var p=(f+v)/2-(c-d)*A,g=(c+d)/2-(v-f)*A;if(fM(f,c,p,g,v,d,o,e,n))return s}else if(Bi(f,c,v,d,o,e,n))return s;s++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.contain(e,n)){var A=this.hoverDataIdx=this.findDataIndex(e,n);return A>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,a=n.segs,i=1/0,A=1/0,o=-1/0,s=-1/0,l=0;l0&&(A.dataIndex=s+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),OR={seriesType:"lines",plan:il(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var A=[];if(n){var o=void 0,s=a.end-a.start;if(e){for(var l=0,u=a.start;u0&&(u||l.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),A.updateData(i);var f=e.get("clip",!0)&&Kf(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),A=this._updateLineDraw(i,e);A.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData()),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),A=e.pipelineContext;if(!this._finished||A.large||A.progressiveRender)return{update:!0};var o=OR.reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),A=!!n.get("polyline"),o=n.pipelineContext,s=o.large;return(!a||i!==this._hasEffet||A!==this._isPolyline||s!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=s?new YJ:new sC(A?i?zJ:HR:i?RR:oC),this._hasEffet=i,this._isPolyline=A,this._isLargeDraw=s),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=e.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(jt),$J=typeof Uint32Array>"u"?Array:Uint32Array,JJ=typeof Float64Array>"u"?Array:Float64Array;function OI(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),kB([a,e[0],e[1]])}))}var qJ=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],OI(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(OI(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=gv(this._flatCoords,n.flatCoords),this._flatCoordsOffset=gv(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],A=0;A ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.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}(se);function jc(r){return r instanceof Array||(r=[r,r]),r}var jJ={seriesType:"lines",reset:function(r){var t=jc(r.get("symbol")),e=jc(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,A){var o=i.getItemModel(A),s=jc(o.getShallow("symbol",!0)),l=jc(o.getShallow("symbolSize",!0));s[0]&&i.setItemVisual(A,"fromSymbol",s[0]),s[1]&&i.setItemVisual(A,"toSymbol",s[1]),l[0]&&i.setItemVisual(A,"fromSymbolSize",l[0]),l[1]&&i.setItemVisual(A,"toSymbolSize",l[1])}return{dataEach:n.hasItemOption?a:null}}};function tq(r){r.registerChartView(ZJ),r.registerSeriesModel(qJ),r.registerLayout(OR),r.registerVisual(jJ)}var eq=256,rq=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=zi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,A){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,c=f.getContext("2d"),h=t.length;f.width=e,f.height=n;for(var v=0;v0){var F=A(m)?s:l;m>0&&(m=m*b+S),_[B++]=F[I],_[B++]=F[I+1],_[B++]=F[I+2],_[B++]=F[I+3]*m*256}else B+=4}return c.putImageData(w,0,0),f},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=zi.createCanvas()),e=this.pointSize+this.blurSize,n=e*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(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],A=0,o=0;o<256;o++)t[e](o/255,!0,i),a[A++]=i[0],a[A++]=i[1],a[A++]=i[2],a[A++]=i[3];return a},r}();function nq(r,t,e){var n=r[1]-r[0];t=Y(t,function(A){return{interval:[(A.interval[0]-r[0])/n,(A.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(A){var o;for(o=i;o=0;o--){var s=t[o].interval;if(s[0]<=A&&A<=s[1]){i=o;break}}return o>=0&&o=t[0]&&n<=t[1]}}function kI(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var iq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i;n.eachComponent("visualMap",function(o){o.eachTargetSeries(function(s){s===e&&(i=o)})}),this._progressiveEls=null,this.group.removeAll();var A=e.coordinateSystem;A.type==="cartesian2d"||A.type==="calendar"?this._renderOnCartesianAndCalendar(e,a,0,e.getData().count()):kI(A)&&this._renderOnGeo(A,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var A=n.coordinateSystem;A&&(kI(A)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){rA(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,n,a,i,A){var o=e.coordinateSystem,s=To(o,"cartesian2d"),l,u,f,c;if(s){var h=o.getAxis("x"),v=o.getAxis("y");l=h.getBandWidth()+.5,u=v.getBandWidth()+.5,f=h.scale.getExtent(),c=v.scale.getExtent()}for(var d=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),y=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),w=e.get(["itemStyle","borderRadius"]),_=Oe(e),B=e.getModel("emphasis"),C=B.get("focus"),S=B.get("blurScope"),x=B.get("disabled"),b=s?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],I=a;If[1]||Qc[1])continue;var M=o.dataToPoint([D,Q]);F=new Nt({shape:{x:M[0]-l/2,y:M[1]-u/2,width:l,height:u},style:E})}else{if(isNaN(p.get(b[1],I)))continue;F=new Nt({z2:1,shape:o.dataToRect([p.get(b[0],I)]).contentShape,style:E})}if(p.hasItemOption){var R=p.getItemModel(I),P=R.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=R.getModel(["blur","itemStyle"]).getItemStyle(),m=R.getModel(["select","itemStyle"]).getItemStyle(),w=R.get(["itemStyle","borderRadius"]),C=P.get("focus"),S=P.get("blurScope"),x=P.get("disabled"),_=Oe(R)}F.shape.r=w;var O=e.getRawValue(I),G="-";O&&O[2]!=null&&(G=O[2]+""),Je(F,_,{labelFetcher:e,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:G}),F.ensureState("emphasis").style=g,F.ensureState("blur").style=y,F.ensureState("select").style=m,ye(F,C,S,x),F.incremental=A,A&&(F.states.emphasis.hoverLayer=!0),d.add(F),p.setItemGraphicEl(I,F),this._progressiveEls&&this._progressiveEls.push(F)}},t.prototype._renderOnGeo=function(e,n,a,i){var A=a.targetVisuals.inRange,o=a.targetVisuals.outOfRange,s=n.getData(),l=this._hmLayer||this._hmLayer||new rq;l.blurSize=n.get("blurSize"),l.pointSize=n.get("pointSize"),l.minOpacity=n.get("minOpacity"),l.maxOpacity=n.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var c=Math.max(u.x,0),h=Math.max(u.y,0),v=Math.min(u.width+u.x,i.getWidth()),d=Math.min(u.height+u.y,i.getHeight()),p=v-c,g=d-h,y=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],m=s.mapArray(y,function(C,S,x){var b=e.dataToPoint([C,S]);return b[0]-=c,b[1]-=h,b.push(x),b}),w=a.getExtent(),_=a.type==="visualMap.continuous"?aq(w,a.option.range):nq(w,a.getPieceList(),a.option.selected);l.update(m,p,g,A.color.getNormalizer(),{inRange:A.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var B=new Ke({style:{width:p,height:g,x:c,y:h,image:l.canvas},silent:!0});this.group.add(B)},t.type="heatmap",t}(jt),Aq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return ri(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Hf.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.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}(se);function oq(r){r.registerChartView(iq),r.registerSeriesModel(Aq)}var sq=["itemStyle","borderWidth"],NI=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gy=new ei,lq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group,A=e.getData(),o=this._data,s=e.coordinateSystem,l=s.getBaseAxis(),u=l.isHorizontal(),f=s.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:u,valueDim:NI[+u],categoryDim:NI[1-+u]};A.diff(o).add(function(v){if(A.hasValue(v)){var d=GI(A,v),p=VI(A,v,d,c),g=KI(A,c,p);A.setItemGraphicEl(v,g),i.add(g),WI(g,c,p)}}).update(function(v,d){var p=o.getItemGraphicEl(d);if(!A.hasValue(v)){i.remove(p);return}var g=GI(A,v),y=VI(A,v,g,c),m=zR(A,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),A.setItemGraphicEl(v,null),p=null),p?pq(p,c,y):p=KI(A,c,y,!0),A.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,i.add(p),WI(p,c,y)}).remove(function(v){var d=o.getItemGraphicEl(v);d&&zI(o,v,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=e.get("clip",!0)?Kf(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=A,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(A){zI(i,Ct(A).dataIndex,e,A)}):a.removeAll()},t.type="pictorialBar",t}(jt);function VI(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),A=e.get("symbolClip"),o=e.get("symbolPosition")||"start",s=e.get("symbolRotate"),l=(s||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,f=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:A,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:f?e:null,hoverScale:f&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};uq(e,i,a,n,c),fq(r,t,a,i,A,c.boundingLength,c.pxSign,u,n,c),cq(e,c.symbolScale,l,n,c);var h=c.symbolSize,v=xo(e.get("symbolOffset"),h);return hq(e,h,a,i,A,v,o,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function uq(r,t,e,n,a){var i=n.valueDim,A=r.get("symbolBoundingData"),o=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),s=o.toGlobalCoord(o.dataToCoord(0)),l=1-+(e[i.wh]<=0),u;if(K(A)){var f=[Ky(o,A[0])-s,Ky(o,A[1])-s];f[1]0?1:-1}function Ky(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function fq(r,t,e,n,a,i,A,o,s,l){var u=s.valueDim,f=s.categoryDim,c=Math.abs(e[f.wh]),h=r.getItemVisual(t,"symbolSize"),v;K(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=et(v[f.index],c),v[u.index]=et(v[u.index],n?c:Math.abs(i)),l.symbolSize=v;var d=l.symbolScale=[v[0]/o,v[1]/o];d[u.index]*=(s.isHorizontal?-1:1)*A}function cq(r,t,e,n,a){var i=r.get(sq)||0;i&&(Gy.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Gy.updateTransform(),i/=Gy.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function hq(r,t,e,n,a,i,A,o,s,l,u,f){var c=u.categoryDim,h=u.valueDim,v=f.pxSign,d=Math.max(t[h.index]+o,0),p=d;if(n){var g=Math.abs(s),y=Ge(r.get("symbolMargin"),"15%")+"",m=!1;y.lastIndexOf("!")===y.length-1&&(m=!0,y=y.slice(0,y.length-1));var w=et(y,t[h.index]),_=Math.max(d+w*2,0),B=m?0:w*2,C=JL(n),S=C?n:XI((g+B)/_),x=g-S*d;w=x/2/(m?S:Math.max(S-1,1)),_=d+w*2,B=m?0:w*2,!C&&n!=="fixed"&&(S=l?XI((Math.abs(l)+B)/_):0),p=S*_-B,f.repeatTimes=S,f.symbolMargin=w}var b=v*(p/2),I=f.pathPosition=[];I[c.index]=e[c.wh]/2,I[h.index]=A==="start"?b:A==="end"?s-b:s/2,i&&(I[0]+=i[0],I[1]+=i[1]);var F=f.bundlePosition=[];F[c.index]=e[c.xy],F[h.index]=e[h.xy];var E=f.barRectShape=V({},e);E[h.wh]=v*Math.max(Math.abs(e[h.wh]),Math.abs(I[h.index]+b)),E[c.wh]=e[c.wh];var D=f.clipShape={};D[c.xy]=-e[c.xy],D[c.wh]=u.ecSize[c.wh],D[h.xy]=0,D[h.wh]=e[h.wh]}function kR(r){var t=r.symbolPatternSize,e=Te(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function NR(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,A=e.valueLineWidth,o=e.pathPosition,s=t.valueDim,l=e.repeatTimes||0,u=0,f=i[t.valueDim.index]+A+e.symbolMargin*2;for(pC(r,function(d){d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=l,u0:g<0)&&(y=l-1-d),p[s.index]=f*(y-l/2+.5)+o[s.index],{x:p[0],y:p[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function VR(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?Fs(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=kR(e),a.add(i),Fs(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function GR(r,t,e){var n=V({},t.barRectShape),a=r.__pictorialBarRect;a?Fs(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Nt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function KR(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=V({},e.clipShape),A=t.valueDim,o=e.animationModel,s=e.dataIndex;if(a)zt(a,{shape:i},o,s);else{i[A.wh]=0,a=new Nt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var l={};l[A.wh]=e.clipShape[A.wh],So[n?"updateProps":"initProps"](a,{shape:l},o,s)}}}function GI(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=vq,e.isAnimationEnabled=dq,e}function vq(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function dq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function KI(r,t,e,n){var a=new _t,i=new _t;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?NR(a,t,e):VR(a,t,e),GR(a,e,n),KR(a,t,e,n),a.__pictorialShapeStr=zR(r,e),a.__pictorialSymbolMeta=e,a}function pq(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;zt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?NR(r,t,e,!0):VR(r,t,e,!0),GR(r,e,!0),KR(r,t,e,!0)}function zI(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];pC(n,function(A){i.push(A)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),T(i,function(A){Xi(A,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function zR(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function pC(r,t,e){T(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function Fs(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&So[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function WI(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),A=i.getModel("itemStyle").getItemStyle(),o=a.getModel(["blur","itemStyle"]).getItemStyle(),s=a.getModel(["select","itemStyle"]).getItemStyle(),l=a.getShallow("cursor"),u=i.get("focus"),f=i.get("blurScope"),c=i.get("scale");pC(r,function(d){if(d instanceof Ke){var p=d.style;d.useStyle(V({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},e.style))}else d.useStyle(e.style);var g=d.ensureState("emphasis");g.style=A,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=o,d.ensureState("select").style=s,l&&(d.cursor=l),d.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,Je(v,Oe(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:ks(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ye(r,u,f,i.get("disabled"))}function XI(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var gq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=nA(vf.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(vf);function yq(r){r.registerChartView(lq),r.registerSeriesModel(gq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(I2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F2("pictorialBar"))}var mq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),A=this,o=this.group,s=e.getLayerSeries(),l=i.getLayout("layoutInfo"),u=l.rect,f=l.boundaryGap;o.x=0,o.y=u.y+f[0];function c(p){return p.name}var h=new Ya(this._layersSeries||[],s,c,c),v=[];h.add(it(d,this,"add")).update(it(d,this,"update")).remove(it(d,this,"remove")).execute();function d(p,g,y){var m=A._layers;if(p==="remove"){o.remove(m[g]);return}for(var w=[],_=[],B,C=s[g].indices,S=0;Si&&(i=o),n.push(o)}for(var l=0;li&&(i=f)}return{y0:a,max:i}}function Sq(r){r.registerChartView(mq),r.registerSeriesModel(Bq),r.registerLayout(_q),r.registerProcessor(Wf("themeRiver"))}var xq=2,bq=4,ZI=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this)||this;A.z2=xq,A.textConfig={inside:!0},Ct(A).seriesIndex=n.seriesIndex;var o=new Gt({z2:bq,silent:e.getModel().get(["label","silent"])});return A.setTextContent(o),A.updateData(!0,e,n,a,i),A}return t.prototype.updateData=function(e,n,a,i,A){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var o=this;Ct(o).dataIndex=n.dataIndex;var s=n.getModel(),l=s.getModel("emphasis"),u=n.getLayout(),f=V({},u);f.label=null;var c=n.getVisual("style");c.lineJoin="bevel";var h=n.getVisual("decal");h&&(c.decal=Hs(h,A));var v=$A(s.getModel("itemStyle"),f,!0);V(f,v),T(_r,function(y){var m=o.ensureState(y),w=s.getModel([y,"itemStyle"]);m.style=w.getItemStyle();var _=$A(w,f);_&&(m.shape=_)}),e?(o.setShape(f),o.shape.r=u.r0,ue(o,{shape:{r:u.r}},a,n.dataIndex)):(zt(o,{shape:f},a),Rn(o)),o.useStyle(c),this._updateLabel(a);var d=s.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=l.get("focus"),g=p==="ancestor"?n.getAncestorsIndices():p==="descendant"?n.getDescendantIndices():p;ye(this,g,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),A=this.node.getLayout(),o=A.endAngle-A.startAngle,s=(A.startAngle+A.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=this,c=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(v!=null&&Math.abs(o)D&&!ju(M-D)&&M0?(A.virtualPiece?A.virtualPiece.updateData(!1,y,e,n,a):(A.virtualPiece=new ZI(y,e,n,a),u.add(A.virtualPiece)),m.piece.off("click"),A.virtualPiece.on("click",function(w){A._rootToNode(m.parentNode)})):A.virtualPiece&&(u.remove(A.virtualPiece),A.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(A){if(!a&&A.piece&&A.piece===n.target){var o=A.getModel().get("nodeClick");if(o==="rootToNode")e._rootToNode(A);else if(o==="link"){var s=A.getModel(),l=s.get("link");if(l){var u=s.get("target",!0)||"_blank";Lv(l,u)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Bw,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var A=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(A*A+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(jt),Eq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};WR(a);var i=this._levelModels=Y(e.levels||[],function(s){return new Yt(s,this,n)},this),A=eC.createTree(a,this,o);function o(s){s.wrapMethod("getItemModel",function(l,u){var f=A.getNodeByDataIndex(u),c=i[f.depth];return c&&(l.parentModel=c),l})}return A.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=pp(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){JP(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}(se);function WR(r){var t=0;T(r.children,function(n){WR(n);var a=n.value;K(a)&&(a=a[0]),t+=a});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}var JI=Math.PI/180;function Dq(r,t,e){t.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");K(i)||(i=[0,i]),K(a)||(a=[a,a]);var A=e.getWidth(),o=e.getHeight(),s=Math.min(A,o),l=et(a[0],A),u=et(a[1],o),f=et(i[0],s/2),c=et(i[1],s/2),h=-n.get("startAngle")*JI,v=n.get("minAngle")*JI,d=n.getData().tree.root,p=n.getViewRoot(),g=p.depth,y=n.get("sort");y!=null&&XR(p,y);var m=0;T(p.children,function(M){!isNaN(M.getValue())&&m++});var w=p.getValue(),_=Math.PI/(w||m)*2,B=p.depth>0,C=p.height-(B?-1:1),S=(c-f)/(C||1),x=n.get("clockwise"),b=n.get("stillShowZeroSum"),I=x?1:-1,F=function(M,R){if(M){var P=R;if(M!==d){var O=M.getValue(),G=w===0&&b?_:O*_;G1;)A=A.parentNode;var o=a.getColorFromPalette(A.name||A.dataIndex+"",t);return n.depth>1&&nt(o)&&(o=l0(o,(n.depth-1)/(i-1)*.5)),o}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(A){var o=A.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e(A,n,i.root.height));var l=a.ensureUniqueItemVisual(A.dataIndex,"style");V(l,s)})})}function Mq(r){r.registerChartView(Fq),r.registerSeriesModel(Eq),r.registerLayout(xt(Dq,"sunburst")),r.registerProcessor(xt(Wf,"sunburst")),r.registerVisual(Lq),Iq(r)}var qI={color:"fill",borderColor:"stroke"},Uq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ka=Vt(),Pq=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return ri(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=ka(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}(se);function Rq(r,t){return t=t||[0,0],Y(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],A=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-A)-a.dataToCoord(i+A))},this)}function Hq(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Rq,r)}}}function Oq(r,t){return t=t||[0,0],Y([0,1],function(e){var n=t[e],a=r[e]/2,i=[],A=[];return i[e]=n-a,A[e]=n+a,i[1-e]=A[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(A)[e])},this)}function kq(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:it(Oq,r)}}}function Nq(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Vq(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Nq,r)}}}function Gq(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),A=t[n],o=r[n]/2,s=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(A-o)-i.dataToCoord(A+o));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function Kq(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),A=e.dataToAngle(a[1]),o=r.coordToPoint([i,A]);return o.push(i,A*Math.PI/180),o},size:it(Gq,r)}}}function zq(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}function YR(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function ZR(r,t,e){var n=r,a,i,A;if(t==="text")A=n;else{A={},st(n,"text")&&(A.text=n.text),st(n,"rich")&&(A.rich=n.rich),st(n,"textFill")&&(A.fill=n.textFill),st(n,"textStroke")&&(A.stroke=n.textStroke),st(n,"fontFamily")&&(A.fontFamily=n.fontFamily),st(n,"fontSize")&&(A.fontSize=n.fontSize),st(n,"fontStyle")&&(A.fontStyle=n.fontStyle),st(n,"fontWeight")&&(A.fontWeight=n.fontWeight),i={type:"text",style:A,silent:!0},a={};var o=st(n,"textPosition");e?a.position=o?n.textPosition:"inside":o&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return jI(A,r),T(A.rich,function(s){jI(s,s)}),{textConfig:a,textContent:i}}function jI(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function tF(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";eF(n,t);var A=n.textFill==null;return a?A&&(n.textFill=e.insideFill||"#fff",!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(A&&(n.textFill=r.fill||e.outsideFill||"#000"),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,T(t.rich,function(o){eF(o,o)}),n}function eF(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var $R={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},rF=Ht($R);ha(da,function(r,t){return r[t]=1,r},{});da.join(", ");var jv=["","style","shape","extra"],Gs=Vt();function gC(r,t,e,n,a){var i=r+"Animation",A=qs(r,n,a)||{},o=Gs(t).userDuring;return A.duration>0&&(A.during=o?it($q,{el:t,userDuring:o}):null,A.setToFinal=!0,A.scope=r),V(A,e[i]),A}function qh(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,A=n.clearStyle,o=e.isAnimationEnabled(),s=Gs(r),l=t.style;s.userDuring=t.during;var u={},f={};if(qq(r,t,f),aF("shape",t,f),aF("extra",t,f),!i&&o&&(Jq(r,t,u),nF("shape",r,t,u),nF("extra",r,t,u),jq(r,t,l,u)),f.style=l,Wq(r,f,A),Yq(r,t),o)if(i){var c={};T(jv,function(v){var d=v?t[v]:t;d&&d.enterFrom&&(v&&(c[v]=c[v]||{}),V(v?c[v]:c,d.enterFrom))});var h=gC("enter",r,t,e,a);h.duration>0&&r.animateFrom(c,h)}else Xq(r,t,a||0,e,u);JR(r,t),l?r.dirty():r.markRedraw()}function JR(r,t){for(var e=Gs(r).leaveToProps,n=0;n0&&r.animateFrom(a,i)}}function Yq(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof gn&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Mt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Zn={},Zq={setTransform:function(r,t){return Zn.el[r]=t,this},getTransform:function(r){return Zn.el[r]},setShape:function(r,t){var e=Zn.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Zn.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Zn.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Zn.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Zn.el.extra||(Zn.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Zn.el.extra;if(t)return t[r]}};function $q(){var r=this,t=r.el;if(t){var e=Gs(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Zn.el=t,n(Zq)}}function nF(r,t,e,n){var a=e[r];if(a){var i=t[r],A;if(i){var o=e.transition,s=a.transition;if(s)if(!A&&(A=n[r]={}),oo(s))V(A,i);else for(var l=qt(s),u=0;u=0){!A&&(A=n[r]={});for(var h=Ht(i),u=0;u=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=n.style={});for(var v=Ht(e),l=0;l=0?t.getStore().get(R,Q):void 0}var P=t.get(M.name,Q),O=M&&M.ordinalMeta;return O?O.categories[P]:P}function B(D,Q){Q==null&&(Q=l);var M=t.getItemVisual(Q,"style"),R=M&&M.fill,P=M&&M.opacity,O=y(Q,Qi).getItemStyle();R!=null&&(O.fill=R),P!=null&&(O.opacity=P);var G={inheritColor:nt(R)?R:"#000"},X=m(Q,Qi),J=oe(X,null,G,!1,!0);J.text=X.getShallow("show")?St(r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var At=Dv(X,G,!1);return x(D,O),O=tF(O,J,At),D&&S(O,D),O.legacy=!0,O}function C(D,Q){Q==null&&(Q=l);var M=y(Q,Na).getItemStyle(),R=m(Q,Na),P=oe(R,null,null,!0,!0);P.text=R.getShallow("show")?ua(r.getFormattedLabel(Q,Na),r.getFormattedLabel(Q,Qi),ks(t,Q)):null;var O=Dv(R,null,!0);return x(D,M),M=tF(M,P,O),D&&S(M,D),M.legacy=!0,M}function S(D,Q){for(var M in Q)st(Q,M)&&(D[M]=Q[M])}function x(D,Q){D&&(D.textFill&&(Q.textFill=D.textFill),D.textPosition&&(Q.textPosition=D.textPosition))}function b(D,Q){if(Q==null&&(Q=l),st(qI,D)){var M=t.getItemVisual(Q,"style");return M?M[qI[D]]:null}if(st(Uq,D))return t.getItemVisual(Q,D)}function I(D){if(i.type==="cartesian2d"){var Q=i.getBaseAxis();return q8(gt({axis:Q},D))}}function F(){return e.getCurrentSeriesIndices()}function E(D){return u_(D,e)}}function lj(r){var t={};return T(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Yy(r,t,e,n,a,i,A){if(!n){i.remove(t);return}var o=_C(r,t,e,n,a,i);return o&&A.setItemGraphicEl(e,o),o&&ye(o,n.focus,n.blurScope,n.emphasisDisabled),o}function _C(r,t,e,n,a,i){var A=-1,o=t;t&&eH(t,n,a)&&(A=Qt(i.childrenRef(),t),t=null);var s=!t,l=t;l?l.clearStates():(l=wC(n),o&&ij(o,l)),n.morph===!1?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),qr.normal.cfg=qr.normal.conOpt=qr.emphasis.cfg=qr.emphasis.conOpt=qr.blur.cfg=qr.blur.conOpt=qr.select.cfg=qr.select.conOpt=null,qr.isLegacy=!1,fj(l,e,n,a,s,qr),uj(l,e,n,a,s),BC(r,l,e,n,qr,a,s),st(n,"info")&&(ka(l).info=n.info);for(var u=0;u=0?i.replaceAt(l,A):i.add(l),l}function eH(r,t,e){var n=ka(r),a=t.type,i=t.shape,A=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&pj(i)&&rH(i)!==n.customPathData||a==="image"&&st(A,"image")&&A.image!==n.customImagePath}function uj(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var A=r.getClipPath();A&&eH(A,i,n)&&(A=null),A||(A=wC(i),r.setClipPath(A)),BC(null,A,t,i,null,n,a)}}function fj(r,t,e,n,a,i){if(!r.isGroup){AF(e,null,i),AF(e,Na,i);var A=i.normal.conOpt,o=i.emphasis.conOpt,s=i.blur.conOpt,l=i.select.conOpt;if(A!=null||o!=null||l!=null||s!=null){var u=r.getTextContent();if(A===!1)u&&r.removeTextContent();else{A=i.normal.conOpt=A||{type:"text"},u?u.clearStates():(u=wC(A),r.setTextContent(u)),BC(null,u,t,A,null,n,a);for(var f=A&&A.style,c=0;c=u;h--){var v=t.childAt(h);hj(t,v,a)}}}function hj(r,t,e){t&&mp(t,ka(r).option,e)}function vj(r){new Ya(r.oldChildren,r.newChildren,oF,oF,r).add(sF).update(sF).remove(dj).execute()}function oF(r,t){var e=r&&r.name;return e??nj+t}function sF(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;_C(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function dj(r){var t=this.context,e=t.oldChildren[r];e&&mp(e,ka(e).option,t.seriesModel)}function rH(r){return r&&(r.pathData||r.d)}function pj(r){return r&&(st(r,"pathData")||st(r,"d"))}function gj(r){r.registerChartView(Aj),r.registerSeriesModel(Pq)}var kA=Vt(),lF=mt,Zy=it,SC=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),A=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===A)){this._lastValue=i,this._lastStatus=A;var o=this._group,s=this._handle;if(!A||A==="hide"){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var f=this._moveAnimation=this.determineAnimation(t,e);if(!o)o=this._group=new _t,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);else{var c=xt(uF,e,f);this.updatePointerEl(o,l,c),this.updateLabelEl(o,l,c,e)}cF(o,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",A=e.get("snap");if(!A&&!i)return!1;if(n==="auto"||n==null){var o=this.animationThreshold;if(i&&a.getBandWidth()>o)return!0;if(A){var s=Y_(t).seriesDataCount,l=a.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var A=kA(t).pointerEl=new So[i.type](lF(e.pointer));t.add(A)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=kA(t).labelEl=new Gt(lF(e.label));t.add(i),fF(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=kA(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=kA(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),fF(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),A=e.get("status");if(!i.get("show")||!A||A==="hide"){a&&n.remove(a),this._handle=null;return}var o;this._handle||(o=!0,a=this._handle=Rf(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Ka(l.event)},onmousedown:Zy(this._onHandleDragMove,this,0,0),drift:Zy(this._onHandleDragMove,this),ondragend:Zy(this._onHandleDragEnd,this)}),n.add(a)),cF(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=i.get("size");K(s)||(s=[s,s]),a.scaleX=s[0]/2,a.scaleY=s[1]/2,Al(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)}},r.prototype._moveHandleToValue=function(t,e){uF(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform($y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr($y(a)),kA(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),sf(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function uF(r,t,e,n){nH(kA(e).lastProp,n)||(kA(e).lastProp=n,t?zt(e,n,r):(e.stopAnimation(),e.attr(n)))}function nH(r,t){if(yt(r)&&yt(t)){var e=!0;return T(t,function(n,a){e=e&&nH(r[a],n)}),!!e}else return r===t}function fF(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $y(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function cF(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}function xC(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function aH(r,t,e,n,a){var i=e.get("value"),A=iH(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),o=e.getModel("label"),s=rl(o.get("padding")||0),l=o.getFont(),u=Ef(A,l),f=a.position,c=u.width+s[1]+s[3],h=u.height+s[0]+s[2],v=a.align;v==="right"&&(f[0]-=c),v==="center"&&(f[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(f[1]-=h),d==="middle"&&(f[1]-=h/2),yj(f,c,h,n);var p=o.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:oe(o,{text:A,font:l,fill:o.getTextColor(),padding:s,backgroundColor:p}),z2:10}}function yj(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function iH(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),A=a.formatter;if(A){var o={value:R_(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(s){var l=e.getSeriesByIndex(s.seriesIndex),u=s.dataIndexInside,f=l&&l.getDataParams(u);f&&o.seriesData.push(f)}),nt(A)?i=A.replace("{value}",i):vt(A)&&(i=A(o))}return i}function bC(r,t,e){var n=Wr();return Co(n,n,e.rotation),va(n,n,e.position),Mn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function AH(r,t,e,n,a,i){var A=wr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),aH(t,n,a,i,{position:bC(n.axis,r,e),align:A.textAlign,verticalAlign:A.textVerticalAlign})}function TC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function oH(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function hF(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}var mj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.grid,l=i.get("type"),u=vF(s,o).getOtherAxis(o).getGlobalExtent(),f=o.toGlobalCoord(o.dataToCoord(n,!0));if(l&&l!=="none"){var c=xC(i),h=wj[l](o,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=nw(s.model,a);AH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=nw(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=bC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.grid,s=A.getGlobalExtent(!0),l=vF(o,A).getOtherAxis(A).getGlobalExtent(),u=A.dim==="x"?0:1,f=[e.x,e.y];f[u]+=n[u],f[u]=Math.min(s[1],f[u]),f[u]=Math.max(s[0],f[u]);var c=(l[1]+l[0])/2,h=[c,c];h[u]=f[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:v[u]}},t}(SC);function vF(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var wj={line:function(r,t,e){var n=TC([t,e[0]],[t,e[1]],dF(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:oH([t-n/2,e[0]],[n,a],dF(r))}}};function dF(r){return r.dim==="x"?0:1}var Bj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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}(Rt),Ma=Vt(),_j=T;function sH(r,t,e){if(!Ut.node){var n=t.getZr();Ma(n).records||(Ma(n).records={}),Cj(n,t);var a=Ma(n).records[r]||(Ma(n).records[r]={});a.handler=e}}function Cj(r,t){if(Ma(r).initialized)return;Ma(r).initialized=!0,e("click",xt(pF,"click")),e("mousemove",xt(pF,"mousemove")),e("globalout",xj);function e(n,a){r.on(n,function(i){var A=bj(t);_j(Ma(r).records,function(o){o&&a(o,i,A.dispatchAction)}),Sj(A.pendings,t)})}}function Sj(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function xj(r,t,e){r.handler("leave",null,e)}function pF(r,t,e,n){t.handler(r,e,n)}function bj(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Sw(r,t){if(!Ut.node){var e=t.getZr(),n=(Ma(e).records||{})[r];n&&(Ma(e).records[r]=null)}}var Tj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=n.getComponent("tooltip"),A=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sH("axisPointer",a,function(o,s,l){A!=="none"&&(o==="leave"||A.indexOf(o)>=0)&&l({type:"updateAxisPointer",currTrigger:o,x:s&&s.offsetX,y:s&&s.offsetY})})},t.prototype.remove=function(e,n){Sw("axisPointer",n)},t.prototype.dispose=function(e,n){Sw("axisPointer",n)},t.type="axisPointer",t}(de);function lH(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),A=ho(i,r);if(A==null||A<0||K(A))return{point:[]};var o=i.getItemGraphicEl(A),s=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(A)||[];else if(s&&s.dataToPoint)if(r.isStacked){var l=s.getBaseAxis(),u=s.getOtherAxis(l),f=u.dim,c=l.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(c),d=[];d[h]=i.get(v,A),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),A),e=s.dataToPoint(d)||[]}else e=s.dataToPoint(i.getValues(Y(s.dimensions,function(g){return i.mapDimension(g)}),A))||[];else if(o){var p=o.getBoundingRect().clone();p.applyTransform(o.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:o}}var gF=Vt();function Ij(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,A=r.dispatchAction||it(e.dispatchAction,e),o=t.getComponent("axisPointer").coordSysAxesInfo;if(o){jh(a)&&(a=lH({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=jh(a),l=i.axesInfo,u=o.axesInfo,f=n==="leave"||jh(a),c={},h={},v={list:[],map:{}},d={showPointer:xt(Ej,h),showTooltip:xt(Dj,v)};T(o.coordSysMap,function(g,y){var m=s||g.containPoint(a);T(o.coordSysAxesInfo[y],function(w,_){var B=w.axis,C=Uj(l,w);if(!f&&m&&(!l||C)){var S=C&&C.value;S==null&&!s&&(S=B.pointToData(a)),S!=null&&yF(w,S,d,!1,c)}})});var p={};return T(u,function(g,y){var m=g.linkGroup;m&&!h[y]&&T(m.axesInfo,function(w,_){var B=h[_];if(w!==g&&B){var C=B.value;m.mapper&&(C=g.axis.scale.parse(m.mapper(C,mF(w),mF(g)))),p[g.key]=C}})}),T(p,function(g,y){yF(u[y],g,d,!0,c)}),Qj(h,u,c),Lj(v,a,r,A),Mj(u,A,e),c}}function yF(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var A=Fj(t,r),o=A.payloadBatch,s=A.snapToValue;o[0]&&a.seriesIndex==null&&V(a,o[0]),!n&&r.snap&&i.containData(s)&&s!=null&&(t=s),e.showPointer(r,t,o),e.showTooltip(r,A,s)}}function Fj(r,t){var e=t.axis,n=e.dim,a=r,i=[],A=Number.MAX_VALUE,o=-1;return T(t.seriesModels,function(s,l){var u=s.getData().mapDimensionsAll(n),f,c;if(s.getAxisTooltipData){var h=s.getAxisTooltipData(u,r,e);c=h.dataIndices,f=h.nestestValue}else{if(c=s.getData().indicesOfNearest(u[0],r,e.type==="category"?.5:null),!c.length)return;f=s.getData().get(u[0],c[0])}if(!(f==null||!isFinite(f))){var v=r-f,d=Math.abs(v);d<=A&&((d=0&&o<0)&&(A=d,o=v,a=f,i.length=0),T(c,function(p){i.push({seriesIndex:s.seriesIndex,dataIndexInside:p,dataIndex:s.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function Ej(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function Dj(r,t,e,n){var a=e.payloadBatch,i=t.axis,A=i.model,o=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var s=t.coordSys.model,l=df(s),u=r.map[l];u||(u=r.map[l]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},r.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:A.componentIndex,axisType:A.type,axisId:A.id,value:n,valueLabelOpt:{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Qj(r,t,e){var n=e.axesInfo=[];T(t,function(a,i){var A=a.axisPointerModel.option,o=r[i];o?(!a.useHandle&&(A.status="show"),A.value=o.value,A.seriesDataIndices=(o.payloadBatch||[]).slice()):!a.useHandle&&(A.status="hide"),A.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:A.value})})}function Lj(r,t,e,n){if(jh(t)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Mj(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=gF(n)[a]||{},A=gF(n)[a]={};T(r,function(l,u){var f=l.axisPointerModel.option;f.status==="show"&&l.triggerEmphasis&&T(f.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;A[h]=c})});var o=[],s=[];T(i,function(l,u){!A[u]&&s.push(l)}),T(A,function(l,u){!i[u]&&o.push(l)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),o.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:o})}function Uj(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function mF(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function jh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function $f(r){Io.registerAxisPointerClass("CartesianAxisPointer",mj),r.registerComponentModel(Bj),r.registerComponentView(Tj),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!K(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=zY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ij)}function Pj(r){Lt(RP),Lt($f)}var Rj=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis;o.dim==="angle"&&(this.animationThreshold=Math.PI/18);var s=o.polar,l=s.getOtherAxis(o),u=l.getExtent(),f=o.dataToCoord(n),c=i.get("type");if(c&&c!=="none"){var h=xC(i),v=Oj[c](o,s,f,u);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=i.get(["label","margin"]),p=Hj(n,a,i,s,d);aH(e,a,i,A,p)},t}(SC);function Hj(r,t,e,n,a){var i=t.axis,A=i.dataToCoord(r),o=n.getAngleAxis().getExtent()[0];o=o/180*Math.PI;var s=n.getRadiusAxis().getExtent(),l,u,f;if(i.dim==="radius"){var c=Wr();Co(c,c,o),va(c,c,[n.cx,n.cy]),l=Mn([A,-a],c);var h=t.getModel("axisLabel").get("rotate")||0,v=wr.innerTextLayout(o,h*Math.PI/180,-1);u=v.textAlign,f=v.textVerticalAlign}else{var d=s[1];l=n.coordToPoint([d+a,A]);var p=n.cx,g=n.cy;u=Math.abs(l[0]-p)/d<.3?"center":l[0]>p?"left":"right",f=Math.abs(l[1]-g)/d<.3?"middle":l[1]>g?"top":"bottom"}return{position:l,align:u,verticalAlign:f}}var Oj={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:TC(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:hF(t.cx,t.cy,n[0],n[1],(-e-a/2)*i,(-e+a/2)*i)}:{type:"Sector",shape:hF(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},kj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,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}(Rt),IC=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",be).models[0]},t.type="polarAxis",t}(Rt);Ie(IC,Nf);var Nj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(IC),Vj=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(IC),FC=function(r){H(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(On);FC.prototype.dataToRadius=On.prototype.dataToCoord;FC.prototype.radiusToData=On.prototype.coordToData;var Gj=Vt(),EC=function(r){H(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),A=a.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),l=Math.abs(s),u=Ef(o==null?"":o+"",n.getFont(),"center","top"),f=Math.max(u.height,7),c=f/l;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),v=Gj(e.model),d=v.lastAutoInterval,p=v.lastTickCount;return d!=null&&p!=null&&Math.abs(d-h)<=1&&Math.abs(p-A)<=1&&d>h?h=d:(v.lastTickCount=A,v.lastAutoInterval=h),h},t}(On);EC.prototype.dataToAngle=On.prototype.dataToCoord;EC.prototype.angleToData=On.prototype.coordToData;var uH=["radius","angle"],Kj=function(){function r(t){this.dimensions=uH,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new FC,this._angleAxis=new EC,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),A=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);a.inverse?A=o-360:o=A+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=lo;)l+=u*360;return[s,l]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[a,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.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(A,o){var s=A-this.cx,l=o-this.cy,u=s*s+l*l-1e-4,f=this.r,c=this.r0;return u<=f*f&&u>=c*c}}},r.prototype.convertToPixel=function(t,e,n){var a=wF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=wF(e);return a===this?this.pointToData(n):null},r}();function wF(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function zj(r,t,e){var n=t.get("center"),a=e.getWidth(),i=e.getHeight();r.cx=et(n[0],a),r.cy=et(n[1],i);var A=r.getRadiusAxis(),o=Math.min(a,i)/2,s=t.get("radius");s==null?s=[0,"100%"]:K(s)||(s=[0,s]);var l=[et(s[0],o),et(s[1],o)];A.inverse?A.setExtent(l[1],l[0]):A.setExtent(l[0],l[1])}function Wj(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(o){if(o.coordinateSystem===e){var s=o.getData();T(Vv(s,"radius"),function(l){a.scale.unionExtentFromData(s,l)}),T(Vv(s,"angle"),function(l){n.scale.unionExtentFromData(s,l)})}}),Os(n.scale,n.model),Os(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),A=360/n.scale.count();n.inverse?i[1]+=A:i[1]-=A,n.setExtent(i[0],i[1])}}function Xj(r){return r.mainType==="angleAxis"}function BF(r,t){var e;if(r.type=t.get("type"),r.scale=cp(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Xj(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var Yj={dimensions:uH,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,a){var i=new Kj(a+"");i.update=Wj;var A=i.getRadiusAxis(),o=i.getAngleAxis(),s=n.findAxisModel("radiusAxis"),l=n.findAxisModel("angleAxis");BF(A,s),BF(o,l),zj(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",be).models[0];n.coordinateSystem=a.coordinateSystem}}),e}},Zj=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function th(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function eh(r){var t=r.getRadiusAxis();return t.inverse?0:1}function _F(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var $j=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,A=i.getRadiusAxis().getExtent(),o=a.getTicksCoords(),s=a.getMinorTicksCoords(),l=Y(a.getViewLabels(),function(u){u=mt(u);var f=a.scale,c=f.type==="ordinal"?f.getRawOrdinalNumber(u.tickValue):u.tickValue;return u.coord=a.dataToCoord(c),u});_F(l),_F(o),T(Zj,function(u){e.get([u,"show"])&&(!a.scale.isBlank()||u==="axisLine")&&Jj[u](this.group,e,i,o,s,A,l)},this)}},t.type="angleAxis",t}(Io),Jj={axisLine:function(r,t,e,n,a,i){var A=t.getModel(["axisLine","lineStyle"]),o=e.getAngleAxis(),s=Math.PI/180,l=o.getExtent(),u=eh(e),f=u?0:1,c,h=Math.abs(l[1]-l[0])===360?"Circle":"Arc";i[f]===0?c=new So[h]({shape:{cx:e.cx,cy:e.cy,r:i[u],startAngle:-l[0]*s,endAngle:-l[1]*s,clockwise:o.inverse},style:A.getLineStyle(),z2:1,silent:!0}):c=new Lf({shape:{cx:e.cx,cy:e.cy,r:i[u],r0:i[f]},style:A.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,n,a,i){var A=t.getModel("axisTick"),o=(A.get("inside")?-1:1)*A.get("length"),s=i[eh(e)],l=Y(n,function(u){return new Pe({shape:th(e,[s,s+o],u.coord)})});r.add(ln(l,{style:gt(A.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var A=t.getModel("axisTick"),o=t.getModel("minorTick"),s=(A.get("inside")?-1:1)*o.get("length"),l=i[eh(e)],u=[],f=0;fg?"left":"right",w=Math.abs(p[1]-y)/d<.3?"middle":p[1]>y?"top":"bottom";if(o&&o[v]){var _=o[v];yt(_)&&_.textStyle&&(h=new Yt(_.textStyle,s,s.ecModel))}var B=new Gt({silent:wr.isLabelSilent(t),style:oe(h,{x:p[0],y:p[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:m,verticalAlign:w})});if(r.add(B),u){var C=wr.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,Ct(B).eventData=C}},this)},splitLine:function(r,t,e,n,a,i){var A=t.getModel("splitLine"),o=A.getModel("lineStyle"),s=o.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],f=0;f=0?"p":"n",Q=x;_&&(n[u][E]||(n[u][E]={p:x,n:x}),Q=n[u][E][D]);var M=void 0,R=void 0,P=void 0,O=void 0;if(v.dim==="radius"){var G=v.dataToCoord(F)-x,X=s.dataToCoord(E);Math.abs(G)=O})}}})}function att(r){var t={};T(r,function(n,a){var i=n.getData(),A=n.coordinateSystem,o=A.getBaseAxis(),s=cH(A,o),l=o.getExtent(),u=o.type==="category"?o.getBandWidth():Math.abs(l[1]-l[0])/i.count(),f=t[s]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=f.stacks;t[s]=f;var h=fH(n);c[h]||f.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var v=et(n.get("barWidth"),u),d=et(n.get("barMaxWidth"),u),p=n.get("barGap"),g=n.get("barCategoryGap");v&&!c[h].width&&(v=Math.min(f.remainedWidth,v),c[h].width=v,f.remainedWidth-=v),d&&(c[h].maxWidth=d),p!=null&&(f.gap=p),g!=null&&(f.categoryGap=g)});var e={};return T(t,function(n,a){e[a]={};var i=n.stacks,A=n.bandWidth,o=et(n.categoryGap,A),s=et(n.gap,1),l=n.remainedWidth,u=n.autoWidthCount,f=(l-o)/(u+(u-1)*s);f=Math.max(f,0),T(i,function(d,p){var g=d.maxWidth;g&&g=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),a=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=e.toGlobalCoord(e.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(t,e,n){var a=CF(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=CF(e);return a===this?this.pointToData(n):null},r}();function CF(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function dtt(r,t){var e=[];return r.eachComponent("singleAxis",function(n,a){var i=new vtt(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",be).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),e}var ptt={create:dtt,dimensions:hH},SF=["x","y"],gtt=["width","height"],ytt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,A){var o=a.axis,s=o.coordinateSystem,l=Jy(s,1-rd(o)),u=s.dataToPoint(n)[0],f=i.get("type");if(f&&f!=="none"){var c=xC(i),h=mtt[f](o,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var v=xw(a);AH(n,e,v,a,i,A)},t.prototype.getHandleTransform=function(e,n,a){var i=xw(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var A=bC(n.axis,e,i);return{x:A[0],y:A[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var A=a.axis,o=A.coordinateSystem,s=rd(A),l=Jy(o,s),u=[e.x,e.y];u[s]+=n[s],u[s]=Math.min(l[1],u[s]),u[s]=Math.max(l[0],u[s]);var f=Jy(o,1-s),c=(f[1]+f[0])/2,h=[c,c];return h[s]=u[s],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(SC),mtt={line:function(r,t,e){var n=TC([t,e[0]],[t,e[1]],rd(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=r.getBandWidth(),a=e[1]-e[0];return{type:"Rect",shape:oH([t-n/2,e[0]],[n,a],rd(r))}}};function rd(r){return r.isHorizontal()?0:1}function Jy(r,t){var e=r.getRect();return[e[SF[t]],e[SF[t]]+e[gtt[t]]]}var wtt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(de);function Btt(r){Lt($f),Io.registerAxisPointerClass("SingleAxisPointer",ytt),r.registerComponentView(wtt),r.registerComponentView(ftt),r.registerComponentModel(tv),Ns(r,"single",tv,tv.defaultOption),r.registerCoordinateSystem("single",ptt)}var _tt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=nl(e);r.prototype.init.apply(this,arguments),xF(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),xF(this.option,e)},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}(Rt);function xF(r,t){var e=r.cellSize,n;K(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=Y([0,1],function(i){return K5(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Yi(r,t,{type:"box",ignoreSize:a})}var Ctt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){var i=this.group;i.removeAll();var A=e.coordinateSystem,o=A.getRangeInfo(),s=A.getOrient(),l=n.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,l,s,i),this._renderWeekText(e,l,o,s,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,A=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),l=n.start.time;l<=n.end.time;l=i.getNextNDay(l,1).time){var u=i.dataToRect([l],!1).tl,f=new Nt({shape:{x:u[0],y:u[1],width:o,height:s},cursor:"default",style:A});a.add(f)}},t.prototype._renderLines=function(e,n,a,i){var A=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),l=e.get(["splitLine","show"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,c=0;f.time<=n.end.time;c++){v(f.formatedDate),c===0&&(f=o.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=o.getDateInfo(h)}v(o.getNextNDay(n.end.time,1).formatedDate);function v(d){A._firstDayOfMonth.push(o.getDateInfo(d)),A._firstDayPoints.push(o.dataToRect([d],!1).tl);var p=A._getLinePointsOfOneWeek(e,d,a);A._tlpoints.push(p[0]),A._blpoints.push(p[p.length-1]),l&&A._drawSplitline(p,s,i)}l&&this._drawSplitline(A._getEdgesPoints(A._tlpoints,u,a),s,i),l&&this._drawSplitline(A._getEdgesPoints(A._blpoints,u,a),s,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],A=a==="horizontal"?0:1;return i[0][A]=i[0][A]-n/2,i[1][A]=i[1][A]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new xr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,A=i.getDateInfo(n),o=[],s=0;s<7;s++){var l=i.getNextNDay(A.time,s),u=i.dataToRect([l.time],!1);o[2*l.day]=u.tl,o[2*l.day+1]=u[a==="horizontal"?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,n){return nt(e)&&e?N5(e,n):vt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,A){var o=n[0],s=n[1],l=["center","bottom"];i==="bottom"?(s+=A,l=["center","top"]):i==="left"?o-=A:i==="right"?(o+=A,l=["center","top"]):s-=A;var u=0;return(i==="left"||i==="right")&&(u=Math.PI/2),{rotation:u,x:o,y:s,style:{align:l[0],verticalAlign:l[1]}}},t.prototype._renderYearText=function(e,n,a,i){var A=e.getModel("yearLabel");if(A.get("show")){var o=A.get("margin"),s=A.get("position");s||(s=a!=="horizontal"?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(l[0][0]+l[1][0])/2,f=(l[0][1]+l[1][1])/2,c=a==="horizontal"?0:1,h={top:[u,l[c][1]],bottom:[u,l[1-c][1]],left:[l[1-c][0],f],right:[l[c][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var d=A.get("formatter"),p={start:n.start.y,end:n.end.y,nameMap:v},g=this._formatterLabel(d,p),y=new Gt({z2:30,style:oe(A,{text:g})});y.attr(this._yearTextPositionControl(y,h[s],a,s,o)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,n,a,i,A){var o="left",s="top",l=e[0],u=e[1];return a==="horizontal"?(u=u+A,n&&(o="center"),i==="start"&&(s="bottom")):(l=l+A,n&&(s="middle"),i==="start"&&(o="right")),{x:l,y:u,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,n,a,i){var A=e.getModel("monthLabel");if(A.get("show")){var o=A.get("nameMap"),s=A.get("margin"),l=A.get("position"),u=A.get("align"),f=[this._tlpoints,this._blpoints];(!o||nt(o))&&(o&&(n=L0(o)||n),o=n.get(["time","monthAbbr"])||[]);var c=l==="start"?0:1,h=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var v=u==="center",d=0;d=a.start.time&&n.timeo.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/qy)-Math.floor(e[0].time/qy)+1,i=new Date(e[0].time),A=i.getDate(),o=e[1].date.getDate();i.setDate(A+a-1);var s=i.getDate();if(s!==o)for(var l=i.getTime()-e[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-e[1].time)*l>0;)a-=l,i.setDate(s-l);var u=Math.floor((a+e[0].day+6)/7),f=n?-u+1:u-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:u,nthWeek:f,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&ea.lweek)return null;var i=(t-1)*7-a.fweek+e,A=new Date(a.start.time);return A.setDate(+a.start.d+i),this.getDateInfo(A)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function bF(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}function xtt(r){r.registerComponentModel(_tt),r.registerComponentView(Ctt),r.registerCoordinateSystem("calendar",Stt)}function btt(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function TF(r,t){var e;return T(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function Ttt(r,t,e){var n=V({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Et(a,n,!0),Yi(a,n,{ignoreSize:!0}),AU(e,a),rh(e,a),rh(e,a,"shape"),rh(e,a,"style"),rh(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var vH=["transition","enterFrom","leaveTo"],Itt=vH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rh(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?vH:Itt,a=0;a=0;u--){var f=a[u],c=Ee(f.id,null),h=c!=null?A.get(c):null;if(h){var v=h.parent,g=an(v),y=v===i?{width:o,height:s}:{width:g.width,height:g.height},m={},w=np(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},m);if(!an(h).isNew&&w){for(var _=f.transition,B={},C=0;C=0)?B[S]=x:h[S]=x}zt(h,B,e,0)}else h.attr(m)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){ev(a,an(a).option,n,e._lastGraphicModel)}),this._elMap=ft()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(de);function bw(r){var t=st(IF,r)?IF[r]:l_(r),e=new t({});return an(e).type=r,e}function FF(r,t,e,n){var a=bw(e);return t.add(a),n.set(r,a),an(a).id=r,an(a).isNew=!0,a}function ev(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){ev(i,t,e,n)}),mp(r,t,n),e.removeKey(an(r).id))}function EF(r,t,e,n){r.isGroup||T([["cursor",gn.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=St(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),T(Ht(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=vt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Qtt(r){return r=V({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(iU),function(t){delete r[t]}),r}function Ltt(r,t,e){var n=Ct(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ct(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function Mtt(r){r.registerComponentModel(Ett),r.registerComponentView(Dtt),r.registerPreprocessor(function(t){var e=t.graphic;K(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var DF=["x","y","radius","angle","single"],Utt=["cartesian2d","polar","singleAxis"];function Ptt(r){var t=r.get("coordinateSystem");return Qt(Utt,t)>=0}function Li(r){return r+"Axis"}function Rtt(r,t){var e=ft(),n=[],a=ft();r.eachComponent({mainType:"dataZoom",query:t},function(u){a.get(u.uid)||o(u)});var i;do i=!1,r.eachComponent("dataZoom",A);while(i);function A(u){!a.get(u.uid)&&s(u)&&(o(u),i=!0)}function o(u){a.set(u.uid,!0),n.push(u),l(u)}function s(u){var f=!1;return u.eachTargetAxis(function(c,h){var v=e.get(c);v&&v[h]&&(f=!0)}),f}function l(u){u.eachTargetAxis(function(f,c){(e.get(f)||e.set(f,[]))[c]=!0})}return n}function dH(r){var t=r.ecModel,e={infoList:[],infoMap:ft()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Li(n),a);if(i){var A=i.getCoordSysModel();if(A){var o=A.uid,s=e.infoMap.get(o);s||(s={model:A,axisModels:[]},e.infoList.push(s),e.infoMap.set(o,s)),s.axisModels.push(i)}}}),e}var jy=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Bf=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,a){var i=QF(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=QF(e);Et(this.option,e,!0),Et(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i,A){this._rangePropMode[A]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ft(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return T(DF,function(a){var i=this.getReferringComponents(Li(a),EK);if(i.specified){n=!0;var A=new jy;T(i.models,function(o){A.add(o.componentIndex)}),e.set(a,A)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var A=n==="vertical"?"y":"x",o=a.findComponents({mainType:A+"Axis"});s(o,A)}if(i){var o=a.findComponents({mainType:"singleAxis",filter:function(u){return u.get("orient",!0)===n}});s(o,"single")}function s(l,u){var f=l[0];if(f){var c=new jy;if(c.add(f.componentIndex),e.set(u,c),i=!1,u==="x"||u==="y"){var h=f.getReferringComponents("grid",be).models[0];h&&T(l,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",be).models[0]&&c.add(v.componentIndex)})}}}i&&T(DF,function(l){if(i){var u=a.findComponents({mainType:Li(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var f=new jy;f.add(u[0].componentIndex),e.set(l,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.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(e){var n=this._rangePropMode,a=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(i,A){var o=e[i[0]]!=null,s=e[i[1]]!=null;o&&!s?n[A]="percent":!o&&s?n[A]="value":a?n[A]=a[A]:o&&(n[A]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Li(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){T(a.indexList,function(A){e.call(n,i,A)})})},t.prototype.getAxisProxy=function(e,n){var a=this.getAxisModel(e,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Li(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;T(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;iA[1];if(m&&!w&&!_)return!0;m&&(p=!0),w&&(v=!0),_&&(d=!0)}return p&&v&&d})}else ls(u,function(h){if(i==="empty")s.setData(l=l.map(h,function(d){return o(d)?d:NaN}));else{var v={};v[h]=A,l.selectRange(v)}});ls(u,function(h){l.setApproximateExtent(A,h)})}});function o(s){return s>=A[0]&&s<=A[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ls(["min","max"],function(a){var i=e.get(a+"Span"),A=e.get(a+"ValueSpan");A!=null&&(A=this.getAxisModel().axis.scale.parse(A)),A!=null?i=$t(n[0]+A,n,[0,100],!0):i!=null&&(A=$t(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=A},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var a=YL(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),e[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function Ntt(r,t,e){var n=[1/0,-1/0];ls(e,function(A){wX(n,A.getData(),t)});var a=r.getAxisModel(),i=L2(a.axis.scale,a,n).calculate();return[i.min,i.max]}var Vtt={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(A,o){var s=r.getComponent(Li(A),o);a(A,o,s,i)})})}t(function(a,i,A,o){A.__dzAxisProxy=null});var e=[];t(function(a,i,A,o){A.__dzAxisProxy||(A.__dzAxisProxy=new ktt(a,i,o,r),e.push(A.__dzAxisProxy))});var n=ft();return T(e,function(a){T(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).reset(e)}),e.eachTargetAxis(function(n,a){e.getAxisProxy(n,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function Gtt(r){r.registerAction("dataZoom",function(t,e){var n=Rtt(e,t);T(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var MF=!1;function QC(r){MF||(MF=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Vtt),Gtt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ktt(r){r.registerComponentModel(Htt),r.registerComponentView(Ott),QC(r)}var on=function(){function r(){}return r}(),pH={};function us(r,t){pH[r]=t}function gH(r){return pH[r]}var ztt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;T(this.option.feature,function(n,a){var i=gH(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),Et(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}(Rt);function Wtt(r,t,e){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},A=Qe(n,i,a);io(t.get("orient"),r,t.get("itemGap"),A.width,A.height),np(r,n,i,a)}function yH(r,t){var e=rl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Nt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Xtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var A=this.group;if(A.removeAll(),!e.get("show"))return;var o=+e.get("itemSize"),s=e.get("orient")==="vertical",l=e.get("feature")||{},u=this._features||(this._features={}),f=[];T(l,function(v,d){f.push(d)}),new Ya(this._featureNames||[],f).add(c).update(c).remove(xt(c,null)).execute(),this._featureNames=f;function c(v,d){var p=f[v],g=f[d],y=l[p],m=new Yt(y,e,e.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!g){if(Ytt(p))w={onclick:m.option.onclick,featureName:p};else{var _=gH(p);if(!_)return;w=new _}u[p]=w}else if(w=u[g],!w)return;w.uid=el("toolbox-feature"),w.model=m,w.ecModel=n,w.api=a;var B=w instanceof on;if(!p&&g){B&&w.dispose&&w.dispose(n,a);return}if(!m.get("show")||B&&w.unusable){B&&w.remove&&w.remove(n,a);return}h(m,w,p),m.setIconStatus=function(C,S){var x=this.option,b=this.iconPaths;x.iconStatus=x.iconStatus||{},x.iconStatus[C]=S,b[C]&&(S==="emphasis"?Wa:Xa)(b[C])},w instanceof on&&w.render&&w.render(m,n,a,i)}function h(v,d,p){var g=v.getModel("iconStyle"),y=v.getModel(["emphasis","iconStyle"]),m=d instanceof on&&d.getIcons?d.getIcons():v.get("icon"),w=v.get("title")||{},_,B;nt(m)?(_={},_[p]=m):_=m,nt(w)?(B={},B[p]=w):B=w;var C=v.iconPaths={};T(_,function(S,x){var b=Rf(S,{},{x:-o/2,y:-o/2,width:o,height:o});b.setStyle(g.getItemStyle());var I=b.ensureState("emphasis");I.style=y.getItemStyle();var F=new Gt({style:{text:B[x],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:u_({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},n)},ignore:!0});b.setTextContent(F),js({el:b,componentModel:e,itemName:x,formatterParamsExtra:{title:B[x]}}),b.__title=B[x],b.on("mouseover",function(){var E=y.getItemStyle(),D=s?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";F.setStyle({fill:y.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),b.setTextConfig({position:y.get("textPosition")||D}),F.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",x])!=="emphasis"&&a.leaveEmphasis(this),F.hide()}),(v.get(["iconStatus",x])==="emphasis"?Wa:Xa)(b),A.add(b),b.on("click",it(d.onclick,d,n,a,x)),C[x]=b})}Wtt(A,e,a),A.add(yH(A.getBoundingRect(),e)),s||A.eachChild(function(v){var d=v.__title,p=v.ensureState("emphasis"),g=p.textConfig||(p.textConfig={}),y=v.getTextContent(),m=y&&y.ensureState("emphasis");if(m&&!vt(m)&&d){var w=m.style||(m.style={}),_=Ef(d,Gt.makeFont(w)),B=v.x+A.x,C=v.y+A.y+o,S=!1;C+_.height>a.getHeight()&&(g.position="top",S=!0);var x=S?-5-_.height:o+10;B+_.width/2>a.getWidth()?(g.position=["100%",x],w.align="right"):B-_.width/2<0&&(g.position=[0,x],w.align="left")}})},t.prototype.updateView=function(e,n,a,i){T(this._features,function(A){A instanceof on&&A.updateView&&A.updateView(A.model,n,a,i)})},t.prototype.remove=function(e,n){T(this._features,function(a){a instanceof on&&a.remove&&a.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){T(this._features,function(a){a instanceof on&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(de);function Ytt(r){return r.indexOf("my")===0}var Ztt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",A=n.getZr().painter.getType()==="svg",o=A?"svg":a.get("type",!0)||"png",s=n.getConnectedDataURL({type:o,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),l=Ut.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=s;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||A){var c=s.split(","),h=c[0].indexOf("base64")>-1,v=A?decodeURIComponent(c[1]):c[1];h&&(v=window.atob(v));var d=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var p=v.length,g=new Uint8Array(p);p--;)g[p]=v.charCodeAt(p);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var m=document.createElement("iframe");document.body.appendChild(m);var w=m.contentWindow,_=w.document;_.open("image/svg+xml","replace"),_.write(v),_.close(),w.focus(),_.execCommand("SaveAs",!0,d),document.body.removeChild(m)}}else{var B=a.get("lang"),C='',S=window.open();S.document.write(C),S.document.title=i}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(on),UF="__ec_magicType_stack__",$tt=[["line","bar"],["stack"]],Jtt=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),a={};return T(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,a){var i=this.model,A=i.get(["seriesIndex",a]);if(PF[a]){var o={series:[]},s=function(f){var c=f.subType,h=f.id,v=PF[a](c,h,f,i);v&&(gt(v,f.option),o.series.push(v));var d=f.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=d.getAxesByScale("ordinal")[0];if(p){var g=p.dim,y=g+"Axis",m=f.getReferringComponents(y,be).models[0],w=m.componentIndex;o[y]=o[y]||[];for(var _=0;_<=w;_++)o[y][w]=o[y][w]||{};o[y][w].boundaryGap=a==="bar"}}};T($tt,function(f){Qt(f,a)>=0&&T(f,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:A==null?null:{seriesIndex:A}},s);var l,u=a;a==="stack"&&(l=Et({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(u="tiled")),n.dispatchAction({type:"changeMagicType",currentType:u,newOption:o,newTitle:l,featureName:"magicType"})}},t}(on),PF={line:function(r,t,e,n){if(r==="bar")return Et({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Et({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var a=e.get("stack")===UF;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Et({id:t,stack:a?"":UF},n.get(["option","stack"])||{},!0)}};ma({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var wp=new Array(60).join("-"),Ks=" ";function qtt(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var A=i.getBaseAxis();if(A.type==="category"){var o=A.dim+"_"+A.index;t[o]||(t[o]={categoryAxis:A,valueAxis:i.getOtherAxis(A),series:[]},n.push({axisDim:A.dim,axisIndex:A.index})),t[o].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function jtt(r){var t=[];return T(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,A=i.dim,o=[" "].concat(Y(e.series,function(h){return h.name})),s=[a.model.getCategories()];T(e.series,function(h){var v=h.getRawData();s.push(h.getRawData().mapArray(v.mapDimension(A),function(d){return d}))});for(var l=[o.join(Ks)],u=0;u=0)return!0}var Tw=new RegExp("["+Ks+"]+","g");function net(r){for(var t=r.split(/\n+/g),e=nd(t.shift()).split(Tw),n=[],a=Y(e,function(s){return{name:s,data:[]}}),i=0;i=0;i--){var A=e[i];if(A[a])break}if(i<0){var o=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();e[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}}),e.push(t)}function uet(r){var t=LC(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return mH(e,function(a,i){for(var A=t.length-1;A>=0;A--)if(a=t[A][i],a){n[i]=a;break}}),n}function fet(r){wH(r).snapshots=null}function cet(r){return LC(r).length}function LC(r){var t=wH(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var het=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){fet(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(on);ma({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var vet=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MC=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=RF(e,t);T(det,function(A,o){(!n||!n.include||Qt(n.include,o)>=0)&&A(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var A=tm[n.brushType](0,i,a);n.__rangeOffset={offset:NF[n.brushType](A.values,n.range,[1,1]),xyMinMax:A.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){T(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&T(i.coordSyses,function(A){var o=tm[a.brushType](1,A,a.range,!0);n(a,o.values,A,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=tm[n.brushType](0,a.coordSys,n.coordRange),A=n.__rangeOffset;n.range=A?NF[n.brushType](i.values,A.offset,pet(i.xyMinMax,A.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:IR(a),isTargetByCursor:ER(a,t,n.coordSysModel),getLinearBrushOtherExtent:FR(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Qt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=RF(e,t),i=0;ir[1]&&r.reverse(),r}function RF(r,t){return bu(r,t,{includeMainTypes:vet})}var det={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ft(),A={},o={};!e&&!n&&!a||(T(e,function(s){var l=s.axis.grid.model;i.set(l.id,l),A[l.id]=!0}),T(n,function(s){var l=s.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),T(a,function(s){i.set(s.id,s),A[s.id]=!0,o[s.id]=!0}),i.each(function(s){var l=s.coordinateSystem,u=[];T(l.getCartesians(),function(f,c){(Qt(e,f.getAxis("x").model)>=0||Qt(n,f.getAxis("y").model)>=0)&&u.push(f)}),t.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:u[0],coordSyses:u,getPanelRect:OF.grid,xAxisDeclared:A[s.id],yAxisDeclared:o[s.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OF.geo})})}},HF=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],OF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ao(r)),t}},tm={lineX:xt(kF,0),lineY:xt(kF,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),A=[Iw([a[0],i[0]]),Iw([a[1],i[1]])];return{values:A,xyMinMax:A}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(A){var o=r?t.pointToData(A,n):t.dataToPoint(A,n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function kF(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Iw(Y([0,1],function(o){return t?a.coordToData(a.toLocalCoord(n[o]),!0):a.toGlobalCoord(a.dataToCoord(n[o]))})),A=[];return A[r]=i,A[1-r]=[NaN,NaN],{values:i,xyMinMax:A}}var NF={lineX:xt(VF,0),lineY:xt(VF,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function VF(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function pet(r,t){var e=GF(r),n=GF(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function GF(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Fw=T,get=xK("toolbox-dataZoom_"),yet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new lC(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),Bet(e,n,this,i,a),wet(e,n)},t.prototype.onclick=function(e,n,a){met[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var A=new MC(UC(this.model),i,{include:["grid"]});A.matchOutputRanges(n,i,function(l,u,f){if(f.type==="cartesian2d"){var c=l.brushType;c==="rect"?(o("x",f,u[0]),o("y",f,u[1])):o({lineX:"x",lineY:"y"}[c],f,u)}}),set(i,a),this._dispatchZoomAction(a);function o(l,u,f){var c=u.getAxis(l),h=c.model,v=s(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=Fo(0,f.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function s(l,u,f){var c;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Fw(e,function(a,i){n.push(mt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(on),met={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(uet(this.ecModel))}};function UC(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function wet(r,t){r.setIconStatus("back",cet(t)>1?"emphasis":"normal")}function Bet(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var A=new MC(UC(r),t,{include:["grid"]}),o=A.makePanelOpts(a,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(o).enableBrush(i&&o.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}$5("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=UC(n),A=bu(r,i);Fw(A.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Fw(A.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var f=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:get+l+f};c[u]=f,a.push(c)}return a});function _et(r){r.registerComponentModel(ztt),r.registerComponentView(Xtt),us("saveAsImage",Ztt),us("magicType",Jtt),us("dataView",Aet),us("dataZoom",yet),us("restore",het),Lt(Ktt)}var Cet=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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}(Rt);function BH(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function _H(r){if(Ut.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(o+="top:50%",s+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(o+="left:50%",s+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,f=A+a,c=f*Math.abs(Math.cos(u))+f*Math.abs(Math.sin(u)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-f)/2)*100)/100;o+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",d=["position:absolute;width:"+A+"px;height:"+A+"px;z-index:-1;",o+";"+s+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function Det(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Ut.transformSupported?","+PC+n:",left"+n+",top"+n),Tet+":"+a}function KF(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Ut.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ut.transform3dSupported,A="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+PC+":"+A+";":[["top",0],["left",0],[CH,A]]}function Qet(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,A=r.get("textShadowOffsetX")||0,o=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+A+"px "+o+"px "+i+"px "+a),T(["decoration","align"],function(s){var l=r.get(s);l&&t.push("text-"+s+":"+l)}),t.join(";")}function Let(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),A=r.get("shadowBlur"),o=r.get("shadowColor"),s=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),u=r.getModel("textStyle"),f=RU(r,"html"),c=s+"px "+l+"px "+A+"px "+o;return n.push("box-shadow:"+c),t&&a&&n.push(Det(a,e)),i&&n.push("background-color:"+i),T(["width","color","radius"],function(h){var v="border-"+h,d=nU(v),p=r.get(d);p!=null&&n.push(v+":"+p+(h==="color"?"":"px"))}),n.push(Qet(u)),f!=null&&n.push("padding:"+rl(f).join("px ")+"px"),n.join(";")+";"}function zF(r,t,e,n,a){var i=t&&t.painter;if(e){var A=i&&i.getViewportRoot();A&&nG(r,A,e,n,a)}else{r[0]=n,r[1]=a;var o=i&&i.getViewportRootOffset();o&&(r[0]+=o.offsetLeft,r[1]+=o.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Met=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,A=i&&(nt(i)?document.querySelector(i):Ms(i)?i:vt(i)&&i(t.getDom()));zF(this._styleCoord,a,A,t.getWidth()/2,t.getHeight()/2),(A||t.getDom()).appendChild(n),this._api=t,this._container=A;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(s){if(s=s||window.event,!o._enterable){var l=a.handler,u=a.painter.getViewportRoot();tn(u,s,!0),l.dispatch("mousemove",s)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=bet(e,"position"),a=e.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")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Iet+Let(t,!this._firstShow,this._longHide)+KF(i[0],i[1],!0)+("border-color:"+go(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var A=this.el;if(t==null){A.innerHTML="";return}var o="";if(nt(i)&&n.get("trigger")==="item"&&!BH(n)&&(o=Eet(n,a,i)),nt(t))A.innerHTML=t+o;else if(t){A.innerHTML="",K(t)||(t=[t]);for(var s=0;s=0?this._tryShow(i,A):a==="leave"&&this._hide(A))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var A=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&A.manuallyShowTip(e,n,a,{x:A._lastX,y:A._lastY,dataByCoordSys:A._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Ut.node||!a.getDom())){var A=YF(i,a);this._ticket="";var o=i.dataByCoordSys,s=Net(i,n,a);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},A)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=Pet;u.x=i.x,u.y=i.y,u.update(),Ct(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},A)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},A);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=lH(i,n),c=f.point[0],h=f.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},A)}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},A))}},t.prototype.manuallyHideTip=function(e,n,a,i){var A=this._tooltipContent;this._tooltipModel&&A.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(YF(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var A=i.seriesIndex,o=i.dataIndex,s=n.getComponent("axisPointer").coordSysAxesInfo;if(!(A==null||o==null||s==null)){var l=n.getSeriesByIndex(A);if(l){var u=l.getData(),f=Ol([u.getItemModel(o),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:A,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var A=e.dataByCoordSys;if(A&&A.length)this._showAxisTooltip(A,e);else if(a){var o=Ct(a);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,l;XA(a,function(u){if(Ct(u).dataIndex!=null)return s=u,!0;if(Ct(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,A=[n.offsetX,n.offsetY],o=Ol([n.tooltipOption],i),s=this._renderMode,l=[],u=Oe("section",{blocks:[],noHeader:!0}),f=[],c=new Og;T(e,function(y){T(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),_=m.value;if(!(!w||_==null)){var B=iH(_,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),C=Oe("section",{header:B,noHeader:!En(B),sortBlocks:!0,blocks:[]});u.blocks.push(C),T(m.seriesDataIndices,function(S){var x=a.getSeriesByIndex(S.seriesIndex),b=S.dataIndexInside,I=x.getDataParams(b);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=R_(w.axis,{value:_}),I.axisValueLabel=B,I.marker=c.makeTooltipMarker("item",go(I.color),s);var F=Mx(x.formatTooltip(b,!0,null)),E=F.frag;if(E){var D=Ol([x],i).get("valueFormatter");C.blocks.push(D?V({valueFormatter:D},E):E)}F.text&&f.push(F.text),l.push(I)}})}})}),u.blocks.reverse(),f.reverse();var h=n.position,v=o.get("order"),d=kx(u,c,s,v,a.get("useUTC"),o.get("textStyle"));d&&f.unshift(d);var p=s==="richText"?` +*`,"g")),n={series:[]};return T(e,function(a,i){if(ret(a)){var A=net(a),o=t[i],s=o.axisDim+"Axis";o&&(n[s]=n[s]||[],n[s][o.axisIndex]={data:A.categories},n.series=n.series.concat(A.series))}else{var A=aet(a);n.series.push(A)}}),n}var Aet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var A=document.createElement("div");A.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",A.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),s=i.get("lang")||[];o.innerHTML=s[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var l=document.createElement("div"),u=document.createElement("textarea");l.style.cssText="overflow:auto";var f=i.get("optionToContent"),c=i.get("contentToOption"),h=eet(e);if(vt(f)){var v=f(n.getOption());nt(v)?l.innerHTML=v:Ms(v)&&l.appendChild(v)}else{u.readOnly=i.get("readOnly");var d=u.style;d.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",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),u.value=h.value,l.appendChild(u)}var p=h.meta,g=document.createElement("div");g.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",m=document.createElement("div"),w=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var _=this;function B(){a.removeChild(A),_._dom=null}i0(m,"click",B),i0(w,"click",function(){if(c==null&&f!=null||c!=null&&f==null){B();return}var C;try{vt(c)?C=c(l,n.getOption()):C=iet(u.value,p)}catch(S){throw B(),new Error("Data view format error "+S)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),B()}),m.innerHTML=s[1],w.innerHTML=s[2],w.style.cssText=m.style.cssText=y,!i.get("readOnly")&&g.appendChild(w),g.appendChild(m),A.appendChild(o),A.appendChild(l),A.appendChild(g),l.style.height=a.clientHeight-80+"px",a.appendChild(A),this._dom=A},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(on);function oet(r,t){return Y(r,function(e,n){var a=t&&t[n];if(yt(a)&&!K(a)){var i=yt(e)&&!K(e);i||(e={value:e});var A=a.name!=null&&e.name==null;return e=gt(e,a),A&&delete e.name,e}else return e})}ma({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];T(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(V({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:oet(n.data,i)})}}),t.mergeOption(gt({series:e},r.newOption))});var mH=T,wH=Vt();function set(r,t){var e=LC(r);mH(t,function(n,a){for(var i=e.length-1;i>=0;i--){var A=e[i];if(A[a])break}if(i<0){var o=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(o){var s=o.getPercentRange();e[0][a]={dataZoomId:a,start:s[0],end:s[1]}}}}),e.push(t)}function uet(r){var t=LC(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return mH(e,function(a,i){for(var A=t.length-1;A>=0;A--)if(a=t[A][i],a){n[i]=a;break}}),n}function fet(r){wH(r).snapshots=null}function cet(r){return LC(r).length}function LC(r){var t=wH(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var het=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){fet(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(on);ma({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var vet=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],MC=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=RF(e,t);T(det,function(A,o){(!n||!n.include||Qt(n.include,o)>=0)&&A(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var A=tm[n.brushType](0,i,a);n.__rangeOffset={offset:NF[n.brushType](A.values,n.range,[1,1]),xyMinMax:A.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){T(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&T(i.coordSyses,function(A){var o=tm[a.brushType](1,A,a.range,!0);n(a,o.values,A,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=tm[n.brushType](0,a.coordSys,n.coordRange),A=n.__rangeOffset;n.range=A?NF[n.brushType](i.values,A.offset,pet(i.xyMinMax,A.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:IR(a),isTargetByCursor:ER(a,t,n.coordSysModel),getLinearBrushOtherExtent:FR(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Qt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=RF(e,t),i=0;ir[1]&&r.reverse(),r}function RF(r,t){return bu(r,t,{includeMainTypes:vet})}var det={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ft(),A={},o={};!e&&!n&&!a||(T(e,function(s){var l=s.axis.grid.model;i.set(l.id,l),A[l.id]=!0}),T(n,function(s){var l=s.axis.grid.model;i.set(l.id,l),o[l.id]=!0}),T(a,function(s){i.set(s.id,s),A[s.id]=!0,o[s.id]=!0}),i.each(function(s){var l=s.coordinateSystem,u=[];T(l.getCartesians(),function(f,c){(Qt(e,f.getAxis("x").model)>=0||Qt(n,f.getAxis("y").model)>=0)&&u.push(f)}),t.push({panelId:"grid--"+s.id,gridModel:s,coordSysModel:s,coordSys:u[0],coordSyses:u,getPanelRect:OF.grid,xAxisDeclared:A[s.id],yAxisDeclared:o[s.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OF.geo})})}},HF=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],OF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(ao(r)),t}},tm={lineX:xt(kF,0),lineY:xt(kF,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),A=[Iw([a[0],i[0]]),Iw([a[1],i[1]])];return{values:A,xyMinMax:A}},polygon:function(r,t,e,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(A){var o=r?t.pointToData(A,n):t.dataToPoint(A,n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function kF(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Iw(Y([0,1],function(o){return t?a.coordToData(a.toLocalCoord(n[o]),!0):a.toGlobalCoord(a.dataToCoord(n[o]))})),A=[];return A[r]=i,A[1-r]=[NaN,NaN],{values:i,xyMinMax:A}}var NF={lineX:xt(VF,0),lineY:xt(VF,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function VF(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function pet(r,t){var e=GF(r),n=GF(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function GF(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Fw=T,get=xK("toolbox-dataZoom_"),yet=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new lC(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),Bet(e,n,this,i,a),wet(e,n)},t.prototype.onclick=function(e,n,a){met[a].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var A=new MC(UC(this.model),i,{include:["grid"]});A.matchOutputRanges(n,i,function(l,u,f){if(f.type==="cartesian2d"){var c=l.brushType;c==="rect"?(o("x",f,u[0]),o("y",f,u[1])):o({lineX:"x",lineY:"y"}[c],f,u)}}),set(i,a),this._dispatchZoomAction(a);function o(l,u,f){var c=u.getAxis(l),h=c.model,v=s(l,h,i),d=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=Fo(0,f.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function s(l,u,f){var c;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(l,u.componentIndex);v&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Fw(e,function(a,i){n.push(mt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(on),met={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(uet(this.ecModel))}};function UC(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function wet(r,t){r.setIconStatus("back",cet(t)>1?"emphasis":"normal")}function Bet(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var A=new MC(UC(r),t,{include:["grid"]}),o=A.makePanelOpts(a,function(s){return s.xAxisDeclared&&!s.yAxisDeclared?"lineX":!s.xAxisDeclared&&s.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(o).enableBrush(i&&o.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}$5("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=UC(n),A=bu(r,i);Fw(A.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Fw(A.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var f=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:get+l+f};c[u]=f,a.push(c)}return a});function _et(r){r.registerComponentModel(ztt),r.registerComponentView(Xtt),us("saveAsImage",Ztt),us("magicType",Jtt),us("dataView",Aet),us("dataZoom",yet),us("restore",het),Lt(Ktt)}var Cet=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}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}(Rt);function BH(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function _H(r){if(Ut.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(o+="top:50%",s+="translateY(-50%) rotate("+(l=i==="left"?-225:-45)+"deg)"):(o+="left:50%",s+="translateX(-50%) rotate("+(l=i==="top"?225:45)+"deg)");var u=l*Math.PI/180,f=A+a,c=f*Math.abs(Math.cos(u))+f*Math.abs(Math.sin(u)),h=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-f)/2)*100)/100;o+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",d=["position:absolute;width:"+A+"px;height:"+A+"px;z-index:-1;",o+";"+s+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function Det(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,a="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,a+=Ut.transformSupported?","+PC+n:",left"+n+",top"+n),Tet+":"+a}function KF(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Ut.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=Ut.transform3dSupported,A="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+PC+":"+A+";":[["top",0],["left",0],[CH,A]]}function Qet(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,A=r.get("textShadowOffsetX")||0,o=r.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+A+"px "+o+"px "+i+"px "+a),T(["decoration","align"],function(s){var l=r.get(s);l&&t.push("text-"+s+":"+l)}),t.join(";")}function Let(r,t,e){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),A=r.get("shadowBlur"),o=r.get("shadowColor"),s=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),u=r.getModel("textStyle"),f=RU(r,"html"),c=s+"px "+l+"px "+A+"px "+o;return n.push("box-shadow:"+c),t&&a&&n.push(Det(a,e)),i&&n.push("background-color:"+i),T(["width","color","radius"],function(h){var v="border-"+h,d=nU(v),p=r.get(d);p!=null&&n.push(v+":"+p+(h==="color"?"":"px"))}),n.push(Qet(u)),f!=null&&n.push("padding:"+rl(f).join("px ")+"px"),n.join(";")+";"}function zF(r,t,e,n,a){var i=t&&t.painter;if(e){var A=i&&i.getViewportRoot();A&&nG(r,A,e,n,a)}else{r[0]=n,r[1]=a;var o=i&&i.getViewportRootOffset();o&&(r[0]+=o.offsetLeft,r[1]+=o.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Met=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,A=i&&(nt(i)?document.querySelector(i):Ms(i)?i:vt(i)&&i(t.getDom()));zF(this._styleCoord,a,A,t.getWidth()/2,t.getHeight()/2),(A||t.getDom()).appendChild(n),this._api=t,this._container=A;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(s){if(s=s||window.event,!o._enterable){var l=a.handler,u=a.painter.getViewportRoot();tn(u,s,!0),l.dispatch("mousemove",s)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=bet(e,"position"),a=e.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")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Iet+Let(t,!this._firstShow,this._longHide)+KF(i[0],i[1],!0)+("border-color:"+go(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var A=this.el;if(t==null){A.innerHTML="";return}var o="";if(nt(i)&&n.get("trigger")==="item"&&!BH(n)&&(o=Eet(n,a,i)),nt(t))A.innerHTML=t+o;else if(t){A.innerHTML="",K(t)||(t=[t]);for(var s=0;s=0?this._tryShow(i,A):a==="leave"&&this._hide(A))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var A=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&A.manuallyShowTip(e,n,a,{x:A._lastX,y:A._lastY,dataByCoordSys:A._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||Ut.node||!a.getDom())){var A=YF(i,a);this._ticket="";var o=i.dataByCoordSys,s=Net(i,n,a);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},A)}else if(i.tooltip&&i.x!=null&&i.y!=null){var u=Pet;u.x=i.x,u.y=i.y,u.update(),Ct(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},A)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},A);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var f=lH(i,n),c=f.point[0],h=f.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},A)}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},A))}},t.prototype.manuallyHideTip=function(e,n,a,i){var A=this._tooltipContent;this._tooltipModel&&A.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(YF(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var A=i.seriesIndex,o=i.dataIndex,s=n.getComponent("axisPointer").coordSysAxesInfo;if(!(A==null||o==null||s==null)){var l=n.getSeriesByIndex(A);if(l){var u=l.getData(),f=Ol([u.getItemModel(o),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:A,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var A=e.dataByCoordSys;if(A&&A.length)this._showAxisTooltip(A,e);else if(a){var o=Ct(a);if(o.ssrType==="legend")return;this._lastDataByCoordSys=null;var s,l;XA(a,function(u){if(Ct(u).dataIndex!=null)return s=u,!0;if(Ct(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,A=[n.offsetX,n.offsetY],o=Ol([n.tooltipOption],i),s=this._renderMode,l=[],u=ke("section",{blocks:[],noHeader:!0}),f=[],c=new Og;T(e,function(y){T(y.dataByAxis,function(m){var w=a.getComponent(m.axisDim+"Axis",m.axisIndex),_=m.value;if(!(!w||_==null)){var B=iH(_,w.axis,a,m.seriesDataIndices,m.valueLabelOpt),C=ke("section",{header:B,noHeader:!En(B),sortBlocks:!0,blocks:[]});u.blocks.push(C),T(m.seriesDataIndices,function(S){var x=a.getSeriesByIndex(S.seriesIndex),b=S.dataIndexInside,I=x.getDataParams(b);if(!(I.dataIndex<0)){I.axisDim=m.axisDim,I.axisIndex=m.axisIndex,I.axisType=m.axisType,I.axisId=m.axisId,I.axisValue=R_(w.axis,{value:_}),I.axisValueLabel=B,I.marker=c.makeTooltipMarker("item",go(I.color),s);var F=Mx(x.formatTooltip(b,!0,null)),E=F.frag;if(E){var D=Ol([x],i).get("valueFormatter");C.blocks.push(D?V({valueFormatter:D},E):E)}F.text&&f.push(F.text),l.push(I)}})}})}),u.blocks.reverse(),f.reverse();var h=n.position,v=o.get("order"),d=kx(u,c,s,v,a.get("useUTC"),o.get("textStyle"));d&&f.unshift(d);var p=s==="richText"?` -`:"
",g=f.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,h,A[0],A[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",A[0],A[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,A=Ct(n),o=A.seriesIndex,s=i.getSeriesByIndex(o),l=A.dataModel||s,u=A.dataIndex,f=A.dataType,c=l.getData(f),h=this._renderMode,v=e.positionDefault,d=Ol([c.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,f),y=new Og;g.marker=y.makeTooltipMarker("item",go(g.color),h);var m=Mx(l.formatTooltip(u,!1,f)),w=d.get("order"),_=d.get("valueFormatter"),B=m.frag,C=B?kx(_?V({valueFormatter:_},B):B,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,S,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",A=Ct(n),o=A.tooltipConfig,s=o.option||{},l=s.encodeHTMLContent;if(nt(s)){var u=s;s={content:u,formatter:u},l=!0}l&&i&&s.content&&(s=mt(s),s.content=Er(s.content));var f=[s],c=this._ecModel.getComponent(A.componentMainType,A.componentIndex);c&&f.push(c),f.push({formatter:s.content});var h=e.positionDefault,v=Ol(f,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new Og;this._showOrMove(v,function(){var y=mt(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,A,o,s,l,u){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var c=e.get("formatter");s=s||e.get("position");var h=n,v=this._getNearestPoint([A,o],a,e.get("trigger"),e.get("borderColor")),d=v.color;if(c)if(nt(c)){var p=e.ecModel.get("useUTC"),g=K(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=qd(g.axisValue,h,p)),h=aU(h,a,!0)}else if(vt(c)){var m=it(function(w,_){w===this._ticket&&(f.setContent(_,u,e,d,s),this._updatePosition(e,s,A,o,f,a,l))},this);this._ticket=i,h=c(a,i,m)}else h=c;f.setContent(h,u,e,d,s),f.show(e,d),this._updatePosition(e,s,A,o,f,a,l)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||K(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,A,o,s){var l=this._api.getWidth(),u=this._api.getHeight();n=n||e.get("position");var f=A.getSize(),c=e.get("align"),h=e.get("verticalAlign"),v=s&&s.getBoundingRect().clone();if(s&&v.applyTransform(s.transform),vt(n)&&(n=n([a,i],o,A.el,v,{viewSize:[l,u],contentSize:f.slice()})),K(n))a=et(n[0],l),i=et(n[1],u);else if(yt(n)){var d=n;d.width=f[0],d.height=f[1];var p=Qe(d,{width:l,height:u});a=p.x,i=p.y,c=null,h=null}else if(nt(n)&&s){var g=ket(n,v,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=Het(a,i,A,l,u,c?null:20,h?null:20);a=g[0],i=g[1]}if(c&&(a-=ZF(c)?f[0]/2:c==="right"?f[0]:0),h&&(i-=ZF(h)?f[1]/2:h==="bottom"?f[1]:0),BH(e)){var g=Oet(a,i,A,l,u);a=g[0],i=g[1]}A.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,A=!!a&&a.length===e.length;return A&&T(a,function(o,s){var l=o.dataByAxis||[],u=e[s]||{},f=u.dataByAxis||[];A=A&&l.length===f.length,A&&T(l,function(c,h){var v=f[h]||{},d=c.seriesDataIndices||[],p=v.seriesDataIndices||[];A=A&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===p.length,A&&T(d,function(g,y){var m=p[y];A=A&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(A=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!A},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Ut.node||!n.getDom()||(sf(this,"_updatePosition"),this._tooltipContent.dispose(),Sw("itemTooltip",n))},t.type="tooltip",t}(de);function Ol(r,t,e){var n=t.ecModel,a;e?(a=new Yt(e,n,n),a=new Yt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var A=r[i];A&&(A instanceof Yt&&(A=A.get("tooltip",!0)),nt(A)&&(A={formatter:A}),A&&(a=new Yt(A,a,n)))}return a}function YF(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function Het(r,t,e,n,a,i,A){var o=e.getSize(),s=o[0],l=o[1];return i!=null&&(r+s+i+2>n?r-=s+i:r+=i),A!=null&&(t+l+A>a?t-=l+A:t+=A),[r,t]}function Oet(r,t,e,n,a){var i=e.getSize(),A=i[0],o=i[1];return r=Math.min(r+A,n)-A,t=Math.min(t+o,a)-o,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ket(r,t,e,n){var a=e[0],i=e[1],A=Math.ceil(Math.SQRT2*n)+8,o=0,s=0,l=t.width,u=t.height;switch(r){case"inside":o=t.x+l/2-a/2,s=t.y+u/2-i/2;break;case"top":o=t.x+l/2-a/2,s=t.y-i-A;break;case"bottom":o=t.x+l/2-a/2,s=t.y+u+A;break;case"left":o=t.x-a-A,s=t.y+u/2-i/2;break;case"right":o=t.x+l+A,s=t.y+u/2-i/2}return[o,s]}function ZF(r){return r==="center"||r==="middle"}function Net(r,t,e){var n=JB(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Df(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),A=i.models[0];if(A){var o=e.getViewOfComponentModel(A),s;if(o.group.traverse(function(l){var u=Ct(l).tooltipConfig;if(u&&u.name===r.name)return s=l,!0}),s)return{componentMainType:a,componentIndex:A.componentIndex,el:s}}}}function Vet(r){Lt($f),r.registerComponentModel(Cet),r.registerComponentView(Ret),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Get=["rect","polygon","keep","clear"];function Ket(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];T(e,function(s){var l=s.hasOwnProperty("toolbox")?s.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;K(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),A=i.brush||(i.brush={}),o=A.type||(A.type=[]);o.push.apply(o,n),zet(o),t&&!o.length&&o.push.apply(o,Get)}}function zet(r){var t={};T(r,function(e){t[e]=1}),r.length=0,T(t,function(e,n){r.push(n)})}var $F=T;function JF(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Ew(r,t,e){var n={};return $F(t,function(i){var A=n[i]=a();$F(r[i],function(o,s){if(Re.isValidType(s)){var l={type:s,visual:o};e&&e(l,i),A[s]=new Re(l),s==="opacity"&&(l=mt(l),l.type="colorAlpha",A.__hidden.__alphaForOpacity=new Re(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var A=new i;return A}}function xH(r,t,e){var n;T(e,function(a){t.hasOwnProperty(a)&&JF(t[a])&&(n=!0)}),n&&T(e,function(a){t.hasOwnProperty(a)&&JF(t[a])?r[a]=mt(t[a]):delete r[a]})}function Wet(r,t,e,n,a,i){var A={};T(r,function(f){var c=Re.prepareVisualTypes(t[f]);A[f]=c});var o;function s(f){return b_(e,o,f)}function l(f,c){XU(e,o,f,c)}e.each(u);function u(f,c){o=f;var h=e.getRawDataItem(o);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),d=t[v],p=A[v],g=0,y=p.length;gt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&rE(t)}};function rE(r){return new Dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var trt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new lC(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){bH(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(a),$from:n})},t.type="brush",t}(de),ert="#ddd",rrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&xH(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:ert},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(n){return nE(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=nE(this.option,e),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}(Rt);function nE(r,t){return Et({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Yt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var nrt=["rect","polygon","lineX","lineY","keep","clear"],art=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,A,o;n.eachComponent({mainType:"brush"},function(s){i=s.brushType,A=s.brushOption.brushMode||"single",o=o||!!s.areas.length}),this._brushType=i,this._brushMode=A,T(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?A==="multiple":s==="clear"?o:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return T(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,A=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"?A==="multiple"?"single":"multiple":A}})},t.getDefaultOption=function(e){var n={show:!0,type:nrt.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:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(on);function irt(r){r.registerComponentView(trt),r.registerComponentModel(rrt),r.registerPreprocessor(Ket),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Zet),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Be),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Be),us("brush",art)}var Art=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}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}(Rt),ort=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,A=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=St(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Gt({style:oe(A,{text:e.get("text"),fill:A.getTextColor()},{disableBox:!0}),z2:10}),f=u.getBoundingRect(),c=e.get("subtext"),h=new Gt({style:oe(o,{text:c,fill:o.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){Lv(v,"_"+e.get("target"))}),d&&h.on("click",function(){Lv(d,"_"+e.get("subtarget"))}),Ct(u).eventData=Ct(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),c&&i.add(h);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=Qe(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?m.x+=m.width:s==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var w={align:s,verticalAlign:l};u.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=m.margin,B=e.getItemStyle(["color","opacity"]);B.fill=e.get("backgroundColor");var C=new Nt({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(de);function srt(r){r.registerComponentModel(Art),r.registerComponentView(ort)}var aE=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],A;a==="category"?(A=[],T(n,function(l,u){var f=Ee($s(l),""),c;yt(l)?(c=mt(l),c.value=u):c=u,A.push(c),i.push(f)})):A=n;var o={category:"ordinal",time:"time",value:"number"}[a]||"number",s=this._data=new mr([{name:"value",type:o}],this);s.initData(A,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}(Rt),TH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=nA(aE.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}(aE);Ie(TH,ip.prototype);var lrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(de),urt=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this,e,n,a)||this;return A.type=i||"value",A}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(On),rm=Math.PI,iE=Vt(),frt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),A=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(l){var u=s.scale.getLabel({value:l});return Oe("nameValue",{noName:!0,value:u})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,A,s,e)},this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),A=hrt(e,n),o;a==null||a==="auto"?o=i==="horizontal"?A.y+A.height/2=0||o==="+"?"left":"right"},l={horizontal:o>=0||o==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:rm/2},f=i==="vertical"?A.height:A.width,c=e.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=v+d,g=e.get(["label","rotate"])||0;g=g*rm/180;var y,m,w,_=c.get("position",!0),B=h&&c.get("showPlayBtn",!0),C=h&&c.get("showPrevBtn",!0),S=h&&c.get("showNextBtn",!0),x=0,b=f;_==="left"||_==="bottom"?(B&&(y=[0,0],x+=p),C&&(m=[x,0],x+=p),S&&(w=[b-v,0],b-=p)):(B&&(y=[b-v,0],b-=p),C&&(m=[0,0],x+=p),S&&(w=[b-v,0],b-=p));var I=[x,b];return e.get("inverse")&&I.reverse(),{viewRect:A,mainLength:f,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:o,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,A=e.viewRect;if(e.orient==="vertical"){var o=Wr(),s=A.x,l=A.y+A.height;va(o,o,[-s,-l]),Co(o,o,-rm/2),va(o,o,[s,l]),A=A.clone(),A.applyTransform(o)}var u=y(A),f=y(a.getBoundingRect()),c=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var p=d==="+"?0:1;m(h,f,u,1,p),m(v,c,u,1,1-p)}else{var p=d>=0?0:1;m(h,f,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=e.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,_,B,C,S){w[C]+=B[C][S]-_[C][S]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),A=crt(n,i);A.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var o=a.getDataExtent("value");A.setExtent(o[0],o[1]),A.calcNiceTicks();var s=new urt("value",A,e.axisExtent,i);return s.model=n,s},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var A=a.getExtent();if(i.get(["lineStyle","show"])){var o=new Ue({shape:{x1:A[0],y1:0,x2:A[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(o);var s=this._progressLine=new Ue({shape:{x1:A[0],x2:this._currentPointer?this._currentPointer.x:A[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(s)}},t.prototype._renderAxisTick=function(e,n,a,i){var A=this,o=i.getData(),s=a.scale.getTicks();this._tickSymbols=[],T(s,function(l){var u=a.dataToCoord(l.value),f=o.getItemModel(l.value),c=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:it(A._changeTimeline,A,l.value)},p=AE(f,c,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),no(p);var g=Ct(p);f.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,A._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,n,a,i){var A=this,o=a.getLabelModel();if(o.get("show")){var s=i.getData(),l=a.getViewLabels();this._tickLabels=[],T(l,function(u){var f=u.tickValue,c=s.getItemModel(f),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new Gt({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:it(A._changeTimeline,A,f),silent:!1,style:oe(h,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});g.ensureState("emphasis").style=oe(v),g.ensureState("progress").style=oe(d),n.add(g),no(g),iE(g).dataIndex=f,A._tickLabels.push(g)})}},t.prototype._renderControl=function(e,n,a,i){var A=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),f=i.get("inverse",!0);c(e.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),c(e.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),c(e.playPosition,u?"stop":"play",it(this._handlePlayClick,this,!u),!0);function c(h,v,d,p){if(h){var g=Pn(St(i.get(["controlStyle",v+"BtnSize"]),A),A),y=[0,-g/2,g,g],m=vrt(i,v+"Icon",y,{x:h[0],y:h[1],originX:A/2,originY:0,rotation:p?-o:0,rectHover:!0,style:s,onclick:d});m.ensureState("emphasis").style=l,n.add(m),no(m)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var A=i.getData(),o=i.getCurrentIndex(),s=A.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(f){f.draggable=!0,f.drift=it(l._handlePointerDrag,l),f.ondragend=it(l._handlePointerDragend,l),oE(f,l._progressLine,o,a,i,!0)},onUpdate:function(f){oE(f,l._progressLine,o,a,i)}};this._currentPointer=AE(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,A=fn(i.getExtent().slice());a>A[1]&&(a=A[1]),a=0&&(A[i]=+A[i].toFixed(c)),[A,f]}var nm={min:xt(ih,"min"),max:xt(ih,"max"),average:xt(ih,"average"),median:xt(ih,"median")};function _f(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!wrt(t)&&!K(t.coord)&&K(a)){var i=IH(t,e,n,r);if(t=mt(t),t.type&&nm[t.type]&&i.baseAxis&&i.valueAxis){var A=Qt(a,i.baseAxis.dim),o=Qt(a,i.valueAxis.dim),s=nm[t.type](e,i.baseDataDim,i.valueDataDim,A,o);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(a))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)nm[l[u]]&&(l[u]=HC(e,e.mapDimension(a[u]),l[u]));return t}}function IH(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(Brt(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function Brt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Cf(r,t){return r&&r.containData&&t.coord&&!Qw(t)?r.containData(t.coord):!0}function _rt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Qw(t)&&!Qw(e)?r.containZone(t.coord,e.coord):!0}function FH(r,t){return r?function(e,n,a,i){var A=i<2?e.coord&&e.coord[i]:e.value;return Oi(A,t[i])}:function(e,n,a,i){return Oi(e.value,t[i])}}function HC(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,A){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var am=Vt(),OC=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,a){var i=this,A=this.markerGroupMap;A.each(function(o){am(o).keep=!1}),n.eachSeries(function(o){var s=Ja.getMarkerModelFromSeries(o,i.type);s&&i.renderSeries(o,s,n,a)}),A.each(function(o){!am(o).keep&&i.group.remove(o.group)})},t.prototype.markKeep=function(e){am(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;T(e,function(i){var A=Ja.getMarkerModelFromSeries(i,a.type);if(A){var o=A.getData();o.eachItemGraphicEl(function(s){s&&(n?BM(s):a_(s))})}})},t.type="marker",t}(de);function lE(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),A,o=et(i.get("x"),e.getWidth()),s=et(i.get("y"),e.getHeight());if(!isNaN(o)&&!isNaN(s))A=[o,s];else if(t.getMarkerPosition)A=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var l=r.get(n.dimensions[0],a),u=r.get(n.dimensions[1],a);A=n.dataToPoint([l,u])}isNaN(o)||(A[0]=o),isNaN(s)||(A[1]=s),r.setItemLayout(a,A)})}var Crt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markPoint");A&&(lE(A.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Gf),f=Srt(A,e,n);n.setData(f),lE(n.getData(),e,i),f.each(function(c){var h=f.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(vt(v)||vt(d)||vt(p)||vt(g)){var m=n.getRawValue(c),w=n.getDataParams(c);vt(v)&&(v=v(m,w)),vt(d)&&(d=d(m,w)),vt(p)&&(p=p(m,w)),vt(g)&&(g=g(m,w))}var _=h.getModel("itemStyle").getItemStyle(),B=Of(s,"color");_.fill||(_.fill=B),f.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:_})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(c){c.traverse(function(h){Ct(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(OC);function Srt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return V(V({},s),{name:o,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=Y(e.get("data"),xt(_f,t));r&&(i=Jt(i,xt(Cf,r)));var A=FH(!!r,n);return a.initData(i,null,A),a}function xrt(r){r.registerComponentModel(mrt),r.registerComponentView(Crt),r.registerPreprocessor(function(t){RC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var brt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,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}(Ja),Ah=Vt(),Trt=function(r,t,e,n){var a=r.getData(),i;if(K(n))i=n;else{var A=n.type;if(A==="min"||A==="max"||A==="average"||A==="median"||n.xAxis!=null||n.yAxis!=null){var o=void 0,s=void 0;if(n.yAxis!=null||n.xAxis!=null)o=t.getAxis(n.yAxis!=null?"y":"x"),s=Ve(n.yAxis,n.xAxis);else{var l=IH(n,a,t,r);o=l.valueAxis;var u=_2(a,l.valueDataDim);s=HC(a,u,A)}var f=o.dim==="x"?0:1,c=1-f,h=mt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=e.get("precision");d>=0&&Kt(s)&&(s=+s.toFixed(Math.min(d,20))),h.coord[f]=v.coord[f]=s,i=[h,v,{type:A,valueIndex:n.valueIndex,value:s}]}else i=[]}var p=[_f(r,i[0]),_f(r,i[1]),V({},i[2])];return p[2].type=p[2].type||null,Et(p[2],p[0]),Et(p[2],p[1]),p};function ad(r){return!isNaN(r)&&!isFinite(r)}function uE(r,t,e,n){var a=1-r,i=n.dimensions[r];return ad(t[a])&&ad(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Irt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(uE(1,e,n,r)||uE(0,e,n,r)))return!0}return Cf(r,t[0])&&Cf(r,t[1])}function im(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get("x"),a.getWidth()),l=et(A.get("y"),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition)o=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var u=i.dimensions,f=r.get(u[0],t),c=r.get(u[1],t);o=i.dataToPoint([f,c])}if(To(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;ad(r.get(u[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):ad(r.get(u[1],t))&&(o[1]=v.toGlobalCoord(v.getExtent()[e?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}r.setItemLayout(t,o)}var Frt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markLine");if(A){var o=A.getData(),s=Ah(A).from,l=Ah(A).to;s.each(function(u){im(s,u,!0,i,a),im(l,u,!1,i,a)}),o.each(function(u){o.setItemLayout(u,[s.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new sC);this.group.add(u.group);var f=Ert(A,e,n),c=f.from,h=f.to,v=f.line;Ah(n).from=c,Ah(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");K(d)||(d=[d,d]),K(p)||(p=[p,p]),K(g)||(g=[g,g]),K(y)||(y=[y,y]),f.from.each(function(w){m(c,w,!0),m(h,w,!1)}),v.each(function(w){var _=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[c.getItemLayout(w),h.getItemLayout(w)]),_.stroke==null&&(_.stroke=c.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:c.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(w,"symbolOffset"),fromSymbolRotate:c.getItemVisual(w,"symbolRotate"),fromSymbolSize:c.getItemVisual(w,"symbolSize"),fromSymbol:c.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:_})}),u.updateData(v),f.line.eachItemGraphicEl(function(w){Ct(w).dataModel=n,w.traverse(function(_){Ct(_).dataModel=n})});function m(w,_,B){var C=w.getItemModel(_);im(w,_,B,e,i);var S=C.getModel("itemStyle").getItemStyle();S.fill==null&&(S.fill=Of(s,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:St(C.get("symbolOffset",!0),y[B?0:1]),symbolRotate:St(C.get("symbolRotate",!0),g[B?0:1]),symbolSize:St(C.get("symbolSize"),p[B?0:1]),symbol:St(C.get("symbol",!0),d[B?0:1]),style:S})}this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(OC);function Ert(r,t,e){var n;r?n=Y(r&&r.dimensions,function(l){var u=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return V(V({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=new mr(n,e),A=new mr([],e),o=Y(e.get("data"),xt(Trt,t,r,e));r&&(o=Jt(o,xt(Irt,r)));var s=FH(!!r,n);return a.initData(Y(o,function(l){return l[0]}),null,s),i.initData(Y(o,function(l){return l[1]}),null,s),A.initData(Y(o,function(l){return l[2]})),A.hasItemOption=!0,{from:a,to:i,line:A}}function Drt(r){r.registerComponentModel(brt),r.registerComponentView(Frt),r.registerPreprocessor(function(t){RC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Qrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,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}(Ja),oh=Vt(),Lrt=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var A=_f(r,a),o=_f(r,i),s=A.coord,l=o.coord;s[0]=Ve(s[0],-1/0),s[1]=Ve(s[1],-1/0),l[0]=Ve(l[0],1/0),l[1]=Ve(l[1],1/0);var u=kB([{},A,o]);return u.coord=[A.coord,o.coord],u.x0=A.x,u.y0=A.y,u.x1=o.x,u.y1=o.y,u}};function id(r){return!isNaN(r)&&!isFinite(r)}function fE(r,t,e,n){var a=1-r;return id(t[a])&&id(e[a])}function Mrt(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return To(r,"cartesian2d")?e&&n&&(fE(1,e,n)||fE(0,e,n))?!0:_rt(r,a,i):Cf(r,a)||Cf(r,i)}function cE(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get(e[0]),a.getWidth()),l=et(A.get(e[1]),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),c=i.clampData(u),h=i.clampData(f),v=[];e[0]==="x0"?v[0]=c[0]>h[0]?f[0]:u[0]:v[0]=c[0]>h[0]?u[0]:f[0],e[1]==="y0"?v[1]=c[1]>h[1]?f[1]:u[1]:v[1]=c[1]>h[1]?u[1]:f[1],o=n.getMarkerPosition(v,e,!0)}else{var d=r.get(e[0],t),p=r.get(e[1],t),g=[d,p];i.clampData&&i.clampData(g,g),o=i.dataToPoint(g,!0)}if(To(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(e[0],t),p=r.get(e[1],t);id(d)?o[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):id(p)&&(o[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}return o}var hE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Urt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markArea");if(A){var o=A.getData();o.each(function(s){var l=Y(hE,function(f){return cE(o,s,f,i,a)});o.setItemLayout(s,l);var u=o.getItemGraphicEl(s);u.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new _t});this.group.add(u.group),this.markKeep(u);var f=Prt(A,e,n);n.setData(f),f.each(function(c){var h=Y(hE,function(S){return cE(f,c,S,e,i)}),v=A.getAxis("x").scale,d=A.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(f.get("x0",c)),v.parse(f.get("x1",c))],m=[d.parse(f.get("y0",c)),d.parse(f.get("y1",c))];fn(y),fn(m);var w=!(p[0]>y[1]||p[1]m[1]||g[1]=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}(Rt),Yo=xt,Mw=T,sh=_t,EH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new sh),this.group.add(this._selectorGroup=new sh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var A=e.get("align"),o=e.get("orient");(!A||A==="auto")&&(A=e.get("left")==="right"&&o==="vertical"?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||l==="auto")&&(l=o==="horizontal"?"end":"start"),this.renderInner(A,e,n,a,s,o,l);var u=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),h=Qe(u,f,c),v=this.layoutInner(e,A,h,i,s,l),d=Qe(gt({width:v.width,height:v.height},u),f,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yH(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this.getContentGroup(),u=ft(),f=n.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Mw(n.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` +`:"
",g=f.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(o,h,A[0],A[1],this._tooltipContent,l):this._showTooltipContent(o,g,l,Math.random()+"",A[0],A[1],h,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,A=Ct(n),o=A.seriesIndex,s=i.getSeriesByIndex(o),l=A.dataModel||s,u=A.dataIndex,f=A.dataType,c=l.getData(f),h=this._renderMode,v=e.positionDefault,d=Ol([c.getItemModel(u),l,s&&(s.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=d.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(u,f),y=new Og;g.marker=y.makeTooltipMarker("item",go(g.color),h);var m=Mx(l.formatTooltip(u,!1,f)),w=d.get("order"),_=d.get("valueFormatter"),B=m.frag,C=B?kx(_?V({valueFormatter:_},B):B,y,h,w,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+l.name+"_"+u;this._showOrMove(d,function(){this._showTooltipContent(d,C,g,S,e.offsetX,e.offsetY,e.position,e.target,y)}),a({type:"showTip",dataIndexInside:u,dataIndex:c.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",A=Ct(n),o=A.tooltipConfig,s=o.option||{},l=s.encodeHTMLContent;if(nt(s)){var u=s;s={content:u,formatter:u},l=!0}l&&i&&s.content&&(s=mt(s),s.content=Er(s.content));var f=[s],c=this._ecModel.getComponent(A.componentMainType,A.componentIndex);c&&f.push(c),f.push({formatter:s.content});var h=e.positionDefault,v=Ol(f,this._tooltipModel,h?{position:h}:null),d=v.get("content"),p=Math.random()+"",g=new Og;this._showOrMove(v,function(){var y=mt(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,p,e.offsetX,e.offsetY,e.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,A,o,s,l,u){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var c=e.get("formatter");s=s||e.get("position");var h=n,v=this._getNearestPoint([A,o],a,e.get("trigger"),e.get("borderColor")),d=v.color;if(c)if(nt(c)){var p=e.ecModel.get("useUTC"),g=K(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=qd(g.axisValue,h,p)),h=aU(h,a,!0)}else if(vt(c)){var m=it(function(w,_){w===this._ticket&&(f.setContent(_,u,e,d,s),this._updatePosition(e,s,A,o,f,a,l))},this);this._ticket=i,h=c(a,i,m)}else h=c;f.setContent(h,u,e,d,s),f.show(e,d),this._updatePosition(e,s,A,o,f,a,l)}},t.prototype._getNearestPoint=function(e,n,a,i){if(a==="axis"||K(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!K(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,A,o,s){var l=this._api.getWidth(),u=this._api.getHeight();n=n||e.get("position");var f=A.getSize(),c=e.get("align"),h=e.get("verticalAlign"),v=s&&s.getBoundingRect().clone();if(s&&v.applyTransform(s.transform),vt(n)&&(n=n([a,i],o,A.el,v,{viewSize:[l,u],contentSize:f.slice()})),K(n))a=et(n[0],l),i=et(n[1],u);else if(yt(n)){var d=n;d.width=f[0],d.height=f[1];var p=Qe(d,{width:l,height:u});a=p.x,i=p.y,c=null,h=null}else if(nt(n)&&s){var g=ket(n,v,f,e.get("borderWidth"));a=g[0],i=g[1]}else{var g=Het(a,i,A,l,u,c?null:20,h?null:20);a=g[0],i=g[1]}if(c&&(a-=ZF(c)?f[0]/2:c==="right"?f[0]:0),h&&(i-=ZF(h)?f[1]/2:h==="bottom"?f[1]:0),BH(e)){var g=Oet(a,i,A,l,u);a=g[0],i=g[1]}A.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,A=!!a&&a.length===e.length;return A&&T(a,function(o,s){var l=o.dataByAxis||[],u=e[s]||{},f=u.dataByAxis||[];A=A&&l.length===f.length,A&&T(l,function(c,h){var v=f[h]||{},d=c.seriesDataIndices||[],p=v.seriesDataIndices||[];A=A&&c.value===v.value&&c.axisType===v.axisType&&c.axisId===v.axisId&&d.length===p.length,A&&T(d,function(g,y){var m=p[y];A=A&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),i&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,m=n[y],w=i[y];m&&w&&w.data!==m.data&&(A=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!A},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Ut.node||!n.getDom()||(sf(this,"_updatePosition"),this._tooltipContent.dispose(),Sw("itemTooltip",n))},t.type="tooltip",t}(de);function Ol(r,t,e){var n=t.ecModel,a;e?(a=new Yt(e,n,n),a=new Yt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var A=r[i];A&&(A instanceof Yt&&(A=A.get("tooltip",!0)),nt(A)&&(A={formatter:A}),A&&(a=new Yt(A,a,n)))}return a}function YF(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function Het(r,t,e,n,a,i,A){var o=e.getSize(),s=o[0],l=o[1];return i!=null&&(r+s+i+2>n?r-=s+i:r+=i),A!=null&&(t+l+A>a?t-=l+A:t+=A),[r,t]}function Oet(r,t,e,n,a){var i=e.getSize(),A=i[0],o=i[1];return r=Math.min(r+A,n)-A,t=Math.min(t+o,a)-o,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ket(r,t,e,n){var a=e[0],i=e[1],A=Math.ceil(Math.SQRT2*n)+8,o=0,s=0,l=t.width,u=t.height;switch(r){case"inside":o=t.x+l/2-a/2,s=t.y+u/2-i/2;break;case"top":o=t.x+l/2-a/2,s=t.y-i-A;break;case"bottom":o=t.x+l/2-a/2,s=t.y+u+A;break;case"left":o=t.x-a-A,s=t.y+u/2-i/2;break;case"right":o=t.x+l+A,s=t.y+u/2-i/2}return[o,s]}function ZF(r){return r==="center"||r==="middle"}function Net(r,t,e){var n=JB(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Df(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),A=i.models[0];if(A){var o=e.getViewOfComponentModel(A),s;if(o.group.traverse(function(l){var u=Ct(l).tooltipConfig;if(u&&u.name===r.name)return s=l,!0}),s)return{componentMainType:a,componentIndex:A.componentIndex,el:s}}}}function Vet(r){Lt($f),r.registerComponentModel(Cet),r.registerComponentView(Ret),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Be),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Be)}var Get=["rect","polygon","keep","clear"];function Ket(r,t){var e=qt(r?r.brush:[]);if(e.length){var n=[];T(e,function(s){var l=s.hasOwnProperty("toolbox")?s.toolbox:[];l instanceof Array&&(n=n.concat(l))});var a=r&&r.toolbox;K(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),A=i.brush||(i.brush={}),o=A.type||(A.type=[]);o.push.apply(o,n),zet(o),t&&!o.length&&o.push.apply(o,Get)}}function zet(r){var t={};T(r,function(e){t[e]=1}),r.length=0,T(t,function(e,n){r.push(n)})}var $F=T;function JF(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Ew(r,t,e){var n={};return $F(t,function(i){var A=n[i]=a();$F(r[i],function(o,s){if(He.isValidType(s)){var l={type:s,visual:o};e&&e(l,i),A[s]=new He(l),s==="opacity"&&(l=mt(l),l.type="colorAlpha",A.__hidden.__alphaForOpacity=new He(l))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var A=new i;return A}}function xH(r,t,e){var n;T(e,function(a){t.hasOwnProperty(a)&&JF(t[a])&&(n=!0)}),n&&T(e,function(a){t.hasOwnProperty(a)&&JF(t[a])?r[a]=mt(t[a]):delete r[a]})}function Wet(r,t,e,n,a,i){var A={};T(r,function(f){var c=He.prepareVisualTypes(t[f]);A[f]=c});var o;function s(f){return b_(e,o,f)}function l(f,c){XU(e,o,f,c)}e.each(u);function u(f,c){o=f;var h=e.getRawDataItem(o);if(!(h&&h.visualMap===!1))for(var v=n.call(a,f),d=t[v],p=A[v],g=0,y=p.length;gt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&rE(t)}};function rE(r){return new Dt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var trt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new lC(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){bH(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:mt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:mt(a),$from:n})},t.type="brush",t}(de),ert="#ddd",rrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&xH(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:ert},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(n){return nE(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=nE(this.option,e),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}(Rt);function nE(r,t){return Et({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Yt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var nrt=["rect","polygon","lineX","lineY","keep","clear"],art=function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,A,o;n.eachComponent({mainType:"brush"},function(s){i=s.brushType,A=s.brushOption.brushMode||"single",o=o||!!s.areas.length}),this._brushType=i,this._brushMode=A,T(e.get("type",!0),function(s){e.setIconStatus(s,(s==="keep"?A==="multiple":s==="clear"?o:s===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return T(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,A=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"?A==="multiple"?"single":"multiple":A}})},t.getDefaultOption=function(e){var n={show:!0,type:nrt.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:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(on);function irt(r){r.registerComponentView(trt),r.registerComponentModel(rrt),r.registerPreprocessor(Ket),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Zet),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Be),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Be),us("brush",art)}var Art=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}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}(Rt),ort=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,A=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),l=St(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Gt({style:oe(A,{text:e.get("text"),fill:A.getTextColor()},{disableBox:!0}),z2:10}),f=u.getBoundingRect(),c=e.get("subtext"),h=new Gt({style:oe(o,{text:c,fill:o.getTextColor(),y:f.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=e.get("link"),d=e.get("sublink"),p=e.get("triggerEvent",!0);u.silent=!v&&!p,h.silent=!d&&!p,v&&u.on("click",function(){Lv(v,"_"+e.get("target"))}),d&&h.on("click",function(){Lv(d,"_"+e.get("subtarget"))}),Ct(u).eventData=Ct(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(u),c&&i.add(h);var g=i.getBoundingRect(),y=e.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=Qe(y,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),s==="middle"&&(s="center"),s==="right"?m.x+=m.width:s==="center"&&(m.x+=m.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?m.y+=m.height:l==="middle"&&(m.y+=m.height/2),l=l||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var w={align:s,verticalAlign:l};u.setStyle(w),h.setStyle(w),g=i.getBoundingRect();var _=m.margin,B=e.getItemStyle(["color","opacity"]);B.fill=e.get("backgroundColor");var C=new Nt({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(de);function srt(r){r.registerComponentModel(Art),r.registerComponentView(ort)}var aE=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],A;a==="category"?(A=[],T(n,function(l,u){var f=Ee($s(l),""),c;yt(l)?(c=mt(l),c.value=u):c=u,A.push(c),i.push(f)})):A=n;var o={category:"ordinal",time:"time",value:"number"}[a]||"number",s=this._data=new mr([{name:"value",type:o}],this);s.initData(A,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}(Rt),TH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=nA(aE.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}(aE);Ie(TH,ip.prototype);var lrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(de),urt=function(r){H(t,r);function t(e,n,a,i){var A=r.call(this,e,n,a)||this;return A.type=i||"value",A}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(On),rm=Math.PI,iE=Vt(),frt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),A=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(l){var u=s.scale.getLabel({value:l});return ke("nameValue",{noName:!0,value:u})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(l){this["_render"+l](i,A,s,e)},this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),A=hrt(e,n),o;a==null||a==="auto"?o=i==="horizontal"?A.y+A.height/2=0||o==="+"?"left":"right"},l={horizontal:o>=0||o==="+"?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:rm/2},f=i==="vertical"?A.height:A.width,c=e.getModel("controlStyle"),h=c.get("show",!0),v=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=v+d,g=e.get(["label","rotate"])||0;g=g*rm/180;var y,m,w,_=c.get("position",!0),B=h&&c.get("showPlayBtn",!0),C=h&&c.get("showPrevBtn",!0),S=h&&c.get("showNextBtn",!0),x=0,b=f;_==="left"||_==="bottom"?(B&&(y=[0,0],x+=p),C&&(m=[x,0],x+=p),S&&(w=[b-v,0],b-=p)):(B&&(y=[b-v,0],b-=p),C&&(m=[0,0],x+=p),S&&(w=[b-v,0],b-=p));var I=[x,b];return e.get("inverse")&&I.reverse(),{viewRect:A,mainLength:f,orient:i,rotation:u[i],labelRotation:g,labelPosOpt:o,labelAlign:e.get(["label","align"])||s[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[i],playPosition:y,prevBtnPosition:m,nextBtnPosition:w,axisExtent:I,controlSize:v,controlGap:d}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,A=e.viewRect;if(e.orient==="vertical"){var o=Wr(),s=A.x,l=A.y+A.height;va(o,o,[-s,-l]),Co(o,o,-rm/2),va(o,o,[s,l]),A=A.clone(),A.applyTransform(o)}var u=y(A),f=y(a.getBoundingRect()),c=y(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=u[0][0];var d=e.labelPosOpt;if(d==null||nt(d)){var p=d==="+"?0:1;m(h,f,u,1,p),m(v,c,u,1,1-p)}else{var p=d>=0?0:1;m(h,f,u,1,p),v[1]=h[1]+d}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=e.rotation,g(a),g(i);function g(w){w.originX=u[0][0]-w.x,w.originY=u[1][0]-w.y}function y(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function m(w,_,B,C,S){w[C]+=B[C][S]-_[C][S]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType"),A=crt(n,i);A.getTicks=function(){return a.mapArray(["value"],function(l){return{value:l}})};var o=a.getDataExtent("value");A.setExtent(o[0],o[1]),A.calcNiceTicks();var s=new urt("value",A,e.axisExtent,i);return s.model=n,s},t.prototype._createGroup=function(e){var n=this[e]=new _t;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var A=a.getExtent();if(i.get(["lineStyle","show"])){var o=new Pe({shape:{x1:A[0],y1:0,x2:A[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(o);var s=this._progressLine=new Pe({shape:{x1:A[0],x2:this._currentPointer?this._currentPointer.x:A[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(s)}},t.prototype._renderAxisTick=function(e,n,a,i){var A=this,o=i.getData(),s=a.scale.getTicks();this._tickSymbols=[],T(s,function(l){var u=a.dataToCoord(l.value),f=o.getItemModel(l.value),c=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),d={x:u,y:0,onclick:it(A._changeTimeline,A,l.value)},p=AE(f,c,n,d);p.ensureState("emphasis").style=h.getItemStyle(),p.ensureState("progress").style=v.getItemStyle(),no(p);var g=Ct(p);f.get("tooltip")?(g.dataIndex=l.value,g.dataModel=i):g.dataIndex=g.dataModel=null,A._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,n,a,i){var A=this,o=a.getLabelModel();if(o.get("show")){var s=i.getData(),l=a.getViewLabels();this._tickLabels=[],T(l,function(u){var f=u.tickValue,c=s.getItemModel(f),h=c.getModel("label"),v=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),p=a.dataToCoord(u.tickValue),g=new Gt({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:it(A._changeTimeline,A,f),silent:!1,style:oe(h,{text:u.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});g.ensureState("emphasis").style=oe(v),g.ensureState("progress").style=oe(d),n.add(g),no(g),iE(g).dataIndex=f,A._tickLabels.push(g)})}},t.prototype._renderControl=function(e,n,a,i){var A=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),u=i.getPlayState(),f=i.get("inverse",!0);c(e.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),c(e.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),c(e.playPosition,u?"stop":"play",it(this._handlePlayClick,this,!u),!0);function c(h,v,d,p){if(h){var g=Pn(St(i.get(["controlStyle",v+"BtnSize"]),A),A),y=[0,-g/2,g,g],m=vrt(i,v+"Icon",y,{x:h[0],y:h[1],originX:A/2,originY:0,rotation:p?-o:0,rectHover:!0,style:s,onclick:d});m.ensureState("emphasis").style=l,n.add(m),no(m)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var A=i.getData(),o=i.getCurrentIndex(),s=A.getItemModel(o).getModel("checkpointStyle"),l=this,u={onCreate:function(f){f.draggable=!0,f.drift=it(l._handlePointerDrag,l),f.ondragend=it(l._handlePointerDragend,l),oE(f,l._progressLine,o,a,i,!0)},onUpdate:function(f){oE(f,l._progressLine,o,a,i)}};this._currentPointer=AE(s,s,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,A=fn(i.getExtent().slice());a>A[1]&&(a=A[1]),a=0&&(A[i]=+A[i].toFixed(c)),[A,f]}var nm={min:xt(ih,"min"),max:xt(ih,"max"),average:xt(ih,"average"),median:xt(ih,"median")};function _f(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!wrt(t)&&!K(t.coord)&&K(a)){var i=IH(t,e,n,r);if(t=mt(t),t.type&&nm[t.type]&&i.baseAxis&&i.valueAxis){var A=Qt(a,i.baseAxis.dim),o=Qt(a,i.valueAxis.dim),s=nm[t.type](e,i.baseDataDim,i.valueDataDim,A,o);t.coord=s[0],t.value=s[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(a))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)nm[l[u]]&&(l[u]=HC(e,e.mapDimension(a[u]),l[u]));return t}}function IH(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(Brt(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function Brt(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Cf(r,t){return r&&r.containData&&t.coord&&!Qw(t)?r.containData(t.coord):!0}function _rt(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Qw(t)&&!Qw(e)?r.containZone(t.coord,e.coord):!0}function FH(r,t){return r?function(e,n,a,i){var A=i<2?e.coord&&e.coord[i]:e.value;return Oi(A,t[i])}:function(e,n,a,i){return Oi(e.value,t[i])}}function HC(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,A){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var am=Vt(),OC=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ft()},t.prototype.render=function(e,n,a){var i=this,A=this.markerGroupMap;A.each(function(o){am(o).keep=!1}),n.eachSeries(function(o){var s=Ja.getMarkerModelFromSeries(o,i.type);s&&i.renderSeries(o,s,n,a)}),A.each(function(o){!am(o).keep&&i.group.remove(o.group)})},t.prototype.markKeep=function(e){am(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;T(e,function(i){var A=Ja.getMarkerModelFromSeries(i,a.type);if(A){var o=A.getData();o.eachItemGraphicEl(function(s){s&&(n?BM(s):a_(s))})}})},t.type="marker",t}(de);function lE(r,t,e){var n=t.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),A,o=et(i.get("x"),e.getWidth()),s=et(i.get("y"),e.getHeight());if(!isNaN(o)&&!isNaN(s))A=[o,s];else if(t.getMarkerPosition)A=t.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var l=r.get(n.dimensions[0],a),u=r.get(n.dimensions[1],a);A=n.dataToPoint([l,u])}isNaN(o)||(A[0]=o),isNaN(s)||(A[1]=s),r.setItemLayout(a,A)})}var Crt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markPoint");A&&(lE(A.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new Gf),f=Srt(A,e,n);n.setData(f),lE(n.getData(),e,i),f.each(function(c){var h=f.getItemModel(c),v=h.getShallow("symbol"),d=h.getShallow("symbolSize"),p=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(vt(v)||vt(d)||vt(p)||vt(g)){var m=n.getRawValue(c),w=n.getDataParams(c);vt(v)&&(v=v(m,w)),vt(d)&&(d=d(m,w)),vt(p)&&(p=p(m,w)),vt(g)&&(g=g(m,w))}var _=h.getModel("itemStyle").getItemStyle(),B=Of(s,"color");_.fill||(_.fill=B),f.setItemVisual(c,{symbol:v,symbolSize:d,symbolRotate:p,symbolOffset:g,symbolKeepAspect:y,style:_})}),u.updateData(f),this.group.add(u.group),f.eachItemGraphicEl(function(c){c.traverse(function(h){Ct(h).dataModel=n})}),this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(OC);function Srt(r,t,e){var n;r?n=Y(r&&r.dimensions,function(o){var s=t.getData().getDimensionInfo(t.getData().mapDimension(o))||{};return V(V({},s),{name:o,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=Y(e.get("data"),xt(_f,t));r&&(i=Jt(i,xt(Cf,r)));var A=FH(!!r,n);return a.initData(i,null,A),a}function xrt(r){r.registerComponentModel(mrt),r.registerComponentView(Crt),r.registerPreprocessor(function(t){RC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var brt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,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}(Ja),Ah=Vt(),Trt=function(r,t,e,n){var a=r.getData(),i;if(K(n))i=n;else{var A=n.type;if(A==="min"||A==="max"||A==="average"||A==="median"||n.xAxis!=null||n.yAxis!=null){var o=void 0,s=void 0;if(n.yAxis!=null||n.xAxis!=null)o=t.getAxis(n.yAxis!=null?"y":"x"),s=Ge(n.yAxis,n.xAxis);else{var l=IH(n,a,t,r);o=l.valueAxis;var u=_2(a,l.valueDataDim);s=HC(a,u,A)}var f=o.dim==="x"?0:1,c=1-f,h=mt(n),v={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,v.coord[c]=1/0;var d=e.get("precision");d>=0&&Kt(s)&&(s=+s.toFixed(Math.min(d,20))),h.coord[f]=v.coord[f]=s,i=[h,v,{type:A,valueIndex:n.valueIndex,value:s}]}else i=[]}var p=[_f(r,i[0]),_f(r,i[1]),V({},i[2])];return p[2].type=p[2].type||null,Et(p[2],p[0]),Et(p[2],p[1]),p};function ad(r){return!isNaN(r)&&!isFinite(r)}function uE(r,t,e,n){var a=1-r,i=n.dimensions[r];return ad(t[a])&&ad(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Irt(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(uE(1,e,n,r)||uE(0,e,n,r)))return!0}return Cf(r,t[0])&&Cf(r,t[1])}function im(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get("x"),a.getWidth()),l=et(A.get("y"),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition)o=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var u=i.dimensions,f=r.get(u[0],t),c=r.get(u[1],t);o=i.dataToPoint([f,c])}if(To(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),u=i.dimensions;ad(r.get(u[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):ad(r.get(u[1],t))&&(o[1]=v.toGlobalCoord(v.getExtent()[e?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}r.setItemLayout(t,o)}var Frt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markLine");if(A){var o=A.getData(),s=Ah(A).from,l=Ah(A).to;s.each(function(u){im(s,u,!0,i,a),im(l,u,!1,i,a)}),o.each(function(u){o.setItemLayout(u,[s.getItemLayout(u),l.getItemLayout(u)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,new sC);this.group.add(u.group);var f=Ert(A,e,n),c=f.from,h=f.to,v=f.line;Ah(n).from=c,Ah(n).to=h,n.setData(v);var d=n.get("symbol"),p=n.get("symbolSize"),g=n.get("symbolRotate"),y=n.get("symbolOffset");K(d)||(d=[d,d]),K(p)||(p=[p,p]),K(g)||(g=[g,g]),K(y)||(y=[y,y]),f.from.each(function(w){m(c,w,!0),m(h,w,!1)}),v.each(function(w){var _=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[c.getItemLayout(w),h.getItemLayout(w)]),_.stroke==null&&(_.stroke=c.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:c.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(w,"symbolOffset"),fromSymbolRotate:c.getItemVisual(w,"symbolRotate"),fromSymbolSize:c.getItemVisual(w,"symbolSize"),fromSymbol:c.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:_})}),u.updateData(v),f.line.eachItemGraphicEl(function(w){Ct(w).dataModel=n,w.traverse(function(_){Ct(_).dataModel=n})});function m(w,_,B){var C=w.getItemModel(_);im(w,_,B,e,i);var S=C.getModel("itemStyle").getItemStyle();S.fill==null&&(S.fill=Of(s,"color")),w.setItemVisual(_,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:St(C.get("symbolOffset",!0),y[B?0:1]),symbolRotate:St(C.get("symbolRotate",!0),g[B?0:1]),symbolSize:St(C.get("symbolSize"),p[B?0:1]),symbol:St(C.get("symbol",!0),d[B?0:1]),style:S})}this.markKeep(u),u.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(OC);function Ert(r,t,e){var n;r?n=Y(r&&r.dimensions,function(l){var u=t.getData().getDimensionInfo(t.getData().mapDimension(l))||{};return V(V({},u),{name:l,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new mr(n,e),i=new mr(n,e),A=new mr([],e),o=Y(e.get("data"),xt(Trt,t,r,e));r&&(o=Jt(o,xt(Irt,r)));var s=FH(!!r,n);return a.initData(Y(o,function(l){return l[0]}),null,s),i.initData(Y(o,function(l){return l[1]}),null,s),A.initData(Y(o,function(l){return l[2]})),A.hasItemOption=!0,{from:a,to:i,line:A}}function Drt(r){r.registerComponentModel(brt),r.registerComponentView(Frt),r.registerPreprocessor(function(t){RC(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Qrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,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}(Ja),oh=Vt(),Lrt=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var A=_f(r,a),o=_f(r,i),s=A.coord,l=o.coord;s[0]=Ge(s[0],-1/0),s[1]=Ge(s[1],-1/0),l[0]=Ge(l[0],1/0),l[1]=Ge(l[1],1/0);var u=kB([{},A,o]);return u.coord=[A.coord,o.coord],u.x0=A.x,u.y0=A.y,u.x1=o.x,u.y1=o.y,u}};function id(r){return!isNaN(r)&&!isFinite(r)}function fE(r,t,e,n){var a=1-r;return id(t[a])&&id(e[a])}function Mrt(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return To(r,"cartesian2d")?e&&n&&(fE(1,e,n)||fE(0,e,n))?!0:_rt(r,a,i):Cf(r,a)||Cf(r,i)}function cE(r,t,e,n,a){var i=n.coordinateSystem,A=r.getItemModel(t),o,s=et(A.get(e[0]),a.getWidth()),l=et(A.get(e[1]),a.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else{if(n.getMarkerPosition){var u=r.getValues(["x0","y0"],t),f=r.getValues(["x1","y1"],t),c=i.clampData(u),h=i.clampData(f),v=[];e[0]==="x0"?v[0]=c[0]>h[0]?f[0]:u[0]:v[0]=c[0]>h[0]?u[0]:f[0],e[1]==="y0"?v[1]=c[1]>h[1]?f[1]:u[1]:v[1]=c[1]>h[1]?u[1]:f[1],o=n.getMarkerPosition(v,e,!0)}else{var d=r.get(e[0],t),p=r.get(e[1],t),g=[d,p];i.clampData&&i.clampData(g,g),o=i.dataToPoint(g,!0)}if(To(i,"cartesian2d")){var y=i.getAxis("x"),m=i.getAxis("y"),d=r.get(e[0],t),p=r.get(e[1],t);id(d)?o[0]=y.toGlobalCoord(y.getExtent()[e[0]==="x0"?0:1]):id(p)&&(o[1]=m.toGlobalCoord(m.getExtent()[e[1]==="y0"?0:1]))}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l)}return o}var hE=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Urt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var A=Ja.getMarkerModelFromSeries(i,"markArea");if(A){var o=A.getData();o.each(function(s){var l=Y(hE,function(f){return cE(o,s,f,i,a)});o.setItemLayout(s,l);var u=o.getItemGraphicEl(s);u.setShape("points",l)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var A=e.coordinateSystem,o=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(o)||l.set(o,{group:new _t});this.group.add(u.group),this.markKeep(u);var f=Prt(A,e,n);n.setData(f),f.each(function(c){var h=Y(hE,function(S){return cE(f,c,S,e,i)}),v=A.getAxis("x").scale,d=A.getAxis("y").scale,p=v.getExtent(),g=d.getExtent(),y=[v.parse(f.get("x0",c)),v.parse(f.get("x1",c))],m=[d.parse(f.get("y0",c)),d.parse(f.get("y1",c))];fn(y),fn(m);var w=!(p[0]>y[1]||p[1]m[1]||g[1]=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}(Rt),Yo=xt,Mw=T,sh=_t,EH=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new sh),this.group.add(this._selectorGroup=new sh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var A=e.get("align"),o=e.get("orient");(!A||A==="auto")&&(A=e.get("left")==="right"&&o==="vertical"?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);s&&(!l||l==="auto")&&(l=o==="horizontal"?"end":"start"),this.renderInner(A,e,n,a,s,o,l);var u=e.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),h=Qe(u,f,c),v=this.layoutInner(e,A,h,i,s,l),d=Qe(gt({width:v.width,height:v.height},u),f,c);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yH(v,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this.getContentGroup(),u=ft(),f=n.get("selectedMode"),c=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&c.push(h.id)}),Mw(n.getData(),function(h,v){var d=h.get("name");if(!this.newlineDisabled&&(d===""||d===` `)){var p=new sh;p.newline=!0,l.add(p);return}var g=a.getSeriesByName(d)[0];if(!u.get(d))if(g){var y=g.getData(),m=y.getVisual("legendLineStyle")||{},w=y.getVisual("legendIcon"),_=y.getVisual("style"),B=this._createItem(g,d,v,h,n,e,m,_,w,f,i);B.on("click",Yo(vE,d,null,i,c)).on("mouseover",Yo(Uw,g.name,null,i,c)).on("mouseout",Yo(Pw,g.name,null,i,c)),a.ssr&&B.eachChild(function(C){var S=Ct(C);S.seriesIndex=g.seriesIndex,S.dataIndex=v,S.ssrType="legend"}),u.set(d,!0)}else a.eachRawSeries(function(C){if(!u.get(d)&&C.legendVisualProvider){var S=C.legendVisualProvider;if(!S.containName(d))return;var x=S.indexOfName(d),b=S.getItemVisual(x,"style"),I=S.getItemVisual(x,"legendIcon"),F=Xr(b.fill);F&&F[3]===0&&(F[3]=.2,b=V(V({},b),{fill:Oa(F,"rgba")}));var E=this._createItem(C,d,v,h,n,e,{},b,I,f,i);E.on("click",Yo(vE,null,d,i,c)).on("mouseover",Yo(Uw,null,d,i,c)).on("mouseout",Yo(Pw,null,d,i,c)),a.ssr&&E.eachChild(function(D){var Q=Ct(D);Q.seriesIndex=C.seriesIndex,Q.dataIndex=v,Q.ssrType="legend"}),u.set(d,!0)}},this)},this),A&&this._createSelector(A,n,i,o,s)},t.prototype._createSelector=function(e,n,a,i,A){var o=this.getSelectorGroup();Mw(e,function(l){var u=l.type,f=new Gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});o.add(f);var c=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Je(f,{normal:c,emphasis:h},{defaultText:l.title}),no(f)})},t.prototype._createItem=function(e,n,a,i,A,o,s,l,u,f,c){var h=e.visualDrawType,v=A.get("itemWidth"),d=A.get("itemHeight"),p=A.isSelected(n),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");u=m||u||"roundRect";var w=Ort(u,i,s,l,h,p,c),_=new sh,B=i.getModel("textStyle");if(vt(e.getLegendIcon)&&(!m||m==="inherit"))_.add(e.getLegendIcon({itemWidth:v,itemHeight:d,icon:u,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}));else{var C=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;_.add(krt({itemWidth:v,itemHeight:d,icon:u,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:y}))}var S=o==="left"?v+5:-5,x=o,b=A.get("formatter"),I=n;nt(b)&&b?I=b.replace("{name}",n??""):vt(b)&&(I=b(n));var F=p?B.getTextColor():i.get("inactiveColor");_.add(new Gt({style:oe(B,{text:I,x:S,y:d/2,fill:F,align:x,verticalAlign:"middle"},{inheritColor:F})}));var E=new Nt({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&js({el:E,componentModel:A,itemName:n,itemTooltipOption:D.option}),_.add(E),_.eachChild(function(Q){Q.silent=!0}),E.silent=!f,this.getContentGroup().add(_),no(_),_.__legendDataIndex=a,_},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getContentGroup(),l=this.getSelectorGroup();io(e.get("orient"),s,e.get("itemGap"),a.width,a.height);var u=s.getBoundingRect(),f=[-u.x,-u.y];if(l.markRedraw(),s.markRedraw(),A){io("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),h=[-c.x,-c.y],v=e.get("selectorButtonGap",!0),d=e.getOrient().index,p=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";o==="end"?h[d]+=u[p]+v:f[d]+=c[p]+v,h[1-d]+=u[g]/2-c[g]/2,l.x=h[0],l.y=h[1],s.x=f[0],s.y=f[1];var m={x:0,y:0};return m[p]=u[p]+v+c[p],m[g]=Math.max(u[g],c[g]),m[y]=Math.min(0,c[y]+h[1-d]),m}else return s.x=f[0],s.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(de);function Ort(r,t,e,n,a,i,A){function o(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Mw(p,function(y,m){p[m]==="inherit"&&(p[m]=g[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=s.getShallow("decal");l.decal=!f||f==="inherit"?n.decal:Hs(f,A),l.fill==="inherit"&&(l.fill=n[a]),l.stroke==="inherit"&&(l.stroke=n[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?n:e).opacity),o(l,n);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(o(h,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),d=l[u];l.lineWidth=v==="auto"?n.lineWidth>0&&d?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function krt(r){var t=r.icon||"roundRect",e=Te(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function vE(r,t,e,n){Pw(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Uw(r,t,e,n)}function DH(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,a=t.length;na[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=St(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=Am[A],s=om[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(EH);function zrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Wrt(r){Lt(QH),r.registerComponentModel(Grt),r.registerComponentView(Krt),zrt(r)}function Xrt(r){Lt(QH),Lt(Wrt)}var Yrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=nA(Bf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Bf),kC=Vt();function Zrt(r,t,e){kC(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function $rt(r,t){for(var e=kC(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function ent(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=kC(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=dH(i);T(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,Jrt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){LH(a,i);return}var u=tnt(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),Al(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var rnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Zrt(a,e,{pan:it(sm.pan,this),zoom:it(sm.zoom,this),scrollMove:it(sm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$rt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DC),sm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=lm[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:gE(function(r,t,e,n,a,i){var A=lm[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:gE(function(r,t,e,n,a,i){var A=lm[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function gE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Fo(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var lm={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function MH(r){QC(r),r.registerComponentModel(Yrt),r.registerComponentView(rnt),ent(r)}var nnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=nA(Bf.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}(Bf),Vl=Nt,yE=7,ant=1,um=30,int=7,Gl="horizontal",mE="vertical",Ant=5,ont=["line","bar","candlestick","scatter"],snt={easing:"cubicOut",duration:100,delay:0},lnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Al(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.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(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){sf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?int:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===Gl?{right:o.width-A.x-A.width,top:o.height-um-yE-i,width:A.width,height:um}:{right:yE,top:A.y,width:um,height:A.height},l=nl(e.option);T(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Qe(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===mE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===Gl&&!A?{scaleY:s?1:-1,scaleX:1}:a===Gl&&A?{scaleY:s?1:-1,scaleX:-1}:a===mE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Vl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Vl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(x,b){if(m>0&&b%m){y+=g;return}var I=x==null||isNaN(x)||x==="",F=I?0:$t(x,f,h,!0);I&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!I&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=I}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(x){var b=_.getModel(x?"selectedDataBackground":"dataBackground"),I=new _t,F=new Sr({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(E),I}for(var C=0;C<3;C++){var S=B(C===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();T(s,function(l){if(!a&&!(n!==!0&&Qt(ont,l.get("type"))<0)){var u=i.getComponent(Li(A),o).axis,f=unt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Vl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:ant,fill:"rgba(0,0,0,0)"}})),T([0,1],function(m){var w=s.get("handleIcon");!Pv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Te(w,-1,0,2,2,null,!0);_.attr({cursor:wE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),no(_);var S=s.get("handleColor");S!=null&&(_.style.fill=S),A.add(a[m]=_);var x=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Te(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:wE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Fo(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=fn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=fn(a.slice()),A=this._size;T([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new It(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){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 A=this._getViewExtent(),o=[0,100];this._range=fn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?snt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=dH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(DC);function unt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function wE(r){return r==="vertical"?"ns-resize":"ew-resize"}function UH(r){r.registerComponentModel(nnt),r.registerComponentView(lnt),QC(r)}function fnt(r){Lt(MH),Lt(UH)}var PH={get:function(r,t,e){var n=mt((cnt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},cnt={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]}},BE=Re.mapVisual,hnt=Re.eachVisual,vnt=K,_E=T,dnt=fn,pnt=$t,Ad=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&xH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Ew(this.option.controller,n,e),this.targetVisuals=Ew(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){T(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=dnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Et(i,a),Et(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){vnt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},_E(v,function(p,g){if(Re.isValidType(g)){var y=PH.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";_E(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&mt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&mt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=BE(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;hnt(w,function(B){B>_&&(_=B)}),m.symbolSize=BE(w,function(B){return pnt(B,[0,_],[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(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){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}(Rt),CE=[20,140],gnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=CE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=CE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=fn((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=SE(this,"outOfRange",this.getExtent()),a=SE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();ynt([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=$n(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Mn(a.handleLabelPoints[u],ao(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=$n(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Mn(u.indicatorLabelPoint,ao(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,x),m.animateTo(S,x)}else f.attr(C),m.attr(S);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var I=0;IA[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||IE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=IK(c,h);this._dispatchHighDown("downplay",rv(v[0],a)),this._dispatchHighDown("highlight",rv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(XA(e.target,function(s){var l=Ct(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function bnt(r,t,e,n){for(var a=t.targetVisuals[n],i=Re.prepareVisualTypes(a),A={color:Of(r.getData(),"color")},o=0,s=i.length;o0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Cnt,Snt),T(xnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Tnt))}function kH(r){r.registerComponentModel(gnt),r.registerComponentView(Bnt),OH(r)}var Int=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Fnt[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=mt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=mt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=Re.listVisualTypes(),i=this.isCategory();T(e.pieces,function(o){T(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),T(n,function(o,s){var l=!1;T(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&T(this.stateList,function(u){(e[u]||(e[u]={}))[s]=PH.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,T(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;T(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=mt(e)},t.prototype.getValueState=function(e){var n=Re.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=Re.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return T(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nA(Ad.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}(Ad),Fnt={splitNumber:function(r){var t=this.option,e=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(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function QE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Ent=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ve(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),T(u.viewPieceList,function(h){var v=h.piece,d=new _t;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),io(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:rv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return HH(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new _t,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Te(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=mt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,T(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(RH);function NH(r){r.registerComponentModel(Int),r.registerComponentView(Ent),OH(r)}function Dnt(r){Lt(kH),Lt(NH)}var Qnt={label:{enabled:!0},decal:{show:!1}},LE=Vt(),Lnt={};function Mnt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Qnt);Et(n.label,r.getLocaleModel().get("aria"),!1),Et(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),LE(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=P0(c.ecModel,c.name,Lnt,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=LE(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",S=P0(c.ecModel,C,p,g),x=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(x,S))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(S,x){if(x1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:S.seriesIndex,seriesName:S.get("name"),seriesType:s(S.subType)});var E=S.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var Q=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Rnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):YV(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),Hnt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Ont=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[E,D]}function u(E,D,Q,M){gs(E,Q)&&gs(D,M)||a.push(E,D,Q,M,Q,M)}function f(E,D,Q,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=DS:I2&&n.push(a),n}function Hw(r,t,e,n,a,i,A,o,s,l){if(gs(r,e)&&gs(t,n)&&gs(a,A)&&gs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m=0&&S=0){s.push(A,o);return}var x=[],b=[];Wi(r,e,a,A,.5,x),Wi(t,n,i,o,.5,b),Hw(x[0],b[0],x[1],b[1],x[2],b[2],x[3],b[3],s,l),Hw(x[4],b[4],x[5],b[5],x[6],b[6],x[7],b[7],s,l)}function jnt(r,t){var e=Rw(r),n=[];t=t||1;for(var a=0;a0)for(var l=0;lMath.abs(l),f=GH([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;ha,A=GH([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c1?null:new It(d*s+r,d*l+t)}function rat(r,t,e){var n=new It;It.sub(n,e,t),n.normalize();var a=new It;It.sub(a,r,t);var i=a.dot(n);return i}function $o(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function nat(r,t,e){for(var n=r.length,a=[],i=0;iA?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),nat(t,l,u)}function od(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);od(r,i[0],a,n),od(r,i[1],e-a,n)}return n}function aat(r,t){for(var e=[],n=0;n0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function ud(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:hat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function WH(r){return oat(r.path,r.count)}function Ow(){return{fromIndividuals:[],toIndividuals:[],count:0}}function vat(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];sd(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return Ow();var A=e.dividePath||WH,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ow();n=ud(n),o=ud(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new La,c=0;c=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var pat={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;VE(r)&&(l=r,u=t),VE(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var S=y?B[0]:C,x=y?C:B[0];if(sd(S))f({many:[S],one:x},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;VC(S,x,b),i(S,x,S,x,b)}}else for(var I=gt({dividePath:pat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?vat(B,C,I):dat(C,B,I),E=F.fromIndividuals,D=F.toIndividuals,Q=E.length,M=0;Mt.length,h=l?GE(u,l):GE(c?t:r,[c?r:t]),v=0,d=0;dXH))for(var i=n.getIndices(),A=0;A0&&B.group.traverse(function(S){S instanceof Mt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function YE(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function ZE(r){return K(r)?r.sort().join(","):r}function _i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Cat(r,t){var e=ft(),n=ft(),a=ft();return T(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=YE(i),u=ZE(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&T(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=YE(i),l=ZE(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_i(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:_i(o),data:o}]});else if(K(s)){var f=[];T(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:_i(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:_i(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_i(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:_i(o)})}}}}),e}function $E(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:_i(t.oldData[o]),groupIdDim:A.dimension})}),T(qt(r.to),function(A){var o=$E(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:_i(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&YH(a,i,n)}function xat(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){T(qt(n.seriesTransition),function(a){T(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o(Vr(),na("div",Iat,[Tt("div",{class:"dot",style:Ga({backgroundColor:t.color})},null,4),e.isOnline?(Vr(),na("div",{key:0,class:"pulse",style:Ga({backgroundColor:t.spreadColor})},null,4)):NN("",!0)]))}}),Eat=Ws(Fat,[["__scopeId","data-v-311f3e51"]]),Dat={class:"hover-text"},Qat={class:"left-text"},Lat={class:"disk-text"},Mat={class:"right-text"},Uat={class:"disk-text"},Pat=Bo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=av(t.used/t.total*100),n=iv(t.used/t.total*100);return(a,i)=>(Vr(),na("div",{class:"disk",style:Ga({backgroundColor:la(n)})},[Tt("div",{class:"disk-used",style:Ga({width:t.used/t.total*100+"%",backgroundColor:la(e)})},null,4),Tt("div",Dat,[Tt("div",Qat,[Tt("span",Lat,ze(t.mountpoint),1)]),Tt("div",Mat,[Tt("span",Uat,ze(la(kw)(t.used,t.total))+" ["+ze(t.fstype)+"]",1)])])],4))}}),Rat=Ws(Pat,[["__scopeId","data-v-8693b273"]]);/*! +`||l==="")){var u=A.isSelected(l);n.hasOwnProperty(l)?n[l]=n[l]&&u:n[l]=u}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function Vrt(r){r.registerAction("legendToggleSelect","legendselectchanged",xt(Nl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",xt(Nl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",xt(Nl,"inverseSelect")),r.registerAction("legendSelect","legendselected",xt(Nl,"select")),r.registerAction("legendUnSelect","legendunselected",xt(Nl,"unSelect"))}function QH(r){r.registerComponentModel(Lw),r.registerComponentView(EH),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Nrt),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Vrt(r)}var Grt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,a){var i=nl(e);r.prototype.init.call(this,e,n,a),dE(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),dE(this,this.option,e)},t.type="legend.scroll",t.defaultOption=nA(Lw.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}(Lw);function dE(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Yi(t,e,{type:"box",ignoreSize:!!a})}var pE=_t,Am=["width","height"],om=["x","y"],Krt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new pE),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pE)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,a,i,A,o,s){var l=this;r.prototype.renderInner.call(this,e,n,a,i,A,o,s);var u=this._controllerGroup,f=n.get("pageIconSize",!0),c=K(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");u.add(new Gt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,p){var g=d+"DataIndex",y=Rf(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:it(l._pageGo,l,g,n,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=d,u.add(y)}},t.prototype.layoutInner=function(e,n,a,i,A,o){var s=this.getSelectorGroup(),l=e.getOrient().index,u=Am[l],f=om[l],c=Am[1-l],h=om[1-l];A&&io("horizontal",s,e.get("selectorItemGap",!0));var v=e.get("selectorButtonGap",!0),d=s.getBoundingRect(),p=[-d.x,-d.y],g=mt(a);A&&(g[u]=a[u]-d[u]-v);var y=this._layoutContentAndController(e,i,g,l,u,c,h,f);if(A){if(o==="end")p[l]+=y[u]+v;else{var m=d[u]+v;p[l]-=m,y[f]-=m}y[u]+=d[u]+v,p[1-l]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+p[1-l]),s.x=p[0],s.y=p[1],s.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,n,a,i,A,o,s,l){var u=this.getContentGroup(),f=this._containerGroup,c=this._controllerGroup;io(e.get("orient"),u,e.get("itemGap"),i?a.width:null,i?null:a.height),io("horizontal",c,e.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),v=c.getBoundingRect(),d=this._showController=h[A]>a[A],p=[-h.x,-h.y];n||(p[i]=u[l]);var g=[0,0],y=[-v.x,-v.y],m=St(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var w=e.get("pageButtonPosition",!0);w==="end"?y[i]+=a[A]-v[A]:g[i]+=v[A]+m}y[1-i]+=h[o]/2-v[o]/2,u.setPosition(p),f.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[A]=d?a[A]:h[A],_[o]=Math.max(h[o],v[o]),_[s]=Math.min(0,v[s]+y[1-i]),f.__rectSize=a[A],d){var B={x:0,y:0};B[A]=Math.max(a[A]-v[A]-m,0),B[o]=_[o],f.setClipPath(new Nt({shape:B})),f.__rectSize=B[A]}else c.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&zt(u,{x:C.contentPosition[0],y:C.contentPosition[1]},d?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(u){var f=u+"DataIndex",c=n[f]!=null,h=a.childOfName(u);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=a.childOfName("pageText"),A=e.get("pageFormatter"),o=n.pageIndex,s=o!=null?o+1:0,l=n.pageCount;i&&A&&i.setStyle("text",nt(A)?A.replace("{current}",s==null?"":s+"").replace("{total}",l==null?"":l+""):A({current:s,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,A=e.getOrient().index,o=Am[A],s=om[A],l=this._findTargetItemIndex(n),u=a.children(),f=u[l],c=u.length,h=c?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var d=w(f);v.contentPosition[A]=-d.s;for(var p=l+1,g=d,y=d,m=null;p<=c;++p)m=w(u[p]),(!m&&y.e>g.s+i||m&&!_(m,g.s))&&(y.i>g.i?g=y:g=m,g&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=g.i),++v.pageCount)),y=m;for(var p=l-1,g=d,y=d,m=null;p>=-1;--p)m=w(u[p]),(!m||!_(y,m.s))&&g.i=C&&B.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(A,o){var s=A.__legendDataIndex;i==null&&s!=null&&(i=o),s===e&&(n=o)}),n??i},t.type="legend.scroll",t}(EH);function zrt(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function Wrt(r){Lt(QH),r.registerComponentModel(Grt),r.registerComponentView(Krt),zrt(r)}function Xrt(r){Lt(QH),Lt(Wrt)}var Yrt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=nA(Bf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Bf),kC=Vt();function Zrt(r,t,e){kC(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function $rt(r,t){for(var e=kC(r).coordSysRecordMap,n=e.keys(),a=0;an[e+t]&&(t=o),a=a&&A.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function ent(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=kC(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ft());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var A=dH(i);T(A.infoList,function(o){var s=o.model.uid,l=a.get(s)||a.set(s,Jrt(e,o.model)),u=l.dataZoomInfoMap||(l.dataZoomInfoMap=ft());u.set(i.uid,{dzReferCoordSysInfo:o,model:i,getRange:null})})}),a.each(function(i){var A=i.controller,o,s=i.dataZoomInfoMap;if(s){var l=s.keys()[0];l!=null&&(o=s.get(l))}if(!o){LH(a,i);return}var u=tnt(s);A.enable(u.controlType,u.opt),A.setPointerChecker(i.containsPoint),Al(i,"dispatchAction",o.model.get("throttle",!0),"fixRate")})})}var rnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Zrt(a,e,{pan:it(sm.pan,this),zoom:it(sm.zoom,this),scrollMove:it(sm.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$rt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(DC),sm={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),A=r.axisModels[0];if(A){var o=lm[t](null,[n.originX,n.originY],A,e,r),s=(o.signal>0?o.pixelStart+o.pixelLength-o.pixel:o.pixel-o.pixelStart)/o.pixelLength*(i[1]-i[0])+i[0],l=Math.max(1/n.scale,0);i[0]=(i[0]-s)*l+s,i[1]=(i[1]-s)*l+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Fo(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:gE(function(r,t,e,n,a,i){var A=lm[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return A.signal*(r[1]-r[0])*A.pixel/A.pixelLength}),scrollMove:gE(function(r,t,e,n,a,i){var A=lm[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return A.signal*(r[1]-r[0])*i.scrollDelta})};function gE(r){return function(t,e,n,a){var i=this.range,A=i.slice(),o=t.axisModels[0];if(o){var s=r(A,o,t,e,n,a);if(Fo(s,A,[0,100],"all"),this.range=A,i[0]!==A[0]||i[1]!==A[1])return A}}}var lm={grid:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(A.pixel=t[0]-r[0],A.pixelLength=o.width,A.pixelStart=o.x,A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=o.height,A.pixelStart=o.y,A.signal=i.inverse?-1:1),A},polar:function(r,t,e,n,a){var i=e.axis,A={},o=a.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return r=r?o.pointToCoord(r):[0,0],t=o.pointToCoord(t),e.mainType==="radiusAxis"?(A.pixel=t[0]-r[0],A.pixelLength=s[1]-s[0],A.pixelStart=s[0],A.signal=i.inverse?1:-1):(A.pixel=t[1]-r[1],A.pixelLength=l[1]-l[0],A.pixelStart=l[0],A.signal=i.inverse?-1:1),A},singleAxis:function(r,t,e,n,a){var i=e.axis,A=a.model.coordinateSystem.getRect(),o={};return r=r||[0,0],i.orient==="horizontal"?(o.pixel=t[0]-r[0],o.pixelLength=A.width,o.pixelStart=A.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=A.height,o.pixelStart=A.y,o.signal=i.inverse?-1:1),o}};function MH(r){QC(r),r.registerComponentModel(Yrt),r.registerComponentView(rnt),ent(r)}var nnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=nA(Bf.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}(Bf),Vl=Nt,yE=7,ant=1,um=30,int=7,Gl="horizontal",mE="vertical",Ant=5,ont=["line","bar","candlestick","scatter"],snt={easing:"cubicOut",duration:100,delay:0},lnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Al(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.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(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){sf(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new _t;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?int:0,A=this._findCoordRect(),o={width:n.getWidth(),height:n.getHeight()},s=this._orient===Gl?{right:o.width-A.x-A.width,top:o.height-um-yE-i,width:A.width,height:um}:{right:yE,top:A.y,width:um,height:A.height},l=nl(e.option);T(["right","top","width","height"],function(f){l[f]==="ph"&&(l[f]=s[f])});var u=Qe(l,o);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===mE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),A=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(a===Gl&&!A?{scaleY:s?1:-1,scaleX:1}:a===Gl&&A?{scaleY:s?1:-1,scaleX:-1}:a===mE&&!A?{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([o]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Vl({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var A=new Vl({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),o=this.api.getZr();i?(A.on("mousedown",this._onBrushStart,this),A.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),a.add(A)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,A=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&A.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(A!==this._shadowData||s!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=A.getDataExtent(s),c=(f[1]-f[0])*.3;f=[f[0]-c,f[1]+c];var h=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],p=[],g=v[1]/(A.count()-1),y=0,m=Math.round(A.count()/n[0]),w;A.each([s],function(x,b){if(m>0&&b%m){y+=g;return}var I=x==null||isNaN(x)||x==="",F=I?0:$t(x,f,h,!0);I&&!w&&b?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!I&&w&&(d.push([y,0]),p.push([y,0])),d.push([y,F]),p.push([y,F]),y+=g,w=I}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=A,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function B(x){var b=_.getModel(x?"selectedDataBackground":"dataBackground"),I=new _t,F=new Sr({shape:{points:l},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(F),I.add(E),I}for(var C=0;C<3;C++){var S=B(C===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(A,o){var s=e.getAxisProxy(A,o).getTargetSeriesModels();T(s,function(l){if(!a&&!(n!==!0&&Qt(ont,l.get("type"))<0)){var u=i.getComponent(Li(A),o).axis,f=unt(A),c,h=l.coordinateSystem;f!=null&&h.getOtherAxis&&(c=h.getOtherAxis(u).inverse),f=l.getData().mapDimension(f),a={thisAxis:u,series:l,thisDim:A,otherDim:f,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],A=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,l=this.api,u=s.get("borderRadius")||0,f=s.get("brushSelect"),c=n.filler=new Vl({silent:f,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});A.add(c),A.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:ant,fill:"rgba(0,0,0,0)"}})),T([0,1],function(m){var w=s.get("handleIcon");!Pv[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var _=Te(w,-1,0,2,2,null,!0);_.attr({cursor:wE(this._orient),draggable:!0,drift:it(this._onDragMove,this,m),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var B=_.getBoundingRect(),C=s.get("handleSize");this._handleHeight=et(C,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,_.setStyle(s.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),no(_);var S=s.get("handleColor");S!=null&&(_.style.fill=S),A.add(a[m]=_);var x=s.getModel("textStyle");e.add(i[m]=new Gt({silent:!0,invisible:!0,style:oe(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=c;if(f){var v=et(s.get("moveHandleSize"),o[1]),d=n.moveHandle=new Nt({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:v}}),p=v*.8,g=n.moveHandleIcon=Te(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+v/2-.5,d.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(v,10));h=n.moveZone=new Nt({invisible:!0,shape:{y:o[1]-y,height:v+y}}),h.on("mouseover",function(){l.enterEmphasis(d)}).on("mouseout",function(){l.leaveEmphasis(d)}),A.add(d),A.add(g),A.add(h)}h.attr({draggable:!0,cursor:wE(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(e[0],[0,100],n,!0),$t(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,A=this._getViewExtent(),o=a.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];Fo(n,i,A,a.get("zoomLock")?"all":e,o.minSpan!=null?$t(o.minSpan,s,A,!0):null,o.maxSpan!=null?$t(o.maxSpan,s,A,!0):null);var l=this._range,u=this._range=fn([$t(i[0],A,s,!0),$t(i[1],A,s,!0)]);return!l||l[0]!==u[0]||l[1]!==u[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=fn(a.slice()),A=this._size;T([0,1],function(h){var v=n.handles[h],d=this._handleHeight;v.attr({scaleX:d/2,scaleY:d/2,x:a[h]+(h?-1:1),y:A[1]/2-d/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:A[1]});var o={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(o),n.moveZone.setShape(o),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=n.dataShadowSegs,l=[0,i[0],i[1],A[0]],u=0;un[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,A=(i[0]+i[1])/2,o=this._updateInterval("all",a[0]-A);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new It(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){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 A=this._getViewExtent(),o=[0,100];this._range=fn([$t(a.x,A,o,!0),$t(a.x+a.width,A,o,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,A=a.brushRect;A||(A=a.brushRect=new Vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(A)),A.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,l=s.transformCoordToLocal(e,n),u=s.transformCoordToLocal(o.x,o.y),f=this._size;l[0]=Math.max(Math.min(f[0],l[0]),0),A.setShape({x:u[0],y:0,width:l[0]-u[0],height:f[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?snt:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=dH(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),A=this.api.getHeight();e={x:i*.2,y:A*.2,width:i*.6,height:A*.6}}return e},t.type="dataZoom.slider",t}(DC);function unt(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function wE(r){return r==="vertical"?"ns-resize":"ew-resize"}function UH(r){r.registerComponentModel(nnt),r.registerComponentView(lnt),QC(r)}function fnt(r){Lt(MH),Lt(UH)}var PH={get:function(r,t,e){var n=mt((cnt[r]||{})[t]);return e&&K(n)?n[n.length-1]:n}},cnt={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]}},BE=He.mapVisual,hnt=He.eachVisual,vnt=K,_E=T,dnt=fn,pnt=$t,Ad=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&xH(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Ew(this.option.controller,n,e),this.targetVisuals=Ew(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=qt(e),n},t.prototype.eachTargetSeries=function(e,n){T(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,A=i.precision,o=this.dataBound,s=i.formatter,l;a=a||["<",">"],K(e)&&(e=e.slice(),l=!0);var u=n?e:l?[f(e[0]),f(e[1])]:f(e);if(nt(s))return s.replace("{value}",l?u[0]:u).replace("{value2}",l?u[1]:u);if(vt(s))return l?s(e[0],e[1]):s(e);if(l)return e[0]===o[0]?a[0]+" "+u[1]:e[1]===o[1]?a[1]+" "+u[0]:u[0]+" - "+u[1];return u;function f(c){return c===o[0]?"min":c===o[1]?"max":(+c).toFixed(Math.min(A,20))}},t.prototype.resetExtent=function(){var e=this.option,n=dnt([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var a=e.dimensions,i=a.length-1;i>=0;i--){var A=a[i],o=e.getDimensionInfo(A);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),A=n.controller||(n.controller={});Et(i,a),Et(A,a);var o=this.isCategory();s.call(this,i),s.call(this,A),l.call(this,i,"inRange","outOfRange"),u.call(this,A);function s(f){vnt(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function l(f,c,h){var v=f[c],d=f[h];v&&!d&&(d=f[h]={},_E(v,function(p,g){if(He.isValidType(g)){var y=PH.get(g,"inactive",o);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function u(f){var c=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),d=this.getItemSymbol(),p=d||"roundRect";_E(this.stateList,function(g){var y=this.itemSize,m=f[g];m||(m=f[g]={color:o?v:[v]}),m.symbol==null&&(m.symbol=c&&mt(c)||(o?p:[p])),m.symbolSize==null&&(m.symbolSize=h&&mt(h)||(o?y[0]:[y[0],y[0]])),m.symbol=BE(m.symbol,function(B){return B==="none"?p:B});var w=m.symbolSize;if(w!=null){var _=-1/0;hnt(w,function(B){B>_&&(_=B)}),m.symbolSize=BE(w,function(B){return pnt(B,[0,_],[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(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){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}(Rt),CE=[20,140],gnt=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=CE[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=CE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):K(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=fn((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],A=a.getData();A.each(this.getDataDimensionIndex(A),function(o,s){e[0]<=o&&o<=e[1]&&i.push(s)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=SE(this,"outOfRange",this.getExtent()),a=SE(this,"inRange",this.option.range.slice()),i=[];function A(h,v){i.push({value:h,color:e(h,v)})}for(var o=0,s=0,l=a.length,u=n.length;se[1])break;i.push({color:this.getControllerVisual(s,"color",n),offset:o/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new _t(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,A=a.handleThumbs,o=a.handleLabels,s=i.itemSize,l=i.getExtent();ynt([0,1],function(u){var f=A[u];f.setStyle("fill",n.handlesColor[u]),f.y=e[u];var c=$n(e[u],[0,s[1]],l,!0),h=this.getControllerVisual(c,"symbolSize");f.scaleX=f.scaleY=h/s[0],f.x=s[0]-h/2;var v=Mn(a.handleLabelPoints[u],ao(f,this.group));o[u].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var A=this.visualMapModel,o=A.getExtent(),s=A.itemSize,l=[0,s[1]],u=this._shapes,f=u.indicator;if(f){f.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),v=this.getControllerVisual(e,"symbolSize"),d=$n(e,o,l,!0),p=s[0]-v/2,g={x:f.x,y:f.y};f.y=d,f.x=p;var y=Mn(u.indicatorLabelPoint,ao(f,this.group)),m=u.indicatorLabel;m.attr("invisible",!1);var w=this._applyTransform("left",u.mainGroup),_=this._orient,B=_==="horizontal";m.setStyle({text:(a||"")+A.formatValueText(n),verticalAlign:B?w:"middle",align:B?"center":w});var C={x:p,y:d,style:{fill:h}},S={style:{x:y[0],y:y[1]}};if(A.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(C,x),m.animateTo(S,x)}else f.attr(C),m.attr(S);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var I=0;IA[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(u,f[1],"< ",s):f[1]===1/0?this._showIndicator(u,f[0],"> ",s):this._showIndicator(u,u,"≈ ",s));var c=this._hoverLinkDataIndices,h=[];(n||IE(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=IK(c,h);this._dispatchHighDown("downplay",rv(v[0],a)),this._dispatchHighDown("highlight",rv(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(XA(e.target,function(s){var l=Ct(s);if(l.dataIndex!=null)return n=l,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var A=a.getData(n.dataType),o=A.getStore().get(i.getDataDimensionIndex(A),n.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a=0&&(i.dimension=A,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function bnt(r,t,e,n){for(var a=t.targetVisuals[n],i=He.prepareVisualTypes(a),A={color:Of(r.getData(),"color")},o=0,s=i.length;o0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Cnt,Snt),T(xnt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Tnt))}function kH(r){r.registerComponentModel(gnt),r.registerComponentView(Bnt),OH(r)}var Int=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Fnt[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(A,o){a==="categories"?(A.mappingMethod="category",A.categories=mt(i)):(A.dataExtent=this.getExtent(),A.mappingMethod="piecewise",A.pieceList=Y(this._pieceList,function(s){return s=mt(s),o!=="inRange"&&(s.visual=null),s}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=He.listVisualTypes(),i=this.isCategory();T(e.pieces,function(o){T(a,function(s){o.hasOwnProperty(s)&&(n[s]=1)})}),T(n,function(o,s){var l=!1;T(this.stateList,function(u){l=l||A(e,u,s)||A(e.target,u,s)},this),!l&&T(this.stateList,function(u){(e[u]||(e[u]={}))[s]=PH.get(s,u==="inRange"?"active":"inactive",i)})},this);function A(o,s,l){return o&&o[s]&&o[s].hasOwnProperty(l)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,A=(n?a:e).selected||{};if(a.selected=A,T(i,function(s,l){var u=this.getSelectedMapKey(s);A.hasOwnProperty(u)||(A[u]=!0)},this),a.selectedMode==="single"){var o=!1;T(i,function(s,l){var u=this.getSelectedMapKey(s);A[u]&&(o?A[u]=!1:o=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=mt(e)},t.prototype.getValueState=function(e){var n=He.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var A=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){var u=He.findPieceIndex(s,a);u===e&&A.push(l)},this),n.push({seriesId:i.id,dataIndex:A})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function A(u,f){var c=i.getRepresentValue({interval:u});f||(f=i.getValueState(c));var h=e(c,f);u[0]===-1/0?a[0]=h:u[1]===1/0?a[1]=h:n.push({value:u[0],color:h},{value:u[1],color:h})}var o=this._pieceList.slice();if(!o.length)o.push({interval:[-1/0,1/0]});else{var s=o[0].interval[0];s!==-1/0&&o.unshift({interval:[-1/0,s]}),s=o[o.length-1].interval[1],s!==1/0&&o.push({interval:[s,1/0]})}var l=-1/0;return T(o,function(u){var f=u.interval;f&&(f[0]>l&&A([l,f[0]],"outOfRange"),A(f.slice()),l=f[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=nA(Ad.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}(Ad),Fnt={splitNumber:function(r){var t=this.option,e=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(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var A=0,o=n[0];A","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function QE(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Ent=function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,A=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),l=n.itemSize,u=this._getViewData(),f=u.endsText,c=Ge(n.get("showLabel",!0),!f);f&&this._renderEndsText(e,f[0],l,c,s),T(u.viewPieceList,function(h){var v=h.piece,d=new _t;d.onclick=it(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,l[0],l[1]]),c){var g=this.visualMapModel.getValueState(p);d.add(new Gt({style:{x:s==="right"?-a:l[0]+a,y:l[1]/2,text:v.text,verticalAlign:"middle",align:s,font:A,fill:o,opacity:g==="outOfRange"?.5:1}}))}e.add(d)},this),f&&this._renderEndsText(e,f[1],l,c,s),io(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(A){var o=a.visualMapModel;o.option.hoverLink&&a.api.dispatchAction({type:A,batch:rv(o.findTargetDataIndices(n),o)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return HH(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,A){if(n){var o=new _t,s=this.visualMapModel.textStyleModel;o.add(new Gt({style:oe(s,{x:i?A==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?A:"center",text:n})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=Y(e.getPieceList(),function(o,s){return{piece:o,indexInModelPieceList:s}}),a=e.get("text"),i=e.get("orient"),A=e.get("inverse");return(i==="horizontal"?A:!A)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a){e.add(Te(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var A=mt(a.selected),o=n.getSelectedMapKey(e);i==="single"||i===!0?(A[o]=!0,T(A,function(s,l){A[l]=l===o})):A[o]=!A[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:A})}},t.type="visualMap.piecewise",t}(RH);function NH(r){r.registerComponentModel(Int),r.registerComponentView(Ent),OH(r)}function Dnt(r){Lt(kH),Lt(NH)}var Qnt={label:{enabled:!0},decal:{show:!1}},LE=Vt(),Lnt={};function Mnt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=mt(Qnt);Et(n.label,r.getLocaleModel().get("aria"),!1),Et(e.option,n,!1),a(),i();function a(){var l=e.getModel("decal"),u=l.get("show");if(u){var f=ft();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=f.get(c.type);h||(h={},f.set(c.type,h)),LE(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(vt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var y=P0(c.ecModel,c.name,Lnt,r.getSeriesCount()),m=h.getVisual("decal");h.setVisual("decal",w(m,y))}else{var v=c.getRawData(),d={},p=LE(c).scope;h.each(function(_){var B=h.getRawIndex(_);d[B]=_});var g=v.count();v.each(function(_){var B=d[_],C=v.getName(_)||_+"",S=P0(c.ecModel,C,p,g),x=h.getItemVisual(B,"decal");h.setItemVisual(B,"decal",w(x,S))})}function w(_,B){var C=_?V(V({},B),_):B;return C.dirty=!0,C}})}}function i(){var l=t.getZr().dom;if(l){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=gt(f.option,u),!!f.get("enabled")){if(f.get("description")){l.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,d=Math.min(c,v),p;if(!(c<1)){var g=o();if(g){var y=f.get(["general","withTitle"]);p=A(y,{title:g})}else p=f.get(["general","withoutTitle"]);var m=[],w=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=A(w,{seriesCount:c}),r.eachSeries(function(S,x){if(x1?f.get(["series","multiple",F]):f.get(["series","single",F]),b=A(b,{seriesId:S.seriesIndex,seriesName:S.get("name"),seriesType:s(S.subType)});var E=S.getData();if(E.count()>h){var D=f.get(["data","partialData"]);b+=A(D,{displayCnt:h})}else b+=f.get(["data","allData"]);for(var Q=f.get(["data","separator","middle"]),M=f.get(["data","separator","end"]),R=[],P=0;P":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Rnt=function(){function r(t){var e=this._condVal=nt(t)?new RegExp(t):YV(t)?t:null;if(e==null){var n="";Xt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return nt(e)?this._condVal.test(t):Kt(e)?this._condVal.test(t+""):!1},r}(),Hnt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Ont=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(a),a=[E,D]}function u(E,D,Q,M){gs(E,Q)&&gs(D,M)||a.push(E,D,Q,M,Q,M)}function f(E,D,Q,M,R,P){var O=Math.abs(D-E),G=Math.tan(O/4)*4/3,X=DS:I2&&n.push(a),n}function Hw(r,t,e,n,a,i,A,o,s,l){if(gs(r,e)&&gs(t,n)&&gs(a,A)&&gs(i,o)){s.push(A,o);return}var u=2/l,f=u*u,c=A-r,h=o-t,v=Math.sqrt(c*c+h*h);c/=v,h/=v;var d=e-r,p=n-t,g=a-A,y=i-o,m=d*d+p*p,w=g*g+y*y;if(m=0&&S=0){s.push(A,o);return}var x=[],b=[];Wi(r,e,a,A,.5,x),Wi(t,n,i,o,.5,b),Hw(x[0],b[0],x[1],b[1],x[2],b[2],x[3],b[3],s,l),Hw(x[4],b[4],x[5],b[5],x[6],b[6],x[7],b[7],s,l)}function jnt(r,t){var e=Rw(r),n=[];t=t||1;for(var a=0;a0)for(var l=0;lMath.abs(l),f=GH([s,l],u?0:1,t),c=(u?o:l)/f.length,h=0;ha,A=GH([n,a],i?0:1,t),o=i?"width":"height",s=i?"height":"width",l=i?"x":"y",u=i?"y":"x",f=r[o]/A.length,c=0;c1?null:new It(d*s+r,d*l+t)}function rat(r,t,e){var n=new It;It.sub(n,e,t),n.normalize();var a=new It;It.sub(a,r,t);var i=a.dot(n);return i}function $o(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function nat(r,t,e){for(var n=r.length,a=[],i=0;iA?(l.x=u.x=o+i/2,l.y=s,u.y=s+A):(l.y=u.y=s+A/2,l.x=o,u.x=o+i),nat(t,l,u)}function od(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);od(r,i[0],a,n),od(r,i[1],e-a,n)}return n}function aat(r,t){for(var e=[],n=0;n0;l/=2){var u=0,f=0;(r&l)>0&&(u=1),(t&l)>0&&(f=1),o+=l*l*(3*u^f),f===0&&(u===1&&(r=l-1-r,t=l-1-t),s=r,r=t,t=s)}return o}function ud(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=Y(r,function(o){var s=o.getBoundingRect(),l=o.getComputedTransform(),u=s.x+s.width/2+(l?l[4]:0),f=s.y+s.height/2+(l?l[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),a=Math.max(f,a),[u,f]}),A=Y(i,function(o,s){return{cp:o,z:hat(o[0],o[1],t,e,n,a),path:r[s]}});return A.sort(function(o,s){return o.z-s.z}).map(function(o){return o.path})}function WH(r){return oat(r.path,r.count)}function Ow(){return{fromIndividuals:[],toIndividuals:[],count:0}}function vat(r,t,e){var n=[];function a(_){for(var B=0;B<_.length;B++){var C=_[B];sd(C)?a(C.childrenRef()):C instanceof Mt&&n.push(C)}}a(r);var i=n.length;if(!i)return Ow();var A=e.dividePath||WH,o=A({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Ow();n=ud(n),o=ud(o);for(var s=e.done,l=e.during,u=e.individualDelay,f=new La,c=0;c=0;a--)if(!e[a].many.length){var s=e[o].many;if(s.length<=1)if(o)o=0;else return e;var i=s.length,l=Math.ceil(i/2);e[a].many=s.slice(l,i),e[o].many=s.slice(0,l),o++}return e}var pat={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var o=n.getModel("universalTransition").get("delay"),s=Object.assign({setToFinal:!0},A),l,u;VE(r)&&(l=r,u=t),VE(t)&&(l=t,u=r);function f(g,y,m,w,_){var B=g.many,C=g.one;if(B.length===1&&!_){var S=y?B[0]:C,x=y?C:B[0];if(sd(S))f({many:[S],one:x},!0,m,w,!0);else{var b=o?gt({delay:o(m,w)},s):s;VC(S,x,b),i(S,x,S,x,b)}}else for(var I=gt({dividePath:pat[e],individualDelay:o&&function(R,P,O,G){return o(R+m,w)}},s),F=y?vat(B,C,I):dat(C,B,I),E=F.fromIndividuals,D=F.toIndividuals,Q=E.length,M=0;Mt.length,h=l?GE(u,l):GE(c?t:r,[c?r:t]),v=0,d=0;dXH))for(var i=n.getIndices(),A=0;A0&&B.group.traverse(function(S){S instanceof Mt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function YE(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function ZE(r){return K(r)?r.sort().join(","):r}function _i(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Cat(r,t){var e=ft(),n=ft(),a=ft();return T(r.oldSeries,function(i,A){var o=r.oldDataGroupIds[A],s=r.oldData[A],l=YE(i),u=ZE(l);n.set(u,{dataGroupId:o,data:s}),K(l)&&T(l,function(f){a.set(f,{key:u,dataGroupId:o,data:s})})}),T(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var A=i.get("dataGroupId"),o=i.getData(),s=YE(i),l=ZE(s),u=n.get(l);if(u)e.set(l,{oldSeries:[{dataGroupId:u.dataGroupId,divide:_i(u.data),data:u.data}],newSeries:[{dataGroupId:A,divide:_i(o),data:o}]});else if(K(s)){var f=[];T(s,function(v){var d=n.get(v);d.data&&f.push({dataGroupId:d.dataGroupId,divide:_i(d.data),data:d.data})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{dataGroupId:A,data:o,divide:_i(o)}]})}else{var c=a.get(s);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:_i(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:A,data:o,divide:_i(o)})}}}}),e}function $E(r,t){for(var e=0;e=0&&a.push({dataGroupId:t.oldDataGroupIds[o],data:t.oldData[o],divide:_i(t.oldData[o]),groupIdDim:A.dimension})}),T(qt(r.to),function(A){var o=$E(e.updatedSeries,A);if(o>=0){var s=e.updatedSeries[o].getData();i.push({dataGroupId:t.oldDataGroupIds[o],data:s,divide:_i(s),groupIdDim:A.dimension})}}),a.length>0&&i.length>0&&YH(a,i,n)}function xat(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){T(qt(n.seriesTransition),function(a){T(qt(a.to),function(i){for(var A=n.updatedSeries,o=0;o(Vr(),na("div",Iat,[Tt("div",{class:"dot",style:Ga({backgroundColor:t.color})},null,4),e.isOnline?(Vr(),na("div",{key:0,class:"pulse",style:Ga({backgroundColor:t.spreadColor})},null,4)):NN("",!0)]))}}),Eat=Ws(Fat,[["__scopeId","data-v-311f3e51"]]),Dat={class:"hover-text"},Qat={class:"left-text"},Lat={class:"disk-text"},Mat={class:"right-text"},Uat={class:"disk-text"},Pat=Bo({__name:"Disk",props:{mountpoint:{},device:{},used:{},total:{},fstype:{}},setup(r){const t=r,e=av(t.used/t.total*100),n=iv(t.used/t.total*100);return(a,i)=>(Vr(),na("div",{class:"disk",style:Ga({backgroundColor:la(n)})},[Tt("div",{class:"disk-used",style:Ga({width:t.used/t.total*100+"%",backgroundColor:la(e)})},null,4),Tt("div",Dat,[Tt("div",Qat,[Tt("span",Lat,Le(t.mountpoint),1)]),Tt("div",Mat,[Tt("span",Uat,Le(la(kw)(t.used,t.total))+" ["+Le(t.fstype)+"]",1)])])],4))}}),Rat=Ws(Pat,[["__scopeId","data-v-8693b273"]]);/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License @@ -94,8 +94,8 @@ 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 Nw=function(r,t){return Nw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Nw(r,t)};function kn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nw(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Vw=function(){return Vw=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},qE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oat=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var fh=0;fh"u"?[]:new Uint8Array(256);for(var ch=0;ch>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},Nat=function(r){for(var t=r.length,e=[],n=0;n>so,Kat=1<>so,Wat=$H+zat,Xat=Wat,Yat=32,Zat=Xat+Yat,$at=65536>>GC,Jat=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>so],e=(e<>so)],e=(e<>GC),e=this.index[e],e+=t>>so&qat,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var hh=0;hhrD?(a.push(!0),o-=rD):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(A),e.push(zw);if(o===iit||o===Gw){if(A===0)return n.push(A),e.push(VA);var s=e[A-1];return hit.indexOf(s)===-1?(n.push(n[A-1]),e.push(s)):(n.push(A),e.push(VA))}if(n.push(A),o===uit)return e.push(t==="strict"?Ww:Sf);if(o===tO||o===lit)return e.push(VA);if(o===fit)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Sf):e.push(VA);e.push(o)}),[n,e,a]},mm=function(r,t,e,n){var a=n[e];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=e;i<=n.length;){i++;var A=n[i];if(A===t)return!0;if(A!==Mi)break}if(a===Mi)for(var i=e;i>0;){i--;var o=n[i];if(Array.isArray(r)?r.indexOf(o)!==-1:r===o)for(var s=e;s<=n.length;){s++;var A=n[s];if(A===t)return!0;if(A!==Mi)break}if(o!==Mi)break}return!1},lD=function(r,t){for(var e=r;e>=0;){var n=t[e];if(n===Mi)e--;else return n}return 0},pit=function(r,t,e,n,a){if(e[n]===0)return Wt;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return Wt;var A=i-1,o=i+1,s=t[i],l=A>=0?t[A]:0,u=t[o];if(s===JH&&u===qH)return Wt;if(qw.indexOf(s)!==-1)return eO;if(qw.indexOf(u)!==-1||rO.indexOf(u)!==-1)return Wt;if(lD(i,t)===jH)return gh;if(Jw.get(r[i])===Gw||(s===dh||s===ph)&&Jw.get(r[o])===Gw||s===nD||u===nD||s===aD||[Mi,Kw,su].indexOf(s)===-1&&u===aD||[vh,Kl,sit,qo,jo].indexOf(u)!==-1||lD(i,t)===zl||mm(gm,zl,i,t)||mm([vh,Kl],Ww,i,t)||mm(iD,iD,i,t))return Wt;if(s===Mi)return gh;if(s===gm||u===gm)return Wt;if(u===zw||s===zw)return gh;if([Kw,su,Ww].indexOf(u)!==-1||s===oit||l===Zw&&vit.indexOf(s)!==-1||s===jo&&u===Zw||u===AD||Ia.indexOf(u)!==-1&&s===Or||Ia.indexOf(s)!==-1&&u===Or||s===uu&&[Sf,dh,ph].indexOf(u)!==-1||[Sf,dh,ph].indexOf(s)!==-1&&u===lu||Ia.indexOf(s)!==-1&&oD.indexOf(u)!==-1||oD.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||[uu,lu].indexOf(s)!==-1&&(u===Or||[zl,su].indexOf(u)!==-1&&t[o+1]===Or)||[zl,su].indexOf(s)!==-1&&u===Or||s===Or&&[Or,jo,qo].indexOf(u)!==-1)return Wt;if([Or,jo,qo,vh,Kl].indexOf(u)!==-1)for(var f=i;f>=0;){var c=t[f];if(c===Or)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if([uu,lu].indexOf(u)!==-1)for(var f=[vh,Kl].indexOf(s)!==-1?A:i;f>=0;){var c=t[f];if(c===Or)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if($w===s&&[$w,Av,Xw,Yw].indexOf(u)!==-1||[Av,Xw].indexOf(s)!==-1&&[Av,ov].indexOf(u)!==-1||[ov,Yw].indexOf(s)!==-1&&u===ov||sD.indexOf(s)!==-1&&[AD,lu].indexOf(u)!==-1||sD.indexOf(u)!==-1&&s===uu||Ia.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||s===qo&&Ia.indexOf(u)!==-1||Ia.concat(Or).indexOf(s)!==-1&&u===zl&&cit.indexOf(r[o])===-1||Ia.concat(Or).indexOf(u)!==-1&&s===Kl)return Wt;if(s===ym&&u===ym){for(var h=e[i],v=1;h>0&&(h--,t[h]===ym);)v++;if(v%2!==0)return Wt}return s===dh&&u===ph?Wt:gh},git=function(r,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=dit(r,t.lineBreak),n=e[0],a=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(o){return[Or,VA,tO].indexOf(o)!==-1?Sf:o}));var A=t.wordBreak==="keep-all"?i.map(function(o,s){return o&&r[s]>=19968&&r[s]<=40959}):void 0;return[n,a,A]},yit=function(){function r(t,e,n,a){this.codePoints=t,this.required=e===eO,this.start=n,this.end=a}return r.prototype.slice=function(){return Ce.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),mit=function(r,t){var e=_p(r),n=git(e,t),a=n[0],i=n[1],A=n[2],o=e.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=Wt;l=nO&&r<=57},jit=function(r){return r>=55296&&r<=57343},ts=function(r){return nr(r)||r>=AO&&r<=sO||r>=aO&&r<=Yit},tAt=function(r){return r>=aO&&r<=$it},eAt=function(r){return r>=AO&&r<=qit},rAt=function(r){return tAt(r)||eAt(r)},nAt=function(r){return r>=Hit},_h=function(r){return r===fd||r===_it||r===Cit},cd=function(r){return rAt(r)||nAt(r)||r===Tit},vD=function(r){return cd(r)||nr(r)||r===Ir},aAt=function(r){return r>=Vit&&r<=Git||r===Kit||r>=zit&&r<=Wit||r===Xit},Ci=function(r,t){return r!==Ru?!1:t!==fd},Ch=function(r,t,e){return r===Ir?cd(t)||Ci(t,e):cd(r)?!0:!!(r===Ru&&Ci(r,t))},Bm=function(r,t,e){return r===JA||r===Ir?nr(t)?!0:t===xf&&nr(e):nr(r===xf?t:r)},iAt=function(r){var t=0,e=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(e=-1),t++);for(var n=[];nr(r[t]);)n.push(r[t++]);var a=n.length?parseInt(Ce.apply(void 0,n),10):0;r[t]===xf&&t++;for(var i=[];nr(r[t]);)i.push(r[t++]);var A=i.length,o=A?parseInt(Ce.apply(void 0,i),10):0;(r[t]===oO||r[t]===iO)&&t++;var s=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(s=-1),t++);for(var l=[];nr(r[t]);)l.push(r[t++]);var u=l.length?parseInt(Ce.apply(void 0,l),10):0;return e*(a+o*Math.pow(10,-A))*Math.pow(10,s*u)},AAt={type:2},oAt={type:3},sAt={type:4},lAt={type:13},uAt={type:8},fAt={type:21},cAt={type:9},hAt={type:10},vAt={type:11},dAt={type:12},pAt={type:14},Sh={type:23},gAt={type:1},yAt={type:25},mAt={type:24},wAt={type:26},BAt={type:27},_At={type:28},CAt={type:29},SAt={type:31},jw={type:32},lO=function(){function r(){this._value=[]}return r.prototype.write=function(t){this._value=this._value.concat(_p(t))},r.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==jw;)t.push(e),e=this.consumeToken();return t},r.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case yh:return this.consumeStringToken(yh);case Sit:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(vD(e)||Ci(n,a)){var i=Ch(e,n,a)?Bit:wit,A=this.consumeName();return{type:5,value:A,flags:i}}break;case xit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),lAt;break;case mh:return this.consumeStringToken(mh);case wh:return AAt;case Xl:return oAt;case wm:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),pAt;break;case JA:if(Bm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Oit:return sAt;case Ir:var o=t,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Bm(o,s,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Ch(o,s,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===Ir&&l===Eit)return this.consumeCodePoint(),this.consumeCodePoint(),mAt;break;case xf:if(Bm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case fD:if(this.peekCodePoint(0)===wm)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===wm&&(u=this.consumeCodePoint(),u===fD))return this.consumeToken();if(u===Yn)return this.consumeToken()}break;case kit:return wAt;case Nit:return BAt;case Fit:if(this.peekCodePoint(0)===Iit&&this.peekCodePoint(1)===Ir&&this.peekCodePoint(2)===Ir)return this.consumeCodePoint(),this.consumeCodePoint(),yAt;break;case Dit:var f=this.peekCodePoint(0),c=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Ch(f,c,h)){var A=this.consumeName();return{type:7,value:A}}break;case Qit:return _At;case Ru:if(Ci(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Lit:return CAt;case Mit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),uAt;break;case Uit:return vAt;case Pit:return dAt;case Zit:case Jit:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===JA&&(ts(d)||d===Bh)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case cD:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),cAt;if(this.peekCodePoint(0)===cD)return this.consumeCodePoint(),fAt;break;case Rit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),hAt;break;case Yn:return jw}return _h(t)?(this.consumeWhiteSpace(),SAt):nr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):cd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Ce(t)}},r.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},r.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},r.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},r.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ts(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===Bh&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Ce.apply(void 0,t.map(function(s){return s===Bh?nO:s})),16),i=parseInt(Ce.apply(void 0,t.map(function(s){return s===Bh?sO:s})),16);return{type:30,start:a,end:i}}var A=parseInt(Ce.apply(void 0,t),16);if(this.peekCodePoint(0)===Ir&&ts(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];ts(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(Ce.apply(void 0,o),16);return{type:30,start:A,end:i}}else return{type:30,start:A,end:A}},r.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===wh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wh?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},r.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===mh||e===yh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn||this.peekCodePoint(0)===Xl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Sh)}for(;;){var a=this.consumeCodePoint();if(a===Yn||a===Xl)return{type:22,value:Ce.apply(void 0,t)};if(_h(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn||this.peekCodePoint(0)===Xl?(this.consumeCodePoint(),{type:22,value:Ce.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Sh);if(a===yh||a===mh||a===wh||aAt(a))return this.consumeBadUrlRemnants(),Sh;if(a===Ru)if(Ci(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Sh;else t.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;_h(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Xl||t===Yn)return;Ci(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var a=Math.min(e,t);n+=Ce.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(t){var e="",n=0;do{var a=this._value[n];if(a===Yn||a===void 0||a===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(a===fd)return this._value.splice(0,n),gAt;if(a===Ru){var i=this._value[n+1];i!==Yn&&i!==void 0&&(i===fd?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ci(a,i)&&(e+=this.consumeStringSlice(n),e+=Ce(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var t=[],e=Jf,n=this.peekCodePoint(0);for((n===JA||n===Ir)&&t.push(this.consumeCodePoint());nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===xf&&nr(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=uD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===oO||n===iO)&&((a===JA||a===Ir)&&nr(i)||nr(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=uD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[iAt(t),e]},r.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Ch(a,i,A)){var o=this.consumeName();return{type:15,number:e,flags:n,unit:o}}return a===bit?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ts(t)){for(var e=Ce(t);ts(this.peekCodePoint(0))&&e.length<6;)e+=Ce(this.consumeCodePoint());_h(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||jit(n)||n>1114111?hD:n}return t===Yn?hD:t},r.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(vD(e))t+=Ce(e);else if(Ci(e,this.peekCodePoint(0)))t+=Ce(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},r}(),uO=function(){function r(t){this._tokens=t}return r.create=function(t){var e=new lO;return e.write(t),new r(e.read())},r.parseValue=function(t){return r.create(t).parseComponentValue()},r.parseValues=function(t){return r.create(t).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},r.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},r.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||bAt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?jw:t},r.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},r}(),qf=function(r){return r.type===15},ul=function(r){return r.type===17},le=function(r){return r.type===20},xAt=function(r){return r.type===0},tB=function(r,t){return le(r)&&r.value===t},fO=function(r){return r.type!==31},zs=function(r){return r.type!==31&&r.type!==4},Ba=function(r){var t=[],e=[];return r.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&t.push(e),t},bAt=function(r,t){return t===11&&r.type===12||t===28&&r.type===29?!0:t===2&&r.type===3},qi=function(r){return r.type===17||r.type===15},Fe=function(r){return r.type===16||qi(r)},cO=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Xe={type:17,number:0,flags:Jf},KC={type:16,number:50,flags:Jf},Ui={type:16,number:100,flags:Jf},fu=function(r,t,e){var n=r[0],a=r[1];return[ve(n,t),ve(typeof a<"u"?a:n,e)]},ve=function(r,t){if(r.type===16)return r.number/100*t;if(qf(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},hO="deg",vO="grad",dO="rad",pO="turn",Cp={name:"angle",parse:function(r,t){if(t.type===15)switch(t.unit){case hO:return Math.PI*t.number/180;case vO:return Math.PI/200*t.number;case dO:return t.number;case pO:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},gO=function(r){return r.type===15&&(r.unit===hO||r.unit===vO||r.unit===dO||r.unit===pO)},yO=function(r){var t=r.filter(le).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xe,Xe];case"to top":case"bottom":return cn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xe,Ui];case"to right":case"left":return cn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ui,Ui];case"to bottom":case"top":return cn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ui,Xe];case"to left":case"right":return cn(270)}return 0},cn=function(r){return Math.PI*r/180},Ni={name:"color",parse:function(r,t){if(t.type===18){var e=TAt[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(r,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3),A=t.value.substring(3,4);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(A+A,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6),A=t.value.substring(6,8);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(A,16)/255)}}if(t.type===20){var o=Va[t.value.toUpperCase()];if(typeof o<"u")return o}return Va.TRANSPARENT}},Vi=function(r){return(255&r)===0},ke=function(r){var t=255&r,e=255&r>>8,n=255&r>>16,a=255&r>>24;return t<255?"rgba("+a+","+n+","+e+","+t/255+")":"rgb("+a+","+n+","+e+")"},Pi=function(r,t,e,n){return(r<<24|t<<16|e<<8|Math.round(n*255)<<0)>>>0},dD=function(r,t){if(r.type===17)return r.number;if(r.type===16){var e=t===3?1:255;return t===3?r.number/100*e:Math.round(r.number/100*e)}return 0},pD=function(r,t){var e=t.filter(zs);if(e.length===3){var n=e.map(dD),a=n[0],i=n[1],A=n[2];return Pi(a,i,A,1)}if(e.length===4){var o=e.map(dD),a=o[0],i=o[1],A=o[2],s=o[3];return Pi(a,i,A,s)}return 0};function _m(r,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-r)*e*6+r:e<1/2?t:e<2/3?(t-r)*6*(2/3-e)+r:r}var gD=function(r,t){var e=t.filter(zs),n=e[0],a=e[1],i=e[2],A=e[3],o=(n.type===17?cn(n.number):Cp.parse(r,n))/(Math.PI*2),s=Fe(a)?a.number/100:0,l=Fe(i)?i.number/100:0,u=typeof A<"u"&&Fe(A)?ve(A,1):1;if(s===0)return Pi(l*255,l*255,l*255,1);var f=l<=.5?l*(s+1):l+s-l*s,c=l*2-f,h=_m(c,f,o+1/3),v=_m(c,f,o),d=_m(c,f,o-1/3);return Pi(h*255,v*255,d*255,u)},TAt={hsl:gD,hsla:gD,rgb:pD,rgba:pD},Hu=function(r,t){return Ni.parse(r,uO.create(t).parseComponentValue())},Va={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},IAt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FAt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sp=function(r,t){var e=Ni.parse(r,t[0]),n=t[1];return n&&Fe(n)?{color:e,stop:n}:{color:e,stop:null}},yD=function(r,t){var e=r[0],n=r[r.length-1];e.stop===null&&(e.stop=Xe),n.stop===null&&(n.stop=Ui);for(var a=[],i=0,A=0;Ai?a.push(s):a.push(i),i=s}else a.push(null)}for(var l=null,A=0;AA.optimumDistance)?{optimumCorner:o,optimumDistance:u}:A},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},QAt=function(r,t,e,n,a){var i=0,A=0;switch(r.size){case 0:r.shape===0?i=A=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),A=Math.min(Math.abs(e),Math.abs(e-a)));break;case 2:if(r.shape===0)i=A=Math.min(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-a))/Math.min(Math.abs(t),Math.abs(t-n)),s=mD(n,a,t,e,!0),l=s[0],u=s[1];i=xn(l-t,(u-e)/o),A=o*i}break;case 1:r.shape===0?i=A=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),A=Math.max(Math.abs(e),Math.abs(e-a)));break;case 3:if(r.shape===0)i=A=Math.max(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-a))/Math.max(Math.abs(t),Math.abs(t-n)),f=mD(n,a,t,e,!1),l=f[0],u=f[1];i=xn(l-t,(u-e)/o),A=o*i}break}return Array.isArray(r.size)&&(i=ve(r.size[0],n),A=r.size.length===2?ve(r.size[1],a):i),[i,A]},LAt=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&A.value==="to"){e=yO(a);return}else if(gO(A)){e=Cp.parse(r,A);return}}var o=Sp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},xh=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){e=yO(a);return}else if(gO(A)){e=(Cp.parse(r,A)+cn(270))%cn(360);return}}var o=Sp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},MAt=function(r,t){var e=cn(180),n=[],a=1,i=0,A=3,o=[];return Ba(t).forEach(function(s,l){var u=s[0];if(l===0){if(le(u)&&u.value==="linear"){a=1;return}else if(le(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var f=Ni.parse(r,u.values[0]);n.push({stop:Xe,color:f})}else if(u.name==="to"){var f=Ni.parse(r,u.values[0]);n.push({stop:Ui,color:f})}else if(u.name==="color-stop"){var c=u.values.filter(zs);if(c.length===2){var f=Ni.parse(r,c[1]),h=c[0];ul(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:f})}}}}),a===1?{angle:(e+cn(180))%cn(360),stops:n,type:a}:{size:A,shape:i,stops:n,position:o,type:a}},mO="closest-side",wO="farthest-side",BO="closest-corner",_O="farthest-corner",CO="circle",SO="ellipse",xO="cover",bO="contain",UAt=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0){var l=!1;s=A.reduce(function(f,c){if(l)if(le(c))switch(c.value){case"center":return i.push(KC),f;case"top":case"left":return i.push(Xe),f;case"right":case"bottom":return i.push(Ui),f}else(Fe(c)||qi(c))&&i.push(c);else if(le(c))switch(c.value){case CO:return e=0,!1;case SO:return e=1,!1;case"at":return l=!0,!1;case mO:return n=0,!1;case xO:case wO:return n=1,!1;case bO:case BO:return n=2,!1;case _O:return n=3,!1}else if(qi(c)||Fe(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return f},s)}if(s){var u=Sp(r,A);a.push(u)}}),{size:n,shape:e,stops:a,position:i,type:2}},bh=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0?s=A.reduce(function(u,f){if(le(f))switch(f.value){case"center":return i.push(KC),!1;case"top":case"left":return i.push(Xe),!1;case"right":case"bottom":return i.push(Ui),!1}else if(Fe(f)||qi(f))return i.push(f),!1;return u},s):o===1&&(s=A.reduce(function(u,f){if(le(f))switch(f.value){case CO:return e=0,!1;case SO:return e=1,!1;case bO:case mO:return n=0,!1;case wO:return n=1,!1;case BO:return n=2,!1;case xO:case _O:return n=3,!1}else if(qi(f)||Fe(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return u},s)),s){var l=Sp(r,A);a.push(l)}}),{size:n,shape:e,stops:a,position:i,type:2}},PAt=function(r){return r.type===1},RAt=function(r){return r.type===2},zC={name:"image",parse:function(r,t){if(t.type===22){var e={url:t.value,type:0};return r.cache.addImage(t.value),e}if(t.type===18){var n=TO[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(r,t.values)}throw new Error("Unsupported image type "+t.type)}};function HAt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!TO[r.name])}var TO={"linear-gradient":LAt,"-moz-linear-gradient":xh,"-ms-linear-gradient":xh,"-o-linear-gradient":xh,"-webkit-linear-gradient":xh,"radial-gradient":UAt,"-moz-radial-gradient":bh,"-ms-radial-gradient":bh,"-o-radial-gradient":bh,"-webkit-radial-gradient":bh,"-webkit-gradient":MAt},OAt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(n){return zs(n)&&HAt(n)}).map(function(n){return zC.parse(r,n)})}},kAt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},NAt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(Fe)}).map(cO)}},VAt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(le).map(function(n){return n.value}).join(" ")}).map(GAt)}},GAt=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Es;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Es||(Es={}));var KAt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(zAt)})}},zAt=function(r){return le(r)||Fe(r)},xp=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},WAt=xp("top"),XAt=xp("right"),YAt=xp("bottom"),ZAt=xp("left"),bp=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return cO(e.filter(Fe))}}},$At=bp("top-left"),JAt=bp("top-right"),qAt=bp("bottom-right"),jAt=bp("bottom-left"),Tp=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},tot=Tp("top"),eot=Tp("right"),rot=Tp("bottom"),not=Tp("left"),Ip=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return qf(e)?e.number:0}}},aot=Ip("top"),iot=Ip("right"),Aot=Ip("bottom"),oot=Ip("left"),sot={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lot={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},uot={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,t){return t.filter(le).reduce(function(e,n){return e|fot(n.value)},0)}},fot=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},cot={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},hot={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},hd;(function(r){r.NORMAL="normal",r.STRICT="strict"})(hd||(hd={}));var vot={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"strict":return hd.STRICT;case"normal":default:return hd.NORMAL}}},dot={name:"line-height",initialValue:"normal",prefix:!1,type:4},wD=function(r,t){return le(r)&&r.value==="normal"?1.2*t:r.type===17?t*r.number:Fe(r)?ve(r,t):t},pot={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,t){return t.type===20&&t.value==="none"?null:zC.parse(r,t)}},got={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},eB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Fp=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},yot=Fp("top"),mot=Fp("right"),wot=Fp("bottom"),Bot=Fp("left"),_ot={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Cot={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ep=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Sot=Ep("top"),xot=Ep("right"),bot=Ep("bottom"),Tot=Ep("left"),Iot={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fot={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Eot={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.length===1&&tB(t[0],"none")?[]:Ba(t).map(function(e){for(var n={color:Va.TRANSPARENT,offsetX:Xe,offsetY:Xe,blur:Xe},a=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Lot=function(r){var t=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},Mot=function(r){var t=r.filter(function(s){return s.type===17}).map(function(s){return s.number}),e=t[0],n=t[1];t[2],t[3];var a=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var A=t[12],o=t[13];return t[14],t[15],t.length===16?[e,n,a,i,A,o]:null},Uot={matrix:Lot,matrix3d:Mot},BD={type:16,number:50,flags:Jf},Pot=[BD,BD],Rot={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,t){var e=t.filter(Fe);return e.length!==2?Pot:[e[0],e[1]]}},Hot={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ou;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Ou||(Ou={}));var Oot={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-all":return Ou.BREAK_ALL;case"keep-all":return Ou.KEEP_ALL;case"normal":default:return Ou.NORMAL}}},kot={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,t){if(t.type===20)return{auto:!0,order:0};if(ul(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},IO={name:"time",parse:function(r,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Not={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,t){return ul(t)?t.number:1}},Vot={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Got={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},Kot={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,t){var e=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:e.push(a.value);break;case 17:e.push(a.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},zot={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Wot={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,t){if(ul(t))return t.number;if(le(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Xot={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.filter(le).map(function(e){return e.value})}},Yot={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Me=function(r,t){return(r&t)!==0},Zot={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},$ot={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var n=[],a=t.filter(fO),i=0;i1?1:0],this.overflowWrap=pt(t,Cot,e.overflowWrap),this.paddingTop=pt(t,Sot,e.paddingTop),this.paddingRight=pt(t,xot,e.paddingRight),this.paddingBottom=pt(t,bot,e.paddingBottom),this.paddingLeft=pt(t,Tot,e.paddingLeft),this.paintOrder=pt(t,est,e.paintOrder),this.position=pt(t,Fot,e.position),this.textAlign=pt(t,Iot,e.textAlign),this.textDecorationColor=pt(t,Vot,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=pt(t,Got,(a=e.textDecorationLine)!==null&&a!==void 0?a:e.textDecoration),this.textShadow=pt(t,Eot,e.textShadow),this.textTransform=pt(t,Dot,e.textTransform),this.transform=pt(t,Qot,e.transform),this.transformOrigin=pt(t,Rot,e.transformOrigin),this.visibility=pt(t,Hot,e.visibility),this.webkitTextStrokeColor=pt(t,rst,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pt(t,nst,e.webkitTextStrokeWidth),this.wordBreak=pt(t,Oot,e.wordBreak),this.zIndex=pt(t,kot,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Vi(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Me(this.display,4)||Me(this.display,33554432)||Me(this.display,268435456)||Me(this.display,536870912)||Me(this.display,67108864)||Me(this.display,134217728)},r}(),ist=function(){function r(t,e){this.content=pt(t,Zot,e.content),this.quotes=pt(t,jot,e.quotes)}return r}(),CD=function(){function r(t,e){this.counterIncrement=pt(t,$ot,e.counterIncrement),this.counterReset=pt(t,Jot,e.counterReset)}return r}(),pt=function(r,t,e){var n=new lO,a=e!==null&&typeof e<"u"?e.toString():t.initialValue;n.write(a);var i=new uO(n.read());switch(t.type){case 2:var A=i.parseComponentValue();return t.parse(r,le(A)?A.value:t.initialValue);case 0:return t.parse(r,i.parseComponentValue());case 1:return t.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Cp.parse(r,i.parseComponentValue());case"color":return Ni.parse(r,i.parseComponentValue());case"image":return zC.parse(r,i.parseComponentValue());case"length":var o=i.parseComponentValue();return qi(o)?o:Xe;case"length-percentage":var s=i.parseComponentValue();return Fe(s)?s:Xe;case"time":return IO.parse(r,i.parseComponentValue())}break}},Ast="data-html2canvas-debug",ost=function(r){var t=r.getAttribute(Ast);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},rB=function(r,t){var e=ost(r);return e===1||t===e},_a=function(){function r(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,rB(e,3))debugger;this.styles=new ast(t,window.getComputedStyle(e,null)),iB(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Bp(this.context,e),rB(e,4)&&(this.flags|=16)}return r}(),sst="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",SD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Th=0;Th>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},ust=function(r){for(var t=r.length,e=[],n=0;n>lo,hst=1<>lo,dst=FO+vst,pst=dst,gst=32,yst=pst+gst,mst=65536>>WC,wst=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>lo],e=(e<>lo)],e=(e<>WC),e=this.index[e],e+=t>>lo&Bst,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var Ih=0;Ih=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Est=Cst(sst),rn="×",Em="÷",Dst=function(r){return Est.get(r)},Qst=function(r,t,e){var n=e-2,a=t[n],i=t[e-1],A=t[e];if(i===xm&&A===bm)return rn;if(i===xm||i===bm||i===TD||A===xm||A===bm||A===TD)return Em;if(i===FD&&[FD,Tm,ED,DD].indexOf(A)!==-1||(i===ED||i===Tm)&&(A===Tm||A===Im)||(i===DD||i===Im)&&A===Im||A===QD||A===ID||A===Tst||i===bst)return rn;if(i===QD&&A===LD){for(;a===ID;)a=t[--n];if(a===LD)return rn}if(i===Fm&&A===Fm){for(var o=0;a===Fm;)o++,a=t[--n];if(o%2===0)return rn}return Em},Lst=function(r){var t=Ist(r),e=t.length,n=0,a=0,i=t.map(Dst);return{next:function(){if(n>=e)return{done:!0,value:null};for(var A=rn;nA.x||u.y>A.y;return A=u,l===0?!0:f});return r.body.removeChild(t),o},Rst=function(){return typeof new Image().crossOrigin<"u"},Hst=function(){return typeof new XMLHttpRequest().responseType=="string"},Ost=function(r){var t=new Image,e=r.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},MD=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},kst=function(r){var t=r.createElement("canvas"),e=100;t.width=e,t.height=e;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var a=new Image,i=t.toDataURL();a.src=i;var A=nB(e,e,0,0,a);return n.fillStyle="red",n.fillRect(0,0,e,e),UD(A).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",MD(s)?UD(nB(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),MD(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},nB=function(r,t,e,n,a){var i="http://www.w3.org/2000/svg",A=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return A.setAttributeNS(null,"width",r.toString()),A.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(o),o.appendChild(a),A},UD=function(r){return new Promise(function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},We={get SUPPORT_RANGE_BOUNDS(){var r=Ust(document);return Object.defineProperty(We,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=We.SUPPORT_RANGE_BOUNDS&&Pst(document);return Object.defineProperty(We,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=Ost(document);return Object.defineProperty(We,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?kst(document):Promise.resolve(!1);return Object.defineProperty(We,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Rst();return Object.defineProperty(We,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Hst();return Object.defineProperty(We,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(We,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(We,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},ku=function(){function r(t,e){this.text=t,this.bounds=e}return r}(),Nst=function(r,t,e,n){var a=Kst(t,e),i=[],A=0;return a.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(We.SUPPORT_RANGE_BOUNDS){var s=PD(n,A,o.length).getClientRects();if(s.length>1){var l=XC(o),u=0;l.forEach(function(c){i.push(new ku(c,qa.fromDOMRectList(r,PD(n,u+A,c.length).getClientRects()))),u+=c.length})}else i.push(new ku(o,qa.fromDOMRectList(r,s)))}else{var f=n.splitText(o.length);i.push(new ku(o,Vst(r,n))),n=f}else We.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));A+=o.length}),i},Vst=function(r,t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var i=Bp(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return qa.EMPTY},PD=function(r,t,e){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,t),a.setEnd(r,t+e),a},XC=function(r){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(r)).map(function(e){return e.segment})}return Mst(r)},Gst=function(r,t){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(n){return n.segment})}return Wst(r,t)},Kst=function(r,t){return t.letterSpacing!==0?XC(r):Gst(r,t)},zst=[32,160,4961,65792,65793,4153,4241],Wst=function(r,t){for(var e=mit(r,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,i=function(){if(a.value){var A=a.value.slice(),o=_p(A),s="";o.forEach(function(l){zst.indexOf(l)===-1?s+=Ce(l):(s.length&&n.push(s),n.push(Ce(l)),s="")}),s.length&&n.push(s)}};!(a=e.next()).done;)i();return n},Xst=function(){function r(t,e,n){this.text=Yst(e.data,n.textTransform),this.textBounds=Nst(t,this.text,n,e)}return r}(),Yst=function(r,t){switch(t){case 1:return r.toLowerCase();case 3:return r.replace(Zst,$st);case 2:return r.toUpperCase();default:return r}},Zst=/(^|\s|:|-|\(|\))([a-z])/g,$st=function(r,t,e){return r.length>0?t+e.toUpperCase():r},EO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t}(_a),DO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t}(_a),QO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this,i=new XMLSerializer,A=Bp(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t}(_a),LO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.value=n.value,a}return t}(_a),aB=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t}(_a),Jst=[{type:15,flags:0,unit:"px",number:3}],qst=[{type:16,flags:0,number:50}],jst=function(r){return r.width>r.height?new qa(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)e.textNodes.push(new Xst(r,a,e.styles));else if(ys(a))if(GO(a)&&a.assignedNodes)a.assignedNodes().forEach(function(o){return sv(r,o,e,n)});else{var A=RO(r,a);A.styles.isVisible()&&(nlt(a,A,n)?A.flags|=4:alt(A.styles)&&(A.flags|=2),rlt.indexOf(a.tagName)!==-1&&(A.flags|=8),e.elements.push(A),a.slot,a.shadowRoot?sv(r,a.shadowRoot,A,n):!pd(a)&&!kO(a)&&!gd(a)&&sv(r,a,A,n))}},RO=function(r,t){return AB(t)?new EO(r,t):NO(t)?new DO(r,t):kO(t)?new QO(r,t):ilt(t)?new LO(r,t):Alt(t)?new aB(r,t):olt(t)?new YC(r,t):gd(t)?new MO(r,t):pd(t)?new UO(r,t):VO(t)?new PO(r,t):new _a(r,t)},HO=function(r,t){var e=RO(r,t);return e.flags|=4,sv(r,t,e,e),e},nlt=function(r,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||ZC(r)&&e.styles.isTransparent()},alt=function(r){return r.isPositioned()||r.isFloating()},OO=function(r){return r.nodeType===Node.TEXT_NODE},ys=function(r){return r.nodeType===Node.ELEMENT_NODE},iB=function(r){return ys(r)&&typeof r.style<"u"&&!lv(r)},lv=function(r){return typeof r.className=="object"},ilt=function(r){return r.tagName==="LI"},Alt=function(r){return r.tagName==="OL"},olt=function(r){return r.tagName==="INPUT"},slt=function(r){return r.tagName==="HTML"},kO=function(r){return r.tagName==="svg"},ZC=function(r){return r.tagName==="BODY"},NO=function(r){return r.tagName==="CANVAS"},HD=function(r){return r.tagName==="VIDEO"},AB=function(r){return r.tagName==="IMG"},VO=function(r){return r.tagName==="IFRAME"},OD=function(r){return r.tagName==="STYLE"},llt=function(r){return r.tagName==="SCRIPT"},pd=function(r){return r.tagName==="TEXTAREA"},gd=function(r){return r.tagName==="SELECT"},GO=function(r){return r.tagName==="SLOT"},kD=function(r){return r.tagName.indexOf("-")>0},ult=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},r.prototype.pop=function(t){var e=this;t.forEach(function(n){return e.counters[n].pop()})},r.prototype.parse=function(t){var e=this,n=t.counterIncrement,a=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var s=e.counters[o.counter];s&&o.increment!==0&&(i=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var A=[];return i&&a.forEach(function(o){var s=e.counters[o.counter];A.push(o.counter),s||(s=e.counters[o.counter]=[]),s.push(o.reset)}),A},r}(),ND={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},VD={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},flt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},clt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},es=function(r,t,e,n,a,i){return re?bf(r,a,i.length>0):n.integers.reduce(function(A,o,s){for(;r>=o;)r-=o,A+=n.values[s];return A},"")+i},KO=function(r,t,e,n){var a="";do e||r--,a=n(r)+a,r/=t;while(r*t>=t);return a},_e=function(r,t,e,n,a){var i=e-t+1;return(r<0?"-":"")+(KO(Math.abs(r),i,n,function(A){return Ce(Math.floor(A%i)+t)})+a)},EA=function(r,t,e){e===void 0&&(e=". ");var n=t.length;return KO(Math.abs(r),n,!1,function(a){return t[Math.floor(a%n)]})+e},fs=1,pi=2,gi=4,hu=8,Fa=function(r,t,e,n,a,i){if(r<-9999||r>9999)return bf(r,4,a.length>0);var A=Math.abs(r),o=a;if(A===0)return t[0]+o;for(var s=0;A>0&&s<=4;s++){var l=A%10;l===0&&Me(i,fs)&&o!==""?o=t[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Me(i,pi)||l===1&&s===1&&Me(i,gi)&&r>100||l===1&&s>1&&Me(i,hu)?o=t[l]+(s>0?e[s-1]:"")+o:l===1&&s>0&&(o=e[s-1]+o),A=Math.floor(A/10)}return(r<0?n:"")+o},GD="十百千萬",KD="拾佰仟萬",zD="マイナス",Dm="마이너스",bf=function(r,t,e){var n=e?". ":"",a=e?"、":"",i=e?", ":"",A=e?" ":"";switch(t){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var o=_e(r,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return EA(r,"〇一二三四五六七八九",a);case 6:return es(r,1,3999,ND,3,n).toLowerCase();case 7:return es(r,1,3999,ND,3,n);case 8:return _e(r,945,969,!1,n);case 9:return _e(r,97,122,!1,n);case 10:return _e(r,65,90,!1,n);case 11:return _e(r,1632,1641,!0,n);case 12:case 49:return es(r,1,9999,VD,3,n);case 35:return es(r,1,9999,VD,3,n).toLowerCase();case 13:return _e(r,2534,2543,!0,n);case 14:case 30:return _e(r,6112,6121,!0,n);case 15:return EA(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return EA(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Fa(r,"零一二三四五六七八九",GD,"負",a,pi|gi|hu);case 47:return Fa(r,"零壹貳參肆伍陸柒捌玖",KD,"負",a,fs|pi|gi|hu);case 42:return Fa(r,"零一二三四五六七八九",GD,"负",a,pi|gi|hu);case 41:return Fa(r,"零壹贰叁肆伍陆柒捌玖",KD,"负",a,fs|pi|gi|hu);case 26:return Fa(r,"〇一二三四五六七八九","十百千万",zD,a,0);case 25:return Fa(r,"零壱弐参四伍六七八九","拾百千万",zD,a,fs|pi|gi);case 31:return Fa(r,"영일이삼사오육칠팔구","십백천만",Dm,i,fs|pi|gi);case 33:return Fa(r,"零一二三四五六七八九","十百千萬",Dm,i,0);case 32:return Fa(r,"零壹貳參四五六七八九","拾百千",Dm,i,fs|pi|gi);case 18:return _e(r,2406,2415,!0,n);case 20:return es(r,1,19999,clt,3,n);case 21:return _e(r,2790,2799,!0,n);case 22:return _e(r,2662,2671,!0,n);case 22:return es(r,1,10999,flt,3,n);case 23:return EA(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return EA(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _e(r,3302,3311,!0,n);case 28:return EA(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return EA(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return _e(r,3792,3801,!0,n);case 37:return _e(r,6160,6169,!0,n);case 38:return _e(r,4160,4169,!0,n);case 39:return _e(r,2918,2927,!0,n);case 40:return _e(r,1776,1785,!0,n);case 43:return _e(r,3046,3055,!0,n);case 44:return _e(r,3174,3183,!0,n);case 45:return _e(r,3664,3673,!0,n);case 46:return _e(r,3872,3881,!0,n);case 3:default:return _e(r,48,57,!0,n)}},zO="data-html2canvas-ignore",WD=function(){function r(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new ult,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(t,e){var n=this,a=hlt(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,A=t.defaultView.pageYOffset,o=a.contentWindow,s=o.document,l=plt(a).then(function(){return hr(n,void 0,void 0,function(){var u,f;return er(this,function(c){switch(c.label){case 0:return this.scrolledElements.forEach(wlt),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),u=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:c.sent(),c.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,dlt(s)]:[3,4];case 3:c.sent(),c.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,f)}).then(function(){return a})]:[2,a]}})})});return s.open(),s.write(ylt(document.doctype)+""),mlt(this.referenceElement.ownerDocument,i,A),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},r.prototype.createElementClone=function(t){if(rB(t,2))debugger;if(NO(t))return this.createCanvasClone(t);if(HD(t))return this.createVideoClone(t);if(OD(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return AB(e)&&(AB(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),kD(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Qm(t.style,e),e},r.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,A){return A&&typeof A.cssText=="string"?i+A.cssText:i},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},r.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var i=t.getContext("2d"),A=a.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},r.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},r.prototype.appendChildNode=function(t,e,n){(!ys(e)||!llt(e)&&!e.hasAttribute(zO)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!ys(e)||!OD(e))&&t.appendChild(this.cloneNode(e,n))},r.prototype.cloneChildNodes=function(t,e,n){for(var a=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(ys(i)&&GO(i)&&typeof i.assignedNodes=="function"){var A=i.assignedNodes();A.length&&A.forEach(function(o){return a.appendChildNode(e,o,n)})}else this.appendChildNode(e,i,n)},r.prototype.cloneNode=function(t,e){if(OO(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&ys(t)&&(iB(t)||lv(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&iB(a)&&(this.clonedReferenceElement=a),ZC(a)&&Clt(a);var s=this.counters.parse(new CD(this.context,i)),l=this.resolvePseudoContent(t,a,A,Nu.BEFORE);kD(t)&&(e=!0),HD(t)||this.cloneChildNodes(t,a,e),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(t,a,o,Nu.AFTER);return u&&a.appendChild(u),this.counters.pop(s),(i&&(this.options.copyStyles||lv(t))&&!VO(t)||e)&&Qm(i,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(pd(t)||gd(t))&&(pd(a)||gd(a))&&(a.value=t.value),a}return t.cloneNode(!1)},r.prototype.resolvePseudoContent=function(t,e,n,a){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(!(!o||!A||A==="none"||A==="-moz-alt-content"||n.display==="none")){this.counters.parse(new CD(this.context,n));var s=new ist(this.context,n),l=o.createElement("html2canvaspseudoelement");Qm(n,l),s.content.forEach(function(f){if(f.type===0)l.appendChild(o.createTextNode(f.value));else if(f.type===22){var c=o.createElement("img");c.src=f.value,c.style.opacity="1",l.appendChild(c)}else if(f.type===18){if(f.name==="attr"){var h=f.values.filter(le);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(f.name==="counter"){var v=f.values.filter(zs),d=v[0],p=v[1];if(d&&le(d)){var g=i.counters.getCounterValue(d.value),y=p&&le(p)?eB.parse(i.context,p.value):3;l.appendChild(o.createTextNode(bf(g,y,!1)))}}else if(f.name==="counters"){var m=f.values.filter(zs),d=m[0],w=m[1],p=m[2];if(d&&le(d)){var _=i.counters.getCounterValues(d.value),B=p&&le(p)?eB.parse(i.context,p.value):3,C=w&&w.type===0?w.value:"",S=_.map(function(I){return bf(I,B,!1)}).join(C);l.appendChild(o.createTextNode(S))}}}else if(f.type===20)switch(f.value){case"open-quote":l.appendChild(o.createTextNode(_D(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(_D(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(f.value))}}),l.className=oB+" "+sB;var u=a===Nu.BEFORE?" "+oB:" "+sB;return lv(e)?e.className.baseValue+=u:e.className+=u,l}}},r.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},r}(),Nu;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Nu||(Nu={}));var hlt=function(r,t){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(zO,"true"),r.body.appendChild(e),e},vlt=function(r){return new Promise(function(t){if(r.complete){t();return}if(!r.src){t();return}r.onload=t,r.onerror=t})},dlt=function(r){return Promise.all([].slice.call(r.images,0).map(vlt))},plt=function(r){return new Promise(function(t,e){var n=r.contentWindow;if(!n)return e("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),t(r))},50)}})},glt=["all","d","content"],Qm=function(r,t){for(var e=r.length-1;e>=0;e--){var n=r.item(e);glt.indexOf(n)===-1&&t.style.setProperty(n,r.getPropertyValue(n))}return t},ylt=function(r){var t="";return r&&(t+=""),t},mlt=function(r,t,e){r&&r.defaultView&&(t!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(t,e)},wlt=function(r){var t=r[0],e=r[1],n=r[2];t.scrollLeft=e,t.scrollTop=n},Blt=":before",_lt=":after",oB="___html2canvas___pseudoelement_before",sB="___html2canvas___pseudoelement_after",XD=`{ +***************************************************************************** */var Nw=function(r,t){return Nw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Nw(r,t)};function kn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nw(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Vw=function(){return Vw=Object.assign||function(t){for(var e,n=1,a=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},qE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oat=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var fh=0;fh"u"?[]:new Uint8Array(256);for(var ch=0;ch>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},Nat=function(r){for(var t=r.length,e=[],n=0;n>so,Kat=1<>so,Wat=$H+zat,Xat=Wat,Yat=32,Zat=Xat+Yat,$at=65536>>GC,Jat=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>so],e=(e<>so)],e=(e<>GC),e=this.index[e],e+=t>>so&qat,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var hh=0;hhrD?(a.push(!0),o-=rD):a.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return n.push(A),e.push(zw);if(o===iit||o===Gw){if(A===0)return n.push(A),e.push(VA);var s=e[A-1];return hit.indexOf(s)===-1?(n.push(n[A-1]),e.push(s)):(n.push(A),e.push(VA))}if(n.push(A),o===uit)return e.push(t==="strict"?Ww:Sf);if(o===tO||o===lit)return e.push(VA);if(o===fit)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(Sf):e.push(VA);e.push(o)}),[n,e,a]},mm=function(r,t,e,n){var a=n[e];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var i=e;i<=n.length;){i++;var A=n[i];if(A===t)return!0;if(A!==Mi)break}if(a===Mi)for(var i=e;i>0;){i--;var o=n[i];if(Array.isArray(r)?r.indexOf(o)!==-1:r===o)for(var s=e;s<=n.length;){s++;var A=n[s];if(A===t)return!0;if(A!==Mi)break}if(o!==Mi)break}return!1},lD=function(r,t){for(var e=r;e>=0;){var n=t[e];if(n===Mi)e--;else return n}return 0},pit=function(r,t,e,n,a){if(e[n]===0)return Wt;var i=n-1;if(Array.isArray(a)&&a[i]===!0)return Wt;var A=i-1,o=i+1,s=t[i],l=A>=0?t[A]:0,u=t[o];if(s===JH&&u===qH)return Wt;if(qw.indexOf(s)!==-1)return eO;if(qw.indexOf(u)!==-1||rO.indexOf(u)!==-1)return Wt;if(lD(i,t)===jH)return gh;if(Jw.get(r[i])===Gw||(s===dh||s===ph)&&Jw.get(r[o])===Gw||s===nD||u===nD||s===aD||[Mi,Kw,su].indexOf(s)===-1&&u===aD||[vh,Kl,sit,qo,jo].indexOf(u)!==-1||lD(i,t)===zl||mm(gm,zl,i,t)||mm([vh,Kl],Ww,i,t)||mm(iD,iD,i,t))return Wt;if(s===Mi)return gh;if(s===gm||u===gm)return Wt;if(u===zw||s===zw)return gh;if([Kw,su,Ww].indexOf(u)!==-1||s===oit||l===Zw&&vit.indexOf(s)!==-1||s===jo&&u===Zw||u===AD||Ia.indexOf(u)!==-1&&s===Or||Ia.indexOf(s)!==-1&&u===Or||s===uu&&[Sf,dh,ph].indexOf(u)!==-1||[Sf,dh,ph].indexOf(s)!==-1&&u===lu||Ia.indexOf(s)!==-1&&oD.indexOf(u)!==-1||oD.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||[uu,lu].indexOf(s)!==-1&&(u===Or||[zl,su].indexOf(u)!==-1&&t[o+1]===Or)||[zl,su].indexOf(s)!==-1&&u===Or||s===Or&&[Or,jo,qo].indexOf(u)!==-1)return Wt;if([Or,jo,qo,vh,Kl].indexOf(u)!==-1)for(var f=i;f>=0;){var c=t[f];if(c===Or)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if([uu,lu].indexOf(u)!==-1)for(var f=[vh,Kl].indexOf(s)!==-1?A:i;f>=0;){var c=t[f];if(c===Or)return Wt;if([jo,qo].indexOf(c)!==-1)f--;else break}if($w===s&&[$w,Av,Xw,Yw].indexOf(u)!==-1||[Av,Xw].indexOf(s)!==-1&&[Av,ov].indexOf(u)!==-1||[ov,Yw].indexOf(s)!==-1&&u===ov||sD.indexOf(s)!==-1&&[AD,lu].indexOf(u)!==-1||sD.indexOf(u)!==-1&&s===uu||Ia.indexOf(s)!==-1&&Ia.indexOf(u)!==-1||s===qo&&Ia.indexOf(u)!==-1||Ia.concat(Or).indexOf(s)!==-1&&u===zl&&cit.indexOf(r[o])===-1||Ia.concat(Or).indexOf(u)!==-1&&s===Kl)return Wt;if(s===ym&&u===ym){for(var h=e[i],v=1;h>0&&(h--,t[h]===ym);)v++;if(v%2!==0)return Wt}return s===dh&&u===ph?Wt:gh},git=function(r,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=dit(r,t.lineBreak),n=e[0],a=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(a=a.map(function(o){return[Or,VA,tO].indexOf(o)!==-1?Sf:o}));var A=t.wordBreak==="keep-all"?i.map(function(o,s){return o&&r[s]>=19968&&r[s]<=40959}):void 0;return[n,a,A]},yit=function(){function r(t,e,n,a){this.codePoints=t,this.required=e===eO,this.start=n,this.end=a}return r.prototype.slice=function(){return Ce.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),mit=function(r,t){var e=_p(r),n=git(e,t),a=n[0],i=n[1],A=n[2],o=e.length,s=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=Wt;l=nO&&r<=57},jit=function(r){return r>=55296&&r<=57343},ts=function(r){return nr(r)||r>=AO&&r<=sO||r>=aO&&r<=Yit},tAt=function(r){return r>=aO&&r<=$it},eAt=function(r){return r>=AO&&r<=qit},rAt=function(r){return tAt(r)||eAt(r)},nAt=function(r){return r>=Hit},_h=function(r){return r===fd||r===_it||r===Cit},cd=function(r){return rAt(r)||nAt(r)||r===Tit},vD=function(r){return cd(r)||nr(r)||r===Ir},aAt=function(r){return r>=Vit&&r<=Git||r===Kit||r>=zit&&r<=Wit||r===Xit},Ci=function(r,t){return r!==Ru?!1:t!==fd},Ch=function(r,t,e){return r===Ir?cd(t)||Ci(t,e):cd(r)?!0:!!(r===Ru&&Ci(r,t))},Bm=function(r,t,e){return r===JA||r===Ir?nr(t)?!0:t===xf&&nr(e):nr(r===xf?t:r)},iAt=function(r){var t=0,e=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(e=-1),t++);for(var n=[];nr(r[t]);)n.push(r[t++]);var a=n.length?parseInt(Ce.apply(void 0,n),10):0;r[t]===xf&&t++;for(var i=[];nr(r[t]);)i.push(r[t++]);var A=i.length,o=A?parseInt(Ce.apply(void 0,i),10):0;(r[t]===oO||r[t]===iO)&&t++;var s=1;(r[t]===JA||r[t]===Ir)&&(r[t]===Ir&&(s=-1),t++);for(var l=[];nr(r[t]);)l.push(r[t++]);var u=l.length?parseInt(Ce.apply(void 0,l),10):0;return e*(a+o*Math.pow(10,-A))*Math.pow(10,s*u)},AAt={type:2},oAt={type:3},sAt={type:4},lAt={type:13},uAt={type:8},fAt={type:21},cAt={type:9},hAt={type:10},vAt={type:11},dAt={type:12},pAt={type:14},Sh={type:23},gAt={type:1},yAt={type:25},mAt={type:24},wAt={type:26},BAt={type:27},_At={type:28},CAt={type:29},SAt={type:31},jw={type:32},lO=function(){function r(){this._value=[]}return r.prototype.write=function(t){this._value=this._value.concat(_p(t))},r.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==jw;)t.push(e),e=this.consumeToken();return t},r.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case yh:return this.consumeStringToken(yh);case Sit:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(vD(e)||Ci(n,a)){var i=Ch(e,n,a)?Bit:wit,A=this.consumeName();return{type:5,value:A,flags:i}}break;case xit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),lAt;break;case mh:return this.consumeStringToken(mh);case wh:return AAt;case Xl:return oAt;case wm:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),pAt;break;case JA:if(Bm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Oit:return sAt;case Ir:var o=t,s=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Bm(o,s,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Ch(o,s,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===Ir&&l===Eit)return this.consumeCodePoint(),this.consumeCodePoint(),mAt;break;case xf:if(Bm(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case fD:if(this.peekCodePoint(0)===wm)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===wm&&(u=this.consumeCodePoint(),u===fD))return this.consumeToken();if(u===Yn)return this.consumeToken()}break;case kit:return wAt;case Nit:return BAt;case Fit:if(this.peekCodePoint(0)===Iit&&this.peekCodePoint(1)===Ir&&this.peekCodePoint(2)===Ir)return this.consumeCodePoint(),this.consumeCodePoint(),yAt;break;case Dit:var f=this.peekCodePoint(0),c=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Ch(f,c,h)){var A=this.consumeName();return{type:7,value:A}}break;case Qit:return _At;case Ru:if(Ci(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case Lit:return CAt;case Mit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),uAt;break;case Uit:return vAt;case Pit:return dAt;case Zit:case Jit:var v=this.peekCodePoint(0),d=this.peekCodePoint(1);return v===JA&&(ts(d)||d===Bh)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case cD:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),cAt;if(this.peekCodePoint(0)===cD)return this.consumeCodePoint(),fAt;break;case Rit:if(this.peekCodePoint(0)===Wl)return this.consumeCodePoint(),hAt;break;case Yn:return jw}return _h(t)?(this.consumeWhiteSpace(),SAt):nr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):cd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Ce(t)}},r.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},r.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},r.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},r.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ts(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===Bh&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(Ce.apply(void 0,t.map(function(s){return s===Bh?nO:s})),16),i=parseInt(Ce.apply(void 0,t.map(function(s){return s===Bh?sO:s})),16);return{type:30,start:a,end:i}}var A=parseInt(Ce.apply(void 0,t),16);if(this.peekCodePoint(0)===Ir&&ts(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];ts(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var i=parseInt(Ce.apply(void 0,o),16);return{type:30,start:A,end:i}}else return{type:30,start:A,end:A}},r.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===wh?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wh?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},r.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===mh||e===yh){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn||this.peekCodePoint(0)===Xl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Sh)}for(;;){var a=this.consumeCodePoint();if(a===Yn||a===Xl)return{type:22,value:Ce.apply(void 0,t)};if(_h(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Yn||this.peekCodePoint(0)===Xl?(this.consumeCodePoint(),{type:22,value:Ce.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Sh);if(a===yh||a===mh||a===wh||aAt(a))return this.consumeBadUrlRemnants(),Sh;if(a===Ru)if(Ci(a,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Sh;else t.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;_h(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Xl||t===Yn)return;Ci(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var a=Math.min(e,t);n+=Ce.apply(void 0,this._value.splice(0,a)),t-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(t){var e="",n=0;do{var a=this._value[n];if(a===Yn||a===void 0||a===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(a===fd)return this._value.splice(0,n),gAt;if(a===Ru){var i=this._value[n+1];i!==Yn&&i!==void 0&&(i===fd?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Ci(a,i)&&(e+=this.consumeStringSlice(n),e+=Ce(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var t=[],e=Jf,n=this.peekCodePoint(0);for((n===JA||n===Ir)&&t.push(this.consumeCodePoint());nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===xf&&nr(a))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=uD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===oO||n===iO)&&((a===JA||a===Ir)&&nr(i)||nr(a)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=uD;nr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[iAt(t),e]},r.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],a=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);if(Ch(a,i,A)){var o=this.consumeName();return{type:15,number:e,flags:n,unit:o}}return a===bit?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ts(t)){for(var e=Ce(t);ts(this.peekCodePoint(0))&&e.length<6;)e+=Ce(this.consumeCodePoint());_h(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return n===0||jit(n)||n>1114111?hD:n}return t===Yn?hD:t},r.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(vD(e))t+=Ce(e);else if(Ci(e,this.peekCodePoint(0)))t+=Ce(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},r}(),uO=function(){function r(t){this._tokens=t}return r.create=function(t){var e=new lO;return e.write(t),new r(e.read())},r.parseValue=function(t){return r.create(t).parseComponentValue()},r.parseValues=function(t){return r.create(t).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},r.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},r.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||bAt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?jw:t},r.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},r}(),qf=function(r){return r.type===15},ul=function(r){return r.type===17},le=function(r){return r.type===20},xAt=function(r){return r.type===0},tB=function(r,t){return le(r)&&r.value===t},fO=function(r){return r.type!==31},zs=function(r){return r.type!==31&&r.type!==4},Ba=function(r){var t=[],e=[];return r.forEach(function(n){if(n.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}n.type!==31&&e.push(n)}),e.length&&t.push(e),t},bAt=function(r,t){return t===11&&r.type===12||t===28&&r.type===29?!0:t===2&&r.type===3},qi=function(r){return r.type===17||r.type===15},Fe=function(r){return r.type===16||qi(r)},cO=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},Xe={type:17,number:0,flags:Jf},KC={type:16,number:50,flags:Jf},Ui={type:16,number:100,flags:Jf},fu=function(r,t,e){var n=r[0],a=r[1];return[ve(n,t),ve(typeof a<"u"?a:n,e)]},ve=function(r,t){if(r.type===16)return r.number/100*t;if(qf(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},hO="deg",vO="grad",dO="rad",pO="turn",Cp={name:"angle",parse:function(r,t){if(t.type===15)switch(t.unit){case hO:return Math.PI*t.number/180;case vO:return Math.PI/200*t.number;case dO:return t.number;case pO:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},gO=function(r){return r.type===15&&(r.unit===hO||r.unit===vO||r.unit===dO||r.unit===pO)},yO=function(r){var t=r.filter(le).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xe,Xe];case"to top":case"bottom":return cn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xe,Ui];case"to right":case"left":return cn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ui,Ui];case"to bottom":case"top":return cn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ui,Xe];case"to left":case"right":return cn(270)}return 0},cn=function(r){return Math.PI*r/180},Ni={name:"color",parse:function(r,t){if(t.type===18){var e=TAt[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(r,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),a=t.value.substring(1,2),i=t.value.substring(2,3),A=t.value.substring(3,4);return Pi(parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16),parseInt(A+A,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),a=t.value.substring(2,4),i=t.value.substring(4,6),A=t.value.substring(6,8);return Pi(parseInt(n,16),parseInt(a,16),parseInt(i,16),parseInt(A,16)/255)}}if(t.type===20){var o=Va[t.value.toUpperCase()];if(typeof o<"u")return o}return Va.TRANSPARENT}},Vi=function(r){return(255&r)===0},Ne=function(r){var t=255&r,e=255&r>>8,n=255&r>>16,a=255&r>>24;return t<255?"rgba("+a+","+n+","+e+","+t/255+")":"rgb("+a+","+n+","+e+")"},Pi=function(r,t,e,n){return(r<<24|t<<16|e<<8|Math.round(n*255)<<0)>>>0},dD=function(r,t){if(r.type===17)return r.number;if(r.type===16){var e=t===3?1:255;return t===3?r.number/100*e:Math.round(r.number/100*e)}return 0},pD=function(r,t){var e=t.filter(zs);if(e.length===3){var n=e.map(dD),a=n[0],i=n[1],A=n[2];return Pi(a,i,A,1)}if(e.length===4){var o=e.map(dD),a=o[0],i=o[1],A=o[2],s=o[3];return Pi(a,i,A,s)}return 0};function _m(r,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-r)*e*6+r:e<1/2?t:e<2/3?(t-r)*6*(2/3-e)+r:r}var gD=function(r,t){var e=t.filter(zs),n=e[0],a=e[1],i=e[2],A=e[3],o=(n.type===17?cn(n.number):Cp.parse(r,n))/(Math.PI*2),s=Fe(a)?a.number/100:0,l=Fe(i)?i.number/100:0,u=typeof A<"u"&&Fe(A)?ve(A,1):1;if(s===0)return Pi(l*255,l*255,l*255,1);var f=l<=.5?l*(s+1):l+s-l*s,c=l*2-f,h=_m(c,f,o+1/3),v=_m(c,f,o),d=_m(c,f,o-1/3);return Pi(h*255,v*255,d*255,u)},TAt={hsl:gD,hsla:gD,rgb:pD,rgba:pD},Hu=function(r,t){return Ni.parse(r,uO.create(t).parseComponentValue())},Va={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},IAt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FAt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sp=function(r,t){var e=Ni.parse(r,t[0]),n=t[1];return n&&Fe(n)?{color:e,stop:n}:{color:e,stop:null}},yD=function(r,t){var e=r[0],n=r[r.length-1];e.stop===null&&(e.stop=Xe),n.stop===null&&(n.stop=Ui);for(var a=[],i=0,A=0;Ai?a.push(s):a.push(i),i=s}else a.push(null)}for(var l=null,A=0;AA.optimumDistance)?{optimumCorner:o,optimumDistance:u}:A},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},QAt=function(r,t,e,n,a){var i=0,A=0;switch(r.size){case 0:r.shape===0?i=A=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-n)),A=Math.min(Math.abs(e),Math.abs(e-a)));break;case 2:if(r.shape===0)i=A=Math.min(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-a))/Math.min(Math.abs(t),Math.abs(t-n)),s=mD(n,a,t,e,!0),l=s[0],u=s[1];i=xn(l-t,(u-e)/o),A=o*i}break;case 1:r.shape===0?i=A=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(e),Math.abs(e-a)):r.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-n)),A=Math.max(Math.abs(e),Math.abs(e-a)));break;case 3:if(r.shape===0)i=A=Math.max(xn(t,e),xn(t,e-a),xn(t-n,e),xn(t-n,e-a));else if(r.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-a))/Math.max(Math.abs(t),Math.abs(t-n)),f=mD(n,a,t,e,!1),l=f[0],u=f[1];i=xn(l-t,(u-e)/o),A=o*i}break}return Array.isArray(r.size)&&(i=ve(r.size[0],n),A=r.size.length===2?ve(r.size[1],a):i),[i,A]},LAt=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&A.value==="to"){e=yO(a);return}else if(gO(A)){e=Cp.parse(r,A);return}}var o=Sp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},xh=function(r,t){var e=cn(180),n=[];return Ba(t).forEach(function(a,i){if(i===0){var A=a[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){e=yO(a);return}else if(gO(A)){e=(Cp.parse(r,A)+cn(270))%cn(360);return}}var o=Sp(r,a);n.push(o)}),{angle:e,stops:n,type:1}},MAt=function(r,t){var e=cn(180),n=[],a=1,i=0,A=3,o=[];return Ba(t).forEach(function(s,l){var u=s[0];if(l===0){if(le(u)&&u.value==="linear"){a=1;return}else if(le(u)&&u.value==="radial"){a=2;return}}if(u.type===18){if(u.name==="from"){var f=Ni.parse(r,u.values[0]);n.push({stop:Xe,color:f})}else if(u.name==="to"){var f=Ni.parse(r,u.values[0]);n.push({stop:Ui,color:f})}else if(u.name==="color-stop"){var c=u.values.filter(zs);if(c.length===2){var f=Ni.parse(r,c[1]),h=c[0];ul(h)&&n.push({stop:{type:16,number:h.number*100,flags:h.flags},color:f})}}}}),a===1?{angle:(e+cn(180))%cn(360),stops:n,type:a}:{size:A,shape:i,stops:n,position:o,type:a}},mO="closest-side",wO="farthest-side",BO="closest-corner",_O="farthest-corner",CO="circle",SO="ellipse",xO="cover",bO="contain",UAt=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0){var l=!1;s=A.reduce(function(f,c){if(l)if(le(c))switch(c.value){case"center":return i.push(KC),f;case"top":case"left":return i.push(Xe),f;case"right":case"bottom":return i.push(Ui),f}else(Fe(c)||qi(c))&&i.push(c);else if(le(c))switch(c.value){case CO:return e=0,!1;case SO:return e=1,!1;case"at":return l=!0,!1;case mO:return n=0,!1;case xO:case wO:return n=1,!1;case bO:case BO:return n=2,!1;case _O:return n=3,!1}else if(qi(c)||Fe(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return f},s)}if(s){var u=Sp(r,A);a.push(u)}}),{size:n,shape:e,stops:a,position:i,type:2}},bh=function(r,t){var e=0,n=3,a=[],i=[];return Ba(t).forEach(function(A,o){var s=!0;if(o===0?s=A.reduce(function(u,f){if(le(f))switch(f.value){case"center":return i.push(KC),!1;case"top":case"left":return i.push(Xe),!1;case"right":case"bottom":return i.push(Ui),!1}else if(Fe(f)||qi(f))return i.push(f),!1;return u},s):o===1&&(s=A.reduce(function(u,f){if(le(f))switch(f.value){case CO:return e=0,!1;case SO:return e=1,!1;case bO:case mO:return n=0,!1;case wO:return n=1,!1;case BO:return n=2,!1;case xO:case _O:return n=3,!1}else if(qi(f)||Fe(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return u},s)),s){var l=Sp(r,A);a.push(l)}}),{size:n,shape:e,stops:a,position:i,type:2}},PAt=function(r){return r.type===1},RAt=function(r){return r.type===2},zC={name:"image",parse:function(r,t){if(t.type===22){var e={url:t.value,type:0};return r.cache.addImage(t.value),e}if(t.type===18){var n=TO[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(r,t.values)}throw new Error("Unsupported image type "+t.type)}};function HAt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!TO[r.name])}var TO={"linear-gradient":LAt,"-moz-linear-gradient":xh,"-ms-linear-gradient":xh,"-o-linear-gradient":xh,"-webkit-linear-gradient":xh,"radial-gradient":UAt,"-moz-radial-gradient":bh,"-ms-radial-gradient":bh,"-o-radial-gradient":bh,"-webkit-radial-gradient":bh,"-webkit-gradient":MAt},OAt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(n){return zs(n)&&HAt(n)}).map(function(n){return zC.parse(r,n)})}},kAt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,t){return t.map(function(e){if(le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},NAt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(Fe)}).map(cO)}},VAt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(le).map(function(n){return n.value}).join(" ")}).map(GAt)}},GAt=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Es;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Es||(Es={}));var KAt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,t){return Ba(t).map(function(e){return e.filter(zAt)})}},zAt=function(r){return le(r)||Fe(r)},xp=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},WAt=xp("top"),XAt=xp("right"),YAt=xp("bottom"),ZAt=xp("left"),bp=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return cO(e.filter(Fe))}}},$At=bp("top-left"),JAt=bp("top-right"),qAt=bp("bottom-right"),jAt=bp("bottom-left"),Tp=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},tot=Tp("top"),eot=Tp("right"),rot=Tp("bottom"),not=Tp("left"),Ip=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return qf(e)?e.number:0}}},aot=Ip("top"),iot=Ip("right"),Aot=Ip("bottom"),oot=Ip("left"),sot={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lot={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},uot={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,t){return t.filter(le).reduce(function(e,n){return e|fot(n.value)},0)}},fot=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},cot={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},hot={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},hd;(function(r){r.NORMAL="normal",r.STRICT="strict"})(hd||(hd={}));var vot={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"strict":return hd.STRICT;case"normal":default:return hd.NORMAL}}},dot={name:"line-height",initialValue:"normal",prefix:!1,type:4},wD=function(r,t){return le(r)&&r.value==="normal"?1.2*t:r.type===17?t*r.number:Fe(r)?ve(r,t):t},pot={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,t){return t.type===20&&t.value==="none"?null:zC.parse(r,t)}},got={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},eB={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Fp=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},yot=Fp("top"),mot=Fp("right"),wot=Fp("bottom"),Bot=Fp("left"),_ot={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Cot={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ep=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Sot=Ep("top"),xot=Ep("right"),bot=Ep("bottom"),Tot=Ep("left"),Iot={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Fot={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Eot={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.length===1&&tB(t[0],"none")?[]:Ba(t).map(function(e){for(var n={color:Va.TRANSPARENT,offsetX:Xe,offsetY:Xe,blur:Xe},a=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Lot=function(r){var t=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},Mot=function(r){var t=r.filter(function(s){return s.type===17}).map(function(s){return s.number}),e=t[0],n=t[1];t[2],t[3];var a=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var A=t[12],o=t[13];return t[14],t[15],t.length===16?[e,n,a,i,A,o]:null},Uot={matrix:Lot,matrix3d:Mot},BD={type:16,number:50,flags:Jf},Pot=[BD,BD],Rot={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,t){var e=t.filter(Fe);return e.length!==2?Pot:[e[0],e[1]]}},Hot={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ou;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Ou||(Ou={}));var Oot={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"break-all":return Ou.BREAK_ALL;case"keep-all":return Ou.KEEP_ALL;case"normal":default:return Ou.NORMAL}}},kot={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,t){if(t.type===20)return{auto:!0,order:0};if(ul(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},IO={name:"time",parse:function(r,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},Not={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,t){return ul(t)?t.number:1}},Vot={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Got={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,t){return t.filter(le).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},Kot={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,t){var e=[],n=[];return t.forEach(function(a){switch(a.type){case 20:case 0:e.push(a.value);break;case 17:e.push(a.number.toString());break;case 4:n.push(e.join(" ")),e.length=0;break}}),e.length&&n.push(e.join(" ")),n.map(function(a){return a.indexOf(" ")===-1?a:"'"+a+"'"})}},zot={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Wot={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,t){if(ul(t))return t.number;if(le(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Xot={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,t){return t.filter(le).map(function(e){return e.value})}},Yot={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ue=function(r,t){return(r&t)!==0},Zot={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},$ot={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var n=[],a=t.filter(fO),i=0;i1?1:0],this.overflowWrap=pt(t,Cot,e.overflowWrap),this.paddingTop=pt(t,Sot,e.paddingTop),this.paddingRight=pt(t,xot,e.paddingRight),this.paddingBottom=pt(t,bot,e.paddingBottom),this.paddingLeft=pt(t,Tot,e.paddingLeft),this.paintOrder=pt(t,est,e.paintOrder),this.position=pt(t,Fot,e.position),this.textAlign=pt(t,Iot,e.textAlign),this.textDecorationColor=pt(t,Vot,(n=e.textDecorationColor)!==null&&n!==void 0?n:e.color),this.textDecorationLine=pt(t,Got,(a=e.textDecorationLine)!==null&&a!==void 0?a:e.textDecoration),this.textShadow=pt(t,Eot,e.textShadow),this.textTransform=pt(t,Dot,e.textTransform),this.transform=pt(t,Qot,e.transform),this.transformOrigin=pt(t,Rot,e.transformOrigin),this.visibility=pt(t,Hot,e.visibility),this.webkitTextStrokeColor=pt(t,rst,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pt(t,nst,e.webkitTextStrokeWidth),this.wordBreak=pt(t,Oot,e.wordBreak),this.zIndex=pt(t,kot,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Vi(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Ue(this.display,4)||Ue(this.display,33554432)||Ue(this.display,268435456)||Ue(this.display,536870912)||Ue(this.display,67108864)||Ue(this.display,134217728)},r}(),ist=function(){function r(t,e){this.content=pt(t,Zot,e.content),this.quotes=pt(t,jot,e.quotes)}return r}(),CD=function(){function r(t,e){this.counterIncrement=pt(t,$ot,e.counterIncrement),this.counterReset=pt(t,Jot,e.counterReset)}return r}(),pt=function(r,t,e){var n=new lO,a=e!==null&&typeof e<"u"?e.toString():t.initialValue;n.write(a);var i=new uO(n.read());switch(t.type){case 2:var A=i.parseComponentValue();return t.parse(r,le(A)?A.value:t.initialValue);case 0:return t.parse(r,i.parseComponentValue());case 1:return t.parse(r,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Cp.parse(r,i.parseComponentValue());case"color":return Ni.parse(r,i.parseComponentValue());case"image":return zC.parse(r,i.parseComponentValue());case"length":var o=i.parseComponentValue();return qi(o)?o:Xe;case"length-percentage":var s=i.parseComponentValue();return Fe(s)?s:Xe;case"time":return IO.parse(r,i.parseComponentValue())}break}},Ast="data-html2canvas-debug",ost=function(r){var t=r.getAttribute(Ast);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},rB=function(r,t){var e=ost(r);return e===1||t===e},_a=function(){function r(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,rB(e,3))debugger;this.styles=new ast(t,window.getComputedStyle(e,null)),iB(e)&&(this.styles.animationDuration.some(function(n){return n>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Bp(this.context,e),rB(e,4)&&(this.flags|=16)}return r}(),sst="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",SD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Th=0;Th>4,u[a++]=(A&15)<<4|o>>2,u[a++]=(o&3)<<6|s&63;return l},ust=function(r){for(var t=r.length,e=[],n=0;n>lo,hst=1<>lo,dst=FO+vst,pst=dst,gst=32,yst=pst+gst,mst=65536>>WC,wst=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>lo],e=(e<>lo)],e=(e<>WC),e=this.index[e],e+=t>>lo&Bst,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var Ih=0;Ih=55296&&a<=56319&&e>10)+55296,A%1024+56320)),(a+1===e||n.length>16384)&&(i+=String.fromCharCode.apply(String,n),n.length=0)}return i},Est=Cst(sst),rn="×",Em="÷",Dst=function(r){return Est.get(r)},Qst=function(r,t,e){var n=e-2,a=t[n],i=t[e-1],A=t[e];if(i===xm&&A===bm)return rn;if(i===xm||i===bm||i===TD||A===xm||A===bm||A===TD)return Em;if(i===FD&&[FD,Tm,ED,DD].indexOf(A)!==-1||(i===ED||i===Tm)&&(A===Tm||A===Im)||(i===DD||i===Im)&&A===Im||A===QD||A===ID||A===Tst||i===bst)return rn;if(i===QD&&A===LD){for(;a===ID;)a=t[--n];if(a===LD)return rn}if(i===Fm&&A===Fm){for(var o=0;a===Fm;)o++,a=t[--n];if(o%2===0)return rn}return Em},Lst=function(r){var t=Ist(r),e=t.length,n=0,a=0,i=t.map(Dst);return{next:function(){if(n>=e)return{done:!0,value:null};for(var A=rn;nA.x||u.y>A.y;return A=u,l===0?!0:f});return r.body.removeChild(t),o},Rst=function(){return typeof new Image().crossOrigin<"u"},Hst=function(){return typeof new XMLHttpRequest().responseType=="string"},Ost=function(r){var t=new Image,e=r.createElement("canvas"),n=e.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,";try{n.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},MD=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},kst=function(r){var t=r.createElement("canvas"),e=100;t.width=e,t.height=e;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,e,e);var a=new Image,i=t.toDataURL();a.src=i;var A=nB(e,e,0,0,a);return n.fillStyle="red",n.fillRect(0,0,e,e),UD(A).then(function(o){n.drawImage(o,0,0);var s=n.getImageData(0,0,e,e).data;n.fillStyle="red",n.fillRect(0,0,e,e);var l=r.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=e+"px",MD(s)?UD(nB(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),MD(n.getImageData(0,0,e,e).data)}).catch(function(){return!1})},nB=function(r,t,e,n,a){var i="http://www.w3.org/2000/svg",A=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return A.setAttributeNS(null,"width",r.toString()),A.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(o),o.appendChild(a),A},UD=function(r){return new Promise(function(t,e){var n=new Image;n.onload=function(){return t(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},We={get SUPPORT_RANGE_BOUNDS(){var r=Ust(document);return Object.defineProperty(We,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=We.SUPPORT_RANGE_BOUNDS&&Pst(document);return Object.defineProperty(We,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=Ost(document);return Object.defineProperty(We,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?kst(document):Promise.resolve(!1);return Object.defineProperty(We,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Rst();return Object.defineProperty(We,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Hst();return Object.defineProperty(We,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(We,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(We,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},ku=function(){function r(t,e){this.text=t,this.bounds=e}return r}(),Nst=function(r,t,e,n){var a=Kst(t,e),i=[],A=0;return a.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(We.SUPPORT_RANGE_BOUNDS){var s=PD(n,A,o.length).getClientRects();if(s.length>1){var l=XC(o),u=0;l.forEach(function(c){i.push(new ku(c,qa.fromDOMRectList(r,PD(n,u+A,c.length).getClientRects()))),u+=c.length})}else i.push(new ku(o,qa.fromDOMRectList(r,s)))}else{var f=n.splitText(o.length);i.push(new ku(o,Vst(r,n))),n=f}else We.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));A+=o.length}),i},Vst=function(r,t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var a=t.parentNode;if(a){a.replaceChild(n,t);var i=Bp(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),i}}return qa.EMPTY},PD=function(r,t,e){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,t),a.setEnd(r,t+e),a},XC=function(r){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(r)).map(function(e){return e.segment})}return Mst(r)},Gst=function(r,t){if(We.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(n){return n.segment})}return Wst(r,t)},Kst=function(r,t){return t.letterSpacing!==0?XC(r):Gst(r,t)},zst=[32,160,4961,65792,65793,4153,4241],Wst=function(r,t){for(var e=mit(r,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],a,i=function(){if(a.value){var A=a.value.slice(),o=_p(A),s="";o.forEach(function(l){zst.indexOf(l)===-1?s+=Ce(l):(s.length&&n.push(s),n.push(Ce(l)),s="")}),s.length&&n.push(s)}};!(a=e.next()).done;)i();return n},Xst=function(){function r(t,e,n){this.text=Yst(e.data,n.textTransform),this.textBounds=Nst(t,this.text,n,e)}return r}(),Yst=function(r,t){switch(t){case 1:return r.toLowerCase();case 3:return r.replace(Zst,$st);case 2:return r.toUpperCase();default:return r}},Zst=/(^|\s|:|-|\(|\))([a-z])/g,$st=function(r,t,e){return r.length>0?t+e.toUpperCase():r},EO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return t}(_a),DO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return t}(_a),QO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this,i=new XMLSerializer,A=Bp(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t}(_a),LO=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.value=n.value,a}return t}(_a),aB=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return t}(_a),Jst=[{type:15,flags:0,unit:"px",number:3}],qst=[{type:16,flags:0,number:50}],jst=function(r){return r.width>r.height?new qa(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)e.textNodes.push(new Xst(r,a,e.styles));else if(ys(a))if(GO(a)&&a.assignedNodes)a.assignedNodes().forEach(function(o){return sv(r,o,e,n)});else{var A=RO(r,a);A.styles.isVisible()&&(nlt(a,A,n)?A.flags|=4:alt(A.styles)&&(A.flags|=2),rlt.indexOf(a.tagName)!==-1&&(A.flags|=8),e.elements.push(A),a.slot,a.shadowRoot?sv(r,a.shadowRoot,A,n):!pd(a)&&!kO(a)&&!gd(a)&&sv(r,a,A,n))}},RO=function(r,t){return AB(t)?new EO(r,t):NO(t)?new DO(r,t):kO(t)?new QO(r,t):ilt(t)?new LO(r,t):Alt(t)?new aB(r,t):olt(t)?new YC(r,t):gd(t)?new MO(r,t):pd(t)?new UO(r,t):VO(t)?new PO(r,t):new _a(r,t)},HO=function(r,t){var e=RO(r,t);return e.flags|=4,sv(r,t,e,e),e},nlt=function(r,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||ZC(r)&&e.styles.isTransparent()},alt=function(r){return r.isPositioned()||r.isFloating()},OO=function(r){return r.nodeType===Node.TEXT_NODE},ys=function(r){return r.nodeType===Node.ELEMENT_NODE},iB=function(r){return ys(r)&&typeof r.style<"u"&&!lv(r)},lv=function(r){return typeof r.className=="object"},ilt=function(r){return r.tagName==="LI"},Alt=function(r){return r.tagName==="OL"},olt=function(r){return r.tagName==="INPUT"},slt=function(r){return r.tagName==="HTML"},kO=function(r){return r.tagName==="svg"},ZC=function(r){return r.tagName==="BODY"},NO=function(r){return r.tagName==="CANVAS"},HD=function(r){return r.tagName==="VIDEO"},AB=function(r){return r.tagName==="IMG"},VO=function(r){return r.tagName==="IFRAME"},OD=function(r){return r.tagName==="STYLE"},llt=function(r){return r.tagName==="SCRIPT"},pd=function(r){return r.tagName==="TEXTAREA"},gd=function(r){return r.tagName==="SELECT"},GO=function(r){return r.tagName==="SLOT"},kD=function(r){return r.tagName.indexOf("-")>0},ult=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},r.prototype.pop=function(t){var e=this;t.forEach(function(n){return e.counters[n].pop()})},r.prototype.parse=function(t){var e=this,n=t.counterIncrement,a=t.counterReset,i=!0;n!==null&&n.forEach(function(o){var s=e.counters[o.counter];s&&o.increment!==0&&(i=!1,s.length||s.push(1),s[Math.max(0,s.length-1)]+=o.increment)});var A=[];return i&&a.forEach(function(o){var s=e.counters[o.counter];A.push(o.counter),s||(s=e.counters[o.counter]=[]),s.push(o.reset)}),A},r}(),ND={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},VD={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},flt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},clt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},es=function(r,t,e,n,a,i){return re?bf(r,a,i.length>0):n.integers.reduce(function(A,o,s){for(;r>=o;)r-=o,A+=n.values[s];return A},"")+i},KO=function(r,t,e,n){var a="";do e||r--,a=n(r)+a,r/=t;while(r*t>=t);return a},_e=function(r,t,e,n,a){var i=e-t+1;return(r<0?"-":"")+(KO(Math.abs(r),i,n,function(A){return Ce(Math.floor(A%i)+t)})+a)},EA=function(r,t,e){e===void 0&&(e=". ");var n=t.length;return KO(Math.abs(r),n,!1,function(a){return t[Math.floor(a%n)]})+e},fs=1,pi=2,gi=4,hu=8,Fa=function(r,t,e,n,a,i){if(r<-9999||r>9999)return bf(r,4,a.length>0);var A=Math.abs(r),o=a;if(A===0)return t[0]+o;for(var s=0;A>0&&s<=4;s++){var l=A%10;l===0&&Ue(i,fs)&&o!==""?o=t[l]+o:l>1||l===1&&s===0||l===1&&s===1&&Ue(i,pi)||l===1&&s===1&&Ue(i,gi)&&r>100||l===1&&s>1&&Ue(i,hu)?o=t[l]+(s>0?e[s-1]:"")+o:l===1&&s>0&&(o=e[s-1]+o),A=Math.floor(A/10)}return(r<0?n:"")+o},GD="十百千萬",KD="拾佰仟萬",zD="マイナス",Dm="마이너스",bf=function(r,t,e){var n=e?". ":"",a=e?"、":"",i=e?", ":"",A=e?" ":"";switch(t){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var o=_e(r,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return EA(r,"〇一二三四五六七八九",a);case 6:return es(r,1,3999,ND,3,n).toLowerCase();case 7:return es(r,1,3999,ND,3,n);case 8:return _e(r,945,969,!1,n);case 9:return _e(r,97,122,!1,n);case 10:return _e(r,65,90,!1,n);case 11:return _e(r,1632,1641,!0,n);case 12:case 49:return es(r,1,9999,VD,3,n);case 35:return es(r,1,9999,VD,3,n).toLowerCase();case 13:return _e(r,2534,2543,!0,n);case 14:case 30:return _e(r,6112,6121,!0,n);case 15:return EA(r,"子丑寅卯辰巳午未申酉戌亥",a);case 16:return EA(r,"甲乙丙丁戊己庚辛壬癸",a);case 17:case 48:return Fa(r,"零一二三四五六七八九",GD,"負",a,pi|gi|hu);case 47:return Fa(r,"零壹貳參肆伍陸柒捌玖",KD,"負",a,fs|pi|gi|hu);case 42:return Fa(r,"零一二三四五六七八九",GD,"负",a,pi|gi|hu);case 41:return Fa(r,"零壹贰叁肆伍陆柒捌玖",KD,"负",a,fs|pi|gi|hu);case 26:return Fa(r,"〇一二三四五六七八九","十百千万",zD,a,0);case 25:return Fa(r,"零壱弐参四伍六七八九","拾百千万",zD,a,fs|pi|gi);case 31:return Fa(r,"영일이삼사오육칠팔구","십백천만",Dm,i,fs|pi|gi);case 33:return Fa(r,"零一二三四五六七八九","十百千萬",Dm,i,0);case 32:return Fa(r,"零壹貳參四五六七八九","拾百千",Dm,i,fs|pi|gi);case 18:return _e(r,2406,2415,!0,n);case 20:return es(r,1,19999,clt,3,n);case 21:return _e(r,2790,2799,!0,n);case 22:return _e(r,2662,2671,!0,n);case 22:return es(r,1,10999,flt,3,n);case 23:return EA(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return EA(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return _e(r,3302,3311,!0,n);case 28:return EA(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",a);case 29:return EA(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",a);case 34:return _e(r,3792,3801,!0,n);case 37:return _e(r,6160,6169,!0,n);case 38:return _e(r,4160,4169,!0,n);case 39:return _e(r,2918,2927,!0,n);case 40:return _e(r,1776,1785,!0,n);case 43:return _e(r,3046,3055,!0,n);case 44:return _e(r,3174,3183,!0,n);case 45:return _e(r,3664,3673,!0,n);case 46:return _e(r,3872,3881,!0,n);case 3:default:return _e(r,48,57,!0,n)}},zO="data-html2canvas-ignore",WD=function(){function r(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new ult,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(t,e){var n=this,a=hlt(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,A=t.defaultView.pageYOffset,o=a.contentWindow,s=o.document,l=plt(a).then(function(){return hr(n,void 0,void 0,function(){var u,f;return er(this,function(c){switch(c.label){case 0:return this.scrolledElements.forEach(wlt),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),u=this.options.onclone,f=this.clonedReferenceElement,typeof f>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:s.fonts&&s.fonts.ready?[4,s.fonts.ready]:[3,2];case 1:c.sent(),c.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,dlt(s)]:[3,4];case 3:c.sent(),c.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(s,f)}).then(function(){return a})]:[2,a]}})})});return s.open(),s.write(ylt(document.doctype)+""),mlt(this.referenceElement.ownerDocument,i,A),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),l},r.prototype.createElementClone=function(t){if(rB(t,2))debugger;if(NO(t))return this.createCanvasClone(t);if(HD(t))return this.createVideoClone(t);if(OD(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return AB(e)&&(AB(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),kD(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Qm(t.style,e),e},r.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(i,A){return A&&typeof A.cssText=="string"?i+A.cssText:i},""),a=t.cloneNode(!1);return a.textContent=n,a}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},r.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var a=t.cloneNode(!1);try{a.width=t.width,a.height=t.height;var i=t.getContext("2d"),A=a.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();(s==null?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return a},r.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var a=t.ownerDocument.createElement("canvas");return a.width=t.offsetWidth,a.height=t.offsetHeight,a},r.prototype.appendChildNode=function(t,e,n){(!ys(e)||!llt(e)&&!e.hasAttribute(zO)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!ys(e)||!OD(e))&&t.appendChild(this.cloneNode(e,n))},r.prototype.cloneChildNodes=function(t,e,n){for(var a=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(ys(i)&&GO(i)&&typeof i.assignedNodes=="function"){var A=i.assignedNodes();A.length&&A.forEach(function(o){return a.appendChildNode(e,o,n)})}else this.appendChildNode(e,i,n)},r.prototype.cloneNode=function(t,e){if(OO(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&ys(t)&&(iB(t)||lv(t))){var a=this.createElementClone(t);a.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&iB(a)&&(this.clonedReferenceElement=a),ZC(a)&&Clt(a);var s=this.counters.parse(new CD(this.context,i)),l=this.resolvePseudoContent(t,a,A,Nu.BEFORE);kD(t)&&(e=!0),HD(t)||this.cloneChildNodes(t,a,e),l&&a.insertBefore(l,a.firstChild);var u=this.resolvePseudoContent(t,a,o,Nu.AFTER);return u&&a.appendChild(u),this.counters.pop(s),(i&&(this.options.copyStyles||lv(t))&&!VO(t)||e)&&Qm(i,a),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([a,t.scrollLeft,t.scrollTop]),(pd(t)||gd(t))&&(pd(a)||gd(a))&&(a.value=t.value),a}return t.cloneNode(!1)},r.prototype.resolvePseudoContent=function(t,e,n,a){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(!(!o||!A||A==="none"||A==="-moz-alt-content"||n.display==="none")){this.counters.parse(new CD(this.context,n));var s=new ist(this.context,n),l=o.createElement("html2canvaspseudoelement");Qm(n,l),s.content.forEach(function(f){if(f.type===0)l.appendChild(o.createTextNode(f.value));else if(f.type===22){var c=o.createElement("img");c.src=f.value,c.style.opacity="1",l.appendChild(c)}else if(f.type===18){if(f.name==="attr"){var h=f.values.filter(le);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(f.name==="counter"){var v=f.values.filter(zs),d=v[0],p=v[1];if(d&&le(d)){var g=i.counters.getCounterValue(d.value),y=p&&le(p)?eB.parse(i.context,p.value):3;l.appendChild(o.createTextNode(bf(g,y,!1)))}}else if(f.name==="counters"){var m=f.values.filter(zs),d=m[0],w=m[1],p=m[2];if(d&&le(d)){var _=i.counters.getCounterValues(d.value),B=p&&le(p)?eB.parse(i.context,p.value):3,C=w&&w.type===0?w.value:"",S=_.map(function(I){return bf(I,B,!1)}).join(C);l.appendChild(o.createTextNode(S))}}}else if(f.type===20)switch(f.value){case"open-quote":l.appendChild(o.createTextNode(_D(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(_D(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(f.value))}}),l.className=oB+" "+sB;var u=a===Nu.BEFORE?" "+oB:" "+sB;return lv(e)?e.className.baseValue+=u:e.className+=u,l}}},r.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},r}(),Nu;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Nu||(Nu={}));var hlt=function(r,t){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(zO,"true"),r.body.appendChild(e),e},vlt=function(r){return new Promise(function(t){if(r.complete){t();return}if(!r.src){t();return}r.onload=t,r.onerror=t})},dlt=function(r){return Promise.all([].slice.call(r.images,0).map(vlt))},plt=function(r){return new Promise(function(t,e){var n=r.contentWindow;if(!n)return e("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var i=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(i),t(r))},50)}})},glt=["all","d","content"],Qm=function(r,t){for(var e=r.length-1;e>=0;e--){var n=r.item(e);glt.indexOf(n)===-1&&t.style.setProperty(n,r.getPropertyValue(n))}return t},ylt=function(r){var t="";return r&&(t+=""),t},mlt=function(r,t,e){r&&r.defaultView&&(t!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(t,e)},wlt=function(r){var t=r[0],e=r[1],n=r[2];t.scrollLeft=e,t.scrollTop=n},Blt=":before",_lt=":after",oB="___html2canvas___pseudoelement_before",sB="___html2canvas___pseudoelement_after",XD=`{ content: "" !important; display: none !important; }`,Clt=function(r){Slt(r,"."+oB+Blt+XD+` - .`+sB+_lt+XD)},Slt=function(r,t){var e=r.ownerDocument;if(e){var n=e.createElement("style");n.textContent=t,r.appendChild(n)}},WO=function(){function r(){}return r.getOrigin=function(t){var e=r._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(t){return r.getOrigin(t)===r._origin},r.setContext=function(t){r._link=t.document.createElement("a"),r._origin=r.getOrigin(t.location.href)},r._origin="about:blank",r}(),xlt=function(){function r(t,e){this.context=t,this._options=e,this._cache={}}return r.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(Mm(t)||Flt(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},r.prototype.match=function(t){return this._cache[t]},r.prototype.loadImage=function(t){return hr(this,void 0,void 0,function(){var e,n,a,i,A=this;return er(this,function(o){switch(o.label){case 0:return e=WO.isSameOrigin(t),n=!Lm(t)&&this._options.useCORS===!0&&We.SUPPORT_CORS_IMAGES&&!e,a=!Lm(t)&&!e&&!Mm(t)&&typeof this._options.proxy=="string"&&We.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Lm(t)&&!Mm(t)&&!a&&!n?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(Elt(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return s(u)},500),A._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(t){return typeof this._cache[t]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,A){var o=We.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")i(s.response);else{var f=new FileReader;f.addEventListener("load",function(){return i(f.result)},!1),f.addEventListener("error",function(c){return A(c)},!1),f.readAsDataURL(s.response)}else A("Failed to proxy resource "+a+" with status code "+s.status)},s.onerror=A;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return A("Timed out ("+u+"ms) proxying "+a)}}s.send()})},r}(),blt=/^data:image\/svg\+xml/i,Tlt=/^data:image\/.*;base64,/i,Ilt=/^data:image\/.*/i,Flt=function(r){return We.SUPPORT_SVG_DRAWING||!Dlt(r)},Lm=function(r){return Ilt.test(r)},Elt=function(r){return Tlt.test(r)},Mm=function(r){return r.substr(0,4)==="blob"},Dlt=function(r){return r.substr(-3).toLowerCase()==="svg"||blt.test(r)},ht=function(){function r(t,e){this.type=0,this.x=t,this.y=e}return r.prototype.add=function(t,e){return new r(this.x+t,this.y+e)},r}(),rs=function(r,t,e){return new ht(r.x+(t.x-r.x)*e,r.y+(t.y-r.y)*e)},Fh=function(){function r(t,e,n,a){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=a}return r.prototype.subdivide=function(t,e){var n=rs(this.start,this.startControl,t),a=rs(this.startControl,this.endControl,t),i=rs(this.endControl,this.end,t),A=rs(n,a,t),o=rs(a,i,t),s=rs(A,o,t);return e?new r(this.start,n,A,s):new r(s,o,i,this.end)},r.prototype.add=function(t,e){return new r(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),sn=function(r){return r.type===1},Qlt=function(){function r(t){var e=t.styles,n=t.bounds,a=fu(e.borderTopLeftRadius,n.width,n.height),i=a[0],A=a[1],o=fu(e.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=fu(e.borderBottomRightRadius,n.width,n.height),f=u[0],c=u[1],h=fu(e.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((v+f)/n.width),p.push((A+d)/n.height),p.push((l+c)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,s/=g,l/=g,f/=g,c/=g,v/=g,d/=g);var y=n.width-s,m=n.height-c,w=n.width-f,_=n.height-d,B=e.borderTopWidth,C=e.borderRightWidth,S=e.borderBottomWidth,x=e.borderLeftWidth,b=ve(e.paddingTop,t.bounds.width),I=ve(e.paddingRight,t.bounds.width),F=ve(e.paddingBottom,t.bounds.width),E=ve(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?pe(n.left+x/3,n.top+B/3,i-x/3,A-B/3,ee.TOP_LEFT):new ht(n.left+x/3,n.top+B/3),this.topRightBorderDoubleOuterBox=i>0||A>0?pe(n.left+y,n.top+B/3,s-C/3,l-B/3,ee.TOP_RIGHT):new ht(n.left+n.width-C/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=f>0||c>0?pe(n.left+w,n.top+m,f-C/3,c-S/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/3,n.top+n.height-S/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?pe(n.left+x/3,n.top+_,v-x/3,d-S/3,ee.BOTTOM_LEFT):new ht(n.left+x/3,n.top+n.height-S/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?pe(n.left+x*2/3,n.top+B*2/3,i-x*2/3,A-B*2/3,ee.TOP_LEFT):new ht(n.left+x*2/3,n.top+B*2/3),this.topRightBorderDoubleInnerBox=i>0||A>0?pe(n.left+y,n.top+B*2/3,s-C*2/3,l-B*2/3,ee.TOP_RIGHT):new ht(n.left+n.width-C*2/3,n.top+B*2/3),this.bottomRightBorderDoubleInnerBox=f>0||c>0?pe(n.left+w,n.top+m,f-C*2/3,c-S*2/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C*2/3,n.top+n.height-S*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?pe(n.left+x*2/3,n.top+_,v-x*2/3,d-S*2/3,ee.BOTTOM_LEFT):new ht(n.left+x*2/3,n.top+n.height-S*2/3),this.topLeftBorderStroke=i>0||A>0?pe(n.left+x/2,n.top+B/2,i-x/2,A-B/2,ee.TOP_LEFT):new ht(n.left+x/2,n.top+B/2),this.topRightBorderStroke=i>0||A>0?pe(n.left+y,n.top+B/2,s-C/2,l-B/2,ee.TOP_RIGHT):new ht(n.left+n.width-C/2,n.top+B/2),this.bottomRightBorderStroke=f>0||c>0?pe(n.left+w,n.top+m,f-C/2,c-S/2,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/2,n.top+n.height-S/2),this.bottomLeftBorderStroke=v>0||d>0?pe(n.left+x/2,n.top+_,v-x/2,d-S/2,ee.BOTTOM_LEFT):new ht(n.left+x/2,n.top+n.height-S/2),this.topLeftBorderBox=i>0||A>0?pe(n.left,n.top,i,A,ee.TOP_LEFT):new ht(n.left,n.top),this.topRightBorderBox=s>0||l>0?pe(n.left+y,n.top,s,l,ee.TOP_RIGHT):new ht(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||c>0?pe(n.left+w,n.top+m,f,c,ee.BOTTOM_RIGHT):new ht(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?pe(n.left,n.top+_,v,d,ee.BOTTOM_LEFT):new ht(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?pe(n.left+x,n.top+B,Math.max(0,i-x),Math.max(0,A-B),ee.TOP_LEFT):new ht(n.left+x,n.top+B),this.topRightPaddingBox=s>0||l>0?pe(n.left+Math.min(y,n.width-C),n.top+B,y>n.width+C?0:Math.max(0,s-C),Math.max(0,l-B),ee.TOP_RIGHT):new ht(n.left+n.width-C,n.top+B),this.bottomRightPaddingBox=f>0||c>0?pe(n.left+Math.min(w,n.width-x),n.top+Math.min(m,n.height-S),Math.max(0,f-C),Math.max(0,c-S),ee.BOTTOM_RIGHT):new ht(n.left+n.width-C,n.top+n.height-S),this.bottomLeftPaddingBox=v>0||d>0?pe(n.left+x,n.top+Math.min(_,n.height-S),Math.max(0,v-x),Math.max(0,d-S),ee.BOTTOM_LEFT):new ht(n.left+x,n.top+n.height-S),this.topLeftContentBox=i>0||A>0?pe(n.left+x+E,n.top+B+b,Math.max(0,i-(x+E)),Math.max(0,A-(B+b)),ee.TOP_LEFT):new ht(n.left+x+E,n.top+B+b),this.topRightContentBox=s>0||l>0?pe(n.left+Math.min(y,n.width+x+E),n.top+B+b,y>n.width+x+E?0:s-x+E,l-(B+b),ee.TOP_RIGHT):new ht(n.left+n.width-(C+I),n.top+B+b),this.bottomRightContentBox=f>0||c>0?pe(n.left+Math.min(w,n.width-(x+E)),n.top+Math.min(m,n.height+B+b),Math.max(0,f-(C+I)),c-(S+F),ee.BOTTOM_RIGHT):new ht(n.left+n.width-(C+I),n.top+n.height-(S+F)),this.bottomLeftContentBox=v>0||d>0?pe(n.left+x+E,n.top+_,Math.max(0,v-(x+E)),d-(S+F),ee.BOTTOM_LEFT):new ht(n.left+x+E,n.top+n.height-(S+F))}return r}(),ee;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ee||(ee={}));var pe=function(r,t,e,n,a){var i=4*((Math.sqrt(2)-1)/3),A=e*i,o=n*i,s=r+e,l=t+n;switch(a){case ee.TOP_LEFT:return new Fh(new ht(r,l),new ht(r,l-o),new ht(s-A,t),new ht(s,t));case ee.TOP_RIGHT:return new Fh(new ht(r,t),new ht(r+A,t),new ht(s,l-o),new ht(s,l));case ee.BOTTOM_RIGHT:return new Fh(new ht(s,t),new ht(s,t+o),new ht(r+A,l),new ht(r,l));case ee.BOTTOM_LEFT:default:return new Fh(new ht(s,l),new ht(s-A,l),new ht(r,t+o),new ht(r,t))}},yd=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Llt=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},md=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},Mlt=function(){function r(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return r}(),Eh=function(){function r(t,e){this.path=t,this.target=e,this.type=1}return r}(),Ult=function(){function r(t){this.opacity=t,this.type=2,this.target=6}return r}(),Plt=function(r){return r.type===0},XO=function(r){return r.type===1},Rlt=function(r){return r.type===2},YD=function(r,t){return r.length===t.length?r.some(function(e,n){return e===t[n]}):!1},Hlt=function(r,t,e,n,a){return r.map(function(i,A){switch(A){case 0:return i.add(t,e);case 1:return i.add(t+n,e);case 2:return i.add(t+n,e+a);case 3:return i.add(t,e+a)}return i})},YO=function(){function r(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),ZO=function(){function r(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Qlt(this.container),this.container.styles.opacity<1&&this.effects.push(new Ult(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Mlt(n,a,i))}if(this.container.styles.overflowX!==0){var A=yd(this.curves),o=md(this.curves);YD(A,o)?this.effects.push(new Eh(A,6)):(this.effects.push(new Eh(A,2)),this.effects.push(new Eh(o,4)))}}return r.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(s){return!XO(s)});if(e||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var A=yd(n.curves),o=md(n.curves);YD(A,o)||a.unshift(new Eh(o,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(s){return Me(s.target,t)})},r}(),lB=function(r,t,e,n){r.container.elements.forEach(function(a){var i=Me(a.flags,4),A=Me(a.flags,2),o=new ZO(a,r);Me(a.styles.display,2048)&&n.push(o);var s=Me(a.flags,8)?[]:n;if(i||A){var l=i||a.styles.isPositioned()?e:t,u=new YO(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var f=a.styles.zIndex.order;if(f<0){var c=0;l.negativeZIndex.some(function(v,d){return f>v.element.container.styles.zIndex.order?(c=d,!1):c>0}),l.negativeZIndex.splice(c,0,u)}else if(f>0){var h=0;l.positiveZIndex.some(function(v,d){return f>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);lB(o,u,i?u:e,s)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),lB(o,t,e,s);Me(a.flags,8)&&$O(a,s)})},$O=function(r,t){for(var e=r instanceof aB?r.start:1,n=r instanceof aB?r.reversed:!1,a=0;a"u"?r[0]:e},Wlt=function(r,t,e,n,a){var i=t[0],A=t[1],o=e[0],s=e[1];switch(r){case 2:return[new ht(Math.round(n.left),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(s+n.top+A)),new ht(Math.round(n.left),Math.round(s+n.top+A))];case 3:return[new ht(Math.round(n.left+i),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.height+n.top)),new ht(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new ht(Math.round(n.left+i),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A+s)),new ht(Math.round(n.left+i),Math.round(n.top+A+s))];default:return[new ht(Math.round(a.left),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.height+a.top)),new ht(Math.round(a.left),Math.round(a.height+a.top))]}},Xlt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$D="Hidden Text",Ylt=function(){function r(t){this._data={},this._document=t}return r.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),a.src=Xlt,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode($D)),n.appendChild(i),n.appendChild(a);var o=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode($D)),n.style.lineHeight="normal",a.style.verticalAlign="super";var s=a.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:s}},r.prototype.getMetrics=function(t,e){var n=t+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},r}(),qO=function(){function r(t,e){this.context=t,this.options=e}return r}(),Zlt=1e4,$lt=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new Ylt(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(e){this.ctx.save(),Rlt(e)&&(this.ctx.globalAlpha=e.opacity),Plt(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),XO(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return hr(this,void 0,void 0,function(){var n;return er(this,function(a){switch(a.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return hr(this,void 0,void 0,function(){return er(this,function(n){switch(n.label){case 0:if(Me(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,n,a){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+a);else{var A=XC(e.text);A.reduce(function(o,s){return i.ctx.fillText(s,o,e.bounds.top+a),o+i.ctx.measureText(s).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),a=eut(e.fontFamily).join(", "),i=qf(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(e,n){return hr(this,void 0,void 0,function(){var a,i,A,o,s,l,u,f,c=this;return er(this,function(h){return a=this.createFontStyle(n),i=a[0],A=a[1],o=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(A,o),l=s.baseline,u=s.middle,f=n.paintOrder,e.textBounds.forEach(function(v){f.forEach(function(d){switch(d){case 0:c.ctx.fillStyle=ke(n.color),c.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){c.ctx.shadowColor=ke(g.color),c.ctx.shadowOffsetX=g.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=g.offsetY.number*c.options.scale,c.ctx.shadowBlur=g.blur.number,c.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),n.textDecorationLine.length&&(c.ctx.fillStyle=ke(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:c.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(c.ctx.strokeStyle=ke(n.webkitTextStrokeColor),c.ctx.lineWidth=n.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,n,a){if(a&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=wd(e),A=md(n);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return hr(this,void 0,void 0,function(){var n,a,i,A,o,s,y,y,l,u,f,c,w,h,v,_,d,p,g,y,m,w,_;return er(this,function(B){switch(B.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,a=e.curves,i=n.styles,A=0,o=n.textNodes,B.label=1;case 1:return A0&&D>0&&(S=i.ctx.createPattern(_,"repeat"),i.renderRepeat(b,S,M,R))):RAt(u)&&(x=Um(e,n,[null,null,null]),b=x[0],I=x[1],F=x[2],E=x[3],D=x[4],Q=u.position.length===0?[KC]:u.position,M=ve(Q[0],E),R=ve(Q[Q.length-1],D),P=QAt(u,M,R,E,D),O=P[0],G=P[1],O>0&&G>0&&(X=i.ctx.createRadialGradient(I+M,F+R,0,I+M,F+R,O),yD(u.stops,O*2).forEach(function(N){return X.addColorStop(N.stop,ke(N.color))}),i.path(b),i.ctx.fillStyle=X,O!==G?(J=e.bounds.left+.5*e.bounds.width,At=e.bounds.top+.5*e.bounds.height,lt=G/O,wt=1/lt,i.ctx.save(),i.ctx.translate(J,At),i.ctx.transform(1,0,0,lt,0,0),i.ctx.translate(-J,-At),i.ctx.fillRect(I,wt*(F-At)+At,E,D*wt),i.ctx.restore()):i.ctx.fill())),Bt.label=6;case 6:return n--,[2]}})},i=this,A=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return A0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return c.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,3)];case 6:return c.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,e.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,e.curves)];case 10:c.sent(),c.label=11;case 11:o++,c.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,n,a,i,A){return hr(this,void 0,void 0,function(){var o,s,l,u,f,c,h,v,d,p,g,y,m,w,_,B,_,B;return er(this,function(C){return this.ctx.save(),o=Vlt(i,a),s=ZD(i,a),A===2&&(this.path(s),this.ctx.clip()),sn(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),sn(s[1])?(f=s[1].end.x,c=s[1].end.y):(f=s[1].x,c=s[1].y),a===0||a===2?h=Math.abs(l-f):h=Math.abs(u-c),this.ctx.beginPath(),A===3?this.formatPath(o):this.formatPath(s.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,A===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m)t.status),n=qn(JE(e.value.meta.uptime)),a=qn(null),i=qn(null),A=qn(null),o=qn(null);let s=[];const l=qn(!0),u=xe(()=>l.value?"#22c55e":"#ff4d4f"),f=xe(()=>l.value?"#80ffb0":"#fd8182"),c=qn("0"),h=xe(()=>bat(e.value.meta.os.name,e.value.meta.os.version)),v=xe(()=>kw(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=xe(()=>e.value.hardware.swap.total>0?kw(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A"),p=xe(()=>({borderColor:`linear-gradient(90deg, ${u.value}, ${f.value})`})),g=xe(()=>u.value);function y(){const w=Qc(a.value),_=Qc(i.value),B=Qc(A.value),C=Qc(o.value),S={color:"rgba(0, 0, 0, 0.8)",fontSize:15},x=["65%","90%"],b=["#a2d8f4","#0194e3"],I="center",F={label:{show:!0,fontSize:15,position:["50%","20%"]}};setInterval(()=>{if(l.value){const D=Date.now()/1e3-e.value.meta.observed_at;n.value=JE(e.value.meta.uptime+D)}},1e3);function E(){const D=Date.now()/1e3-e.value.meta.observed_at;c.value=D.toFixed(1),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),l.value=D<=ZH,w.setOption({color:[av(e.value.hardware.cpu.percent),iv(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:xe(()=>[{value:e.value.hardware.cpu.percent,name:"Used"},{value:100-e.value.hardware.cpu.percent,name:"Free"}]).value}]}),_.setOption({color:[av(e.value.hardware.mem.used/e.value.hardware.mem.total*100),iv(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.mem.used,name:"Used"},{value:e.value.hardware.mem.total-e.value.hardware.mem.used,name:"Free"}]}]}),B.setOption({color:[av(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),iv(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0,name:"Used"},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100,name:"Free"}]}]}),C.setOption({color:b,tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#0f7bc5",borderRadius:50,formatter:function(Q){return Q.axisDimension==="y"?nv(Q.value*8,null,"bps"):lh(Q.value,!0)}}},formatter:function(Q){let M=lh(Q[0].name,!0)+"
";return Q.forEach(function(R){M+=R.marker+(R.seriesName=="Tx"?"↑":"↓")+": "+nv(R.value*8,null,"bps")+"
"}),M}},toolbox:{feature:{saveAsImage:{}}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(Q=>Q[0]),axisLabel:{formatter:function(Q){return lh(Q,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(Q){return nv(Q*8,null,"b")}}}],series:[{name:"Tx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[1]),showSymbol:!1,lineStyle:{type:"dashed"}},{name:"Rx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[2]),showSymbol:!1}]})}E(),gu(()=>e.value,()=>{E()})}function m(){const w=document.querySelector(".host#"+e.value.meta.id);w&&Aut(w,{scale:2}).then(_=>{const B=_.toDataURL("image/png"),C=document.createElement("a");C.href=B,C.download=`screenshot-${e.value.meta.id}-${lh(Date.now(),!1)}.png`,C.click()})}return TB(()=>{y()}),(w,_)=>(Vr(),na("div",{class:"host",style:Ga([p.value,{"--hover-border-color":g.value}]),id:e.value.meta.id},[Tt("div",uut,ze(e.value.meta.name),1),Tt("div",fut,[Tt("div",cut,[yr(Eat,{class:"outline-anime",color:u.value,spreadColor:f.value,"is-online":l.value},null,8,["color","spreadColor","is-online"]),_[0]||(_[0]=vv("  ")),Tt("div",{class:"uptime",style:Ga([{"margin-right":"5px"},{backgroundColor:f.value,borderColor:u.value}])},ze(n.value),5)]),Tt("div",{class:"meta1-right",style:{display:"flex","justify-content":"flex-end","align-items":"center"}},[Tt("img",{onClick:m,src:FV,alt:"download",style:{width:"20px",height:"20px"}})])]),Tt("div",hut,[Tt("div",vut,[Tt("img",{class:"icon",src:h.value.icon,alt:"system"},null,8,dut),Tt("span",put,ze(h.value.name),1)]),Tt("div",gut,[_[1]||(_[1]=Tt("img",{class:"icon",src:EV,alt:"location"},null,-1)),Tt("span",yut,ze(e.value.meta.location)+" · "+ze(e.value.meta.timezone),1)]),Tt("div",mut,[_[2]||(_[2]=Tt("img",{class:"icon",src:DV,alt:"labels"},null,-1)),Tt("span",null,[(Vr(!0),na(Fr,null,Nm(e.value.meta.labels,B=>(Vr(),na("span",{class:"label meta2-text",key:B},ze(B),1))),128))])])]),_[8]||(_[8]=Tt("hr",null,null,-1)),_[9]||(_[9]=Tt("div",{class:"section-name"}," Hardware ",-1)),Tt("div",wut,[Tt("div",But,[Tt("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),_[3]||(_[3]=Tt("div",{class:"hw-title"},"CPU",-1)),Tt("div",_ut,ze(e.value.hardware.cpu.cores)+"C "+ze(e.value.hardware.cpu.logics)+"T",1)]),Tt("div",Cut,[Tt("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),_[4]||(_[4]=Tt("div",{class:"hw-title"},"Mem",-1)),Tt("div",Sut,ze(v.value),1)]),Tt("div",xut,[Tt("div",{class:"chart",ref_key:"swapChartRef",ref:A},null,512),_[5]||(_[5]=Tt("div",{class:"hw-title"},"Swap",-1)),Tt("div",but,ze(d.value),1)])]),_[10]||(_[10]=Tt("hr",null,null,-1)),Tt("div",Tut,[_[6]||(_[6]=Tt("div",{class:"section-name"}," Network ",-1)),Tt("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)]),_[11]||(_[11]=Tt("hr",null,null,-1)),Tt("div",Iut,[_[7]||(_[7]=Tt("div",{class:"section-name"}," Storage ",-1)),(Vr(!0),na(Fr,null,Nm(e.value.hardware.disks,B=>(Vr(),DB(Rat,{key:B.mountpoint,mountpoint:B.mountpoint,device:B.device,used:B.used,total:B.total,fstype:B.fstype},null,8,["mountpoint","device","used","total","fstype"]))),128))])],12,lut))}}),Eut=Ws(Fut,[["__scopeId","data-v-da37fa36"]]),Dut={class:"overview",style:{}},Qut={class:"grid-container"},Lut=Bo({__name:"Home",setup(r){const t=qn({}),e=qn(0),n=xe(()=>{const i=Date.now()/1e3;let A=0;for(const o of Object.values(t.value))i-o.meta.observed_at{t.value=await X1()},1e3);return TB(async()=>{t.value=await X1()}),IB(()=>{clearInterval(a)}),(i,A)=>(Vr(),na(Fr,null,[Tt("div",Dut,[Tt("h2",null,"Overview: "+ze(n.value)+" Online "+ze(e.value)+" Offline",1)]),Tt("div",Qut,[(Vr(!0),na(Fr,null,Nm(t.value,(o,s)=>(Vr(),DB(Eut,{class:"grid-item",key:s,status:o},null,8,["status"]))),128))])],64))}}),Mut=Ws(Lut,[["__scopeId","data-v-8e280492"]]),Uut={};function Put(r,t){return" Test "}const Rut=Ws(Uut,[["render",Put]]),Hut=[{path:"/",name:"主页",component:Mut},{path:"/test",name:"测试",component:Rut}],Out=bV({history:rV("/"),routes:Hut}),jO=B4(x4);jO.use(Out);jO.mount("#app"); + .`+sB+_lt+XD)},Slt=function(r,t){var e=r.ownerDocument;if(e){var n=e.createElement("style");n.textContent=t,r.appendChild(n)}},WO=function(){function r(){}return r.getOrigin=function(t){var e=r._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(t){return r.getOrigin(t)===r._origin},r.setContext=function(t){r._link=t.document.createElement("a"),r._origin=r.getOrigin(t.location.href)},r._origin="about:blank",r}(),xlt=function(){function r(t,e){this.context=t,this._options=e,this._cache={}}return r.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(Mm(t)||Flt(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},r.prototype.match=function(t){return this._cache[t]},r.prototype.loadImage=function(t){return hr(this,void 0,void 0,function(){var e,n,a,i,A=this;return er(this,function(o){switch(o.label){case 0:return e=WO.isSameOrigin(t),n=!Lm(t)&&this._options.useCORS===!0&&We.SUPPORT_CORS_IMAGES&&!e,a=!Lm(t)&&!e&&!Mm(t)&&typeof this._options.proxy=="string"&&We.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!Lm(t)&&!Mm(t)&&!a&&!n?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(s,l){var u=new Image;u.onload=function(){return s(u)},u.onerror=l,(Elt(i)||n)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return s(u)},500),A._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(t){return typeof this._cache[t]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,A){var o=We.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(s.status===200)if(o==="text")i(s.response);else{var f=new FileReader;f.addEventListener("load",function(){return i(f.result)},!1),f.addEventListener("error",function(c){return A(c)},!1),f.readAsDataURL(s.response)}else A("Failed to proxy resource "+a+" with status code "+s.status)},s.onerror=A;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return A("Timed out ("+u+"ms) proxying "+a)}}s.send()})},r}(),blt=/^data:image\/svg\+xml/i,Tlt=/^data:image\/.*;base64,/i,Ilt=/^data:image\/.*/i,Flt=function(r){return We.SUPPORT_SVG_DRAWING||!Dlt(r)},Lm=function(r){return Ilt.test(r)},Elt=function(r){return Tlt.test(r)},Mm=function(r){return r.substr(0,4)==="blob"},Dlt=function(r){return r.substr(-3).toLowerCase()==="svg"||blt.test(r)},ht=function(){function r(t,e){this.type=0,this.x=t,this.y=e}return r.prototype.add=function(t,e){return new r(this.x+t,this.y+e)},r}(),rs=function(r,t,e){return new ht(r.x+(t.x-r.x)*e,r.y+(t.y-r.y)*e)},Fh=function(){function r(t,e,n,a){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=a}return r.prototype.subdivide=function(t,e){var n=rs(this.start,this.startControl,t),a=rs(this.startControl,this.endControl,t),i=rs(this.endControl,this.end,t),A=rs(n,a,t),o=rs(a,i,t),s=rs(A,o,t);return e?new r(this.start,n,A,s):new r(s,o,i,this.end)},r.prototype.add=function(t,e){return new r(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),sn=function(r){return r.type===1},Qlt=function(){function r(t){var e=t.styles,n=t.bounds,a=fu(e.borderTopLeftRadius,n.width,n.height),i=a[0],A=a[1],o=fu(e.borderTopRightRadius,n.width,n.height),s=o[0],l=o[1],u=fu(e.borderBottomRightRadius,n.width,n.height),f=u[0],c=u[1],h=fu(e.borderBottomLeftRadius,n.width,n.height),v=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((v+f)/n.width),p.push((A+d)/n.height),p.push((l+c)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,s/=g,l/=g,f/=g,c/=g,v/=g,d/=g);var y=n.width-s,m=n.height-c,w=n.width-f,_=n.height-d,B=e.borderTopWidth,C=e.borderRightWidth,S=e.borderBottomWidth,x=e.borderLeftWidth,b=ve(e.paddingTop,t.bounds.width),I=ve(e.paddingRight,t.bounds.width),F=ve(e.paddingBottom,t.bounds.width),E=ve(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?pe(n.left+x/3,n.top+B/3,i-x/3,A-B/3,ee.TOP_LEFT):new ht(n.left+x/3,n.top+B/3),this.topRightBorderDoubleOuterBox=i>0||A>0?pe(n.left+y,n.top+B/3,s-C/3,l-B/3,ee.TOP_RIGHT):new ht(n.left+n.width-C/3,n.top+B/3),this.bottomRightBorderDoubleOuterBox=f>0||c>0?pe(n.left+w,n.top+m,f-C/3,c-S/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/3,n.top+n.height-S/3),this.bottomLeftBorderDoubleOuterBox=v>0||d>0?pe(n.left+x/3,n.top+_,v-x/3,d-S/3,ee.BOTTOM_LEFT):new ht(n.left+x/3,n.top+n.height-S/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?pe(n.left+x*2/3,n.top+B*2/3,i-x*2/3,A-B*2/3,ee.TOP_LEFT):new ht(n.left+x*2/3,n.top+B*2/3),this.topRightBorderDoubleInnerBox=i>0||A>0?pe(n.left+y,n.top+B*2/3,s-C*2/3,l-B*2/3,ee.TOP_RIGHT):new ht(n.left+n.width-C*2/3,n.top+B*2/3),this.bottomRightBorderDoubleInnerBox=f>0||c>0?pe(n.left+w,n.top+m,f-C*2/3,c-S*2/3,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C*2/3,n.top+n.height-S*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||d>0?pe(n.left+x*2/3,n.top+_,v-x*2/3,d-S*2/3,ee.BOTTOM_LEFT):new ht(n.left+x*2/3,n.top+n.height-S*2/3),this.topLeftBorderStroke=i>0||A>0?pe(n.left+x/2,n.top+B/2,i-x/2,A-B/2,ee.TOP_LEFT):new ht(n.left+x/2,n.top+B/2),this.topRightBorderStroke=i>0||A>0?pe(n.left+y,n.top+B/2,s-C/2,l-B/2,ee.TOP_RIGHT):new ht(n.left+n.width-C/2,n.top+B/2),this.bottomRightBorderStroke=f>0||c>0?pe(n.left+w,n.top+m,f-C/2,c-S/2,ee.BOTTOM_RIGHT):new ht(n.left+n.width-C/2,n.top+n.height-S/2),this.bottomLeftBorderStroke=v>0||d>0?pe(n.left+x/2,n.top+_,v-x/2,d-S/2,ee.BOTTOM_LEFT):new ht(n.left+x/2,n.top+n.height-S/2),this.topLeftBorderBox=i>0||A>0?pe(n.left,n.top,i,A,ee.TOP_LEFT):new ht(n.left,n.top),this.topRightBorderBox=s>0||l>0?pe(n.left+y,n.top,s,l,ee.TOP_RIGHT):new ht(n.left+n.width,n.top),this.bottomRightBorderBox=f>0||c>0?pe(n.left+w,n.top+m,f,c,ee.BOTTOM_RIGHT):new ht(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=v>0||d>0?pe(n.left,n.top+_,v,d,ee.BOTTOM_LEFT):new ht(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?pe(n.left+x,n.top+B,Math.max(0,i-x),Math.max(0,A-B),ee.TOP_LEFT):new ht(n.left+x,n.top+B),this.topRightPaddingBox=s>0||l>0?pe(n.left+Math.min(y,n.width-C),n.top+B,y>n.width+C?0:Math.max(0,s-C),Math.max(0,l-B),ee.TOP_RIGHT):new ht(n.left+n.width-C,n.top+B),this.bottomRightPaddingBox=f>0||c>0?pe(n.left+Math.min(w,n.width-x),n.top+Math.min(m,n.height-S),Math.max(0,f-C),Math.max(0,c-S),ee.BOTTOM_RIGHT):new ht(n.left+n.width-C,n.top+n.height-S),this.bottomLeftPaddingBox=v>0||d>0?pe(n.left+x,n.top+Math.min(_,n.height-S),Math.max(0,v-x),Math.max(0,d-S),ee.BOTTOM_LEFT):new ht(n.left+x,n.top+n.height-S),this.topLeftContentBox=i>0||A>0?pe(n.left+x+E,n.top+B+b,Math.max(0,i-(x+E)),Math.max(0,A-(B+b)),ee.TOP_LEFT):new ht(n.left+x+E,n.top+B+b),this.topRightContentBox=s>0||l>0?pe(n.left+Math.min(y,n.width+x+E),n.top+B+b,y>n.width+x+E?0:s-x+E,l-(B+b),ee.TOP_RIGHT):new ht(n.left+n.width-(C+I),n.top+B+b),this.bottomRightContentBox=f>0||c>0?pe(n.left+Math.min(w,n.width-(x+E)),n.top+Math.min(m,n.height+B+b),Math.max(0,f-(C+I)),c-(S+F),ee.BOTTOM_RIGHT):new ht(n.left+n.width-(C+I),n.top+n.height-(S+F)),this.bottomLeftContentBox=v>0||d>0?pe(n.left+x+E,n.top+_,Math.max(0,v-(x+E)),d-(S+F),ee.BOTTOM_LEFT):new ht(n.left+x+E,n.top+n.height-(S+F))}return r}(),ee;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ee||(ee={}));var pe=function(r,t,e,n,a){var i=4*((Math.sqrt(2)-1)/3),A=e*i,o=n*i,s=r+e,l=t+n;switch(a){case ee.TOP_LEFT:return new Fh(new ht(r,l),new ht(r,l-o),new ht(s-A,t),new ht(s,t));case ee.TOP_RIGHT:return new Fh(new ht(r,t),new ht(r+A,t),new ht(s,l-o),new ht(s,l));case ee.BOTTOM_RIGHT:return new Fh(new ht(s,t),new ht(s,t+o),new ht(r+A,l),new ht(r,l));case ee.BOTTOM_LEFT:default:return new Fh(new ht(s,l),new ht(s-A,l),new ht(r,t+o),new ht(r,t))}},yd=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Llt=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},md=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},Mlt=function(){function r(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return r}(),Eh=function(){function r(t,e){this.path=t,this.target=e,this.type=1}return r}(),Ult=function(){function r(t){this.opacity=t,this.type=2,this.target=6}return r}(),Plt=function(r){return r.type===0},XO=function(r){return r.type===1},Rlt=function(r){return r.type===2},YD=function(r,t){return r.length===t.length?r.some(function(e,n){return e===t[n]}):!1},Hlt=function(r,t,e,n,a){return r.map(function(i,A){switch(A){case 0:return i.add(t,e);case 1:return i.add(t+n,e);case 2:return i.add(t+n,e+a);case 3:return i.add(t,e+a)}return i})},YO=function(){function r(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),ZO=function(){function r(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Qlt(this.container),this.container.styles.opacity<1&&this.effects.push(new Ult(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Mlt(n,a,i))}if(this.container.styles.overflowX!==0){var A=yd(this.curves),o=md(this.curves);YD(A,o)?this.effects.push(new Eh(A,6)):(this.effects.push(new Eh(A,2)),this.effects.push(new Eh(o,4)))}}return r.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var i=n.effects.filter(function(s){return!XO(s)});if(e||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var A=yd(n.curves),o=md(n.curves);YD(A,o)||a.unshift(new Eh(o,6))}}else a.unshift.apply(a,i);n=n.parent}return a.filter(function(s){return Ue(s.target,t)})},r}(),lB=function(r,t,e,n){r.container.elements.forEach(function(a){var i=Ue(a.flags,4),A=Ue(a.flags,2),o=new ZO(a,r);Ue(a.styles.display,2048)&&n.push(o);var s=Ue(a.flags,8)?[]:n;if(i||A){var l=i||a.styles.isPositioned()?e:t,u=new YO(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var f=a.styles.zIndex.order;if(f<0){var c=0;l.negativeZIndex.some(function(v,d){return f>v.element.container.styles.zIndex.order?(c=d,!1):c>0}),l.negativeZIndex.splice(c,0,u)}else if(f>0){var h=0;l.positiveZIndex.some(function(v,d){return f>=v.element.container.styles.zIndex.order?(h=d+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);lB(o,u,i?u:e,s)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),lB(o,t,e,s);Ue(a.flags,8)&&$O(a,s)})},$O=function(r,t){for(var e=r instanceof aB?r.start:1,n=r instanceof aB?r.reversed:!1,a=0;a"u"?r[0]:e},Wlt=function(r,t,e,n,a){var i=t[0],A=t[1],o=e[0],s=e[1];switch(r){case 2:return[new ht(Math.round(n.left),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(n.top+A)),new ht(Math.round(n.left+n.width),Math.round(s+n.top+A)),new ht(Math.round(n.left),Math.round(s+n.top+A))];case 3:return[new ht(Math.round(n.left+i),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.top)),new ht(Math.round(n.left+i+o),Math.round(n.height+n.top)),new ht(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new ht(Math.round(n.left+i),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A)),new ht(Math.round(n.left+i+o),Math.round(n.top+A+s)),new ht(Math.round(n.left+i),Math.round(n.top+A+s))];default:return[new ht(Math.round(a.left),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.top)),new ht(Math.round(a.left+a.width),Math.round(a.height+a.top)),new ht(Math.round(a.left),Math.round(a.height+a.top))]}},Xlt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",$D="Hidden Text",Ylt=function(){function r(t){this._data={},this._document=t}return r.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),a.src=Xlt,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode($D)),n.appendChild(i),n.appendChild(a);var o=a.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode($D)),n.style.lineHeight="normal",a.style.verticalAlign="super";var s=a.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:s}},r.prototype.getMetrics=function(t,e){var n=t+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},r}(),qO=function(){function r(t,e){this.context=t,this.options=e}return r}(),Zlt=1e4,$lt=function(r){kn(t,r);function t(e,n){var a=r.call(this,e,n)||this;return a._activeEffects=[],a.canvas=n.canvas?n.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),n.canvas||(a.canvas.width=Math.floor(n.width*n.scale),a.canvas.height=Math.floor(n.height*n.scale),a.canvas.style.width=n.width+"px",a.canvas.style.height=n.height+"px"),a.fontMetrics=new Ylt(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-n.x,-n.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),a}return t.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(a){return n.applyEffect(a)})},t.prototype.applyEffect=function(e){this.ctx.save(),Rlt(e)&&(this.ctx.globalAlpha=e.opacity),Plt(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),XO(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return hr(this,void 0,void 0,function(){var n;return er(this,function(a){switch(a.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return hr(this,void 0,void 0,function(){return er(this,function(n){switch(n.label){case 0:if(Ue(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,n,a){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+a);else{var A=XC(e.text);A.reduce(function(o,s){return i.ctx.fillText(s,o,e.bounds.top+a),o+i.ctx.measureText(s).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),a=eut(e.fontFamily).join(", "),i=qf(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(e,n){return hr(this,void 0,void 0,function(){var a,i,A,o,s,l,u,f,c=this;return er(this,function(h){return a=this.createFontStyle(n),i=a[0],A=a[1],o=a[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(A,o),l=s.baseline,u=s.middle,f=n.paintOrder,e.textBounds.forEach(function(v){f.forEach(function(d){switch(d){case 0:c.ctx.fillStyle=Ne(n.color),c.renderTextWithLetterSpacing(v,n.letterSpacing,l);var p=n.textShadow;p.length&&v.text.trim().length&&(p.slice(0).reverse().forEach(function(g){c.ctx.shadowColor=Ne(g.color),c.ctx.shadowOffsetX=g.offsetX.number*c.options.scale,c.ctx.shadowOffsetY=g.offsetY.number*c.options.scale,c.ctx.shadowBlur=g.blur.number,c.renderTextWithLetterSpacing(v,n.letterSpacing,l)}),c.ctx.shadowColor="",c.ctx.shadowOffsetX=0,c.ctx.shadowOffsetY=0,c.ctx.shadowBlur=0),n.textDecorationLine.length&&(c.ctx.fillStyle=Ne(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:c.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:c.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+u),v.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&v.text.trim().length&&(c.ctx.strokeStyle=Ne(n.webkitTextStrokeColor),c.ctx.lineWidth=n.webkitTextStrokeWidth,c.ctx.lineJoin=window.chrome?"miter":"round",c.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+l)),c.ctx.strokeStyle="",c.ctx.lineWidth=0,c.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,n,a){if(a&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=wd(e),A=md(n);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return hr(this,void 0,void 0,function(){var n,a,i,A,o,s,y,y,l,u,f,c,w,h,v,_,d,p,g,y,m,w,_;return er(this,function(B){switch(B.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,a=e.curves,i=n.styles,A=0,o=n.textNodes,B.label=1;case 1:return A0&&D>0&&(S=i.ctx.createPattern(_,"repeat"),i.renderRepeat(b,S,M,R))):RAt(u)&&(x=Um(e,n,[null,null,null]),b=x[0],I=x[1],F=x[2],E=x[3],D=x[4],Q=u.position.length===0?[KC]:u.position,M=ve(Q[0],E),R=ve(Q[Q.length-1],D),P=QAt(u,M,R,E,D),O=P[0],G=P[1],O>0&&G>0&&(X=i.ctx.createRadialGradient(I+M,F+R,0,I+M,F+R,O),yD(u.stops,O*2).forEach(function(N){return X.addColorStop(N.stop,Ne(N.color))}),i.path(b),i.ctx.fillStyle=X,O!==G?(J=e.bounds.left+.5*e.bounds.width,At=e.bounds.top+.5*e.bounds.height,lt=G/O,wt=1/lt,i.ctx.save(),i.ctx.translate(J,At),i.ctx.transform(1,0,0,lt,0,0),i.ctx.translate(-J,-At),i.ctx.fillRect(I,wt*(F-At)+At,E,D*wt),i.ctx.restore()):i.ctx.fill())),Bt.label=6;case 6:return n--,[2]}})},i=this,A=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return A0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return c.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,e.curves,3)];case 6:return c.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,e.curves)];case 8:return c.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,e.curves)];case 10:c.sent(),c.label=11;case 11:o++,c.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,n,a,i,A){return hr(this,void 0,void 0,function(){var o,s,l,u,f,c,h,v,d,p,g,y,m,w,_,B,_,B;return er(this,function(C){return this.ctx.save(),o=Vlt(i,a),s=ZD(i,a),A===2&&(this.path(s),this.ctx.clip()),sn(s[0])?(l=s[0].start.x,u=s[0].start.y):(l=s[0].x,u=s[0].y),sn(s[1])?(f=s[1].end.x,c=s[1].end.y):(f=s[1].x,c=s[1].y),a===0||a===2?h=Math.abs(l-f):h=Math.abs(u-c),this.ctx.beginPath(),A===3?this.formatPath(o):this.formatPath(s.slice(0,2)),v=n<3?n*3:n*2,d=n<3?n*2:n,A===3&&(v=n,d=n),p=!0,h<=v*2?p=!1:h<=v*2+d?(g=h/(2*v+d),v*=g,d*=g):(y=Math.floor((h+d)/(v+d)),m=(h-y*v)/(y-1),w=(h-(y+1)*v)/y,d=w<=0||Math.abs(d-m)t.status),n=qn(JE(e.value.meta.uptime)),a=qn(null),i=qn(null),A=qn(null),o=qn(null);let s=[];const l=qn(!0),u=xe(()=>l.value?"#22c55e":"#ff4d4f"),f=xe(()=>l.value?"#80ffb0":"#fd8182"),c=qn("0"),h=xe(()=>bat(e.value.meta.os.name,e.value.meta.os.version)),v=xe(()=>kw(e.value.hardware.mem.used,e.value.hardware.mem.total)),d=xe(()=>e.value.hardware.swap.total>0?kw(e.value.hardware.swap.used,e.value.hardware.swap.total):"N/A"),p=xe(()=>({borderColor:`linear-gradient(90deg, ${u.value}, ${f.value})`})),g=xe(()=>u.value);function y(){const w=Qc(a.value),_=Qc(i.value),B=Qc(A.value),C=Qc(o.value),S={color:"rgba(0, 0, 0, 0.8)",fontSize:15},x=["65%","90%"],b=["#a2d8f4","#0194e3"],I="center",F={label:{show:!0,fontSize:15,position:["50%","20%"]}};setInterval(()=>{if(l.value){const D=Date.now()/1e3-e.value.meta.observed_at;n.value=JE(e.value.meta.uptime+D)}},1e3);function E(){const D=Date.now()/1e3-e.value.meta.observed_at;c.value=D.toFixed(1),(s.length===0||s[s.length-1][0]!==e.value.meta.observed_at)&&s.push([e.value.meta.observed_at,e.value.hardware.net.up,e.value.hardware.net.down]),s.length>20&&s.shift(),l.value=D<=ZH,w.setOption({color:[av(e.value.hardware.cpu.percent),iv(e.value.hardware.cpu.percent)],title:{text:e.value.hardware.cpu.percent+"%",left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:xe(()=>[{value:e.value.hardware.cpu.percent,name:"Used"},{value:100-e.value.hardware.cpu.percent,name:"Free"}]).value}]}),_.setOption({color:[av(e.value.hardware.mem.used/e.value.hardware.mem.total*100),iv(e.value.hardware.mem.used/e.value.hardware.mem.total*100)],title:{text:`${(e.value.hardware.mem.used/e.value.hardware.mem.total*100).toFixed(1)}%`,left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.mem.used,name:"Used"},{value:e.value.hardware.mem.total-e.value.hardware.mem.used,name:"Free"}]}]}),B.setOption({color:[av(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0),iv(e.value.hardware.swap.used/e.value.hardware.swap.total*100,e.value.hardware.swap.total<=0)],title:{text:e.value.hardware.swap.total>0?`${(e.value.hardware.swap.used/e.value.hardware.swap.total*100).toFixed(1)}%`:"N/A",left:"center",top:"center",textStyle:S},series:[{type:"pie",radius:x,avoidLabelOverlap:!1,label:{show:!1,position:I},emphasis:F,labelLine:{show:!1},data:[{value:e.value.hardware.swap.total>0?e.value.hardware.swap.used:0,name:"Used"},{value:e.value.hardware.swap.total>0?e.value.hardware.swap.total-e.value.hardware.swap.used:100,name:"Free"}]}]}),C.setOption({color:b,tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#0f7bc5",borderRadius:50,formatter:function(Q){return Q.axisDimension==="y"?nv(Q.value*8,null,"bps"):lh(Q.value,!0)}}},formatter:function(Q){let M=lh(Q[0].name,!0)+"
";return Q.forEach(function(R){M+=R.marker+(R.seriesName=="Tx"?"↑":"↓")+": "+nv(R.value*8,null,"bps")+"
"}),M}},toolbox:{feature:{saveAsImage:{}}},grid:{top:"25%",left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:s.map(Q=>Q[0]),axisLabel:{formatter:function(Q){return lh(Q,!0)}}}],yAxis:[{type:"value",axisLabel:{formatter:function(Q){return nv(Q*8,null,"b")}}}],series:[{name:"Tx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[1]),showSymbol:!1,lineStyle:{type:"dashed"}},{name:"Rx",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:s.map(Q=>Q[2]),showSymbol:!1}]})}E(),gu(()=>e.value,()=>{E()})}function m(){const w=document.querySelector(".host#"+e.value.meta.id);w&&Aut(w,{scale:2}).then(_=>{const B=_.toDataURL("image/png"),C=document.createElement("a");C.href=B,C.download=`screenshot-${e.value.meta.id}-${lh(Date.now(),!1)}.png`,C.click()})}return TB(()=>{y()}),(w,_)=>(Vr(),na("div",{class:"host",style:Ga([p.value,{"--hover-border-color":g.value}]),id:e.value.meta.id},[Tt("div",uut,Le(e.value.meta.name),1),Tt("div",fut,[Tt("div",cut,[yr(Eat,{class:"outline-anime",color:u.value,spreadColor:f.value,"is-online":l.value},null,8,["color","spreadColor","is-online"]),_[0]||(_[0]=vv("  ")),Tt("div",{class:"uptime",style:Ga([{"margin-right":"5px"},{backgroundColor:f.value,borderColor:u.value}])},Le(n.value),5)]),Tt("div",{class:"meta1-right",style:{display:"flex","justify-content":"flex-end","align-items":"center"}},[Tt("img",{onClick:m,src:FV,alt:"download",style:{width:"20px",height:"20px"}})])]),Tt("div",hut,[Tt("div",vut,[Tt("img",{class:"icon",src:h.value.icon,alt:"system"},null,8,dut),Tt("span",put,Le(h.value.name)+" "+Le(e.value.meta.os.release)+" · "+Le(e.value.meta.os.machine),1)]),Tt("div",gut,[_[1]||(_[1]=Tt("img",{class:"icon",src:EV,alt:"location"},null,-1)),Tt("span",yut,Le(e.value.meta.location)+" · "+Le(e.value.meta.timezone),1)]),Tt("div",mut,[_[2]||(_[2]=Tt("img",{class:"icon",src:DV,alt:"labels"},null,-1)),Tt("span",null,[(Vr(!0),na(Fr,null,Nm(e.value.meta.labels,B=>(Vr(),na("span",{class:"label meta2-text",key:B},Le(B),1))),128))])])]),_[8]||(_[8]=Tt("hr",null,null,-1)),_[9]||(_[9]=Tt("div",{class:"section-name"}," Hardware ",-1)),Tt("div",wut,[Tt("div",But,[Tt("div",{class:"chart",ref_key:"cpuChartRef",ref:a},null,512),_[3]||(_[3]=Tt("div",{class:"hw-title"},"CPU",-1)),Tt("div",_ut,Le(e.value.hardware.cpu.cores)+"C "+Le(e.value.hardware.cpu.logics)+"T",1)]),Tt("div",Cut,[Tt("div",{class:"chart",ref_key:"memoryChartRef",ref:i},null,512),_[4]||(_[4]=Tt("div",{class:"hw-title"},"Mem",-1)),Tt("div",Sut,Le(v.value),1)]),Tt("div",xut,[Tt("div",{class:"chart",ref_key:"swapChartRef",ref:A},null,512),_[5]||(_[5]=Tt("div",{class:"hw-title"},"Swap",-1)),Tt("div",but,Le(d.value),1)])]),_[10]||(_[10]=Tt("hr",null,null,-1)),Tt("div",Tut,[_[6]||(_[6]=Tt("div",{class:"section-name"}," Network ",-1)),Tt("div",{class:"net-chart",ref_key:"netChartRef",ref:o},null,512)]),_[11]||(_[11]=Tt("hr",null,null,-1)),Tt("div",Iut,[_[7]||(_[7]=Tt("div",{class:"section-name"}," Storage ",-1)),(Vr(!0),na(Fr,null,Nm(e.value.hardware.disks,B=>(Vr(),DB(Rat,{key:B.mountpoint,mountpoint:B.mountpoint,device:B.device,used:B.used,total:B.total,fstype:B.fstype},null,8,["mountpoint","device","used","total","fstype"]))),128))])],12,lut))}}),Eut=Ws(Fut,[["__scopeId","data-v-96238739"]]),Dut={class:"overview",style:{}},Qut={class:"grid-container"},Lut=Bo({__name:"Home",setup(r){const t=qn({}),e=qn(0),n=xe(()=>{const i=Date.now()/1e3;let A=0;for(const o of Object.values(t.value))i-o.meta.observed_at{t.value=await X1()},1e3);return TB(async()=>{t.value=await X1()}),IB(()=>{clearInterval(a)}),(i,A)=>(Vr(),na(Fr,null,[Tt("div",Dut,[Tt("h2",null,"Overview: "+Le(n.value)+" Online "+Le(e.value)+" Offline",1)]),Tt("div",Qut,[(Vr(!0),na(Fr,null,Nm(t.value,(o,s)=>(Vr(),DB(Eut,{class:"grid-item",key:s,status:o},null,8,["status"]))),128))])],64))}}),Mut=Ws(Lut,[["__scopeId","data-v-8e280492"]]),Uut={};function Put(r,t){return" Test "}const Rut=Ws(Uut,[["render",Put]]),Hut=[{path:"/",name:"主页",component:Mut},{path:"/test",name:"测试",component:Rut}],Out=bV({history:rV("/"),routes:Hut}),jO=B4(x4);jO.use(Out);jO.mount("#app"); diff --git a/api/frontend/web/assets/index-CXDsYpdO.css b/api/frontend/web/assets/index-DA_E7Rpb.css similarity index 65% rename from api/frontend/web/assets/index-CXDsYpdO.css rename to api/frontend/web/assets/index-DA_E7Rpb.css index e8675b7..f1640b8 100644 --- a/api/frontend/web/assets/index-CXDsYpdO.css +++ b/api/frontend/web/assets/index-DA_E7Rpb.css @@ -1 +1 @@ -:root{font-family:Josefin Sans,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--text-color-1: #000;--text-color-2: #383838}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-ffc01d8f]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-ffc01d8f]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-ffc01d8f]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-ffc01d8f]{text-align:center;padding:1em;color:#666}a[data-v-ffc01d8f]{color:#36a7ec}.online-status[data-v-311f3e51]{position:relative;width:15px;height:15px}.dot[data-v-311f3e51]{width:100%;height:100%;border-radius:50%;z-index:1}.pulse[data-v-311f3e51]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;animation:pulse-311f3e51 1.5s infinite;z-index:0}@keyframes pulse-311f3e51{0%{transform:scale(1);opacity:1}to{transform:scale(2);opacity:0}}[data-v-8693b273]:host{--text-size: 2px}.disk[data-v-8693b273]{margin-top:.5rem;height:2rem;width:100%;border-radius:100px;position:relative;display:flex;align-items:center;justify-content:center}.disk-used[data-v-8693b273]{height:100%;position:absolute;left:0;top:0;border-radius:100px 0 0 100px}.hover-text[data-v-8693b273]{position:absolute;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:center;padding:0 1rem}.left-text[data-v-8693b273]{margin-left:1rem;display:flex;justify-content:flex-start}.right-text[data-v-8693b273]{margin-right:1rem;display:flex;justify-content:flex-end}.disk-text[data-v-8693b273]{font-size:var(--text-size);color:var(--text-color-2)}[data-v-da37fa36]:root{--liteyuki-color-1: #d0e9ff;--liteyuki-color-2: #a2d8f4;--hover-border-color: #ccc}.host[data-v-da37fa36]{padding:1rem;border:2px solid #ccc;border-radius:20px;flex-direction:column;justify-content:space-between;transition:border-color .3s ease}.host[data-v-da37fa36]:hover{border-color:var(--hover-border-color)}.meta-1 .outline-anime[data-v-da37fa36]{margin-right:.5em}.host-name[data-v-da37fa36]{text-align:center;font-size:1.5rem;font-weight:700}.meta-2[data-v-da37fa36]{margin-top:.5em}.meta-2 .meta2-text[data-v-da37fa36]{font-size:.9rem;color:var(--text-color-2)}.meta-2 .section[data-v-da37fa36]{margin-bottom:.5rem;justify-content:flex-start}.labels[data-v-da37fa36]{margin-top:.5em}.labels .label[data-v-da37fa36]{padding:.05rem .5rem;border:1px dashed;border-color:var(--text-color-1);border-radius:50px;margin-right:.5rem;background-color:#dfdfdf;color:var(--text-color-1);font-size:.8rem}.icon[data-v-da37fa36]{margin-right:.618rem;height:16px}.section[data-v-da37fa36]{display:flex;margin-right:10px;align-items:center}.uptime[data-v-da37fa36]{padding:0 .5rem;font-size:.8rem;border-radius:50px;border:1px dashed;align-items:center}.charts-container .hw-info[data-v-da37fa36]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-da37fa36]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-da37fa36]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-da37fa36]{text-align:center;font-size:.7rem}.section-name[data-v-da37fa36]{text-align:center;font-size:1rem;font-weight:700}.net .net-chart[data-v-da37fa36]{width:100%;aspect-ratio:2}.overview[data-v-8e280492]{display:flex;justify-content:space-between;padding:10px}.grid-container[data-v-8e280492]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;padding:10px} +:root{font-family:Josefin Sans,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#000;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--text-color-1: #000;--text-color-2: #383838}.dark{color:#fff;background-color:#000}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.logo[data-v-ffc01d8f]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-ffc01d8f]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-ffc01d8f]:hover{filter:drop-shadow(0 0 2em #42b883aa)}footer[data-v-ffc01d8f]{text-align:center;padding:1em;color:#666}a[data-v-ffc01d8f]{color:#36a7ec}.online-status[data-v-311f3e51]{position:relative;width:15px;height:15px}.dot[data-v-311f3e51]{width:100%;height:100%;border-radius:50%;z-index:1}.pulse[data-v-311f3e51]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;animation:pulse-311f3e51 1.5s infinite;z-index:0}@keyframes pulse-311f3e51{0%{transform:scale(1);opacity:1}to{transform:scale(2);opacity:0}}[data-v-8693b273]:host{--text-size: 2px}.disk[data-v-8693b273]{margin-top:.5rem;height:2rem;width:100%;border-radius:100px;position:relative;display:flex;align-items:center;justify-content:center}.disk-used[data-v-8693b273]{height:100%;position:absolute;left:0;top:0;border-radius:100px 0 0 100px}.hover-text[data-v-8693b273]{position:absolute;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:center;padding:0 1rem}.left-text[data-v-8693b273]{margin-left:1rem;display:flex;justify-content:flex-start}.right-text[data-v-8693b273]{margin-right:1rem;display:flex;justify-content:flex-end}.disk-text[data-v-8693b273]{font-size:var(--text-size);color:var(--text-color-2)}[data-v-96238739]:root{--liteyuki-color-1: #d0e9ff;--liteyuki-color-2: #a2d8f4;--hover-border-color: #ccc}.host[data-v-96238739]{padding:1rem;border:2px solid #ccc;border-radius:20px;flex-direction:column;justify-content:space-between;transition:border-color .3s ease}.host[data-v-96238739]:hover{border-color:var(--hover-border-color)}.meta-1 .outline-anime[data-v-96238739]{margin-right:.5em}.host-name[data-v-96238739]{text-align:center;font-size:1.5rem;font-weight:700}.meta-2[data-v-96238739]{margin-top:.5em}.meta-2 .meta2-text[data-v-96238739]{font-size:.9rem;color:var(--text-color-2)}.meta-2 .section[data-v-96238739]{margin-bottom:.5rem;justify-content:flex-start}.labels[data-v-96238739]{margin-top:.5em}.labels .label[data-v-96238739]{padding:.05rem .5rem;border:1px dashed;border-color:var(--text-color-1);border-radius:50px;margin-right:.5rem;background-color:#dfdfdf;color:var(--text-color-1);font-size:.8rem}.icon[data-v-96238739]{margin-right:.618rem;height:16px}.section[data-v-96238739]{display:flex;margin-right:10px;align-items:center}.uptime[data-v-96238739]{padding:0 .5rem;font-size:.8rem;border-radius:50px;border:1px dashed;align-items:center}.charts-container .hw-info[data-v-96238739]{width:30%;align-items:center}.charts-container .hw-info .chart[data-v-96238739]{width:100%;aspect-ratio:1}.charts-container .hw-info .hw-title[data-v-96238739]{text-align:center;font-size:.9rem}.charts-container .hw-info .hw-detail[data-v-96238739]{text-align:center;font-size:.7rem}.section-name[data-v-96238739]{text-align:center;font-size:1rem;font-weight:700}.net .net-chart[data-v-96238739]{width:100%;aspect-ratio:2}.overview[data-v-8e280492]{display:flex;justify-content:space-between;padding:10px}.grid-container[data-v-8e280492]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;padding:10px} diff --git a/api/frontend/web/index.html b/api/frontend/web/index.html index 2986f9b..8d8209c 100644 --- a/api/frontend/web/index.html +++ b/api/frontend/web/index.html @@ -7,8 +7,8 @@ Server Status - - + +