38 lines
525 KiB
JavaScript
38 lines
525 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();const x1=(e,t)=>e===t,Yo={equals:x1};let bg=Dg;const zr=1,Xo=2,Tg={owned:null,cleanups:null,context:null,owner:null};var $t=null;let ou=null,b1=null,At=null,Ht=null,fr=null,Cs=0;function T1(e,t){const r=At,n=$t,i=e.length===0,a=t===void 0?n:t,o=i?Tg:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>Ms(()=>la(o)));$t=o,At=null;try{return Ia(s,!0)}finally{At=r,$t=n}}function ue(e,t){t=t?Object.assign({},Yo,t):Yo;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=i=>(typeof i=="function"&&(i=i(r.value)),Mg(r,i));return[Cg.bind(r),n]}function Ae(e,t,r){const n=Hf(e,t,!1,zr);La(n)}function C1(e,t,r){bg=L1;const n=Hf(e,t,!1,zr);n.user=!0,fr?fr.push(n):La(n)}function M1(e,t,r){r=r?Object.assign({},Yo,r):Yo;const n=Hf(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,La(n),Cg.bind(n)}function Ms(e){if(At===null)return e();const t=At;At=null;try{return e()}finally{At=t}}function Cg(){if(this.sources&&this.state)if(this.state===zr)La(this);else{const e=Ht;Ht=null,Ia(()=>Zo(this),!1),Ht=e}if(At){const e=this.observers?this.observers.length:0;At.sources?(At.sources.push(this),At.sourceSlots.push(e)):(At.sources=[this],At.sourceSlots=[e]),this.observers?(this.observers.push(At),this.observerSlots.push(At.sources.length-1)):(this.observers=[At],this.observerSlots=[At.sources.length-1])}return this.value}function Mg(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&Ia(()=>{for(let i=0;i<e.observers.length;i+=1){const a=e.observers[i],o=ou&&ou.running;o&&ou.disposed.has(a),(o?!a.tState:!a.state)&&(a.pure?Ht.push(a):fr.push(a),a.observers&&Ag(a)),o||(a.state=zr)}if(Ht.length>1e6)throw Ht=[],new Error},!1)),t}function La(e){if(!e.fn)return;la(e);const t=Cs;D1(e,e.value,t)}function D1(e,t,r){let n;const i=$t,a=At;At=$t=e;try{n=e.fn(t)}catch(o){return e.pure&&(e.state=zr,e.owned&&e.owned.forEach(la),e.owned=null),e.updatedAt=r+1,Lg(o)}finally{At=a,$t=i}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?Mg(e,n):e.value=n,e.updatedAt=r)}function Hf(e,t,r,n=zr,i){const a={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:$t,context:$t?$t.context:null,pure:r};return $t===null||$t!==Tg&&($t.owned?$t.owned.push(a):$t.owned=[a]),a}function qo(e){if(e.state===0)return;if(e.state===Xo)return Zo(e);if(e.suspense&&Ms(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Cs);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===zr)La(e);else if(e.state===Xo){const n=Ht;Ht=null,Ia(()=>Zo(e,t[0]),!1),Ht=n}}function Ia(e,t){if(Ht)return e();let r=!1;t||(Ht=[]),fr?r=!0:fr=[],Cs++;try{const n=e();return A1(r),n}catch(n){r||(fr=null),Ht=null,Lg(n)}}function A1(e){if(Ht&&(Dg(Ht),Ht=null),e)return;const t=fr;fr=null,t.length&&Ia(()=>bg(t),!1)}function Dg(e){for(let t=0;t<e.length;t++)qo(e[t])}function L1(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:qo(n)}for(t=0;t<r;t++)qo(e[t])}function Zo(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const i=n.state;i===zr?n!==t&&(!n.updatedAt||n.updatedAt<Cs)&&qo(n):i===Xo&&Zo(n,t)}}}function Ag(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=Xo,r.pure?Ht.push(r):fr.push(r),r.observers&&Ag(r))}}function la(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),i=r.observers;if(i&&i.length){const a=i.pop(),o=r.observerSlots.pop();n<i.length&&(a.sourceSlots[o]=n,i[n]=a,r.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)la(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)la(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function I1(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Lg(e,t=$t){throw I1(e)}function Ig(e,t){return Ms(()=>e(t||{}))}function P1(e,t,r){let n=r.length,i=t.length,a=n,o=0,s=0,u=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===r[s]){o++,s++;continue}for(;t[i-1]===r[a-1];)i--,a--;if(i===o){const f=a<n?s?r[s-1].nextSibling:r[a-s]:u;for(;s<a;)e.insertBefore(r[s++],f)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===r[a-1]&&r[s]===t[i-1]){const f=t[--i].nextSibling;e.insertBefore(r[s++],t[o++].nextSibling),e.insertBefore(r[--a],f),t[i]=r[a]}else{if(!l){l=new Map;let h=s;for(;h<a;)l.set(r[h],h++)}const f=l.get(t[o]);if(f!=null)if(s<f&&f<a){let h=o,c=1,v;for(;++h<i&&h<a&&!((v=l.get(t[h]))==null||v!==f+c);)c++;if(c>f-s){const d=t[o];for(;s<f;)e.insertBefore(r[s++],d)}else e.replaceChild(r[s++],t[o++])}else o++;else t[o++].remove()}}}function E1(e,t,r,n={}){let i;return T1(a=>{i=a,t===document?e():fn(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{i(),t.textContent=""}}function Vf(e,t,r){let n;const i=()=>{const o=document.createElement("template");return o.innerHTML=e,o.content.firstChild},a=()=>(n||(n=i())).cloneNode(!0);return a.cloneNode=a,a}function xe(e,t,r,n){if(Array.isArray(r)){const i=r[0];e.addEventListener(t,r[0]=a=>i.call(e,r[1],a))}else e.addEventListener(t,r,typeof r!="function"&&r)}function R1(e,t,r){return Ms(()=>e(t,r))}function fn(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return jo(e,t,n,r);Ae(i=>jo(e,t(),i,r),n)}function jo(e,t,r,n,i){for(;typeof r=="function";)r=r();if(t===r)return r;const a=typeof t,o=n!==void 0;if(e=o&&r[0]&&r[0].parentNode||e,a==="string"||a==="number"){if(a==="number"&&(t=t.toString(),t===r))return r;if(o){let s=r[0];s&&s.nodeType===3?s.data!==t&&(s.data=t):s=document.createTextNode(t),r=Cn(e,r,n,s)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||a==="boolean")r=Cn(e,r,n);else{if(a==="function")return Ae(()=>{let s=t();for(;typeof s=="function";)s=s();r=jo(e,s,r,n)}),()=>r;if(Array.isArray(t)){const s=[],u=r&&Array.isArray(r);if(Pl(s,t,r,i))return Ae(()=>r=jo(e,s,r,n,!0)),()=>r;if(s.length===0){if(r=Cn(e,r,n),o)return r}else u?r.length===0?uv(e,s,n):P1(e,r,s):(r&&Cn(e),uv(e,s));r=s}else if(t.nodeType){if(Array.isArray(r)){if(o)return r=Cn(e,r,n,t);Cn(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function Pl(e,t,r,n){let i=!1;for(let a=0,o=t.length;a<o;a++){let s=t[a],u=r&&r[e.length],l;if(!(s==null||s===!0||s===!1))if((l=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))i=Pl(e,s,u)||i;else if(l==="function")if(n){for(;typeof s=="function";)s=s();i=Pl(e,Array.isArray(s)?s:[s],Array.isArray(u)?u:[u])||i}else e.push(s),i=!0;else{const f=String(s);u&&u.nodeType===3&&u.data===f?e.push(u):e.push(document.createTextNode(f))}}return i}function uv(e,t,r=null){for(let n=0,i=t.length;n<i;n++)e.insertBefore(t[n],r)}function Cn(e,t,r,n){if(r===void 0)return e.textContent="";const i=n||document.createTextNode("");if(t.length){let a=!1;for(let o=t.length-1;o>=0;o--){const s=t[o];if(i!==s){const u=s.parentNode===e;!a&&!o?u?e.replaceChild(i,s):e.insertBefore(i,r):u&&s.remove()}else a=!0}}else e.insertBefore(i,r);return[i]}function O1(e){return new Worker(""+new URL("worker-CvoViE0S.js",import.meta.url).href,{name:e==null?void 0:e.name})}function k1(e,t){let r;const n=new Promise(a=>{r=a}),i=new O1;return i.onmessage=a=>{a.data.type==="init"?r!==void 0&&(r(),r=void 0):a.data.type==="data"&&t(a.data.data)},i.postMessage(e),{initWorker:n,stopWorker:()=>{i.terminate()}}}var Pg=typeof global=="object"&&global&&global.Object===Object&&global,B1=typeof self=="object"&&self&&self.Object===Object&&self,Ke=Pg||B1||Function("return this")(),ii=Ke.Symbol,Eg=Object.prototype,N1=Eg.hasOwnProperty,F1=Eg.toString,mi=ii?ii.toStringTag:void 0;function z1(e){var t=N1.call(e,mi),r=e[mi];try{e[mi]=void 0;var n=!0}catch{}var i=F1.call(e);return n&&(t?e[mi]=r:delete e[mi]),i}var G1=Object.prototype,H1=G1.toString;function V1(e){return H1.call(e)}var $1="[object Null]",W1="[object Undefined]",lv=ii?ii.toStringTag:void 0;function Pa(e){return e==null?e===void 0?W1:$1:lv&&lv in Object(e)?z1(e):V1(e)}function Ea(e){return e!=null&&typeof e=="object"}var $f=Array.isArray;function Ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U1="[object AsyncFunction]",Y1="[object Function]",X1="[object GeneratorFunction]",q1="[object Proxy]";function Rg(e){if(!Ra(e))return!1;var t=Pa(e);return t==Y1||t==X1||t==U1||t==q1}var su=Ke["__core-js_shared__"],fv=function(){var e=/[^.]+$/.exec(su&&su.keys&&su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Z1(e){return!!fv&&fv in e}var j1=Function.prototype,K1=j1.toString;function Sn(e){if(e!=null){try{return K1.call(e)}catch{}try{return e+""}catch{}}return""}var Q1=/[\\^$.*+?()[\]{}|]/g,J1=/^\[object .+?Constructor\]$/,tw=Function.prototype,ew=Object.prototype,rw=tw.toString,nw=ew.hasOwnProperty,iw=RegExp("^"+rw.call(nw).replace(Q1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aw(e){if(!Ra(e)||Z1(e))return!1;var t=Rg(e)?iw:J1;return t.test(Sn(e))}function ow(e,t){return e==null?void 0:e[t]}function xn(e,t){var r=ow(e,t);return aw(r)?r:void 0}var El=xn(Ke,"WeakMap"),hv=Object.create,sw=function(){function e(){}return function(t){if(!Ra(t))return{};if(hv)return hv(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function uw(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var vv=function(){try{var e=xn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function lw(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var fw=9007199254740991,hw=/^(?:0|[1-9]\d*)$/;function vw(e,t){var r=typeof e;return t=t??fw,!!t&&(r=="number"||r!="symbol"&&hw.test(e))&&e>-1&&e%1==0&&e<t}function Og(e,t,r){t=="__proto__"&&vv?vv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function kg(e,t){return e===t||e!==e&&t!==t}var cw=Object.prototype,dw=cw.hasOwnProperty;function Bg(e,t,r){var n=e[t];(!(dw.call(e,t)&&kg(n,r))||r===void 0&&!(t in e))&&Og(e,t,r)}function Ds(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=void 0;u===void 0&&(u=e[s]),i?Og(r,s,u):Bg(r,s,u)}return r}var pw=9007199254740991;function Ng(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pw}function Fg(e){return e!=null&&Ng(e.length)&&!Rg(e)}var gw=Object.prototype;function Wf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||gw;return e===r}function yw(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var mw="[object Arguments]";function cv(e){return Ea(e)&&Pa(e)==mw}var zg=Object.prototype,_w=zg.hasOwnProperty,ww=zg.propertyIsEnumerable,Sw=cv(function(){return arguments}())?cv:function(e){return Ea(e)&&_w.call(e,"callee")&&!ww.call(e,"callee")};function xw(){return!1}var Gg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dv=Gg&&typeof module=="object"&&module&&!module.nodeType&&module,bw=dv&&dv.exports===Gg,pv=bw?Ke.Buffer:void 0,Tw=pv?pv.isBuffer:void 0,Hg=Tw||xw,Cw="[object Arguments]",Mw="[object Array]",Dw="[object Boolean]",Aw="[object Date]",Lw="[object Error]",Iw="[object Function]",Pw="[object Map]",Ew="[object Number]",Rw="[object Object]",Ow="[object RegExp]",kw="[object Set]",Bw="[object String]",Nw="[object WeakMap]",Fw="[object ArrayBuffer]",zw="[object DataView]",Gw="[object Float32Array]",Hw="[object Float64Array]",Vw="[object Int8Array]",$w="[object Int16Array]",Ww="[object Int32Array]",Uw="[object Uint8Array]",Yw="[object Uint8ClampedArray]",Xw="[object Uint16Array]",qw="[object Uint32Array]",yt={};yt[Gw]=yt[Hw]=yt[Vw]=yt[$w]=yt[Ww]=yt[Uw]=yt[Yw]=yt[Xw]=yt[qw]=!0;yt[Cw]=yt[Mw]=yt[Fw]=yt[Dw]=yt[zw]=yt[Aw]=yt[Lw]=yt[Iw]=yt[Pw]=yt[Ew]=yt[Rw]=yt[Ow]=yt[kw]=yt[Bw]=yt[Nw]=!1;function Zw(e){return Ea(e)&&Ng(e.length)&&!!yt[Pa(e)]}function Uf(e){return function(t){return e(t)}}var Vg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xi=Vg&&typeof module=="object"&&module&&!module.nodeType&&module,jw=Xi&&Xi.exports===Vg,uu=jw&&Pg.process,ai=function(){try{var e=Xi&&Xi.require&&Xi.require("util").types;return e||uu&&uu.binding&&uu.binding("util")}catch{}}(),gv=ai&&ai.isTypedArray,Kw=gv?Uf(gv):Zw,Qw=Object.prototype,Jw=Qw.hasOwnProperty;function $g(e,t){var r=$f(e),n=!r&&Sw(e),i=!r&&!n&&Hg(e),a=!r&&!n&&!i&&Kw(e),o=r||n||i||a,s=o?yw(e.length,String):[],u=s.length;for(var l in e)(t||Jw.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||vw(l,u)))&&s.push(l);return s}function Wg(e,t){return function(r){return e(t(r))}}var tS=Wg(Object.keys,Object),eS=Object.prototype,rS=eS.hasOwnProperty;function nS(e){if(!Wf(e))return tS(e);var t=[];for(var r in Object(e))rS.call(e,r)&&r!="constructor"&&t.push(r);return t}function Yf(e){return Fg(e)?$g(e):nS(e)}function iS(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var aS=Object.prototype,oS=aS.hasOwnProperty;function sS(e){if(!Ra(e))return iS(e);var t=Wf(e),r=[];for(var n in e)n=="constructor"&&(t||!oS.call(e,n))||r.push(n);return r}function Xf(e){return Fg(e)?$g(e,!0):sS(e)}var fa=xn(Object,"create");function uS(){this.__data__=fa?fa(null):{},this.size=0}function lS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fS="__lodash_hash_undefined__",hS=Object.prototype,vS=hS.hasOwnProperty;function cS(e){var t=this.__data__;if(fa){var r=t[e];return r===fS?void 0:r}return vS.call(t,e)?t[e]:void 0}var dS=Object.prototype,pS=dS.hasOwnProperty;function gS(e){var t=this.__data__;return fa?t[e]!==void 0:pS.call(t,e)}var yS="__lodash_hash_undefined__";function mS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fa&&t===void 0?yS:t,this}function mn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mn.prototype.clear=uS;mn.prototype.delete=lS;mn.prototype.get=cS;mn.prototype.has=gS;mn.prototype.set=mS;function _S(){this.__data__=[],this.size=0}function As(e,t){for(var r=e.length;r--;)if(kg(e[r][0],t))return r;return-1}var wS=Array.prototype,SS=wS.splice;function xS(e){var t=this.__data__,r=As(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():SS.call(t,r,1),--this.size,!0}function bS(e){var t=this.__data__,r=As(t,e);return r<0?void 0:t[r][1]}function TS(e){return As(this.__data__,e)>-1}function CS(e,t){var r=this.__data__,n=As(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function pr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}pr.prototype.clear=_S;pr.prototype.delete=xS;pr.prototype.get=bS;pr.prototype.has=TS;pr.prototype.set=CS;var ha=xn(Ke,"Map");function MS(){this.size=0,this.__data__={hash:new mn,map:new(ha||pr),string:new mn}}function DS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ls(e,t){var r=e.__data__;return DS(t)?r[typeof t=="string"?"string":"hash"]:r.map}function AS(e){var t=Ls(this,e).delete(e);return this.size-=t?1:0,t}function LS(e){return Ls(this,e).get(e)}function IS(e){return Ls(this,e).has(e)}function PS(e,t){var r=Ls(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function si(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}si.prototype.clear=MS;si.prototype.delete=AS;si.prototype.get=LS;si.prototype.has=IS;si.prototype.set=PS;function Ug(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Yg=Wg(Object.getPrototypeOf,Object);function ES(){this.__data__=new pr,this.size=0}function RS(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function OS(e){return this.__data__.get(e)}function kS(e){return this.__data__.has(e)}var BS=200;function NS(e,t){var r=this.__data__;if(r instanceof pr){var n=r.__data__;if(!ha||n.length<BS-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new si(n)}return r.set(e,t),this.size=r.size,this}function ui(e){var t=this.__data__=new pr(e);this.size=t.size}ui.prototype.clear=ES;ui.prototype.delete=RS;ui.prototype.get=OS;ui.prototype.has=kS;ui.prototype.set=NS;function FS(e,t){return e&&Ds(t,Yf(t),e)}function zS(e,t){return e&&Ds(t,Xf(t),e)}var Xg=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yv=Xg&&typeof module=="object"&&module&&!module.nodeType&&module,GS=yv&&yv.exports===Xg,mv=GS?Ke.Buffer:void 0,_v=mv?mv.allocUnsafe:void 0;function HS(e,t){if(t)return e.slice();var r=e.length,n=_v?_v(r):new e.constructor(r);return e.copy(n),n}function VS(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function qg(){return[]}var $S=Object.prototype,WS=$S.propertyIsEnumerable,wv=Object.getOwnPropertySymbols,qf=wv?function(e){return e==null?[]:(e=Object(e),VS(wv(e),function(t){return WS.call(e,t)}))}:qg;function US(e,t){return Ds(e,qf(e),t)}var YS=Object.getOwnPropertySymbols,Zg=YS?function(e){for(var t=[];e;)Ug(t,qf(e)),e=Yg(e);return t}:qg;function XS(e,t){return Ds(e,Zg(e),t)}function jg(e,t,r){var n=t(e);return $f(e)?n:Ug(n,r(e))}function qS(e){return jg(e,Yf,qf)}function ZS(e){return jg(e,Xf,Zg)}var Rl=xn(Ke,"DataView"),Ol=xn(Ke,"Promise"),kl=xn(Ke,"Set"),Sv="[object Map]",jS="[object Object]",xv="[object Promise]",bv="[object Set]",Tv="[object WeakMap]",Cv="[object DataView]",KS=Sn(Rl),QS=Sn(ha),JS=Sn(Ol),tx=Sn(kl),ex=Sn(El),or=Pa;(Rl&&or(new Rl(new ArrayBuffer(1)))!=Cv||ha&&or(new ha)!=Sv||Ol&&or(Ol.resolve())!=xv||kl&&or(new kl)!=bv||El&&or(new El)!=Tv)&&(or=function(e){var t=Pa(e),r=t==jS?e.constructor:void 0,n=r?Sn(r):"";if(n)switch(n){case KS:return Cv;case QS:return Sv;case JS:return xv;case tx:return bv;case ex:return Tv}return t});var rx=Object.prototype,nx=rx.hasOwnProperty;function ix(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&nx.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Mv=Ke.Uint8Array;function Zf(e){var t=new e.constructor(e.byteLength);return new Mv(t).set(new Mv(e)),t}function ax(e,t){var r=t?Zf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var ox=/\w*$/;function sx(e){var t=new e.constructor(e.source,ox.exec(e));return t.lastIndex=e.lastIndex,t}var Dv=ii?ii.prototype:void 0,Av=Dv?Dv.valueOf:void 0;function ux(e){return Av?Object(Av.call(e)):{}}function lx(e,t){var r=t?Zf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var fx="[object Boolean]",hx="[object Date]",vx="[object Map]",cx="[object Number]",dx="[object RegExp]",px="[object Set]",gx="[object String]",yx="[object Symbol]",mx="[object ArrayBuffer]",_x="[object DataView]",Sx="[object Float32Array]",xx="[object Float64Array]",bx="[object Int8Array]",Tx="[object Int16Array]",Cx="[object Int32Array]",Mx="[object Uint8Array]",Dx="[object Uint8ClampedArray]",Ax="[object Uint16Array]",Lx="[object Uint32Array]";function Ix(e,t,r){var n=e.constructor;switch(t){case mx:return Zf(e);case fx:case hx:return new n(+e);case _x:return ax(e,r);case Sx:case xx:case bx:case Tx:case Cx:case Mx:case Dx:case Ax:case Lx:return lx(e,r);case vx:return new n;case cx:case gx:return new n(e);case dx:return sx(e);case px:return new n;case yx:return ux(e)}}function Px(e){return typeof e.constructor=="function"&&!Wf(e)?sw(Yg(e)):{}}var Ex="[object Map]";function Rx(e){return Ea(e)&&or(e)==Ex}var Lv=ai&&ai.isMap,Ox=Lv?Uf(Lv):Rx,kx="[object Set]";function Bx(e){return Ea(e)&&or(e)==kx}var Iv=ai&&ai.isSet,Nx=Iv?Uf(Iv):Bx,Fx=1,zx=2,Gx=4,Kg="[object Arguments]",Hx="[object Array]",Vx="[object Boolean]",$x="[object Date]",Wx="[object Error]",Qg="[object Function]",Ux="[object GeneratorFunction]",Yx="[object Map]",Xx="[object Number]",Jg="[object Object]",qx="[object RegExp]",Zx="[object Set]",jx="[object String]",Kx="[object Symbol]",Qx="[object WeakMap]",Jx="[object ArrayBuffer]",tb="[object DataView]",eb="[object Float32Array]",rb="[object Float64Array]",nb="[object Int8Array]",ib="[object Int16Array]",ab="[object Int32Array]",ob="[object Uint8Array]",sb="[object Uint8ClampedArray]",ub="[object Uint16Array]",lb="[object Uint32Array]",dt={};dt[Kg]=dt[Hx]=dt[Jx]=dt[tb]=dt[Vx]=dt[$x]=dt[eb]=dt[rb]=dt[nb]=dt[ib]=dt[ab]=dt[Yx]=dt[Xx]=dt[Jg]=dt[qx]=dt[Zx]=dt[jx]=dt[Kx]=dt[ob]=dt[sb]=dt[ub]=dt[lb]=!0;dt[Wx]=dt[Qg]=dt[Qx]=!1;function Io(e,t,r,n,i,a){var o,s=t&Fx,u=t&zx,l=t&Gx;if(o!==void 0)return o;if(!Ra(e))return e;var f=$f(e);if(f){if(o=ix(e),!s)return uw(e,o)}else{var h=or(e),c=h==Qg||h==Ux;if(Hg(e))return HS(e,s);if(h==Jg||h==Kg||c&&!i){if(o=u||c?{}:Px(e),!s)return u?XS(e,zS(o,e)):US(e,FS(o,e))}else{if(!dt[h])return i?e:{};o=Ix(e,h,s)}}a||(a=new ui);var v=a.get(e);if(v)return v;a.set(e,o),Nx(e)?e.forEach(function(p){o.add(Io(p,t,r,p,e,a))}):Ox(e)&&e.forEach(function(p,y){o.set(y,Io(p,t,r,y,e,a))});var d=l?u?ZS:qS:u?Xf:Yf,g=f?void 0:d(e);return lw(g||e,function(p,y){g&&(y=p,p=e[y]),Bg(o,y,Io(p,t,r,y,e,a))}),o}var fb=4;function hb(e){return Io(e,fb)}/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var Bl=function(e,t){return Bl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Bl(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var vb=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),cb=function(){function e(){this.browser=new vb,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),q=new cb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window?(q.node=!0,q.svgSupported=!0):db(navigator.userAgent,q);function db(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var jf=12,pb="sans-serif",_n=jf+"px "+pb,gb=20,yb=100,mb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _b(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-gb)/yb;t[n]=i}return t}var wb=_b(mb),li={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=li.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||_n),e.measureText(r);r=r||"",n=n||_n;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||jf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=wb[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},ty=Rr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),ey=Rr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),fi=Object.prototype.toString,Is=Array.prototype,Sb=Is.forEach,xb=Is.filter,Kf=Is.slice,bb=Is.map,Pv=(function(){}).constructor,$a=Pv?Pv.prototype:null,Qf="__proto__",Tb=2311;function ry(){return Tb++}function Jf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function nt(e){if(e==null||typeof e!="object")return e;var t=e,r=fi.call(e);if(r==="[object Array]"){if(!Zi(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=nt(e[n])}}else if(ey[r]){if(!Zi(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!ty[r]&&!Zi(e)&&!va(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Qf&&(t[o]=nt(e[o]))}return t}function ft(e,t,r){if(!X(t)||!X(e))return r?nt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Qf){var i=e[n],a=t[n];X(a)&&X(i)&&!z(a)&&!z(i)&&!va(a)&&!va(i)&&!Ev(a)&&!Ev(i)&&!Zi(a)&&!Zi(i)?ft(i,a,r):(r||!(n in e))&&(e[n]=nt(t[n]))}return e}function B(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Qf&&(e[r]=t[r]);return e}function et(e,t,r){for(var n=gt(t),i=0,a=n.length;i<a;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function lt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function Cb(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Qe(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else et(e,t)}function Xt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function M(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Sb)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function $(e,t,r){if(!e)return[];if(!t)return th(e);if(e.map&&e.map===bb)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Rr(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Tt(e,t,r){if(!e)return[];if(!t)return th(e);if(e.filter&&e.filter===xb)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function gt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Mb(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Kf.call(arguments)))}}var _t=$a&&J($a.bind)?$a.call.bind($a.bind):Mb;function Yt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Kf.call(arguments)))}}function z(e){return Array.isArray?Array.isArray(e):fi.call(e)==="[object Array]"}function J(e){return typeof e=="function"}function W(e){return typeof e=="string"}function Nl(e){return fi.call(e)==="[object String]"}function vt(e){return typeof e=="number"}function X(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Ev(e){return!!ty[fi.call(e)]}function re(e){return!!ey[fi.call(e)]}function va(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ps(e){return e.colorStops!=null}function Db(e){return e.image!=null}function Ab(e){return fi.call(e)==="[object RegExp]"}function Ko(e){return e!==e}function ca(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function K(e,t){return e??t}function qi(e,t,r){return e??t??r}function th(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Kf.apply(e,t)}function ny(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function vr(e,t){if(!e)throw new Error(t)}function $e(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var iy="__ec_primitive__";function Qo(e){e[iy]=!0}function Zi(e){return e[iy]}var Lb=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return gt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),ay=typeof Map=="function";function Ib(){return ay?new Map:new Lb}var Pb=function(){function e(t){var r=z(t);this.data=Ib();var n=this;t instanceof e?t.each(i):t&&M(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return ay?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Z(e){return new Pb(e)}function Eb(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Es(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&B(r,t),r}function oy(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function cr(e,t){return e.hasOwnProperty(t)}function ee(){}var Rb=180/Math.PI;function hi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ob(e){return[e[0],e[1]]}function Rv(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function kb(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Bb(e){return Math.sqrt(Nb(e))}function Nb(e){return e[0]*e[0]+e[1]*e[1]}function lu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Fb(e,t){var r=Bb(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Fl(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var zl=Fl;function zb(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Zn=zb;function Po(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ye(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Wn(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Un(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Mn=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Gb=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Mn(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Mn(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Mn(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Mn(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Mn(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Mn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Je=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Hb=Math.log(2);function Gl(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/Hb);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*e[r][c]*Gl(e,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function Ov(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=Gl(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Gl(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var kv="___zrEVENTSAVED",fu=[];function Vb(e,t,r,n,i){return Hl(fu,t,n,i,!0)&&Hl(e,r,fu[0],fu[1])}function Hl(e,t,r,n,i){if(t.getBoundingClientRect&&q.domSupported&&!sy(t)){var a=t[kv]||(t[kv]={}),o=$b(t,a),s=Wb(o,a,i);if(s)return s(e,r,n),!0}return!1}function $b(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Wb(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=r?Ov(s,o):Ov(o,s))}function sy(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ub=/([&<>"'])/g,Yb={"&":"&","<":"<",">":">",'"':""","'":"'"};function Kt(e){return e==null?"":(e+"").replace(Ub,function(t,r){return Yb[r]})}var Xb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hu=[],qb=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function Vl(e,t,r,n){return r=r||{},n?Bv(e,t,r):qb&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Bv(e,t,r),r}function Bv(e,t,r){if(q.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(sy(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Hl(hu,e,n,i)){r.zrX=hu[0],r.zrY=hu[1];return}}r.zrX=r.zrY=0}function eh(e){return e||window.event}function ve(e,t,r){if(t=eh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Vl(e,o,t,r)}else{Vl(e,t,t,r);var a=Zb(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Xb.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Zb(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function jb(e,t,r,n){e.addEventListener(t,r,n)}function Kb(e,t,r,n){e.removeEventListener(t,r,n)}var uy=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Qb=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=Vl(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in vu)if(vu.hasOwnProperty(r)){var n=vu[r](this._track,t);if(n)return n}},e}();function Nv(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Jb(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var vu={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Nv(n)/Nv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Jb(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function jn(){return[1,0,0,1,0,0]}function rh(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function tT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Kn(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function $l(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function nh(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-n[0])+f*(l-n[1])+n[0],e[5]=h*(l-n[1])-f*(o-n[0])+n[1],e}function eT(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Rs(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}var U=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Wa=Math.min,Ua=Math.max,Gr=new U,Hr=new U,Vr=new U,$r=new U,_i=new U,wi=new U,it=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Wa(t.x,this.x),n=Wa(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ua(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ua(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=jn();return $l(a,a,[-r.x,-r.y]),eT(a,a,[n,i]),$l(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<i||s<f||h<o);if(r){var v=1/0,d=0,g=Math.abs(a-u),p=Math.abs(l-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),w=Math.min(y,m);a<u||l<i?_>d&&(d=_,g<p?U.set(wi,-g,0):U.set(wi,p,0)):_<v&&(v=_,g<p?U.set(_i,g,0):U.set(_i,-p,0)),s<f||h<o?w>d&&(d=w,y<m?U.set(wi,0,-y):U.set(wi,0,m)):_<v&&(v=_,y<m?U.set(_i,0,y):U.set(_i,0,-m))}return r&&U.copy(r,c?_i:wi),c},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gr.x=Vr.x=r.x,Gr.y=$r.y=r.y,Hr.x=$r.x=r.x+r.width,Hr.y=Vr.y=r.y+r.height,Gr.transform(n),$r.transform(n),Hr.transform(n),Vr.transform(n),t.x=Wa(Gr.x,Hr.x,Vr.x,$r.x),t.y=Wa(Gr.y,Hr.y,Vr.y,$r.y);var u=Ua(Gr.x,Hr.x,Vr.x,$r.x),l=Ua(Gr.y,Hr.y,Vr.y,$r.y);t.width=u-t.x,t.height=l-t.y},e}(),ly="silent";function rT(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:nT}}function nT(){uy(this.event)}var iT=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Je),Si=function(){function e(t,r){this.x=t,this.y=r}return e}(),aT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cu=new it(0,0,0,0),fy=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Si(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new iT,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Gb(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(aT,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=hy(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Si(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Si(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=rT(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Si(r,n);if(Fv(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new it(r-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(cu.copy(c.getBoundingRect()),c.transform&&cu.applyTransform(c.transform),cu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<l;p+=v)for(var y=0;y<g;y+=d){var m=r+p*Math.cos(y),_=n+p*Math.sin(y);if(Fv(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Qb);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Si;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Je);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){fy.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=hy(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||zl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function oT(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?ly:!0}return!1}function Fv(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=oT(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==ly)){t.target=o;break}}}function hy(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var vy=32,xi=7;function sT(e){for(var t=0;e>=vy;)t|=e&1,e>>=1;return e+t}function zv(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;uT(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function uT(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Gv(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function du(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u<s&&a(e,t[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(e,t[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function pu(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;u<s&&a(e,t[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(e,t[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function lT(e,t){var r=xi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],y=i[v+1];i[v]=g+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=pu(e[p],e,d,g,0,t);d+=m,g-=m,g!==0&&(y=du(e[d+g-1],e,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=e[v+y];var m=0,_=g,w=v;if(e[w++]=e[_++],--p===0){for(y=0;y<d;y++)e[w+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)e[w+y]=e[_+y];e[w+p]=o[m];return}for(var x=r,S,b,T;;){S=0,b=0,T=!1;do if(t(e[_],o[m])<0){if(e[w++]=e[_++],b++,S=0,--p===0){T=!0;break}}else if(e[w++]=o[m++],S++,b=0,--d===1){T=!0;break}while((S|b)<x);if(T)break;do{if(S=pu(e[_],o,m,d,0,t),S!==0){for(y=0;y<S;y++)e[w+y]=o[m+y];if(w+=S,m+=S,d-=S,d<=1){T=!0;break}}if(e[w++]=e[_++],--p===0){T=!0;break}if(b=du(o[m],e,_,p,0,t),b!==0){for(y=0;y<b;y++)e[w+y]=e[_+y];if(w+=b,_+=b,p-=b,p===0){T=!0;break}}if(e[w++]=o[m++],--d===1){T=!0;break}x--}while(S>=xi||b>=xi);if(T)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),d===1){for(y=0;y<p;y++)e[w+y]=e[_+y];e[w+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[w+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=e[g+y];var m=v+d-1,_=p-1,w=g+p-1,x=0,S=0;if(e[w--]=e[m--],--d===0){for(x=w-(p-1),y=0;y<p;y++)e[x+y]=o[y];return}if(p===1){for(w-=d,m-=d,S=w+1,x=m+1,y=d-1;y>=0;y--)e[S+y]=e[x+y];e[w]=o[_];return}for(var b=r;;){var T=0,C=0,D=!1;do if(t(o[_],e[m])<0){if(e[w--]=e[m--],T++,C=0,--d===0){D=!0;break}}else if(e[w--]=o[_--],C++,T=0,--p===1){D=!0;break}while((T|C)<b);if(D)break;do{if(T=d-pu(o[_],e,v,d,d-1,t),T!==0){for(w-=T,m-=T,d-=T,S=w+1,x=m+1,y=T-1;y>=0;y--)e[S+y]=e[x+y];if(d===0){D=!0;break}}if(e[w--]=o[_--],--p===1){D=!0;break}if(C=p-du(e[m],o,0,p,p-1,t),C!==0){for(w-=C,_-=C,p-=C,S=w+1,x=_+1,y=0;y<C;y++)e[S+y]=o[x+y];if(p<=1){D=!0;break}}if(e[w--]=e[m--],--d===0){D=!0;break}b--}while(T>=xi||C>=xi);if(D)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(w-=d,m-=d,S=w+1,x=m+1,y=d-1;y>=0;y--)e[S+y]=e[x+y];e[w]=o[_]}else{if(p===0)throw new Error;for(x=w-(p-1),y=0;y<p;y++)e[x+y]=o[y]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Eo(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<vy){a=zv(e,r,n,t),Gv(e,r,n,r+a,t);return}var o=lT(e,t),s=sT(i);do{if(a=zv(e,r,n,t),a<s){var u=i;u>s&&(u=s),Gv(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var ie=1,zi=2,Vn=4,Hv=!1;function gu(){Hv||(Hv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Vv(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var fT=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Vv}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Eo(n,Vv)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=ie),this._updateAndAddDisplayable(l,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(gu(),f.z=0),isNaN(f.z2)&&(gu(),f.z2=0),isNaN(f.zlevel)&&(gu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,r,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,r,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=lt(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Jo;Jo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var ji={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ji.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ji.bounceIn(e*2)*.5:ji.bounceOut(e*2-1)*.5+.5}},Ya=Math.pow,Ir=Math.sqrt,ts=1e-8,cy=1e-4,$v=Ir(3),Xa=1/3,He=hi(),pe=hi(),Qn=hi();function Ar(e){return e>-ts&&e<ts}function dy(e){return e>ts||e<-ts}function Ot(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Wv(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function py(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Ar(f)&&Ar(h))if(Ar(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Ar(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=Ir(g),_=f*s+1.5*o*(-h+m),w=f*s+1.5*o*(-h-m);_<0?_=-Ya(-_,Xa):_=Ya(_,Xa),w<0?w=-Ya(-w,Xa):w=Ya(w,Xa);var d=(-s-(_+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var x=(2*f*s-3*o*h)/(2*Ir(f*f*f)),S=Math.acos(x)/3,b=Ir(f),T=Math.cos(S),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+$v*Math.sin(S)))/(3*o),C=(-s+b*(T-$v*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function gy(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(Ar(o)){if(dy(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Ar(f))i[0]=-a/(2*o);else if(f>0){var h=Ir(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Or(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function yy(e,t,r,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;He[0]=u,He[1]=l;for(var m=0;m<1;m+=.05)pe[0]=Ot(e,r,i,o,m),pe[1]=Ot(t,n,a,s,m),p=Zn(He,pe),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<cy);_++)d=h-c,g=h+c,pe[0]=Ot(e,r,i,o,d),pe[1]=Ot(t,n,a,s,d),p=Zn(pe,He),d>=0&&p<v?(h=d,v=p):(Qn[0]=Ot(e,r,i,o,g),Qn[1]=Ot(t,n,a,s,g),y=Zn(Qn,He),g<=1&&y<v?(h=g,v=y):c*=.5);return f&&(f[0]=Ot(e,r,i,o,h),f[1]=Ot(t,n,a,s,h)),Ir(v)}function hT(e,t,r,n,i,a,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,g=Ot(e,r,i,o,d),p=Ot(t,n,a,s,d),y=g-l,m=p-f;h+=Math.sqrt(y*y+m*m),l=g,f=p}return h}function zt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Uv(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function vT(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(Ar(a)){if(dy(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Ar(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Ir(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function my(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function es(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function _y(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;He[0]=o,He[1]=s;for(var c=0;c<1;c+=.05){pe[0]=zt(e,r,i,c),pe[1]=zt(t,n,a,c);var v=Zn(He,pe);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<cy);d++){var g=l-f,p=l+f;pe[0]=zt(e,r,i,g),pe[1]=zt(t,n,a,g);var v=Zn(pe,He);if(g>=0&&v<h)l=g,h=v;else{Qn[0]=zt(e,r,i,p),Qn[1]=zt(t,n,a,p);var y=Zn(Qn,He);p<=1&&y<h?(l=p,h=y):f*=.5}}return u&&(u[0]=zt(e,r,i,l),u[1]=zt(t,n,a,l)),Ir(h)}function cT(e,t,r,n,i,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=zt(e,r,i,c),d=zt(t,n,a,c),g=v-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=v,u=d}return l}var dT=/cubic-bezier\(([0-9,\.e ]+)\)/;function wy(e){var t=e&&dT.exec(e);if(t){var r=t[1].split(","),n=+$e(r[0]),i=+$e(r[1]),a=+$e(r[2]),o=+$e(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:py(0,n,a,1,u,s)&&Ot(0,i,o,1,s[0])}}}var pT=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ee,this.ondestroy=t.ondestroy||ee,this.onrestart=t.onrestart||ee,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=J(t)?t:ji[t]||wy(t)},e}(),Sy=function(){function e(t){this.value=t}return e}(),gT=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Sy(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Oa=function(){function e(t){this._list=new gT,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Sy(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Yv={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 Ki(e){return e=Math.round(e),e<0?0:e>255?255:e}function Xv(e){return e<0?0:e>1?1:e}function yu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ki(parseFloat(t)/100*255):Ki(parseInt(t,10))}function Qi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Xv(parseFloat(t)/100):Xv(parseFloat(t))}function mu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function he(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Wl(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var xy=new Oa(20),qa=null;function Dn(e,t){qa&&Wl(qa,t),qa=xy.put(e,qa||t.slice())}function Jn(e,t){if(e){t=t||[];var r=xy.get(e);if(r)return Wl(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Yv)return Wl(t,Yv[n]),Dn(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){he(t,0,0,0,1);return}return he(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Dn(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){he(t,0,0,0,1);return}return he(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Dn(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?he(t,+l[0],+l[1],+l[2],1):he(t,0,0,0,1);f=Qi(l.pop());case"rgb":if(l.length>=3)return he(t,yu(l[0]),yu(l[1]),yu(l[2]),l.length===3?f:Qi(l[3])),Dn(e,t),t;he(t,0,0,0,1);return;case"hsla":if(l.length!==4){he(t,0,0,0,1);return}return l[3]=Qi(l[3]),qv(l,t),Dn(e,t),t;case"hsl":if(l.length!==3){he(t,0,0,0,1);return}return qv(l,t),Dn(e,t),t;default:return}}he(t,0,0,0,1)}}function qv(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Qi(e[1]),i=Qi(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],he(t,Ki(mu(o,a,r+1/3)*255),Ki(mu(o,a,r)*255),Ki(mu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Zv(e,t){var r=Jn(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return by(r,r.length===4?"rgba":"rgb")}}function by(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function rs(e,t){var r=Jn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var jv=new Oa(100);function Kv(e){if(W(e)){var t=jv.get(e);return t||(t=Zv(e,-.1),jv.put(e,t)),t}else if(Ps(e)){var r=B({},e);return r.colorStops=$(e.colorStops,function(n){return{offset:n.offset,color:Zv(n.color,-.1)}}),r}return e}function yT(e){return e.type==="linear"}function mT(e){return e.type==="radial"}(function(){return q.hasGlobalWindow&&J(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Ul=Array.prototype.slice;function ar(e,t,r){return(t-e)*r+e}function _u(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=ar(t[a],r[a],n);return e}function _T(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=ar(t[o][s],r[o][s],n)}return e}function Za(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Qv(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function wT(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function ST(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:Ul.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function Ro(e){if(Xt(e)){var t=e.length;if(Xt(e[0])){for(var r=[],n=0;n<t;n++)r.push(Ul.call(e[n]));return r}return Ul.call(e)}return e}function Oo(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function xT(e){return Xt(e&&e[0])?2:1}var ja=0,ko=1,Ty=2,Gi=3,Yl=4,Xl=5,Jv=6;function tc(e){return e===Yl||e===Xl}function Ka(e){return e===ko||e===Ty}var bi=[0,0,0,0],bT=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Jv,u=r;if(Xt(r)){var l=xT(r);s=l,(l===1&&!vt(r[0])||l===2&&!vt(r[0][0]))&&(o=!0)}else if(vt(r)&&!Ko(r))s=ja;else if(W(r))if(!isNaN(+r))s=ja;else{var f=Jn(r);f&&(u=f,s=Gi)}else if(Ps(r)){var h=B({},u);h.colorStops=$(r.colorStops,function(v){return{offset:v.offset,color:Jn(v.color)}}),yT(r)?s=Yl:mT(r)&&(s=Xl),u=h}a===0?this.valType=s:(s!==this.valType||s===Jv)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=J(n)?n:ji[n]||wy(n)),i.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Ka(i),l=tc(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?ST(c,v,i):l&&wT(c.colorStops,v.colorStops))}if(!s&&i!==Xl&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===ja?n[f].additiveValue=n[f].value-d:i===Gi?n[f].additiveValue=Za([],n[f].value,d,-1):Ka(i)&&(n[f].additiveValue=i===ko?Za([],n[f].value,d,-1):Qv([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Gi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,y=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?bi:t[u];if((Ka(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(Ka(a))a===ko?_u(m,v[i],d[i],y):_T(m,v[i],d[i],y);else if(tc(a)){var _=v[i],w=d[i],x=a===Yl;t[u]={type:x?"linear":"radial",x:ar(_.x,w.x,y),y:ar(_.y,w.y,y),colorStops:$(_.colorStops,function(b,T){var C=w.colorStops[T];return{offset:ar(b.offset,C.offset,y),color:Oo(_u([],b.color,C.color,y))}}),global:w.global},x?(t[u].x2=ar(_.x2,w.x2,y),t[u].y2=ar(_.y2,w.y2,y)):t[u].r=ar(_.r,w.r,y)}else if(l)_u(m,v[i],d[i],y),n||(t[u]=Oo(m));else{var S=ar(v[i],d[i],y);n?this._additiveValue=S:t[u]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===ja?t[n]=t[n]+i:r===Gi?(Jn(t[n],bi),Za(bi,bi,i,1),t[n]=Oo(bi)):r===ko?Za(t[n],t[n],i,1):r===Ty&&Qv(t[n],t[n],i,1)},e}(),ih=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Jf("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,gt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new bT(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Gi&&l&&(l=Oo(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Ro(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Ro(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new pT({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var y=r._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return $(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=Ro(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||gt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Yn(){return new Date().getTime()}var TT=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Yn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Jo(n),!r._paused&&r.update())}Jo(n)},t.prototype.start=function(){this._running||(this._time=Yn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new ih(r,n.loop);return this.addAnimator(i),i},t}(Je),CT=300,wu=q.domSupported,Su=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=$(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),ec={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},rc=!1;function ql(e){var t=e.pointerType;return t==="pen"||t==="touch"}function MT(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function xu(e){e&&(e.zrByTouch=!0)}function DT(e,t){return ve(e.dom,new AT(e,t),!0)}function Cy(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var AT=function(){function e(t,r){this.stopPropagation=ee,this.stopImmediatePropagation=ee,this.preventDefault=ee,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Me={mousedown:function(e){e=ve(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ve(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ve(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ve(this.dom,e);var t=e.toElement||e.relatedTarget;Cy(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){rc=!0,e=ve(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){rc||(e=ve(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ve(this.dom,e),xu(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Me.mousemove.call(this,e),Me.mousedown.call(this,e)},touchmove:function(e){e=ve(this.dom,e),xu(e),this.handler.processGesture(e,"change"),Me.mousemove.call(this,e)},touchend:function(e){e=ve(this.dom,e),xu(e),this.handler.processGesture(e,"end"),Me.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<CT&&Me.click.call(this,e)},pointerdown:function(e){Me.mousedown.call(this,e)},pointermove:function(e){ql(e)||Me.mousemove.call(this,e)},pointerup:function(e){Me.mouseup.call(this,e)},pointerout:function(e){ql(e)||Me.mouseout.call(this,e)}};M(["click","dblclick","contextmenu"],function(e){Me[e]=function(t){t=ve(this.dom,t),this.trigger(e,t)}});var Zl={pointermove:function(e){ql(e)||Zl.mousemove.call(this,e)},pointerup:function(e){Zl.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function LT(e,t){var r=t.domHandlers;q.pointerEventsSupported?M(Su.pointer,function(n){Bo(t,n,function(i){r[n].call(e,i)})}):(q.touchEventsSupported&&M(Su.touch,function(n){Bo(t,n,function(i){r[n].call(e,i),MT(t)})}),M(Su.mouse,function(n){Bo(t,n,function(i){i=eh(i),t.touching||r[n].call(e,i)})}))}function IT(e,t){q.pointerEventsSupported?M(ec.pointer,r):q.touchEventsSupported||M(ec.mouse,r);function r(n){function i(a){a=eh(a),Cy(e,a.target)||(a=DT(e,a),t.domHandlers[n].call(e,a))}Bo(t,n,i,{capture:!0})}}function Bo(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,jb(e.domTarget,t,r,n)}function bu(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Kb(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var nc=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),PT=function(e){H(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new nc(r,Me),wu&&(i._globalHandlerScope=new nc(document,Zl)),LT(i,i._localHandlerScope),i}return t.prototype.dispose=function(){bu(this._localHandlerScope),wu&&bu(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,wu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?IT(this,n):bu(n)}},t}(Je),My=1;q.hasGlobalWindow&&(My=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ns=My,jl=.4,Kl="#333",Ql="#ccc",ET="#eee",ic=rh,ac=5e-5;function Wr(e){return e>ac||e<-ac}var Ur=[],An=[],Tu=jn(),Cu=Math.abs,ka=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Wr(this.rotation)||Wr(this.x)||Wr(this.y)||Wr(this.scaleX-1)||Wr(this.scaleY-1)||Wr(this.skewX)||Wr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ic(n),this.invTransform=null);return}n=n||jn(),r?this.getLocalTransform(n):ic(n),t&&(r?Kn(n,t,n):tT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ur);var n=Ur[0]<0?-1:1,i=Ur[1]<0?-1:1,a=((Ur[0]-n)*r+n)/Ur[0]||0,o=((Ur[1]-i)*r+i)/Ur[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||jn(),Rs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||jn(),Kn(An,t.invTransform,r),r=An);var n=this.originX,i=this.originY;(n||i)&&(Tu[4]=n,Tu[5]=i,Kn(An,r,Tu),An[4]-=n,An[5]-=i,r=An),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ye(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ye(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Cu(t[0]-1)>1e-10&&Cu(t[3]-1)>1e-10?Math.sqrt(Cu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){RT(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;r[4]=-d*a-c*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&nh(r,r,l),r[4]+=n+f,r[5]+=i+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function RT(e,t){for(var r=0;r<da.length;r++){var n=da[r];e[n]=t[n]}}var oc={};function ae(e,t){t=t||_n;var r=oc[t];r||(r=oc[t]=new Oa(500));var n=r.get(e);return n==null&&(n=li.measureText(e,t).width,r.put(e,n)),n}function sc(e,t,r,n){var i=ae(e,t),a=oh(t),o=Hi(0,i,r),s=$n(0,a,n),u=new it(o,s,i,a);return u}function ah(e,t,r,n){var i=((e||"")+"").split(`
|
||
`),a=i.length;if(a===1)return sc(i[0],t,r,n);for(var o=new it(0,0,0,0),s=0;s<i.length;s++){var u=sc(i[s],t,r,n);s===0?o.copy(u):o.union(u)}return o}function Hi(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function $n(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function oh(e){return ae("国",e)}function kr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function is(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(n instanceof Array)u+=kr(n[0],r.width),l+=kr(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var Mu="__zr_normal__",Du=da.concat(["ignore"]),OT=Rr(da,function(e,t){return e[t]=!0,e},{ignore:!1}),Ln={},kT=new it(0,0,0,0),Os=function(){function e(t){this.id=ry(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(r),n.position!=null){var f=kT;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ln,n,f):is(Ln,n,f),a.x=Ln.x,a.y=Ln.y,o=Ln.align,s=Ln.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=kr(h[0],f.width),v=kr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=ie,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ql:Kl},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Jn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,by(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},B(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(X(t))for(var n=t,i=gt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Mu)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Du)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Mu,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Mu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(lt(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Jf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,n,f),c&&c.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,r,c),p&&p.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=lt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=lt(i,t),o=lt(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];B(r,a),a.textConfig&&(n=n||{},B(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=B({},i?this.textConfig:n.textConfig),B(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Du.length;f++){var h=Du[f],c=a&&OT[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new ka,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),B(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=ie;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new ih(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=lt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Au(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Au(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Au(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ie;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Qe(Os,Je);Qe(Os,ka);function Au(e,t,r,n,i){r=r||{};var a=[];Dy(e,"",e,t,r,n,a,i);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,g){r.during(g)});for(var c=0;c<a.length;c++){var v=a[c];v.done(f),v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function Lu(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function BT(e){return Xt(e[0])}function NT(e,t,r){if(Xt(t[r]))if(Xt(e[r])||(e[r]=[]),re(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Lu(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(BT(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?Lu(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else Lu(a,i,o);a.length=i.length}else e[r]=t[r]}function FT(e,t){return e===t||Xt(e)&&Xt(t)&&zT(e,t)}function zT(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Dy(e,t,r,n,i,a,o,s){for(var u=gt(n),l=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!X(a),d=e.animators,g=[],p=0;p<u.length;p++){var y=u[p],m=n[y];if(m!=null&&r[y]!=null&&(v||a[y]))if(X(m)&&!Xt(m)&&!Ps(m)){if(t){s||(r[y]=m,e.updateDuringAnimation(t));continue}Dy(e,y,r[y],m,i,a&&a[y],o,s)}else g.push(y);else s||(r[y]=m,e.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var w=0;w<d.length;w++){var x=d[w];if(x.targetName===t){var S=x.stopTracks(g);if(S){var b=lt(d,x);d.splice(b,1)}}}if(i.force||(g=Tt(g,function(A){return!FT(n[A],r[A])}),_=g.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,D=void 0;if(s){C={},c&&(T={});for(var w=0;w<_;w++){var y=g[w];C[y]=r[y],c?T[y]=n[y]:r[y]=n[y]}}else if(c){D={};for(var w=0;w<_;w++){var y=g[w];D[y]=Ro(r[y]),NT(r,n,y)}}var x=new ih(r,!1,!1,h?Tt(d,function(P){return P.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),c&&T&&x.whenWithKeys(0,T,g),D&&x.whenWithKeys(0,D,g),x.whenWithKeys(l??500,s?C:n,g).delay(f||0),e.addAnimator(x,t),o.push(x)}}var Ee=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=lt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=lt(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new it(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(it.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t}(Os);Ee.prototype.type="group";/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/var No={},Ay={};function GT(e){delete Ay[e]}function HT(e){if(!e)return!1;if(typeof e=="string")return rs(e,1)<jl;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=rs(t[i].color,1);return r/=n,r<jl}return!1}var VT=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new fT,o=n.renderer||"canvas";No[o]||(o=gt(No)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new No[o](r,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!q.node&&!q.worker&&!u?new PT(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?q.touchEventsSupported:!!f,c=44,v;h&&(v=K(n.pointerSize,c)),this.handler=new fy(a,s,l,s.root,v),this.animation=new TT({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=HT(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=Yn();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Yn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Ee&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,GT(this.id))},e}();function uc(e,t){var r=new VT(ry(),e,t);return Ay[r.id]=r,r}function $T(e,t){No[e]=t}var lc=1e-4,Ly=20;function WT(e){return e.replace(/^\s+|\s+$/g,"")}function Jl(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return W(e)?WT(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Lt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Ly),e=(+e).toFixed(t),r?e:+e}function sr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return UT(e)}function UT(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function YT(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function XT(e,t){var r=Rr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=$(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=$(i,function(v){return Math.floor(v)}),s=Rr(o,function(v,d){return v+d},0),u=$(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return $(o,function(v){return v/n})}function qT(e,t){var r=Math.max(sr(e),sr(t)),n=e+t;return r>Ly?n:Lt(n,r)}function Iy(e){var t=Math.PI*2;return(e%t+t)%t}function as(e){return e>-lc&&e<lc}var ZT=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function dr(e){if(e instanceof Date)return e;if(W(e)){var t=ZT.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function jT(e){return Math.pow(10,sh(e))}function sh(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Py(e,t){var r=sh(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Br(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf("x")<=0)?t:NaN}function KT(e){return!isNaN(Br(e))}function Ey(){return Math.round(Math.random()*9)}function Ry(e,t){return t===0?e:Ry(t,e%t)}function fc(e,t){return e==null?t:t==null?e:e*t/Ry(e,t)}function tt(e){throw new Error(e)}function hc(e,t,r){return(t-e)*r+e}var Oy="series\0",QT="\0_ec_\0";function Mt(e){return e instanceof Array?e:e==null?[]:[e]}function tf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var vc=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ba(e){return X(e)&&!z(e)&&!(e instanceof Date)?e.value:e}function JT(e){return X(e)&&!(e instanceof Array)}function tC(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Z();M(t,function(u,l){if(!X(u)){t[l]=null;return}});var s=eC(e,o,r);return(n||i)&&rC(s,e,o,t),n&&nC(s,t),n||i?iC(s,t,i):a&&aC(s,t),oC(s),s}function eC(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||pa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function rC(e,t,r,n){M(n,function(i,a){if(!(!i||i.id==null)){var o=Ji(i.id),s=r.get(o);if(s!=null){var u=e[s];vr(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function nC(e,t){M(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!pa(r)&&!pa(a)&&ky("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function iC(e,t,r){M(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||pa(i.existing)||i.existing&&n.id!=null&&!ky("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function aC(e,t){M(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function oC(e){var t=Z();M(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),M(e,function(r){var n=r.newOption;vr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),M(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(X(a)){if(o.name=a.name!=null?Ji(a.name):i?i.name:Oy+n,i)o.id=Ji(i.id);else if(a.id!=null)o.id=Ji(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function ky(e,t,r){var n=Ye(t[e],null),i=Ye(r[e],null);return n!=null&&i!=null&&n===i}function Ji(e){return Ye(e,"")}function Ye(e,t){return e==null?t:W(e)?e:vt(e)||Nl(e)?e+"":t}function By(e){var t=e.name;return!!(t&&t.indexOf(Oy))}function pa(e){return e&&e.id!=null&&Ji(e.id).indexOf(QT)===0}function sC(e,t,r){M(e,function(n){var i=n.newOption;X(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=uC(t,i,n.existing,r))})}function uC(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Na(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?$(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?$(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function mt(){var e="__ec_inner_"+lC++;return function(t){return t[e]||(t[e]={})}}var lC=Ey();function Iu(e,t,r){var n=uh(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=Fa(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function uh(e,t){var r;if(W(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Z(),a={},o=!1;return M(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&<(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ie={useDefault:!0,enableAll:!1,enableNone:!1};function Fa(e,t,r,n){n=n||Ie;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=e.getComponent(t))?[u]:[],s}return i==="none"||i===!1?(vr(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(vr(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function Ny(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function fC(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function hC(e){return e==="auto"?q.domSupported?"html":"richText":e||"html"}function vC(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(vt(n)){var o=hc(r||0,n,i);return Lt(o,a?Math.max(sr(r||0),sr(n)):t)}else{if(W(n))return i<1?r:n;for(var s=[],u=r,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=hc(v,d,i);s[h]=Lt(o,a?Math.max(sr(v),sr(d)):t)}}return s}}var cC=".",Yr="___EC__COMPONENT__CONTAINER___",Fy="___EC__EXTENDED_CLASS___";function We(e){var t={main:"",sub:""};if(e){var r=e.split(cC);t.main=r[0]||"",t.sub=r[1]||""}return t}function dC(e){vr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function pC(e){return!!(e&&e[Fy])}function lh(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return gC(n)?i=function(a){H(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},Cb(i,this)),B(i.prototype,r),i[Fy]=!0,i.extend=this.extend,i.superCall=_C,i.superApply=wC,i.superClass=n,i}}function gC(e){return J(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function zy(e,t){e.extend=t.extend}var yC=Math.round(Math.random()*10);function mC(e){var t=["__\0is_clz",yC++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function _C(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function wC(e,t,r){return this.superClass.prototype[t].apply(e,r)}function ks(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){dC(i),n.prototype.type=i;var a=We(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Yr){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Yr]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=We(n),a=[],o=t[i.main];return o&&o[Yr]?M(o,function(s,u){u!==Yr&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=We(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return M(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=We(n),a=t[i.main];return a&&a[Yr]};function r(n){var i=t[n.main];return(!i||!i[Yr])&&(i=t[n.main]={},i[Yr]=!0),i}}function ga(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(i&<(i,u)>=0||a&<(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var SC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],xC=ga(SC),bC=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return xC(this,t,r)},e}(),ef=new Oa(50);function TC(e){if(typeof e=="string"){var t=ef.get(e);return t&&t.image}else return e}function Gy(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ef.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Bs(t)&&a.pending.push(o)):(t=li.loadImage(e,cc,cc),t.__zrImageSrc=e,ef.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function cc(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Bs(e){return e&&e.width&&e.height}var Pu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function CC(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
||
`);a=Hy(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Vy(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
|
||
`),e.isTruncated=s}function Hy(e,t,r,n){n=n||{};var i=B({},n);i.font=t,r=K(r,"..."),i.maxIterations=K(n.maxIterations,2);var a=i.minChar=K(n.minChar,0);i.cnCharWidth=ae("国",t);var o=i.ascCharWidth=ae("a",t);i.placeholder=K(n.placeholder,"");for(var s=e=Math.max(0,e-1),u=0;u<a&&s>=o;u++)s-=o;var l=ae(r,t);return l>s&&(r="",l=0),s=e-l,i.ellipsis=r,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function Vy(e,t,r){var n=r.containerWidth,i=r.font,a=r.contentWidth;if(!n){e.textLine="",e.isTruncated=!1;return}var o=ae(t,i);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?MC(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=ae(t,i)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function MC(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function DC(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=oh(i),s=K(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=!1,h=t.width,c;h!=null&&(r==="break"||r==="breakAll")?c=e?$y(e,t.font,h,r==="breakAll",0).lines:[]:c=e?e.split(`
|
||
`):[];var v=c.length*s,d=K(t.height,v);if(v>d&&l){var g=Math.floor(d/s);f=f||c.length>g,c=c.slice(0,g)}if(e&&a&&h!=null)for(var p=Hy(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<c.length;m++)Vy(y,c[m],p),c[m]=y.textLine,f=f||y.isTruncated;for(var _=d,w=0,m=0;m<c.length;m++)w=Math.max(ae(c[m],i),w);h==null&&(h=w);var x=w;return n&&(_+=n[0]+n[2],x+=n[1]+n[3],h+=n[1]+n[3]),u&&(x=h),{lines:c,height:d,outerWidth:x,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:v,width:h,isTruncated:f}}var AC=function(){function e(){}return e}(),dc=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),LC=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function IC(e,t){var r=new LC;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Pu.lastIndex=0,u;(u=Pu.exec(e))!=null;){var l=u.index;l>s&&Eu(r,e.substring(s,l),t,o),Eu(r,u[2],t,o,u[1]),s=Pu.lastIndex}s<e.length&&Eu(r,e.substring(s,e.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",g=t.lineOverflow==="truncate",p={};function y(F,G,V){F.width=G,F.lineHeight=V,h+=V,c=Math.max(c,G)}t:for(var m=0;m<r.lines.length;m++){for(var _=r.lines[m],w=0,x=0,S=0;S<_.tokens.length;S++){var b=_.tokens[S],T=b.styleName&&t.rich[b.styleName]||{},C=b.textPadding=T.padding,D=C?C[1]+C[3]:0,A=b.font=T.font||t.font;b.contentHeight=oh(A);var P=K(T.height,b.contentHeight);if(b.innerHeight=P,C&&(P+=C[0]+C[2]),b.height=P,b.lineHeight=qi(T.lineHeight,t.lineHeight,P),b.align=T&&T.align||t.align,b.verticalAlign=T&&T.verticalAlign||"middle",g&&i!=null&&h+b.lineHeight>i){var L=r.lines.length;S>0?(_.tokens=_.tokens.slice(0,S),y(_,x,w),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m),r.isTruncated=r.isTruncated||r.lines.length<L;break t}var I=T.width,E=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,f.push(b),b.contentWidth=ae(b.text,A);else{if(E){var O=T.backgroundColor,N=O&&O.image;N&&(N=TC(N),Bs(N)&&(b.width=Math.max(b.width,N.width*P/N.height)))}var R=d&&n!=null?n-x:null;R!=null&&R<b.width?!E||R<D?(b.text="",b.width=b.contentWidth=0):(CC(p,b.text,R-D,A,t.ellipsis,{minChar:t.truncateMinChar}),b.text=p.text,r.isTruncated=r.isTruncated||p.isTruncated,b.width=b.contentWidth=ae(b.text,A)):b.contentWidth=ae(b.text,A)}b.width+=D,x+=b.width,T&&(w=Math.max(w,b.lineHeight))}y(_,x,w)}r.outerWidth=r.width=K(n,c),r.outerHeight=r.height=K(i,h),r.contentHeight=h,r.contentWidth=c,v&&(r.outerWidth+=v[1]+v[3],r.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var b=f[m],k=b.percentWidth;b.width=parseInt(k,10)/100*r.width}return r}function Eu(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=kr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
|
||
`),l=!0),n.accumWidth=d}else{var g=$y(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(`
|
||
`);for(var p=0;p<f.length;p++){var y=f[p],m=new AC;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[p]:ae(y,u),!p&&!l){var _=(s[s.length-1]||(s[0]=new dc)).tokens,w=_.length;w===1&&_[0].isLineHolder?_[0]=m:(y||!w||a)&&_.push(m)}else s.push(new dc([m]))}}function PC(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var EC=Rr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function RC(e){return PC(e)?!!EC[e]:!0}function $y(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<e.length;h++){var c=e.charAt(h);if(c===`
|
||
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=ae(c,t),d=n?!1:!RC(c);if(a.length?f+v>r:i+f+v>r){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=e,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var rf="__zr_style_"+Math.round(Math.random()*10),gn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ns={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};gn[rf]=!0;var pc=["z","z2","invisible"],OC=["invisible"],vi=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=gt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&kC(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new it(0,0,0,0)),n?it.applyTransform(r,i,n):r.copy(i),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new it(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:B(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=zi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&zi)},t.prototype.styleUpdated=function(){this.__dirty&=~zi},t.prototype.createStyle=function(r){return Es(gn,r)},t.prototype.useStyle=function(r){r[rf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[rf]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,pc)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.style?o?a?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=gt(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=gt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var g=this.__inHover?OC:pc,c=0;c<g.length;c++){var v=g[c];n&&n[v]!=null?this[v]=n[v]:u&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return B(r,n),r},t.prototype.getAnimationStyleProps=function(){return Ns},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=ie|zi}(),t}(Os),Ru=new it(0,0,0,0),Ou=new it(0,0,0,0);function kC(e,t,r){return Ru.copy(e.getBoundingRect()),e.transform&&Ru.applyTransform(e.transform),Ou.width=t,Ou.height=r,!Ru.intersect(Ou)}var Qt=Math.min,Jt=Math.max,ku=Math.sin,Bu=Math.cos,Xr=Math.PI*2,Qa=hi(),Ja=hi(),to=hi();function Wy(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],u=1;u<e.length;u++)n=e[u],i=Qt(i,n[0]),a=Jt(a,n[0]),o=Qt(o,n[1]),s=Jt(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function gc(e,t,r,n,i,a){i[0]=Qt(e,r),i[1]=Qt(t,n),a[0]=Jt(e,r),a[1]=Jt(t,n)}var yc=[],mc=[];function BC(e,t,r,n,i,a,o,s,u,l){var f=gy,h=Ot,c=f(e,r,i,o,yc);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(e,r,i,o,yc[v]);u[0]=Qt(d,u[0]),l[0]=Jt(d,l[0])}c=f(t,n,a,s,mc);for(var v=0;v<c;v++){var g=h(t,n,a,s,mc[v]);u[1]=Qt(g,u[1]),l[1]=Jt(g,l[1])}u[0]=Qt(e,u[0]),l[0]=Jt(e,l[0]),u[0]=Qt(o,u[0]),l[0]=Jt(o,l[0]),u[1]=Qt(t,u[1]),l[1]=Jt(t,l[1]),u[1]=Qt(s,u[1]),l[1]=Jt(s,l[1])}function NC(e,t,r,n,i,a,o,s){var u=my,l=zt,f=Jt(Qt(u(e,r,i),1),0),h=Jt(Qt(u(t,n,a),1),0),c=l(e,r,i,f),v=l(t,n,a,h);o[0]=Qt(e,i,c),o[1]=Qt(t,a,v),s[0]=Jt(e,i,c),s[1]=Jt(t,a,v)}function FC(e,t,r,n,i,a,o,s,u){var l=Wn,f=Un,h=Math.abs(i-a);if(h%Xr<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(Qa[0]=Bu(i)*r+e,Qa[1]=ku(i)*n+t,Ja[0]=Bu(a)*r+e,Ja[1]=ku(a)*n+t,l(s,Qa,Ja),f(u,Qa,Ja),i=i%Xr,i<0&&(i=i+Xr),a=a%Xr,a<0&&(a=a+Xr),i>a&&!o?a+=Xr:i<a&&o&&(i+=Xr),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(to[0]=Bu(v)*r+e,to[1]=ku(v)*n+t,l(s,to,s),f(u,to,u))}var at={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qr=[],Zr=[],Be=[],_r=[],Ne=[],Fe=[],Nu=Math.min,Fu=Math.max,jr=Math.cos,Kr=Math.sin,nr=Math.abs,nf=Math.PI,Cr=nf*2,zu=typeof Float32Array<"u",Ti=[];function Gu(e){var t=Math.round(e/nf*1e8)/1e8;return t%2*nf}function Uy(e,t){var r=Gu(e[0]);r<0&&(r+=Cr);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Cr?i=r+Cr:t&&r-i>=Cr?i=r-Cr:!t&&r>i?i=r+(Cr-Gu(r-i)):t&&r<i&&(i=r-(Cr-Gu(i-r))),e[0]=r,e[1]=i}var Nr=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=nr(n/ns/t)||0,this._uy=nr(n/ns/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(at.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=nr(t-this._xi),i=nr(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(at.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(at.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(at.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Ti[0]=i,Ti[1]=a,Uy(Ti,o),i=Ti[0],a=Ti[1];var s=a-i;return this.addData(at.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=jr(a)*n+t,this._yi=Kr(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(at.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(at.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&zu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();zu&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,zu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Be[0]=Be[1]=Ne[0]=Ne[1]=Number.MAX_VALUE,_r[0]=_r[1]=Fe[0]=Fe[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],n=t[o+1],i=r,a=n),s){case at.M:r=i=t[o++],n=a=t[o++],Ne[0]=i,Ne[1]=a,Fe[0]=i,Fe[1]=a;break;case at.L:gc(r,n,t[o],t[o+1],Ne,Fe),r=t[o++],n=t[o++];break;case at.C:BC(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ne,Fe),r=t[o++],n=t[o++];break;case at.Q:NC(r,n,t[o++],t[o++],t[o],t[o+1],Ne,Fe),r=t[o++],n=t[o++];break;case at.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];u&&(i=jr(v)*h+l,a=Kr(v)*c+f),FC(l,f,h,c,v,d,g,Ne,Fe),r=jr(d)*h+l,n=Kr(d)*c+f;break;case at.R:i=r=t[o++],a=n=t[o++];var p=t[o++],y=t[o++];gc(i,a,i+p,a+y,Ne,Fe);break;case at.Z:r=i,n=a;break}Wn(Be,Be,Ne),Un(_r,_r,Fe)}return o===0&&(Be[0]=Be[1]=_r[0]=_r[1]=0),new it(Be[0],Be[1],_r[0]-Be[0],_r[1]-Be[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var g=-1;switch(v){case at.M:a=s=t[c++],o=u=t[c++];break;case at.L:{var p=t[c++],y=t[c++],m=p-a,_=y-o;(nr(m)>n||nr(_)>i||c===r-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case at.C:{var w=t[c++],x=t[c++],p=t[c++],y=t[c++],S=t[c++],b=t[c++];g=hT(a,o,w,x,p,y,S,b,10),a=S,o=b;break}case at.Q:{var w=t[c++],x=t[c++],p=t[c++],y=t[c++];g=cT(a,o,w,x,p,y,10),a=p,o=y;break}case at.A:var T=t[c++],C=t[c++],D=t[c++],A=t[c++],P=t[c++],L=t[c++],I=L+P;c+=1,d&&(s=jr(P)*D+T,u=Kr(P)*A+C),g=Fu(D,A)*Nu(Cr,Math.abs(L)),a=jr(I)*D+T,o=Kr(I)*A+C;break;case at.R:{s=a=t[c++],u=o=t[c++];var E=t[c++],O=t[c++];g=E*2+O*2;break}case at.Z:{var m=s-a,_=u-o;g=Math.sqrt(m*m+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,g,p=0,y=0,m,_=0,w,x;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=r*g,!m)))t:for(var S=0;S<o;){var b=n[S++],T=S===1;switch(T&&(l=n[S],f=n[S+1],s=l,u=f),b!==at.L&&_>0&&(t.lineTo(w,x),_=0),b){case at.M:s=l=n[S++],u=f=n[S++],t.moveTo(l,f);break;case at.L:{h=n[S++],c=n[S++];var C=nr(h-l),D=nr(c-f);if(C>i||D>a){if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;t.lineTo(l*(1-P)+h*P,f*(1-P)+c*P);break t}p+=A}t.lineTo(h,c),l=h,f=c,_=0}else{var L=C*C+D*D;L>_&&(w=h,x=c,_=L)}break}case at.C:{var I=n[S++],E=n[S++],O=n[S++],N=n[S++],R=n[S++],k=n[S++];if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;Or(l,I,O,R,P,qr),Or(f,E,N,k,P,Zr),t.bezierCurveTo(qr[1],Zr[1],qr[2],Zr[2],qr[3],Zr[3]);break t}p+=A}t.bezierCurveTo(I,E,O,N,R,k),l=R,f=k;break}case at.Q:{var I=n[S++],E=n[S++],O=n[S++],N=n[S++];if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;es(l,I,O,P,qr),es(f,E,N,P,Zr),t.quadraticCurveTo(qr[1],Zr[1],qr[2],Zr[2]);break t}p+=A}t.quadraticCurveTo(I,E,O,N),l=O,f=N;break}case at.A:var F=n[S++],G=n[S++],V=n[S++],j=n[S++],ct=n[S++],St=n[S++],It=n[S++],kt=!n[S++],Pt=V>j?V:j,wt=nr(V-j)>.001,ht=ct+St,Y=!1;if(v){var A=d[y++];p+A>m&&(ht=ct+St*(m-p)/A,Y=!0),p+=A}if(wt&&t.ellipse?t.ellipse(F,G,V,j,It,ct,ht,kt):t.arc(F,G,Pt,ct,ht,kt),Y)break t;T&&(s=jr(ct)*V+F,u=Kr(ct)*j+G),l=jr(ht)*V+F,f=Kr(ht)*j+G;break;case at.R:s=l=n[S],u=f=n[S+1],h=n[S++],c=n[S++];var Q=n[S++],ne=n[S++];if(v){var A=d[y++];if(p+A>m){var Dt=m-p;t.moveTo(h,c),t.lineTo(h+Nu(Dt,Q),c),Dt-=Q,Dt>0&&t.lineTo(h+Q,c+Nu(Dt,ne)),Dt-=ne,Dt>0&&t.lineTo(h+Fu(Q-Dt,0),c+ne),Dt-=Q,Dt>0&&t.lineTo(h,c+Fu(ne-Dt,0));break t}p+=A}t.rect(h,c,Q,ne);break;case at.Z:if(v){var A=d[y++];if(p+A>m){var P=(m-p)/A;t.lineTo(l*(1-P)+s*P,f*(1-P)+u*P);break t}p+=A}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=at,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function In(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-n)/(e-r),l=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function zC(e,t,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>i+h&&l>o+h||l<e-h&&l<r-h&&l<i-h&&l<o-h)return!1;var c=yy(e,t,r,n,i,a,o,s,l,f,null);return c<=h/2}function GC(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>a+l||u<t-l&&u<n-l&&u<a-l||s>e+l&&s>r+l&&s>i+l||s<e-l&&s<r-l&&s<i-l)return!1;var f=_y(e,t,r,n,i,a,s,u,null);return f<=l/2}var _c=Math.PI*2;function ur(e){return e%=_c,e<0&&(e+=_c),e}var Ci=Math.PI*2;function HC(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(n-i)%Ci<1e-4)return!0;if(a){var h=n;n=ur(i),i=ur(h)}else n=ur(n),i=ur(i);n>i&&(i+=Ci);var c=Math.atan2(u,s);return c<0&&(c+=Ci),c>=n&&c<=i||c+Ci>=n&&c+Ci<=i}function Qr(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(r-e)+e;return u===i?1/0:u>i?s:0}var wr=Nr.CMD,Jr=Math.PI*2,VC=1e-4;function $C(e,t){return Math.abs(e-t)<VC}var Wt=[-1,-1,-1],de=[-1,-1];function WC(){var e=de[0];de[0]=de[1],de[1]=e}function UC(e,t,r,n,i,a,o,s,u,l){if(l>t&&l>n&&l>a&&l>s||l<t&&l<n&&l<a&&l<s)return 0;var f=py(t,n,a,s,l,Wt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Wt[g],y=p===0||p===1?.5:1,m=Ot(e,r,i,o,p);m<u||(c<0&&(c=gy(t,n,a,s,de),de[1]<de[0]&&c>1&&WC(),v=Ot(t,n,a,s,de[0]),c>1&&(d=Ot(t,n,a,s,de[1]))),c===2?p<de[0]?h+=v<t?y:-y:p<de[1]?h+=d<v?y:-y:h+=s<d?y:-y:p<de[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function YC(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=vT(t,n,a,s,Wt);if(u===0)return 0;var l=my(t,n,a);if(l>=0&&l<=1){for(var f=0,h=zt(t,n,a,l),c=0;c<u;c++){var v=Wt[c]===0||Wt[c]===1?.5:1,d=zt(e,r,i,Wt[c]);d<o||(Wt[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Wt[0]===0||Wt[0]===1?.5:1,d=zt(e,r,i,Wt[0]);return d<o?0:a<t?v:-v}}function XC(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Wt[0]=-u,Wt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=Jr-1e-4){n=0,i=Jr;var f=a?1:-1;return o>=Wt[0]+e&&o<=Wt[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Jr,i+=Jr);for(var c=0,v=0;v<2;v++){var d=Wt[v];if(d+e>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Jr+g),(g>=n&&g<=i||g+Jr>=n&&g+Jr<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Yy(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===wr.M&&d>1&&(r||(s+=Qr(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),g){case wr.M:f=a[d++],h=a[d++],u=f,l=h;break;case wr.L:if(r){if(In(u,l,a[d],a[d+1],t,n,i))return!0}else s+=Qr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case wr.C:if(r){if(zC(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=UC(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case wr.Q:if(r){if(GC(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=YC(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case wr.A:var y=a[d++],m=a[d++],_=a[d++],w=a[d++],x=a[d++],S=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(x)*_+y,v=Math.sin(x)*w+m,p?(f=c,h=v):s+=Qr(u,l,c,v,n,i);var T=(n-y)*w/_+y;if(r){if(HC(y,m,w,x,x+S,b,t,T,i))return!0}else s+=XC(y,m,w,x,x+S,b,T,i);u=Math.cos(x+S)*_+y,l=Math.sin(x+S)*w+m;break;case wr.R:f=u=a[d++],h=l=a[d++];var C=a[d++],D=a[d++];if(c=f+C,v=h+D,r){if(In(f,h,c,h,t,n,i)||In(c,h,c,v,t,n,i)||In(c,v,f,v,t,n,i)||In(f,v,f,h,t,n,i))return!0}else s+=Qr(c,h,c,v,n,i),s+=Qr(f,v,f,h,n,i);break;case wr.Z:if(r){if(In(u,l,f,h,t,n,i))return!0}else s+=Qr(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!$C(l,h)&&(s+=Qr(u,l,f,h,n,i)||0),s!==0}function qC(e,t,r){return Yy(e,0,!1,t,r)}function ZC(e,t,r,n){return Yy(e,t,!0,r,n)}var Xy=et({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},gn),jC={style:et({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ns.style)},Hu=da.concat(["invisible","culling","z","z2","zlevel","parent"]),rt=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Hu.length;++s)i[Hu[s]]=this[Hu[s]];i.__dirty|=ie}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=gt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?B(this.style,s):this.useStyle(s):o==="shape"?B(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(W(r)){var n=rs(r,0);return n>.5?Kl:n>.2?ET:Ql}else if(r)return Ql}return Kl},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=rs(r,0)<jl;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Vn},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Nr(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Vn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),ZC(s,u/l,r,n)))return!0}if(this.hasFill())return qC(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:B(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vn)},t.prototype.createStyle=function(r){return Es(Xy,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=B({},i.shape),B(l,n.shape)):(l=B({},a?this.shape:i.shape),B(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=B({},this.shape);for(var f={},h=gt(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return jC},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){H(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return nt(r.style)},o.prototype.getDefaultShape=function(){return nt(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=ie|zi|Vn}(),t}(vi),KC=et({strokeFirst:!0,font:_n,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Xy),os=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Es(KC,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=ah(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(vi);os.prototype.type="tspan";var QC=et({x:0,y:0},gn),JC={style:et({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ns.style)};function tM(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var bn=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Es(QC,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=tM(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return JC},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new it(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(vi);bn.prototype.type="image";function eM(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Xn=Math.round;function qy(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Xn(n*2)===Xn(i*2)&&(e.x1=e.x2=cn(n,s,!0)),Xn(a*2)===Xn(o*2)&&(e.y1=e.y2=cn(a,s,!0))),e}}function Zy(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=cn(n,s,!0),e.y=cn(i,s,!0),e.width=Math.max(cn(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(cn(i+o,s,!1)-e.y,o===0?0:1)),e}}function cn(e,t,r){if(!t)return e;var n=Xn(e*2);return(n+Xn(t))%2===0?n/2:(n+(r?1:-1))/2}var rM=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),nM={},Et=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new rM},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Zy(nM,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?eM(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(rt);Et.prototype.type="rect";var wc={fill:"#000"},Sc=2,iM={style:et({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},Ns.style)},oe=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=wc,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,lM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new it(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||wc},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return B(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=gt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},B(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return iM},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||_n,i=r.padding,a=Ac(r),o=DC(a,r),s=Vu(r),u=!!r.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=r.x||0,p=r.y||0,y=r.align||d.align||"left",m=r.verticalAlign||d.verticalAlign||"top",_=g,w=$n(p,o.contentHeight,m);if(s||i){var x=Hi(g,f,y),S=$n(p,l,m);s&&this._renderBackground(r,r,x,S,f,l)}w+=v/2,i&&(_=Dc(g,y,i),m==="top"?w+=i[0]:m==="bottom"&&(w-=i[2]));for(var b=0,T=!1,C=Mc("fill"in r?r.fill:(T=!0,d.fill)),D=Cc("stroke"in r?r.stroke:!u&&(!d.autoStroke||T)?(b=Sc,d.stroke):null),A=r.textShadowBlur>0,P=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I<c.length;I++){var E=this._getOrCreateChild(os),O=E.createStyle();E.useStyle(O),O.text=c[I],O.x=_,O.y=w,O.textAlign=y,O.textBaseline="middle",O.opacity=r.opacity,O.strokeFirst=!0,A&&(O.shadowBlur=r.textShadowBlur||0,O.shadowColor=r.textShadowColor||"transparent",O.shadowOffsetX=r.textShadowOffsetX||0,O.shadowOffsetY=r.textShadowOffsetY||0),O.stroke=D,O.fill=C,D&&(O.lineWidth=r.lineWidth||b,O.lineDash=r.lineDash,O.lineDashOffset=r.lineDashOffset||0),O.font=n,bc(O,r),w+=v,P&&E.setBoundingRect(new it(Hi(O.x,h,O.textAlign),$n(O.y,L,O.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var r=this.style,n=Ac(r),i=IC(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,u=r.padding,l=r.x||0,f=r.y||0,h=this._defaultStyle,c=r.align||h.align,v=r.verticalAlign||h.verticalAlign;this.isTruncated=!!i.isTruncated;var d=Hi(l,o,c),g=$n(f,s,v),p=d,y=g;u&&(p+=u[3],y+=u[0]);var m=p+a;Vu(r)&&this._renderBackground(r,r,d,g,o,s);for(var _=!!r.backgroundColor,w=0;w<i.lines.length;w++){for(var x=i.lines[w],S=x.tokens,b=S.length,T=x.lineHeight,C=x.width,D=0,A=p,P=m,L=b-1,I=void 0;D<b&&(I=S[D],!I.align||I.align==="left");)this._placeToken(I,r,T,y,A,"left",_),C-=I.width,A+=I.width,D++;for(;L>=0&&(I=S[L],I.align==="right");)this._placeToken(I,r,T,y,P,"right",_),C-=I.width,P-=I.width,L--;for(A+=(a-(A-p)-(m-P)-C)/2;D<=L;)I=S[D],this._placeToken(I,r,T,y,A+I.width/2,"center",_),A+=I.width,D++;y+=T}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&Vu(l);c&&this._renderBackground(l,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=Dc(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(os),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,w=Mc("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),x=Cc("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=Sc,y.stroke):null),S=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,S&&(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=s,p.textBaseline="middle",p.font=r.font||_n,p.opacity=qi(l.opacity,n.opacity,1),bc(p,l),x&&(p.lineWidth=qi(l.lineWidth,n.lineWidth,_),p.lineDash=K(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=x),w&&(p.fill=w);var b=r.contentWidth,T=r.contentHeight;g.setBoundingRect(new it(Hi(p.x,b,p.textAlign),$n(p.y,T,p.textBaseline),b,T))},t.prototype._renderBackground=function(r,n,i,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,g,p;if(c||r.lineHeight||l&&f){g=this._getOrCreateChild(Et),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=u||null,m.fillOpacity=K(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(bn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=g.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=K(r.strokeOpacity,1),m.lineDash=r.borderDash,m.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var w=(g||p).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=qi(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return uM(r)&&(n=[r.fontStyle,r.fontWeight,sM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&$e(n)||r.textFont||r.font},t}(vi),aM={left:!0,right:1,center:1},oM={top:1,bottom:1,middle:1},xc=["fontStyle","fontWeight","fontSize","fontFamily"];function sM(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?jf+"px":e+"px"}function bc(e,t){for(var r=0;r<xc.length;r++){var n=xc[r],i=t[n];i!=null&&(e[n]=i)}}function uM(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function lM(e){return Tc(e),M(e.rich,Tc),e}function Tc(e){if(e){e.font=oe.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||aM[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||oM[r]?r:"top";var n=e.padding;n&&(e.padding=ny(e.padding))}}function Cc(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Mc(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Dc(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Ac(e){var t=e.text;return t!=null&&(t+=""),t}function Vu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var ut=mt(),fM=function(e,t,r,n){if(n){var i=ut(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ut(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Lc=1,Ic={},jy=mt(),fh=mt(),Ky=0,hh=1,vh=2,qe=["emphasis","blur","select"],ss=["normal","emphasis","blur","select"],hM=10,vM=9,yn="highlight",Fo="downplay",ta="select",zo="unselect",ea="toggleSelect";function Pn(e){return e!=null&&e!=="none"}function Fs(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Qy(e){Fs(e,"emphasis",vh)}function Jy(e){e.hoverState===vh&&Fs(e,"normal",Ky)}function ch(e){Fs(e,"blur",hh)}function tm(e){e.hoverState===hh&&Fs(e,"normal",Ky)}function cM(e){e.selected=!0}function dM(e){e.selected=!1}function Pc(e,t,r){t(e,r)}function gr(e,t,r){Pc(e,t,r),e.isGroup&&e.traverse(function(n){Pc(n,t,r)})}function pM(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=i[s];a[s]=u??n[s]}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function gM(e,t,r,n){var i=r&<(r,"select")>=0,a=!1;if(e instanceof rt){var o=jy(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Pn(s)||Pn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=B({},n),l=B({},l),l.fill=s):!Pn(l.fill)&&Pn(s)?(a=!0,n=B({},n),l=B({},l),l.fill=Kv(s)):!Pn(l.stroke)&&Pn(u)&&(a||(n=B({},n),l=B({},l)),l.stroke=Kv(u)),n.style=l}}if(n&&n.z2==null){a||(n=B({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??hM)}return n}function yM(e,t,r){if(r&&r.z2==null){r=B({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??vM)}return r}function mM(e,t,r){var n=lt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:pM(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=B({},r),o=B({opacity:n?i:a.opacity*.1},o),r.style=o),r}function $u(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return gM(this,e,t,r);if(e==="blur")return mM(this,e,r);if(e==="select")return yM(this,e,r)}return r}function _M(e){e.stateProxy=$u;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=$u),r&&(r.stateProxy=$u)}function Ec(e,t){!im(e,t)&&!e.__highByOuter&&gr(e,Qy)}function Rc(e,t){!im(e,t)&&!e.__highByOuter&&gr(e,Jy)}function af(e,t){e.__highByOuter|=1<<(t||0),gr(e,Qy)}function of(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&gr(e,Jy)}function wM(e){gr(e,ch)}function em(e){gr(e,tm)}function rm(e){gr(e,cM)}function nm(e){gr(e,dM)}function im(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function am(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=fh(a),s=i==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){tm(l)}),s&&r.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function sf(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&em(c)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||ch(p)}),Xt(t))a(l.getData(),t);else if(X(t))for(var d=gt(t),g=0;g<d.length;g++)a(l.getData(d[g]),t[d[g]]);u.push(l),fh(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,i)}})}}function uf(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){fh(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){ch(a)})}}}function SM(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Na(i,t);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=ut(o);sf(n,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&sf(n,f,h,r)}}}function dh(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(ut(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function xM(e,t,r){var n=ut(e),i=dh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&uf(n.componentMainType,n.componentIndex,r),M(a,function(s){return Ec(s,t)})):(sf(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&uf(n.componentMainType,n.componentIndex,r),Ec(e,t))}function bM(e,t,r){am(r);var n=ut(e),i=dh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?M(i,function(a){return Rc(a,t)}):Rc(e,t)}function TM(e,t,r){if(ff(t)){var n=t.dataType,i=e.getData(n),a=Na(i,t);z(a)||(a=[a]),e[t.type===ea?"toggleSelect":t.type===ta?"select":"unselect"](a,n)}}function Oc(e){var t=e.getAllData();M(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?rm(a):nm(a)})})}function CM(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();M(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function MM(e,t,r){um(e,!0),gr(e,_M),AM(e,t,r)}function DM(e){um(e,!1)}function om(e,t,r,n){n?DM(e):MM(e,t,r)}function AM(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var kc=["emphasis","blur","select"],LM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function sm(e,t,r,n){r=r||"itemStyle";for(var i=0;i<kc.length;i++){var a=kc[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[LM[r]]()}}function um(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function lf(e){return!!(e&&e.__highDownDispatcher)}function IM(e){var t=Ic[e];return t==null&&Lc<=32&&(t=Ic[e]=Lc++),t}function ff(e){var t=e.type;return t===ta||t===zo||t===ea}function Bc(e){var t=e.type;return t===yn||t===Fo}function PM(e){var t=jy(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var En=Nr.CMD,EM=[[],[],[]],Nc=Math.sqrt,RM=Math.atan2;function lm(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,u,l,f=En.M,h=En.C,c=En.L,v=En.R,d=En.A,g=En.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case g:a=2;break;case d:var p=t[4],y=t[5],m=Nc(t[0]*t[0]+t[1]*t[1]),_=Nc(t[2]*t[2]+t[3]*t[3]),w=RM(-t[1]/_,t[0]/m);r[o]*=m,r[o++]+=p,r[o]*=_,r[o++]+=y,r[o++]*=m,r[o++]*=_,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],ye(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],ye(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var x=EM[u];x[0]=r[o++],x[1]=r[o++],ye(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Wu=Math.sqrt,eo=Math.sin,ro=Math.cos,Mi=Math.PI;function Fc(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function hf(e,t){return(e[0]*t[0]+e[1]*t[1])/(Fc(e)*Fc(t))}function zc(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(hf(e,t))}function Gc(e,t,r,n,i,a,o,s,u,l,f){var h=u*(Mi/180),c=ro(h)*(e-r)/2+eo(h)*(t-n)/2,v=-1*eo(h)*(e-r)/2+ro(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Wu(d),s*=Wu(d));var g=(i===a?-1:1)*Wu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(e+r)/2+ro(h)*p-eo(h)*y,_=(t+n)/2+eo(h)*p+ro(h)*y,w=zc([1,0],[(c-p)/o,(v-y)/s]),x=[(c-p)/o,(v-y)/s],S=[(-1*c-p)/o,(-1*v-y)/s],b=zc(x,S);if(hf(x,S)<=-1&&(b=Mi),hf(x,S)>=1&&(b=0),b<0){var T=Math.round(b/Mi*1e6)/1e6;b=Mi*2+T%2*Mi}f.addData(l,m,_,o,s,w,b,h,a)}var OM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BM(e){var t=new Nr;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Nr.CMD,u=e.match(OM);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(kM)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,w=void 0,x=void 0,S=void 0,b=void 0,T=r,C=n,D=void 0,A=void 0;switch(h){case"l":r+=v[p++],n+=v[p++],c=s.L,t.addData(c,r,n);break;case"L":r=v[p++],n=v[p++],c=s.L,t.addData(c,r,n);break;case"m":r+=v[p++],n+=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="l";break;case"M":r=v[p++],n=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="L";break;case"h":r+=v[p++],c=s.L,t.addData(c,r,n);break;case"H":r=v[p++],c=s.L,t.addData(c,r,n);break;case"v":n+=v[p++],c=s.L,t.addData(c,r,n);break;case"V":n=v[p++],c=s.L,t.addData(c,r,n);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":y=r,m=n,D=t.len(),A=t.data,o===s.C&&(y+=r-A[D-4],m+=n-A[D-3]),c=s.C,T=v[p++],C=v[p++],r=v[p++],n=v[p++],t.addData(c,y,m,T,C,r,n);break;case"s":y=r,m=n,D=t.len(),A=t.data,o===s.C&&(y+=r-A[D-4],m+=n-A[D-3]),c=s.C,T=r+v[p++],C=n+v[p++],r+=v[p++],n+=v[p++],t.addData(c,y,m,T,C,r,n);break;case"Q":T=v[p++],C=v[p++],r=v[p++],n=v[p++],c=s.Q,t.addData(c,T,C,r,n);break;case"q":T=v[p++]+r,C=v[p++]+n,r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,T,C,r,n);break;case"T":y=r,m=n,D=t.len(),A=t.data,o===s.Q&&(y+=r-A[D-4],m+=n-A[D-3]),r=v[p++],n=v[p++],c=s.Q,t.addData(c,y,m,r,n);break;case"t":y=r,m=n,D=t.len(),A=t.data,o===s.Q&&(y+=r-A[D-4],m+=n-A[D-3]),r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,y,m,r,n);break;case"A":_=v[p++],w=v[p++],x=v[p++],S=v[p++],b=v[p++],T=r,C=n,r=v[p++],n=v[p++],c=s.A,Gc(T,C,r,n,S,b,_,w,x,c,t);break;case"a":_=v[p++],w=v[p++],x=v[p++],S=v[p++],b=v[p++],T=r,C=n,r+=v[p++],n+=v[p++],c=s.A,Gc(T,C,r,n,S,b,_,w,x,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=i,n=a),o=c}return t.toStatic(),t}var fm=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(rt);function hm(e){return e.setData!=null}function vm(e,t){var r=BM(e),n=B({},t);return n.buildPath=function(i){if(hm(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){lm(r,i),this.dirtyShape()},n}function NM(e,t){return new fm(vm(e,t))}function FM(e,t){var r=vm(e,t),n=function(i){H(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(fm);return n}function zM(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new rt(t);return o.createPathProxy(),o.buildPath=function(s){if(hm(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function ph(e,t){t=t||{};var r=new rt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?lm(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var GM=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),zs=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new GM},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(rt);zs.prototype.type="circle";var HM=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),gh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HM},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},t}(rt);gh.prototype.type="ellipse";var cm=Math.PI,Uu=cm*2,tn=Math.sin,Rn=Math.cos,VM=Math.acos,Bt=Math.atan2,Hc=Math.abs,ra=Math.sqrt,Vi=Math.max,ze=Math.min,Ce=1e-4;function $M(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=h*u-f*l;if(!(c*c<Ce))return c=(f*(t-a)-h*(e-i))/c,[e+c*u,t+c*l]}function no(e,t,r,n,i,a,o){var s=e-r,u=t-n,l=(o?a:-a)/ra(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,g=n+h,p=(c+d)/2,y=(v+g)/2,m=d-c,_=g-v,w=m*m+_*_,x=i-a,S=c*g-d*v,b=(_<0?-1:1)*ra(Vi(0,x*x*w-S*S)),T=(S*_-m*b)/w,C=(-S*m-_*b)/w,D=(S*_+m*b)/w,A=(-S*m+_*b)/w,P=T-p,L=C-y,I=D-p,E=A-y;return P*P+L*L>I*I+E*E&&(T=D,C=A),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/x-1),y1:C*(i/x-1)}}function WM(e){var t;if(z(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function UM(e,t){var r,n=Vi(t.r,0),i=Vi(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Hc(l-u),d=v>Uu&&v%Uu;if(d>Ce&&(v=d),!(n>Ce))e.moveTo(f,h);else if(v>Uu-Ce)e.moveTo(f+n*Rn(u),h+n*tn(u)),e.arc(f,h,n,u,l,!c),i>Ce&&(e.moveTo(f+i*Rn(l),h+i*tn(l)),e.arc(f,h,i,l,u,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,w=void 0,x=void 0,S=void 0,b=void 0,T=void 0,C=void 0,D=void 0,A=void 0,P=void 0,L=void 0,I=void 0,E=n*Rn(u),O=n*tn(u),N=i*Rn(l),R=i*tn(l),k=v>Ce;if(k){var F=t.cornerRadius;F&&(r=WM(F),g=r[0],p=r[1],y=r[2],m=r[3]);var G=Hc(n-i)/2;if(_=ze(G,y),w=ze(G,m),x=ze(G,g),S=ze(G,p),C=b=Vi(_,w),D=T=Vi(x,S),(b>Ce||T>Ce)&&(A=n*Rn(l),P=n*tn(l),L=i*Rn(u),I=i*tn(u),v<cm)){var V=$M(E,O,L,I,A,P,N,R);if(V){var j=E-V[0],ct=O-V[1],St=A-V[0],It=P-V[1],kt=1/tn(VM((j*St+ct*It)/(ra(j*j+ct*ct)*ra(St*St+It*It)))/2),Pt=ra(V[0]*V[0]+V[1]*V[1]);C=ze(b,(n-Pt)/(kt+1)),D=ze(T,(i-Pt)/(kt-1))}}}if(!k)e.moveTo(f+E,h+O);else if(C>Ce){var wt=ze(y,C),ht=ze(m,C),Y=no(L,I,E,O,n,wt,c),Q=no(A,P,N,R,n,ht,c);e.moveTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),C<b&&wt===ht?e.arc(f+Y.cx,h+Y.cy,C,Bt(Y.y0,Y.x0),Bt(Q.y0,Q.x0),!c):(wt>0&&e.arc(f+Y.cx,h+Y.cy,wt,Bt(Y.y0,Y.x0),Bt(Y.y1,Y.x1),!c),e.arc(f,h,n,Bt(Y.cy+Y.y1,Y.cx+Y.x1),Bt(Q.cy+Q.y1,Q.cx+Q.x1),!c),ht>0&&e.arc(f+Q.cx,h+Q.cy,ht,Bt(Q.y1,Q.x1),Bt(Q.y0,Q.x0),!c))}else e.moveTo(f+E,h+O),e.arc(f,h,n,u,l,!c);if(!(i>Ce)||!k)e.lineTo(f+N,h+R);else if(D>Ce){var wt=ze(g,D),ht=ze(p,D),Y=no(N,R,A,P,i,-ht,c),Q=no(E,O,L,I,i,-wt,c);e.lineTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),D<T&&wt===ht?e.arc(f+Y.cx,h+Y.cy,D,Bt(Y.y0,Y.x0),Bt(Q.y0,Q.x0),!c):(ht>0&&e.arc(f+Y.cx,h+Y.cy,ht,Bt(Y.y0,Y.x0),Bt(Y.y1,Y.x1),!c),e.arc(f,h,i,Bt(Y.cy+Y.y1,Y.cx+Y.x1),Bt(Q.cy+Q.y1,Q.cx+Q.x1),c),wt>0&&e.arc(f+Q.cx,h+Q.cy,wt,Bt(Q.y1,Q.x1),Bt(Q.y0,Q.x0),!c))}else e.lineTo(f+N,h+R),e.arc(f,h,i,l,u,c)}e.closePath()}}}var YM=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Ze=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YM},t.prototype.buildPath=function(r,n){UM(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(rt);Ze.prototype.type="sector";var XM=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),yh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new XM},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(rt);yh.prototype.type="ring";function qM(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)Wn(f,f,e[c]),Un(h,h,e[c]);Wn(f,f,n[0]),Un(h,h,n[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){i.push(Ob(e[c]));continue}else u=e[c-1],l=e[c+1];kb(a,l,u),lu(a,a,t);var g=Fl(d,u),p=Fl(d,l),y=g+p;y!==0&&(g/=y,p/=y),lu(o,a,-g),lu(s,a,p);var m=Rv([],d,o),_=Rv([],d,s);n&&(Un(m,m,f),Wn(m,m,h),Un(_,_,f),Wn(_,_,h)),i.push(m),i.push(_)}return r&&i.push(i.shift()),i}function dm(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=qM(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var ZM=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Gs=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ZM},t.prototype.buildPath=function(r,n){dm(r,n,!0)},t}(rt);Gs.prototype.type="polygon";var jM=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),za=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jM},t.prototype.buildPath=function(r,n){dm(r,n,!1)},t}(rt);za.prototype.type="polyline";var KM={},QM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Fr=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QM},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=qy(KM,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(rt);Fr.prototype.type="line";var Zt=[],JM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Vc(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Wv:Ot)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Wv:Ot)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Uv:zt)(e.x1,e.cpx1,e.x2,t),(r?Uv:zt)(e.y1,e.cpy1,e.y2,t)]}var mh=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JM},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(i,a),f==null||h==null?(c<1&&(es(i,u,o,c,Zt),u=Zt[1],o=Zt[2],es(a,l,s,c,Zt),l=Zt[1],s=Zt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(Or(i,u,f,o,c,Zt),u=Zt[1],f=Zt[2],o=Zt[3],Or(a,l,h,s,c,Zt),l=Zt[1],h=Zt[2],s=Zt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Vc(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Vc(this.shape,r,!0);return Fb(n,n)},t}(rt);mh.prototype.type="bezier-curve";var tD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Hs=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tD},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,u,!l)},t}(rt);Hs.prototype.type="arc";var eD=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),rt.prototype.getBoundingRect.call(this)},t}(rt),pm=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),rD=function(e){H(t,e);function t(r,n,i,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t}(pm),nD=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(pm),en=[0,0],rn=[0,0],io=new U,ao=new U,us=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new U;for(var n=0;n<2;n++)this._axes[n]=new U;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);U.sub(i[0],n[1],n[0]),U.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return io.set(1/0,1/0),ao.set(0,0),!this._intersectCheckOneSide(this,t,io,ao,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,io,ao,i,-1)&&(n=!1,i)||i||U.copy(r,n?io:ao),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,en),this._getProjMinMaxOnAxis(u,r._corners,rn),en[1]<rn[0]||en[0]>rn[1]){if(s=!1,a)return s;var f=Math.abs(rn[0]-en[1]),h=Math.abs(en[0]-rn[1]);Math.min(f,h)>i.len()&&(f<h?U.scale(i,l,-f*o):U.scale(i,l,h*o))}else if(n){var f=Math.abs(rn[0]-en[1]),h=Math.abs(en[0]-rn[1]);Math.min(f,h)<n.len()&&(f<h?U.scale(n,l,f*o):U.scale(n,l,-h*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[t];s=Math.min(f,s),u=Math.max(f,u)}n[0]=s,n[1]=u},e}(),iD=[],aD=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new it(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(iD)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(vi),gm=mt();function Vs(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=K(n.duration,200),f=K(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),J(h)&&(h=h(r,i)),J(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function _h(e,t,r,n,i,a,o){var s=!1,u;J(i)?(o=a,a=i,i=null):X(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=Vs(e,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function se(e,t,r,n,i,a){_h("update",e,t,r,n,i,a)}function me(e,t,r,n,i,a){_h("enter",e,t,r,n,i,a)}function ti(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function ym(e,t,r,n,i,a){ti(e)||_h("leave",e,t,r,n,i,a)}function $c(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),ym(e,{style:{opacity:0}},t,r,n)}function ls(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||$c(i,t,r,n)}):$c(e,t,r,n)}function mm(e){gm(e).oldStyle=e.style}function oD(e){return gm(e).oldStyle}var fs=Math.max,hs=Math.min,vf={};function sD(e){return rt.extend(e)}var uD=FM;function lD(e,t){return uD(e,t)}function Oe(e,t){vf[e]=t}function fD(e){if(vf.hasOwnProperty(e))return vf[e]}function wh(e,t,r,n){var i=NM(e,t);return r&&(n==="center"&&(r=wm(r,i.getBoundingRect())),Sm(i,r)),i}function _m(e,t,r){var n=new bn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(wm(t,a))}}});return n}function wm(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var hD=zM;function Sm(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function ya(e,t){return qy(e,e,{lineWidth:t}),e}function vD(e){return Zy(e.shape,e.shape,e.style),e}var cD=cn;function dD(e,t){for(var r=rh([]);e&&e!==t;)Kn(r,e.getLocalTransform(),r),e=e.parent;return r}function Sh(e,t,r){return t&&!Xt(t)&&(t=ka.getLocalTransform(t)),r&&(t=Rs([],t)),ye([],e,t)}function pD(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Sh(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Wc(e){return!e.isGroup}function gD(e){return e.shape!=null}function xm(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Wc(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return gD(o)&&(s.shape=B({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Wc(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),se(o,u,r,ut(o).dataIndex)}}})}function yD(e,t){return $(e,function(r){var n=r[0];n=fs(n,t.x),n=hs(n,t.x+t.width);var i=r[1];return i=fs(i,t.y),i=hs(i,t.y+t.height),[n,i]})}function mD(e,t){var r=fs(e.x,t.x),n=hs(e.x+e.width,t.x+t.width),i=fs(e.y,t.y),a=hs(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function bm(e,t,r){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),et(i,r),new bn(n)):wh(e.replace("path://",""),n,r,"center")}function _D(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Tm(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Tm(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=Yu(f,h,u,l);if(wD(c))return!1;var v=e-i,d=t-a,g=Yu(v,d,u,l)/c;if(g<0||g>1)return!1;var p=Yu(v,d,f,h)/c;return!(p<0||p>1)}function Yu(e,t,r,n){return e*n-r*t}function wD(e){return e<=1e-6&&e>=-1e-6}function xh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=W(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&M(gt(u),function(f){cr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ut(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:et({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Uc(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function bh(e,t){if(e)if(z(e))for(var r=0;r<e.length;r++)Uc(e[r],t);else Uc(e,t)}Oe("circle",zs);Oe("ellipse",gh);Oe("sector",Ze);Oe("ring",yh);Oe("polygon",Gs);Oe("polyline",za);Oe("rect",Et);Oe("line",Fr);Oe("bezierCurve",mh);Oe("arc",Hs);const SD=Object.freeze(Object.defineProperty({__proto__:null,Arc:Hs,BezierCurve:mh,BoundingRect:it,Circle:zs,CompoundPath:eD,Ellipse:gh,Group:Ee,Image:bn,IncrementalDisplayable:aD,Line:Fr,LinearGradient:rD,OrientedBoundingRect:us,Path:rt,Point:U,Polygon:Gs,Polyline:za,RadialGradient:nD,Rect:Et,Ring:yh,Sector:Ze,Text:oe,applyTransform:Sh,clipPointsByRect:yD,clipRectByRect:mD,createIcon:bm,extendPath:lD,extendShape:sD,getShapeClass:fD,getTransform:dD,groupTransition:xm,initProps:me,isElementRemoved:ti,lineLineIntersect:Tm,linePolygonIntersect:_D,makeImage:_m,makePath:wh,mergePath:hD,registerShape:Oe,removeElement:ym,removeElementWithFadeOut:ls,resizePath:Sm,setTooltipConfig:xh,subPixelOptimize:cD,subPixelOptimizeLine:ya,subPixelOptimizeRect:vD,transformDirection:pD,traverseElements:bh,updateProps:se},Symbol.toStringTag,{value:"Module"}));var $s={};function Cm(e,t){for(var r=0;r<qe.length;r++){var n=qe[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function cf(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=J(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var u={normal:s},l=0;l<qe.length;l++){var f=qe[l],h=t[f];u[f]=K(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function Mm(e,t,r,n){r=r||$s;for(var i=e instanceof oe,a=!1,o=0;o<ss.length;o++){var s=t[ss[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?e:e.getTextContent();if(a){i||(u||(u=new oe,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=cf(r,t),f=t.normal,h=!!f.getShallow("show"),c=wn(f,n,r,!1,!i);c.text=l.normal,i||e.setTextConfig(Yc(f,r,!1));for(var o=0;o<qe.length;o++){var v=qe[o],s=t[v];if(s){var d=u.ensureState(v),g=!!K(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=wn(s,n,r,!0,!i),d.style.text=l[v],!i){var p=e.ensureState(v);p.textConfig=Yc(s,r,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),r.enableTextSetter&&(Ga(u).setLabelText=function(y){var m=cf(r,t,y);Cm(u,m)})}else u&&(u.ignore=!0);e.dirty()}function Dm(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<qe.length;n++){var i=qe[n];r[i]=e.getModel([i,t])}return r}function wn(e,t,r,n,i){var a={};return xD(a,e,r,n,i),t&&B(a,t),a}function Yc(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=K(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function xD(e,t,r,n,i){r=r||$s;var a=t.ecModel,o=a&&a.option.textStyle,s=bD(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);jc(u[l]={},f,o,r,n,i,!1,!0)}}u&&(e.rich=u);var h=t.get("overflow");h&&(e.overflow=h);var c=t.get("minMargin");c!=null&&(e.margin=c),jc(e,t,o,r,n,i,!0,!1)}function bD(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||$s).rich;if(r){t=t||{};for(var n=gt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Xc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],qc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Zc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function jc(e,t,r,n,i,a,o,s){r=!i&&r||$s;var u=n&&n.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=K(t.getShallow("opacity"),r.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||r.color,f=f||r.textBorderColor),l!=null&&(e.fill=l),f!=null&&(e.stroke=f);var c=K(t.getShallow("textBorderWidth"),r.textBorderWidth);c!=null&&(e.lineWidth=c);var v=K(t.getShallow("textBorderType"),r.textBorderType);v!=null&&(e.lineDash=v);var d=K(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);d!=null&&(e.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(e.opacity=h),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var g=0;g<Xc.length;g++){var p=Xc[g],y=K(t.getShallow(p),r[p]);y!=null&&(e[p]=y)}for(var g=0;g<qc.length;g++){var p=qc[g],y=t.getShallow(p);y!=null&&(e[p]=y)}if(e.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(e.verticalAlign=m)}if(!o||!n.disableBox){for(var g=0;g<Zc.length;g++){var p=Zc[g],y=t.getShallow(p);y!=null&&(e[p]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&u&&(e.backgroundColor=u),(e.borderColor==="auto"||e.borderColor==="inherit")&&u&&(e.borderColor=u)}}function TD(e,t){var r=t&&t.getModel("textStyle");return $e([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ga=mt();function CD(e,t,r,n){if(e){var i=Ga(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function MD(e,t,r,n,i){var a=Ga(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=K(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=vC(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=cf({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);Cm(e,c)}e.percent=0,(a.prevValue==null?me:se)(e,{percent:1},n,t,null,l)}var DD=["textStyle","color"],Xu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],qu=new oe,AD=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(DD):null)},e.prototype.getFont=function(){return TD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Xu.length;n++)r[Xu[n]]=this.getShallow(Xu[n]);return qu.useStyle(r),qu.update(),qu.getBoundingRect()},e}(),Am=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],LD=ga(Am),ID=function(){function e(){}return e.prototype.getLineStyle=function(t){return LD(this,t)},e}(),Lm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],PD=ga(Lm),ED=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return PD(this,t,r)},e}(),Ct=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ft(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(nt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();lh(Ct);mC(Ct);Qe(Ct,ID);Qe(Ct,ED);Qe(Ct,bC);Qe(Ct,AD);var RD=Math.round(Math.random()*10);function Ws(e){return[e||"",RD++].join("_")}function OD(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=We(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=We(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function kD(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(M(a,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),M(d.successor,g?y:p)}M(c,function(){var m="";throw new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,p(m)}};function r(a){var o={},s=[];return M(a,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=i(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),M(h,function(c){lt(l.predecessor,c)<0&&l.predecessor.push(c);var v=n(o,c);lt(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return M(a,function(u){lt(o,u)>=0&&s.push(u)}),s}}function BD(e,t){return ft(ft({},e,!0),t,!0)}const ND={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:". "}}}},FD={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 vs="ZH",Th="EN",ei=Th,Go={},Ch={},Im=q.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ei).toUpperCase();return e.indexOf(vs)>-1?vs:ei}():ei;function Pm(e,t){e=e.toUpperCase(),Ch[e]=new Ct(t),Go[e]=t}function zD(e){if(W(e)){var t=Go[e.toUpperCase()]||{};return e===vs||e===Th?nt(t):ft(nt(t),nt(Go[ei]),!1)}else return ft(nt(e),nt(Go[ei]),!1)}function GD(e){return Ch[e]}function HD(){return Ch[ei]}Pm(Th,ND);Pm(vs,FD);var Mh=1e3,Dh=Mh*60,na=Dh*60,ge=na*24,Kc=ge*365,$i={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}"},oo="{yyyy}-{MM}-{dd}",Qc={year:"{yyyy}",month:"{yyyy}-{MM}",day:oo,hour:oo+" "+$i.hour,minute:oo+" "+$i.minute,second:oo+" "+$i.second,millisecond:$i.none},Zu=["year","month","day","hour","minute","second","millisecond"],Em=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Sr(e,t){return e+="","0000".substr(0,t-e.length)+e}function ri(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function VD(e){return e===ri(e)}function $D(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Us(e,t,r,n){var i=dr(e),a=i[Ah(r)](),o=i[ni(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Ys(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[ma(r)](),h=(f-1)%12+1,c=i[Xs(r)](),v=i[qs(r)](),d=i[Zs(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),y=n instanceof Ct?n:GD(n||Im)||HD(),m=y.getModel("time"),_=m.get("month"),w=m.get("monthAbbr"),x=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Sr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Sr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Sr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,x[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Sr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Sr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Sr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Sr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Sr(d,3)).replace(/{S}/g,d+"")}function WD(e,t,r,n,i){var a=null;if(W(r))a=r;else if(J(r))a=r(e.value,t,{level:e.level});else{var o=B({},$i);if(e.level>0)for(var s=0;s<Zu.length;++s)o[Zu[s]]="{primary|"+o[Zu[s]]+"}";var u=r?r.inherit===!1?r:et(r,o):o,l=Rm(e.value,i);if(u[l])a=u[l];else if(u.inherit){for(var f=Em.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(z(a)){var h=e.level==null?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return Us(new Date(e.value),a,i,n)}function Rm(e,t){var r=dr(e),n=r[ni(t)]()+1,i=r[Ys(t)](),a=r[ma(t)](),o=r[Xs(t)](),s=r[qs(t)](),u=r[Zs(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Jc(e,t,r){var n=vt(e)?dr(e):e;switch(t=t||Rm(e,r),t){case"year":return n[Ah(r)]();case"half-year":return n[ni(r)]()>=6?1:0;case"quarter":return Math.floor((n[ni(r)]()+1)/4);case"month":return n[ni(r)]();case"day":return n[Ys(r)]();case"half-day":return n[ma(r)]()/24;case"hour":return n[ma(r)]();case"minute":return n[Xs(r)]();case"second":return n[qs(r)]();case"millisecond":return n[Zs(r)]()}}function Ah(e){return e?"getUTCFullYear":"getFullYear"}function ni(e){return e?"getUTCMonth":"getMonth"}function Ys(e){return e?"getUTCDate":"getDate"}function ma(e){return e?"getUTCHours":"getHours"}function Xs(e){return e?"getUTCMinutes":"getMinutes"}function qs(e){return e?"getUTCSeconds":"getSeconds"}function Zs(e){return e?"getUTCMilliseconds":"getMilliseconds"}function UD(e){return e?"setUTCFullYear":"setFullYear"}function Om(e){return e?"setUTCMonth":"setMonth"}function km(e){return e?"setUTCDate":"setDate"}function Bm(e){return e?"setUTCHours":"setHours"}function Nm(e){return e?"setUTCMinutes":"setMinutes"}function Fm(e){return e?"setUTCSeconds":"setSeconds"}function zm(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gm(e){if(!KT(e))return W(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Hm(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lh=ny;function df(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&$e(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?dr(e):e;if(isNaN(+u)){if(s)return"-"}else return Us(u,n,r)}if(t==="ordinal")return Nl(e)?i(e):vt(e)&&a(e)?e+"":"-";var l=Br(e);return a(l)?Gm(l):Nl(e)?i(e):typeof e=="boolean"?e+"":"-"}var td=["a","b","c","d","e","f","g"],ju=function(e,t){return"{"+e+(t??"")+"}"};function Vm(e,t,r){z(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=td[a];e=e.replace(ju(o),ju(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(ju(td[u],s),r?Kt(l):l)}return e}function YD(e,t){var r=W(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Kt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Kt(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function _a(e,t){return t=t||"transparent",W(e)?e:X(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function ed(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ho=M,XD=["left","right","top","bottom","width","height"],so=[["width","left","right"],["height","top","bottom"]];function $m(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(e==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}Yt($m,"vertical");Yt($m,"horizontal");function js(e,t,r){r=Lh(r||0);var n=t.width,i=t.height,a=pt(e.left,n),o=pt(e.top,i),s=pt(e.right,n),u=pt(e.bottom,i),l=pt(e.width,n),f=pt(e.height,i),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new it(a+r[3],o+r[0],l,f);return d.margin=r,d}function wa(e){var t=e.layoutMode||e.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function Sa(e,t,r){var n=r&&r.ignoreSize;!z(n)&&(n=[n,n]);var i=o(so[0],0),a=o(so[1],1);l(so[0],e,i),l(so[1],e,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(Ho(f,function(_){d[_]=e[_]}),Ho(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&g++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(e,m)){c[m]=e[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,c){Ho(f,function(v){h[v]=c[v]})}}function Ih(e){return qD({},e)}function qD(e,t){return t&&e&&Ho(XD,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var ZD=mt(),st=function(e){H(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Ws("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=wa(this),a=i?Ih(r):{},o=n.getTheme();ft(r,o.get(this.mainType)),ft(r,this.getDefaultOption()),i&&Sa(r,a,i)},t.prototype.mergeOption=function(r,n){ft(this.option,r,!0);var i=wa(this);i&&Sa(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!pC(r))return r.defaultOption;var n=ZD(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=ft(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Fa(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Ct);zy(st,Ct);ks(st);OD(st);kD(st,jD);function jD(e){var t=[];return M(st.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=$(t,function(r){return We(r).main}),e!=="dataset"&<(t,"dataset")<=0&&t.unshift("dataset"),t}var Wm="";typeof navigator<"u"&&(Wm=navigator.platform||"");var On="rgba(0, 0, 0, 0.2)";const KD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:On,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:On,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:On,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:On,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:On,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:On,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Wm.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 Um=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_e="original",qt="arrayRows",we="objectRows",tr="keyedColumns",Pr="typedArray",Ym="unknown",Xe="column",ci="row",Rt={Must:1,Might:2,Not:3},Xm=mt();function QD(e){Xm(e).datasetMap=Z()}function JD(e,t,r){var n={},i=Ph(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=Xm(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),M(e,function(g,p){var y=X(g)?g:e[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(e,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function tA(e,t,r){var n={},i=Ph(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===we||a===tr)&&M(o,function(f,h){(X(f)?f.name:f)==="name"&&(s=h)});var u=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var g=Zm(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Rt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Rt.Not)&&(f.n=v),y(f)&&c[f.n]!==Rt.Not)return f;p||(g===Rt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Ph(e){var t=e.get("data",!0);if(!t)return Fa(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ie).models[0]}function eA(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Fa(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ie).models}function qm(e,t){return Zm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Zm(e,t,r,n,i,a){var o,s=5;if(re(e))return Rt.Not;var u,l;if(n){var f=n[a];X(f)?(u=f.name,l=f.type):W(f)&&(u=f)}if(l!=null)return l==="ordinal"?Rt.Must:Rt.Not;if(t===qt){var h=e;if(r===ci){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=w(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=w(d[a]))!=null)return o}}else if(t===we){var g=e;if(!u)return Rt.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=w(p[u]))!=null)return o}}else if(t===tr){var y=e;if(!u)return Rt.Not;var c=y[u];if(!c||re(c))return Rt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=w(c[v]))!=null)return o}else if(t===_e)for(var m=e,v=0;v<m.length&&v<s;v++){var p=m[v],_=Ba(p);if(!z(_))return Rt.Not;if((o=w(_[a]))!=null)return o}function w(x){var S=W(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return S?Rt.Might:Rt.Not;if(S&&x!=="-")return Rt.Must}return Rt.Not}var rA=Z();function nA(e,t,r){var n=rA.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var rd=mt();mt();var Eh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Mt(this.get("color",!0)),a=this.get("colorLayer",!0);return aA(this,rd,i,a,t,r,n)},e.prototype.clearColorPalette=function(){oA(this,rd)},e}();function iA(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function aA(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:iA(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function oA(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var uo,Di,nd,id="\0_ec_inner",sA=1,Rh=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ct(a),this._locale=new Ct(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=sd(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,sd(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?nd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&M(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=Z(),l=n&&n.replaceMergeMainTypeMap;QD(this),M(r,function(h,c){h!=null&&(st.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?nt(h):ft(i[c],h,!0))}),l&&l.each(function(h,c){st.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),st.topologicalTravel(s,st.getAllClassMainTypes(),f,this);function f(h){var c=nA(this,h,Mt(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=tC(v,c,d);sC(g,h,st),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;M(g,function(w,x){var S=w.existing,b=w.newOption;if(!b)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=h==="series",C=st.getClass(h,w.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===C)S.name=w.keyInfo.name,S.mergeOption(b,this),S.optionUpdated(b,!1);else{var D=B({componentIndex:x},w.keyInfo);S=new C(b,this,this,D),B(S,D),w.brandNew&&(S.__requireNewView=!0),S.init(b,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),y.push(S),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&uo(this)}this._seriesIndices||uo(this)},t.prototype.getOption=function(){var r=nt(this.option);return M(r,function(n,i){if(st.hasClass(i)){for(var a=Mt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!pa(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[id],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],M(Mt(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=ad("id",a,s):o!=null?u=ad("name",o,s):u=Tt(s,function(l){return!!l}),od(u,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Tt(this._componentsMap.get(i),function(l){return!!l});return u(od(o,r));function s(l){var f=i+"Index",h=i+"Id",c=i+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:i,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?Tt(l,r.filter):l}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(J(r)){var o=n,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=W(r)?a.get(r):X(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Ye(r,null);return Tt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Tt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Tt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Di(this),M(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Di(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return M(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Di(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Di(this);var i=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Z(i)},t.prototype.restoreData=function(r){uo(this);var n=this._componentsMap,i=[];n.each(function(a,o){st.hasClass(o)&&i.push(o)}),st.topologicalTravel(i,st.getAllClassMainTypes(),function(a){M(n.get(a),function(o){o&&(a!=="series"||!uA(o,r))&&o.restoreData()})})},t.internalField=function(){uo=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Z(n)},Di=function(r){},nd=function(r,n){r.option={},r.option[id]=sA,r._componentsMap=Z({series:[]}),r._componentsCount=Z();var i=n.aria;X(i)&&i.enabled==null&&(i.enabled=!0),lA(n,r._theme.option),ft(n,KD,!1),r._mergeOption(n,null)}}(),t}(Ct);function uA(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function lA(e,t){var r=e.color&&!e.colorLayer;M(t,function(n,i){i==="colorLayer"&&r||st.hasClass(i)||(typeof n=="object"?e[i]=e[i]?ft(e[i],n,!1):nt(n):e[i]==null&&(e[i]=n))})}function ad(e,t,r){if(z(t)){var n=Z();return M(t,function(a){if(a!=null){var o=Ye(a,null);o!=null&&n.set(a,!0)}}),Tt(r,function(a){return a&&n.get(a[e])})}else{var i=Ye(t,null);return Tt(r,function(a){return a&&i!=null&&a[e]===i})}}function od(e,t){return t.hasOwnProperty("subType")?Tt(e,function(r){return r&&r.subType===t.subType}):e}function sd(e){var t=Z();return e&&M(Mt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Qe(Rh,Eh);var fA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jm=function(){function e(t){M(fA,function(r){this[r]=_t(t[r],t)},this)}return e}(),Ku={},Oh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];M(Ku,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){M(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Ku[t]=r},e.get=function(t){return Ku[t]},e}(),hA=/^(min|max)?(.+)$/,vA=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(M(Mt(t.series),function(o){o&&o.data&&re(o.data)&&Qo(o.data)}),M(Mt(t.dataset),function(o){o&&o.source&&re(o.source)&&Qo(o.source)})),t=nt(t);var i=this._optionBackup,a=cA(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],nt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=nt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)dA(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!gA(o,this._currentMediaIndices)&&(s=$(o,function(f){return nt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e}();function cA(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&z(l)&&M(l,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),M(u,function(v){return c(v)}),M(n,function(v){return c(v.option)});function c(v){M(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function dA(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return M(e,function(a,o){var s=o.match(hA);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();pA(n[l],a,u)||(i=!1)}}),i}function pA(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function gA(e,t){return e.join(",")===t.join(",")}var be=M,xa=X,ud=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Qu(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=ud.length;r<n;r++){var i=ud[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?ft(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?ft(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Gt(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,et(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Wi(e){Gt(e,"itemStyle"),Gt(e,"lineStyle"),Gt(e,"areaStyle"),Gt(e,"label"),Gt(e,"labelLine"),Gt(e,"upperLabel"),Gt(e,"edgeLabel")}function bt(e,t){var r=xa(e)&&e[t],n=xa(r)&&r.textStyle;if(n)for(var i=0,a=vc.length;i<a;i++){var o=vc[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function ce(e){e&&(Wi(e),bt(e,"label"),e.emphasis&&bt(e.emphasis,"label"))}function yA(e){if(xa(e)){Qu(e),Wi(e),bt(e,"label"),bt(e,"upperLabel"),bt(e,"edgeLabel"),e.emphasis&&(bt(e.emphasis,"label"),bt(e.emphasis,"upperLabel"),bt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Qu(t),ce(t));var r=e.markLine;r&&(Qu(r),ce(r));var n=e.markArea;n&&ce(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!re(a))for(var o=0;o<a.length;o++)ce(a[o]);M(e.categories,function(l){Wi(l)})}if(i&&!re(i))for(var o=0;o<i.length;o++)ce(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ce(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)z(u[o])?(ce(u[o][0]),ce(u[o][1])):ce(u[o]);e.type==="gauge"?(bt(e,"axisLabel"),bt(e,"title"),bt(e,"detail")):e.type==="treemap"?(Gt(e.breadcrumb,"itemStyle"),M(e.levels,function(l){Wi(l)})):e.type==="tree"&&Wi(e.leaves)}}function ir(e){return z(e)?e:e?[e]:[]}function ld(e){return(z(e)?e[0]:e)||{}}function mA(e,t){be(ir(e.series),function(n){xa(n)&&yA(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),be(r,function(n){be(ir(e[n]),function(i){i&&(bt(i,"axisLabel"),bt(i.axisPointer,"label"))})}),be(ir(e.parallel),function(n){var i=n&&n.parallelAxisDefault;bt(i,"axisLabel"),bt(i&&i.axisPointer,"label")}),be(ir(e.calendar),function(n){Gt(n,"itemStyle"),bt(n,"dayLabel"),bt(n,"monthLabel"),bt(n,"yearLabel")}),be(ir(e.radar),function(n){bt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),be(ir(e.geo),function(n){xa(n)&&(ce(n),be(ir(n.regions),function(i){ce(i)}))}),be(ir(e.timeline),function(n){ce(n),Gt(n,"label"),Gt(n,"itemStyle"),Gt(n,"controlStyle",!0);var i=n.data;z(i)&&M(i,function(a){X(a)&&(Gt(a,"label"),Gt(a,"itemStyle"))})}),be(ir(e.toolbox),function(n){Gt(n,"iconStyle"),be(n.feature,function(i){Gt(i,"iconStyle")})}),bt(ld(e.axisPointer),"label"),bt(ld(e.tooltip).axisPointer,"label")}function _A(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function wA(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function fd(e){e&&M(SA,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var SA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],xA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ju=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ai(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Ju.length;r++){var n=Ju[r][1],i=Ju[r][0];t[n]!=null&&(t[i]=t[n])}}function hd(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function vd(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function bA(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Km(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Km(e[r].children,t)}function Qm(e,t){mA(e,t),e.series=Mt(e.series),M(e.series,function(r){if(X(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),hd(r.label);var i=r.data;if(i&&!re(i))for(var a=0;a<i.length;a++)hd(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=_A(r,"pointer.color");o!=null&&wA(r,"itemStyle.color",o)}else if(n==="bar"){Ai(r),Ai(r.backgroundStyle),Ai(r.emphasis);var i=r.data;if(i&&!re(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ai(i[a]),Ai(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),vd(r),Km(r.data,vd)}else n==="graph"||n==="sankey"?bA(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&et(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),fd(r)}}),e.dataRange&&(e.visualMap=e.dataRange),M(xA,function(r){var n=e[r];n&&(z(n)||(n=[n]),M(n,function(i){fd(i)}))})}function TA(e){var t=Z();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(CA)}function CA(e){M(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var g=NaN,p=r-1;p>=0;p--){var y=e[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=qT(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Ks=function(){function e(t){this.data=t.data||(t.sourceFormat===tr?{}:[]),this.sourceFormat=t.sourceFormat||Ym,this.seriesLayoutBy=t.seriesLayoutBy||Xe,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&qm(this,n)===Rt.Must&&(i.type="ordinal")}}return e}();function kh(e){return e instanceof Ks}function pf(e,t,r){r=r||t0(e);var n=t.seriesLayoutBy,i=DA(e,r,n,t.sourceHeader,t.dimensions),a=new Ks({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:nt(t)});return a}function Jm(e){return new Ks({data:e,sourceFormat:re(e)?Pr:_e})}function MA(e){return new Ks({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:nt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function t0(e){var t=Ym;if(re(e))t=Pr;else if(z(e)){e.length===0&&(t=qt);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(z(i)||re(i)){t=qt;break}else if(X(i)){t=we;break}}}}else if(X(e)){for(var a in e)if(cr(e,a)&&Xt(e[a])){t=tr;break}}return t}function DA(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:cd(i),startIndex:o,dimensionsDetectedCount:a};if(t===qt){var s=e;n==="auto"||n==null?dd(function(l){l!=null&&l!=="-"&&(W(l)?o==null&&(o=1):o=0)},r,s,10):o=vt(n)?n:n?1:0,!i&&o===1&&(i=[],dd(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===ci?s.length:s[0]?s[0].length:null}else if(t===we)i||(i=AA(e));else if(t===tr)i||(i=[],M(e,function(l,f){i.push(f)}));else if(t===_e){var u=Ba(e[0]);a=z(u)&&u.length||1}return{startIndex:o,dimensionsDefine:cd(i),dimensionsDetectedCount:a}}function AA(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return gt(r)}function cd(e){if(e){var t=Z();return $(e,function(r,n){r=X(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function dd(e,t,r,n){if(t===ci)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function e0(e){var t=e.sourceFormat;return t===we||t===tr}var nn,an,on,pd,gd,r0=function(){function e(t,r){var n=kh(t)?t:Jm(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Pr&&(this._offset=0,this._dimSize=r,this._data=i),gd(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;gd=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=pd[Bh(l,f)];if(B(o,v),l===Pr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=n0(l,f);o.getItem=_t(d,null,s,h,c);var g=i0(l,f);o.count=_t(g,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},n=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,y=u[c],m=0;m<p;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};pd=(t={},t[qt+"_"+Xe]={pure:!0,appendData:a},t[qt+"_"+ci]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[we]={pure:!0,appendData:a},t[tr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[_e]={appendData:a},t[Pr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),yd=function(e,t,r,n){return e[n]},LA=(nn={},nn[qt+"_"+Xe]=function(e,t,r,n){return e[n+t]},nn[qt+"_"+ci]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},nn[we]=yd,nn[tr]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=e[s];a[o]=u?u[n]:null}return a},nn[_e]=yd,nn);function n0(e,t){var r=LA[Bh(e,t)];return r}var md=function(e,t,r){return e.length},IA=(an={},an[qt+"_"+Xe]=function(e,t,r){return Math.max(0,e.length-t)},an[qt+"_"+ci]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},an[we]=md,an[tr]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},an[_e]=md,an);function i0(e,t){var r=IA[Bh(e,t)];return r}var tl=function(e,t,r){return e[t]},PA=(on={},on[qt]=tl,on[we]=function(e,t,r){return e[r]},on[tr]=tl,on[_e]=function(e,t,r){var n=Ba(e);return n instanceof Array?n[t]:n},on[Pr]=tl,on);function a0(e){var t=PA[e];return t}function Bh(e,t){return e===qt?e+"_"+t:e}function oi(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return a0(a)(n,o,s)}else{var u=n;return a===_e&&(u=Ba(n)),u}}}}var EA=/\{@(.+?)\}/g,RA=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),i!=null&&z(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(J(a))return u.status=r,u.dimensionIndex=i,a(u);if(W(a)){var f=Vm(a,u);return f.replace(EA,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=oi(s,t,d);if(o&&z(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return oi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function _d(e){var t,r;return X(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ia(e){return new OA(e)}var OA=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var g=this._progress;if(z(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,u,l);else this._doProgress(g,v,d,u,l)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){wd.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:wd.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),z(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),wd=function(){var e,t,r,n,i,a={reset:function(u,l,f,h){t=u,e=l,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%i*r+Math.ceil(t/i),l=t>=e?null:u<n?u:t;return t++,l}}();function Vo(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!vt(e)&&e!=null&&e!=="-"&&(e=+dr(e)),e==null||e===""?NaN:Number(e))}var kA=Z({number:function(e){return parseFloat(e)},time:function(e){return+dr(e)},trim:function(e){return W(e)?$e(e):e}});function o0(e){return kA.get(e)}var s0={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},BA=function(){function e(t,r){if(!vt(r)){var n="";tt(n)}this._opFn=s0[t],this._rvalFloat=Br(r)}return e.prototype.evaluate=function(t){return vt(t)?this._opFn(t,this._rvalFloat):this._opFn(Br(t),this._rvalFloat)},e}(),u0=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=vt(t)?t:Br(t),i=vt(r)?r:Br(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=W(t),u=W(r);s&&(n=u?t:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),NA=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Br(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Br(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function FA(e,t){return e==="eq"||e==="ne"?new NA(e==="eq",t):cr(s0,e)?new BA(e,t):null}var zA=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Vo(t,r)},e}();function GA(e,t){var r=new zA,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Xe&&tt(o);var s=[],u={},l=e.dimensionsDefine;if(l)M(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";cr(u,y)&&tt(_),u[y]=m}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=n0(i,Xe);t.__isBuiltIn&&(r.getRawDataItem=function(g){return h(n,a,s,g)},r.getRawData=_t(HA,null,e)),r.cloneRawData=_t(VA,null,e);var c=i0(i,Xe);r.count=_t(c,null,n,a,s);var v=a0(i);r.retrieveValue=function(g,p){var y=h(n,a,s,g);return d(y,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return v(g,p,y.name)}};return r.getDimensionInfo=_t($A,null,s,u),r.cloneAllDimensionInfo=_t(WA,null,s),r}function HA(e){var t=e.sourceFormat;if(!Nh(t)){var r="";tt(r)}return e.data}function VA(e){var t=e.sourceFormat,r=e.data;if(!Nh(t)){var n="";tt(n)}if(t===qt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===we){for(var i=[],a=0,o=r.length;a<o;a++)i.push(B({},r[a]));return i}}function $A(e,t,r){if(r!=null){if(vt(r)||!isNaN(r)&&!cr(t,r))return e[r];if(cr(t,r))return t[r]}}function WA(e){return nt(e)}var l0=Z();function UA(e){e=nt(e);var t=e.type,r="";t||tt(r);var n=t.split(":");n.length!==2&&tt(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,l0.set(t,e)}function YA(e,t,r){var n=Mt(e),i=n.length,a="";i||tt(a);for(var o=0,s=i;o<s;o++){var u=n[o];t=XA(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function XA(e,t,r,n){var i="";t.length||tt(i),X(e)||tt(i);var a=e.type,o=l0.get(a);o||tt(i);var s=$(t,function(l){return GA(l,o)}),u=Mt(o.transform({upstream:s[0],upstreamList:s,config:nt(e.config)}));return $(u,function(l,f){var h="";X(l)||tt(h),l.data||tt(h);var c=t0(l.data);Nh(c)||tt(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var g=d.startIndex;g&&(l.data=d.data.slice(0,g).concat(l.data)),v={seriesLayoutBy:Xe,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Xe,sourceHeader:0,dimensions:l.dimensions};return pf(l.data,v,null)})}function Nh(e){return e===qt||e===we}var Qs="undefined",qA=typeof Uint32Array===Qs?Array:Uint32Array,ZA=typeof Uint16Array===Qs?Array:Uint16Array,f0=typeof Int32Array===Qs?Array:Int32Array,Sd=typeof Float64Array===Qs?Array:Float64Array,h0={float:Sd,int:f0,ordinal:Array,number:Array,time:Sd},el;function kn(e){return e>65535?qA:ZA}function Bn(){return[1/0,-1/0]}function jA(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function xd(e,t,r,n,i){var a=h0[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(n)}var gf=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=el[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],e0(i),this._dimensions=$(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new h0[r||"float"](this._rawCount),this._rawExtent[a]=Bn(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Bn());for(var u=a[t],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=i[l];xd(n,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],g=el.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=$(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Bn()),xd(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(c,l[d],v,d);g[v]=p;var y=u[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=r-a[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=kn(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=kn(n._rawCount),o=new a(i),s=[],u=t.length,l=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var g=h[f][d];v=r(g,c)}else{for(var p=0;p<u;p++)s[p]=h[t[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=gt(t),a=i.length;if(!a)return this;var o=r.count(),s=kn(r._rawCount),u=new s(o),l=0,f=i[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var p=v[i[0]],y=0;y<n;y++){var m=p[y];(m>=h&&m<=c||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],w=t[i[1]][0],x=t[i[1]][1],y=0;y<n;y++){var m=p[y],S=_[y];(m>=h&&m<=c||isNaN(m))&&(S>=w&&S<=x||isNaN(S))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var b=r.getRawIndex(y),m=v[i[0]][b];(m>=h&&m<=c||isNaN(m))&&(u[l++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=r.getRawIndex(y),C=0;C<a;C++){var D=i[C],m=v[D][b];(m<t[D][0]||m>t[D][1])&&(T=!1)}T&&(u[l++]=r.getRawIndex(y))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=Bn();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=i[r[v]][c];u[o]=h;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=r[f],p=d[f],y=l[g],m=i[g];m&&(m[c]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(kn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var g=Math.min(d+u,o-1),p=Math.min(d+u*2,o),y=(p+g)/2,m=0,_=g;_<p;_++){var w=this.getRawIndex(_),x=a[w];isNaN(x)||(m+=x)}m/=p-g;var S=d,b=Math.min(d+u,o),T=d-1,C=a[l];f=-1,c=S;for(var D=-1,A=0,_=S;_<b;_++){var w=this.getRawIndex(_),x=a[w];if(isNaN(x)){A++,D<0&&(D=w);continue}h=Math.abs((T-y)*(x-C)-(T-_)*(m-C)),h>f&&(f=h,c=w)}A>0&&A<b-S&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),u=new(kn(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var y=this.getRawIndex(f+p),m=o[y];m<c&&(c=m,h=f+p),m>d&&(d=m,v=f+p)}var _=this.getRawIndex(h),w=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=w):(u[l++]=w,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=Bn(),c=new(kn(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var g=0;g<u;g++){var p=this.getRawIndex(d+g);s[g]=l[p]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));l[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Bn();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<i;l++){var f=this.getRawIndex(l),h=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Rr(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?jA(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=nt(this._extent),t._rawExtent=nt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Vo(r[a],this._dimensions[a])}el={arrayRows:t,objectRows:function(r,n,i,a){return Vo(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Vo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),v0=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(lo(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=re(s)?Pr:_e,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=K(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=K(h.sourceHeader,c.sourceHeader),g=K(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[pf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[pf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Td(a)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&Td(h),s.push(f),u.push(l._getVersionSign())}),n?o=YA(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[MA(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];lo(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new gf,s.initData(new r0(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(lo(t)){var r=Ph(t);return r?[r.getSourceManager()]:[]}else return $(eA(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(lo(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function bd(e){var t=e.option.transform;t&&Qo(e.option.transform)}function lo(e){return e.mainType==="series"}function Td(e){throw new Error(e)}var KA="line-height:1";function c0(e){var t=e.lineHeight;return t==null?KA:"line-height:"+Kt(t+"")+"px"}function d0(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Kt(n+"")+"px;color:"+Kt(r)+";font-weight:"+Kt(i+""),valueStyle:"font-size:"+Kt(o+"")+"px;color:"+Kt(a)+";font-weight:"+Kt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var QA=[0,10,20,30],JA=["",`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function ba(e,t){return t.type=e,t}function yf(e){return e.type==="section"}function p0(e){return yf(e)?tL:eL}function g0(e){if(yf(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return M(e.blocks,function(i){var a=g0(i);a>=t&&(t=a+ +(n&&(!a||yf(i)&&!i.noHeader)))}),t}return 0}function tL(e,t,r,n){var i=t.noHeader,a=rL(g0(t)),o=[],s=t.blocks||[];vr(!s||z(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(cr(l,u)){var f=new u0(l[u],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(g,p){var y=t.valueFormatter,m=p0(g)(y?B(B({},e),{valueFormatter:y}):e,g,p>0?a.html:0,n);m!=null&&o.push(m)});var h=e.renderMode==="richText"?o.join(a.richText):mf(n,o.join(""),i?r:a.html);if(i)return h;var c=df(t.header,"ordinal",e.useUTC),v=d0(n,e.renderMode).nameStyle,d=c0(n);return e.renderMode==="richText"?y0(e,c,v)+a.richText+h:mf(n,'<div style="'+v+";"+d+';">'+Kt(c)+"</div>"+h,r)}function eL(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(w){return w=z(w)?w:[w],$(w,function(x,S){return df(x,z(v)?v[S]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":df(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,y=d0(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":y0(e,c,m))+(o?"":aL(e,d,g,p,_)):mf(n,(s?"":h)+(a?"":nL(c,!s,m))+(o?"":iL(d,g,p,_)),r)}}function Cd(e,t,r,n,i,a){if(e){var o=p0(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function rL(e){return{html:QA[e],richText:JA[e]}}function mf(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=c0(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function nL(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Kt(e)+"</span>"}function iL(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=z(e)?e:[e],'<span style="'+a+";"+n+'">'+$(e,function(o){return Kt(o)}).join(" ")+"</span>"}function y0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function aL(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,a)}function oL(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return _a(n)}function m0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var rl=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ey()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=YD({color:r,type:t,renderMode:n,markerId:i});return W(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};z(r)?M(r,function(a){return B(n,a)}):B(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function sL(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=z(s),l=oL(t,r),f,h,c,v;if(o>1||u&&!o){var d=uL(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=oi(i,r,a[0]),h=g.type}else v=f=u?s[0]:s;var p=By(t),y=p&&t.name||"",m=i.getName(r),_=n?y:m;return ba("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[ba("nameValue",{markerType:"item",markerColor:l,name:_,noName:!$e(_),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function uL(e,t,r,n,i){var a=t.getData(),o=Rr(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?M(n,function(h){f(oi(a,r,h),h)}):M(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(ba("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var xr=mt();function fo(e,t){return e.getName(t)||e.getId(t)}var $o="__universalTransitionEnabled",je=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ia({count:fL,reset:hL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=xr(this).sourceManager=new v0(this);a.prepareSource();var o=this.getInitialData(r,i);Dd(o,this),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,Md(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=wa(this),a=i?Ih(r):{},o=this.subType;st.hasClass(o)&&(o+="Series"),ft(r,n.getTheme().get(this.subType)),ft(r,this.getDefaultOption()),tf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Sa(r,a,i)},t.prototype.mergeOption=function(r,n){r=ft(this.option,r,!0),this.fillDataTextStyle(r.data);var i=wa(this);i&&Sa(this.option,r,i);var a=xr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Dd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,Md(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!re(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&tf(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=_f(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return xr(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=_f(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}xr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Z(r)},t.prototype.getSourceManager=function(){return xr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return xr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return sL({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(q.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Eh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=fo(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=gt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[fo(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$o])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],c=fo(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[u-1],c=fo(r,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return st.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(st);Qe(je,RA);Qe(je,Eh);zy(je,st);function Md(e){var t=e.name;By(e)||(e.name=lL(e)||t)}function lL(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return M(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function fL(e){return e.model.getRawData().count()}function hL(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),vL}function vL(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Dd(e,t){M(Eb(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Yt(cL,t))})}function cL(e,t){var r=_f(e);return r&&r.setOutputEnd((t||this).count()),t}function _f(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Re=function(){function e(){this.group=new Ee,this.uid=Ws("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();lh(Re);ks(Re);function _0(){var e=mt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var w0=mt(),dL=_0(),hr=function(){function e(){this.group=new Ee,this.uid=Ws("viewChart"),this.renderTask=ia({plan:pL,reset:gL}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Ld(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Ld(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){bh(this.group,t)},e.markUpdateMethod=function(t,r){w0(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Ad(e,t,r){e&&lf(e)&&(t==="emphasis"?af:of)(e,r)}function Ld(e,t,r){var n=Na(e,t),i=t&&t.highlightKey!=null?IM(t.highlightKey):null;n!=null?M(Mt(n),function(a){Ad(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){Ad(a,r,i)})}lh(hr);ks(hr);function pL(e){return dL(e.model)}function gL(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&w0(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),yL[u]}var yL={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},cs="\0__throttleOriginMethod",Id="\0__throttleRate",Pd="\0__throttleType";function Fh(e,t,r){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var g=f||t,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function S0(e,t,r,n){var i=e[t];if(i){var a=i[cs]||i,o=i[Pd],s=i[Id];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Fh(a,r,n==="debounce"),i[cs]=a,i[Pd]=n,i[Id]=r}return i}}function wf(e,t){var r=e[t];r&&r[cs]&&(r.clear&&r.clear(),e[t]=r[cs])}var Ed=mt(),Rd={itemStyle:ga(Lm,!0),lineStyle:ga(Am,!0)},mL={lineStyle:"stroke",itemStyle:"fill"};function x0(e,t){var r=e.visualStyleMapper||Rd[t];return r||(console.warn("Unknown style type '"+t+"'."),Rd.itemStyle)}function b0(e,t){var r=e.visualDrawType||mL[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var _L={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=x0(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=b0(e,n),l=o[u],f=J(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=e.getDataParams(d),p=B({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},Li=new Ct,wL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=x0(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Li.option=u[n];var l=i(Li),f=o.ensureUniqueItemVisual(s,"style");B(f,l),Li.option.decal&&(o.setItemVisual(s,"decal",Li.option.decal),Li.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},SL={performRawSeries:!0,overallReset:function(e){var t=Z();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Ed(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Ed(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=b0(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},ho=Math.PI;function xL(e,t){t=t||{},et(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ee,n=new Et({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new oe({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Et({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Hs({shape:{startAngle:-ho/2,endAngle:-ho/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ho*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ho*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var T0=function(){function e(t,r,n,i){this._stageTaskMap=Z(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Z();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";vr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;M(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Z(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ia({plan:DL,reset:AL,count:IL}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ia({reset:bL});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=Z(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";vr(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,M(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(c=!0,ia({reset:TL,onDirty:ML})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return J(t)&&(t={overallReset:t,seriesType:PL(t)}),t.uid=Ws("stageHandler"),r&&(t.visualType=r),t},e}();function bL(e){e.overallReset(e.ecModel,e.api,e.payload)}function TL(e){return e.overallProgress&&CL}function CL(){this.agent.dirty(),this.getDownstream().dirty()}function ML(){this.agent&&this.agent.dirty()}function DL(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function AL(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Mt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$(t,function(r,n){return C0(n)}):LL}var LL=C0(0);function C0(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function IL(e){return e.data.count()}function PL(e){ds=null;try{e(Ta,M0)}catch{}return ds}var Ta={},M0={},ds;D0(Ta,Rh);D0(M0,jm);Ta.eachSeriesByType=Ta.eachRawSeriesByType=function(e){ds=e};Ta.eachComponent=function(e){e.mainType==="series"&&e.subType&&(ds=e.subType)};function D0(e,t){for(var r in t.prototype)e[r]=ee}var Od=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const EL={color:Od,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Od]};var Ft="#B9B8CE",kd="#100C2A",vo=function(){return{axisLine:{lineStyle:{color:Ft}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Bd=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],A0={darkMode:!0,color:Bd,backgroundColor:kd,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ft},pageTextStyle:{color:Ft}},textStyle:{color:Ft},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ft}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ft},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ft}},timeline:{lineStyle:{color:Ft},label:{color:Ft},controlStyle:{color:Ft,borderColor:Ft}},calendar:{itemStyle:{color:kd},dayLabel:{color:Ft},monthLabel:{color:Ft},yearLabel:{color:Ft}},timeAxis:vo(),logAxis:vo(),valueAxis:vo(),categoryAxis:vo(),line:{symbol:"circle"},graph:{color:Bd},gauge:{title:{color:Ft},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ft},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};A0.categoryAxis.splitLine.show=!1;var RL=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(W(t)){var a=We(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,l=r.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Sf=["symbol","symbolSize","symbolRotate","symbolOffset"],Nd=Sf.concat(["symbolKeepAspect"]),OL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Sf.length;o++){var s=Sf[o],u=e.get(s);J(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(B({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=gt(i);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),g=0;g<l.length;g++){var p=l[g];h.setItemVisual(c,p,i[p](v,d))}}return{dataEach:a?f:null}}},kL={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Nd.length;s++){var u=Nd[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function BL(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function NL(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function FL(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}M([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=B({},i),o.dispatchAction(B(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Nn(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=Na(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:z(c)?h.getName(c[0]):h.getName(c),selected:W(u)?u:B({},u)})}})}function zL(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Nn("map","selectchanged",t,i,n),Nn("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Nn("map","selected",t,i,n),Nn("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Nn("map","unselected",t,i,n),Nn("pie","unselected",t,i,n))})}function Ui(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var GL=Math.round(Math.random()*9),HL=typeof Object.defineProperty=="function",VL=function(){function e(){this._id="__ec_inner_"+GL++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return HL?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),$L=rt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),WL=rt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),UL=rt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),YL=rt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),XL={line:Fr,rect:Et,roundRect:Et,square:Et,circle:zs,diamond:WL,pin:UL,arrow:YL,triangle:$L},qL={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},xf={};M(XL,function(e,t){xf[t]=new e});var ZL=rt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=is(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=xf[n];i||(n="rect",i=xf[n]),qL[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function jL(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function L0(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=_m(e.slice(8),new it(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?u=wh(e.slice(7),{},new it(t,r,n,i),o?"center":"cover"):u=new ZL({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=jL,a&&u.setColor(a),u}function KL(e,t){if(e!=null)return z(e)||(e=[e,e]),[pt(e[0],t[0])||0,pt(K(e[1],e[0]),t[1])||0]}function dn(e){return isFinite(e)}function QL(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=dn(n)?n:0,i=dn(i)?i:1,a=dn(a)?a:0,o=dn(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function JL(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,u=u*a),o=dn(o)?o:.5,s=dn(s)?s:.5,u=u>=0&&dn(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function bf(e,t,r){for(var n=t.type==="radial"?JL(e,t,r):QL(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function t2(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function co(e){return parseInt(e,10)}function po(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||co(s[n])||co(e.style[n]))-(co(s[a])||0)-(co(s[o])||0)|0}function e2(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:vt(e)?[e]:z(e)?e:null}function I0(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&e2(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=$(r,function(a){return a/i}),n/=i)}return[r,n]}var r2=new Nr(!0);function ps(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Fd(e){return typeof e=="string"&&e!=="none"}function gs(e){var t=e.fill;return t!=null&&t!=="none"}function zd(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Gd(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Tf(e,t,r){var n=Gy(t.image,t.__image,r);if(Bs(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Rb),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function n2(e,t,r,n){var i,a=ps(r),o=gs(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||r2,h=t.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,w=void 0,x=void 0,S=void 0;(d||g)&&(S=t.getBoundingRect()),d&&(m=h?bf(e,c,S):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?bf(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(w=h||!t.__canvasFillPattern?Tf(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(x=h||!t.__canvasStrokePattern?Tf(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=m:p&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=_:y&&(x?e.strokeStyle=x:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,C;e.setLineDash&&r.lineDash&&(i=I0(t),T=i[0],C=i[1]);var D=!0;(l||h&Vn)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(e,u?s:1),T&&(e.setLineDash(T),e.lineDashOffset=C),n||(r.strokeFirst?(a&&Gd(e,r),o&&zd(e,r)):(o&&zd(e,r),a&&Gd(e,r))),T&&e.setLineDash([])}function i2(e,t,r){var n=t.__image=Gy(r.image,t.__image,t,t.onload);if(!(!n||!Bs(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function a2(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||_n,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=I0(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(ps(r)&&e.strokeText(i,r.x,r.y),gs(r)&&e.fillText(i,r.x,r.y)):(gs(r)&&e.fillText(i,r.x,r.y),ps(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Hd=["shadowBlur","shadowOffsetX","shadowOffsetY"],Vd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function P0(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){te(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?gn.opacity:o}(n||t.blend!==r.blend)&&(a||(te(e,i),a=!0),e.globalCompositeOperation=t.blend||gn.blend);for(var s=0;s<Hd.length;s++){var u=Hd[s];(n||t[u]!==r[u])&&(a||(te(e,i),a=!0),e[u]=e.dpr*(t[u]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(te(e,i),a=!0),e.shadowColor=t.shadowColor||gn.shadowColor),a}function $d(e,t,r,n,i){var a=Ca(t,i.inHover),o=n?null:r&&Ca(r,i.inHover)||{};if(a===o)return!1;var s=P0(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(te(e,i),s=!0),Fd(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(te(e,i),s=!0),Fd(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(te(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(te(e,i),s=!0),e.lineWidth=l)}for(var f=0;f<Vd.length;f++){var h=Vd[f],c=h[0];(n||a[c]!==o[c])&&(s||(te(e,i),s=!0),e[c]=a[c]||h[1])}return s}function o2(e,t,r,n,i){return P0(e,Ca(t,i.inHover),r&&Ca(r,i.inHover),n,i)}function E0(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function s2(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),E0(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function u2(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Wd=1,Ud=2,Yd=3,Xd=4;function l2(e){var t=gs(e),r=ps(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function te(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ca(e,t){return t&&e.__hoverStyle||e.style}function R0(e,t){pn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function pn(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~ie,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||t2(a,o))&&(o&&o.length&&(te(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(te(e,r),e.save(),s2(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof rt&&t.autoBatch&&l2(t.style);s||u2(i,l.transform)?(te(e,r),E0(e,t)):f||te(e,r);var h=Ca(t,r.inHover);t instanceof rt?(r.lastDrawType!==Wd&&(u=!0,r.lastDrawType=Wd),$d(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),n2(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof os?(r.lastDrawType!==Yd&&(u=!0,r.lastDrawType=Yd),$d(e,t,l,u,r),a2(e,t,h)):t instanceof bn?(r.lastDrawType!==Ud&&(u=!0,r.lastDrawType=Ud),o2(e,t,l,u,r),i2(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==Xd&&(u=!0,r.lastDrawType=Xd),f2(e,t,r)),f&&n&&te(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function f2(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),pn(e,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),pn(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var nl=new VL,qd=new Oa(100),Zd=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jd(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&nl.delete(e);var a=nl.get(e);if(a)return a;var o=et(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,nl.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<Zd.length;++c){var v=o[Zd[c]];if(v!=null&&!z(v)&&!W(v)&&!vt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var g=qd.get(d);g&&(i?l.svgElement=g:l.image=g)}var p=k0(o.dashArrayX),y=h2(o.dashArrayY),m=O0(o.symbol),_=v2(p),w=B0(y),x=!i&&li.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;x&&(x.width=b.width*r,x.height=b.height*r,T=x.getContext("2d")),D(),h&&qd.put(d,x||S),l.image=x,l.svgElement=S,l.svgWidth=b.width,l.svgHeight=b.height;function C(){for(var A=1,P=0,L=_.length;P<L;++P)A=fc(A,_[P]);for(var I=1,P=0,L=m.length;P<L;++P)I=fc(I,m[P].length);A*=I;var E=w*_.length*m.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function D(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var A=0,P=0;P<y.length;++P)A+=y[P];if(A<=0)return;for(var L=-w,I=0,E=0,O=0;L<b.height;){if(I%2===0){for(var N=E/2%m.length,R=0,k=0,F=0;R<b.width*2;){for(var G=0,P=0;P<p[O].length;++P)G+=p[O][P];if(G<=0)break;if(k%2===0){var V=(1-o.symbolSize)*.5,j=R+p[O][k]*V,ct=L+y[I]*V,St=p[O][k]*o.symbolSize,It=y[I]*o.symbolSize,kt=F/2%m[N].length;Pt(j,ct,St,It,m[N][kt])}R+=p[O][k],++F,++k,k===p[O].length&&(k=0)}++O,O===p.length&&(O=0)}L+=y[I],++E,++I,I===y.length&&(I=0)}function Pt(wt,ht,Y,Q,ne){var Dt=i?1:r,ke=L0(ne,wt*Dt,ht*Dt,Y*Dt,Q*Dt,o.color,o.symbolKeepAspect);if(i){var Se=n.painter.renderOneToVNode(ke);Se&&S.children.push(Se)}else R0(T,ke)}}}}function O0(e){if(!e||e.length===0)return[["rect"]];if(W(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!W(e[r])){t=!1;break}if(t)return O0([e]);for(var n=[],r=0;r<e.length;++r)W(e[r])?n.push([e[r]]):n.push(e[r]);return n}function k0(e){if(!e||e.length===0)return[[0,0]];if(vt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!vt(e[n])){r=!1;break}if(r)return k0([e]);for(var i=[],n=0;n<e.length;++n)if(vt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=$(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function h2(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(vt(e)){var t=Math.ceil(e);return[t,t]}var r=$(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function v2(e){return $(e,function(t){return B0(t)})}function B0(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function c2(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=jd(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=jd(i,t)}}})}var De=new Je,N0={};function d2(e,t){N0[e]=t}function p2(e){return N0[e]}var g2=1,y2=800,m2=900,_2=1e3,w2=2e3,S2=5e3,F0=1e3,x2=1100,zh=2e3,z0=3e3,b2=4e3,Js=4500,T2=4600,C2=5e3,M2=6e3,G0=7e3,D2={PROCESSOR:{FILTER:_2,SERIES_FILTER:y2,STATISTIC:S2},VISUAL:{LAYOUT:F0,PROGRESSIVE_LAYOUT:x2,GLOBAL:zh,CHART:z0,POST_CHART_LAYOUT:T2,COMPONENT:b2,BRUSH:C2,CHART_ITEM:Js,ARIA:M2,DECAL:G0}},Nt="__flagInMainProcess",jt="__pendingUpdate",il="__needsUpdateStatus",Kd=/^[a-zA-Z0-9_]+$/,al="__connectUpdateStatus",Qd=0,A2=1,L2=2;function H0(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return $0(this,e,t)}}function V0(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return $0(this,e,t)}}function $0(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Je.prototype[t].apply(e,r)}var W0=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Je),U0=W0.prototype;U0.on=V0("on");U0.off=V0("off");var Fn,ol,go,br,sl,ul,ll,Ii,Pi,Jd,tp,fl,ep,yo,rp,Y0,le,np,X0=function(e){H(t,e);function t(r,n,i){var a=e.call(this,new RL)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},W(n)&&(n=q0[n]),a._dom=r;var o="canvas",s="auto",u=!1;i.ssr;var l=a._zr=uc(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:K(i.useDirtyRect,u),useCoarsePointer:K(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Fh(_t(l.flush,l),17),n=nt(n),n&&Qm(n,!0),a._theme=n,a._locale=zD(i.locale||Im),a._coordSysMgr=new Oh;var f=a._api=rp(a);function h(c,v){return c.__prio-v.__prio}return Eo(ms,h),Eo(Cf,h),a._scheduler=new T0(a,f,Cf,ms),a._messageCenter=new W0,a._initEvents(),a.resize=_t(a.resize,a),l.animation.on("frame",a._onframe,a),Jd(l,a),tp(l,a),Qo(a),a}return t.prototype._onframe=function(){if(!this._disposed){np(this);var r=this._scheduler;if(this[jt]){var n=this[jt].silent;this[Nt]=!0;try{Fn(this),br.update.call(this,null,this[jt].updateParams)}catch(u){throw this[Nt]=!1,this[jt]=null,u}this._zr.flush(),this[Nt]=!1,this[jt]=null,Ii.call(this,n),Pi.call(this,n)}else if(r.unfinished){var i=g2,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),ul(this,a),r.performVisualTasks(a),yo(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Nt]){if(this._disposed){this.id;return}var a,o,s;if(X(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Nt]=!0,!this._model||n){var u=new vA(this._api),l=this._theme,f=this._model=new Rh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Mf);var h={seriesTransition:s,optionChanged:!0};if(i)this[jt]={silent:a,updateParams:h},this[Nt]=!1,this.getZr().wakeUp();else{try{Fn(this),br.update.call(this,null,h)}catch(c){throw this[jt]=null,this[Nt]=!1,c}this._ssr||this._zr.flush(),this[jt]=null,this[Nt]=!1,Ii.call(this,a),Pi.call(this,a)}}},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||q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(q.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;M(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return M(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(ip[i]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();M(oa,function(_,w){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(nt(r)),S=_.getDom().getBoundingClientRect();u=a(S.left,u),l=a(S.top,l),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:x,left:S.left,top:S.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=li.createCanvas(),y=uc(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return M(c,function(_){var w=_.left-u,x=_.top-l;m+='<g transform="translate('+w+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Et({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),M(c,function(_){var w=new bn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(w)}),y.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return sl(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return sl(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Iu(i,r);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Iu(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?BL(s,u,n):NL(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;M(I2,function(n){var i=function(a){var o=r.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&Ui(s,function(d){var g=ut(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return u=B({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},r.trigger(n,u)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),M(aa,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),M(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),zL(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Ny(this.getDom(),Hh,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),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 oa[n.id]},t.prototype.resize=function(r){if(!this[Nt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[jt]&&(a==null&&(a=this[jt].silent),i=!0,this[jt]=null),this[Nt]=!0;try{i&&Fn(this),br.update.call(this,{type:"resize",animation:B({duration:0},r&&r.animation)})}catch(o){throw this[Nt]=!1,o}this[Nt]=!1,Ii.call(this,a),Pi.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(X(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Df[r]){var i=Df[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=B({},r);return n.type=aa[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!ys[r.type]&&this._model){if(this[Nt]){this._pendingActions.push(r);return}var i=n.silent;ll.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&q.browser.weChat&&this._throttledZrFlush(),Ii.call(this,i),Pi.call(this,i)}},t.prototype.updateLabelLayout=function(){De.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Fn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),ol(h,!0),ol(h,!1),c.plan()},ol=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(S,b){S!=="series"&&w(b)}):v.eachSeries(w);function w(S){var b=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,C=!b&&p[T];if(!C){var D=We(S.type),A=c?Re.getClass(D.main,D.sub):hr.getClass(D.sub);C=new A,C.init(v,m),p[T]=C,g.push(C),y.add(C.group)}S.__viewId=C.__id=T,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(C,S,v,m)}for(var _=0;_<g.length;){var x=g[_];x.__alive?_++:(!c&&x.renderTask.dispose(),y.remove(x.group),x.dispose(v,m),g.splice(_,1),p[x.__id]===x&&delete p[x.__id],x.__id=x.group.__ecComponentInfo=null)}},go=function(h,c,v,d,g){var p=h._model;if(p.setUpdatePayload(v),!d){M([].concat(h._componentsViews).concat(h._chartsViews),x);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=v.excludeSeriesId,w;_!=null&&(w=Z(),M(Mt(_),function(S){var b=Ye(S,null);b!=null&&w.set(b,!0)})),p&&p.eachComponent(m,function(S){var b=w&&w.get(S.id)!=null;if(!b)if(Bc(v))if(S instanceof je)v.type===yn&&!v.notBlur&&!S.get(["emphasis","disabled"])&&SM(S,v,h._api);else{var T=dh(S.mainType,S.componentIndex,v.name,h._api),C=T.focusSelf,D=T.dispatchers;v.type===yn&&C&&!v.notBlur&&uf(S.mainType,S.componentIndex,h._api),D&&M(D,function(A){v.type===yn?af(A):of(A)})}else ff(v)&&S instanceof je&&(TM(S,v,h._api),Oc(S),le(h))},h),p&&p.eachComponent(m,function(S){var b=w&&w.get(S.id)!=null;b||x(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function x(S){S&&S.__alive&&S[c]&&S[c](S.__model,p,h._api,v)}},br={prepareAndUpdate:function(h){Fn(this),br.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),p.create(v,d),y.performDataProcessorTasks(v,h),ul(this,v),p.update(v,d),r(v),y.performVisualTasks(v,h),fl(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(m),_!=null&&_!=="auto"&&g.setDarkMode(_),De.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(m,v,d,h);w&&w.update&&g.push(_)}else g.push(_)}});var p=Z();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),r(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),yo(this,v,d,h,{},p),De.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),hr.markUpdateMethod(h,"updateView"),r(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),fl(this,c,this._api,h,{}),De.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),hr.markUpdateMethod(h,"updateVisual"),r(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=c.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),De.trigger("afterupdate",v,this._api))},updateLayout:function(h){br.update.call(this,h)}},sl=function(h,c,v,d){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,m=Iu(g,v),_=0;_<p.length;_++){var w=p[_];if(w[c]&&(y=w[c](g,m,d))!=null)return y}},ul=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},ll=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,y=ys[g],m=y.actionInfo,_=(m.update||"update").split(":"),w=_.pop(),x=_[0]!=null&&We(_[0]);this[Nt]=!0;var S=[h],b=!1;h.batch&&(b=!0,S=$(h.batch,function(I){return I=et(B({},I),h),I.batch=null,I}));var T=[],C,D=ff(h),A=Bc(h);if(A&&am(this._api),M(S,function(I){if(C=y.action(I,v._model,v._api),C=C||B({},I),C.type=m.event||C.type,T.push(C),A){var E=uh(h),O=E.queryOptionMap,N=E.mainTypeSpecified,R=N?O.keys()[0]:"series";go(v,w,I,R),le(v)}else D?(go(v,w,I,"series"),le(v)):x&&go(v,w,I,x.main,x.sub)}),w!=="none"&&!A&&!D&&!x)try{this[jt]?(Fn(this),br.update.call(this,h),this[jt]=null):br[w].call(this,h)}catch(I){throw this[Nt]=!1,I}if(b?C={type:m.event||g,escapeConnect:p,batch:T}:C=T[0],this[Nt]=!1,!c){var P=this._messageCenter;if(P.trigger(C.type,C),D){var L={type:"selectchanged",escapeConnect:p,selected:CM(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(L.type,L)}}},Ii=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();ll.call(this,v,h)}},Pi=function(h){!h&&this.trigger("updated")},Jd=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[jt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},tp=function(h,c){h.on("mouseover",function(v){var d=v.target,g=Ui(d,lf);g&&(xM(g,v,c._api),le(c))}).on("mouseout",function(v){var d=v.target,g=Ui(d,lf);g&&(bM(g,v,c._api),le(c))}).on("click",function(v){var d=v.target,g=Ui(d,function(m){return ut(m).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",y=ut(g);c._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var w=_.get("zlevel")||0,x=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(m==="series"?v:c).push({zlevel:w,z:x,idx:_.componentIndex,type:m,key:S})}),d){var g=c.concat(v),p,y;Eo(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(g,function(m){var _=h.getComponent(m.type,m.idx),w=m.zlevel,x=m.key;p!=null&&(w=Math.max(p,w)),x?(w===p&&x!==y&&w++,y=x):y&&(w===p&&w++,y=""),p=w,_.setZLevel(w)})}}fl=function(h,c,v,d,g){n(c),ep(h,c,v,d,g),M(h._chartsViews,function(p){p.__alive=!1}),yo(h,c,v,d,g),M(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},ep=function(h,c,v,d,g,p){M(p||h._componentsViews,function(y){var m=y.__model;l(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},yo=function(h,c,v,d,g,p){var y=h._scheduler;g=B(g||{},{updatedSeries:c.getSeries()}),De.trigger("series:beforeupdate",c,v,g);var m=!1;c.eachSeries(function(_){var w=h._chartsMap[_.__viewId];w.__alive=!0;var x=w.renderTask;y.updatePayload(x,d),l(_,w),p&&p.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),w.group.silent=!!_.get("silent"),o(_,w),Oc(_)}),y.unfinished=m||y.unfinished,De.trigger("series:layoutlabels",c,v,g),De.trigger("series:transition",c,v,g),c.eachSeries(function(_){var w=h._chartsMap[_.__viewId];s(_,w),f(_,w)}),a(h,c),De.trigger("series:afterupdate",c,v,g)},le=function(h){h[il]=!0,h.getZr().wakeUp()},np=function(h){h[il]&&(h.getZr().storage.traverse(function(c){ti(c)||i(c)}),h[il]=!1)};function i(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||c.push(g)}h.selected&&h.states.select&&c.push("select"),h.hoverState===vh&&h.states.emphasis?c.push("emphasis"):h.hoverState===hh&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!q.node&&!q.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return u(g,v,d,-1/0),!0})}}function u(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(u(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(g&&(g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var w=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(w&&w.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!ti(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ti(y))return;if(y instanceof rt&&PM(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),w=y.getTextGuideLine();_&&(_.stateTransition=p),w&&(w.stateTransition=p)}y.__dirty&&i(y)}})}rp=function(h){return new(function(c){H(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){af(d,g),le(h)},v.prototype.leaveEmphasis=function(d,g){of(d,g),le(h)},v.prototype.enterBlur=function(d){wM(d),le(h)},v.prototype.leaveBlur=function(d){em(d),le(h)},v.prototype.enterSelect=function(d){rm(d),le(h)},v.prototype.leaveSelect=function(d){nm(d),le(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(jm))(h)},Y0=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[al]=d}}M(aa,function(v,d){h._messageCenter.on(d,function(g){if(ip[h.group]&&h[al]!==Qd){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),y=[];M(oa,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,Qd),M(y,function(m){m[al]!==A2&&m.dispatchAction(p)}),c(y,L2)}})})}}(),t}(Je),Gh=X0.prototype;Gh.on=H0("on");Gh.off=H0("off");Gh.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var I2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ys={},aa={},Cf=[],Mf=[],ms=[],q0={},Df={},oa={},ip={},P2=+new Date-0,Hh="_echarts_instance_";function E2(e,t,r){{var n=R2(e);if(n)return n}var i=new X0(e,t,r);return i.id="ec_"+P2++,oa[i.id]=i,Ny(e,Hh,i.id),Y0(i),De.trigger("afterinit",i),i}function R2(e){return oa[fC(e,Hh)]}function Z0(e,t){q0[e]=t}function j0(e){lt(Mf,e)<0&&Mf.push(e)}function K0(e,t){$h(Cf,e,t,w2)}function O2(e){Vh("afterinit",e)}function k2(e){Vh("afterupdate",e)}function Vh(e,t){De.on(e,t)}function di(e,t,r){J(t)&&(r=t,t="");var n=X(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!aa[t]&&(vr(Kd.test(n)&&Kd.test(t)),ys[n]||(ys[n]={action:r,actionInfo:e}),aa[t]=n)}function B2(e,t){Oh.register(e,t)}function N2(e,t){$h(ms,e,t,F0,"layout")}function Tn(e,t){$h(ms,e,t,z0,"visual")}var ap=[];function $h(e,t,r,n,i){if((J(t)||X(t))&&(r=t,t=n),!(lt(ap,r)>=0)){ap.push(r);var a=T0.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Q0(e,t){Df[e]=t}function F2(e,t,r){var n=p2("registerMap");n&&n(e,t,r)}var z2=UA;Tn(zh,_L);Tn(Js,wL);Tn(Js,SL);Tn(zh,OL);Tn(Js,kL);Tn(G0,c2);j0(Qm);K0(m2,TA);Q0("default",xL);di({type:yn,event:yn,update:yn},ee);di({type:Fo,event:Fo,update:Fo},ee);di({type:ta,event:ta,update:ta},ee);di({type:zo,event:zo,update:zo},ee);di({type:ea,event:ea,update:ea},ee);Z0("light",EL);Z0("dark",A0);function Ei(e){return e==null?0:e.length||1}function op(e){return e}var Af=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||op,this._newKeyGetter=i||op,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=Ei(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],h=Ei(l),c=Ei(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Ei(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=Ei(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e}(),G2=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function H2(e,t){var r={},n=r.encode={},i=Z(),a=[],o=[],s={};M(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;hl(n,d)[g]=c,v.isExtraCoord||(i.set(d,1),$2(v.type)&&(a[0]=c),hl(s,d)[g]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Um.each(function(p,y){var m=hl(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var u=[],l={};i.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=$(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new G2(s,t),r}function hl(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function V2(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function $2(e){return!(e==="ordinal"||e==="time")}var Wo=function(){function e(t){this.otherDims={},t!=null&&B(this,t)}return e}(),W2=mt(),U2={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},J0=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=r_(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return K(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=e0(this.source),n=!n_(t),i="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=U2[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function t_(e){return e instanceof J0}function e_(e){for(var t=Z(),r=0;r<(e||[]).length;r++){var n=e[r],i=X(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function r_(e){var t=W2(e);return t.dimNameMap||(t.dimNameMap=e_(e.dimensionsDefine))}function n_(e){return e>30}var Ri=X,Tr=$,Y2=typeof Int32Array>"u"?Array:Int32Array,X2="e\0\0",sp=-1,q2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Z2=["_approximateExtent"],up,mo,Oi,ki,vl,Bi,cl,i_=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;t_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=W(h)?new Wo({name:h}):h instanceof Wo?h:new Wo(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Z();M(o,function(p){g.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(vt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof gf&&(a=t),!a){var o=this.dimensions,s=kh(t)||Xt(t)?new r0(t,o.length):t;a=new gf;var u=Tr(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=H2(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=r[u],o&&cl(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Pr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===_e;if(u&&!i.pure)for(var l=[],f=t;f<r;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&JT(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Ye(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Ye(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)cl(this,f);up(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Ri(t)?B(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Oi(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return mo(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return z(t)?i.getValues(Tr(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n&&n[r];return i==null||isNaN(i)?sp:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){J(t)&&(n=r,r=t,t=[]);var i=n||this,a=Tr(ki(t),this._getStoreDimIndex,this);this._store.each(a,i?_t(r,i):r)},e.prototype.filterSelf=function(t,r,n){J(t)&&(n=r,r=t,t=[]);var i=n||this,a=Tr(ki(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?_t(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=gt(t);return M(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){J(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Tr(ki(t),this._getStoreDimIndex,this),s=Bi(this);return s._store=this._store.map(o,a?_t(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Tr(ki(t),this._getStoreDimIndex,this);this._store.modify(o,a?_t(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Bi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=Bi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Bi(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Ct(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Af(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return mo(t,n)},function(n){return mo(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Ri(t)?B(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),z(a)?a=a.slice():Ri(a)&&(a=B({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ri(r)?B(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ri(t)?B(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;fM(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){M(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Tr(this.dimensions,this._getDimInfo,this),this.hostModel)),vl(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];J(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(th(arguments)))})},e.internalField=function(){up=function(t){var r=t._invertedIndicesMap;M(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Y2(o.categories.length);for(var u=0;u<n.length;u++)n[u]=sp;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},Oi=function(t,r,n){return Ye(t._getCategory(r,n),null)},mo=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Oi(t,t._idDimIdx,r)),n==null&&(n=X2+r),n},ki=function(t){return z(t)||(t=t!=null?[t]:[]),t},Bi=function(t){var r=new e(t._schema?t._schema:Tr(t.dimensions,t._getDimInfo,t),t.hostModel);return vl(r,t),r},vl=function(t,r){M(q2.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,M(Z2,function(n){t[n]=nt(r[n])}),t._calculationInfo=B({},r._calculationInfo)},cl=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=Oi(t,a,r)),u==null&&o!=null&&(i[r]=u=Oi(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[r]=u}}}(),e}();function a_(e,t){kh(e)||(e=Jm(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Z(),a=[],o=K2(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&n_(o),u=n===e.dimensionsDefine,l=u?r_(e):e_(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=Z(f),c=new f0(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var D=c[C];if(D<0){var A=n[C],P=X(A)?A:{name:A},L=new Wo,I=P.name;I!=null&&l.get(I)!=null&&(L.name=L.displayName=I),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var E=a.length;return c[C]=E,L.storeDimIndex=C,a.push(L),L}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,D){var A=Mt(C).slice();if(A.length===1&&!W(A[0])&&A[0]<0){h.set(D,!1);return}var P=h.set(D,[]);M(A,function(L,I){var E=W(L)?l.get(L):L;E!=null&&E<o&&(P[I]=E,p(d(E),D,I))})});var g=0;M(r,function(C){var D,A,P,L;if(W(C))D=C,L={};else{L=C,D=L.name;var I=L.ordinalMeta;L.ordinalMeta=null,L=B({},L),L.ordinalMeta=I,A=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=h.get(D);if(E!==!1){if(E=Mt(E),!E.length)for(var O=0;O<(A&&A.length||1);O++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&E.push(g++)}M(E,function(N,R){var k=d(N);if(u&&L.type!=null&&(k.type=L.type),p(et(k,L),D,R),k.name==null&&A){var F=A[R];!X(F)&&(F={name:F}),k.name=k.displayName=F.name,k.defaultTooltip=F.defaultTooltip}P&&et(k.otherDims,P)})}});function p(C,D,A){Um.get(D)!=null?C.otherDims[D]=A:(C.coordDim=D,C.coordDimIndex=A,i.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var w=y||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)M(a,function(C){x(C)}),a.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var b=d(S),T=b.coordDim;T==null&&(b.coordDim=Q2(w,i,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),x(b),b.type==null&&(qm(e,S)===Rt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return j2(a),new J0({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function j2(e){for(var t=Z(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function K2(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return M(t,function(a){var o;X(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Q2(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var J2=function(){function e(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return e}();function tI(e){var t=e.get("coordinateSystem"),r=new J2(t),n=eI[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var eI={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Ie).models[0],a=e.getReferringComponents("yAxis",Ie).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),zn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),zn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Ie).models[0];t.coordSysDims=["single"],r.set("single",i),zn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Ie).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),zn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),zn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),zn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function zn(e){return e.get("type")==="category"}function rI(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;nI(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(M(a,function(m,_){W(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;M(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function nI(e){return!t_(e.schema)}function o_(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function iI(e,t){return o_(e,t)?e.getCalculationInfo("stackResultDimension"):t}function aI(e,t){var r=e.get("coordinateSystem"),n=Oh.get(r),i;return t&&t.coordSysDims&&(i=$(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=V2(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function oI(e,t,r){var n,i;return r&&M(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function s_(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===_e;var o=tI(t),s=aI(t,o),u=r.useEncodeDefaulter,l=J(u)?u:u?Yt(JD,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=a_(i,f),c=oI(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=rI(t,{schema:h,store:v}),g=new i_(h,t);g.setCalculationInfo(d);var p=c!=null&&sI(i)?function(y,m,_,w){return w===c?_:this.defaultDimValueGetter(y,m,_,w)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function sI(e){if(e.sourceFormat===_e){var t=uI(e.data||[]);return!z(Ba(t))}}function uI(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var er=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();ks(er);var lI=0,Lf=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++lI}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&$(n,fI);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},e}();function fI(e){return X(e)&&e.value!=null?e.value:e+""}function If(e){return e.type==="interval"||e.type==="log"}function hI(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Py(a/t);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=u_(o),u=i.niceTickExtent=[Lt(Math.ceil(e[0]/o)*o,s),Lt(Math.floor(e[1]/o)*o,s)];return vI(u,e),i}function dl(e){var t=Math.pow(10,sh(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Lt(r*t)}function u_(e){return sr(e)+2}function lp(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function vI(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),lp(e,0,t),lp(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function tu(e,t){return e>=t[0]&&e<=t[1]}function eu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ru(e,t){return e*(t[1]-t[0])+t[0]}var Wh=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Lf({})),z(i)&&(i=new Lf({categories:$(i,function(a){return X(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:W(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),tu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),eu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(ru(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];i[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(er);er.registerClass(Wh);var sn=Lt,pi=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return tu(r,this._extent)},t.prototype.normalize=function(r){return eu(r,this._extent)},t.prototype.scale=function(r){return ru(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=u_(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]<a[0]&&(r?s.push({value:sn(a[0]-n,o)}):s.push({value:i[0]}));for(var l=a[0];l<=a[1]&&(s.push({value:l}),l=sn(l+n,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(r?s.push({value:sn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],u=n[o-1],l=0,f=[],h=s.value-u.value,c=h/r;l<r-1;){var v=sn(u.value+(l+1)*c);v>a[0]&&v<a[1]&&f.push(v),l++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=sr(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=sn(r.value,i,!0);return Gm(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=hI(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=sn(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=sn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(er);er.registerClass(pi);var l_=typeof Float32Array<"u",cI=l_?Float32Array:Array;function pl(e){return z(e)?l_?new Float32Array(e):e:new cI(e)}var dI="__ec_stack_";function f_(e){return e.get("stack")||dI+e.seriesIndex}function Uh(e){return e.dim+e.index}function h_(e,t){var r=[];return t.eachSeriesByType(e,function(n){c_(n)&&r.push(n)}),r}function pI(e){var t={};M(e,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),g=0,p=d.count();g<p;++g){var y=d.get(v,g);t[c]?t[c].push(y):t[c]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(u,l){return u-l});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function v_(e){var t=pI(e),r=[];return M(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=pt(n.get("barWidth"),s),g=pt(n.get("barMaxWidth"),s),p=pt(n.get("barMinWidth")||(d_(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:Uh(a),stackId:f_(n)})}),gI(r)}function gI(e){var t={};M(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return M(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=gt(a).length;s=Math.max(35-u*4,15)+"%"}var l=pt(s,o),f=pt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var w=y.width;m&&(w=Math.min(w,m)),_&&(w=Math.max(w,_)),y.width=w,h-=w+f*w,c--}else{var w=v;m&&m<w&&(w=Math.min(m,h)),_&&_>w&&(w=_),w!==v&&(y.width=w,h-=w+f*w,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;M(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;M(a,function(y,m){r[i][m]=r[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),r}function yI(e,t,r){if(e&&t){var n=e[Uh(t)];return n}}function mI(e,t){var r=h_(e,t),n=v_(r);M(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=f_(i),l=n[Uh(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function _I(e){return{seriesType:e,plan:_0(),reset:function(t){if(c_(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=o_(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=wI(i,a),d=d_(t),g=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),y=r.getLayout("size"),m=r.getLayout("offset");return{progress:function(_,w){for(var x=_.count,S=d&&pl(x*3),b=d&&u&&pl(x*3),T=d&&pl(x),C=n.master.getRect(),D=c?C.width:C.height,A,P=w.getStore(),L=0;(A=_.next())!=null;){var I=P.get(h?p:o,A),E=P.get(s,A),O=v,N=void 0;h&&(N=+I-P.get(o,A));var R=void 0,k=void 0,F=void 0,G=void 0;if(c){var V=n.dataToPoint([I,E]);if(h){var j=n.dataToPoint([N,E]);O=j[0]}R=O,k=V[1]+m,F=V[0]-O,G=y,Math.abs(F)<g&&(F=(F<0?-1:1)*g)}else{var V=n.dataToPoint([E,I]);if(h){var j=n.dataToPoint([E,N]);O=j[1]}R=V[0]+m,k=O,F=y,G=V[1]-O,Math.abs(G)<g&&(G=(G<=0?-1:1)*g)}d?(S[L]=R,S[L+1]=k,S[L+2]=c?F:G,b&&(b[L]=c?C.x:R,b[L+1]=c?k:C.y,b[L+2]=D),T[A]=A):w.setItemLayout(A,{x:R,y:k,width:F,height:G}),L+=3}d&&w.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function c_(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function d_(e){return e.pipelineContext&&e.pipelineContext.large}function wI(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var SI=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},p_=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Us(r.value,Qc[$D(ri(this._minLevelUnit))]||Qc.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return WD(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=AI(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=ge,n[1]+=ge),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-ge}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=_o.length,u=Math.min(SI(_o,this._approxInterval,0,s),s-1);this._interval=_o[u][1],this._minLevelUnit=_o[Math.max(u-1,0)][0]},t.prototype.parse=function(r){return vt(r)?r:+dr(r)},t.prototype.contain=function(r){return tu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return eu(this.parse(r),this._extent)},t.prototype.scale=function(r){return ru(r,this._extent)},t.type="time",t}(pi),_o=[["second",Mh],["minute",Dh],["hour",na],["quarter-day",na*6],["half-day",na*12],["day",ge*1.2],["half-week",ge*3.5],["week",ge*7],["month",ge*31],["quarter",ge*95],["half-year",Kc/2],["year",Kc]];function xI(e,t,r,n){var i=dr(t),a=dr(r),o=function(d){return Jc(i,d,n)===Jc(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(e){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function bI(e,t){return e/=ge,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function TI(e){var t=30*ge;return e/=t,e>6?6:e>3?3:e>2?2:1}function CI(e){return e/=na,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function fp(e,t){return e/=t?Dh:Mh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function MI(e){return Py(e)}function DI(e,t,r){var n=new Date(e);switch(ri(t)){case"year":case"month":n[Om(r)](0);case"day":n[km(r)](1);case"hour":n[Bm(r)](0);case"minute":n[Nm(r)](0);case"second":n[Fm(r)](0),n[zm(r)](0)}return n.getTime()}function AI(e,t,r,n){var i=1e4,a=Em,o=0;function s(D,A,P,L,I,E,O){for(var N=new Date(A),R=A,k=N[L]();R<P&&R<=n[1];)O.push({value:R}),k+=D,N[I](k),R=N.getTime();O.push({value:R,notAdd:!0})}function u(D,A,P){var L=[],I=!A.length;if(!xI(ri(D),n[0],n[1],r)){I&&(A=[{value:DI(new Date(n[0]),D,r)},{value:n[1]}]);for(var E=0;E<A.length-1;E++){var O=A[E].value,N=A[E+1].value;if(O!==N){var R=void 0,k=void 0,F=void 0,G=!1;switch(D){case"year":R=Math.max(1,Math.round(t/ge/365)),k=Ah(r),F=UD(r);break;case"half-year":case"quarter":case"month":R=TI(t),k=ni(r),F=Om(r);break;case"week":case"half-week":case"day":R=bI(t),k=Ys(r),F=km(r),G=!0;break;case"half-day":case"quarter-day":case"hour":R=CI(t),k=ma(r),F=Bm(r);break;case"minute":R=fp(t,!0),k=Xs(r),F=Nm(r);break;case"second":R=fp(t,!1),k=qs(r),F=Fm(r);break;case"millisecond":R=MI(t),k=Zs(r),F=zm(r);break}s(R,O,N,k,F,G,L),D==="year"&&P.length>1&&E===0&&P.unshift({value:P[0].value-R})}}for(var E=0;E<L.length;E++)P.push(L[E]);return L}}for(var l=[],f=[],h=0,c=0,v=0;v<a.length&&o++<i;++v){var d=ri(a[v]);if(VD(a[v])){u(a[v],l[l.length-1]||[],f);var g=a[v+1]?ri(a[v+1]):null;if(d!==g){if(f.length){c=h,f.sort(function(D,A){return D.value-A.value});for(var p=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(p.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||e===a[v]))break}f=[]}}}for(var w=Tt($(l,function(D){return Tt(D,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(D){return D.length>0}),x=[],S=w.length-1,v=0;v<w.length;++v)for(var b=w[v],T=0;T<b.length;++T)x.push({value:b[T].value,level:S-v});x.sort(function(D,A){return D.value-A.value});for(var C=[],v=0;v<x.length;++v)(v===0||x[v].value!==x[v-1].value)&&C.push(x[v]);return C}er.registerClass(p_);var hp=er.prototype,sa=pi.prototype,LI=Lt,II=Math.floor,PI=Math.ceil,wo=Math.pow,Te=Math.log,Yh=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new pi,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=sa.getTicks.call(this,r);return $(o,function(s){var u=s.value,l=Lt(wo(this.base,u));return l=u===i[0]&&this._fixMin?So(l,a[0]):l,l=u===i[1]&&this._fixMax?So(l,a[1]):l,{value:l}},this)},t.prototype.setExtent=function(r,n){var i=Te(this.base);r=Te(Math.max(0,r))/i,n=Te(Math.max(0,n))/i,sa.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=hp.getExtent.call(this);n[0]=wo(r,n[0]),n[1]=wo(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=So(n[0],a[0])),this._fixMax&&(n[1]=So(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Te(r[0])/Te(n),r[1]=Te(r[1])/Te(n),hp.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=jT(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Lt(PI(n[0]/a)*a),Lt(II(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){sa.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Te(r)/Te(this.base),tu(r,this._extent)},t.prototype.normalize=function(r){return r=Te(r)/Te(this.base),eu(r,this._extent)},t.prototype.scale=function(r){return r=ru(r,this._extent),wo(this.base,r)},t.type="log",t}(er),g_=Yh.prototype;g_.getMinorTicks=sa.getMinorTicks;g_.getLabel=sa.getLabel;function So(e,t){return LI(e,sr(t))}er.registerClass(Yh);var EI=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;J(o)?this._modelMinNum=xo(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=xo(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(J(s)?this._modelMaxNum=xo(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=xo(t,s)),i)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=z(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[kr(l[0],1),kr(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),u==null&&(u=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=Ko(s)||Ko(u)||t&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[OI[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=RI[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),RI={min:"_determinedMin",max:"_determinedMax"},OI={min:"_dataMin",max:"_dataMax"};function kI(e,t,r){var n=e.rawExtentInfo;return n||(n=new EI(e,t,r),e.rawExtentInfo=n,n)}function xo(e,t){return t==null?null:Ko(t)?NaN:e.parse(t)}function y_(e,t){var r=e.type,n=kI(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=h_("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=v_(s),f=BI(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function BI(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=yI(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function vp(e,t){var r=t,n=y_(e,r),i=n.extent,a=r.get("splitNumber");e instanceof Yh&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function NI(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Wh({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new p_({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(er.getClass(t)||pi)}}function FI(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function gi(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):W(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):J(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Xh(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Xh(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function zI(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Wh?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=gi(e),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;f<i;f+=l){var h=n?n[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=GI(v,o.get("rotate")||0);u?u.union(d):u=d}return u}}function GI(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new it(e.x,e.y,a,o);return s}function qh(e){var t=e.get("interval");return t??"auto"}function m_(e){return e.type==="category"&&qh(e.getLabelModel())===0}function HI(e,t){var r={};return M(e.mapDimensionsAll(t),function(n){r[iI(e,n)]=!0}),gt(r)}var VI=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),cp=[],$I={registerPreprocessor:j0,registerProcessor:K0,registerPostInit:O2,registerPostUpdate:k2,registerUpdateLifecycle:Vh,registerAction:di,registerCoordinateSystem:B2,registerLayout:N2,registerVisual:Tn,registerTransform:z2,registerLoading:Q0,registerMap:F2,registerImpl:d2,PRIORITY:D2,ComponentModel:st,ComponentView:Re,SeriesModel:je,ChartView:hr,registerComponentModel:function(e){st.registerClass(e)},registerComponentView:function(e){Re.registerClass(e)},registerSeriesModel:function(e){je.registerClass(e)},registerChartView:function(e){hr.registerClass(e)},registerSubTypeDefaulter:function(e,t){st.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){$T(e,t)}};function Ma(e){if(z(e)){M(e,function(t){Ma(t)});return}lt(cp,e)>=0||(cp.push(e),J(e)&&(e={install:e}),e.install($I))}var Da=mt();function __(e,t){var r=$(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function WI(e){var t=e.getLabelModel().get("customValues");if(t){var r=gi(e),n=e.scale.getExtent(),i=__(e,t),a=Tt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:$(a,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:e.scale.getLabel(s),tickValue:o}})}}return e.type==="category"?YI(e):qI(e)}function UI(e,t){var r=e.getTickModel().get("customValues");if(r){var n=e.scale.getExtent(),i=__(e,r);return{ticks:Tt(i,function(a){return a>=n[0]&&a<=n[1]})}}return e.type==="category"?XI(e,t):{ticks:$(e.scale.getTicks(),function(a){return a.value})}}function YI(e){var t=e.getLabelModel(),r=w_(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function w_(e,t){var r=S_(e,"labels"),n=qh(t),i=x_(r,n);if(i)return i;var a,o;return J(n)?a=C_(e,n):(o=n==="auto"?ZI(e):n,a=T_(e,o)),b_(r,n,{labels:a,labelCategoryInterval:o})}function XI(e,t){var r=S_(e,"ticks"),n=qh(t),i=x_(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),J(n))a=C_(e,n,!0);else if(n==="auto"){var s=w_(e,e.getLabelModel());o=s.labelCategoryInterval,a=$(s.labels,function(u){return u.tickValue})}else o=n,a=T_(e,o,!0);return b_(r,n,{ticks:a,tickCategoryInterval:o})}function qI(e){var t=e.scale.getTicks(),r=gi(e);return{labels:$(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function S_(e,t){return Da(e)[t]||(Da(e)[t]=[])}function x_(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function b_(e,t,r){return e.push({key:t,value:r}),r}function ZI(e){var t=Da(e).autoInterval;return t??(Da(e).autoInterval=e.calculateCategoryInterval())}function jI(e){var t=KI(e),r=gi(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,g=0,p=ah(r({value:u}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),w=Da(e.model),x=e.getExtent(),S=w.lastAutoInterval,b=w.lastTickCount;return S!=null&&b!=null&&Math.abs(S-_)<=1&&Math.abs(b-o)<=1&&S>_&&w.axisExtent0===x[0]&&w.axisExtent1===x[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=x[0],w.axisExtent1=x[1]),_}function KI(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function T_(e,t,r){var n=gi(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=m_(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(r?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function C_(e,t,r){var n=e.scale,i=gi(e),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var dp=[0,1],QI=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return YT(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),pp(n,i.count())),Jl(t,dp,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),pp(n,i.count()));var a=Jl(t,n,dp,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=UI(this,r),i=n.ticks,a=$(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return JI(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=$(n,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return WI(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return jI(this)},e}();function pp(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function JI(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;M(t,function(v){v.coord-=l/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Lt(v),d=Lt(d),h?v>d:v<d}}var Ni=Math.PI*2,un=Nr.CMD,tP=["top","right","bottom","left"];function eP(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function rP(e,t,r,n,i,a,o,s,u){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var f=o*r+e,h=s*r+t;if(Math.abs(n-i)%Ni<1e-4)return u[0]=f,u[1]=h,l-r;if(a){var c=n;n=ur(i),i=ur(c)}else n=ur(n),i=ur(i);n>i&&(i+=Ni);var v=Math.atan2(s,o);if(v<0&&(v+=Ni),v>=n&&v<=i||v+Ni>=n&&v+Ni<=i)return u[0]=f,u[1]=h,l-r;var d=r*Math.cos(n)+e,g=r*Math.sin(n)+t,p=r*Math.cos(i)+e,y=r*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function _s(e,t,r,n,i,a,o,s){var u=i-e,l=a-t,f=r-e,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=e+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function M_(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,u=t+n,l=o[0]=Math.min(Math.max(i,e),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Le=[];function nP(e,t,r){var n=M_(t.x,t.y,t.width,t.height,e.x,e.y,Le);return r.set(Le[0],Le[1]),n}function iP(e,t,r){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=e.x,c=e.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var g=l;switch(d){case un.M:a=f[v++],o=f[v++],n=a,i=o;break;case un.L:g=_s(n,i,f[v],f[v+1],h,c,Le,!0),n=f[v++],i=f[v++];break;case un.C:g=yy(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,Le),n=f[v++],i=f[v++];break;case un.Q:g=_y(n,i,f[v++],f[v++],f[v],f[v+1],h,c,Le),n=f[v++],i=f[v++];break;case un.A:var p=f[v++],y=f[v++],m=f[v++],_=f[v++],w=f[v++],x=f[v++];v+=1;var S=!!(1-f[v++]);s=Math.cos(w)*m+p,u=Math.sin(w)*_+y,v<=1&&(a=s,o=u);var b=(h-p)*_/m+p;g=rP(p,y,_,w,w+x,S,b,c,Le),n=Math.cos(w+x)*m+p,i=Math.sin(w+x)*_+y;break;case un.R:a=n=f[v++],o=i=f[v++];var T=f[v++],C=f[v++];g=M_(a,o,T,C,h,c,Le);break;case un.Z:g=_s(n,i,a,o,h,c,Le,!0),n=a,i=o;break}g<l&&(l=g,r.set(Le[0],Le[1]))}return l}var Pe=new U,ot=new U,xt=new U,Ue=new U,Ve=new U;function gp(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||tP,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=i.anchor,f=e.getComputedTransform(),h=f&&Rs([],f),c=t.get("length2")||0;l&&xt.copy(l);for(var v=0;v<o.length;v++){var d=o[v];eP(d,0,s,Pe,Ue),U.scaleAndAdd(ot,Pe,Ue,c),ot.transform(h);var g=e.getBoundingRect(),p=l?l.distance(ot):e instanceof rt?iP(ot,e.path,xt):nP(ot,g,xt);p<u&&(u=p,ot.transform(f),xt.transform(f),xt.toArray(a[0]),ot.toArray(a[1]),Pe.toArray(a[2]))}D_(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var ws=[],Ut=new U;function D_(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Pe.fromArray(e[0]),ot.fromArray(e[1]),xt.fromArray(e[2]),U.sub(Ue,Pe,ot),U.sub(Ve,xt,ot);var r=Ue.len(),n=Ve.len();if(!(r<.001||n<.001)){Ue.scale(1/r),Ve.scale(1/n);var i=Ue.dot(Ve),a=Math.cos(t);if(a<i){var o=_s(ot.x,ot.y,xt.x,xt.y,Pe.x,Pe.y,ws,!1);Ut.fromArray(ws),Ut.scaleAndAdd(Ve,o/Math.tan(Math.PI-t));var s=xt.x!==ot.x?(Ut.x-ot.x)/(xt.x-ot.x):(Ut.y-ot.y)/(xt.y-ot.y);if(isNaN(s))return;s<0?U.copy(Ut,ot):s>1&&U.copy(Ut,xt),Ut.toArray(e[1])}}}}function aP(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Pe.fromArray(e[0]),ot.fromArray(e[1]),xt.fromArray(e[2]),U.sub(Ue,ot,Pe),U.sub(Ve,xt,ot);var n=Ue.len(),i=Ve.len();if(!(n<.001||i<.001)){Ue.scale(1/n),Ve.scale(1/i);var a=Ue.dot(t),o=Math.cos(r);if(a<o){var s=_s(ot.x,ot.y,xt.x,xt.y,Pe.x,Pe.y,ws,!1);Ut.fromArray(ws);var u=Math.PI/2,l=Math.acos(Ve.dot(t)),f=u+l-r;if(f>=u)U.copy(Ut,xt);else{Ut.scaleAndAdd(Ve,s/Math.tan(Math.PI/2-f));var h=xt.x!==ot.x?(Ut.x-ot.x)/(xt.x-ot.x):(Ut.y-ot.y)/(xt.y-ot.y);if(isNaN(h))return;h<0?U.copy(Ut,ot):h>1&&U.copy(Ut,xt)}Ut.toArray(e[1])}}}}function gl(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function oP(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=zl(n[0],n[1]),a=zl(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Po([],n[1],n[0],o/i),u=Po([],n[1],n[2],o/a),l=Po([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function A_(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,u=0;u<ss.length;u++){var l=ss[u],f=t[l],h=l==="normal";if(f){var c=f.get("show"),v=h?s:K(i.states[l]&&i.states[l].ignore,s);if(v||!K(c,o)){var d=h?n:n&&n.states[l];d&&(d.ignore=!0),n&&gl(n,!0,l,f);continue}n||(n=new za,e.setTextGuideLine(n),!h&&(s||!o)&&gl(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),gl(n,!1,l,f)}}if(n){et(n.style,r),n.style.fill=null;var g=a.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=oP}}function L_(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<qe.length;n++){var i=qe[n];r[i]=e.getModel([i,t])}return r}function I_(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=i.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new us(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:l,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function P_(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(S,b){return S.rect[t]-b.rect[t]});for(var s=0,u,l=!1,f=0;f<o;f++){var h=e[f],c=h.rect;u=c[t]-s,u<0&&(c[t]-=u,h.label[t]-=u,l=!0),s=c[t]+c[r]}var v=e[0],d=e[o-1],g,p;y(),g<0&&w(-g,.8),p<0&&w(p,.8),y(),m(g,p,1),m(p,g,-1),y(),g<0&&x(-g),p<0&&x(p);function y(){g=v.rect[t]-n,p=i-d.rect[t]-d.rect[r]}function m(S,b,T){if(S<0){var C=Math.min(b,-S);if(C>0){_(C*T,0,o);var D=C+S;D<0&&w(-D*T,1)}else w(-S*T,1)}}function _(S,b,T){S!==0&&(l=!0);for(var C=b;C<T;C++){var D=e[C],A=D.rect;A[t]+=S,D.label[t]+=S}}function w(S,b){for(var T=[],C=0,D=1;D<o;D++){var A=e[D-1].rect,P=Math.max(e[D].rect[t]-A[t]-A[r],0);T.push(P),C+=P}if(C){var L=Math.min(Math.abs(S)/C,b);if(S>0)for(var D=0;D<o-1;D++){var I=T[D]*L;_(I,0,D+1)}else for(var D=o-1;D>0;D--){var I=T[D-1]*L;_(-I,D,o)}}}function x(S){var b=S<0?-1:1;S=Math.abs(S);for(var T=Math.ceil(S/(o-1)),C=0;C<o-1;C++)if(b>0?_(T,0,C+1):_(-T,o-C-1,o),S-=T,S<=0)return}return l}function sP(e,t,r,n){return P_(e,"x","width",t,r)}function E_(e,t,r,n){return P_(e,"y","height",t,r)}function R_(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var r=new it(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(r.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new us(d.localRect,d.transform)),h||(h=new us(s,u)),h.intersect(d.obb)){c=!0;break}}}c?(n(l),f&&n(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function uP(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function lP(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:uP(n&&n.shape.points)}}var yp=["align","verticalAlign","width","height","fontSize"],Vt=new ka,yl=mt(),fP=mt();function bo(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var To=["x","y","rotation"],hP=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,u=s.textConfig||{},l=i.getComputedTransform(),f=i.getBoundingRect().plain();it.applyTransform(f,f,l),l?Vt.setLocalTransform(l):(Vt.x=Vt.y=Vt.rotation=Vt.originX=Vt.originY=0,Vt.scaleX=Vt.scaleY=1),Vt.rotation=ur(Vt.rotation);var h=i.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();it.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Vt.x,y:Vt.y,scaleX:Vt.scaleX,scaleY:Vt.scaleY,rotation:Vt.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:u.position,attachedRot:u.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(J(i)||gt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ut(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,w){return function(){gp(_,w)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;J(o.layoutOption)?f=o.layoutOption(lP(o,u)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;u&&u.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:l.attachedPos,rotation:f.rotate!=null?f.rotate*h:l.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=pt(f.x,r),s.setStyle("x",0),c=!0):(s.x=l.x,s.setStyle("x",l.style.x)),f.y!=null?(s.y=pt(f.y,n),s.setStyle("y",0),c=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var v=u.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=yl(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var g=0;g<yp.length;g++){var p=yp[g];s.setStyle(p,f[p]!=null?f[p]:l.style[p])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",i(u,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=I_(this._labelList),a=Tt(i,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=Tt(i,function(u){return u.layoutOption.moveOverlap==="shiftY"});sP(a,0,r),E_(o,0,n);var s=Tt(i,function(u){return u.layoutOption.hideOverlap});R_(s)},e.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,u=o.getTextContent();!s&&u&&(s=yl(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ut(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var h=s.getModel("labelLine");A_(t,L_(s),u),gp(t,h)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!ti(t))){var a=yl(n),o=a.oldLayout,s=ut(t),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},f=r.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(lt(c,"select")>=0&&n.attr(a.oldLayoutSelect),lt(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),se(n,l,r,u)}else if(n.attr(l),!Ga(n).valueAnimation){var h=K(n.style.opacity,1);n.style.opacity=0,me(n,{style:{opacity:h}},r,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};bo(v,l,To),bo(v,n.states.select,To)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};bo(d,l,To),bo(d,n.states.emphasis,To)}MD(n,u,f,r,r)}if(i&&!i.ignore&&!i.invisible){var a=fP(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),se(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,me(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),ml=mt();function vP(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=ml(r).labelManager;i||(i=ml(r).labelManager=new hP),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=ml(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function cP(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=oi(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(oi(e,t,r[o]));return a.join(" ")}}function dP(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}function pP(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new Et({shape:{x:o,y:s,width:u,height:l}});return h}function gP(e,t,r){var n=e.getArea(),i=Lt(n.r0,1),a=Lt(n.r,1),o=new Ze({shape:{cx:Lt(e.cx,1),cy:Lt(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return o}function yP(e,t,r,n,i){if(e){if(e.type==="polar")return gP(e);if(e.type==="cartesian2d")return pP(e,t,r)}else return null;return null}function O_(e,t){return e.type===t}var mP={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},_P=function(e){return Math.round(e.length/2)};function wP(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/v));var d=void 0;W(a)?d=mP[a]:J(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,_P))}}}}}var Pf=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return s_(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),p=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,w=1,x=0;x<d.length;x++){var S=d[x].coord,b=x===d.length-1?d[x-1].tickValue+w:d[x].tickValue;if(b===p){_=S;break}else if(b<p)m=S;else if(m!=null&&b>p){_=(S+m)/2;break}x===1&&(w=b-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=l+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(je);je.registerClass(Pf);var SP=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return s_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=BD(Pf.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}(Pf),xP=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),mp=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new xP},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var g=Math.cos(f),p=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(r.moveTo(g*o+i,p*o+a),r.arc(g*l+i,p*l+a,u,-Math.PI+f,f,!c)):r.moveTo(g*s+i,p*s+a),r.arc(i,a,s,f,h,!c),r.arc(y*l+i,m*l+a,u,h-Math.PI*2,h-Math.PI,!c),o!==0&&r.arc(i,a,o,h,f,c)},t}(rt);function bP(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return is(n,i,a);var s=e(o),u=i.distance!=null?i.distance:5,l=this.shape,f=l.cx,h=l.cy,c=l.r,v=l.r0,d=(c+v)/2,g=l.startAngle,p=l.endAngle,y=(g+p)/2,m=r?Math.abs(c-v)/2:0,_=Math.cos,w=Math.sin,x=f+c*_(g),S=h+c*w(g),b="left",T="top";switch(s){case"startArc":x=f+(v-u)*_(y),S=h+(v-u)*w(y),b="center",T="top";break;case"insideStartArc":x=f+(v+u)*_(y),S=h+(v+u)*w(y),b="center",T="bottom";break;case"startAngle":x=f+d*_(g)+Co(g,u+m,!1),S=h+d*w(g)+Mo(g,u+m,!1),b="right",T="middle";break;case"insideStartAngle":x=f+d*_(g)+Co(g,-u+m,!1),S=h+d*w(g)+Mo(g,-u+m,!1),b="left",T="middle";break;case"middle":x=f+d*_(y),S=h+d*w(y),b="center",T="middle";break;case"endArc":x=f+(c+u)*_(y),S=h+(c+u)*w(y),b="center",T="bottom";break;case"insideEndArc":x=f+(c-u)*_(y),S=h+(c-u)*w(y),b="center",T="top";break;case"endAngle":x=f+d*_(p)+Co(p,u+m,!0),S=h+d*w(p)+Mo(p,u+m,!0),b="left",T="middle";break;case"insideEndAngle":x=f+d*_(p)+Co(p,-u+m,!0),S=h+d*w(p)+Mo(p,-u+m,!0),b="right",T="middle";break;default:return is(n,i,a)}return n=n||{},n.x=x,n.y=S,n.align=b,n.verticalAlign=T,n}}function TP(e,t,r,n){if(vt(n)){e.setTextConfig({rotation:n});return}else if(z(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,u,l=r(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=a;break;case"endAngle":case"insideEndAngle":u=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function Co(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Mo(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Yi(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:$(n,function(a){return kr(a,i)})}}var _l=Math.max,wl=Math.min;function CP(e,t){var r=e.getArea&&e.getArea();if(O_(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var MP=function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){bh(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),u=this._data,l=r.coordinateSystem,f=l.getBaseAxis(),h;l.type==="cartesian2d"?h=f.isHorizontal():l.type==="polar"&&(h=f.dim==="angle");var c=r.isAnimationEnabled()?r:null,v=DP(r,l);v&&this._enableRealtimeSort(v,s,i);var d=r.get("clip",!0)||v,g=CP(l,s);o.removeClipPath();var p=r.get("roundCap",!0),y=r.get("showBackground",!0),m=r.getModel("backgroundStyle"),_=m.get("borderRadius")||0,w=[],x=this._backgroundEls,S=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function T(A){var P=Do[l.type](s,A),L=OP(l,h,P);return L.useStyle(m.getItemStyle()),l.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),w[A]=L,L}s.diff(u).add(function(A){var P=s.getItemModel(A),L=Do[l.type](s,A,P);if(y&&T(A),!(!s.hasValue(A)||!bp[l.type](L))){var I=!1;d&&(I=_p[l.type](g,L));var E=wp[l.type](r,s,A,L,h,c,f.model,!1,p);v&&(E.forceLabelAnimation=!0),Tp(E,s,A,P,L,r,h,l.type==="polar"),S?E.attr({shape:L}):v?Sp(v,c,E,L,A,h,!1,!1):me(E,{shape:L},r,A),s.setItemGraphicEl(A,E),o.add(E),E.ignore=I}}).update(function(A,P){var L=s.getItemModel(A),I=Do[l.type](s,A,L);if(y){var E=void 0;x.length===0?E=T(P):(E=x[P],E.useStyle(m.getItemStyle()),l.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),w[A]=E);var O=Do[l.type](s,A),N=B_(h,O,l);se(E,{shape:N},c,A)}var R=u.getItemGraphicEl(P);if(!s.hasValue(A)||!bp[l.type](I)){o.remove(R);return}var k=!1;if(d&&(k=_p[l.type](g,I),k&&o.remove(R)),R?mm(R):R=wp[l.type](r,s,A,I,h,c,f.model,!!R,p),v&&(R.forceLabelAnimation=!0),b){var F=R.getTextContent();if(F){var G=Ga(F);G.prevValue!=null&&(G.prevValue=G.value)}}else Tp(R,s,A,L,I,r,h,l.type==="polar");S?R.attr({shape:I}):v?Sp(v,c,R,I,A,h,!0,b):se(R,{shape:I},r,A,null),s.setItemGraphicEl(A,R),R.ignore=k,o.add(R)}).remove(function(A){var P=u.getItemGraphicEl(A);P&&ls(P,r,A)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Ee);C.removeAll();for(var D=0;D<w.length;++D)C.add(w[D]);o.add(C),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Mp(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Mp(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&yP(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(u){var l=n.getItemGraphicEl(u),f=l&&l.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var u=i(s);u=u??NaN,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(u)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ls(a,r,ut(a).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}(hr),_p={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=_l(t.x,e.x),s=wl(t.x+t.width,i),u=_l(t.y,e.y),l=wl(t.y+t.height,a),f=s<o,h=l<u;return t.x=f&&o>i?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=wl(t.r,e.r),a=_l(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},wp={cartesian2d:function(e,t,r,n,i,a,o,s,u){var l=new Et({shape:B({},n),z2:1});if(l.__dataIndex=r,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(e,t,r,n,i,a,o,s,u){var l=!i&&u?mp:Ze,f=new l({shape:n,z2:1});f.name="item";var h=k_(i);if(f.calculateTextPosition=bP(h,{isRoundCap:l===mp}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?se:me)(f,{shape:d},a)}return f}};function DP(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Sp(e,t,r,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?se:me)(r,{shape:u},t,i,null);var f=t?e.baseAxis.model:null;(o?se:me)(r,{shape:l},f,i)}function xp(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var AP=["x","y","width","height"],LP=["cx","cy","r","startAngle","endAngle"],bp={cartesian2d:function(e){return!xp(e,AP)},polar:function(e){return!xp(e,LP)}},Do={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?PP(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function IP(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function k_(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Tp(e,t,r,n,i,a,o,s){var u=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,h=Yi(n.getModel("itemStyle"),f,!0);B(f,h),e.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",l)}e.useStyle(u);var c=n.getShallow("cursor");c&&e.attr("cursor",c);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Dm(n);Mm(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:cP(a.getData(),r),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var p=n.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,TP(e,p==="outside"?v:p,k_(o),n.get(["label","rotate"]))}CD(g,d,a.getRawValue(r),function(m){return dP(t,m)});var y=n.getModel(["emphasis"]);om(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),sm(e,n),IP(i)&&(e.style.fill="none",e.style.stroke="none",M(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function PP(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var EP=function(){function e(){}return e}(),Cp=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new EP},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<i.length;f+=3)u[a]=l,u[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],u[0],u[1])},t}(rt);function Mp(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=e.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var f=new Cp({shape:{points:l},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),r&&r.push(f)}var h=new Cp({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,ut(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Dp),h.on("mousemove",Dp)),r&&r.push(h)}var Dp=Fh(function(e){var t=this,r=RP(t,e.offsetX,e.offsetY);ut(t).dataIndex=r>=0?r:null},30,!1);function RP(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],u=[],l=e.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(u[n]=l,u[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),t>=s[0]&&t<=s[0]+u[0]&&r>=s[1]&&r<=s[1]+u[1])return o[f]}return-1}function B_(e,t,r){if(O_(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function OP(e,t,r){var n=e.type==="polar"?Ze:Et;return new n({shape:B_(t,r,e),silent:!0,z2:0})}function kP(e){e.registerChartView(MP),e.registerSeriesModel(SP),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Yt(mI,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_I("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,wP("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Ap=Math.PI*2,Ao=Math.PI/180;function N_(e,t){return js(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function F_(e,t){var r=N_(e,t),n=e.get("center"),i=e.get("radius");z(i)||(i=[0,i]);var a=pt(r.width,t.getWidth()),o=pt(r.height,t.getHeight()),s=Math.min(a,o),u=pt(i[0],s/2),l=pt(i[1],s/2),f,h,c=e.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else z(n)||(n=[n,n]),f=pt(n[0],a)+r.x,h=pt(n[1],o)+r.y;return{cx:f,cy:h,r0:u,r:l}}function BP(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=N_(n,r),s=F_(n,r),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Ao,v=n.get("endAngle"),d=n.get("padAngle")*Ao;v=v==="auto"?c-Ap:-v*Ao;var g=n.get("minAngle")*Ao,p=g+d,y=0;i.each(a,function(N){!isNaN(N)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,w=n.get("clockwise"),x=n.get("roseType"),S=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var T=w?1:-1,C=[c,v],D=T*d/2;Uy(C,!w),c=C[0],v=C[1];var A=z_(n);A.startAngle=c,A.endAngle=v,A.clockwise=w;var P=Math.abs(v-c),L=P,I=0,E=c;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(N,R){var k;if(isNaN(N)){i.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:u,cy:l,r0:h,r:x?NaN:f});return}x!=="area"?k=m===0&&S?_:N*_:k=P/y,k<p?(k=p,L-=p):I+=N;var F=E+T*k,G=0,V=0;d>k?(G=E+T*k/2,V=G):(G=E+D,V=F-D),i.setItemLayout(R,{angle:k,startAngle:G,endAngle:V,clockwise:w,cx:u,cy:l,r0:h,r:x?Jl(N,b,[h,f]):f}),E=F}),L<Ap&&y)if(L<=.001){var O=P/y;i.each(a,function(N,R){if(!isNaN(N)){var k=i.getItemLayout(R);k.angle=O;var F=0,G=0;O<d?(F=c+T*(R+1/2)*O,G=F):(F=c+T*R*O+D,G=c+T*(R+1)*O-D),k.startAngle=F,k.endAngle=G}})}else _=L/I,E=c,i.each(a,function(N,R){if(!isNaN(N)){var k=i.getItemLayout(R),F=k.angle===p?p:N*_,G=0,V=0;F<d?(G=E+T*F/2,V=G):(G=E+D,V=E+T*F-D),k.startAngle=G,k.endAngle=V,E+=T*F}})})}var z_=mt();function NP(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var FP=Math.PI/180;function Lp(e,t,r,n,i,a,o,s,u,l){if(e.length<2)return;function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],w=Math.abs(_.label.y-r),x=n+_.len,S=x*x,b=Math.sqrt(Math.abs((1-w*w/y)*S)),T=t+(b+_.len2)*i,C=T-_.label.x,D=_.targetTextWidth-C*i;G_(_,D,!0),_.label.x=T}}function h(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],w=_.label.y>r?y:p,x=Math.abs(_.label.y-r);if(x>=w.maxY){var S=_.label.x-t-_.len2*i,b=n+_.len,T=Math.abs(S)<b?Math.sqrt(x*x/(1-S*S/b/b)):b;w.rB=T,w.maxY=x}w.list.push(_)}f(p),f(y)}for(var c=e.length,v=0;v<c;v++)if(e[v].position==="outer"&&e[v].labelAlignTo==="labelLine"){var d=e[v].label.x-l;e[v].linePoints[1][0]+=d,e[v].label.x=l}E_(e,u,u+o)&&h(e)}function zP(e,t,r,n,i,a,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<e.length;c++){var v=e[c].label;Sl(e[c])||(v.x<t?(f=Math.min(f,v.x),u.push(e[c])):(h=Math.max(h,v.x),l.push(e[c])))}for(var c=0;c<e.length;c++){var d=e[c];if(!Sl(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<t?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?p=f-o-d.bleedMargin:p=o+i-h-d.bleedMargin:v.x<t?p=v.x-o-d.bleedMargin:p=o+i-v.x-d.bleedMargin,d.targetTextWidth=p,G_(d,p)}}Lp(l,t,r,n,1,i,a,o,s,h),Lp(u,t,r,n,-1,i,a,o,s,f);for(var c=0;c<e.length;c++){var d=e[c];if(!Sl(d)&&d.linePoints){var v=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,w=v.style.backgroundColor?0:_,x=d.rect.width+w,S=g[1][0]-g[2][0];y?v.x<t?g[2][0]=o+d.edgeDistance+x+d.labelDistance:g[2][0]=o+i-d.edgeDistance-x-d.labelDistance:(v.x<t?g[2][0]=v.x+d.labelDistance:g[2][0]=v.x-d.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=v.y}}}function G_(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,l=i.overflow,f=a.width+(o?0:u);if(t<f||r){var h=a.height;if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-u);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-u,d=t<f?v:r?v>e.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function Sl(e){return e.position==="center"}function GP(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*FP,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var b in S.states)if(S.states[b].ignore===!1)return!0;return!1}t.each(function(S){var b=t.getItemGraphicEl(S),T=b.shape,C=b.getTextContent(),D=b.getTextGuideLine(),A=t.getItemModel(S),P=A.getModel("label"),L=P.get("position")||A.get(["emphasis","label","position"]),I=P.get("distanceToLabelLine"),E=P.get("alignTo"),O=pt(P.get("edgeDistance"),l),N=P.get("bleedMargin"),R=A.getModel("labelLine"),k=R.get("length");k=pt(k,l);var F=R.get("length2");if(F=pt(F,l),Math.abs(T.endAngle-T.startAngle)<o){M(C.states,v),C.ignore=!0,D&&(M(D.states,v),D.ignore=!0);return}if(d(C)){var G=(T.startAngle+T.endAngle)/2,V=Math.cos(G),j=Math.sin(G),ct,St,It,kt;n=T.cx,i=T.cy;var Pt=L==="inside"||L==="inner";if(L==="center")ct=T.cx,St=T.cy,kt="center";else{var wt=(Pt?(T.r+T.r0)/2*V:T.r*V)+n,ht=(Pt?(T.r+T.r0)/2*j:T.r*j)+i;if(ct=wt+V*3,St=ht+j*3,!Pt){var Y=wt+V*(k+u-T.r),Q=ht+j*(k+u-T.r),ne=Y+(V<0?-1:1)*F,Dt=Q;E==="edge"?ct=V<0?f+O:f+l-O:ct=ne+(V<0?-I:I),St=Dt,It=[[wt,ht],[Y,Q],[ne,Dt]]}kt=Pt?"center":E==="edge"?V>0?"right":"left":V>0?"left":"right"}var ke=Math.PI,Se=0,yr=P.get("rotate");if(vt(yr))Se=yr*(ke/180);else if(L==="center")Se=0;else if(yr==="radial"||yr===!0){var Ha=V<0?-G+ke:-G;Se=Ha}else if(yr==="tangential"&&L!=="outside"&&L!=="outer"){var rr=Math.atan2(V,j);rr<0&&(rr=ke*2+rr);var nu=j>0;nu&&(rr=ke+rr),Se=rr-ke}if(a=!!Se,C.x=ct,C.y=St,C.rotation=Se,C.setStyle({verticalAlign:"middle"}),Pt){C.setStyle({align:kt});var yi=C.states.select;yi&&(yi.x+=C.x,yi.y+=C.y)}else{var mr=C.getBoundingRect().clone();mr.applyTransform(C.getComputedTransform());var Va=(C.style.margin||0)+2.1;mr.y-=Va/2,mr.height+=Va,r.push({label:C,labelLine:D,position:L,len:k,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new U(V,j),linePoints:It,textAlign:kt,labelDistance:I,labelAlignTo:E,edgeDistance:O,bleedMargin:N,rect:mr,unconstrainedWidth:mr.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:Pt})}}),!a&&e.get("avoidLabelOverlap")&&zP(r,n,i,u,l,c,f,h);for(var g=0;g<r.length;g++){var p=r[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(M(y.states,v),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(m){var x=p.linePoints;_||!x?(M(m.states,v),m.ignore=!0):(D_(x,p.minTurnAngle),aP(x,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new U(x[0][0],x[0][1])})}}}var HP=function(e){H(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new oe;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,u=r.getItemModel(n),l=u.getModel("emphasis"),f=r.getItemLayout(n),h=B(Yi(u.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(me(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,me(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),me(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,se(o,{shape:{endAngle:f.endAngle}},s,n))}else mm(o),se(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),sm(o,u);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,y=u.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=B({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},Yi(l.getModel("itemStyle"),f)),B(o.ensureState("select"),{x:g,y:p,shape:Yi(u.getModel(["select","itemStyle"]),f)}),B(o.ensureState("blur"),{shape:Yi(u.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:g,y:p}),B(_.ensureState("select"),{x:g,y:p}),om(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),u=n.getItemVisual(i,"style"),l=u&&u.fill,f=u&&u.opacity;Mm(a,Dm(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=r.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new za,this.setTextGuideLine(v)),A_(this,L_(o),{stroke:l,opacity:qi(s.get(["lineStyle","opacity"]),f,1)})}},t}(Ze),VP=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,u=this.group,l;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var c=z_(r),v=new Ze({shape:B(F_(r,i),c)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,u.add(v)}o.diff(s).add(function(d){var g=new HP(o,d,l);o.setItemGraphicEl(d,g),u.add(g)}).update(function(d,g){var p=s.getItemGraphicEl(g);p.updateData(o,d,l),p.off("click"),u.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var g=s.getItemGraphicEl(d);ls(g,r,d)}).execute(),GP(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},t.type="pie",t}(hr);function $P(e,t,r){t=z(t)&&{coordDimensions:t}||B({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=a_(n,t).dimensions,a=new i_(i,e);return a.initData(n,r),a}var WP=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),UP=mt(),YP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new WP(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $P(this,{coordDimensions:["value"],encodeDefaulter:Yt(tA,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=UP(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=XT(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){tf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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}(je);function XP(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function qP(e){e.registerChartView(VP),e.registerSeriesModel(YP),FL("pie",e.registerAction),e.registerLayout(Yt(BP,"pie")),e.registerProcessor(NP("pie")),e.registerProcessor(XP("pie"))}var ZP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(st),Ef=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ie).models[0]},t.type="cartesian2dAxis",t}(st);Qe(Ef,VI);var H_={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,showMinLine:!0,showMaxLine:!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)"]}}},jP=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},H_),Zh=ft({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}}},H_),KP=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Zh),QP=et({logBase:10},Zh);const JP={category:jP,value:Zh,time:KP,log:QP};var tE={value:1,category:1,time:1,log:1};function Ip(e,t,r,n){M(tE,function(i,a){var o=ft(ft({},JP[a],!0),n,!0),s=function(u){H(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=wa(this),v=c?Ih(f):{},d=h.getTheme();ft(f,d.get(a+"Axis")),ft(f,this.getDefaultOption()),f.type=Pp(f),c&&Sa(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Lf.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Pp)}function Pp(e){return e.type||(e.data?"category":"value")}var eE=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return $(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Tt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),Rf=["x","y"];function Ep(e){return e.type==="interval"||e.type==="time"}var rE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Rf,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Ep(r)||!Ep(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Rs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new it(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ye(i,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(r[0]),l=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return ye(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,u=Math.max(i[0],i[1])-o+r;return new it(a,o,s,u)},t}(eE),nE=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(QI);function Of(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ca(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function Rp(e){return e.get("coordinateSystem")==="cartesian2d"}function Op(e){var t={xAxisModel:null,yAxisModel:null};return M(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Ie).models[0];t[n]=a}),t}var xl=Math.log;function iE(e,t,r){var n=pi.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),u=y_(e,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(e.type==="log"){var c=xl(e.base);l=[xl(l[0])/c,xl(l[1])/c]}e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(e);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(e),g=l[0],p=l[1];if(f&&h)d=(p-g)/o;else if(f)for(p=l[0]+d*o;p<l[1]&&isFinite(p)&&isFinite(l[1]);)d=dl(d),p=l[0]+d*o;else if(h)for(g=l[1]-d*o;g>l[0]&&isFinite(g)&&isFinite(l[0]);)d=dl(d),g=l[1]-d*o;else{var y=e.getTicks().length-1;y>o&&(d=dl(d));var m=d*o;p=Math.ceil(l[1]/d)*d,g=Lt(p-m),g<0&&l[0]>=0?(g=0,p=Lt(m)):p>0&&l[1]<=0&&(p=0,g=-Lt(m))}var _=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+d*_,p+d*w),n.setInterval.call(e,d),(_||w)&&n.setNiceExtent.call(e,g+d,p-d)}var aE=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rf,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=gt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;If(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(vp(g,d),If(g)&&(s=v))}f.length&&(s||(s=f.pop(),vp(s.scale,s.model)),M(f,function(p){iE(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){kp(n,"y",o,a)}),M(n.y,function(o){kp(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=js(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(M(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=zI(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),M(this._coordsList,function(l){l.calcAffineTransform()});function u(){M(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),oE(l,f?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}X(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Ie).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Ie).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,lt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(i)u=this.getAxis("y",i.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,h){M(s.y,function(c,v){var d="x"+h+"y"+v,g=new rE(d);g.master=i,g.model=t,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function l(f){return function(h,c){if(bl(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new nE(f,NI(h),[0,0],h.get("type"),v),g=d.type==="category";d.onBand=g&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,u[f]++}}}},e.prototype._updateScale=function(t,r){M(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(Rp(i)){var a=Op(i),o=a.xAxisModel,s=a.yAxisModel;if(!bl(o,r)||!bl(s,r))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=i.getData(),f=u.getAxis("x"),h=u.getAxis("y");n(l,f),n(l,h)}},this);function n(i,a){M(HI(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return M(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);lt(r,a)<0&&r.push(a),lt(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(Rp(i)){var a=Op(i),o=a.xAxisModel,s=a.yAxisModel,u=o.getCoordSysModel(),l=u.coordinateSystem;i.coordinateSystem=l.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Rf,e}();function bl(e,t){return e.getCoordSysModel()===t}function kp(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Bp(i[u])&&(a=i[u]);else for(var l in i)if(i.hasOwnProperty(l)&&Bp(i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Bp(e){return e&&e.type!=="category"&&e.type!=="time"&&FI(e)}function oE(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var Lr=Math.PI,Er=function(){function e(t,r){this.group=new Ee,this.opt=r,this.axisModel=t,et(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ee({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!Np[t]},e.prototype.add=function(t){Np[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=Iy(r-t),a,o;return as(i)?(o=n>0?"top":"bottom",a="center"):as(i-Lr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Lr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),Np={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(ye(s,s,o),ye(u,u,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Fr({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ya(h.shape,h.style.lineWidth),h.anid="line",r.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);W(c)&&(c=[c,c]),(W(v)||vt(v))&&(v=[v,v]);var d=KL(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];M([{rotate:e.rotation+Math.PI/2,offset:d[0],r:0},{rotate:e.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=L0(c[m],-g/2,-p/2,g,p,f.stroke,!0),w=y.r+y.offset,x=l?u:s;_.attr({rotation:y.rotate,x:x[0]+w*Math.cos(e.rotation),y:x[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=lE(r,n,t,e),a=hE(r,n,t,e);if(uE(t,a,i),fE(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=I_($(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));R_(o)}},axisName:function(e,t,r,n){var i=ca(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,zp(a)?e.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*Lr/180);var d;zp(a)?c=Er.innerTextLayout(e.rotation,v??e.rotation,o):(c=sE(e.rotation,a,v||0,l),d=e.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=ca(e.nameTruncateMaxWidth,p.maxWidth,d),_=new oe({x:h[0],y:h[1],rotation:c.rotation,silent:Er.isLabelSilent(t),style:wn(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(xh({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var w=Er.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,ut(_).eventData=w}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function sE(e,t,r,n){var i=Iy(r-e),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return as(i-Lr/2)?(o=u?"bottom":"top",a="center"):as(i-Lr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<Lr*1.5&&i>Lr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function uE(e,t,r){if(!m_(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=r[0],f=r[1],h=r[r.length-1],c=r[r.length-2];n===!1?(fe(a),fe(l)):Fp(a,o)&&(n?(fe(o),fe(f)):(fe(a),fe(l))),i===!1?(fe(s),fe(h)):Fp(u,s)&&(i?(fe(u),fe(c)):(fe(s),fe(h)))}}function fe(e){e&&(e.ignore=!0)}function Fp(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=rh([]);return nh(i,i,-e.rotation),r.applyTransform(Kn([],i,e.getLocalTransform())),n.applyTransform(Kn([],i,t.getLocalTransform())),r.intersect(n)}}function zp(e){return e==="middle"||e==="center"}function V_(e,t,r,n,i){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(ye(o,o,t),ye(s,s,t));var f=new Fr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ya(f.shape,f.style.lineWidth),f.anid=i+"_"+e[u].tickValue,a.push(f)}return a}function lE(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),u=n.tickDirection*a.get("length"),l=i.getTicksCoords(),f=V_(l,t.transform,u,et(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)e.add(f[h]);return f}}function fE(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),u=n*a.get("length"),l=et(s.getLineStyle(),et(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=V_(o[f],t.transform,u,l,"minorticks_"+f),c=0;c<h.length;c++)e.add(h[c])}}function hE(e,t,r,n){var i=r.axis,a=ca(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),u=i.getViewLabels(),l=(ca(n.labelRotate,o.get("rotate"))||0)*Lr/180,f=Er.innerTextLayout(n.rotation,l,n.labelDirection),h=r.getCategories&&r.getCategories(!0),c=[],v=Er.isLabelSilent(r),d=r.get("triggerEvent");return M(u,function(g,p){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,_=g.rawLabel,w=o;if(h&&h[y]){var x=h[y];X(x)&&x.textStyle&&(w=new Ct(x.textStyle,o,r.ecModel))}var S=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(y),T=w.getShallow("align",!0)||f.textAlign,C=K(w.getShallow("alignMinLabel",!0),T),D=K(w.getShallow("alignMaxLabel",!0),T),A=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||f.textVerticalAlign,P=K(w.getShallow("verticalAlignMinLabel",!0),A),L=K(w.getShallow("verticalAlignMaxLabel",!0),A),I=new oe({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:wn(w,{text:m,align:p===0?C:p===u.length-1?D:T,verticalAlign:p===0?P:p===u.length-1?L:A,fill:J(S)?S(i.type==="category"?_:i.type==="value"?y+"":y,p):S})});if(I.anid="label_"+y,xh({el:I,componentModel:r,itemName:m,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:_,tickIndex:p}}),d){var E=Er.makeAxisEventDataBase(r);E.targetType="axisLabel",E.value=_,E.tickIndex=p,i.type==="category"&&(E.dataIndex=y),ut(I).eventData=E}t.add(I),I.updateTransform(),c.push(I),e.add(I),I.decomposeTransform()}),c}}function vE(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cE(r,e,t),r.seriesInvolved&&pE(r,e),r}function cE(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Aa(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",n);if(M(s.getAxes(),Yt(g,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&M(d.baseAxes,Yt(g,v?"cross":!0,c)),v&&M(d.otherAxes,Yt(g,"cross",!1))}function g(p,y,m){var _=m.model.getModel("axisPointer",i),w=_.get("show");if(!(!w||w==="auto"&&!p&&!kf(_))){y==null&&(y=_.get("triggerTooltip")),_=p?dE(m,h,i,t,p,y):_;var x=_.get("snap"),S=_.get("triggerEmphasis"),b=Aa(m.model),T=y||x||m.type==="category",C=e.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:S,involveSeries:T,snap:x,useHandle:kf(_),seriesModels:[],linkGroup:null};l[b]=C,e.seriesInvolved=e.seriesInvolved||T;var D=gE(a,m);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[b]=C,A.mapper=a[D].mapper,C.linkGroup=A}}}})}function dE(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};M(s,function(c){u[c]=nt(o.get(c))}),u.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),i==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&et(l,h.textStyle)}}return e.model.getModel("axisPointer",new Ct(u,r,n))}function pE(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||M(e.coordSysAxesInfo[Aa(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function gE(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Tl(a[n+"AxisId"],r.id)||Tl(a[n+"AxisIndex"],r.componentIndex)||Tl(a[n+"AxisName"],r.name))return i}}function Tl(e,t){return e==="all"||z(e)&<(e,t)>=0||e===t}function yE(e){var t=jh(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=kf(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function jh(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Aa(e)]}function mE(e){var t=jh(e);return t&&t.axisPointerModel}function kf(e){return!!e.get(["handle","show"])}function Aa(e){return e.type+"||"+e.id}var Gp={},$_=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&yE(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=mE(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Gp[r]=n},t.getAxisPointerClass=function(r){return r&&Gp[r]},t.type="axis",t}(Re),Bf=mt();function _E(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0});if(l.length){var f=s.length,h=Bf(e).splitAreaColors,c=Z(),v=0;if(h)for(var d=0;d<l.length;d++){var g=h.get(l[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=i.toGlobalCoord(l[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<l.length;d++){var m=i.toGlobalCoord(l[d].coord),_=void 0,w=void 0,x=void 0,S=void 0;i.isHorizontal()?(_=p,w=u.y,x=m-_,S=u.height,p=_+x):(_=u.x,w=p,x=u.width,S=m-w,p=w+S);var b=l[d-1].tickValue;b!=null&&c.set(b,v),t.add(new Et({anid:b!=null?"area_"+b:null,shape:{x:_,y:w,width:x,height:S},style:et({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Bf(e).splitAreaColors=c}}}function wE(e){Bf(e).splitAreaColors=null}var SE=["axisLine","axisTickLabel","axisName"],xE=["splitArea","splitLine","minorSplitLine"],W_=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ee,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),u=Of(s,r),l=new Er(r,B({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(If(c[v].getOtherAxis(r.axis).scale))return!0;return!1}},u));M(SE,l.add,l),this._axisGroup.add(l.getGroup()),M(xE,function(h){r.get([h,"show"])&&bE[h](this,this._axisGroup,r,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||xm(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){wE(this)},t.type="cartesianAxis",t}($_),bE={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),u=a.get("showMinLine")!==!1,l=a.get("showMaxLine")!==!1;s=z(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=i.isHorizontal(),c=0,v=i.getTicksCoords({tickModel:a}),d=[],g=[],p=o.getLineStyle(),y=0;y<v.length;y++){var m=i.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!l)){var _=v[y].tickValue;h?(d[0]=m,d[1]=f.y,g[0]=m,g[1]=f.y+f.height):(d[0]=f.x,d[1]=m,g[0]=f.x+f.width,g[1]=m);var w=c++%s.length,x=new Fr({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:et({stroke:s[w]},p),silent:!0});ya(x.shape,p.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),u=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<l.length;v++)for(var d=0;d<l[v].length;d++){var g=i.toGlobalCoord(l[v][d].coord);u?(f[0]=g,f[1]=s.y,h[0]=g,h[1]=s.y+s.height):(f[0]=s.x,f[1]=g,h[0]=s.x+s.width,h[1]=g);var p=new Fr({anid:"minor_line_"+l[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});ya(p.shape,c.lineWidth),t.add(p)}},splitArea:function(e,t,r,n){_E(e,t,r,n)}},U_=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(W_),TE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=U_.type,r}return t.type="yAxis",t}(W_),CE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Et({shape:r.coordinateSystem.getRect(),style:et({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Re),Hp={offset:0};function ME(e){e.registerComponentView(CE),e.registerComponentModel(ZP),e.registerCoordinateSystem("cartesian2d",aE),Ip(e,"x",Ef,Hp),Ip(e,"y",Ef,Hp),e.registerComponentView(U_),e.registerComponentView(TE),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var vn=mt(),Vp=nt,Cl=_t,DE=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,r,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ee,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),n.getZr().add(s);else{var c=Yt($p,r,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,r)}Up(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var u=jh(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=vn(t).pointerEl=new SD[a.type](Vp(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=vn(t).labelEl=new oe(Vp(r.label));t.add(a),Wp(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=vn(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=vn(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Wp(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=bm(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){uy(l.event)},onmousedown:Cl(this._onHandleDragMove,this,0,0),drift:Cl(this._onHandleDragMove,this),ondragend:Cl(this._onHandleDragEnd,this)}),n.add(i)),Up(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");z(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,S0(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){$p(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Ml(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Ml(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Ml(i)),vn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),wf(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function $p(e,t,r,n){Y_(vn(r).lastProp,n)||(vn(r).lastProp=n,t?se(r,n,e):(r.stopAnimation(),r.attr(n)))}function Y_(e,t){if(X(e)&&X(t)){var r=!0;return M(t,function(n,i){r=r&&Y_(e[i],n)}),!!r}else return e===t}function Wp(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Ml(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Up(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function AE(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function LE(e,t,r,n,i){var a=r.get("value"),o=X_(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Lh(s.get("padding")||0),l=s.getFont(),f=ah(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),IE(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:wn(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function IE(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function X_(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Xh(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):J(o)&&(a=o(s))}return a}function q_(e,t,r){var n=jn();return nh(n,n,r.rotation),$l(n,n,r.position),Sh([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function PE(e,t,r,n,i,a){var o=Er.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),LE(t,n,i,a,{position:q_(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function EE(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function RE(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var OE=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=Yp(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=AE(a),v=kE[l](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=Of(u.model,i);PE(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Of(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=q_(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Yp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(DE);function Yp(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var kE={line:function(e,t,r){var n=EE([t,r[0]],[t,r[1]],Xp(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:RE([t-n/2,r[0]],[n,i],Xp(e))}}};function Xp(e){return e.dim==="x"?0:1}var BE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(st),lr=mt(),NE=M;function Z_(e,t,r){if(!q.node){var n=t.getZr();lr(n).records||(lr(n).records={}),FE(n,t);var i=lr(n).records[e]||(lr(n).records[e]={});i.handler=r}}function FE(e,t){if(lr(e).initialized)return;lr(e).initialized=!0,r("click",Yt(qp,"click")),r("mousemove",Yt(qp,"mousemove")),r("globalout",GE);function r(n,i){e.on(n,function(a){var o=HE(t);NE(lr(e).records,function(s){s&&i(s,a,o.dispatchAction)}),zE(o.pendings,t)})}}function zE(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function GE(e,t,r){e.handler("leave",null,r)}function qp(e,t,r,n){t.handler(e,r,n)}function HE(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Nf(e,t){if(!q.node){var r=t.getZr(),n=(lr(r).records||{})[e];n&&(lr(r).records[e]=null)}}var VE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Z_("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(r,n){Nf("axisPointer",n)},t.prototype.dispose=function(r,n){Nf("axisPointer",n)},t.type="axisPointer",t}(Re);function j_(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Na(a,e);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(a.getValues($(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Zp=mt();function $E(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Uo(i)&&(i=j_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Uo(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||Uo(i),c={},v={},d={list:[],map:{}},g={showPointer:Yt(UE,v),showTooltip:Yt(YE,d)};M(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);M(s.coordSysAxesInfo[m],function(w,x){var S=w.axis,b=jE(l,w);if(!h&&_&&(!l||b)){var T=b&&b.value;T==null&&!u&&(T=S.pointToData(i)),T!=null&&jp(w,T,g,!1,c)}})});var p={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(w,x){var S=v[x];if(w!==y&&S){var b=S.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,Kp(w),Kp(y)))),p[y.key]=b}})}),M(p,function(y,m){jp(f[m],y,g,!0,c)}),XE(v,f,c),qE(d,i,e,o),ZE(f,o,r),c}}function jp(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=WE(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function WE(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=e-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=h,a.length=0),M(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function UE(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function YE(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Aa(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function XE(e,t,r){var n=r.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function qE(e,t,r,n){if(Uo(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ZE(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Zp(n)[i]||{},o=Zp(n)[i]={};M(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(a,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!a[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function jE(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Kp(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Uo(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function K_(e){$_.registerAxisPointerClass("CartesianAxisPointer",OE),e.registerComponentModel(BE),e.registerComponentView(VE),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!z(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=vE(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$E)}function KE(e){Ma(ME),Ma(K_)}var QE=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(st);function Q_(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function J_(e){if(q.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var t1=J_(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),JE=J_(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function e1(e,t){if(!e)return t;t=Hm(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function tR(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var eR=e1(JE,"transition"),Kh=e1(t1,"transform"),rR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(q.transform3dSupported?"will-change:transform;":"");function nR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function iR(e,t,r){if(!W(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=_a(t);var a=nR(r),o=Math.max(Math.round(i)*1.5,6),s="",u=Kh+":",l;lt(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function aR(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=q.transformSupported?","+Kh+n:",left"+n+",top"+n),eR+":"+i}function Qp(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!q.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=q.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Kh+":"+o+";":[["top",0],["left",0],[t1,o]]}function oR(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=K(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),M(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function sR(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),u=e.get("shadowOffsetX"),l=e.get("shadowOffsetY"),f=e.getModel("textStyle"),h=m0(e,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(aR(i,r)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,g=Hm(d),p=e.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(oR(f)),h!=null&&n.push("padding:"+Lh(h).join("px ")+"px"),n.join(";")+";"}function Jp(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Vb(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var uR=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,q.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(W(a)?document.querySelector(a):va(a)?a:J(a)&&a(t.getDom()));Jp(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();ve(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=tR(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=rR+sR(t,!this._firstShow,this._longHide)+Qp(a[0],a[1],!0)+("border-color:"+_a(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!Q_(n)&&(s=iR(n,i,a)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var u=0;u<t.length;u++)va(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(Jp(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Qp(n[0],n[1]);M(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",q.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),lR=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),eg(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;X(t)&&tt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new oe({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:m0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=tg(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;eg(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Mr(a.borderWidth||0),s=tg(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Mr(e){return Math.max(0,e)}function tg(e){var t=Mr(e.shadowBlur||0),r=Mr(e.shadowOffsetX||0),n=Mr(e.shadowOffsetY||0);return{left:Mr(t-r),right:Mr(t+r),top:Mr(t-n),bottom:Mr(t+n)}}function eg(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var fR=new Et({shape:{x:-1,y:-1,width:2,height:2}}),hR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(q.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=hC(i.get("renderMode"));this._tooltipContent=a==="richText"?new lR(n):new uR(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(q.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?S0(this,"_updatePosition",50,"fixRate"):wf(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");Z_("itemTooltip",this._api,_t(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||q.node||!i.getDom())){var o=rg(a,i);this._ticket="";var s=a.dataByCoordSys,u=pR(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=fR;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=j_(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(rg(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),h=Fi([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=ut(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;Ui(i,function(f){if(ut(f).dataIndex!=null)return u=f,!0;if(ut(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fi([n.tooltipOption],a),u=this._renderMode,l=[],f=ba("section",{blocks:[],noHeader:!0}),h=[],c=new rl;M(r,function(m){M(m.dataByAxis,function(_){var w=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!w||x==null)){var S=X_(x,w.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=ba("section",{header:S,noHeader:!$e(S),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,A=C.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Xh(w.axis,{value:x}),A.axisValueLabel=S,A.marker=c.makeTooltipMarker("item",_a(A.color),u);var P=_d(C.formatTooltip(D,!0,null)),L=P.frag;if(L){var I=Fi([C],a).get("valueFormatter");b.blocks.push(I?B({valueFormatter:I},L):L)}P.text&&h.push(P.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=Cd(f,c,u,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?`
|
||
|
||
`:"<br/>",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=r.positionDefault,g=Fi([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new rl;y.marker=m.makeTooltipMarker("item",_a(y.color),v);var _=_d(l.formatTooltip(f,!1,h)),w=g.get("order"),x=g.get("valueFormatter"),S=_.frag,b=S?Cd(x?B({valueFormatter:x},S):S,m,v,w,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,y,T,r.offsetX,r.offsetY,r.position,r.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=ut(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(W(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=nt(u),u.content=Kt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=r.positionDefault,d=Fi(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",y=new rl;this._showOrMove(d,function(){var m=nt(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,p,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");u=u||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=d.color;if(c)if(W(c)){var p=r.ecModel.get("useUTC"),y=z(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Us(y.axisValue,v,p)),v=Vm(v,i,!0)}else if(J(c)){var _=_t(function(w,x){w===this._ticket&&(h.setContent(x,f,r,g,u),this._updatePosition(r,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,r,g,u),h.show(r,g),this._updatePosition(r,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),J(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),z(n))i=pt(n[0],l),a=pt(n[1],f);else if(X(n)){var g=n;g.width=h[0],g.height=h[1];var p=js(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(W(n)&&u){var y=dR(n,d,h,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=vR(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=ng(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=ng(v)?h[1]/2:v==="bottom"?h[1]:0),Q_(r)){var y=cR(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&M(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&M(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],w=a[m];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){q.node||!n.getDom()||(wf(this,"_updatePosition"),this._tooltipContent.dispose(),Nf("itemTooltip",n))},t.type="tooltip",t}(Re);function Fi(e,t,r){var n=t.ecModel,i;r?(i=new Ct(r,n,n),i=new Ct(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ct&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new Ct(o,i,n)))}return i}function rg(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function vR(e,t,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>n?e-=u+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function cR(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function dR(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function ng(e){return e==="center"||e==="middle"}function pR(e,t,r){var n=uh(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Fa(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ut(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function gR(e){Ma(K_),e.registerComponentModel(QE),e.registerComponentView(hR),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ee),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ee)}var yR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(st),mR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),u=r.get("textAlign"),l=K(r.get("textBaseline"),r.get("textVerticalAlign")),f=new oe({style:wn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=r.get("subtext"),v=new oe({style:wn(s,{text:c,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){ed(d,"_"+r.get("target"))}),g&&v.on("click",function(){ed(g,"_"+r.get("subtarget"))}),ut(f).eventData=ut(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=r.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=js(m,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));u||(u=r.get("left")||r.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=r.get("top")||r.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var w={align:u,verticalAlign:l};f.setStyle(w),v.setStyle(w),y=a.getBoundingRect();var x=_.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var b=new Et({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(Re);function _R(e){e.registerComponentModel(yR),e.registerComponentView(mR)}var ig={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wR=function(){function e(t){var r=this._condVal=W(t)?new RegExp(t):Ab(t)?t:null;if(r==null){var n="";tt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return W(r)?this._condVal.test(t):vt(r)?this._condVal.test(t+""):!1},e}(),SR=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),xR=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),bR=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),TR=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),CR=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function Qh(e,t){if(e===!0||e===!1){var r=new SR;return r.value=e,r}var n="";return r1(e)||tt(n),e.and?ag("and",e,t):e.or?ag("or",e,t):e.not?MR(e,t):DR(e,t)}function ag(e,t,r){var n=t[e],i="";z(n)||tt(i),n.length||tt(i);var a=e==="and"?new xR:new bR;return a.children=$(n,function(o){return Qh(o,r)}),a.children.length||tt(i),a}function MR(e,t){var r=e.not,n="";r1(r)||tt(n);var i=new TR;return i.child=Qh(r,t),i.child||tt(n),i}function DR(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=gt(e),o=e.parser,s=o?o0(o):null,u=0;u<a.length;u++){var l=a[u];if(!(l==="parser"||t.valueGetterAttrMap.get(l))){var f=cr(ig,l)?ig[l]:l,h=e[l],c=s?s(h):h,v=FA(f,c)||f==="reg"&&new wR(c);v||tt(r),i.push(v)}}i.length||tt(r);var d=new CR;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function r1(e){return X(e)&&!Xt(e)}var AR=function(){function e(t,r){this._cond=Qh(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function LR(e,t){return new AR(e,t)}var IR={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=LR(e.config,{valueGetterAttrMap:Z({dimension:!0}),prepareGetValue:function(s){var u="",l=s.dimension;cr(s,"dimension")||tt(u);var f=t.getDimensionInfo(l);return f||tt(u),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},PR={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=Mt(r);i.length||tt(n);var a=[];M(i,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&tt(n),c!=="asc"&&c!=="desc"&&tt(n),d&&d!=="min"&&d!=="max"){var g="";tt(g)}if(c!=="asc"&&c!=="desc"){var p="";tt(p)}var y=t.getDimensionInfo(h);y||tt(n);var m=v?o0(v):null;v&&!m&&tt(n),a.push({dimIdx:y.index,parser:m,comparator:new u0(c,d)})});var o=t.sourceFormat;o!==qt&&o!==we&&tt(n);for(var s=[],u=0,l=t.count();u<l;u++)s.push(t.getRawDataItem(u));return s.sort(function(f,h){for(var c=0;c<a.length;c++){var v=a[c],d=t.retrieveValueFromItem(f,v.dimIdx),g=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),g=v.parser(g));var p=v.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function ER(e){e.registerTransform(IR),e.registerTransform(PR)}var RR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new v0(this),bd(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),bd(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Xe},t}(st),OR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(Re);function kR(e){e.registerComponentModel(RR),e.registerComponentView(OR)}var Ge=Nr.CMD;function qn(e,t){return Math.abs(e-t)<1e-5}function Ff(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,u=0;function l(L,I){i&&i.length>2&&n.push(i),i=[L,I]}function f(L,I,E,O){qn(L,E)&&qn(I,O)||i.push(L,I,E,O,E,O)}function h(L,I,E,O,N,R){var k=Math.abs(I-L),F=Math.tan(k/4)*4/3,G=I<L?-1:1,V=Math.cos(L),j=Math.sin(L),ct=Math.cos(I),St=Math.sin(I),It=V*N+E,kt=j*R+O,Pt=ct*N+E,wt=St*R+O,ht=N*F*G,Y=R*F*G;i.push(It-ht*j,kt+Y*V,Pt+ht*St,wt-Y*ct,Pt,wt)}for(var c,v,d,g,p=0;p<r;){var y=t[p++],m=p===1;switch(m&&(a=t[p],o=t[p+1],s=a,u=o,(y===Ge.L||y===Ge.C||y===Ge.Q)&&(i=[s,u])),y){case Ge.M:a=s=t[p++],o=u=t[p++],l(s,u);break;case Ge.L:c=t[p++],v=t[p++],f(a,o,c,v),a=c,o=v;break;case Ge.C:i.push(t[p++],t[p++],t[p++],t[p++],a=t[p++],o=t[p++]);break;case Ge.Q:c=t[p++],v=t[p++],d=t[p++],g=t[p++],i.push(a+2/3*(c-a),o+2/3*(v-o),d+2/3*(c-d),g+2/3*(v-g),d,g),a=d,o=g;break;case Ge.A:var _=t[p++],w=t[p++],x=t[p++],S=t[p++],b=t[p++],T=t[p++]+b;p+=1;var C=!t[p++];c=Math.cos(b)*x+_,v=Math.sin(b)*S+w,m?(s=c,u=v,l(s,u)):f(a,o,c,v),a=Math.cos(T)*x+_,o=Math.sin(T)*S+w;for(var D=(C?-1:1)*Math.PI/2,A=b;C?A>T:A<T;A+=D){var P=C?Math.max(A+D,T):Math.min(A+D,T);h(A,P,_,w,x,S)}break;case Ge.R:s=a=t[p++],u=o=t[p++],c=s+t[p++],v=u+t[p++],l(c,u),f(c,u,c,v),f(c,v,s,v),f(s,v,s,u),f(s,u,c,u);break;case Ge.Z:i&&f(a,o,s,u),a=s,o=u;break}}return i&&i.length>2&&n.push(i),n}function zf(e,t,r,n,i,a,o,s,u,l){if(qn(e,r)&&qn(t,n)&&qn(i,o)&&qn(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-e,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=r-e,p=n-t,y=i-o,m=a-s,_=g*g+p*p,w=y*y+m*m;if(_<h&&w<h){u.push(o,s);return}var x=c*g+v*p,S=-c*y-v*m,b=_-x*x,T=w-S*S;if(b<h&&x>=0&&T<h&&S>=0){u.push(o,s);return}var C=[],D=[];Or(e,r,i,o,.5,C),Or(t,n,a,s,.5,D),zf(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],u,l),zf(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],u,l)}function BR(e,t){var r=Ff(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],u=a[1];o.push(s,u);for(var l=2;l<a.length;){var f=a[l++],h=a[l++],c=a[l++],v=a[l++],d=a[l++],g=a[l++];zf(s,u,f,h,c,v,d,g,o,t),s=d,u=g}n.push(o)}return n}function n1(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var u=[],l=0;l<o;l++)u.push(s);var f=o*s,h=r-f;if(h>0)for(var l=0;l<h;l++)u[l%o]+=1;return u}function og(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),u=s*i,l=i-n,f=u>Math.abs(l),h=n1([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;v<h.length;v++)for(var d=(f?l:s)/h[v],g=0;g<h[v];g++){var p={};f?(p.startAngle=a+c*v,p.endAngle=a+c*(v+1),p.r0=n+d*g,p.r=n+d*(g+1)):(p.startAngle=a+d*g,p.endAngle=a+d*(g+1),p.r0=n+c*v,p.r=n+c*(v+1)),p.clockwise=e.clockwise,p.cx=e.cx,p.cy=e.cy,r.push(p)}}function NR(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=n1([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=e[s]/o.length,c=0;c<o.length;c++)for(var v=e[u]/o[c],d=0;d<o[c];d++){var g={};g[l]=c*h,g[f]=d*v,g[s]=h,g[u]=v,g.x+=e.x,g.y+=e.y,r.push(g)}}function sg(e,t,r,n){return e*n-r*t}function FR(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=sg(f,h,u,l);if(Math.abs(c)<1e-6)return null;var v=e-i,d=t-a,g=sg(v,d,f,h)/c;return g<0||g>1?null:new U(g*u+e,g*l+t)}function zR(e,t,r){var n=new U;U.sub(n,r,t),n.normalize();var i=new U;U.sub(i,e,t);var a=i.dot(n);return a}function Gn(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function GR(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],u=FR(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);u&&i.push({projPt:zR(u,t,r),pt:u,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(p,y){return p.projPt-y.projPt});var l=i[0],f=i[i.length-1];if(f.idx<l.idx){var h=l;l=f,f=h}for(var c=[l.pt.x,l.pt.y],v=[f.pt.x,f.pt.y],d=[c],g=[v],a=l.idx+1;a<=f.idx;a++)Gn(d,e[a].slice());Gn(d,v),Gn(d,c);for(var a=f.idx+1;a<=l.idx+n;a++)Gn(g,e[a%n].slice());return Gn(g,c),Gn(g,v),[{points:d},{points:g}]}function ug(e){var t=e.points,r=[],n=[];Wy(t,r,n);var i=new it(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,u=i.y,l=new U,f=new U;return a>o?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),GR(t,l,f)}function Ss(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);Ss(e,a[0],i,n),Ss(e,a[1],r-i,n)}return n}function HR(e,t){for(var r=[],n=0;n<t;n++)r.push(ph(e));return r}function VR(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function $R(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function WR(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":NR(n,t,r),i=Et;break;case"sector":og(n,t,r),i=Ze;break;case"circle":og({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Ze;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=$(BR(e.getUpdatedPathProxy(),o),function(y){return $R(y)}),u=s.length;if(u===0)Ss(ug,{points:s[0]},t,r);else if(u===t)for(var l=0;l<u;l++)r.push({points:s[l]});else{var f=0,h=$(s,function(y){var m=[],_=[];Wy(y,m,_);var w=(_[1]-m[1])*(_[0]-m[0]);return f+=w,{poly:y,area:w}});h.sort(function(y,m){return m.area-y.area});for(var c=t,l=0;l<u;l++){var v=h[l];if(c<=0)break;var d=l===u-1?c:Math.ceil(v.area/f*t);d<0||(Ss(ug,{points:v.poly},d,r),c-=d)}}i=Gs;break}if(!i)return HR(e,t);for(var g=[],l=0;l<r.length;l++){var p=new i;p.setShape(r[l]),VR(e,p),g.push(p)}return g}function UR(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),u=Math.abs(n-r)/6,l=(s-2)/6,f=Math.ceil(u/l)+1,h=[o[0],o[1]],c=u,v=2;v<s;){var d=o[v-2],g=o[v-1],p=o[v++],y=o[v++],m=o[v++],_=o[v++],w=o[v++],x=o[v++];if(c<=0){h.push(p,y,m,_,w,x);continue}for(var S=Math.min(c,f-1)+1,b=1;b<=S;b++){var T=b/S;Or(d,p,m,w,T,i),Or(g,y,_,x,T,a),d=i[3],g=a[3],h.push(i[1],a[1],i[2],a[2],d,g),p=i[5],y=a[5],m=i[6],_=a[6]}c-=S-1}return o===e?[h,t]:[e,h]}function lg(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function YR(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var u=e[s],l=t[s],f=void 0,h=void 0;u?l?(r=UR(u,l),f=r[0],h=r[1],n=f,i=h):(h=lg(i||u,u),f=u):(f=lg(n||l,l),h=l),a.push(f),o.push(h)}return[a,o]}function fg(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],u=e[o+1],l=e[a],f=e[a+1],h=s*f-l*u;t+=h,r+=(s+l)*h,n+=(u+f)*h}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function XR(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,u=s-2,l=0;l<i;l++){for(var f=l*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%u+2,d=e[v]-r[0],g=e[v+1]-r[1],p=t[c]-n[0],y=t[c+1]-n[1],m=p-d,_=y-g;h+=m*m+_*_}h<a&&(a=h,o=l)}return o}function qR(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function ZR(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],u=t[o],l=fg(s),f=fg(u);a==null&&(a=l[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,g=[],p=s.length;a&&(s=qR(s));for(var y=XR(s,u,l,f)*6,m=p-2,_=0;_<m;_+=2){var w=(y+_)%m+2;h[_+2]=s[w]-l[0],h[_+3]=s[w+1]-l[1]}h[0]=s[y]-l[0],h[1]=s[y+1]-l[1];for(var x=n/r,S=-n/2;S<=n/2;S+=x){for(var b=Math.sin(S),T=Math.cos(S),C=0,_=0;_<s.length;_+=2){var D=h[_],A=h[_+1],P=u[_]-f[0],L=u[_+1]-f[1],I=P*T-L*b,E=P*b+L*T;g[_]=I,g[_+1]=E;var O=I-D,N=E-A;C+=O*O+N*N}if(C<d){d=C,v=S;for(var R=0;R<g.length;R++)c[R]=g[R]}}i.push({from:h,to:c,fromCp:l,toCp:f,rotation:-v})}return i}function xs(e){return e.__isCombineMorphing}var i1="__mOriginal_";function bs(e,t,r){var n=i1+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var u=arguments,l;return s&&s.apply(this,u),a?l=a.apply(this,u):l=i.apply(this,u),o&&o.apply(this,u),l}}function ua(e,t){var r=i1+t;e[r]&&(e[t]=e[r],e[r]=null)}function hg(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function a1(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=YR(Ff(r),Ff(n)),a=i[0],o=i[1],s=e.getComputedTransform(),u=t.getComputedTransform();function l(){this.transform=null}s&&hg(a,s),u&&hg(o,u),bs(t,"updateTransform",{replace:l}),t.transform=null;var f=ZR(a,o,10,Math.PI),h=[];bs(t,"buildPath",{replace:function(c){for(var v=t.__morphT,d=1-v,g=[],p=0;p<f.length;p++){var y=f[p],m=y.from,_=y.to,w=y.rotation*v,x=y.fromCp,S=y.toCp,b=Math.sin(w),T=Math.cos(w);Po(g,x,S,v);for(var C=0;C<m.length;C+=2){var D=m[C],A=m[C+1],P=_[C],L=_[C+1],I=D*d+P*v,E=A*d+L*v;h[C]=I*T-E*b+g[0],h[C+1]=I*b+E*T+g[1]}var O=h[0],N=h[1];c.moveTo(O,N);for(var C=2;C<m.length;){var P=h[C++],L=h[C++],R=h[C++],k=h[C++],F=h[C++],G=h[C++];O===P&&N===L&&R===F&&k===G?c.lineTo(F,G):c.bezierCurveTo(P,L,R,k,F,G),O=F,N=G}}}})}function Jh(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;a1(e,t),t.__morphT=0;function a(){ua(t,"buildPath"),ua(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},et({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function jR(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,u,l=(1<<o)/2;l>0;l/=2){var f=0,h=0;(e&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(e=l-1-e,t=l-1-t),u=e,e=t,t=u)}return s}function Ts(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=$(e,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),r=Math.min(h,r),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=$(a,function(s,u){return{cp:s,z:jR(s[0],s[1],t,r,n,i),path:e[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function o1(e){return WR(e.path,e.count)}function Gf(){return{fromIndividuals:[],toIndividuals:[],count:0}}function KR(e,t,r){var n=[];function i(x){for(var S=0;S<x.length;S++){var b=x[S];xs(b)?i(b.childrenRef()):b instanceof rt&&n.push(b)}}i(e);var a=n.length;if(!a)return Gf();var o=r.dividePath||o1,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),Gf();n=Ts(n),s=Ts(s);for(var u=r.done,l=r.during,f=r.individualDelay,h=new ka,c=0;c<a;c++){var v=n[c],d=s[c];d.parent=t,d.copyTransform(h),f||a1(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(x){for(var S=0;S<s.length;S++)s[S].addSelfToZr(x)}bs(t,"addSelfToZr",{after:function(x){g(x)}}),bs(t,"removeSelfFromZr",{after:function(x){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(x)}});function p(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,ua(t,"addSelfToZr"),ua(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(p(),u&&u())},c=0;c<y;c++){var w=f?et({delay:(r.delay||0)+f(c,y,n[c],s[c]),done:_},r):r;Jh(n[c],s[c],w)}else t.__morphT=0,t.animateTo({__morphT:1},et({during:function(x){for(var S=0;S<y;S++){var b=s[S];b.__morphT=t.__morphT,b.dirtyShape()}l&&l(x)},done:function(){p();for(var x=0;x<e.length;x++)ua(e[x],"updateTransform");u&&u()}},r));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function QR(e,t,r){var n=t.length,i=[],a=r.dividePath||o1;function o(v){for(var d=0;d<v.length;d++){var g=v[d];xs(g)?o(g.childrenRef()):g instanceof rt&&i.push(g)}}if(xs(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var u=0,l=s;l<n;l++)i.push(ph(i[u++%s]));i.length=n}else{i=a({path:e,count:n});for(var f=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Gf()}i=Ts(i),t=Ts(t);for(var h=r.individualDelay,l=0;l<n;l++){var c=h?et({delay:(r.delay||0)+h(l,n,i[l],t[l])},r):r;Jh(i[l],t[l],c)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function vg(e){return z(e[0])}function cg(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var u=r[s].many;if(u.length<=1)if(s)s=0;else return r;var a=u.length,l=Math.ceil(a/2);r[i].many=u.slice(l,a),r[s].many=u.slice(0,l),s++}return r}var JR={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=ph(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function Dl(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Vs("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;vg(e)&&(l=e,f=t),vg(t)&&(l=t,f=e);function h(y,m,_,w,x){var S=y.many,b=y.one;if(S.length===1&&!x){var T=m?S[0]:b,C=m?b:S[0];if(xs(T))h({many:[T],one:C},!0,_,w,!0);else{var D=s?et({delay:s(_,w)},u):u;Jh(T,C,D),a(T,C,T,C,D)}}else for(var A=et({dividePath:JR[r],individualDelay:s&&function(N,R,k,F){return s(N+_,w)}},u),P=m?KR(S,b,A):QR(b,S,A),L=P.fromIndividuals,I=P.toIndividuals,E=L.length,O=0;O<E;O++){var D=s?et({delay:s(O,E)},u):u;a(L[O],I[O],m?S[O]:y.one,m?y.one:S[O],D)}}for(var c=l?l===e:e.length>t.length,v=l?cg(f,l):cg(c?t:e,[c?e:t]),d=0,g=0;g<v.length;g++)d+=v[g].many.length;for(var p=0,g=0;g<v.length;g++)h(v[g],c,p,d),p+=v[g].many.length}function hn(e){if(!e)return[];if(z(e)){for(var t=[],r=0;r<e.length;r++)t.push(hn(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof rt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var s1=1e4,tO=0,dg=1,pg=2,eO=mt();function rO(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function nO(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function gg(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=rO(e,i);if(a){var o=nO(e,t,a);return o}var s=e.getRawDataItem(t),u=n?"childGroupId":"groupId";if(s&&s[u])return s[u]+"";if(!n)return r||e.getId(t)}function yg(e){var t=[];return M(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>s1))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:gg(n,o,i,!1),childGroupId:gg(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function Al(e,t,r){e.traverse(function(n){n instanceof rt&&me(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function Ll(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Hn(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function iO(e,t,r){var n=Vs("update",r,t);n&&e.traverse(function(i){if(i instanceof vi){var a=oD(i);a&&i.animateFrom({style:a},n)}})}function aO(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function u1(e,t,r){var n=yg(e),i=yg(t);function a(_,w,x,S,b){(x||_)&&w.animateFrom({style:x&&x!==_?B(B({},x.style),_.style):_.style},b)}var o=!1,s=tO,u=Z(),l=Z();n.forEach(function(_){_.groupId&&u.set(_.groupId,!0),_.childGroupId&&l.set(_.childGroupId,!0)});for(var f=0;f<i.length;f++){var h=i[f].groupId;if(l.get(h)){s=dg;break}var c=i[f].childGroupId;if(c&&u.get(c)){s=pg;break}}function v(_,w){return function(x){var S=x.data,b=x.dataIndex;return w?S.getId(b):_?s===dg?x.childGroupId:x.groupId:s===pg?x.childGroupId:x.groupId}}var d=aO(n,i),g={};if(!d)for(var f=0;f<i.length;f++){var p=i[f],y=p.data.getItemGraphicEl(p.dataIndex);y&&(g[y.id]=!0)}function m(_,w){var x=n[w],S=i[_],b=S.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),C=S.data.getItemGraphicEl(S.dataIndex);if(T===C){C&&iO(C,S.dataIndex,b);return}T&&g[T.id]||C&&(Hn(C),T?(Hn(T),Ll(T),o=!0,Dl(hn(T),hn(C),S.divide,b,_,a)):Al(C,b,_))}new Af(n,i,v(!0,d),v(!1,d),null,"multiple").update(m).updateManyToOne(function(_,w){var x=i[_],S=x.data,b=S.hostModel,T=S.getItemGraphicEl(x.dataIndex),C=Tt($(w,function(D){return n[D].data.getItemGraphicEl(n[D].dataIndex)}),function(D){return D&&D!==T&&!g[D.id]});T&&(Hn(T),C.length?(M(C,function(D){Hn(D),Ll(D)}),o=!0,Dl(hn(C),hn(T),x.divide,b,_,a)):Al(T,b,x.dataIndex))}).updateOneToMany(function(_,w){var x=n[w],S=x.data.getItemGraphicEl(x.dataIndex);if(!(S&&g[S.id])){var b=Tt($(_,function(C){return i[C].data.getItemGraphicEl(i[C].dataIndex)}),function(C){return C&&C!==S}),T=i[_[0]].data.hostModel;b.length&&(M(b,function(C){return Hn(C)}),S?(Hn(S),Ll(S),o=!0,Dl(hn(S),hn(b),x.divide,T,_[0],a)):M(b,function(C){return Al(C,T,_[0])}))}}).updateManyToMany(function(_,w){new Af(w,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return i[x].data.getId(i[x].dataIndex)}).update(function(x,S){m(_[x],w[S])}).execute()}).execute(),o&&M(t,function(_){var w=_.data,x=w.hostModel,S=x&&r.getViewOfSeriesModel(x),b=Vs("update",x,0);S&&x.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(T){T instanceof rt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},b)})})}function mg(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function _g(e){return z(e)?e.sort().join(","):e}function Dr(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function oO(e,t){var r=Z(),n=Z(),i=Z();return M(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],u=e.oldData[o],l=mg(a),f=_g(l);n.set(f,{dataGroupId:s,data:u}),z(l)&&M(l,function(h){i.set(h,{key:f,dataGroupId:s,data:u})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),u=mg(a),l=_g(u),f=n.get(l);if(f)r.set(l,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Dr(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Dr(s),data:s}]});else if(z(u)){var h=[];M(u,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:Dr(g.data),data:g.data})}),h.length&&r.set(l,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Dr(s)}]})}else{var c=i.get(u);if(c){var v=r.get(c.key);v||(v={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Dr(c.data)}],newSeries:[]},r.set(c.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Dr(s)})}}}}),r}function wg(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function sO(e,t,r,n){var i=[],a=[];M(Mt(e.from),function(o){var s=wg(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Dr(t.oldData[s]),groupIdDim:o.dimension})}),M(Mt(e.to),function(o){var s=wg(r.updatedSeries,o);if(s>=0){var u=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:u,divide:Dr(u),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&u1(i,a,n)}function uO(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){M(Mt(n.seriesTransition),function(i){M(Mt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][$o]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=eO(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)M(Mt(a),function(v){sO(v,i,n,r)});else{var o=oO(i,n);M(o.keys(),function(v){var d=o.get(v);u1(d.oldSeries,d.newSeries,r)})}M(n.updatedSeries,function(v){v[$o]&&(v[$o]=!1)})}for(var s=t.getSeries(),u=i.oldSeries=[],l=i.oldDataGroupIds=[],f=i.oldData=[],h=0;h<s.length;h++){var c=s[h].getData();c.count()<s1&&(u.push(s[h]),l.push(s[h].get("dataGroupId")),f.push(c))}})}function Sg(e,t,r){var n=li.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var Il=function(e){H(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||ns,typeof r=="string"?o=Sg(r,n,i):X(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(oy(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Sg("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new it(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new it(0,0,0,0);_.copy(m),o.push(_)}else{for(var w=!1,x=1/0,S=0,b=0;b<o.length;++b){var T=o[b];if(T.intersect(m)){var C=new it(0,0,0,0);C.copy(T),C.union(m),o[b]=C,w=!0;break}else if(u){l.copy(m),l.union(T);var D=m.width*m.height,A=T.width*T.height,P=l.width*l.height,L=P-D-A;L<x&&(x=L,S=b)}}if(u&&(o[S].union(m),w=!0),!w){var _=new it(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&ie||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&ie||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(p=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&n!=="transparent"){var _=void 0;if(Ps(n)){var w=n.global||n.__width===y&&n.__height===m;_=w&&n.__canvasGradient||bf(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Db(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Tf(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!i||l?d(0,0,s,u):i.length&&M(i,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t}(Je),xg=1e5,ln=314159,Lo=.01,lO=.001;function fO(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function hO(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var vO=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=B({},n||{}),this.dpr=n.devicePixelRatio||ns,this._singleCanvas=a,this.root=t;var o=t.style;o&&(oy(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Il(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[ln]=v,v.zlevel=ln,s.push(ln),this._domRoot=t}else{this._width=po(t,0,n),this._height=po(t,1,n);var l=this._domRoot=hO(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(xg)),a||(a=n.ctx,a.save()),pn(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(xg)},e.prototype.paintOne=function(t,r){R0(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;Jo(function(){u._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(ln).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,h=!1,c=function(g){var p=a[g],y=p.ctx,m=o&&p.createRepaintRects(t,r,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,w=!n&&p.incremental&&Date.now,x=w&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,m);else if(_===p.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&p.clear(!1,S,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,C=function(L){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var E=t[T];if(E.__inHover&&(h=!0),i._doPaintEl(E,p,o,L,I,T===p.__endIndex-1),w){var O=Date.now()-x;if(O>15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var D=v.dpr,A=0;A<m.length;++A){var P=m[A];y.save(),y.beginPath(),y.rect(P.x*D,P.y*D,P.width*D,P.height*D),y.clip(),C(P),y.restore()}else y.save(),C(),y.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return q.wxa&&M(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(pn(s,t,a,o),t.setPrevPaintRect(u))}else pn(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ln);var n=this._layers[t];return n||(n=new Il("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ft(n,this._layerConfig[t],!0):this._layerConfig[t-Lo]&&ft(n,this._layerConfig[t-Lo],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&fO(r)){if(a>0&&t>i[0]){for(u=0;u<a-1&&!(i[u]<t&&i[u+1]>t);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var i=t[u],l=i.zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?(f=this.getLayer(l+lO,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?Lo:0),this._needsManuallyCompositing),f.__builtin__||Jf("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,r(u),a=f),i.__dirty&ie&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ft(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Lo){var o=this._layers[a];ft(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(lt(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=po(a,0,i),r=po(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(ln).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ln].dom;var r=new Il("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];pn(n,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function cO(e){e.registerPainter("canvas",vO)}var dO=Vf("<div class=echarts-container><div class=echarts>");Ma([_R,gR,KE,kR,ER,kP,vP,uO,cO,qP]);function pO(e){let t,r;return C1(()=>{r===void 0&&t&&(r=E2(t));const n=e.data,i={show:!0,feature:{mark:{show:!0},dataView:{show:!0,readOnly:!1},restore:{show:!0},saveAsImage:{show:!0}}},a={};if(a.toolbox=i,e.type==="Pie")a.tooltip={trigger:"item"},a.legend={orient:"vertical",left:"left"},a.series=[{name:'"Access From"',type:"pie",radius:"50%",data:Object.keys(n).map(o=>{const s=parseInt(o),u=s>>8,l=s&255;return{value:n[s],name:`${u}角色${l}武器`}}),emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}];else if(e.type==="Bar"){const o=[],s=[];Object.keys(n).forEach(u=>{const l=parseInt(u),f=l>>8,h=l&255;o.push(`${f}角色${h}武器`),s.push(n[l])}),a.xAxis={type:"category",data:o},a.yAxis={type:"value"},a.series=[{type:"bar",data:s}]}r&&r.setOption(a)}),(()=>{var n=dO(),i=n.firstChild,a=t;return typeof a=="function"?R1(a,i):t=i,n})()}var gO=Vf("<div class=main><div class=card><div class=title>OP抽卡期望模拟</div><div class=container><div class=controller><div class=target><div class=target-group><div class=target-item><div class=target-name>共抽</div><input class=target-input type=text><div class=target-name>次</div><div class=target-name>共垫</div><input class=target-input type=text><div class=target-name>次</div></div></div><div class=target-group><div class=target-item><div class=target-name>角色</div><input class=target-input title=角色数量 type=text></div><div class=target-gap></div><div class=target-item><div class=target-name>角色池大保底</div><input type=checkbox title=是否角色池大保底></div></div><div class=target-group><div class=target-item><div class=target-name>武器</div><input class=target-input title=武器数量 type=text></div><div class=target-gap></div><div class=target-item><div class=target-name>武器池大保底</div><input type=checkbox title=是否武器池大保底></div></div><div class=target-group><div class=target-item><div class=target-name>已连续歪</div><input class=target-input title=统计捕获明光 type=text></div><div class=target-gap></div><div class=target-item><div class=target-name>九折抽卡</div><input type=checkbox title=是否已有所有四星></div></div></div><div class=controller-btns><button class=controller-button></button><button class=controller-button>重置数据"),yO=Vf("<div class=result><div class=result-title>模拟结果</div><div class=result-text>共模拟<span class=result-text-highlight></span>次,共成功<span class=result-text-highlight></span>次,成功率<span class=result-text-highlight></span>%");function mO(){const[e,t]=ue(1),[r,n]=ue(0),[i,a]=ue(0),[o,s]=ue(0),[u,l]=ue("waiting"),[f,h]=ue(!1),[c,v]=ue(!1),[d,g]=ue(0),[p,y]=ue(!1),[m,_]=ue({}),[w,x]=ue(!1),[S,b]=ue("Pie");let T;const C=()=>{S()==="Bar"?b("Pie"):b("Bar")},D=()=>{T&&T(),_({}),x(!1),l("waiting")},A=N=>{const R=m();for(const j in N)R[j]=(N[j]||0)+(R[j]||0);const k=new Map;let F=0,G=0,V=0;for(const j in R){const ct=parseInt(j),St=ct>>8,It=ct&255;k.set({charter:St,weapon:It},R[j]),F+=R[j],V+=R[j]*St,St>=e()&&It>=r()&&(G+=R[j])}_(hb(R)),x(!0)},P=()=>{const N=m();let R=0;for(const k in N){const F=parseInt(k),G=F>>8,V=F&255;G>=e()&&V>=r()&&(R+=N[k])}return R},L=()=>{const N=m();let R=0;for(const k in N)R+=N[k];return R},I=()=>P()/L(),E=(N,R)=>k=>{var G;R=R??1/0;let F=parseInt((G=k==null?void 0:k.target)==null?void 0:G.value);N(F),F=Number.isNaN(F)?0:F>R?R:F,N(F)},O=async()=>{if(u()==="waiting"){const{initWorker:N,stopWorker:R}=k1({charter_count:e(),weapon_count:r(),isCharacterGuaranteed:f(),isWeaponGuaranteed:c(),isDiscount:p(),consecutiveOffRate:d(),cushioned_count:i(),pinkBall_count:o()},A);await N,T=R,l("running")}else T(),T=void 0,l("waiting")};return(()=>{var N=gO(),R=N.firstChild,k=R.firstChild,F=k.nextSibling,G=F.firstChild,V=G.firstChild,j=V.firstChild,ct=j.firstChild,St=ct.firstChild,It=St.nextSibling,kt=It.nextSibling,Pt=kt.nextSibling,wt=Pt.nextSibling,ht=j.nextSibling,Y=ht.firstChild,Q=Y.firstChild,ne=Q.nextSibling,Dt=Y.nextSibling,ke=Dt.nextSibling,Se=ke.firstChild,yr=Se.nextSibling,Ha=ht.nextSibling,rr=Ha.firstChild,nu=rr.firstChild,mr=nu.nextSibling,Va=rr.nextSibling,yi=Va.nextSibling,l1=yi.firstChild,tv=l1.nextSibling,f1=Ha.nextSibling,ev=f1.firstChild,h1=ev.firstChild,rv=h1.nextSibling,v1=ev.nextSibling,c1=v1.nextSibling,d1=c1.firstChild,nv=d1.nextSibling,p1=V.nextSibling,iu=p1.firstChild,g1=iu.nextSibling;return xe(It,"input",E(s)),xe(wt,"input",E(a,89)),xe(ne,"input",E(t,14)),xe(yr,"input",()=>h(!f())),xe(mr,"input",E(n,15)),xe(tv,"input",()=>v(!c())),xe(rv,"input",E(g,3)),xe(nv,"input",()=>y(!p())),xe(iu,"click",O),fn(iu,()=>u()==="waiting"?"开始模拟":"停止模拟"),xe(g1,"click",D),fn(F,(()=>{var y1=M1(()=>!!w());return()=>y1()&&(()=>{var au=yO(),iv=au.firstChild,av=iv.nextSibling,m1=av.firstChild,ov=m1.nextSibling,_1=ov.nextSibling,sv=_1.nextSibling,w1=sv.nextSibling,S1=w1.nextSibling;return xe(iv,"click",C),fn(au,Ig(pO,{get data(){return m()},get type(){return S()}}),av),fn(ov,L),fn(sv,P),fn(S1,()=>I().toFixed(2)),au})()})(),null),Ae(()=>It.value=o()),Ae(()=>wt.value=i()),Ae(()=>ne.value=e()),Ae(()=>yr.checked=f()),Ae(()=>mr.value=r()),Ae(()=>tv.checked=c()),Ae(()=>rv.value=d()),Ae(()=>nv.checked=p()),N})()}const _O=document.getElementById("root");E1(()=>Ig(mO,{}),_O);
|